.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF5E1); /* Default to Text Main from custom colors */
  background: var(--background-color, #B71C1C); /* Default to Background from custom colors */
}

.page-index__container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__hero-section {
  padding-top: 10px; /* Assuming shared.css handles body padding-top for header offset */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-index__access-links {
  padding: 30px 15px;
  box-sizing: border-box;
  background: var(--deep-red, #7A0E0E); /* Using Deep Red for this section background */
}

.page-index__access-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__btn-access-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  background: var(--button, linear-gradient(180deg, #FFD86A 0%, #E6B800 100%)); /* Custom Button gradient */
  color: #333333; /* Ensuring contrast on gold button */
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-access-link:hover {
  box-shadow: 0 4px 12px rgba(255, 204, 102, 0.5); /* Glow effect from custom colors */
  transform: translateY(-2px);
  color: #000000;
}

.page-index__brand-intro {
  padding: 40px 15px;
  text-align: center;
  background: var(--background-color, #B71C1C); /* Using main background color */
  color: var(--text-main, #FFF5E1);
}

.page-index__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Using clamp for responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F4D34D); /* Using Gold for H1 */
  max-width: 100%;
}

.page-index__intro-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: justify;
}

.page-index__intro-link {
  color: var(--gold, #F4D34D);
  text-decoration: underline;
}

.page-index__intro-link:hover {
  color: var(--glow, #FFCC66);
}

.page-index__keyword {
  font-weight: bold;
  color: var(--gold, #F4D34D);
}

.page-index__category-lobby {
  padding: 50px 15px;
  background: var(--deep-red, #7A0E0E);
  color: var(--text-main, #FFF5E1);
}

.page-index__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F4D34D);
  position: relative;
}

.page-index__section-title::before, .page-index__section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background: var(--border, #F2B544);
  transform: translateY(-50%);
}

.page-index__section-title::before {
  left: calc(50% - 100px);
}

.page-index__section-title::after {
  right: calc(50% - 100px);
}

.page-index__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__category-card {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.page-index__category-card-link {
  display: block;
  text-decoration: none;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease;
}

.page-index__category-card-link:hover {
  transform: translateY(-5px);
}

.page-index__category-card-link img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.page-index__blog-slider {
  padding: 50px 15px;
  background: var(--background-color, #B71C1C);
  color: var(--text-main, #FFF5E1);
}

.page-index__section-subtitle {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F4D34D);
  position: relative;
}

.page-index__section-subtitle::before, .page-index__section-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--border, #F2B544);
  transform: translateY(-50%);
}

.page-index__section-subtitle::before {
  left: calc(50% - 90px);
}

.page-index__section-subtitle::after {
  right: calc(50% - 90px);
}

.page-index__blog-slider-wrapper {
  position: relative;
  max-width: 1250px;
  margin: 0 auto;
}

.page-index__blog-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px; /* Space for scrollbar */
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 items visible, accounting for gap */
  scroll-snap-align: start;
  background: var(--card-bg, #D32F2F); /* Custom Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  color: var(--text-main, #FFF5E1);
}

.page-index__image-cover {
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-index__image-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.page-index__post-content {
  padding: 15px;
}

.page-index__post-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__post-title a {
  color: var(--gold, #F4D34D);
  text-decoration: none;
}

.page-index__post-title a:hover {
  text-decoration: underline;
  color: var(--glow, #FFCC66);
}

.page-index__post-excerpt {
  font-size: 0.9em;
  color: var(--text-main, #FFF5E1);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-index__post-date {
  font-size: 0.85em;
  color: rgba(255, 245, 225, 0.7);
  display: block;
  text-align: right;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201, 31, 23, 0.8); /* Primary color with opacity */
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  font-size: 1.5em;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background: var(--primary, #C91F17);
}

.page-index__blog-slider-prev {
  left: 0;
}

.page-index__blog-slider-next {
  right: 0;
}

.page-index__view-all-button {
  text-align: center;
  margin-top: 40px;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button, linear-gradient(180deg, #FFD86A 0%, #E6B800 100%));
  color: #333333; /* Ensuring contrast on gold button */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__btn-primary:hover {
  box-shadow: 0 4px 12px rgba(255, 204, 102, 0.5); /* Glow effect from custom colors */
  transform: translateY(-2px);
  color: #000000;
}

/* --- Responsive Styles --- */
@media (max-width: 849px) {
  .page-index__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
  }
}

@media (max-width: 768px) {
  .page-index__access-links-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .page-index__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

  .page-index__section-title,
  .page-index__section-subtitle {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index__section-title::before, .page-index__section-title::after,
  .page-index__section-subtitle::before, .page-index__section-subtitle::after {
    width: 30px;
  }

  .page-index__section-title::before {
    left: calc(50% - 70px);
  }

  .page-index__section-title::after {
    right: calc(50% - 70px);
  }

  .page-index__section-subtitle::before {
    left: calc(50% - 80px);
  }

  .page-index__section-subtitle::after {
    right: calc(50% - 80px);
  }

  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .page-index__post-item {
    flex: 0 0 85%; /* Show one card on mobile */
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    padding: 8px 12px;
    font-size: 1.2em;
    width: 35px;
    height: 35px;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__hero-section,
  .page-index__access-links,
  .page-index__brand-intro,
  .page-index__category-lobby,
  .page-index__blog-slider,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__btn-primary {
    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;
  }
}

@media (max-width: 549px) {
  .page-index__section-title::before,
  .page-index__section-title::after,
  .page-index__section-subtitle::before,
  .page-index__section-subtitle::after {
    display: none; /* Hide decorative lines on smaller mobile */
  }

  .page-index__blog-slider-prev {
    left: 5px;
  }

  .page-index__blog-slider-next {
    right: 5px;
  }
}