/* style/home.css */
.page-home {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-home__section-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-home__main-title {
  font-size: clamp(1.75rem, 6vw, 2.25rem); /* Adjusted for H1 */
  color: #000000;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-home__subtitle {
  font-size: 1.1rem;
  color: #555555;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-home__hero-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for first section */
  text-align: center;
  background-color: #FFFFFF;
}

.page-home__hero-image {
  margin-bottom: 30px;
}

.page-home__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1920px;
  margin: 0 auto;
}

.page-home__hero-content {
  padding-top: 20px; /* Space between image and content */
}

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

.page-home__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 150px;
  text-align: center;
  font-size: 1rem;
}

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

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

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

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

.page-home__button--secondary {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

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

.page-home__button--small {
  padding: 8px 15px;
  font-size: 0.9rem;
  min-width: 120px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #000000;
}

.page-home__button--small:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.page-home__button--promo {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 20px;
}

.page-home__button--promo:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-home__button--download {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

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

.page-home__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

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

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

.page-home__about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-home__about-text, .page-home__about-image {
  flex: 1;
  min-width: 300px;
}

.page-home__about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Games Showcase */
.page-home__games-showcase {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-home__game-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-home__card-title {
  font-size: 1.4rem;
  color: #000000;
  margin: 15px 10px 10px;
  font-weight: bold;
}

.page-home__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-home__card-title a:hover {
  text-decoration: underline;
}

.page-home__game-card p {
  padding: 0 15px;
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 20px;
}

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

.page-home__promo-content {
  text-align: center;
  margin-top: 40px;
}

.page-home__promo-content img {
  width: 100%;
  height: auto;
  max-width: 1000px;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
}

/* Security Guide Section */
.page-home__security-guide-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-home__security-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.page-home__item-title {
  font-size: 1.25rem;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-home__security-item p {
  font-size: 0.95rem;
  color: #666666;
  margin-bottom: 20px;
}

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

.page-home__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-home__app-image, .page-home__app-features {
  flex: 1;
  min-width: 300px;
}

.page-home__app-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-home__app-features ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-home__app-features li {
  font-size: 1.1rem;
  color: #333333;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-home__app-features li::before {
  content: '✔';
  color: #FCBC45;
  position: absolute;
  left: 0;
  top: 0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-home__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-home__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .page-home__subtitle {
    font-size: 1rem;
  }

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

  .page-home__button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .page-home__about-section, .page-home__games-showcase, .page-home__promo-section, .page-home__security-guide-section, .page-home__mobile-app-section, .page-home__cta-section {
    padding: 50px 0;
  }

  .page-home__about-grid, .page-home__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-home__game-card img, .page-home__security-item img, .page-home__promo-content img, .page-home__about-image img, .page-home__app-image img, .page-home__hero-image img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }
}

@media (max-width: 480px) {
  .page-home__section-title {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .page-home__main-title {
    font-size: clamp(1.4rem, 9vw, 1.8rem);
  }

  .page-home__game-grid, .page-home__security-grid {
    grid-template-columns: 1fr;
  }

  .page-home__button {
    padding: 10px 20px;
  }
}