/* style/home.css */
.page-home {
  color: #FFFFFF; /* Light text for dark background */
  background-color: var(--secondary-color); /* Assuming --secondary-color is dark based on color scheme */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-home__hero-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 60px;
}

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

.page-home__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-home__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

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

.page-home__button--register {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

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

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

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

.page-home__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-home__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-home__about-section,
.page-home__games-showcase-section,
.page-home__promotions-section,
.page-home__mobile-app-section,
.page-home__security-section,
.page-home__responsible-gaming-section,
.page-home__cta-section {
  padding: 60px 0;
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
  border-radius: 10px;
}

.page-home__about-section .page-home__container,
.page-home__promotions-section .page-home__container,
.page-home__responsible-gaming-section .page-home__container,
.page-home__cta-section .page-home__container {
  max-width: 900px;
}

.page-home__link-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-home__link-button--full-width {
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-home__game-card {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

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

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

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

.page-home__game-card-title a {
  color: #FCBC45;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-home__game-card-description {
  font-size: 0.95em;
  padding: 0 15px;
  color: #e0e0e0;
}

.page-home__promotions-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-home__mobile-app-image {
  width: 100%;
  max-width: 300px; /* Specific max-width for phone image */
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-home__security-item {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

.page-home__security-item-title {
  font-size: 1.3em;
  color: #FCBC45;
  margin-bottom: 10px;
}

.page-home__security-item-description {
  font-size: 0.9em;
  color: #e0e0e0;
}

.page-home__cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(50, 50, 50, 0.9));
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.page-home__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  margin-top: 30px;
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-home__button--large:hover {
  background-color: #e0a53a;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .page-home__hero-title {
    font-size: 3em;
  }
  .page-home__section-title {
    font-size: 2em;
  }
  .page-home__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .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__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-home__game-cards-grid,
  .page-home__security-grid {
    grid-template-columns: 1fr;
  }
  .page-home__mobile-app-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .page-home__mobile-app-image {
    max-width: 250px;
  }
  .page-home__button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
  .page-home__hero-image img,
  .page-home__about-section img,
  .page-home__games-showcase-section img,
  .page-home__promotions-section img,
  .page-home__mobile-app-section img,
  .page-home__security-section img,
  .page-home__responsible-gaming-section img,
  .page-home__cta-section img,
  .page-home__game-card-image,
  .page-home__promotions-banner,
  .page-home__mobile-app-image,
  .page-home__security-icon {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 2em;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__hero-content {
    width: 90%;
    padding: 15px;
  }
  .page-home__button {
    width: 90%;
  }
}