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

.page-home__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background-color: #0d0d0d; /* Dark background for hero to contrast with gold/red theme */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-home__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-home__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

.page-home__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  animation: fadeInDown 1s ease-out;
}

.page-home__hero-title {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-home__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-home__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Deep red text */
  border: 2px solid #FFD700;
}

.page-home__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-home__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-home__btn--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-3px);
}

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

.page-home__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #8B0000; /* Deep red for section titles */
}

.page-home__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: #555555;
}

/* About Section */
.page-home__about-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

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

.page-home__feature-card:hover {
  transform: translateY(-10px);
}

.page-home__feature-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-home__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.page-home__btn--link {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 3px;
}

.page-home__btn--link:hover {
  color: #e6c200;
  border-color: #e6c200;
}

/* Games Showcase Section */
.page-home__games-showcase-section {
  padding: 60px 0;
  background-color: #ededed;
}

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

.page-home__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-home__game-card:hover {
  transform: translateY(-10px);
}

.page-home__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-home__game-card-title {
  font-size: 1.5em;
  color: #8B0000;
  padding: 15px 20px 5px;
}

.page-home__game-card-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-home__game-card-title a:hover {
  color: #FFD700;
}

.page-home__game-card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 15px;
  line-height: 1.5;
}

.page-home__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  margin: 0 20px 20px;
  background-color: #FFD700;
  color: #8B0000;
  border: 1px solid #FFD700;
}

.page-home__btn--small:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-home__full-game-list-action {
    text-align: center;
    margin-top: 50px;
}

/* Promo Section */
.page-home__promo-section {
  padding: 60px 0;
  background-color: #f4f4f4;
}

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

.page-home__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  border-bottom: 5px solid #8B0000;
}

.page-home__promo-card:hover {
  transform: translateY(-10px);
}

.page-home__promo-card-image {
  width: 100%;
  height: 180px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-home__promo-card-title {
  font-size: 1.6em;
  color: #8B0000;
  padding: 15px 20px 5px;
}

.page-home__promo-card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 15px;
  line-height: 1.5;
}

.page-home__all-promo-action {
    text-align: center;
    margin-top: 50px;
}

/* Mobile App Section */
.page-home__mobile-app-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-home__mobile-app-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

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

.page-home__mobile-app-section .page-home__section-title {
  color: #FFD700;
  text-align: left;
  margin-bottom: 25px;
}

.page-home__mobile-app-section .page-home__section-intro {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 40px;
}

.page-home__app-download-buttons {
  display: flex;
  gap: 20px;
}

.page-home__mobile-app-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Why Choose Section */
.page-home__why-choose-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-home__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-home__advantage-item {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-left: 5px solid #FFD700;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-home__advantage-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-home__advantage-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

/* FAQ Section */
.page-home__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-home__faq-accordion {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-home__faq-question {
  font-size: 1.4em;
  color: #8B0000;
  padding: 20px 25px;
  cursor: pointer;
  margin: 0;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-home__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

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

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

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

.page-home__faq-answer.open {
  max-height: 200px; /* Adjust as needed for content length */
  padding-top: 10px;
}

/* CTA Section */
.page-home__cta-section {
  background-color: #8B0000; /* Deep red background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-home__cta-title {
  font-size: 3em;
  color: #FFD700; /* Gold for CTA title */
  margin-bottom: 20px;
}

.page-home__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-home__btn--large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 8px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-home__hero-title {
    font-size: 3em;
  }
  .page-home__hero-description {
    font-size: 1.1em;
  }
  .page-home__section-title {
    font-size: 2.2em;
  }
  .page-home__mobile-app-container {
    flex-direction: column;
    text-align: center;
  }
  .page-home__mobile-app-section .page-home__section-title,
  .page-home__mobile-app-section .page-home__section-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .page-home__app-download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-home__hero-section {
    padding-bottom: 40px;
  }
  .page-home__hero-title {
    font-size: 2.5em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-home__container {
    padding: 30px 15px;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-home__features-grid,
  .page-home__game-categories-grid,
  .page-home__promo-cards-grid,
  .page-home__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-home__game-card-image {
    height: 180px;
  }
  .page-home__promo-card-image {
    height: 150px;
  }
  .page-home__mobile-app-section {
    padding: 50px 0;
  }
  .page-home__app-download-buttons {
    flex-direction: column;
  }
  .page-home__mobile-app-image {
    max-width: 80%;
  }
  .page-home__cta-title {
    font-size: 2.2em;
  }
  .page-home__cta-description {
    font-size: 1em;
  }
  .page-home__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-home__faq-question {
    font-size: 1.2em;
    padding: 15px 20px;
  }
  .page-home__faq-question::after {
    right: 20px;
  }
  .page-home__faq-answer {
    padding: 0 20px 15px;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-home img {
    max-width: 100%;
    height: auto;
  }
  .page-home {
    overflow-x: hidden;
  }
}