/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default light background */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background: linear-gradient(135deg, #26A9E0, #1A7BB5); /* Brand colors gradient */
  color: #ffffff;
  overflow: hidden; /* To contain the video */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2; /* Ensure content is above video */
  max-width: 900px;
  margin-bottom: 40px;
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Video Wrapper */
.page-casino__hero-video-wrapper {
  position: relative;
  width: 80%; /* Adjust as needed */
  max-width: 1280px; /* Max width for the video */
  padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
  z-index: 1;
}

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

.page-casino__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 3; /* Make link clickable over video */
}

/* General Section Styling */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

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

/* Game Categories Section */
.page-casino__game-categories {
  padding: 80px 0;
}

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

.page-casino__game-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

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

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

.page-casino__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

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

.page-casino__card-title a:hover {
  color: #1A7BB5;
}

.page-casino__card-text {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #555555;
  flex-grow: 1; /* Ensure text takes available space */
}

.page-casino__btn-text {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.page-casino__btn-text:hover {
  background-color: #1A7BB5;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-casino__why-choose-us .page-casino__section-title,
.page-casino__why-choose-us .page-casino__section-description {
  color: #ffffff;
}

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

.page-casino__feature-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 15px;
  transition: background 0.3s ease;
}

.page-casino__feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-casino__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__feature-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

.page-casino__cta-buttons--centered {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* How to Play Section */
.page-casino__how-to-play {
  padding: 80px 0;
}

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

.page-casino__step-item {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #333333;
}

.page-casino__step-number {
  font-size: 3em;
  font-weight: bold;
  color: rgba(38, 169, 224, 0.2); /* Light transparent brand color */
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 0;
}

.page-casino__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
  position: relative;
  z-index: 1;
}

.page-casino__step-text {
  font-size: 1em;
  color: #555555;
  position: relative;
  z-index: 1;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-casino__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background: #f0f8ff; /* Light blue background for summary */
  border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Remove default details arrow */
.page-casino__faq-item summary {
  list-style: none;
}
.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}


/* SEO Content Section */
.page-casino__seo-content {
  padding: 80px 0;
}

.page-casino__seo-content h2 {
  color: #26A9E0;
  margin-bottom: 30px;
}

.page-casino__seo-content h3 {
  font-size: 1.8em;
  color: #1A7BB5;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-casino__seo-content p {
  margin-bottom: 20px;
  color: #333333;
}

.page-casino__seo-content ul,
.page-casino__seo-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
  color: #333333;
}

.page-casino__seo-content ul li,
.page-casino__seo-content ol li {
  margin-bottom: 10px;
  color: #333333;
}

.page-casino__seo-content strong {
  color: #26A9E0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

.page-casino__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1A7BB5;
  border-color: #1A7BB5;
}

/* Light/Dark Background Classes for Contrast */
.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Images - Global styles */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__game-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-casino__container,
  .page-casino__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__hero-video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio for mobile */
    margin-top: 30px;
  }

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

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

  .page-casino__game-grid,
  .page-casino__feature-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card img {
    
  }

  .page-casino__card-title {
    font-size: 1.3em;
  }

  .page-casino__feature-title {
    font-size: 1.5em;
  }

  .page-casino__step-title {
    font-size: 1.5em;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 15px 20px;
  }

  .page-casino__seo-content h3 {
    font-size: 1.5em;
  }

  /* Force responsive image/video behavior */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* Content area image CSS dimensions lower bound check */
  /* Ensure content images are not smaller than 200px */
  .page-casino__game-card img,
  .page-casino__feature-item img {
    min-width: 200px !important; /* Ensure min-width is respected */
    min-height: 200px !important; /* Ensure min-height is respected */
    width: auto !important; /* Allow auto width to scale with max-width */
    height: auto !important; /* Allow auto height to scale with max-height */
  }
}