.page-casino {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  text-align: center;
  background-color: #F4F7FB;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 1280px; /* Constrain image width */
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-casino__hero-description {
  font-size: 1.15em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 30px;
}

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

.page-casino__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-casino__button--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-casino__button--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-casino__button--secondary {
  background-color: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #D6E2FF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__button--secondary:hover {
  background-color: #F4F7FB;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

.page-casino__games-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-casino__games-grid {
  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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-casino__game-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #1F2D3D;
  margin: 20px 15px 10px 15px;
}

.page-casino__game-title a {
  color: #1F2D3D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
  color: #2F6BFF;
}

.page-casino__game-description {
  font-size: 0.95em;
  color: #1F2D3D;
  padding: 0 15px 20px 15px;
  line-height: 1.5;
}

.page-casino__features-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

.page-casino__features-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-casino__features-text {
  flex: 1;
  min-width: 300px;
}

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

.page-casino__feature-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-item h3 {
  font-size: 1.3em;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-casino__feature-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-casino__features-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__features-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__promotions-callout {
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
  padding: 60px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-casino__promotions-callout .page-casino__section-title,
.page-casino__promotions-callout .page-casino__section-description {
  color: #FFFFFF;
}

.page-casino__promotions-container {
  max-width: 900px;
}

.page-casino__promotions-callout .page-casino__button--primary {
  background: #FFFFFF;
  color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__promotions-callout .page-casino__button--primary:hover {
  background: #E0E0E0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__responsible-gaming-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

.page-casino__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-casino__responsible-gaming-text {
  flex: 1;
  min-width: 300px;
}

.page-casino__responsible-gaming-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__responsible-gaming-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

  .page-casino__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

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

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

  .page-casino__button {
    width: 100%;
    max-width: 300px;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

  .page-casino__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-casino__features-content,
  .page-casino__responsible-gaming-content {
    flex-direction: column;
  }

  .page-casino__features-image-wrapper,
  .page-casino__responsible-gaming-image-wrapper {
    order: -1; /* Image above text on mobile */
  }

  .page-casino__game-image,
  .page-casino__features-image,
  .page-casino__responsible-gaming-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
  }
}

@media (max-width: 480px) {
  .page-casino__hero-section {
    padding-bottom: 30px;
  }

  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-casino__main-title {
    font-size: clamp(1.6em, 6vw, 2em);
  }

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

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

  .page-casino__button {
    padding: 12px 25px;
  }

  .page-casino__feature-item {
    padding: 20px;
  }
}

/* Ensure content images are at least 200px wide/high */
.page-casino img:not(.page-casino__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-card .page-casino__game-image {
  min-width: unset; /* Override for game cards to allow 100% width with fixed height */
  min-height: unset;
  width: 100%;
  height: 200px; /* Fixed height for visual consistency in grid */
  object-fit: cover;
}

.page-casino__features-image,
.page-casino__responsible-gaming-image {
  min-width: 200px;
  min-height: 200px;
}