/* style/index.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  line-height: 1.6;
  background-color: var(--background-color); /* Sử dụng màu nền từ tùy chỉnh */
}

.page-index__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-main-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-description--light {
  color: #e0e0e0;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__center-cta {
  margin-top: 40px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với padding-top của body */
  background-color: var(--background-color);
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__hero-content h1 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
}

.page-index__hero-content p {
  font-size: 18px;
  color: var(--text-main-color);
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-index__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Intro Section */
.page-index__intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__intro-text {
  flex: 1;
}

.page-index__intro-text p {
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-index__intro-image {
  flex: 1;
  min-width: 300px;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Quick Access Section */
.page-index__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-index__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__quick-link-card p {
  font-size: 15px;
  opacity: 0.9;
}

/* Games Section */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__game-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px;
  max-height: 250px;
}

.page-index__game-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.page-index__game-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index__game-card h3 a:hover {
  text-decoration: underline;
}

.page-index__game-card p {
  font-size: 15px;
  color: var(--text-main-color);
  opacity: 0.8;
}

/* Promotions Section */
.page-index__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  color: #ffffff;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-index__promotion-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-height: 200px;
  max-height: 250px;
}

.page-index__promotion-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.page-index__promotion-card h3 a {
  color: #ffffff;
  text-decoration: none;
}

.page-index__promotion-card h3 a:hover {
  text-decoration: underline;
}

.page-index__promotion-card p {
  font-size: 15px;
  opacity: 0.9;
}

/* Security & Support Section */
.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__security-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-index__security-item img {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 15px auto;
  display: block;
  object-fit: contain;
  min-
}

.page-index__security-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-index__security-item p {
  font-size: 15px;
  color: var(--text-main-color);
  opacity: 0.8;
}

/* FAQ Section */
details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 12px 12px;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

/* Blog Section */
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__blog-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__blog-card h3 {
  font-size: 20px;
  margin: 15px 20px 10px 20px;
  line-height: 1.4;
}

.page-index__blog-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index__blog-card h3 a:hover {
  text-decoration: underline;
}

.page-index__blog-card p {
  font-size: 15px;
  color: var(--text-main-color);
  margin: 0 20px 15px 20px;
  opacity: 0.8;
}

.page-index__blog-date {
  font-size: 14px;
  color: #666;
  margin: 0 20px 10px 20px;
  opacity: 0.7;
}

.page-index__read-more {
  display: inline-block;
  margin: 0 20px 20px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.page-index__read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .page-index__intro-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__intro-text, .page-index__intro-image {
    flex: none;
    width: 100%;
  }

  .page-index__section-title {
    font-size: 30px;
  }

  .page-index__hero-content h1 {
    font-size: clamp(24px, 6vw, 40px);
  }

  .page-index__hero-content p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 40px 15px;
  }

  .page-index__hero-section {
    padding-top: 10px !important; /* body padding handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-image img {
    border-radius: 4px;
  }

  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__quick-link-card,
  .page-index__game-card,
  .page-index__promotion-card,
  .page-index__security-item,
  .page-index__blog-card {
    padding: 20px;
  }

  .page-index__quick-link-card h3,
  .page-index__game-card h3,
  .page-index__promotion-card h3,
  .page-index__security-item h3,
  .page-index__blog-card h3 {
    font-size: 18px;
  }

  .page-index__faq-qtext {
    font-size: 16px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }

  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
}