/* ============================================================
   style/index.css – Trang chủ 788win
   BEM: .page-index__*
   Palette: primary #2F6BFF, secondary #6FA3FF
   ============================================================ */

.page-index {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.page-index__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- HERO ---------- */
.page-index__hero-section {
  padding-top: 10px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #EAF1FF 0%, #F4F7FB 100%);
}

.page-index__hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-index__hero-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(47, 107, 255, 0.22);
  border: 1px solid #D6E2FF;
}

.page-index__hero-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.page-index__hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.06);
}

.page-index__hero-content h1 {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1F2D3D;
  margin: 0;
}

.page-index__hero-lead {
  font-size: 1rem;
  color: #3a4a5c;
  margin: 0;
}

/* ---------- OFFER GRID ---------- */
.page-index__offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-index__offer-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #EFF5FF 0%, #E1EBFF 100%);
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  text-align: center;
}

.page-index__offer-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #2F6BFF;
  line-height: 1.3;
  word-break: break-word;
}

.page-index__offer-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1F2D3D;
}

/* ---------- CATEGORY PILLS ---------- */
.page-index__category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-index__category-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #A5C4FF;
  color: #1F2D3D;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- BUTTONS ---------- */
.page-index__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-index__btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 1px solid #2F6BFF;
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.35);
}

.page-index__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.42);
}

.page-index__btn--secondary {
  background: #FFFFFF;
  color: #1F2D3D;
  border: 2px solid #2F6BFF;
}

.page-index__btn--secondary:hover {
  background: #EFF5FF;
  transform: translateY(-2px);
}

.page-index__btn--outline {
  background: transparent;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-index__btn--outline:hover {
  background: #2F6BFF;
  color: #FFFFFF;
}

/* ---------- GENERAL SECTIONS ---------- */
.page-index__intro-section,
.page-index__categories-section,
.page-index__promo-section,
.page-index__guide-section,
.page-index__blog-section,
.page-index__faq-section {
  padding: 48px 0;
}

.page-index__section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1F2D3D;
  margin: 0 0 18px;
  line-height: 1.3;
}

.page-index__section-text {
  font-size: 1rem;
  color: #3a4a5c;
  margin: 0 0 16px;
}

/* ---------- CATEGORY GRID ---------- */
.page-index__category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.page-index__category-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-index__category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.18);
}

.page-index__category-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #D6E2FF;
}

.page-index__category-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2F6BFF;
  margin: 14px 16px 6px;
}

.page-index__category-card-desc {
  font-size: 0.92rem;
  color: #3a4a5c;
  margin: 0 16px 18px;
}

/* ---------- PROMO ---------- */
.page-index__promo-section {
  background: #FFFFFF;
  border-top: 1px solid #D6E2FF;
  border-bottom: 1px solid #D6E2FF;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.page-index__promo-card {
  background: linear-gradient(180deg, #F6F9FF 0%, #EAF1FF 100%);
  border: 1px solid #D6E2FF;
  border-radius: 14px;
  padding: 24px 20px;
}

.page-index__promo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2F6BFF;
  margin: 0 0 10px;
}

.page-index__promo-desc {
  font-size: 0.94rem;
  color: #3a4a5c;
  margin: 0;
}

.page-index__promo-note {
  margin-top: 22px;
  font-size: 0.94rem;
  color: #3a4a5c;
}

.page-index__inline-link {
  color: #2F6BFF;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- GUIDE ---------- */
.page-index__guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.page-index__guide-step {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
}

.page-index__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 14px;
}

.page-index__step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1F2D3D;
  margin: 0 0 8px;
}

.page-index__step-text {
  font-size: 0.94rem;
  color: #3a4a5c;
  margin: 0;
}

/* ---------- BLOG ---------- */
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 26px;
}

.page-index__blog-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.16);
}

.page-index__blog-card img {
  display: block;
  width: 100%;
  height: auto;
}

.page-index__blog-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2F6BFF;
  margin: 14px 16px 6px;
}

.page-index__blog-desc {
  font-size: 0.9rem;
  color: #3a4a5c;
  margin: 0 16px 18px;
}

/* ---------- CTA ---------- */
.page-index__cta-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #2F6BFF 0%, #1E4FCC 100%);
}

.page-index__cta-container {
  text-align: center;
}

.page-index__cta-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.page-index__cta-text {
  font-size: 1rem;
  color: #EAF1FF;
  margin: 0 auto 24px;
  max-width: 760px;
}

.page-index__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.page-index__cta-actions .page-index__btn--secondary {
  background: #FFFFFF;
  color: #1F2D3D;
  border: 2px solid #FFFFFF;
}

.page-index__cta-actions .page-index__btn--secondary:hover {
  background: #EAF1FF;
  color: #1F2D3D;
}

/* ---------- FAQ ---------- */
.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.page-index__faq-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  padding: 16px 20px;
}

.page-index__faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none;
}

.page-index__faq-question::-webkit-details-marker {
  display: none;
}

.page-index__faq-answer {
  font-size: 0.94rem;
  color: #3a4a5c;
  margin: 12px 0 0;
}

/* ============================================================
   RESPONSIVE – max-width 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .page-index__category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE – max-width 768px
   ============================================================ */
@media (max-width: 768px) {
  .page-index {
    overflow-x: hidden;
  }

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

  .page-index__hero-section {
    padding-top: 10px;
    padding-bottom: 24px;
  }

  .page-index__hero-container {
    width: 100%;
    padding: 0 14px;
    gap: 16px;
  }

  .page-index__hero-content {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .page-index__hero-content h1 {
    line-height: 1.3;
  }

  .page-index__hero-lead {
    font-size: 0.95rem;
  }

  .page-index__offer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-index__offer-number {
    font-size: 1.05rem;
  }

  .page-index__category-pills {
    gap: 8px;
  }

  .page-index__category-pill {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .page-index__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__btn {
    width: 100%;
    max-width: 100%;
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  .page-index__intro-section,
  .page-index__categories-section,
  .page-index__promo-section,
  .page-index__guide-section,
  .page-index__blog-section,
  .page-index__faq-section {
    padding: 32px 0;
  }

  .page-index__container {
    padding: 0 14px;
  }

  .page-index__section-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

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

  .page-index__category-card-title {
    font-size: 0.98rem;
    margin: 12px 12px 4px;
  }

  .page-index__category-card-desc {
    font-size: 0.86rem;
    margin: 0 12px 14px;
  }

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

  .page-index__guide-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-index__cta-section {
    padding: 38px 0;
  }

  .page-index__cta-title {
    font-size: 1.4rem;
  }

  .page-index__cta-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__faq-item {
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .page-index__category-grid {
    grid-template-columns: 1fr;
  }
}