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

.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-casino__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

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

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

.page-casino__hero-cta {
  background-color: #ffc107; /* Auxiliary color */
  color: #000000;
}

.page-casino__hero-cta:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-casino__section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-casino__section--dark {
  background-color: #007bff; /* Primary color as background */
  color: #ffffff;
}

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

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #007bff; /* Primary color */
}

.page-casino__section-title--light {
  color: #ffc107; /* Auxiliary color for light text on dark background */
}

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

.page-casino__grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-casino__text {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-casino__text--light {
  color: #f0f0f0;
}

.page-casino__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

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

.page-casino__game-card {
  background-color: #0056b3; /* Darker shade of primary for card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 5px solid #ffc107;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__game-card-title {
  font-size: 1.8em;
  margin: 0 20px 15px;
  color: #ffc107;
}

.page-casino__game-card-description {
  font-size: 1em;
  margin: 0 20px 25px;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-casino__game-card-link {
  background-color: #ffc107;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 30px;
  margin-top: auto; /* Push button to the bottom */
}

.page-casino__game-card-link:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-casino__btn--primary {
  background-color: #007bff;
  color: #ffffff;
}

.page-casino__btn--primary:hover {
  background-color: #0056b3;
}

.page-casino__btn--secondary {
  background-color: #ffc107;
  color: #000000;
}

.page-casino__btn--secondary:hover {
  background-color: #e0a800;
}

.page-casino__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino__security-list-item {
  margin-bottom: 10px;
}

.page-casino__link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-casino__link--light {
  color: #ffc107;
}

.page-casino__link:hover {
  text-decoration: underline;
}

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

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

.page-casino__feature-card-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
}

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

.page-casino__image--full-width {
  margin-top: 40px;
  box-shadow: none;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__cta-content {
  text-align: center;
}

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

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

.page-casino__floating-btn {
  display: block;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-casino__floating-btn--register {
  background-color: #007bff; /* Primary color */
  color: #ffffff;
}

.page-casino__floating-btn--register:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

.page-casino__floating-btn--login {
  background-color: #ffc107; /* Auxiliary color */
  color: #000000;
}

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

/* Responsive Design */
@media (min-width: 769px) {
  .page-casino__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-casino__grid--reverse-mobile {
    grid-template-columns: 1fr 1fr; /* Reset for desktop */
  }
  .page-casino__hero-section {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-casino__hero-section {
    padding: 40px 15px;
    min-height: 400px;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

  .page-casino__hero-container {
    padding: 20px;
  }

  .page-casino__section-title {
    font-size: 1.8em;
  }

  .page-casino__grid {
    grid-template-columns: 1fr;
  }

  .page-casino__grid--reverse-mobile .page-casino__grid-item:first-child {
    order: 2; /* Reverse order for content and image on mobile */
  }

  .page-casino__grid--reverse-mobile .page-casino__grid-item:last-child {
    order: 1;
  }

  .page-casino__image {
    margin-bottom: 20px;
  }

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

  .page-casino__floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .page-casino__floating-btn {
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Ensure content images do not overflow on mobile */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }

  /* Content area image size check (must not be less than 200px) */
  .page-casino__image,
  .page-casino__game-card-image,
  .page-casino__image--full-width {
    min-width: 200px;
    min-height: 200px; /* Ensure both dimensions are at least 200px */
    object-fit: cover;
  }
}