/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #F0F0F0; /* Màu chữ sáng trên nền tối */
  background-color: #0A192F; /* Nền chính màu xanh đậm */
}

.page-index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-index-hero-section {
  background: linear-gradient(135deg, #0A192F 0%, #1A304F 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.page-index-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-index-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5);
}

.page-index-hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-hero-description {
  font-size: 1.3em;
  color: #E0E0E0;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.page-index-btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-index-btn-primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-index-btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-index-btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index-btn-secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-index-btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-index-lg-btn {
    padding: 18px 45px;
    font-size: 1.2em;
    border-radius: 10px;
}

.page-index-section-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-index-section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-index-text-block {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0px auto 40px auto;
  color: #E0E0E0;
}

.page-index-about-section, .page-index-game-types-section, .page-index-promotions-section, .page-index-guide-section, .page-index-faq-section, .page-index-download-app-section {
  padding: 80px 0;
  background-color: #0A192F;
}

.page-index-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-feature-item {
  text-align: center;
  background-color: #1A304F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-index-feature-item:hover {
  transform: translateY(-10px);
}

.page-index-feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #FFD700);
}

.page-index-feature-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index-feature-description {
  font-size: 1em;
  color: #D0D0D0;
  line-height: 1.6;
}

.page-index-game-grid, .page-index-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index-game-card, .page-index-promo-card {
  background-color: #1A304F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-index-game-card:hover, .page-index-promo-card:hover {
  transform: translateY(-10px);
}

.page-index-game-img, .page-index-promo-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.page-index-game-card:hover .page-index-game-img, .page-index-promo-card:hover .page-index-promo-img {
    filter: brightness(1);
}

.page-index-game-title, .page-index-promo-title {
  font-size: 1.8em;
  color: #FFD700;
  margin: 20px 15px 10px;
}

.page-index-game-description, .page-index-promo-description {
  font-size: 1em;
  color: #D0D0D0;
  line-height: 1.6;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-index-game-card .page-index-btn, .page-index-promo-card .page-index-btn {
  margin: 0 15px 20px;
  width: auto;
}

.page-index-cta-center {
    text-align: center;
    margin-top: 60px;
}

.page-index-detail-pages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-detail-card {
    background-color: #1A304F;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-index-detail-card:hover {
    transform: translateY(-10px);
}

.page-index-detail-card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-index-detail-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-detail-card-title a:hover {
    color: #e6c200;
}

.page-index-detail-card-description {
    font-size: 1em;
    color: #D0D0D0;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-faq-item {
  background-color: #1A304F;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-index-faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-index-faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-index-faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.page-index-faq-answer {
  font-size: 1em;
  color: #D0D0D0;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
}

.page-index-faq-answer.active {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

.page-index-download-app-section {
    background-color: #1A304F;
    padding: 100px 0;
}

.page-index-download-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-index-download-content {
    flex: 1;
    min-width: 300px;
}

.page-index-download-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-index-app-mockup {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.page-index-download-features {
    list-style: none;
    padding: 0;
    margin: 30px 0 40px;
}

.page-index-download-features li {
    font-size: 1.1em;
    color: #E0E0E0;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-index-download-features li::before {
    content: '✓';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-hero-title {
    font-size: 2.8em;
  }
  .page-index-section-title {
    font-size: 2.2em;
  }
  .page-index-download-flex {
      flex-direction: column;
      text-align: center;
  }
  .page-index-download-content, .page-index-download-image {
      min-width: unset;
      width: 100%;
  }
  .page-index-download-features {
      text-align: left;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-index-hero-section {
    padding: 80px 0;
  }
  .page-index-hero-title {
    font-size: 2.2em;
  }
  .page-index-hero-description {
    font-size: 1em;
  }
  .page-index-hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-btn {
    padding: 12px 25px;
    font-size: 1em;
    width: 80%;
    margin: 0 auto;
  }
  .page-index-section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index-about-section, .page-index-game-types-section, .page-index-promotions-section, .page-index-guide-section, .page-index-faq-section, .page-index-download-app-section {
    padding: 60px 0;
  }
  .page-index-feature-item, .page-index-game-card, .page-index-promo-card, .page-index-detail-card {
    padding: 20px;
  }
  .page-index-feature-title, .page-index-game-title, .page-index-promo-title {
    font-size: 1.4em;
  }
  .page-index-text-block {
    font-size: 0.95em;
  }
  .page-index-faq-question {
    font-size: 1.2em;
  }
  .page-index-faq-answer {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-index-hero-title {
    font-size: 1.8em;
  }
  .page-index-hero-description {
    font-size: 0.9em;
  }
  .page-index-btn {
    width: 90%;
  }
  .page-index-section-title {
    font-size: 1.5em;
  }
  .page-index-lg-btn {
      padding: 15px 30px;
      font-size: 1.1em;
  }
}