/* style/index.css */

/* General page styling */
.page-index {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Default text color */
  background-color: #0A0A0A; /* Default page background */
  line-height: 1.6;
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.page-index__hero-slider-slide {
  flex: 0 0 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.page-index__hero-slider-slide.is-active {
  opacity: 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);
  max-width: 100%; /* Ensure responsiveness */
  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;
  z-index: 10;
  border-radius: 50%;
  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: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.page-index__hero-slider-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}
.page-index__hero-slider-dot.is-active {
  background: #FFD36B;
}

/* Module 2: Spacing */
.page-index__spacing-30 {
  margin-bottom: 30px;
}

/* Module 3: Promo Duo + CTA */
.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;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__promo-duo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  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 gradient */
  color: #FFF6D6; /* Button text color */
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  border: none;
  cursor: pointer;
}
.page-index__promo-cta--alert {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Consistent button style */
  color: #FFF6D6;
}
.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 {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 700;
  color: #F2C14E; /* Brand color for H1 */
  line-height: 1.2;
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Module 5: Long SEO Content (Scrolling Box) */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #FFD36B; /* Border color from custom palette */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFD36B; /* Glow color from custom palette */
  background: #111111; /* Card BG color */
  color: #FFF6D6; /* Text Main color */
  overflow: hidden; /* Important for scrolling container */
}
.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; /* Example scrollbar thumb color */
  border-radius: 20px;
  border: 3px solid #FFD36B; /* Scrollbar border color */
}
.page-index__home-content-inner h2 {
  color: #F2C14E; /* Main brand color for H2 */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
}
.page-index__home-content-inner h3 {
  color: #FFD36B; /* Auxiliary brand color for H3 */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 20px;
}
.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;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__home-content-inner figcaption {
  font-size: 14px;
  color: #CCC;
  margin-top: 10px;
}
.page-index__home-content-inner p {
  margin-bottom: 1em;
}
.page-index__home-content-inner ul,
.page-index__home-content-inner ol {
  margin-left: 20px;
  margin-bottom: 1em;
}
.page-index__home-content-inner li {
  margin-bottom: 0.5em;
}
.page-index__home-content-inner a {
  color: #FFD36B; /* Link color */
  text-decoration: none;
}
.page-index__home-content-inner a:hover {
  text-decoration: underline;
}
.page-index__quick-access-link {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}
.page-index__quick-access-link:hover {
  opacity: 0.9;
  text-decoration: none;
}
.page-index__table-wrapper {
  overflow-x: auto; /* For responsive tables */
  margin: 20px 0;
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  background: #0A0A0A; /* Background for table wrapper */
}
.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table content doesn't get too narrow */
}
.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #3A2A12; /* Border color */
  padding: 10px;
  text-align: left;
  color: #FFF6D6; /* Text Main color */
}
.page-index__home-content-inner th {
  background-color: #F2C14E; /* Main brand color for table header */
  color: #0A0A0A; /* Dark text on brand color */
  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 brand color for H3 */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 28px;
}
.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: #FFD36B; /* Scrollbar thumb color */
  border-radius: 10px;
  border: 2px solid #0A0A0A; /* Scrollbar border color */
}
.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: #111111; /* Card BG color */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.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: 8px 8px 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: #FFF6D6; /* Text Main color as background */
  border: 2px solid #F2C14E; /* Main brand color for border */
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #F2C14E; /* Main brand 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: #F2C14E; /* Main brand color for H5 */
  margin: 12px 10px 6px;
  font-size: 18px;
  line-height: 1.3;
}
.page-index__post-item p {
  text-align: center;
  color: #CCC; /* Lighter text for summary */
  font-size: 14px;
  margin: 0 10px 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.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;
  z-index: 10;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.page-index__blog-slider-prev { left: 0; }
.page-index__blog-slider-next { right: 0; }

.page-index__view-all-posts {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__view-all-posts:hover {
  opacity: 0.9;
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Universal image responsiveness for content area */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Universal button responsiveness for content area */
  .page-index__promo-cta,
  .page-index__view-all-posts,
  .page-index__quick-access-link {
    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;
  }
}