/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for default light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for clarity */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden; /* Ensure content stays within bounds */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image is not too small on desktop */
}

.page-casino__hero-content {
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #26A9E0; /* Brand color for title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%; /* Ensure container takes full width for responsive behavior */
  max-width: 600px;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for mobile */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  width: 280px; /* Default width for desktop */
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-casino__btn-primary:hover {
  background-color: #cc6a00;
  border-color: #cc6a00;
}

.page-casino__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* General Section Styles */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-casino__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
}

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

.page-casino__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333; /* Dark text for card content */
}

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

.page-casino__game-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px;
}

.page-casino__game-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #26A9E0; /* Brand color for card title */
}

.page-casino__game-card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-card-title a:hover {
  color: #007bb5; /* Darker blue on hover */
}

.page-casino__game-card-text {
  font-size: 0.95em;
  margin: 0 20px 20px;
  flex-grow: 1; /* Push link to bottom */
}

.page-casino__game-card-link {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  align-self: flex-start; /* Align link to the start */
  transition: background-color 0.3s ease;
  max-width: calc(100% - 40px); /* Ensure link fits in card */
  box-sizing: border-box;
}

.page-casino__game-card-link:hover {
  background-color: #007bb5;
}

/* Features Section (Why Choose Us) */
.page-casino__features-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF; /* White text for contrast */
}

.page-casino__features-section .page-casino__section-title,
.page-casino__features-section .page-casino__section-description {
  color: #FFFFFF; /* White text for section title/description */
}

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-icon {
  width: 100%; /* Make icon responsive */
  max-width: 100px; /* Max size for desktop */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-casino__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 10px 15px 40px; /* Adjust padding for mobile */
  }

  .page-casino__hero-image {
    min-height: 250px; /* Smaller min-height for mobile hero */
  }

  .page-casino__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-casino__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em) !important; /* Adjust H1 for mobile */
  }

  .page-casino__description {
    font-size: 1em !important;
  }

  .page-casino__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important; /* Full width buttons on mobile */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-casino__section-title {
    font-size: clamp(1.5em, 7vw, 2em) !important;
  }

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

  .page-casino__games-section,
  .page-casino__features-section,
  .page-casino__cta-section {
    padding: 50px 0 !important;
  }

  .page-casino__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-casino__games-grid {
    grid-template-columns: 1fr !important; /* Single column for games */
  }

  .page-casino__game-card-image {
    height: 180px !important; /* Adjust card image height */
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__feature-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Image responsiveness for all images in content area */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers containing images/buttons/videos are responsive */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__game-card,
  .page-casino__feature-item,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-casino__hero-section {
    padding-top: 10px !important; /* body has padding-top, this is decorative */
  }
}

/* Ensure no filter on images */
.page-casino img {
  filter: none !important;
}

/* Contrast fixes if needed - applied dynamically */
.page-casino__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-casino__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}