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

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #FFFFFF;
  --background-dark: #26A9E0;
}

.page-index-game-features {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

/* Section styling */
.page-index-game-features__hero-section,
.page-index-game-features__intro-section,
.page-index-game-features__game-diversity-section,
.page-index-game-features__tech-section,
.page-index-game-features__security-section,
.page-index-game-features__promotions-section,
.page-index-game-features__support-section,
.page-index-game-features__faq-section,
.page-index-game-features__cta-final-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index-game-features__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  background-color: var(--background-dark);
}

.page-index-game-features__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-index-game-features__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust based on desired hero height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-index-game-features__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

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

.page-index-game-features__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-index-game-features__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit; /* Inherits from section's color */
}

.page-index-game-features__sub-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit; /* Inherits from section's color */
}

.page-index-game-features__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-game-features__cta-buttons,
.page-index-game-features__support-cta,
.page-index-game-features__cta-final-section .page-index-game-features__cta-buttons-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

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

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

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

/* Game Diversity Section */
.page-index-game-features__game-diversity-section {
  padding-bottom: 80px;
}

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

.page-index-game-features__game-card {
  background-color: var(--background-light);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.page-index-game-features__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-game-features__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index-game-features__card-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-game-features__card-button {
  margin-top: auto;
  width: auto; /* Override max-width: 100% for card buttons to fit content */
}

.page-index-game-features__cta-bottom {
  margin-top: 60px;
}

/* Tech Section */
.page-index-game-features__tech-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  flex-wrap: wrap;
}

.page-index-game-features__tech-text {
  flex: 1;
  min-width: 300px;
}

.page-index-game-features__tech-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-game-features__image-responsive {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.page-index-game-features__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: left;
}

.page-index-game-features__security-item {
  background-color: var(--background-light);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
}

.page-index-game-features__security-footer {
  margin-top: 40px;
  font-style: italic;
}

/* Promotions Section */
.page-index-game-features__promotions-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  flex-wrap: wrap-reverse;
}

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

.page-index-game-features__promotions-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-index-game-features__faq-item {
  background-color: var(--background-light);
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
  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;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-index-game-features__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

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

.page-index-game-features__faq-qtext {
  flex-grow: 1;
  color: var(--primary-color);
}

.page-index-game-features__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-index-game-features__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.7;
  border-top: 1px solid #eee;
  background-color: var(--secondary-color);
}

.page-index-game-features__faq-item[open] .page-index-game-features__faq-question {
  border-bottom: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-index-game-features__hero-section,
  .page-index-game-features__intro-section,
  .page-index-game-features__game-diversity-section,
  .page-index-game-features__tech-section,
  .page-index-game-features__security-section,
  .page-index-game-features__promotions-section,
  .page-index-game-features__support-section,
  .page-index-game-features__faq-section,
  .page-index-game-features__cta-final-section {
    padding: 40px 0;
  }

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

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

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

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

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

  .page-index-game-features__cta-buttons,
  .page-index-game-features__support-cta,
  .page-index-game-features__cta-final-section .page-index-game-features__cta-buttons-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-game-features__btn-primary,
  .page-index-game-features__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

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

  .page-index-game-features__tech-content,
  .page-index-game-features__promotions-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-index-game-features__promotions-content {
    flex-direction: column-reverse; /* Swap order for mobile */
  }

  /* Mobile image responsiveness */
  .page-index-game-features img {
    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-item,
  .page-index-game-features__tech-image,
  .page-index-game-features__promotions-image,
  .page-index-game-features__faq-item,
  .page-index-game-features__cta-bottom,
  .page-index-game-features__hero-cta-buttons,
  .page-index-game-features__support-cta,
  .page-index-game-features__cta-final-section .page-index-game-features__cta-buttons-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Specific padding for sections with text content to avoid edge-to-edge text */
  .page-index-game-features__intro-section .page-index-game-features__container,
  .page-index-game-features__tech-section .page-index-game-features__container,
  .page-index-game-features__security-section .page-index-game-features__container,
  .page-index-game-features__promotions-section .page-index-game-features__container,
  .page-index-game-features__support-section .page-index-game-features__container,
  .page-index-game-features__faq-section .page-index-game-features__container,
  .page-index-game-features__cta-final-section .page-index-game-features__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-game-features__game-card .page-index-game-features__card-button {
    width: 100% !important; /* Ensure card buttons take full width on mobile */
  }
}

/* Ensure image dimensions are at least 200x200 if not explicitly defined to be smaller by design */
.page-index-game-features img:not(.page-index-game-features__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Accessibility: Focus styles */
.page-index-game-features a:focus,
.page-index-game-features button:focus,
.page-index-game-features summary:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}