/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

/* Typography */
.page-casino__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-casino__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 600;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-casino__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  color: #017439;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-casino__card-title, .page-casino__checklist-title, .page-casino__step-title {
  font-size: clamp(1.2em, 2vw, 1.5em);
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__description, .page-casino__text-block, .page-casino__card-text, .page-casino__checklist-text, .page-casino__step-text, .page-casino__faq-answer p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-casino__highlight {
  font-weight: bold;
  color: #017439;
}

.page-casino__dark-bg .page-casino__highlight {
  color: #FFFF00; /* Custom color for highlight on dark background */
}

/* Sections and Containers */
.page-casino__section {
  padding: 60px 20px;
}

.page-casino__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-casino__dark-bg .page-casino__section-title, .page-casino__dark-bg .page-casino__sub-title, .page-casino__dark-bg .page-casino__card-title, .page-casino__dark-bg .page-casino__checklist-title, .page-casino__dark-bg .page-casino__step-title {
  color: #FFFFFF;
}

.page-casino__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-casino__text-center {
  text-align: center;
}

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

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

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

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

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #FFFF00;
}

.page-casino__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

/* Card Grid */
.page-casino__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

.page-casino__checklist-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-left: 5px solid #FFFF00; /* Accent color for checklist */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__dark-bg .page-casino__checklist-item {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Content Grid (Text and Image) */
.page-casino__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-casino__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-casino__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__text-content {
  flex: 2;
  min-width: 300px;
}

/* Steps Grid */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  counter-reset: step-counter;
}

.page-casino__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__step-number {
  counter-increment: step-counter;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808; /* Custom color for step number */
  color: #FFFF00; /* Custom font color for step number */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  border: 3px solid #017439;
}

.page-casino__step-card:nth-child(even) .page-casino__step-number {
    background-color: #017439;
    border-color: #C30808;
}

.page-casino__step-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

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

.page-casino__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__dark-bg .page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15em;
  color: #017439;
  position: relative;
  user-select: none;
}

.page-casino__dark-bg .page-casino__faq-question {
  color: #FFFFFF;
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

.page-casino__faq-question::marker {
  display: none;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

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

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

.page-casino__dark-bg .page-casino__faq-answer {
  color: #f0f0f0;
}

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

.page-casino__faq-item a {
    color: #FFFF00; /* Ensure link visibility on dark background */
    text-decoration: underline;
}

/* Images */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

  .page-casino__section {
    padding: 40px 15px;
  }

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

  .page-casino__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-casino__sub-title {
    font-size: clamp(1.3em, 4.5vw, 1.8em);
  }

  .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;
  }

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

  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-casino__hero-content {
    padding: 0 15px;
  }

  .page-casino__card-grid, .page-casino__checklist, .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__content-grid {
    flex-direction: column;
  }

  .page-casino__image-wrapper {
    order: -1; /* Image appears before text on mobile */
  }

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

  /* Mobile responsive image styles */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__hero-image-wrapper,
  .page-casino__image-wrapper,
  .page-casino__card,
  .page-casino__step-card,
  .page-casino__checklist-item,
  .page-casino__faq-item,
  .page-casino__container,
  .page-casino__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__cta-buttons > * {
    padding-left: 0;
    padding-right: 0;
  }
}