/* ===== Base ===== */
.page-index { color: #F3F8FF; background-color: #08162B; }
.page-index img { max-width: 100%; height: auto; display: block; }

/* ===== HERO ===== */
.page-index__hero-section { position: relative; width: 100%; overflow: hidden; padding-top: 0; margin-top: 0; background: #08162B; }
.page-index__hero-carousel { position: relative; width: 100%; }
.page-index__hero-slide { display: none; width: 100%; }
.page-index__hero-slide.is-active { display: block; }
.page-index__hero-image { width: 100%; height: auto; display: block; }
.page-index__hero-prev,
.page-index__hero-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(8, 22, 43, 0.7); color: #F3F8FF; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.25s ease; }
.page-index__hero-prev:hover,
.page-index__hero-next:hover { background: #1D5FD1; }
.page-index__hero-prev { left: 16px; }
.page-index__hero-next { right: 16px; }
.page-index__hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.page-index__hero-dots button { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: rgba(243, 248, 255, 0.4); cursor: pointer; transition: background 0.25s ease; }
.page-index__hero-dots button.is-active { background: #F2C14E; }

/* ===== BANNER THUMBS ===== */
.page-index__banner-section { max-width: 1200px; margin: 16px auto; padding: 0 16px; }
.page-index__banner-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.page-index__banner-thumbs a { display: block; overflow: hidden; border-radius: 10px; border: 1px solid #244D84; transition: transform 0.25s ease, border-color 0.25s ease; }
.page-index__banner-thumbs a:hover { transform: translateY(-2px); border-color: #4FA8FF; }
.page-index__banner-thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* ===== INTRO ===== */
.page-index__intro-section { max-width: 1200px; margin: 0 auto; padding: 32px 16px 40px; }
.page-index__intro-section h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; margin: 0 0 16px; color: #F3F8FF; font-weight: 700; max-width: 900px; }
.page-index__intro-lead { font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 1.7; color: #AFC4E8; margin: 0 0 28px; max-width: 820px; }
.page-index__offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.page-index__offer-card { background: #10233F; border: 1px solid #244D84; border-radius: 12px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.page-index__offer-label { font-size: 0.9rem; color: #AFC4E8; letter-spacing: 0.02em; }
.page-index__offer-number { font-size: 1.5rem; font-weight: 800; color: #F2C14E; line-height: 1.2; }
.page-index__category-pills { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.page-index__category-pills li { margin: 0; }
.page-index__category-pills a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid #244D84; background: #10233F; color: #F3F8FF; font-size: 0.92rem; text-decoration: none; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.page-index__category-pills a:hover { background: #1D5FD1; border-color: #4FA8FF; color: #FFFFFF; }
.page-index__intro-body h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; margin: 30px 0 14px; color: #4FA8FF; font-weight: 700; }
.page-index__intro-body p { font-size: 1rem; line-height: 1.85; color: #F3F8FF; margin: 0 0 16px; }
.pa ge-index__intro-body p:last-child { margin-bottom: 0; }

/* ===== POSTS ===== */
.page-index__posts-section { max-width: 1200px; margin: 0 auto; padding: 40px 16px; border-top: 1px solid #1B3357; }
.page-index__posts-section h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); color: #F3F8FF; margin: 0 0 22px; }
.page-index__posts-wrapper { position: relative; }
.page-index__posts-track { display: flex; gap: 16px; overflow: hidden; }
.page-index__post-card { flex: 0 0 calc(25% - 12px); background: #10233F; border: 1px solid #244D84; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, border-color 0.25s ease; }
.page-index__post-card:hover { transform: translateY(-3px); border-color: #4FA8FF; }
.page-index__post-card img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.page-index__post-date { font-size: 0.8rem; color: #AFC4E8; padding: 12px 14px 0; }
.page-index__post-title { font-size: 1rem; line-height: 1.4; margin: 8px 14px 6px; color: #F3F8FF; }
.page-index__post-title a { color: #F3F8FF; text-decoration: none; }
.page-index__post-title a:hover { color: #4FA8FF; }
.page-index__post-more { display: inline-block; margin: 0 14px 16px; color: #4FA8FF; font-size: 0.88rem; text-decoration: none; }
.page-index__post-more:hover { text-decoration: underline; }
.page-index__posts-prev,
.page-index__posts-next { position: absolute; top: 40%; transform: translateY(-50%); width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(8, 22, 43, 0.85); color: #F3F8FF; font-size: 24px; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background 0.25s ease; }
.page-index__posts-prev:hover,
.page-index__posts-next:hover { background: #1D5FD1; }
.page-index__posts-prev { left: -8px; }
.page-index__posts-next { right: -8px; }

/* ===== PROMO ===== */
.page-index__promo-section { max-width: 1200px; margin: 0 auto; padding: 40px 16px; text-align: center; }
.page-index__promo-section h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); color: #F3F8FF; margin: 0 0 12px; }
.page-index__promo-desc { color: #AFC4E8; max-width: 720px; margin: 0 auto 24px; line-height: 1.6; }
.page-index__promo-link { display: block; max-width: 720px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid #244D84; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
.page-index__promo-link img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* ===== LIST ===== */
.page-index__list-section { max-width: 1200px; margin: 0 auto; padding: 40px 16px; border-top: 1px solid #1B3357; }
.page-index__list-section h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); color: #F3F8FF; margin: 0 0 22px; }
.page-index__list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.page-index__list-item { background: #10233F; border: 1px solid #244D84; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, border-color 0.25s ease; }
.page-index__list-item:hover { transform: translateY(-3px); border-color: #4FA8FF; }
.page-index__list-item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.page-index__list-item h3 { font-size: 1.05rem; line-height: 1.4; margin: 14px 16px 8px; }
.page-index__list-item h3 a { color: #F3F8FF; text-decoration: none; }
.page-index__list-item h3 a:hover { color: #4FA8FF; }
.page-index__list-item p { font-size: 0.92rem; line-height: 1.6; color: #AFC4E8; margin: 0 16px 18px; }

/* ===== FAQ ===== */
.page-index__faq-section { max-width: 900px; margin: 0 auto; padding: 40px 16px; border-top: 1px solid #1B3357; }
.page-index__faq-section h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); color: #F3F8FF; margin: 0 0 22px; }
.page-index__faq-item { background: #10233F; border: 1px solid #244D84; border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.page-index__faq-item summary { cursor: pointer; font-weight: 600; color: #F3F8FF; list-style: none; position: relative; padding-right: 24px; }
.page-index__faq-item summary::-webkit-details-marker { display: none; }
.page-index__faq-item summary::after { content: '+'; position: absolute; right: 0; top: 0; color: #4FA8FF; font-size: 1.2rem; line-height: 1; }
.page-index__faq-item[open] summary::after { content: '−'; }
.page-index__faq-item p { margin: 12px 0 0; color: #AFC4E8; line-height: 1.7; font-size: 0.95rem; }

/* ===== OVERLAY ===== */
.page-index__overlay-section { position: relative; width: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; margin-top: 30px; }
.page-index__overlay-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-index__overlay-mask { position: absolute; inset: 0; background: rgba(4, 12, 26, 0.7); z-index: 1; }
.page-index__overlay-content { position: relative; z-index: 2; padding: 32px 20px; max-width: 760px; }
.page-index__overlay-content h2 { color: #F3F8FF; font-size: clamp(1.35rem, 2.4vw, 2rem); margin: 0 0 12px; }
.page-index__overlay-content p { color: #E6EFFF; font-size: 1rem; line-height: 1.7; margin: 0; }

/* ===== CTA ===== */
.page-index__cta-section { max-width: 1200px; margin: 40px auto; padding: 0 16px; }
.page-index__cta-link { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid #244D84; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
.page-index__cta-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.page-index__cta-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: linear-gradient(180deg, rgba(8, 22, 43, 0.55) 0%, rgba(8, 22, 43, 0.85) 100%); text-align: center; }
.page-index__cta-title { color: #F3F8FF; font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.page-index__cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.page-index__cta-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; color: #FFFFFF; text-align: center; max-width: 100%; box-sizing: border-box; white-space: normal; word-wrap: break-word; }
.page-index__cta-btn--register { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); box-shadow: 0 6px 18px rgba(43, 115, 246, 0.4); }
.page-index__cta-btn--login { background: #10233F; border: 1px solid #4FA8FF; color: #E6EFFF; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-index__banner-thumbs { grid-template-columns: repeat(2, 1fr); }
  .page-index__offer-grid { grid-template-columns: 1fr; }
  .page-index__posts-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .page-index__post-card { flex: 0 0 85%; scroll-snap-align: start; }
  .page-index__posts-prev,
  .page-index__posts-next { display: none; }
  .page-index__list-grid { grid-template-columns: 1fr; }
  .page-index__hero-prev,
  .page-index__hero-next { width: 36px; height: 36px; font-size: 20px; }
  .page-index__hero-prev { left: 8px; }
  .page-index__hero-next { right: 8px; }
  .page-index__intro-section,
  .page-index__posts-section,
  .page-index__promo-section,
  .page-index__list-section,
  .page-index__faq-section { padding-left: 14px; padding-right: 14px; }
  .page-index__cta-buttons { flex-direction: column; }
  .page-index__cta-btn { width: 100%; }
  .page-index img { max-width: 100%; height: auto; }
  .page-index { overflow-x: hidden; }
}