/* style/index.css */

/* General Page Styles */
.page-index {
  color: #333333; /* Default text color for light body background */
  background-color: #B71C1C; /* Custom background color */
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  margin-bottom: 30px; /* Spacing for Module 2 */
}
.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}
.page-index__hero-slider-slide.is-active {
  opacity: 1;
  position: relative;
  z-index: 1;
}
.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-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}
.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;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  opacity: 1;
}
.page-index__hero-slider-prev { left: 10px; }
.page-index__hero-slider-next { right: 10px; }
.page-index__hero-slider-dots {
  position: absolute;
  bottom: 20px;
  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;
  transition: background 0.3s;
}
.page-index__hero-slider-dots button.is-active {
  background: #fff;
}

/* Module 3: Promo Duo */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px;
  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 {
  text-align: 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);
  margin-bottom: 15px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}
.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  border: 2px solid #F2B544;
}
.page-index__promo-cta:hover {
  opacity: 0.9;
}

/* 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 {
  color: #FFF5E1; /* Text Main color */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px #FFCC66; /* Glow effect */
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

/* Module 5: Long-form SEO Content */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #F2B544; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFCC66; /* Glow color */
  background: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* 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: #F4D34D; /* Gold color for scrollbar thumb */
  border-radius: 20px;
  border: 3px solid #7A0E0E; /* Deep Red for scrollbar border */
}
.page-index__home-content-inner h2 {
  color: #FFD86A; /* Gold gradient start for titles */
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: bold;
}
.page-index__home-content-inner h3 {
  color: #F4D34D; /* Gold color for sub-titles */
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
}
.page-index__home-content-inner p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.page-index__home-content-inner ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}
.page-index__home-content-inner li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.page-index__home-content-inner a {
  color: #F4D34D; /* Gold for links */
  text-decoration: underline;
}
.page-index__home-content-inner a:hover {
  color: #FFD86A;
}
.page-index__home-content-inner strong {
  color: #FFD86A;
}
.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 12px rgba(0,0,0,0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}
.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 14px;
  color: #FFF5E1;
  margin-top: 10px;
}
.page-index__home-content-inner .page-index__table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}
.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: #7A0E0E; /* Deep Red for table background */
  color: #FFF5E1; /* Text Main for table text */
}
.page-index__home-content-inner table th,
.page-index__home-content-inner table td {
  border: 1px solid #F2B544; /* Border color */
  padding: 10px;
  text-align: left;
}
.page-index__home-content-inner table th {
  background-color: #C91F17; /* Main color for table header */
  font-weight: bold;
}

/* Module 6: 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: #FFF5E1; /* Text Main color */
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 25px;
  text-shadow: 0 0 8px #FFCC66; /* Glow effect */
}
.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; /* Space for scrollbar */
}
.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}
.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: #F4D34D; /* Gold color for scrollbar thumb */
  border-radius: 20px;
  border: 2px solid #7A0E0E; /* Deep Red for scrollbar border */
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  line-height: 1;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  opacity: 1;
}
.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 cards on desktop */
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #D32F2F; /* Card BG color */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.page-index__post-item:hover {
  transform: translateY(-5px);
}
.page-index__post-item a {
  text-decoration: none;
  color: #FFF5E1; /* Text Main color */
  display: block;
}
.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Fixed 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 4px;
}
.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}
.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #FFF5E1; /* Text Main as background */
  border: 2px solid #F2B544; /* Border color */
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #7A0E0E; /* Deep Red for contrast */
  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: #FFD86A; /* Gold gradient start for titles */
  margin: 12px 8px 6px;
  font-size: 16px;
  line-height: 1.3;
  min-height: 42px; /* Ensure consistent title height */
}
.page-index__post-item p {
  text-align: center;
  color: #FFF5E1;
  font-size: 14px;
  margin: 0 8px 15px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 60px; /* Ensure consistent summary height */
}

/* General image and button responsive styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}
.page-index__quick-access-link {
  color: #FFD86A;
  text-decoration: underline;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__hero-slider {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }
  .page-index__hero-slider-dots {
    bottom: 10px;
  }

  .page-index__promo-duo {
    margin-bottom: 20px;
    padding: 0 10px;
  }
  .page-index__promo-duo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .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;
    font-size: 16px;
    padding: 12px 15px;
  }

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

  .page-index__home-content {
    height: 60vh;
    min-height: 420px;
    max-height: 560px;
    margin: 16px 12px;
    border-width: 3px;
    padding: 5px;
  }
  .page-index__home-content-inner {
    padding: 8px 10px;
  }
  .page-index__home-content-inner h2 {
    font-size: 20px;
  }
  .page-index__home-content-inner h3 {
    font-size: 18px;
  }
  .page-index__home-content-inner p,
  .page-index__home-content-inner li,
  .page-index__home-content-inner figcaption {
    font-size: 14px;
  }
  .page-index__home-content-inner .page-index__table-wrapper {
    display: block;
    overflow-x: auto;
  }
  .page-index__home-content-inner table {
    width: max-content; /* Allow table to be wider than container */
    min-width: 100%;
  }
  .page-index__home-content-inner table th,
  .page-index__home-content-inner table td {
    padding: 8px;
    font-size: 14px;
  }

  .page-index__blog-slider {
    margin: 20px auto;
    padding: 0 10px;
  }
  .page-index__blog-slider-title {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 20px;
  }
  .page-index__blog-slider-wrap {
    gap: 5px;
  }
  .page-index__blog-slider-track {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 100%; /* 1 card on mobile */
  }
  .page-index__post-item h5 {
    font-size: 15px;
    min-height: 40px;
  }
  .page-index__post-item p {
    font-size: 13px;
    min-height: 54px;
    -webkit-line-clamp: 3;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    padding: 6px 10px;
    font-size: 18px;
  }

  /* General image and container responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__promo-duo,
  .page-index__section-title,
  .page-index__blog-slider {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Buttons specific mobile overrides */
  .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; 
  }
}