/* style/index.css */

/* Ensure proper spacing for fixed header */
.page-index {
  padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by JS */
  background-color: var(--background-color, #FFFFFF);
  color: #333333; /* Dark text for light background */
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjusted for mobile header */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

/* Hero Section */
.page-index__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.page-index__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-index__cta-button {
  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, transform 0.2s ease;
}

.page-index__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-index__cta-button--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-index__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-index__cta-button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-index__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #555555;
}

.page-index__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-index__cta-button--explore,
.page-index__cta-button--view-all,
.page-index__cta-button--download,
.page-index__cta-button--contact {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-index__cta-button--explore:hover,
.page-index__cta-button--view-all:hover,
.page-index__cta-button--download:hover,
.page-index__cta-button--contact:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

/* About Section */
.page-index__about-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.page-index__about-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.page-index__about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__about-card-image {
  width: 100%;
  height: 300px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

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

.page-index__about-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
}

.page-index__games-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__game-card {
  display: block;
  background-color: #000000; /* Dark background for game cards */
  color: #FFFFFF; /* Light text for dark background */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-card-title {
  font-size: 1.6em;
  padding: 20px 20px 10px 20px;
  color: #FCBC45;
}

.page-index__game-card-text {
  font-size: 0.95em;
  line-height: 1.5;
  padding: 0 20px 20px 20px;
  color: #cccccc;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.page-index__promotions-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.page-index__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__promotion-card-image {
  width: 100%;
  height: 300px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

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

.page-index__promotion-card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 25px;
}

.page-index__promotion-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__promotion-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

/* Mobile App Section */
.page-index__mobile-app-section {
  padding: 80px 20px;
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-index__mobile-app-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__mobile-app-content {
  flex: 1;
  text-align: left;
}

.page-index__mobile-app-content .page-index__section-title {
  color: #FFFFFF;
  text-align: left;
}

.page-index__mobile-app-content .page-index__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-index__mobile-app-cta-group {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

.page-index__mobile-app-image-container {
  flex: 1;
  text-align: center;
}

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

/* Testimonials Section */
.page-index__testimonials-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
}

.page-index__testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__testimonial-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-index__testimonial-text {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  color: #444444;
}

.page-index__testimonial-author {
  font-weight: bold;
  color: #000000;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.page-index__faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000000;
}

.page-index__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__mobile-app-container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__mobile-app-content {
    text-align: center;
  }
  .page-index__mobile-app-content .page-index__section-title,
  .page-index__mobile-app-content .page-index__section-description {
    text-align: center;
  }
  .page-index__mobile-app-cta-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 40px 15px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__mobile-app-section,
  .page-index__testimonials-section,
  .page-index__faq-section {
    padding: 50px 15px;
  }
  .page-index__about-card-image,
  .page-index__promotion-card-image {
    height: 250px;
  }
  .page-index__game-card-image {
    height: 180px;
  }
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__about-card-title,
  .page-index__game-card-title,
  .page-index__promotion-card-title {
    font-size: 1.4em;
  }
  .page-index__faq-question {
    font-size: 1.2em;
  }
}