/* style/index-platform-features.css */

/* Biến CSS */
:root {
  --page-index-platform-features-primary-color: #26A9E0;
  --page-index-platform-features-secondary-color: #FFFFFF;
  --page-index-platform-features-text-dark: #333333;
  --page-index-platform-features-text-light: #FFFFFF;
  --page-index-platform-features-bg-dark: #000000; /* From body background */
  --page-index-platform-features-bg-light: #FFFFFF;
  --page-index-platform-features-login-color: #EA7C07;
}

/* Base styles for page content */
.page-index-platform-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-index-platform-features-text-light); /* Default to light text for dark body bg */
  background-color: var(--page-index-platform-features-bg-dark);
}

.page-index-platform-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-index-platform-features__section-title {
  font-size: 2.5em;
  color: var(--page-index-platform-features-text-light);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index-platform-features__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Color contrast specific classes */
.page-index-platform-features__dark-bg {
  background-color: var(--page-index-platform-features-bg-dark);
  color: var(--page-index-platform-features-text-light);
}

.page-index-platform-features__light-bg {
  background-color: var(--page-index-platform-features-bg-light);
  color: var(--page-index-platform-features-text-dark);
}

.page-index-platform-features__light-bg .page-index-platform-features__section-title {
  color: var(--page-index-platform-features-text-dark);
}

.page-index-platform-features__light-bg .page-index-platform-features__text-block {
  color: var(--page-index-platform-features-text-dark);
}

.page-index-platform-features__light-bg h3 {
  color: var(--page-index-platform-features-text-dark);
}

.page-index-platform-features__light-bg a {
  color: var(--page-index-platform-features-primary-color);
}

/* Buttons */
.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-platform-features__btn-primary {
  background-color: var(--page-index-platform-features-primary-color);
  color: var(--page-index-platform-features-text-light);
  border: 2px solid var(--page-index-platform-features-primary-color);
}

.page-index-platform-features__btn-primary:hover {
  background-color: darken(var(--page-index-platform-features-primary-color), 10%);
  border-color: darken(var(--page-index-platform-features-primary-color), 10%);
}

.page-index-platform-features__btn-secondary {
  background-color: transparent;
  color: var(--page-index-platform-features-primary-color);
  border: 2px solid var(--page-index-platform-features-primary-color);
}

.page-index-platform-features__btn-secondary:hover {
  background-color: var(--page-index-platform-features-primary-color);
  color: var(--page-index-platform-features-text-light);
}

.page-index-platform-features__cta-center {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  overflow: hidden;
  text-align: center;
}

.page-index-platform-features__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-index-platform-features__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-index-platform-features__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: var(--page-index-platform-features-text-light);
}

.page-index-platform-features__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index-platform-features__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-platform-features__hero-cta-buttons .page-index-platform-features__btn-primary,
.page-index-platform-features__hero-cta-buttons .page-index-platform-features__btn-secondary {
  font-size: 1.1em;
  padding: 15px 30px;
}

/* Features Section */
.page-index-platform-features__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-platform-features__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--page-index-platform-features-text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-platform-features__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-index-platform-features-primary-color);
}

.page-index-platform-features__feature-description {
  font-size: 1.1em;
  color: var(--page-index-platform-features-text-light);
}

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

.page-index-platform-features__game-card {
  background-color: var(--page-index-platform-features-bg-light);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--page-index-platform-features-text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-platform-features__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index-platform-features__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index-platform-features__game-title a {
  color: var(--page-index-platform-features-primary-color);
  text-decoration: none;
}

.page-index-platform-features__game-title a:hover {
  text-decoration: underline;
}

.page-index-platform-features__game-description {
  font-size: 1em;
  color: var(--page-index-platform-features-text-dark);
}

/* Promotions Section */
.page-index-platform-features__promotion-banner {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Login Guide Section */
.page-index-platform-features__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-top: 20px;
  font-size: 1.1em;
  color: var(--page-index-platform-features-text-dark);
}

.page-index-platform-features__numbered-list li {
  margin-bottom: 10px;
}

.page-index-platform-features__numbered-list strong {
  color: var(--page-index-platform-features-primary-color);
}

/* Mobile App Section */
.page-index-platform-features__app-download-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.page-index-platform-features__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features__app-info {
  flex: 1.5;
  min-width: 300px;
  color: var(--page-index-platform-features-text-light);
}

.page-index-platform-features__app-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--page-index-platform-features-primary-color);
}

