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

/* Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-red: #C30808;
  --accent-yellow: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #121212;
  --background-light: #ffffff;
  --card-bg-dark-opacity: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page content */
.page-index-game-features {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Body background from shared.css */
}

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

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

.page-index-game-features__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-index-game-features__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-index-game-features__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

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

.page-index-game-features__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-index-game-features__main-title {
  color: var(--accent-yellow);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive H1 font size */
}

.page-index-game-features__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index-game-features__btn-primary,
.page-index-game-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-index-game-features__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
}

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

.page-index-game-features__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

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

.page-index-game-features__game-card {
  background-color: var(--card-bg-dark-opacity);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index-game-features__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index-game-features__card-title {
  font-size: 1.8em;
  color: var(--accent-yellow);
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-index-game-features__card-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-index-game-features__card-link {
  display: block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.page-index-game-features__card-link:hover {
  background-color: #015f2d;
}

.page-index-game-features__additional-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 60px auto 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Security Section */
.page-index-game-features__security-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index-game-features__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index-game-features__security-text,
.page-index-game-features__security-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-index-game-features__security-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-game-features__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index-game-features__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFFF00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-game-features__list-highlight {
  color: var(--accent-yellow);
}

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

/* Mobile Section */
.page-index-game-features__mobile-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-index-game-features__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
}

.page-index-game-features__mobile-text,
.page-index-game-features__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-index-game-features__mobile-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-game-features__mobile-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index-game-features__mobile-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFFF00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-game-features__mobile-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index-game-features__app-download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-index-game-features__promotions-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index-game-features__promotions-text,
.page-index-game-features__promotions-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-index-game-features__promotions-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-game-features__promotions-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index-game-features__promotions-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FFFF00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-game-features__promotions-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-index-game-features__faq-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-index-game-features__faq-item {
  background-color: var(--card-bg-dark-opacity);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-game-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--accent-yellow);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-index-game-features__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-index-game-features__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

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

.page-index-game-features__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* Dark background general styles */
.page-index-game-features__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Image and Video responsive styles */
.page-index-game-features img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content area images are not too small */
.page-index-game-features__game-card .page-index-game-features__card-image,
.page-index-game-features__security-image,
.page-index-game-features__mobile-image,
.page-index-game-features__promotions-image {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-index-game-features__section-title {
    font-size: 2em;
  }

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

  .page-index-game-features__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-index-game-features__hero-description {
    font-size: 1.1em;
  }

  .page-index-game-features__cta-buttons,
  .page-index-game-features__app-download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary {
    width: 80%;
    max-width: 300px;
  }

  .page-index-game-features__security-content,
  .page-index-game-features__mobile-content,
  .page-index-game-features__promotions-content {
    flex-direction: column;
  }

  .page-index-game-features__mobile-content {
    flex-direction: column-reverse; /* Text above image on mobile */
  }

  .page-index-game-features__security-image-wrapper,
  .page-index-game-features__mobile-image-wrapper,
  .page-index-game-features__promotions-image-wrapper {
    order: -1; /* Image appears first in column for these sections */
  }

  .page-index-game-features__security-list li,
  .page-index-game-features__mobile-list li,
  .page-index-game-features__promotions-list li {
    padding-left: 25px;
    background-size: 18px;
  }

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

  .page-index-game-features__faq-answer {
    padding: 0 20px 18px 20px;
  }
}

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

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

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

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

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

  .page-index-game-features__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-index-game-features__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-game-features__cta-buttons,
  .page-index-game-features__app-download-buttons {
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index-game-features__game-card {
    margin-bottom: 20px;
  }

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

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

  .page-index-game-features__additional-text {
    font-size: 1em;
    margin-top: 40px;
  }

  .page-index-game-features__security-text p,
  .page-index-game-features__mobile-text p,
  .page-index-game-features__promotions-text p {
    font-size: 1em;
  }

  .page-index-game-features__security-list li,
  .page-index-game-features__mobile-list li,
  .page-index-game-features__promotions-list li {
    font-size: 0.95em;
    margin-bottom: 10px;
  }

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

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

  /* Mobile image/video/container overflow fix */
  .page-index-game-features img,
  .page-index-game-features video,
  .page-index-game-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-game-features__hero-image-wrapper,
  .page-index-game-features__game-card,
  .page-index-game-features__security-image-wrapper,
  .page-index-game-features__mobile-image-wrapper,
  .page-index-game-features__promotions-image-wrapper,
  .page-index-game-features__faq-item,
  .page-index-game-features__container,
  .page-index-game-features__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index-game-features__hero-content,
  .page-index-game-features__game-grid,
  .page-index-game-features__security-content,
  .page-index-game-features__mobile-content,
  .page-index-game-features__promotions-content,
  .page-index-game-features__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-index-game-features__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Color Contrast Safeguards for dark body background */
.page-index-game-features__dark-bg {
  color: var(--text-light); /* Deep dark background requires light text */
  background-color: var(--primary-color);
}

.page-index-game-features__section-title {
  color: var(--secondary-color); /* Ensures visibility against dark backgrounds */
}

.page-index-game-features p,
.page-index-game-features li {
  color: rgba(255, 255, 255, 0.9); /* Slightly off-white for readability on dark */
}

.page-index-game-features__card {
  background: var(--card-bg-dark-opacity); /* Semi-transparent white on dark body */
  color: var(--text-light);
}

.page-index-game-features__card-title {
  color: var(--accent-yellow);
}

.page-index-game-features__btn-primary {
  background: var(--accent-red);
  color: var(--accent-yellow);
}

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

.page-index-game-features__faq-question {
  color: var(--accent-yellow);
}

.page-index-game-features__faq-toggle {
  color: var(--secondary-color);
}

.page-index-game-features__faq-answer {
  color: rgba(255, 255, 255, 0.8);
}