.page-index {
  background-color: #0f0000; /* Deep dark background as per Flatsome theme */
  color: #f0e6e6; /* Light text for contrast on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index__content-section {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__page-title {
  color: #e13923; /* Red title as per Flatsome theme */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 16px;
  padding: 0 15px;
  font-weight: 700;
  font-size: clamp(1.8em, 4vw, 2.8em); /* Responsive font size for H1 */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background-color: #e13923;
  margin: 0 14px;
}

.page-index__title-main {
  max-width: 800px; /* Prevent H1 from being too wide */
}

.page-index__home-content {
  max-width: 1250px;
  margin: 0 auto 36px;
  padding: 0 15px;
  box-sizing: border-box;
  line-height: 1.7;
}

.page-index__home-content h2,
.page-index__home-content h3 {
  color: #e13923; /* Red subheadings */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: clamp(1.4em, 2.5vw, 2em);
}

.page-index__home-content p {
  margin-bottom: 1em;
}

.page-index__home-content ul,
.page-index__home-content ol {
  list-style-position: inside;
  margin-bottom: 1em;
  padding-left: 20px;
}

.page-index__home-content li {
  margin-bottom: 0.5em;
}

.page-index__home-content a {
  color: #2995f3; /* Blue links for visibility */
  text-decoration: underline;
}

.page-index__home-content a:hover {
  text-decoration: none;
}

.page-index__wp-caption {
  margin: 20px auto;
  max-width: 100%;
  text-align: center;
}

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__wp-caption-text {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 8px;
}

.page-index__faq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background-color: #1a0505; /* Slightly lighter dark background for table */
  border: 1px solid #e13923;
}

.page-index__faq-table th,
.page-index__faq-table td {
  border: 1px solid #e13923;
  padding: 12px 15px;
  text-align: left;
  color: #f0e6e6;
}

.page-index__faq-table th {
  background-color: #e13923; /* Red header for table */
  color: #0f0000;
  font-weight: bold;
}

.page-index__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-index__blog-section {
  padding: 40px 0;
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__blog-section-title {
  color: #e13923; /* Red blog section title */
  text-align: center;
  margin: 0 0 30px;
  font-size: clamp(1.6em, 2.8vw, 2.4em);
  font-weight: 700;
}

.page-index__blog-slider {
  position: relative;
  overflow: hidden;
  /* max-width: 1250px; already set in section */
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__blog-slider-track {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping for slider */
  gap: 20px;
  transition: transform 0.4s ease;
  padding-bottom: 10px; /* Space for scrollbar if any */
}

.page-index__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* 3 columns, accounting for gap */
  max-width: calc(33.333% - 14px);
  min-width: 0; /* Allow shrinking */
  background-color: #1a0505; /* Slightly lighter dark background for cards */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(225, 57, 35, 0.3);
}

.page-index__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-index__blog-card-link:hover .page-index__blog-card-image img {
  transform: scale(1.05);
}

.page-index__blog-card-image {
  position: relative;
  padding-top: 56%; /* 16:9 aspect ratio (height / width * 100 = 9/16 * 100 = 56.25) */
  overflow: hidden;
}

.page-index__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__blog-card-body {
  text-align: center;
  padding: 14px 10px 20px;
}

.page-index__blog-card-body h5 {
  color: #e13923; /* Red title for blog cards */
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 600;
}

.page-index__blog-card-body p {
  font-size: 0.9em;
  color: #ccc;
  margin-bottom: 0.5em;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 107, 255, 0.7); /* Blue for slider buttons */
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #2F6BFF;
}

.page-index__blog-slider-prev {
  left: 0;
}

.page-index__blog-slider-next {
  right: 0;
}

.page-index__blog-slider-prev::before {
  content: '‹';
}

.page-index__blog-slider-next::before {
  content: '›';
}

/* General image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-index__hero-section {
    padding-top: 10px !important;
  }

  .page-index__page-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
    margin: 15px auto 10px;
    flex-wrap: wrap;
  }

  .page-index__page-title::before,
  .page-index__page-title::after {
    width: 20px;
    margin: 0 8px;
  }
  
  .page-index__title-main {
    width: 100%;
  }

  .page-index__home-content {
    padding: 0 10px;
    margin-bottom: 25px;
  }

  .page-index__home-content h2,
  .page-index__home-content h3 {
    font-size: clamp(1.2em, 5vw, 1.8em);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-index__faq-table {
    overflow-x: auto;
    display: block;
    white-space: nowrap; /* Prevent text wrapping in cells */
  }

  .page-index__faq-table th,
  .page-index__faq-table td {
    min-width: 150px; /* Ensure columns are not too narrow */
    white-space: normal; /* Allow text wrapping within cells */
  }

  .page-index__cta-button {
    max-width: 100% !important;
    width: calc(100% - 30px) !important; /* Full width minus padding */
    margin-left: 15px !important;
    margin-right: 15px !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-index__blog-section {
    padding: 0 10px;
    margin-bottom: 25px;
  }

  .page-index__blog-section-title {
    font-size: clamp(1.4em, 6vw, 2em);
    margin-bottom: 20px;
  }

  .page-index__blog-slider-track {
    flex-direction: column; /* Stack slides vertically */
    flex-wrap: wrap; /* Ensure wrapping if content is too wide */
    gap: 15px;
    transform: none !important; /* Disable JS transform for stacking */
  }

  .page-index__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    display: none; /* Hide slider navigation on mobile if stacking */
  }

  /* Force all images to be responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers with images are responsive */
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__home-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}