.page-casino {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-casino__section-title,
.page-casino__cta-title {
  font-size: 2.5em;
  color: #000000; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

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

.page-casino__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #000000;
  margin-left: 15px;
}

.page-casino__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #555555;
}

.page-casino__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: 0;
  background-color: #000000; /* Fallback for hero section background */
}

.page-casino__hero-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text */
  border-radius: 10px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

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

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

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

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

.page-casino__about-text p {
  margin-bottom: 20px;
  color: #333333;
}

.page-casino__link {
  color: #000000;
  text-decoration: underline;
  font-weight: bold;
}

.page-casino__link:hover {
  color: #FCBC45;
}

.page-casino__about-image-wrapper {
  text-align: center;
}

.page-casino__about-image {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure image fills its container */
  height: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

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

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.page-casino__game-card-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

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

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

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

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

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-casino__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__promo-card-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-card-description {
  font-size: 0.9em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

.page-casino__mobile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-casino__mobile-text p {
  margin-bottom: 20px;
  color: #333333;
}

.page-casino__mobile-image-wrapper {
  text-align: center;
}

.page-casino__mobile-image {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensure image fills its container */
  height: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

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

.page-casino__feature-card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__feature-card-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-casino__feature-card-description {
  font-size: 0.9em;
  color: #555555;
}

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

.page-casino__cta-title {
  color: #FFFFFF;
}

.page-casino__cta-description {
  color: #f0f0f0;
}

.page-casino__cta-section .page-casino__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-casino__cta-section .page-casino__button--primary:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
  .page-casino__section-title,
  .page-casino__cta-title {
    font-size: 2em;
  }
  .page-casino__about-grid,
  .page-casino__mobile-content {
    grid-template-columns: 1fr;
  }
  .page-casino__about-image-wrapper,
  .page-casino__mobile-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-casino__button--secondary {
    margin-left: 0;
  }
  .page-casino__section-title,
  .page-casino__cta-title {
    font-size: 1.8em;
  }
  .page-casino__section-description,
  .page-casino__cta-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__mobile-section,
  .page-casino__why-choose-section,
  .page-casino__cta-section {
    padding: 40px 0;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__hero-content {
    padding: 20px;
  }
  .page-casino__game-card-image,
  .page-casino__promo-card-image,
  .page-casino__about-image,
  .page-casino__mobile-image,
  .page-casino__feature-card-icon {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }
  .page-casino__about-grid,
  .page-casino__mobile-content {
    gap: 30px;
  }
  .page-casino__game-categories,
  .page-casino__promotions-grid,
  .page-casino__why-choose-grid {
    grid-template-columns: 1fr;
  }
  /* Specific rule for content images to prevent small sizes */
  .page-casino img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}