/* style/casino.css */
/* body already handles padding-top: var(--header-offset); */
.page-casino {
  background-color: #0A0A0A; /* Main background color */
  color: #FFF6D6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-casino__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly with image for visual flow */
  background: rgba(17, 17, 17, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid #3A2A12;
}

.page-casino__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E;
  border: 2px solid #F2C14E;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-casino__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
  transform: translateY(-2px);
}

.page-casino__btn-centered {
  display: block;
  margin: 40px auto 0;
}

/* About Section */
.page-casino__about-section {
  padding: 60px 0;
}

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

.page-casino__about-text {
  flex: 1;
}

.page-casino__about-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #FFF6D6;
}

.page-casino__about-image-wrapper {
  flex: 0 0 500px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

.page-casino__about-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Game Categories Section */
.page-casino__game-categories-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-casino__category-card {
  background: #111111; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-casino__category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__category-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-casino__category-description {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* Featured Games Section */
.page-casino__featured-games-section {
  padding: 60px 0;
}

.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: #111111; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

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

.page-casino__game-title {
  font-size: 1.3em;
  color: #F2C14E;
  padding: 20px 20px 10px;
}

.page-casino__game-description {
  font-size: 0.95em;
  color: #FFF6D6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Live Experience Section */
.page-casino__live-experience-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12;
}

.page-casino__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-casino__video-caption {
  text-align: center;
  color: #FFF6D6;
  font-size: 0.95em;
  margin-top: 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
}

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

.page-casino__promo-card {
  background: #111111; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-casino__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-casino__promo-title {
  font-size: 1.3em;
  color: #F2C14E;
  padding: 20px 20px 10px;
}

.page-casino__promo-description {
  font-size: 0.95em;
  color: #FFF6D6;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-casino__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-casino__benefit-item {
  background: #111111; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

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

.page-casino__benefit-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-casino__benefit-description {
  font-size: 0.95em;
  color: #FFF6D6;
}

/* Partners Section */
.page-casino__partners-section {
  padding: 60px 0;
}

.page-casino__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr));
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
  align-items: center;
}

.page-casino__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: brightness(0.8) grayscale(0.2); /* Subtle effect, no color change */
  transition: filter 0.3s ease;
}

.page-casino__partner-logo:hover {
  filter: brightness(1) grayscale(0); /* Restore on hover */
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
}

.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  color: #F2C14E;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 0.95em;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Use !important as required */
  padding: 15px 20px 20px;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

/* Dark background sections */
.page-casino__dark-section {
  background-color: #111111; /* Card BG as section background */
  color: #FFF6D6;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-casino__about-content {
    flex-direction: column;
  }

  .page-casino__about-image-wrapper {
    flex: none;
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 30px 15px;
  }

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

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

  .page-casino__hero-section {
    padding-bottom: 40px;
  }

  .page-casino__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
    border-radius: 10px;
  }

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

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

  .page-casino__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;
    font-size: 1em;
  }

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__benefit-item,
  .page-casino__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-image-wrapper {
    max-height: 300px;
  }

  /* Video responsive */
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino__video-section {
    padding-top: 10px !important; /* Specific top padding for video section */
  }

  .page-casino__partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-casino__partner-logo {
    width: 100%;
    max-width: 120px;
    height: auto;
  }

  .page-casino__faq-question {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: clamp(1.6em, 8vw, 2.5em);
  }

  .page-casino__hero-content {
    margin-top: -80px;
  }

  .page-casino__categories-grid,
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__category-card,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__benefit-item {
    padding: 20px;
  }

  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px;
  }

  .page-casino__about-image-wrapper {
    max-width: 100%;
  }
}

/* Dark/Light background classes (for contrast management) */
.page-casino__dark-bg {
  color: #ffffff; /* Deep dark background requires light text */
  background: #0A0A0A;
}

.page-casino__light-bg {
  color: #333333; /* Light background requires dark text */
  background: #ffffff;
}

.page-casino__medium-bg {
  color: #000000; /* Medium background defaults to dark text */
  background: #FFD36B;
}

/* Contrast Fixes */
.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;
}