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

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

.page-index-game-features {
  background-color: var(--page-bg);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

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

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

.page-index-game-features__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-game-features__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-index-game-features__hero-content-wrapper {
  width: 100%;
  padding: 40px 0;
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.7) 0%, var(--page-bg) 100%);
  position: relative; /* Ensure content is above gradient */
  z-index: 1;
}

.page-index-game-features__hero-content-wrapper .page-index-game-features__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index-game-features__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  max-width: 900px;
}

.page-index-game-features__subtitle {
  font-size: clamp(1em, 1.5vw, 1.3em);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
}

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

.page-index-game-features__btn-primary,
.page-index-game-features__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-index-game-features__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
}

.page-index-game-features__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-index-game-features__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.3);
}

/* General Section Styling */
.page-index-game-features__section {
  padding: 80px 0;
  text-align: center;
}

.page-index-game-features__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index-game-features__section-description {
  font-size: clamp(1em, 1.2vw, 1.1em);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Card Styling */
.page-index-game-features__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-index-game-features__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-index-game-features__card-title {
  font-size: clamp(1.2em, 1.8vw, 1.5em);
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-game-features__card-text {
  font-size: clamp(0.9em, 1vw, 1em);
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index-game-features__card-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-game-features__card-link:hover {
  background: var(--secondary-color);
}

/* Game Diversity Section */
.page-index-game-features__game-diversity-section {
  background-color: var(--page-bg);
}

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

/* Tech & UX Section */
.page-index-game-features__tech-ux-section {
  background-color: var(--deep-green-color);
  padding: 100px 0;
}

.page-index-game-features__tech-content {
  display: flex;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.page-index-game-features__tech-content .page-index-game-features__text-block {
  flex: 1;
}

.page-index-game-features__tech-content .page-index-game-features__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-game-features__tech-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-index-game-features__tech-ux-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: clamp(1em, 1.1vw, 1.1em);
}

.page-index-game-features__tech-ux-section .page-index-game-features__btn-primary {
  margin-top: 20px;
}

/* Promotions Section */
.page-index-game-features__promotions-section {
  background-color: var(--page-bg);
}

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

.page-index-game-features__promo-card .page-index-game-features__card-image {
  height: 180px;
}

.page-index-game-features__cta-full-width {
  margin-top: 40px;
}

/* Security Section */
.page-index-game-features__security-section {
  background-color: var(--deep-green-color);
  padding: 100px 0;
}

.page-index-game-features__security-content {
  display: flex;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.page-index-game-features__security-content .page-index-game-features__text-block {
  flex: 1;
}

.page-index-game-features__security-content .page-index-game-features__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-game-features__security-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-index-game-features__security-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: clamp(1em, 1.1vw, 1.1em);
}

.page-index-game-features__security-section .page-index-game-features__btn-secondary,
.page-index-game-features__security-section .page-index-game-features__btn-primary {
  margin-right: 15px;
  margin-top: 10px;
  display: inline-block;
}

/* How to Play Section */
.page-index-game-features__how-to-play-section {
  background-color: var(--page-bg);
}

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

.page-index-game-features__step-card .page-index-game-features__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--glow-color);
}

/* FAQ Section */
.page-index-game-features__faq-section {
  background-color: var(--deep-green-color);
  padding: 100px 0;
}

.page-index-game-features__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-index-game-features__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-game-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
  font-size: clamp(1em, 1.2vw, 1.1em);
  position: relative;
  list-style: none; /* For details/summary */
}

.page-index-game-features__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-index-game-features__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

.page-index-game-features__faq-item[open] .page-index-game-features__faq-toggle {
  transform: rotate(45deg);
}

.page-index-game-features__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary);
  font-size: clamp(0.9em, 1vw, 1em);
  line-height: 1.6;
}

/* Bottom CTA Section */
.page-index-game-features__cta-bottom-section {
  background-color: var(--page-bg);
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-index-game-features__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index-game-features__cta-bottom-section .page-index-game-features__section-title {
  color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-game-features__tech-content,
  .page-index-game-features__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index-game-features__tech-content .page-index-game-features__image-block,
  .page-index-game-features__security-content .page-index-game-features__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

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

  .page-index-game-features__container {
    padding: 0 15px;
  }

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

  .page-index-game-features__hero-content-wrapper {
    padding: 20px 0;
  }

  .page-index-game-features__main-title {
    font-size: 2em;
  }

  .page-index-game-features__subtitle {
    font-size: 1em;
  }

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

  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-features__section {
    padding: 60px 0;
  }

  .page-index-game-features__section-title {
    font-size: 1.8em;
  }

  .page-index-game-features__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-index-game-features__card-image {
    height: 150px;
  }

  .page-index-game-features__card-title {
    font-size: 1.2em;
  }

  .page-index-game-features__card-text {
    font-size: 0.9em;
  }

  .page-index-game-features__card-link {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-game-features__tech-ux-section,
  .page-index-game-features__security-section,
  .page-index-game-features__faq-section {
    padding: 60px 0;
  }

  .page-index-game-features__tech-image,
  .page-index-game-features__security-image,
  .page-index-game-features__game-card img,
  .page-index-game-features__promo-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-game-features__game-grid,
  .page-index-game-features__promo-grid,
  .page-index-game-features__step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-game-features__security-section .page-index-game-features__btn-secondary,
  .page-index-game-features__security-section .page-index-game-features__btn-primary {
    margin-right: 0;
    width: 100%;
    margin-bottom: 10px;
  }

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

  .page-index-game-features__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9em;
  }

  .page-index-game-features__cta-bottom-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }
}