/* General styles for .page-index */
.page-index {
  color: #FFF3E6; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Module 1: Hero Slider */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  overflow: hidden;
  max-width: 100%; /* Ensure no overflow */
  box-sizing: border-box;
}

.page-index__hero-slider-track {
  display: flex;
  overflow-x: hidden; /* Hide default scrollbar */
  scroll-snap-type: x mandatory;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  position: relative;
}

.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 images are responsive */
  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;
  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;
}

.page-index__hero-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.page-index__hero-slider-dots button.is-active {
  background: #FFA53A;
}

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

/* Module 3: Promo Duo */
.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;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__promo-duo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #17191F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  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, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__promo-cta:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

/* Module 4: Decorative Main Title (H1) */
.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-weight: 700;
  line-height: 1.3;
  color: #FFA53A; /* Auxiliary color for main title */
  margin: 0;
  padding: 0;
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.4);
}

/* Module 5: Long SEO Text Body (Scrolling Box) */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #FFA53A; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFB04D; /* Glow color */
  background: #17191F; /* Card BG */
  color: #FFF3E6; /* 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: #A84F0C; /* Border color for thumb */
  border-radius: 20px;
  border: 3px solid #FFA53A; /* Auxiliary color for thumb border */
}

.page-index__home-content-inner h2 {
  color: #FF8C1A; /* Primary color for H2 */
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.page-index__home-content-inner h3 {
  color: #FFA53A; /* Auxiliary color for H3 */
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-index__home-content-inner h5 {
  color: #FF8C1A; /* Primary color for H5 */
  margin-top: 20px;
  margin-bottom: 8px;
}

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

.page-index__home-content-inner a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: underline;
}

.page-index__home-content-inner a:hover {
  color: #FF8C1A; /* Primary color on hover */
}

.page-index__home-content-inner strong {
  color: #FF8C1A; /* Primary color for strong text */
}

.page-index__home-content-inner figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  box-sizing: border-box;
}

.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.3);
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__home-content-inner figcaption {
  font-size: 0.9em;
  color: #A84F0C; /* Border color for caption */
  margin-top: 8px;
}

.page-index__home-content-inner ul,
.page-index__home-content-inner ol {
  margin-left: 20px;
  margin-bottom: 1em;
  list-style-type: disc;
}

.page-index__home-content-inner ol {
  list-style-type: decimal;
}

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

.page-index__table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
}

.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough for desktop */
}

.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid #A84F0C; /* Border color */
  padding: 12px 15px;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}

.page-index__home-content-inner th {
  background-color: #D96800; /* Deep Orange */
  font-weight: bold;
}

.page-index__home-content-inner tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-index__quick-access {
  text-align: center;
  font-size: 0.95em;
  margin-top: 15px;
  margin-bottom: 25px;
}

/* 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: #FFA53A; /* Auxiliary color */
  text-transform: uppercase;
  margin-bottom: 25px;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

.page-index__blog-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.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: #A84F0C; /* Border color for thumb */
  border-radius: 20px;
}

.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #17191F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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: inherit;
  display: block;
}