.page-home {
  color: #333333; /* Default text color for light background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  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: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-home__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-home__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-home__btn--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

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

.page-home__btn--secondary {
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-home__btn--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #000000;
}

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

.page-home__btn--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  margin-left: 15px;
}

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

.page-home__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
  margin-top: 20px;
  background-color: #000000;
  color: #FFFFFF;
}

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

/* Hero Section */
.page-home__hero-section {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-home__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.page-home__hero-content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-home__hero-title {
  font-size: 3.5em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.page-home__hero-description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-home__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

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

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

.page-home__about-text {
  flex: 1;
}

.page-home__about-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #444444;
}

.page-home__about-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 400px; /* Ensure image is not too small */
}

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

/* Game Categories Section */
.page-home__game-categories-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-home__category-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-home__category-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-home__category-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-home__category-title a {
  color: #000000;
  text-decoration: none;
}

.page-home__category-title a:hover {
  color: #FCBC45;
}

.page-home__category-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-home__promo-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-home__promo-image {
  width: 100%;
  height: 280px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-home__promo-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-home__promo-title a {
  color: #000000;
  text-decoration: none;
}

.page-home__promo-title a:hover {
  color: #FCBC45;
}

.page-home__promo-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-home__promo-cta {
  text-align: center;
}

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

.page-home__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-home__security-text {
  flex: 1;
}

.page-home__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #444444;
}

.page-home__security-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 400px; /* Ensure image is not too small */
}

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

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

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

.page-home__payment-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home__payment-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

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

.page-home__payment-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px;
  flex-grow: 1;
}

.page-home__payment-cta {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

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

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

.page-home__mobile-app-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #444444;
}

.page-home__mobile-app-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 400px; /* Ensure image is not too small */
}

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

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

.page-home__cta-section .page-home__section-title {
  color: #FFFFFF;
}

.page-home__cta-section .page-home__section-subtitle {
  color: #f0f0f0;
}

.page-home__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-home__cta-buttons .page-home__btn--register {
  border-color: #FFFFFF;
  color: #000000;
}

.page-home__cta-buttons .page-home__btn--register:hover {
  background-color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-home__hero-title {
    font-size: 2.8em;
  }
  .page-home__hero-description {
    font-size: 1.1em;
  }
  .page-home__about-grid,
  .page-home__security-content,
  .page-home__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-home__about-image-wrapper,
  .page-home__security-image-wrapper,
  .page-home__mobile-app-image-wrapper {
    order: -1; /* Image appears above text on mobile */
    margin-bottom: 30px;
    min-width: 200px; /* Ensure image is not too small */
  }
  .page-home__section-title {
    font-size: 2em;
  }
  .page-home__section-subtitle {
    font-size: 1em;
  }
  .page-home__category-title,
  .page-home__promo-title,
  .page-home__payment-title {
    font-size: 1.5em;
  }
  .page-home__btn--login {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-home__hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .page-home__hero-section {
    padding: 40px 15px 30px;
  }
  .page-home__hero-title {
    font-size: 2.2em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__section-subtitle {
    font-size: 0.9em;
  }
  .page-home__categories-grid,
  .page-home__promo-grid,
  .page-home__payment-grid {
    grid-template-columns: 1fr;
  }
  .page-home__category-image,
  .page-home__promo-image,
  .page-home__payment-image {
    height: auto; /* Allow height to adjust for smaller screens */
    max-width: 100%;
    width: 100%;
  }
  .page-home__about-image-wrapper img,
  .page-home__security-image-wrapper img,
  .page-home__mobile-app-image-wrapper img {
    max-width: 100%;
    height: auto;
  }
  .page-home__about-image-wrapper,
  .page-home__security-image-wrapper,
  .page-home__mobile-app-image-wrapper {
    min-width: 200px; /* Ensure image is not too small */
  }
  .page-home__payment-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Content area images must not be smaller than 200px. */
  /* The following rules ensure this for mobile, if the image's natural size allows */
  .page-home__hero-image,
  .page-home__about-image,
  .page-home__category-image,
  .page-home__promo-image,
  .page-home__security-image,
  .page-home__payment-image,
  .page-home__mobile-app-image {
    min-width: 200px;
    min-height: 200px;
  }
}