/* style/index.css */

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

/* Hero Slider (Module 1) */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top margin, body handles header offset */
  overflow: hidden;
  max-width: 1920px; /* Constrain max width for large screens */
  margin: 0 auto;
}
.page-index__hero-slider-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.page-index__hero-slider-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  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);
  min-height: 200px; /* Min image size */
}
.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;
  font-size: 24px;
  border-radius: 4px;
}
.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; /* Glow color */
}

/* Spacing (Module 2) */
.page-index__spacing-medium {
  height: 30px;
}

/* Promo Duo (Module 3) */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 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: #111111; /* Card BG */
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid #3A2A12; /* Border */
}
.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  object-fit: cover;
  min-height: 200px; /* Min image size */
}
.page-index__promo-cta--alert {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__promo-cta--alert:hover {
  transform: translateY(-2px);
}

/* Decorative H1 (Module 4) */
.page-index__section-title {
  text-align: center;
  margin: 30px auto 40px;
  max-width: 1250px;
  padding: 0 16px;
  box-sizing: border-box;
}
.page-index__section-title h1 {
  font-size: clamp(24px, 4vw, 48px); /* Clamp for responsive H1 */
  font-weight: 700;
  color: #FFD36B; /* Auxiliary color */
  line-height: 1.2;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

/* Long SEO Body (Module 5) */
.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; /* Glow color */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFD36B;
  background: #111111; /* Card BG */
  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-thumb {
  background-color: #F2C14E; /* Main color for scrollbar */
  border-radius: 20px;
  border: 3px solid #111111; /* Card BG for contrast */
}
.page-index__home-content-inner h2 {
  color: #FFD36B; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 26px;
}
.page-index__home-content-inner h3 {
  color: #F2C14E; /* Main color */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 22px;
}
.page-index__home-content-inner p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.page-index__home-content-inner ul,
.page-index__home-content-inner ol {
  margin-bottom: 15px;
  padding-left: 20px;
  line-height: 1.6;
}
.page-index__home-content-inner li {
  margin-bottom: 8px;
}
.page-index__home-content-inner a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
}
.page-index__home-content-inner a:hover {
  text-decoration: underline;
}
.page-index__home-content-inner figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  background: #111111; /* Card BG */
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.page-index__home-content-inner figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  min-height: 200px; /* Min image size */
}
.page-index__home-content-inner figcaption {
  font-size: 14px;
  color: #FFD36B;
  margin-top: 10px;
}
.page-index__table-container {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
}
.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough to scroll on mobile if needed */
}
.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #3A2A12; /* Border */
  padding: 12px;
  text-align: left;
  color: #FFF6D6; /* Text Main */
}
.page-index__home-content-inner th {
  background: #F2C14E; /* Main color */
  color: #111111; /* Dark text for bright background */
  font-weight: bold;
}
.page-index__home-content-inner tr:nth-child(even) {
  background: #0A0A0A; /* Background color for even rows */
}

/* Blog Card Slider (Module 6) */
.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: 28px;
  font-weight: 700;
}
.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: 15px; /* Space for scrollbar */
}
.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}
.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: #F2C14E; /* Main color */
  border-radius: 10px;
}
.page-index__blog-slider-track::-webkit-scrollbar-track {
  background-color: #3A2A12; /* Border color */
  border-radius: 10px;
}
.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 items on desktop */
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #111111; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.2s ease;
  min-width: 280px; /* Ensure minimum width for card */
}
.page-index__post-item:hover {
  transform: translateY(-5px);
}
.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 aspect 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;
  min-height: 200px; /* Min image size */
}
.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #F2C14E; /* Main color */
  color: #111111; /* Dark text for bright background */
  border: 2px solid #FFD36B; /* Auxiliary color */
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  font-size: 14px;
}
.page-index__post-date-day {
  display: block;
  font-weight: 700;
  font-size: 18px;
}
.page-index__post-date-month {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}
.page-index__post-item h5 {
  text-align: center;
  color: #FFD36B; /* Auxiliary color */
  margin: 12px 8px 6px;
  font-size: 18px;
  line-height: 1.3;
  min-height: 46px; /* Ensure consistent title height */
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-index__post-item p {
  text-align: center;
  color: #FFF6D6; /* Text Main */
  font-size: 14px;
  margin: 0 8px 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  min-height: 40px; /* Ensure consistent summary height */
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: #F2C14E; /* Main color */
  color: #111111; /* Dark text */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease;
}
.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: #FFD36B; /* Auxiliary color */
}

/* Common Responsive Styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}
.page-index__container,
.page-index__section,
.page-index__promo-duo,
.page-index__blog-slider {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.page-index a[class*="button"],
.page-index a[class*="btn"],
.page-index__promo-cta--alert {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-index__hero-slider {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    width: 30px;
    height: 30px;
    font-size: 18px;
    padding: 0;
  }
  .page-index__hero-slider-prev { left: 5px; }
  .page-index__hero-slider-next { right: 5px; }

  .page-index__spacing-medium {
    height: 20px;
  }

  .page-index__promo-duo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }
  .page-index__promo-duo-col {
    padding: 10px;
  }
  .page-index__promo-cta--alert {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-index__section-title {
    margin: 20px auto 30px;
    padding: 0 10px;
  }
  .page-index__section-title h1 {
    font-size: clamp(20px, 6vw, 36px);
  }

  .page-index__home-content {
    height: 60vh; /* Responsive height for scrolling box */
    min-height: 420px;
    max-height: 560px;
    margin: 16px 12px;
    border-width: 3px;
    padding: 5px;
  }
  .page-index__home-content-inner {
    padding: 10px 12px;
  }
  .page-index__home-content-inner h2 {
    font-size: 22px;
  }
  .page-index__home-content-inner h3 {
    font-size: 18px;
  }
  .page-index__table-container {
    overflow-x: auto !important; /* Allow horizontal scroll for tables */
  }
  .page-index__home-content-inner table {
    min-width: 500px; /* Ensure table minimum width for scrolling */
  }
  .page-index__home-content-inner th,
  .page-index__home-content-inner td {
    padding: 8px;
    font-size: 13px;
  }
  .page-index__home-content-inner figure {
    margin: 15px auto;
    padding: 8px;
  }
  .page-index__home-content-inner figcaption {
    font-size: 12px;
  }

  .page-index__blog-slider {
    padding: 0 10px;
    margin: 20px auto;
  }
  .page-index__blog-slider-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-index__blog-slider-wrap {
    gap: 5px;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .page-index__blog-slider-track {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 100%; /* Single item on mobile */
  }
  .page-index__post-item h5 {
    font-size: 16px;
    min-height: auto;
  }
  .page-index__post-item p {
    font-size: 13px;
    min-height: auto;
  }

  /* Force responsive images on mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__container,
  .page-index__section,
  .page-index__promo-duo,
  .page-index__blog-slider,
  .page-index__home-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Force responsive buttons on 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: 10px;
    padding-right: 10px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}