.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-index__spacer-30 {
  height: 30px;
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.page-index__hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  position: relative;
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  display: none;
}

.page-index__hero-slider-slide.is-active {
  display: block;
}

.page-index__hero-slider-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 4px;
}

.page-index__hero-slider-prev {
  left: 10px;
}

.page-index__hero-slider-next {
  right: 10px;
}

.page-index__hero-slider-dots {
  text-align: center;
  padding: 10px 0;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.page-index__hero-slider-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.page-index__hero-slider-dot.is-active {
  background: #fff;
}

/* Module 3: Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-index__promo-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-index__promo-duo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Ensure contrast, dark text on bright button */
  font-weight: bold;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__promo-cta:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%); /* Lighter hover effect */
}

.page-index__promo-cta--alert {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111;
}

/* Module 4: Decorative H1 */
.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-index__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: #FFD36B; /* Glow color for main title */
  text-shadow: 0 0 10px rgba(255,211,107,0.5);
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
  clamp(1.8em, 5vw, 2.8em);
}

/* Module 5: Long SEO Content */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #FFD36B; /* Glow color for border */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFD36B;
  background: #111111; /* Card BG, slightly darker than background */
  color: #FFF6D6; /* Text Main */
}

.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px;
  text-align: justify;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.page-index__home-content-inner::-webkit-scrollbar {
  width: 10px;
}

.page-index__home-content-inner::-webkit-scrollbar-track {
  background: #0A0A0A; /* Background color of the scrollbar track */
  border-radius: 10px;
}

.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: #4C9BB6; /* Scrollbar thumb color */
  border-radius: 20px;
  border: 3px solid #FFD36B; /* Border for thumb, Glow color */
}

.page-index__home-content-inner h2 {
  color: #F2C14E; /* Main color for h2 */
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: left;
}

.page-index__home-content-inner h3 {
  color: #FFD36B; /* Auxiliary color for h3 */
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.page-index__home-content-inner p {
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-index__home-content-inner ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-index__home-content-inner ul li {
  margin-bottom: 5px;
}

.page-index__home-content-inner figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

.page-index__home-content-inner figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #FFD36B;
  margin-top: 8px;
}

.page-index__home-content-inner a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-index__home-content-inner a:hover {
  color: #FFD36B;
}

.page-index__quick-link,
.page-index__internal-link {
  color: #F2C14E;
  text-decoration: underline;
}

.page-index__table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
}

.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough for horizontal scroll */
  background-color: #111111; /* Card BG */
}

.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #3A2A12; /* Border color */
  padding: 12px 15px;
  text-align: left;
  color: #FFF6D6;
}

.page-index__home-content-inner th {
  background-color: #F2C14E;
  color: #111111; /* Dark text on main color */
  font-weight: bold;
}

.page-index__home-content-inner tr:nth-child(even) {
  background-color: #0A0A0A; /* Slightly different background for even rows */
}

.page-index__step-list {
  list-style-type: decimal;
  margin-left: 25px;
  color: #FFF6D6;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on bright button */
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
  margin-top: 20px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

/* Module 6: Latest Articles - Blog Slider */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-index__blog-slider-title {
  text-align: center;
  color: #FFD36B; /* Glow color */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 2em;
}

.page-index__blog-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-index__blog-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari */
}

.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 cards on desktop with 20px gap */
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid #3A2A12; /* Border color */
}

.page-index__post-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Fixed 16:9 ratio */
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #111111; /* Card BG for date background */
  border: 2px solid #F2C14E; /* Main color for border */
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #FFF6D6; /* Text Main */
  font-weight: bold;
}

.page-index__post-date-day {
  display: block;
  font-weight: 700;
  font-size: 16px;
}

.page-index__post-date-month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}

.page-index__post-item h5 {
  text-align: center;
  color: #FFD36B; /* Glow color for h5 */
  margin: 12px 8px 6px;
  font-size: 1.1em;
  line-height: 1.4;
}

.page-index__post-item p {
  text-align: center;
  color: #FFF6D6; /* Text Main */
  font-size: 14px;
  margin: 0 8px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 4px;
  flex-shrink: 0;
}

/* General Image and Button Responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index a[class*="button"],
.page-index a[class*="btn"],
.page-index__promo-cta {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
  }

  /* Hero Slider */
  .page-index__hero-slider {
    padding-top: 10px !important; /* Small top padding */
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-index__hero-slider-slide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  /* Promo Duo */
  .page-index__promo-duo {
    padding: 0 10px;
  }

  .page-index__promo-duo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }

  .page-index__promo-duo-col img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__promo-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Decorative H1 */
  .page-index__section-title {
    padding: 0 10px;
  }

  .page-index__main-title {
    font-size: 1.8em; /* Adjusted for mobile */
    line-height: 1.3;
  }

  /* Long SEO Content */
  .page-index__home-content {
    height: 60vh; /* Fixed height for mobile */
    min-height: 420px;
    max-height: 560px;
    margin: 16px 10px;
    border-width: 3px;
    padding: 5px;
    box-sizing: border-box !important;
  }

  .page-index__home-content-inner {
    padding: 8px 10px;
  }

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

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

  .page-index__table-wrapper {
    overflow-x: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__home-content-inner table {
    min-width: 500px; /* Ensure horizontal scroll for smaller screens */
  }

  .page-index__home-content-inner th,
  .page-index__home-content-inner td {
    padding: 10px;
    font-size: 0.9em;
  }

  .page-index__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Blog Slider */
  .page-index__blog-slider {
    padding: 0 10px;
  }

  .page-index__blog-slider-title {
    font-size: 1.5em;
  }

  .page-index__blog-slider-wrap {
    gap: 10px;
  }

  .page-index__post-item {
    flex: 0 0 100%; /* Single card on mobile */
  }

  .page-index__post-cover {
    border-radius: 4px;
  }

  .page-index__post-item h5 {
    font-size: 1em;
    margin: 10px 5px 5px;
  }

  .page-index__post-item p {
    font-size: 13px;
    margin: 0 5px 10px;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  /* General Image Responsiveness for content area */
  .page-index__home-content-inner img,
  .page-index__blog-slider-track img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__home-content-inner .page-index__table-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }

  .page-index__promo-duo-col,
  .page-index__post-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__promo-duo,
  .page-index__blog-slider {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__promo-cta--alert {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__cta-button--primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}