/* style/index.css */

/* General Page Styling */
.page-index {
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Body Background color */
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top spacing as body handles header offset */
  overflow: hidden;
  max-width: 100vw;
}

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

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-index__hero-slider-slide.is-active {
  opacity: 1;
  position: relative;
}

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

.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;
  z-index: 10;
  border-radius: 4px;
  font-size: 24px;
  line-height: 1;
}

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

.page-index__hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.page-index__hero-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.page-index__hero-slider-dots button.is-active {
  background: #FFD36B;
}

/* Module 2: Spacing */
/* Achieved via margin-top/bottom on adjacent sections */

/* Module 3: Promo Duo */
.page-index__promo-duo {
  margin: 30px auto;
  max-width: 1250px;
  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;
  align-items: center;
}

.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  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: #FFF6D6; /* Text Main color */
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

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

.page-index__promo-cta:hover {
  opacity: 0.9;
  box-shadow: 0 0 10px #FFD36B;
}

/* 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__section-title h1 {
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E;
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

.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-thumb {
  background-color: #4C9BB6;
  border-radius: 20px;
  border: 3px solid #FFD36B;
}

.page-index__home-content-inner h2 {
  color: #F2C14E;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.8em;
  font-weight: 600;
}

.page-index__home-content-inner h3 {
  color: #FFD36B;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.4em;
  font-weight: 500;
}

.page-index__home-content-inner p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #FFF6D6;
}

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

.page-index__home-content-inner ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.page-index__home-content-inner a {
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

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

.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #111111; /* Card BG color */
  color: #FFF6D6;
  border: 1px solid #3A2A12; /* Border color */
}

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

.page-index__home-content-inner table th {
  background: #F2C14E;
  color: #0A0A0A;
  font-weight: bold;
}

/* Module 6: Latest Articles Blog Card 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; /* Auxiliary color */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 2em;
  font-weight: 600;
}

.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;
  padding-bottom: 10px; /* For scrollbar visibility */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}

.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: #FFD36B;
  border-radius: 10px;
}

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

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

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

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

.page-index__post-date {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #F2C14E;
  border: 2px solid #FFD36B;
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
  line-height: 1.2;
  color: #0A0A0A;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

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

.page-index__post-item h5 {
  text-align: center;
  color: #FFD36B; /* Auxiliary color */
  margin: 15px 10px 8px;
  font-size: 1.2em;
  line-height: 1.4;
  min-height: 40px;
}

.page-index__post-item p {
  text-align: center;
  color: #BBB;
  font-size: 0.9em;
  margin: 0 10px 15px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: #F2C14E;
  color: #0A0A0A;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__section-title h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }
  .page-index__home-content {
    max-width: 800px;
    height: 650px;
  }
  .page-index__blog-slider-track {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 calc((100% - 30px) / 3);
  }
}

@media (max-width: 768px) {
  /* Hero Slider */
  .page-index__hero-slider {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }
  .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 12px;
  }
  .page-index__promo-duo-grid {
    grid-template-columns: 1fr !important; /* Single column */
    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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Section Title */
  .page-index__section-title {
    margin: 20px auto;
    padding: 0 12px;
  }
  .page-index__section-title h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  /* Long-form SEO Body */
  .page-index__home-content {
    height: 60vh; /* Responsive height */
    min-height: 420px;
    max-height: 560px;
    margin: 16px 12px;
    border-width: 3px;
    padding: 8px;
  }
  .page-index__home-content-inner {
    padding: 10px 12px;
  }
  .page-index__home-content-inner h2 {
    font-size: 1.5em;
  }
  .page-index__home-content-inner h3 {
    font-size: 1.2em;
  }
  .page-index__home-content-inner p,
  .page-index__home-content-inner ul li {
    font-size: 0.95em;
  }
  .page-index__home-content-inner table {
    display: block;
    overflow-x: auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__home-content-inner table th,
  .page-index__home-content-inner table td {
    white-space: nowrap;
  }
  .page-index__home-content-inner img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Blog Slider */
  .page-index__blog-slider {
    padding: 0 12px;
  }
  .page-index__blog-slider-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-index__blog-slider-wrap {
    gap: 5px;
  }
  .page-index__blog-slider-track {
    gap: 15px;
    padding-bottom: 8px;
  }
  .page-index__post-item {
    flex: 0 0 100% !important; /* Single card mobile */
  }
  .page-index__post-date {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
  }
  .page-index__post-date-day {
    font-size: 16px;
  }
  .page-index__post-date-month {
    font-size: 10px;
  }
  .page-index__post-item h5 {
    font-size: 1.1em;
    margin: 10px 8px 5px;
    min-height: auto;
  }
  .page-index__post-item p {
    font-size: 0.85em;
    margin: 0 8px 10px;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  /* Generic Image and Container Responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__container,
  .page-index__section,
  .page-index__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Generic Button Responsiveness */
  .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-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking or wrapping */
  }
}