.page-index-platform-features__bullet-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-index-platform-features__bullet-list li {
  margin-bottom: 8px;
}

/* FAQ Section */
.page-index-platform-features__faq-list {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-platform-features__faq-item {
  background-color: var(--page-index-platform-features-bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--page-index-platform-features-text-dark);
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-index-platform-features__faq-question:hover {
  background-color: #f0f0f0;
}

.page-index-platform-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-index-platform-features-primary-color);
}

.page-index-platform-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--page-index-platform-features-text-dark);
  font-size: 1.1em;
}

.page-index-platform-features__faq-answer p {
  padding-bottom: 15px;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

.page-index-platform-features__faq-item.active .page-index-platform-features__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

/* Conclusion Section */
.page-index-platform-features__conclusion-section {
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index-platform-features__hero-title {
    font-size: 3em;
  }

  .page-index-platform-features__hero-description {
    font-size: 1.2em;
  }

  .page-index-platform-features__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }

  .page-index-platform-features__hero-content {
    padding: 15px;
  }

  .page-index-platform-features__hero-title {
    font-size: 2.2em;
  }

  .page-index-platform-features__hero-description {
    font-size: 1em;
  }

  .page-index-platform-features__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-platform-features__hero-cta-buttons .page-index-platform-features__btn-primary,
  .page-index-platform-features__hero-cta-buttons .page-index-platform-features__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
    width: 100%;
  }

  .page-index-platform-features__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-platform-features__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-index-platform-features__text-block,
  .page-index-platform-features__feature-description,
  .page-index-platform-features__game-description,
  .page-index-platform-features__bullet-list,
  .page-index-platform-features__numbered-list {
    font-size: 1em;
  }

  .page-index-platform-features__features-grid,
  .page-index-platform-features__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-platform-features__feature-card,
  .page-index-platform-features__game-card {
    padding: 20px;
  }

  .page-index-platform-features__feature-image,
  .page-index-platform-features__game-image {
    height: 180px;
  }

  .page-index-platform-features__app-download-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-index-platform-features__app-image-wrapper,
  .page-index-platform-features__app-info {
    min-width: unset;
    width: 100%;
  }

  .page-index-platform-features__app-image {
    max-width: 300px;
  }

  .page-index-platform-features__app-subtitle {
    font-size: 1.6em;
    text-align: center;
  }

  .page-index-platform-features__bullet-list {
    text-align: left;
  }

  .page-index-platform-features__faq-question {
    font-size: 1.1em;
    padding: 12px 15px;
  }

  /* Mobile responsive images/videos/buttons */
  .page-index-platform-features img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-platform-features video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-platform-features__section,
  .page-index-platform-features__card,
  .page-index-platform-features__container,
  .page-index-platform-features__video-section,
  .page-index-platform-features__video-container,
  .page-index-platform-features__video-wrapper,
  .page-index-platform-features__cta-buttons,
  .page-index-platform-features__button-group,
  .page-index-platform-features__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-platform-features__cta-button,
  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary,
  .page-index-platform-features a[class*="button"],
  .page-index-platform-features 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-left: 15px;
    padding-right: 15px;
  }

  .page-index-platform-features__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure images don't have filters */
.page-index-platform-features img {
  filter: none; /* No CSS filters allowed */
}

/* Ensure content area images are not too small */
.page-index-platform-features__features-section img,
.page-index-platform-features__games-section img,
.page-index-platform-features__promotions-section img,
.page-index-platform-features__mobile-app-section img {
  min-width: 200px;
  min-height: 200px;
}