/* ===== AC888 Homepage Styles ===== */
.page-index { color: #333333; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.65; background: #FFFFFF; overflow-x: hidden; }
.page-index h1, .page-index h2, .page-index h3 { color: #017439; font-weight: 800; }
.page-index img { display: block; max-width: 100%; height: auto; }

/* ---- Hero ---- */
.page-index__hero-section { position: relative; width: 100%; overflow: hidden; padding-top: 0; margin-top: 0; background: #012b16; }
.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; object-fit: cover; }
.page-index__hero-prev, .page-index__hero-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer; background: rgba(1,116,57,0.85); color: #FFFFFF; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 3; }
.page-index__hero-prev { left: 16px; }
.page-index__hero-next { right: 16px; }
.page-index__hero-prev:hover, .page-index__hero-next:hover { background: #017439; }
.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: 12px; height: 12px; border-radius: 50%; border: 2px solid #FFFFFF; background: transparent; cursor: pointer; padding: 0; }
.page-index__hero-dots button.is-active { background: #FFFF00; border-color: #FFFF00; }

/* ---- 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; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.12); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.page-index__banner-thumbs a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(1,116,57,0.3); }
.page-index__banner-thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---- Sections common ---- */
.page-index__intro-section, .page-index__posts-section, .page-index__promo-section, .page-index__list-section, .page-index__faq-section { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.page-index__main-title { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; margin: 0 0 18px; color: #017439; }
.page-index__lead { font-size: 1.06rem; color: #333333; background: #f2faf6; border-left: 4px solid #017439; padding: 14px 18px; border-radius: 6px; margin: 0 0 24px; }
.page-index__section-title { font-size: 1.5rem; margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #017439; display: inline-block; color: #017439; }
.page-index__sub-title { font-size: 1.18rem; margin: 22px 0 10px; color: #017439; }
.page-index__intro-section p { margin: 0 0 14px; color: #333333; }

/* ---- Offer grid ---- */
.page-index__offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; }
.page-index__offer-card { background: #017439; border-radius: 12px; padding: 22px 16px; text-align: center; color: #FFFFFF; box-shadow: 0 6px 18px rgba(1,116,57,0.28); display: flex; flex-direction: column; gap: 8px; }
.page-index__offer-label { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; color: #FFFFFF; font-weight: 600; }
.page-index__offer-number { font-size: 1.45rem; font-weight: 900; color: #FFFF00; line-height: 1.2; }

/* ---- Category list ---- */
.page-index__category-list { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.page-index__category-list li a { display: inline-block; padding: 9px 18px; border-radius: 30px; background: #f2faf6; color: #017439; text-decoration: none; font-weight: 700; border: 1.5px solid #017439; transition: all 0.2s ease; }
.page-index__category-list li a:hover { background: #017439; color: #FFFFFF; }

/* ---- Posts slider ---- */
.page-index__posts-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.page-index__post-card { flex: 0 0 calc(25% - 12px); min-width: 250px; background: #FFFFFF; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.1); scroll-snap-align: start; border: 1px solid #e5eee9; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.page-index__post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(1,116,57,0.18); }
.page-index__post-card a { text-decoration: none; display: block; color: inherit; }
.page-index__post-card img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.page-index__post-card time { display: block; padding: 12px 14px 0; font-size: 0.83rem; color: #666666; }
.page-index__post-title { font-size: 1rem; padding: 6px 14px 8px; margin: 0; color: #017439; line-height: 1.4; }
.page-index__read-more { display: inline-block; margin: 0 14px 16px; padding: 7px 16px; background: #017439; color: #FFFFFF; border-radius: 20px; font-size: 0.86rem; font-weight: 700; }
.page-index__posts-nav { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.page-index__posts-prev, .page-index__posts-next { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: #017439; color: #FFFFFF; font-size: 22px; line-height: 1; }
.page-index__posts-prev:hover, .page-index__posts-next:hover { background: #015c2d; }

/* ---- Promo ---- */
.page-index__promo-section { text-align: center; }
.page-index__promo-text { max-width: 780px; margin: 0 auto 18px; color: #333333; }
.page-index__promo-image { width: 100%; max-width: 720px; margin: 0 auto; border-radius: 16px; box-shadow: 0 12px 32px rgba(1,116,57,0.22); }
.page-index__promo-link { display: inline-block; margin-top: 20px; padding: 12px 32px; background: #C30808; color: #FFFF00; border-radius: 30px; text-decoration: none; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 18px rgba(195,8,8,0.35); }
.page-index__promo-link:hover { background: #a00606; }

/* ---- List section ---- */
.page-index__list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.page-index__list-item { background: #FFFFFF; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.1); border: 1px solid #e5eee9; }
.page-index__list-item a { text-decoration: none; display: block; color: inherit; }
.page-index__list-item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.page-index__list-title { font-size: 1.08rem; padding: 14px 16px 6px; margin: 0; color: #017439; }
.page-index__list-summary { padding: 0 16px 18px; margin: 0; font-size: 0.93rem; color: #555555; }

/* ---- FAQ ---- */
.page-index__faq-item { background: #FFFFFF; border: 1px solid #d9e7df; border-radius: 10px; margin-bottom: 12px; padding: 0 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.page-index__faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: #017439; font-size: 1.02rem; list-style: none; position: relative; padding-right: 32px; }
.page-index__faq-item summary::-webkit-details-marker { display: none; }
.page-index__faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #017439; font-weight: 700; }
.page-index__faq-item[open] summary::after { content: '−'; }
.page-index__faq-item p { margin: 0 0 16px; color: #333333; }

/* ---- Overlay ---- */
.page-index__overlay-section { position: relative; width: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.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(1,30,16,0.72); z-index: 1; }
.page-index__overlay-content { position: relative; z-index: 2; padding: 40px 20px; max-width: 900px; }
.page-index__overlay-title { color: #FFFFFF; font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 14px; }
.page-index__overlay-text { color: #F0FFF6; margin: 0; font-size: 1rem; }

/* ---- CTA ---- */
.page-index__cta-section { position: relative; width: 100%; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-index__cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-index__cta-mask { position: absolute; inset: 0; background: rgba(0,20,10,0.7); z-index: 1; }
.page-index__cta-content { position: relative; z-index: 2; text-align: center; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 640px; }
.page-index__cta-title { color: #FFFFFF; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.page-index__cta-btn { display: inline-block; padding: 14px 30px; border-radius: 30px; background: #C30808; color: #FFFF00; text-decoration: none; font-weight: 800; font-size: 1rem; max-width: 100%; box-sizing: border-box; white-space: normal; word-wrap: break-word; box-shadow: 0 8px 22px rgba(195,8,8,0.45); }
.page-index__cta-btn:hover { background: #a00606; }
.page-index__cta-btn--login { background: #017439; color: #FFFFFF; box-shadow: 0 8px 22px rgba(1,116,57,0.45); }
.page-index__cta-btn--login:hover { background: #015c2d; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .page-index { max-width: 100%; overflow-x: hidden; }
  .page-index img { max-width: 100% !important; height: auto !important; }
  .page-index__hero-prev, .page-index__hero-next { width: 38px; height: 38px; font-size: 22px; }
  .page-index__banner-thumbs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-index__offer-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-index__category-list { gap: 8px; }
  .page-index__category-list li a { padding: 8px 14px; font-size: 0.9rem; }
  .page-index__post-card { flex: 0 0 85%; min-width: 0; }
  .page-index__list-grid { grid-template-columns: 1fr; }
  .page-index__intro-section, .page-index__posts-section, .page-index__promo-section, .page-index__list-section, .page-index__faq-section { padding: 24px 14px; }
  .page-index__section-title { font-size: 1.25rem; }
  .page-index__cta-content { padding: 24px 14px; width: 100%; }
  .page-index__cta-btn { width: 100%; text-align: center; padding: 13px 16px; font-size: 0.95rem; }
  .page-index__overlay-content { padding: 28px 14px; }
}