.page-casino {
  color: #333333; 
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #000000; /* Main color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45; /* Login button color for accent */
  border-radius: 2px;
}

.page-casino__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  font-size: 1em;
  cursor: pointer;
  border: none;
}

.page-casino__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Text color contrasting with white */
  border: 2px solid #FCBC45;
}

.page-casino__button--register:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

.page-casino__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #FFFFFF; /* Text color contrasting with FCBC45 */
}

.page-casino__button--login:hover {
  background-color: #e0a030;
}

.page-casino__button--learn-more,
.page-casino__button--sign-up,
.page-casino__button--download-app,
.page-casino__button--view-games,
.page-casino__button--view-details {
  background-color: #FCBC45;
  color: #FFFFFF;
  border: none;
}

.page-casino__button--learn-more:hover,
.page-casino__button--sign-up:hover,
.page-casino__button--download-app:hover,
.page-casino__button--view-games:hover,
.page-casino__button--view-details:hover {
  background-color: #e0a030;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  color: #FFFFFF; /* Text on hero image should be light */
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-casino__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
  border-radius: 10px;
}

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

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

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

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

.page-casino__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-casino__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-casino__image--left,
.page-casino__image--right {
  flex: 1;
  min-width: 200px; /* Enforce min image size */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__text-content {
  flex: 1.5;
  text-align: left;
}

.page-casino__text-content .page-casino__paragraph {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* 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(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-casino__game-card:hover {
  transform: translateY(-10px);
}

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

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

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

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

.page-casino__game-card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  text-align: center;
}

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

.page-casino__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-casino__feature-item {
  margin-bottom: 25px;
  text-align: left;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 5px;
  position: relative;
  padding-left: 30px;
}

.page-casino__feature-title::before {
  content: '&#x2713;'; /* Checkmark icon */
  position: absolute;
  left: 0;
  top: 0;
  color: #FCBC45;
  font-size: 1.2em;
  font-weight: bold;
}

.page-casino__feature-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
  margin-left: 30px;
}

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

.page-casino__cta-content {
  position: relative;
  padding: 60px 40px;
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  border-radius: 15px;
  overflow: hidden;
}

.page-casino__cta-content .page-casino__section-title,
.page-casino__cta-content .page-casino__paragraph {
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

.page-casino__cta-content .page-casino__section-title::after {
  background-color: #FFFFFF;
}

.page-casino__cta-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

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

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

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

.page-casino__guide-card {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-casino__guide-card:hover {
  transform: translateY(-8px);
}

.page-casino__guide-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

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

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

.page-casino__guide-card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }

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

  .page-casino__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-casino__image--left,
  .page-casino__image--right {
    width: 80%;
    margin: 0 auto 30px auto;
  }

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

  .page-casino__text-content .page-casino__paragraph,
  .page-casino__feature-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .page-casino__feature-title {
    padding-left: 0;
    text-align: center;
  }

  .page-casino__feature-title::before {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
}

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

  .page-casino__hero-section {
    min-height: 450px;
    padding: 60px 15px;
  }

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

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

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

  .page-casino__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__button {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino__paragraph {
    font-size: 1em;
  }

  .page-casino__image--left,
  .page-casino__image--right,
  .page-casino__game-card-image,
  .page-casino__cta-image,
  .page-casino__guide-card-image {
    max-width: 100%;
    height: auto;
  }

  .page-casino__game-categories,
  .page-casino__guide-cards {
    grid-template-columns: 1fr;
  }

  .page-casino__game-card-image,
  .page-casino__guide-card-image {
    height: 200px; /* Adjust height for mobile card images */
  }

  .page-casino__cta-content {
    padding: 40px 20px;
  }

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

/* Ensure all images within .page-casino are not smaller than 200px */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for images within cards to ensure they are not too small on desktop */
.page-casino__game-card-image,
.page-casino__guide-card-image {
  width: 100%; /* Ensure they take full width of their container */
  height: 250px; /* Maintain a good height */
  object-fit: cover;
}

/* Mobile responsive image sizing */
@media (max-width: 768px) {
  .page-casino img {
    max-width: 100%;
    height: auto;
    min-width: unset; /* Allow images to scale down */
    min-height: unset; /* Allow images to scale down */
  }
  /* Ensure content area images maintain minimum size if possible, but scale down */
  .page-casino__image--left,
  .page-casino__image--right,
  .page-casino__game-card-image,
  .page-casino__cta-image,
  .page-casino__guide-card-image {
    min-width: 200px; /* Still apply min-width for larger content images */
    min-height: 200px; /* Still apply min-height for larger content images */
  }
  /* Override for smaller images inside cards if needed, but the general rule is >=200px */
  .page-casino__game-card-image,
  .page-casino__guide-card-image {
    height: auto; /* Let height adjust with max-width: 100% */
  }
}