/* 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 dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-casino__section {
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  color: #ffffff; /* Default for dark sections */
}

.page-casino__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Color Contrast based on body background #0a0a0a (dark) */
.page-casino__dark-bg {
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title {
  color: #ffffff;
}

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

.page-casino__light-bg .page-casino__section-title {
  color: #017439;
}

.page-casino__light-bg .page-casino__text-block {
  color: #333333;
}

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

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no color filters */
}

.page-casino__hero-content {
  position: relative; /* Ensure content is above any background elements */
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Use clamp for responsive H1 */
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-casino__subtitle {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

.page-casino__btn-link {
  background-color: transparent;
  color: #FFFF00; /* Use custom color for link buttons */
  border: 1px solid #FFFF00;
  padding: 10px 20px;
  font-size: 14px;
}

.page-casino__btn-link:hover {
  background-color: #FFFF00;
  color: #017439;
}

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

/* Grid for criteria and game types */
.page-casino__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px; /* Add padding for content */
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Default text color for cards */
}

.page-casino__light-bg .page-casino__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
  min-height: 200px; /* Min image size for content area */
}

.page-casino__card-content {
  padding: 0 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
  color: inherit;
}

.page-casino__card-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: justify;
  flex-grow: 1;
  color: inherit;
}

.page-casino__read-more-btn-container {
  text-align: center;
  margin-top: 40px;
}

/* Benefits List */
.page-casino__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino__benefit-item {
  background-color: #f5f5f5; /* Light background for list items */
  color: #333333;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  line-height: 1.5;
}

.page-casino__benefit-item strong {
  color: #017439;
}

/* Steps List */
.page-casino__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-casino__step-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  color: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  line-height: 1.5;
  counter-increment: step-counter;
  position: relative;
  padding-left: 50px;
  text-align: justify;
}

.page-casino__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #C30808; /* Step counter color */
  color: #FFFF00; /* Step counter font color */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
}

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

.page-casino__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  outline: none;
}

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

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

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #C30808;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−'; /* Change to minus when open (handled by JS for robustness) */
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  text-align: justify;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-casino__hero-content {
    padding: 0 15px;
  }

  .page-casino__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

  .page-casino__subtitle {
    font-size: 16px;
  }

  .page-casino__grid-3-col,
  .page-casino__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-casino__section {
    padding: 40px 0;
  }

  .page-casino__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-casino__text-block {
    font-size: 15px;
  }

  .page-casino__container,
  .page-casino__hero-content,
  .page-casino__cta-buttons,
  .page-casino__read-more-btn-container,
  .page-casino__grid-3-col,
  .page-casino__card-grid,
  .page-casino__benefit-list,
  .page-casino__steps-list,
  .page-casino__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile image adaptation */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none; /* Ensure no color filters */
  }

  /* Mobile button adaptation */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-link,
  .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__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* Mobile video adaptation (if any video section was added) */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}