/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css, ensure content contrast */
}

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

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
  padding-top: var(--header-offset, 120px);
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register and Login Font */
}

.page-casino__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-register,
.page-casino__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register and Login Font */
  border: 2px solid #C30808;
}

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

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

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

.page-casino__btn-register {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register and Login Font */
  border: 2px solid #C30808;
}

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

.page-casino__btn-login {
  background-color: #C30808; /* Login color */
  color: #FFFF00; /* Register and Login Font */
  border: 2px solid #C30808;
}

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

/* --- General Section Styling --- */
.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #FFFF00; /* Highlight important titles */
  line-height: 1.2;
}

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

.page-casino__subtitle {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #FFFF00;
}

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

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

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

.page-casino__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

/* --- Download App Section --- */
.page-casino__download-app-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-casino__align-center {
  align-items: center;
}

.page-casino__download-steps {
  padding-right: 30px;
}

.page-casino__step-title {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-casino__step-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__step-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.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;
  border-radius: 12px;
}

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

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

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
}

.page-casino__game-image {
  width: 100%;
  max-width: 350px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-casino__section-subtitle {
  font-size: 2em;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  color: #017439;
}

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

.page-casino__promo-content {
  padding-right: 30px;
}

.page-casino__promo-subtitle {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-casino__promo-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__promo-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* --- Registration Section --- */
.page-casino__registration-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-casino__reg-steps {
  padding-right: 30px;
}

.page-casino__reg-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-casino__reg-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__reg-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* --- Support Section --- */
.page-casino__support-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-casino__support-channels {
  padding-right: 30px;
}

.page-casino__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: flex-start;
}

.page-casino__list-item-strong {
  color: #FFFF00;
  margin-right: 8px;
  min-width: 100px; /* Adjust as needed */
}

.page-casino__support-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__support-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* --- FAQ Section --- */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  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;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.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;
  color: #f0f0f0;
}

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

/* --- Conclusion Section --- */
.page-casino__conclusion-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
  text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }

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

  .page-casino__grid-2-cols {
    grid-template-columns: 1fr;
  }

  .page-casino__download-steps,
  .page-casino__promo-content,
  .page-casino__reg-steps,
  .page-casino__support-channels {
    padding-right: 0;
    margin-bottom: 40px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-register,
  .page-casino__btn-login {
    width: 100%;
    max-width: 300px; /* Limit width for larger mobile devices */
    margin: 0 auto;
  }
}

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

  .page-casino__hero-section {
    padding: 60px 0;
  }

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

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

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

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

  .page-casino__benefits-section,
  .page-casino__download-app-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__registration-section,
  .page-casino__support-section,
  .page-casino__faq-section,
  .page-casino__conclusion-section {
    padding: 40px 0;
  }

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

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

  .page-casino__step-title,
  .page-casino__promo-subtitle,
  .page-casino__subtitle {
    font-size: 1.4em;
  }

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

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

  /* Force responsive for all images, videos, and buttons */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-casino__video-wrapper,
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container,
  .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; /* Prevent horizontal scroll */
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-casino__hero-buttons,
  .page-casino__reg-buttons,
  .page-casino__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-casino__download-app-section .page-casino__video-wrapper {
    padding-top: 0 !important;
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

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