/* style/index.css */

/* Base styles for the page-index content */
.page-index {
  color: #FFF6D6; /* Text Main color for overall page content */
  background-color: #0A0A0A; /* Background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Slider Module 1 */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, not --header-offset */
  overflow: hidden;
  max-width: 1920px; /* Constrain max width for very large screens */
  margin: 0 auto;
}

.page-index__hero-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.page-index__hero-slider-slide {
  min-width: 100%;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  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);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFF6D6;
  font-size: 2em;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  min-width: 48px; /* Ensure buttons are not too small */
  min-height: 48px;
}

.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

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

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

.page-index__hero-slider-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__hero-slider-dot.is-active {
  background: #FFF6D6;
}

/* Spacing Module 2 */
.page-index__spacing-30 {
  height: 30px;
  width: 100%;
}

/* Promo Duo Module 3 */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px 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 {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  overflow: hidden;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.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; /* Minimum size requirement */
  min-height: 200px;
}

.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: #111111; /* Text color for button */
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 100px; /* Minimum button width */
  min-height: 40px; /* Minimum button height */
}

.page-index__promo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Decorative Main Title Module 4 */
.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; /* Main color */
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 100%;
}

/* Long SEO Content Module 5 */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px; /* Fixed height for desktop */
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #FFD36B;
  border-radius: 15px;
  box-shadow: 0 0 20px #FFD36B;
  background: #111111; /* Card BG */
}

.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: #FFF6D6; /* Text Main color */
}

.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; /* Main color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 2em;
  text-align: center;
}

.page-index__home-content-inner h3 {
  color: #FFD36B; /* Auxiliary color */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.page-index__home-content-inner h4,
.page-index__home-content-inner h5,
.page-index__home-content-inner h6 {
  color: #F2C14E;
  margin-top: 20px;
  margin-bottom: 8px;
}

.page-index__home-content-inner p {
  margin-bottom: 1em;
  color: #FFF6D6;
}

.page-index__home-content-inner ul,
.page-index__home-content-inner ol {
  margin-left: 20px;
  margin-bottom: 1em;
  color: #FFF6D6;
}

.page-index__home-content-inner ul li,
.page-index__home-content-inner ol li {
  margin-bottom: 0.5em;
}

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

.page-index__home-content-inner a:hover {
  color: #F2C14E;
}

.page-index__quick-links {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.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;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

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

.page-index__table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #3A2A12;
  border-radius: 8px;
}

.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  background: #111111; /* Card BG */
  min-width: 600px; /* Ensure table is wide enough to prevent squishing on desktop */
}

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

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

/* 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;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 2em;
}

.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;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, Edge */
}

.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 */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s 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: 4px 4px 0 0;
}

.page-index__post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #F2C14E;
  color: #111111;
  border: 2px solid #FFD36B;
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  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: #FFD36B;
  margin: 12px 8px 6px;
  font-size: 1.2em;
  padding: 0 5px;
}

.page-index__post-item p {
  text-align: center;
  color: #AAA;
  font-size: 14px;
  margin: 0 8px 15px;
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #3A2A12;
  color: #FFF6D6;
  font-size: 2em;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: #F2C14E;
  color: #111111;
}

/* General Image and Button styles for responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-index a[class*="cta"],
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__hero-slider-slide img {
    height: 600px; /* Adjust height for tablets */
  }
  .page-index__section-title h1 {
    font-size: 2.5em;
  }
  .page-index__home-content {
    max-width: 768px;
  }
  .page-index__blog-slider-track {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 calc((100% - 30px) / 2); /* 2 cards on tablet */
  }
}

@media (max-width: 768px) {
  /* Hero Slider */
  .page-index__hero-slider {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }
  .page-index__hero-slider-slide img {
    height: 400px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    font-size: 1.5em;
    padding: 8px 12px;
    min-width: 36px;
    min-height: 36px;
  }
  .page-index__hero-slider-dots {
    bottom: 10px;
  }

  /* Spacing */
  .page-index__spacing-30 { height: 20px; }

  /* Promo Duo */
  .page-index__promo-duo {
    margin-bottom: 20px;
    padding: 0 10px;
  }
  .page-index__promo-duo-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 15px;
  }
  .page-index__promo-duo-col {
    padding: 10px;
  }
  .page-index__promo-duo-col img {
    margin-bottom: 10px;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-index__promo-cta {
    padding: 12px 15px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  /* Long SEO Content */
  .page-index__home-content {
    height: 60vh; /* Responsive height for mobile */
    min-height: 420px;
    max-height: 560px;
    margin: 16px 10px;
    border-width: 3px;
    padding: 8px;
  }
  .page-index__home-content-inner {
    padding: 10px 12px;
  }
  .page-index__home-content-inner h2 {
    font-size: 1.6em;
    margin-top: 20px;
  }
  .page-index__home-content-inner h3 {
    font-size: 1.3em;
    margin-top: 18px;
  }
  .page-index__home-content-inner figure {
    margin: 15px auto;
  }
  .page-index__home-content-inner figure img {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-index__table-wrapper {
    overflow-x: auto !important; /* Ensure table scrolls horizontally */
  }
  .page-index__home-content-inner table {
    min-width: 450px; /* Allow horizontal scroll for smaller tables */
  }

  /* Blog Card Slider */
  .page-index__blog-slider {
    margin: 20px auto;
    padding: 0 10px;
  }
  .page-index__blog-slider-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  .page-index__blog-slider-wrap {
    gap: 5px;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    font-size: 1.2em;
    padding: 6px 9px;
    min-width: 30px;
    min-height: 30px;
  }
  .page-index__blog-slider-track {
    gap: 10px;
  }
  .page-index__post-item {
    flex: 0 0 100%; /* Single card for mobile */
    min-width: 200px; /* Ensure minimum width */
  }
  .page-index__post-cover img {
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-index__post-item h5 {
    font-size: 1.1em;
    margin: 10px 5px 5px;
  }
  .page-index__post-item p {
    font-size: 13px;
    margin: 0 5px 10px;
  }

  /* General Image and Container Mobile Adaptations */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__promo-duo-col,
  .page-index__home-content,
  .page-index__blog-slider {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Button Mobile Adaptations */
  .page-index__promo-cta,
  .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: 10px;
    padding-right: 10px;
  }
}

/* SLO365 visual CSS supplement */
.page-index__hero-slider-slide img { border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.page-index__promo-duo-col img { border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.page-index__section-title { text-align: center; margin: 30px auto; max-width: 1250px; }