.page-casino {
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden; /* Ensure no overflow */
}

.page-casino__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

.page-casino__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, no fixed large size */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__subtitle {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

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

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

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

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

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb3;
  border-color: #1a7fb3;
}

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

.page-casino__btn-tertiary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino__btn-text {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 0;
  text-decoration: underline;
}

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

.page-casino__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

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

.page-casino__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with body #0a0a0a */
  padding: 60px 0;
  color: #ffffff;
}

.page-casino__about-section .page-casino__text-block,
.page-casino__promotions-section .page-casino__text-block,
.page-casino__security-section .page-casino__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__games-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Same as body for seamless integration */
}

.page-casino__game-category {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__game-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-casino__game-image {
  width: 100%;
  height: auto;
  max-height: 400px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-casino__game-description {
  color: #e0e0e0;
  margin-bottom: 25px;
  font-size: 1rem;
  text-align: justify;
}

.page-casino__promo-image,
.page-casino__security-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-casino__promo-item {
  position: relative;
  color: #e0e0e0;
  margin-bottom: 10px;
  padding-left: 25px;
}

.page-casino__promo-item::before {
  content: '✔️'; /* Unicode checkmark */
  position: absolute;
  left: 0;
  color: #26A9E0;
}

.page-casino__video-section {
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #0a0a0a;
  text-align: center;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 30px auto;
  background-color: #000; /* Placeholder background */
}

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

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

.page-casino__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-casino__faq-item {
  background-color: #0a0a0a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-casino__faq-item summary {
  list-style: none; /* Remove default marker */
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #26A9E0;
  background-color: #0a0a0a;
  transition: background-color 0.3s ease;
}

.page-casino__faq-item summary:hover {
  background-color: #1a1a1a;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff; /* White for the toggle icon */
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  color: #e0e0e0;
  font-size: 1rem;
  max-height: 0; /* For JS fallback, if details tag not used */
  overflow: hidden; /* For JS fallback */
  transition: max-height 0.3s ease-out;
}

.page-casino__faq-item[open] .page-casino__faq-answer {
    max-height: fit-content; /* Ensure content is visible when open for details tag */
    max-height: 2000px; /* Large enough value for JS fallback */
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-casino__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px !important; /* Add padding for mobile content */
  }

  .page-casino__hero-section {
    padding: 10px 0 40px 0 !important;
  }

  .page-casino__main-title {
    font-size: 2.2rem !important; /* Specific font size for mobile */
    max-width: 100% !important;
  }

  .page-casino__subtitle {
    font-size: 1rem !important;
  }

  .page-casino__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 15px !important;
    width: 100% !important;
    padding: 0 15px !important; /* Add padding to button container */
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .page-casino__btn-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-casino__section-title {
    font-size: 1.8rem !important;
    padding-top: 30px !important;
  }

  .page-casino__text-block {
    font-size: 0.95rem !important;
  }

  .page-casino__game-category {
    padding: 20px !important;
  }

  .page-casino__game-title {
    font-size: 1.5rem !important;
  }

  .page-casino__promo-list {
    padding: 0 15px !important;
  }

  /* All images responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers responsive */
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__game-category,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Video specific responsive styles */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__video-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
  }

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

  .page-casino__video-link-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__faq-item summary {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }
  .page-casino__faq-answer {
    padding: 0 20px 15px 20px !important;
  }
}

/* Ensure desktop video container has width: 100% with max-width */
.page-casino__video-container {
  width: 100%; /* Important for desktop flex alignment with max-width */
  max-width: 1200px;
  margin: 0 auto;
}