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

:root {
  --af88-primary-color: #11A84E;
  --af88-secondary-color: #22C768;
  --af88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --af88-card-bg: #11271B;
  --af88-background: #08160F;
  --af88-text-main: #F2FFF6;
  --af88-text-secondary: #A7D9B8;
  --af88-border-color: #2E7A4E;
  --af88-glow-color: #57E38D;
  --af88-gold-color: #F2C14E;
  --af88-divider-color: #1E3A2A;
  --af88-deep-green: #0A4B2C;
}

.page-index-core-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--af88-text-main); /* Default text color for dark background */
  background-color: var(--af88-background);
}

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

.page-index-core-features__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-index-core-features__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--af88-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index-core-features__section-description {
  font-size: 1.1em;
  color: var(--af88-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Hero Section --- */
.page-index-core-features__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--af88-deep-green);
}

.page-index-core-features__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 675px; /* Limit height for desktop */
}

.page-index-core-features__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-index-core-features__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--af88-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-index-core-features__description {
  font-size: 1.2em;
  color: var(--af88-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-features__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-core-features__btn-primary,
.page-index-core-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-core-features__btn-primary {
  background: var(--af88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index-core-features__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index-core-features__btn-secondary {
  background: #ffffff;
  color: var(--af88-primary-color);
  border: 2px solid var(--af88-primary-color);
}

.page-index-core-features__btn-secondary:hover {
  background: var(--af88-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Video Section --- */
.page-index-core-features__intro-video-section {
  background-color: var(--af88-background);
  padding: 60px 20px;
  text-align: center;
}

.page-index-core-features__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%; /* Ensure desktop width is 100% */
  box-sizing: border-box;
}

.page-index-core-features__video-wrapper .page-index-core-features__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-index-core-features__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  cursor: pointer;
}

/* --- Features Overview --- */
.page-index-core-features__features-overview {
  background-color: var(--af88-background);
  padding: 60px 0;
}

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

.page-index-core-features__card {
  background-color: var(--af88-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--af88-border-color);
  color: var(--af88-text-main);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-core-features__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-core-features__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-index-core-features__feature-title {
  font-size: 1.8em;
  color: var(--af88-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-core-features__feature-description {
  font-size: 1em;
  color: var(--af88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-core-features__text-link {
  color: var(--af88-secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-core-features__text-link:hover {
  color: var(--af88-gold-color);
}

/* --- Why Choose Us Section --- */
.page-index-core-features__why-choose-us {
  background-color: var(--af88-deep-green);
  padding: 60px 0;
}

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

.page-index-core-features__advantage-title {
  font-size: 1.6em;
  color: var(--af88-text-main);
  margin-bottom: 10px;
}

.page-index-core-features__advantage-description {
  font-size: 1em;
  color: var(--af88-text-secondary);
}

/* --- Game Categories Detail Section --- */
.page-index-core-features__game-categories-detail {
  background-color: var(--af88-background);
  padding: 60px 0;
}

.page-index-core-features__category-item {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--af88-divider-color);
  text-align: center;
}

.page-index-core-features__category-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-index-core-features__category-title {
  font-size: 2.2em;
  color: var(--af88-gold-color);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-index-core-features__category-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  display: block;
}

.page-index-core-features__category-description {
  font-size: 1.1em;
  color: var(--af88-text-secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* --- Promotions Section --- */
.page-index-core-features__promotions-section {
  background-color: var(--af88-deep-green);
  padding: 60px 0;
}

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

.page-index-core-features__promotion-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-index-core-features__promotion-title {
  font-size: 1.8em;
  color: var(--af88-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-core-features__promotion-description {
  font-size: 1em;
  color: var(--af88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-index-core-features__faq-section {
  background-color: var(--af88-background);
  padding: 60px 0;
}

.page-index-core-features__faq-list {
  margin-top: 40px;
}

.page-index-core-features__faq-item {
  margin-bottom: 20px;
  text-align: left;
  background-color: var(--af88-card-bg);
  border: 1px solid var(--af88-border-color);
}

.page-index-core-features__faq-item summary {
  list-style: none;
}

.page-index-core-features__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-core-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--af88-text-main);
  cursor: pointer;
  background-color: var(--af88-deep-green);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-index-core-features__faq-question:hover {
  background-color: var(--af88-primary-color);
}

.page-index-core-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--af88-gold-color);
}

.page-index-core-features__faq-answer {
  padding: 20px 30px;
  font-size: 1em;
  color: var(--af88-text-secondary);
  border-top: 1px solid var(--af88-border-color);
}

.page-index-core-features__faq-answer p {
  margin: 0;
}

.page-index-core-features__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* --- Final CTA Section --- */
.page-index-core-features__final-cta {
  background-color: var(--af88-deep-green);
  padding: 60px 0;
  text-align: center;
}

/* --- Copyright --- */
.page-index-core-features__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: var(--af88-text-secondary);
  background-color: var(--af88-background);
  border-top: 1px solid var(--af88-divider-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-features__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-index-core-features__description {
    font-size: 1.1em;
  }

  .page-index-core-features__feature-grid,
  .page-index-core-features__advantage-grid,
  .page-index-core-features__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-core-features {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-core-features__content-area,
  .page-index-core-features__hero-section,
  .page-index-core-features__intro-video-section,
  .page-index-core-features__features-overview,
  .page-index-core-features__why-choose-us,
  .page-index-core-features__game-categories-detail,
  .page-index-core-features__promotions-section,
  .page-index-core-features__faq-section,
  .page-index-core-features__final-cta {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-index-core-features__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-index-core-features__hero-image,
  .page-index-core-features__feature-icon,
  .page-index-core-features__category-image,
  .page-index-core-features__promotion-image,
  .page-index-core-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-core-features__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index-core-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-core-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-core-features__btn-primary,
  .page-index-core-features__btn-secondary,
  .page-index-core-features a[class*="button"],
  .page-index-core-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-core-features__feature-grid,
  .page-index-core-features__advantage-grid,
  .page-index-core-features__promotion-grid {
    grid-template-columns: 1fr;
  }

  .page-index-core-features__card {
    padding: 20px;
  }

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

  .page-index-core-features__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-core-features__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-index-core-features__description {
    font-size: 1em;
  }

  .page-index-core-features__section-title {
    font-size: clamp(1.6em, 5vw, 2.2em);
  }

  .page-index-core-features__feature-title,
  .page-index-core-features__advantage-title,
  .page-index-core-features__promotion-title {
    font-size: 1.5em;
  }

  .page-index-core-features__category-title {
    font-size: 1.8em;
  }
}