.page-casino {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F;
  color: #F2FFF6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-casino__hero-section {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #11271B; /* Fallback background for hero */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-casino__hero-content {
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto;
  position: relative; /* Ensure content is above image if image is background, but here it's below */
  z-index: 2; /* Ensure content appears above image in some contexts */
  text-align: center;
}

.page-casino__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #A7D9B8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
}

.page-casino__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-casino__btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn--secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-casino__btn--secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
}

.page-casino__btn--small {
  padding: 8px 18px;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-casino__btn--small:hover {
  opacity: 0.9;
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.3);
}

.page-casino__btn--outline {
  background-color: transparent;
  color: #2AD16F;
  border: 1px solid #2AD16F;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-casino__btn--outline:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
}

.page-casino__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-casino__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #A7D9B8;
}

.page-casino__games-section,
.page-casino__why-choose-section,
.page-casino__promotions-section,
.page-casino__guide-section,
.page-casino__cta-section {
  padding: 40px 20px;
  margin-bottom: 40px;
  background-color: #08160F;
  border-radius: 12px;
}

.page-casino__games-section {
  background-color: #11271B;
}

.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino__game-card {
  background-color: #0A4B2C;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2FFF6;
  padding: 0 15px;
}

.page-casino__game-intro {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-casino__feature-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px #57E38D);
}

.page-casino__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-casino__feature-description {
  font-size: 0.9rem;
  color: #A7D9B8;
}

.page-casino__promotions-section {
  background-color: #11271B;
}

.page-casino__promo-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino__promo-card {
  background-color: #0A4B2C;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-casino__promo-image {
  width: 100%;
  height: 250px; /* Ensure images are not small */
  object-fit: cover;
}

.page-casino__promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-casino__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-casino__promo-text {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__guide-section {
  background-color: #11271B;
  text-align: center;
}

.page-casino__guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__guide-content p {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-casino__guide-content a {
  color: #2AD16F; /* Link color for text */
  text-decoration: underline;
}

.page-casino__cta-section {
  background-color: #0A4B2C;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 0;
}

.page-casino__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-casino__hero-content {
    padding: 30px 15px;
  }

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

  .page-casino__btn {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-casino__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-casino__promo-cards {
    flex-direction: column;
    align-items: center;
  }

  .page-casino__promo-card {
    max-width: 100%;
  }

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

  /* Critical: Mobile image overflow fix */
  .page-casino img {
    max-width: 100%;
    height: auto; /* Ensure aspect ratio is maintained */
  }
  .page-casino__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-casino__game-image, .page-casino__promo-image {
    height: auto; /* Allow auto height for responsiveness */
    min-height: 200px; /* But maintain minimum size */
  }
}

@media (max-width: 480px) {
  .page-casino__hero-content {
    padding: 20px 10px;
  }

  .page-casino__main-title {
    font-size: 1.8rem;
  }

  .page-casino__section-title {
    font-size: 1.5rem;
  }

  .page-casino__hero-description,
  .page-casino__section-description,
  .page-casino__game-intro,
  .page-casino__feature-description,
  .page-casino__promo-text {
    font-size: 0.9rem;
  }

  .page-casino__game-title {
    font-size: 1.3rem;
  }

  .page-casino__promo-title {
    font-size: 1.2rem;
  }

  .page-casino__games-section,
  .page-casino__why-choose-section,
  .page-casino__promotions-section,
  .page-casino__guide-section,
  .page-casino__cta-section {
    padding: 30px 15px;
  }
}

/* Ensure content area images are not too small */
.page-casino img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider) {
  min-width: 200px;
  min-height: 200px;
  /* These are minimums, actual display size should be larger where appropriate */
}

/* Specific overrides for image display dimensions to ensure they are not shrunk by CSS */
.page-casino__hero-image[width="1200"][height="675"] { max-width: 100%; height: auto; }
.page-casino__game-image[width="400"][height="300"] { max-width: 100%; height: auto; }
.page-casino__feature-icon[width="200"][height="200"] { max-width: 100%; height: auto; }
.page-casino__promo-image[width="400"][height="225"] { max-width: 100%; height: auto; }