/* style/home.css */

.page-home {
  color: #333333; /* Dark text for light body background */
}

.page-home__section-padding {
  padding: 80px 20px;
}

.page-home__section-bg-dark {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Light text for dark background */
}

.page-home__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-home__section-title {
  font-size: 2.8em;
  color: #000000; /* Main color for titles on light background */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-home__section-bg-dark .page-home__section-title,
.page-home__section-bg-dark .page-home__section-subtitle {
  color: #FFFFFF; /* Light text for titles on dark background */
}

.page-home__section-subtitle {
  font-size: 1.2em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-home__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-home__btn--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-home__btn--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
  transform: translateY(-2px);
}

.page-home__btn--secondary {
  background-color: transparent;
  color: #FCBC45; /* Login color */
  border: 2px solid #FCBC45;
  margin-left: 15px;
}

.page-home__btn--secondary:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-2px);
}

.page-home__btn--tertiary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-home__btn--tertiary:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
}

.page-home__btn--small {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 5px;
  border: 1px solid #FCBC45;
  background-color: #FCBC45;
  color: #000000;
}

.page-home__btn--small:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
  transform: translateY(-1px);
}

/* Hero Section */
.page-home__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 700px; /* Ensure hero section has a minimum height */
}

.page-home__hero-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-home__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
  min-height: 700px;
}

.page-home__hero-text-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

.page-home__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FCBC45; /* Highlight with login color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-home__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-home__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* About Section */
.page-home__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-home__about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1em;
}

.page-home__about-image-wrapper {
  text-align: center;
}

.page-home__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-home__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-home__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 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;
  align-items: center;
  padding-bottom: 20px;
}

.page-home__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.page-home__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-home__game-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FCBC45; /* Highlight with login color */
}

.page-home__game-card-link {
  color: inherit;
  text-decoration: none;
}

.page-home__game-card-link:hover {
  text-decoration: underline;
}

.page-home__game-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0; /* Light gray text */
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-home__games-cta {
  text-align: center;
}

/* Promotions Section */
.page-home__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-home__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-home__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.page-home__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-home__promo-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

.page-home__promo-card-link {
  color: inherit;
  text-decoration: none;
}

.page-home__promo-card-link:hover {
  text-decoration: underline;
}

.page-home__promo-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-home__promotions-cta {
  text-align: center;
}

/* Mobile App Section */
.page-home__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-home__mobile-app-text {
  flex: 1;
}

.page-home__mobile-app-text .page-home__section-title,
.page-home__mobile-app-text .page-home__section-subtitle {
  text-align: left;
}

.page-home__mobile-app-features {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-home__mobile-app-features li {
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
}

.page-home__feature-icon {
  color: #FCBC45; /* Login color for icons */
  font-size: 1.4em;
  margin-right: 10px;
}

.page-home__mobile-app-buttons {
  display: flex;
  gap: 20px;
}

.page-home__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-home__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-home__why-choose-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-home__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.page-home__feature-card-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-home__feature-card-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Testimonials Section */
.page-home__testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-home__testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
  text-align: center;
}

.page-home__testimonial-quote {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.page-home__testimonial-author {
  font-weight: bold;
  color: #FCBC45;
}

/* FAQ Section */
.page-home__faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.page-home__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-home__faq-question {
  font-size: 1.2em;
  color: #000000;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.page-home__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-home__faq-item.active .page-home__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.page-home__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-home__faq-item.active .page-home__faq-answer {
  max-height: 200px; /* Adjust based on expected content height */
  padding: 0 20px 20px;
}

.page-home__faq-answer p {
  margin-bottom: 10px;
}

.page-home__faq-answer .page-home__btn--small {
  margin-top: 15px;
}

/* CTA Section */
.page-home__cta-content {
  text-align: center;
}

.page-home__cta-content .page-home__btn {
  margin-top: 20px;
}

/* Blog/Resources Section */
.page-home__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-home__blog-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-home__blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.page-home__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-home__blog-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

.page-home__blog-card-link {
  color: inherit;
  text-decoration: none;
}

.page-home__blog-card-link:hover {
  text-decoration: underline;
}

.page-home__blog-card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-home__blog-cta {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-home__hero-title {
    font-size: 3em;
  }

  .page-home__hero-description {
    font-size: 1.2em;
  }

  .page-home__section-title {
    font-size: 2.2em;
  }

  .page-home__about-grid,
  .page-home__mobile-app-content {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .page-home__mobile-app-text .page-home__section-title,
  .page-home__mobile-app-text .page-home__section-subtitle {
    text-align: center;
  }

  .page-home__mobile-app-features {
    text-align: left;
    margin: 30px auto;
    max-width: 500px;
  }

  .page-home__mobile-app-buttons {
    justify-content: center;
  }

  .page-home__about-image-wrapper,
  .page-home__mobile-app-image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-home__hero-title {
    font-size: 2.5em;
  }

  .page-home__hero-description {
    font-size: 1em;
  }

  .page-home__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-home__btn--secondary {
    margin-left: 0;
  }

  .page-home__section-padding {
    padding: 60px 15px;
  }

  .page-home__section-title {
    font-size: 1.8em;
  }

  .page-home__section-subtitle {
    font-size: 1em;
  }

  /* Ensure content images are responsive */
  .page-home__hero-image,
  .page-home__about-image,
  .page-home__game-card-image,
  .page-home__promo-card-image,
  .page-home__mobile-app-image,
  .page-home__blog-card-image {
    max-width: 100%;
    height: auto;
  }

  .page-home__games-grid,
  .page-home__promotions-grid,
  .page-home__why-choose-us-grid,
  .page-home__testimonials-grid,
  .page-home__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-home__mobile-app-buttons,
  .page-home__blog-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-home__cta-content .page-home__btn--secondary {
    margin-left: 0;
  }

  .page-home__faq-item.active .page-home__faq-answer {
    max-height: 400px; /* Allow more height for mobile content */
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 2em;
  }

  .page-home__hero-description {
    font-size: 0.9em;
  }

  .page-home__btn {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-home__section-title {
    font-size: 1.5em;
  }

  .page-home__section-subtitle {
    font-size: 0.9em;
  }

  .page-home__hero-section {
    min-height: 500px;
  }

  .page-home__hero-image {
    min-height: 500px;
  }
}