.page-index {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.page-index__page-title {
  color: #e13923; /* Using the specified red for h1 */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1250px;
  margin: 24px auto 16px;
  padding: 0 15px;
  font-weight: 700;
  /* font-size is not fixed as per rule, let browser handle responsive scaling */
}

.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background-color: #e13923; /* Using the specified red for h1 lines */
  margin: 0 14px;
}

.page-index__title-main {
  white-space: nowrap;
}

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

.page-index__home-content h2,
.page-index__home-content h3 {
  color: #e13923; /* Using the specified red for h2/h3 */
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-index__home-content p {
  margin-bottom: 12px;
}

.page-index__home-content a {
  color: #FFA53A; /* Using auxiliary color for links */
  text-decoration: none;
}

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

.page-index__home-content strong {
  color: #FFB04D; /* Using Glow color for strong text */
}

.page-index__home-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-index__home-content ol li {
  margin-bottom: 8px;
}

.page-index__home-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  color: #FFF3E6;
}

.page-index__home-content td,
.page-index__home-content th {
  border: 1px solid #A84F0C; /* Using Border color for table borders */
  padding: 10px 12px;
  text-align: left;
}

.page-index__home-content th {
  background-color: #17191F; /* Using Card BG color for table headers */
  color: #FFF3E6;
}

.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;
}

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

.page-index__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__button-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

.page-index__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-index__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
}

.page-index__button-inline {
  background: transparent;
  color: #FFB04D; /* Glow color for inline button */
  border: none;
  padding: 0;
  font-weight: bold;
  text-decoration: underline;
}

.page-index__button-inline:hover {
  color: #e13923;
}

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

.page-index__blog-section-title {
  color: #e13923;
  text-align: center;
  margin: 0 0 24px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-index__blog-slider {
  position: relative;
  overflow: hidden;
  /* max-width: 1250px; // Already set on parent section */
  /* margin: 0 auto 40px; // Already set on parent section */
  /* padding: 0 15px; // Already set on parent section */
}

.page-index__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.4s ease;
}

.page-index__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* 3 columns with 20px gap */
  max-width: calc(33.333% - 14px);
  min-width: 0;
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__blog-card-link {
  display: block;
  text-decoration: none;
  color: #FFF3E6;
}

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

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

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

.page-index__blog-card-body h5 {
  color: #e13923; /* Using the specified red for blog card titles */
  margin: 0 0 8px;
  font-size: 1.2em;
  line-height: 1.3;
}

.page-index__blog-card-body p {
  font-size: 0.9em;
  color: #FFF3E6;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFF3E6;
  font-size: 1.5em;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  opacity: 1;
}

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

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

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

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px; /* Keep small top padding */
  }

  .page-index__page-title {
    margin-top: 18px;
    margin-bottom: 12px;
    padding: 0 10px;
    /* font-size handled by browser, no fixed value */
  }

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

  .page-index__home-content {
    padding: 0 10px;
    font-size: 15px;
  }

  .page-index__home-content h2 {
    font-size: 1.5em;
  }

  .page-index__home-content h3 {
    font-size: 1.2em;
  }

  /* Blog Section for Mobile */
  .page-index__blog-section {
    padding: 0 10px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-index__blog-slider-track {
    flex-wrap: wrap;
    justify-content: center; /* Center single column */
  }

  .page-index__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px; /* Add space between cards */
  }

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

  /* General images for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__hero-image,
  .page-index__wp-caption,
  .page-index__blog-card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons for mobile */
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
}