.page-home {
  color: #333333; /* Dark text for default white body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-home__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #1a1a1a; /* Dark background for hero to contrast with text */
  color: #ffffff;
  overflow: hidden;
}

.page-home__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

.page-home__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-home__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-home__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* General Button Styles */
.page-home__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-home__btn--primary {
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Dark red secondary color for text */
  border: 2px solid #FFD700;
}

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

.page-home__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold primary color */
  border: 2px solid #FFD700;
}

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

.page-home__btn--text {
  color: #8B0000; /* Dark red secondary color */
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
  font-size: 1em;
  font-weight: normal;
}

.page-home__btn--text:hover {
  color: #a00000;
  text-decoration: none;
}

.page-home__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #8B0000; /* Dark red secondary color */
  color: #ffffff;
  border: 2px solid #8B0000;
}

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

/* Section Titles */
.page-home__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark red secondary color */
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.page-home__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold primary color */
  margin: 10px auto 0;
  border-radius: 2px;
}

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

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

.page-home__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-home__about-image-wrapper {
  display: flex;
  justify-content: center;
}

.page-home__about-image {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-home__about-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Game Categories */
.page-home__game-categories {
  padding: 80px 0;
}

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

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

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

.page-home__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-home__card-title {
  font-size: 1.5em;
  color: #8B0000; /* Dark red secondary color */
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-home__promotions-section {
  background-color: #8B0000; /* Dark red secondary color background */
  color: #ffffff;
  padding: 80px 0;
}

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

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

.page-home__promotions-section .page-home__section-title,
.page-home__promotions-section .page-home__section-subtitle {
  color: #ffffff;
  text-align: left;
}

.page-home__promotions-section .page-home__section-title::after {
  background-color: #FFD700;
  margin-left: 0;
}

.page-home__promotions-image {
  flex-shrink: 0;
  width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Download App Section */
.page-home__download-app {
  padding: 80px 0;
}

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

.page-home__download-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  display: flex;
  justify-content: center;
}

.page-home__download-image {
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-home__download-app .page-home__section-title,
.page-home__download-app .page-home__section-subtitle {
  text-align: left;
}

.page-home__download-app .page-home__section-title::after {
  margin-left: 0;
}

/* Responsible Gaming & Support Sections */
.page-home__responsible-gaming-section,
.page-home__support-section {
  padding: 60px 0;
  text-align: center;
}

.page-home__responsible-gaming-section {
  background-color: #f0f0f0;
}

/* Floating Buttons */
.page-home__floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.page-home__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.page-home__floating-btn--register {
  background-color: #FFD700; /* Gold primary color */
  color: #8B0000; /* Dark red text */
}

.page-home__floating-btn--register:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-home__floating-btn--login {
  background-color: #8B0000; /* Dark red secondary color */
}

.page-home__floating-btn--login:hover {
  background-color: #a00000;
  transform: translateY(-3px);
}

/* 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__promotions-content,
  .page-home__download-content {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
  .page-home__about-image-wrapper,
  .page-home__download-image-wrapper {
    order: -1; /* Image above text on mobile */
  }
  .page-home__promotions-text,
  .page-home__download-text {
    text-align: center;
  }
  .page-home__promotions-section .page-home__section-title::after,
  .page-home__download-app .page-home__section-title::after {
    margin-left: auto;
    margin-right: auto;
  }
  .page-home__promotions-image {
    width: 100%;
  }
  .page-home__download-image-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-home__hero-section {
    padding: 60px 15px;
  }
  .page-home__hero-title {
    font-size: 2.2em;
  }
  .page-home__hero-description {
    font-size: 1em;
  }
  .page-home__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-home__btn {
    width: 100%;
  }
  .page-home__section-title {
    font-size: 2em;
  }
  .page-home__section-subtitle {
    font-size: 0.95em;
  }
  .page-home__about-section,
  .page-home__game-categories,
  .page-home__promotions-section,
  .page-home__download-app,
  .page-home__responsible-gaming-section,
  .page-home__support-section {
    padding: 40px 0;
  }
  .page-home__container {
    padding: 0 15px;
  }
  /* Content area images must not cause overflow */
  .page-home img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }
  .page-home__category-image {
    height: 180px;
  }
  .page-home__floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }
  .page-home__floating-btn {
    width: 100px;
    height: 45px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-home__hero-title {
    font-size: 1.8em;
  }
  .page-home__hero-description {
    font-size: 0.9em;
  }
  .page-home__section-title {
    font-size: 1.8em;
  }
  .page-home__category-image {
    height: 150px;
  }
}