.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 space for fixed header */
}

.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px;
  background-color: #000080; /* Dark blue background */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let background color show */
}

.page-casino__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

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

.page-casino__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-casino__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

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

.page-casino__button--secondary:hover {
  background-color: #FFD700;
  color: #000080;
  transform: translateY(-2px);
}

.page-casino__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-casino__button--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-casino__button--text {
  background: none;
  border: none;
  color: #000080; /* Dark blue text for text button */
  text-decoration: underline;
  padding: 0;
}

.page-casino__button--text:hover {
  color: #FFD700;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #000080; /* Dark blue for section titles */
  text-align: center;
  margin-bottom: 20px;
}

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

.page-casino__games-overview-section,
.page-casino__features-section,
.page-casino__responsible-gaming-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.page-casino__games-overview-section {
  background-color: #ffffff;
}

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

.page-casino__game-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  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(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

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

.page-casino__game-card-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

.page-casino__feature-item {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 1em;
  color: #666666;
}

.page-casino__cta-section {
  background-color: #FFD700; /* Gold background for CTA */
  color: #000080;
  padding: 80px 20px;
  text-align: center;
}

.page-casino__cta-title {
  font-size: 3em;
  color: #000080;
  margin-bottom: 20px;
}

.page-casino__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__responsible-gaming-section {
  background-color: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}

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

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

@media (max-width: 768px) {
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-actions {
    flex-direction: column;
  }
  .page-casino__button {
    width: 100%;
    max-width: 300px; /* Limit button width on mobile */
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__cta-title {
    font-size: 2em;
  }
  .page-casino__game-card-image, .page-casino__feature-icon {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
  }
  .page-casino__games-overview-section img, .page-casino__features-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-section {
    padding: 60px 15px;
  }
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__cta-title {
    font-size: 1.8em;
  }
  .page-casino__button--large {
    font-size: 1em;
    padding: 15px 25px;
  }
}

/* Global image sizing for content area to prevent small icons */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
    /* For responsive images, use max-width and height: auto */
    max-width: 100%; 
    height: auto;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Override for specific smaller images if needed, ensuring minimums are met */
.page-casino__feature-icon {
    width: 200px; /* Enforce minimum width */
    height: 150px; /* Enforce minimum height */
    object-fit: contain; /* Icons might need 'contain' */
    margin: 0 auto 20px auto; /* Center icons */
}

/* Mobile specific image adjustments to prevent overflow */
@media (max-width: 768px) {
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-casino__hero-section,
  .page-casino__games-overview-section,
  .page-casino__features-section,
  .page-casino__responsible-gaming-section {
    overflow-x: hidden;
  }
}