/* style/casino.css */
.page-casino {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background if not set by shared */
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-casino__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-casino__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  cursor: pointer;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

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

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

.page-casino__intro-section {
  background-color: #0a0a0a; /* Dark background for this section */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 0;
}

.page-casino__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
  text-align: justify;
}

.page-casino__text-block strong {
  color: #26A9E0;
}

.page-casino__games-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-casino__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-casino__card-title a:hover {
  text-decoration: underline;
}

.page-casino__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn-text {
  display: inline-flex;
  align-items: center;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: #EA7C07;
}

.page-casino__arrow-icon {
  margin-left: 8px;
  font-size: 1.2em;
}

.page-casino__advantages-section {
  background-color: #0a0a0a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-casino__advantage-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__advantage-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons circular if desired */
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
}

.page-casino__advantage-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-casino__advantage-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-casino__promotions-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-casino__guide-section {
  background-color: #0a0a0a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-casino__step-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-casino__step-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-casino__tips-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-casino__tip-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__tip-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-casino__tip-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-casino__faq-section {
  background-color: #0a0a0a;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-casino__faq-text {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-casino__btn-primary:hover {
  background-color: #EA7C07; /* Login color on hover */
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid #26A9E0; /* Main brand color border */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

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

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

.page-casino__cta-buttons--center {
  justify-content: center;
}

/* Responsive Design */
@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: 2.2em;
  }

  .page-casino__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__hero-section {
    height: 70vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-casino__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-casino__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-casino__btn-primary, .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 300px !important; /* Constrain width for better look */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  .page-casino__container,
  .page-casino__intro-section,
  .page-casino__games-section,
  .page-casino__advantages-section,
  .page-casino__promotions-section,
  .page-casino__guide-section,
  .page-casino__tips-section,
  .page-casino__faq-section {
    padding: 40px 15px !important; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

  .page-casino__game-cards-grid,
  .page-casino__advantages-grid,
  .page-casino__promotion-cards-grid,
  .page-casino__steps-grid,
  .page-casino__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__card-image {
    height: auto;
    max-height: 200px;
  }

  .page-casino__advantage-icon {
    width: 100px;
    height: 100px;
  }

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

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

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }

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

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

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

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

/* Contrast Fixes */
.page-casino__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #f8f8f8; /* A very light grey for contrast on light sections */
  color: #333333;
}

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-casino__card-title a {
  color: #26A9E0;
}

.page-casino__btn-text {
  color: #26A9E0;
}

.page-casino__btn-text:hover {
  color: #EA7C07;
}

.page-casino__faq-question {
  color: #26A9E0;
}

.page-casino__faq-title {
  color: #26A9E0;
}

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