/* style/index.css */

/* General Page Styles */
.page-index {
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

/* Hero Slider Module 1 */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top spacing as per requirement */
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}
.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);
}
.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;
  transition: background-color 0.3s ease;
}
.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}
.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;
}
.page-index__hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.page-index__hero-slider-dot.is-active {
  background: #fff;
}

/* Spacing Module 2 */
.page-index__spacing-medium {
  margin-bottom: 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;
  align-items: center;
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}
.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  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;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-index__promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Decorative H1 Module 4 */
.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: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFCC66; /* Glow */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin: 0;
}

/* Long SEO Content Module 5 */
.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 for shadow */
  background: rgba(255, 255, 255, 0.92); /* Light background for readability */
}
.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;
  color: #333333; /* Dark text for readability on light background */
}
.page-index__home-content-inner::-webkit-scrollbar {
  width: 10px;
}
.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: #F4D34D; /* Gold */
  border-radius: 20px;
  border: 3px solid #7A0E0E; /* Deep Red */
}
.page-index__home-content-inner h2,
.page-index__home-content-inner h3 {
  color: #C91F17; /* Main Color */
  margin-top: 25px;
  margin-bottom: 15px;
}
.page-index__home-content-inner p {
  margin-bottom: 10px;
  line-height: 1.6;
}
.page-index__home-content-inner a {
  color: #C91F17; /* Main Color for links */
  text-decoration: underline;
}
.page-index__home-content-inner a:hover {
  color: #E53935; /* Auxiliary Color on hover */
}
.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.1);
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}
.page-index__home-content-inner figcaption {
  font-style: italic;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}
.page-index__home-content-inner ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 10px;
  padding-left: 0;
}
.page-index__home-content-inner ul li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #fff;
  border: 1px solid #ddd;
}
.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}
.page-index__home-content-inner th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #333;
}
.page-index__home-content-inner tr:nth-child(even) {
  background-color: #f9f9f9;
}
.page-index__home-content-inner .page-index__quick-links {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}
.page-index__home-content-inner .page-index__quick-links a {
  margin: 0 8px;
  color: #E53935; /* Auxiliary Color */
}

/* 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: #FFCC66; /* Glow */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.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; /* For scrollbar visibility */
}
.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}
.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background-color: #F4D34D; /* Gold */
  border-radius: 10px;
}
.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3); /* Desktop: 3 cards with 20px gap */
  scroll-snap-align: start;
  box-sizing: border-box;
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.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;
}
.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}
.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #FFF5E1; /* Text Main for background */
  border: 2px solid #C91F17; /* Main Color for border */
  border-radius: 2px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #C91F17; /* Main Color for text */
  font-size: 11px;
}
.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: #FFCC66; /* Glow */
  margin: 12px 8px 6px;
  font-size: 1.1em;
  line-height: 1.4;
  min-height: 40px;
}
.page-index__post-item p {
  text-align: center;
  color: #FFF5E1; /* Text Main */
  font-size: 14px;
  margin: 0 8px 15px;
  line-height: 1.5;
  min-height: 60px;
}
.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;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}
.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-index__hero-slider {
    padding-top: 10px !important; /* Small top spacing as per requirement */
  }
  .page-index__hero-slider-slide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__promo-duo {
    padding: 0 15px !important;
  }
  .page-index__promo-duo-grid {
    grid-template-columns: 1fr;
    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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__section-title {
    padding: 0 15px !important;
  }
  .page-index__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-index__home-content {
    height: 60vh;
    min-height: 420px;
    max-height: 560px;
    margin: 16px 12px;
    border-width: 3px;
    max-width: 100% !important;
    width: calc(100% - 24px) !important; /* Adjust for margin */
    box-sizing: border-box !important;
  }
  .page-index__home-content-inner {
    padding: 10px;
  }
  .page-index__home-content-inner table {
    display: block;
    overflow-x: auto;
  }
  .page-index__home-content-inner th,
  .page-index__home-content-inner td {
    white-space: nowrap; /* Prevent text wrap in table cells */
  }
  .page-index__home-content-inner img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__blog-slider {
    padding: 0 15px !important;
  }
  .page-index__blog-slider-track {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 100%; /* Mobile: 1 card per view */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__post-cover img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    font-size: 18px;
    padding: 6px 10px;
  }
  /* Generic image and button responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__promo-duo-col a,
  .page-index__promo-cta,
  .page-index__home-content-inner a[class*="button"],
  .page-index__home-content-inner 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__promo-duo-grid {
    flex-wrap: wrap !important;
    gap: 15px;
  }
  .page-index__promo-duo-col {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}