/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the page, suitable for dark body background */
  background-color: #000; /* Inherited from shared.css body, but explicitly set for clarity */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #CC0000;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-casino__section-description,
.page-casino__paragraph {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 20px;
}

.page-casino__text-block {
  text-align: left;
  color: #f0f0f0;
}

.page-casino__text-block .page-casino__paragraph {
  text-align: left;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

.page-casino__hero-section .page-casino__container {
  position: relative;
  z-index: 1;
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #CC0000;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f8f8f8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* 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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-casino__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #CC0000;
  border: 2px solid #CC0000;
}

.page-casino__btn-secondary:hover {
  background-color: #CC0000;
  color: #ffffff;
  transform: translateY(-2px);
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-casino__about-section .page-casino__section-title {
  color: #CC0000;
}

.page-casino__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #000;
  color: #ffffff;
}

.page-casino__games-section .page-casino__section-title {
  color: #CC0000;
}

.page-casino__games-section .page-casino__section-description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__card {
  background-color: rgba(0, 51, 102, 0.7); /* #003366 with transparency */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-casino__card:hover {
  transform: translateY(-5px);
  background-color: #003366;
}

.page-casino__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-casino__card-title {
  font-size: 1.6em;
  color: #CC0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-casino__why-choose-section .page-casino__section-title {
  color: #CC0000;
}

.page-casino__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-casino__list-item {
  background-color: rgba(204, 0, 0, 0.1);
  border-left: 5px solid #CC0000;
  padding: 20px;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__list-item strong {
  color: #CC0000;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #003366;
  color: #ffffff;
  text-align: center;
}

.page-casino__promotions-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__promotions-section .page-casino__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-casino__promotions-section .page-casino__btn-primary {
  margin-top: 30px;
  background-color: #CC0000;
  border-color: #CC0000;
}

.page-casino__promotions-section .page-casino__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
}

/* Video Section */
.page-casino__video-section {
  padding: 80px 0;
  background-color: #000;
  color: #ffffff;
  text-align: center;
}

.page-casino__video-section .page-casino__section-title {
  color: #CC0000;
}

.page-casino__video-section .page-casino__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-casino__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Ensures the link overlay is clickable */
  cursor: pointer;
}

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

.page-casino__faq-section .page-casino__section-title {
  color: #CC0000;
}

.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background-color: rgba(0, 51, 102, 0.7); /* #003366 with transparency */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.page-casino__faq-item:hover {
  background-color: #003366;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-item.active .page-casino__faq-question {
  color: #CC0000;
  border-bottom: 1px solid #CC0000;
}

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

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

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  font-size: 1.1em;
  color: #e0e0e0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

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

.page-casino__cta-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__cta-section .page-casino__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f8f8f8;
}

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

.page-casino__cta-section .page-casino__btn-primary {
  background-color: #003366;
  border-color: #003366;
}

.page-casino__cta-section .page-casino__btn-primary:hover {
  background-color: #004488;
  border-color: #004488;
}

.page-casino__cta-section .page-casino__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-casino__cta-section .page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #CC0000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__card-title {
    font-size: 1.4em;
  }
  .page-casino__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

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

  /* Responsive video */
  .page-casino video,
  .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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Responsive buttons */
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__hero-buttons,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__faq-question,
  .page-casino__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
}

/* Color Contrast Fixes based on body background #000 (dark) */
.page-casino {
  color: #ffffff; /* Light text on dark body background */
}

.page-casino__card {
  background-color: rgba(0, 51, 102, 0.7); /* Dark blue with transparency */
  color: #ffffff;
}

.page-casino__card:hover {
  background-color: #003366;
}

.page-casino__dark-bg {
  background-color: #000;
  color: #ffffff;
}

.page-casino__medium-bg {
  background-color: #003366;
  color: #ffffff;
}

.page-casino__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
}

.page-casino__btn-secondary {
  color: #CC0000;
  border-color: #CC0000;
}
.page-casino__btn-secondary:hover {
  background-color: #CC0000;
  color: #ffffff;
}

.page-casino__list-item {
  color: #f0f0f0;
}

.page-casino__faq-question {
  color: #ffffff;
}

.page-casino__faq-item.active .page-casino__faq-question {
  color: #CC0000;
}

.page-casino__faq-toggle {
  color: #CC0000;
}
.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #CC0000;
}

.page-casino__faq-answer {
  color: #e0e0e0;
}

.page-casino__cta-section {
  background-color: #CC0000;
  color: #ffffff;
}

.page-casino__cta-section .page-casino__btn-primary {
  background-color: #003366;
  border-color: #003366;
  color: #ffffff;
}

.page-casino__cta-section .page-casino__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
  background-color: transparent;
}
.page-casino__cta-section .page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #CC0000;
}