/* style/index-featured-games.css */

/* Custom Color Variables - based on provided palette */
:root {
  --page-index-featured-games-primary-color: #11A84E; /* Main */
  --page-index-featured-games-secondary-color: #22C768; /* Auxiliary */
  --page-index-featured-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --page-index-featured-games-card-bg: #11271B; /* Card BG */
  --page-index-featured-games-bg: #08160F; /* Background */
  --page-index-featured-games-text-main: #F2FFF6; /* Text Main */
  --page-index-featured-games-text-secondary: #A7D9B8; /* Text Secondary */
  --page-index-featured-games-border-color: #2E7A4E; /* Border */
  --page-index-featured-games-glow-color: #57E38D; /* Glow */
  --page-index-featured-games-gold-color: #F2C14E; /* Gold */
  --page-index-featured-games-divider-color: #1E3A2A; /* Divider */
  --page-index-featured-games-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page content */
.page-index-featured-games {
  background-color: var(--page-index-featured-games-bg);
  color: var(--page-index-featured-games-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Content area wrapper for consistent padding and max-width */
.page-index-featured-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-index-featured-games__section-title {
  font-size: clamp(28px, 4vw, 42px); /* H1 rules applied to H2, H3 for appropriate sizing */
  font-weight: 700;
  color: var(--page-index-featured-games-gold-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-index-featured-games__section-title--light {
  color: var(--page-index-featured-games-text-main);
}

/* Text Blocks */
.page-index-featured-games__text-block {
  margin-bottom: 20px;
  color: var(--page-index-featured-games-text-secondary);
  text-align: center;
}

.page-index-featured-games__text-block--light {
  color: var(--page-index-featured-games-text-main);
}

/* Hero Section */
.page-index-featured-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--page-index-featured-games-bg);
}

.page-index-featured-games__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-index-featured-games__main-title {
  font-size: clamp(32px, 5vw, 56px); /* H1 font size constraints */
  font-weight: 800;
  color: var(--page-index-featured-games-gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-index-featured-games__hero-description {
  font-size: 18px;
  color: var(--page-index-featured-games-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-index-featured-games__btn-primary,
.page-index-featured-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Base border */
  box-sizing: border-box;
}

.page-index-featured-games__btn-primary {
  background: var(--page-index-featured-games-btn-gradient);
  color: var(--page-index-featured-games-text-main); /* White text on dark/gradient button */
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-index-featured-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-index-featured-games__btn-secondary {
  background-color: transparent;
  color: var(--page-index-featured-games-primary-color);
  border-color: var(--page-index-featured-games-primary-color);
}

.page-index-featured-games__btn-secondary:hover {
  background-color: var(--page-index-featured-games-primary-color);
  color: var(--page-index-featured-games-text-main);
  transform: translateY(-2px);
}

.page-index-featured-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index-featured-games__btn-small {
  padding: 8px 15px;
  font-size: 14px;
}

.page-index-featured-games__btn-large {
  padding: 15px 30px;
  font-size: 18px;
  min-width: 200px;
}

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

/* Card styles */
.page-index-featured-games__card {
  background-color: var(--page-index-featured-games-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-index-featured-games-text-main); /* Ensure contrast on dark card bg */
  border: 1px solid var(--page-index-featured-games-border-color);
}

.page-index-featured-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Dark Background for some sections/cards for contrast */
.page-index-featured-games__dark-bg {
  background-color: var(--page-index-featured-games-card-bg); /* Use card bg for dark elements */
  color: var(--page-index-featured-games-text-main);
}

.page-index-featured-games__dark-section {
  background-color: var(--page-index-featured-games-deep-green); /* A slightly different dark green for sections */
  color: var(--page-index-featured-games-text-main);
  padding: 60px 20px;
  border-radius: 15px;
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
  box-sizing: border-box;
}

/* Introduction Section */
.page-index-featured-games__introduction-section {
  padding: 60px 0;
  background-color: var(--page-index-featured-games-bg);
}

/* Games Showcase Section */
.page-index-featured-games__games-showcase-section {
  padding: 60px 0;
  background-color: var(--page-index-featured-games-bg);
}

.page-index-featured-games__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-featured-games__game-card {
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-featured-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--page-index-featured-games-border-color);
}

.page-index-featured-games__game-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-index-featured-games-gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index-featured-games__game-card-title a {
  color: inherit; /* Inherit color from parent */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-featured-games__game-card-title a:hover {
  color: var(--page-index-featured-games-primary-color);
}

.page-index-featured-games__game-card-description {
  font-size: 16px;
  color: var(--page-index-featured-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}

/* Why Choose Us Section */
.page-index-featured-games__why-choose-us-section {
  padding: 60px 0;
  background-color: var(--page-index-featured-games-bg);
}

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

.page-index-featured-games__feature-item {
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-featured-games__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-index-featured-games-primary-color);
  margin-bottom: 15px;
}

.page-index-featured-games__feature-description {
  font-size: 16px;
  color: var(--page-index-featured-games-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Call to Action Section */
.page-index-featured-games__cta-section {
  padding: 40px 0;
  background-color: var(--page-index-featured-games-bg);
}

/* FAQ Section */
.page-index-featured-games__faq-section {
  padding: 60px 0;
  background-color: var(--page-index-featured-games-bg);
}

.page-index-featured-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-featured-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-index-featured-games-border-color);
}

.page-index-featured-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--page-index-featured-games-deep-green); /* Slightly different dark green for question background */
  color: var(--page-index-featured-games-text-main);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-index-featured-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-index-featured-games__faq-question:hover {
  background-color: var(--page-index-featured-games-primary-color);
}

.page-index-featured-games__faq-qtext {
  flex-grow: 1;
}

.page-index-featured-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-index-featured-games__faq-answer {
  padding: 20px 25px;
  background-color: var(--page-index-featured-games-card-bg);
  color: var(--page-index-featured-games-text-secondary);
  font-size: 16px;
  border-top: 1px solid var(--page-index-featured-games-divider-color);
}

.page-index-featured-games__faq-answer p {
  margin-bottom: 0;
}

.page-index-featured-games__faq-answer a {
  color: var(--page-index-featured-games-gold-color);
  text-decoration: underline;
}

.page-index-featured-games__faq-answer a:hover {
  color: var(--page-index-featured-games-primary-color);
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-featured-games__content-area {
    padding: 30px 15px;
  }
  .page-index-featured-games__hero-section {
    padding-bottom: 40px;
  }
  .page-index-featured-games__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-index-featured-games__hero-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-index-featured-games__content-area {
    padding: 20px 15px;
  }

  /* Images */
  .page-index-featured-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image/Video/Button Containers */
  .page-index-featured-games__section,
  .page-index-featured-games__card,
  .page-index-featured-games__container,
  .page-index-featured-games__hero-image-wrapper,
  .page-index-featured-games__video-section,
  .page-index-featured-games__video-container,
  .page-index-featured-games__video-wrapper,
  .page-index-featured-games__cta-buttons,
  .page-index-featured-games__button-group,
  .page-index-featured-games__btn-container,
  .page-index-featured-games__dark-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Buttons */
  .page-index-featured-games__btn-primary,
  .page-index-featured-games__btn-secondary,
  .page-index-featured-games a[class*="button"],
  .page-index-featured-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Stack buttons */
  }

  .page-index-featured-games__hero-cta-buttons,
  .page-index-featured-games__cta-buttons--center {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .page-index-featured-games__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 20px;
  }

  .page-index-featured-games__main-title {
    font-size: clamp(28px, 7vw, 42px);
  }

  .page-index-featured-games__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-index-featured-games__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-index-featured-games__game-card-image {
    height: 180px;
  }

  .page-index-featured-games__game-card-title {
    font-size: 20px;
  }

  .page-index-featured-games__feature-title {
    font-size: 20px;
  }

  .page-index-featured-games__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-index-featured-games__faq-answer {
    font-size: 14px;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-featured-games__section-title {
    font-size: clamp(22px, 7vw, 32px);
  }
  .page-index-featured-games__main-title {
    font-size: clamp(26px, 8vw, 38px);
  }
  .page-index-featured-games__hero-description {
    font-size: 15px;
  }
  .page-index-featured-games__game-card-image {
    height: 150px;
  }
}

/* Ensure no filter on images */
.page-index-featured-games img {
  filter: none !important;
}