.page-index {
  background: var(--bg-color, #140C0C);
  color: var(--text-main-color, #FFF1E8);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Adjusted for shared header offset */
  overflow: hidden;
  margin-bottom: 0;
}

.page-index__hero-slider-track {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  opacity: 0;
  transition: opacity 0.8s 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);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.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: 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;
  transition: background-color 0.3s ease;
}

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

.page-index__spacing-30 {
  margin-bottom: 30px;
}

.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px auto;
  padding: 0 16px;
}

.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;
  gap: 15px;
}

.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);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: opacity 0.3s ease;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box; /* Button responsiveness */
  white-space: normal; /* Button responsiveness */
  word-wrap: break-word; /* Button responsiveness */
}

.page-index__promo-cta:hover {
  opacity: 0.9;
}

.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 16px;
}

.page-index__section-title h1 {
  color: #E53030; /* Accent color for H1 */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  /* font-size will be inherited/handled by shared.css or browser defaults, avoiding fixed values */
}

.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px;
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid #E53030;
  border-radius: 15px;
  box-shadow: 0 0 20px #E53030;
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* 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: #F3C54D; /* Gold for scrollbar thumb */
  border-radius: 20px;
  border: 3px solid #6A1E1E; /* Border color */
}

.page-index__home-content-inner h2 {
  color: #E53030;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__home-content-inner h3 {
  color: #C61F1F;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

.page-index__home-content-inner p {
  margin-bottom: 15px;
  color: #FFF1E8;
}

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

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

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

.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.3);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-index__milestones,
.page-index__registration-steps,
.page-index__app-steps,
.page-index__future-plans {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #FFF1E8;
}

.page-index__milestones li,
.page-index__registration-steps li,
.page-index__app-steps li,
.page-index__future-plans li {
  margin-bottom: 8px;
}

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

.page-index__content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background-color: #2A1212;
  color: #FFF1E8;
  min-width: 600px; /* Ensure table content doesn't get too squeezed on smaller desktops */
}

.page-index__content-table th,
.page-index__content-table td {
  border: 1px solid #6A1E1E;
  padding: 12px 15px;
  text-align: left;
}

.page-index__content-table th {
  background-color: #C61F1F;
  color: #FFF1E8;
  font-weight: bold;
  text-transform: uppercase;
}

.page-index__content-table tbody tr:nth-child(even) {
  background-color: #1a0d0d;
}

.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
  color: #FFF1E8;
}

.page-index__blog-slider-title {
  text-align: center;
  color: #E53030; /* Accent color for title */
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 600;
}

.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__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: 5;
  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);
}

.page-index__post-item {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #2A1212; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  min-width: 250px; /* Ensure minimum width for desktop cards */
}

.page-index__post-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__post-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  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; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index__post-date {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #FFF1E8; /* Text Main for background */
  border: 2px solid #C61F1F; /* Main color for border */
  border-radius: 2px;
  padding: 4px 8px;
  text-align: center;
  line-height: 1.2;
  color: #C61F1F; /* Main color for text */
}

.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: #F3C54D; /* Gold for post titles */
  margin: 12px 8px 6px;
  font-weight: 600;
}

.page-index__post-item p {
  text-align: center;
  color: #AAA;
  font-size: 14px;
  margin: 0 8px 8px;
}

/* General image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-index__hero-slider {
    padding-top: 10px !important;
  }

  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

  .page-index__promo-duo {
    padding: 0 10px;
  }

  .page-index__promo-duo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-index__promo-cta {
    padding: 12px 15px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__section-title {
    margin: 20px auto;
    padding: 0 10px;
  }

  .page-index__section-title h1 {
    font-size: 2em; /* Using em for relative sizing */
  }

  .page-index__home-content {
    height: 60vh;
    min-height: 420px;
    max-height: 560px;
    margin: 16px 10px;
    border-width: 3px;
  }

  .page-index__home-content-inner {
    padding: 10px;
  }

  .page-index__home-content-inner h2 {
    font-size: 1.5em;
  }

  .page-index__home-content-inner h3 {
    font-size: 1.2em;
  }

  .page-index__table-wrapper {
    overflow-x: auto;
    border-width: 1px;
  }

  .page-index__content-table {
    min-width: 500px;
  }

  .page-index__content-table th,
  .page-index__content-table td {
    padding: 10px;
    font-size: 0.9em;
  }

  .page-index__blog-slider {
    padding: 0 10px;
    margin: 20px auto;
  }

  .page-index__blog-slider-wrap {
    gap: 5px;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    padding: 6px 10px;
    font-size: 18px;
  }

  .page-index__post-item {
    flex: 0 0 100%;
    min-width: unset;
  }

  .page-index__post-item h5 {
    font-size: 1.1em;
  }

  .page-index__post-item p {
    font-size: 13px;
  }

  /* Universal image and container responsiveness for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__hero-slider,
  .page-index__promo-duo,
  .page-index__section-title,
  .page-index__home-content,
  .page-index__blog-slider,
  .page-index__promo-duo-col,
  .page-index__promo-duo-grid,
  .page-index__blog-slider-wrap,
  .page-index__blog-slider-track,
  .page-index__post-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-index__promo-duo-grid,
  .page-index__blog-slider-track {
    flex-wrap: nowrap; /* Maintain horizontal scroll for sliders */
    gap: 15px;
  }

  .page-index__promo-duo-grid {
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__promo-duo-col {
    padding-left: 0;
    padding-right: 0;
  }

  .page-index__home-content,
  .page-index__blog-slider {
    padding-left: 0;
    padding-right: 0;
  }
}