/* style/index.css */

.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly white background for content area */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-right: 15px;
}

.page-index__button--register:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

.page-index__button--login {
  background-color: #FCBC45;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

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

.page-index__button--download:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__button--primary {
  background-color: #FCBC45;
  color: #FFFFFF;
  border: 2px solid #FCBC45;
  font-size: 1.1em;
  padding: 15px 30px;
}

.page-index__button--primary:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-index__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  font-size: 1.1em;
  padding: 15px 30px;
}

.page-index__button--secondary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-index__button--small {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__button--small:hover {
  background-color: #FCBC45;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

.page-index__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.page-index__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-buttons a {
  margin: 0 10px;
}

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

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

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

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

.page-index__about-card-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-index__about-card-description {
  font-size: 1em;
  color: #555555;
}

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

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

.page-index__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index__game-card-title {
  font-size: 1.6em;
  color: #000000;
  margin: 20px 0 10px;
}

.page-index__game-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
}

.page-index__game-card .page-index__button--small {
  margin-bottom: 20px;
}

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

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

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

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

.page-index__promo-card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index__promo-card-title {
  font-size: 1.8em;
  color: #000000;
  margin: 20px 0 10px;
}

.page-index__promo-card-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
}

.page-index__promo-card .page-index__button {
  margin-bottom: 20px;
}

/* Mobile Section */
.page-index__mobile-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-index__mobile-text .page-index__section-title {
  text-align: left;
}

.page-index__mobile-text .page-index__section-title::after {
  left: 0;
  transform: translateX(0);
}

.page-index__mobile-text .page-index__section-subtitle {
  text-align: left;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__security-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index__security-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__security-feature-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-index__security-feature-description {
  font-size: 0.95em;
  color: #555555;
}

/* CTA Section */
.page-index__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-index__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-index__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__testimonial-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #555555;
}

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

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

.page-index__faq-accordion {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-index__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-index__faq-question {
  width: 100%;
  background-color: #FFFFFF;
  border: none;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #000000;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-index__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #FCBC45;
}

.page-index__faq-question.page-index__faq-question--active::after {
  content: '-';
}

.page-index__faq-question:hover {
  background-color: #f5f5f5;
}

.page-index__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-index__faq-answer.page-index__faq-answer--active {
  max-height: 200px; /* Adjust as needed */
  padding: 15px 25px 25px;
}

.page-index__faq-answer p {
  color: #555555;
  line-height: 1.8;
}

/* Contact Section */
.page-index__contact-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  text-align: center;
}

/* 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: 2em;
  }
  .page-index__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .page-index__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .page-index__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__mobile-text .page-index__section-title,
  .page-index__mobile-text .page-index__section-title::after,
  .page-index__mobile-text .page-index__section-subtitle {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-cta-buttons {
    flex-direction: column;
  }
  .page-index__hero-cta-buttons a {
    margin: 10px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-subtitle {
    font-size: 1em;
  }
  .page-index__about-grid,
  .page-index__game-grid,
  .page-index__promo-grid,
  .page-index__security-features,
  .page-index__testimonial-grid {
    grid-template-columns: 1fr;
  }
  .page-index__mobile-image-wrapper {
    order: -1; /* Image above text on mobile */
  }
  .page-index__cta-title {
    font-size: 2em;
  }
  .page-index__cta-description {
    font-size: 1em;
  }
  /* Ensure all images within .page-index are responsive and don't overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  /* Content area must not cause horizontal scrolling */
  .page-index {
    overflow-x: hidden;
  }
  /* Prevent content images from being too small */
  .page-index__about-card-icon,
  .page-index__security-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
  }
  .page-index__game-card-image,
  .page-index__promo-card-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__section-subtitle {
    font-size: 0.9em;
  }
  .page-index__about-card-title,
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__security-feature-title {
    font-size: 1.4em;
  }
  .page-index__cta-title {
    font-size: 1.8em;
  }
  .page-index__faq-question {
    font-size: 1em;
  }
  .page-index__faq-answer p {
    font-size: 0.9em;
  }
}