/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background); /* #08160F */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

/* Color variables based on custom palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* General image responsive styles */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important; /* Ensure no CSS filter on images */
  min-width: 200px; /* Ensure minimum size for content images */
  min-height: 200px;
}

/* Container for main content areas */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

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

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

.page-casino__description {
  font-size: 1.25rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  flex-grow: 1; /* Allow buttons to grow */
  max-width: 240px; /* Limit individual button width */
}

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* #11A84E */
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main); /* #F2FFF6 */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    max-width: 200px;
    margin-top: 20px;
}


/* Section styles */
.page-casino__introduction-section,
.page-casino__games-section,
.page-casino__guide-section,
.page-casino__promotions-section,
.page-casino__transaction-section,
.page-casino__experience-section,
.page-casino__faq-section,
.page-casino__conclusion-section {
  padding: 60px 0;
}

.page-casino__dark-section {
  background-color: var(--card-bg); /* #11271B */
  color: var(--text-main); /* #F2FFF6 */
}

.page-casino__section-title {
  font-size: 2.5rem;
  color: var(--gold-color); /* #F2C14E */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__sub-title {
  font-size: 1.8rem;
  color: var(--secondary-color); /* #22C768 */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1rem;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
}

.page-casino__content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

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

/* Lists */
.page-casino__feature-list,
.page-casino__game-list,
.page-casino__step-list,
.page-casino__payment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-casino__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-main); /* #F2FFF6 */
}

.page-casino__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow-color); /* #57E38D */
  font-weight: bold;
}

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

.page-casino__faq-item {
  background-color: var(--deep-green); /* #0A4B2C */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main); /* #F2FFF6 */
}

.page-casino__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--card-bg); /* #11271B */
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main); /* #F2FFF6 */
  list-style: none; /* Hide default marker */
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate */
}

.page-casino__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-casino__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Conclusion Section */
.page-casino__conclusion-section .page-casino__text-block {
    text-align: center;
}

.page-casino__conclusion-section .page-casino__cta-buttons {
    margin-top: 30px;
}

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

  .page-casino__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-casino__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-casino__description {
    font-size: 1rem;
  }

  .page-casino__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-casino__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-casino__sub-title {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-casino__text-block,
  .page-casino__list-item {
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-casino__hero-image-wrapper,
  .page-casino__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness - no videos in this page, but keeping the general rule */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }
  .page-casino__video-section {
    padding-top: 10px !important;
  }

  /* FAQ */
  .page-casino__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-casino__faq-answer {
    padding: 15px;
  }

}