/* style/casino.css */

/* Base styles for .page-casino content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

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

.page-casino__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: inherit;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for visual spacing */
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and text */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 600px; /* Constrain image height */
}

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

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

.page-casino__hero-content .page-casino__description {
  color: #f0f0f0;
  font-size: 20px;
}

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

.page-casino__cta-buttons--center {
  margin-top: 40px;
}

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

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-casino__btn-primary--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Game List Section */
.page-casino__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__game-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: #26A9E0;
}

.page-casino__game-title a {
  text-decoration: none;
  color: inherit;
}

.page-casino__game-title a:hover {
  text-decoration: underline;
}

.page-casino__game-description {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

/* Advantages Section */
.page-casino__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__advantage-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__advantage-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__advantage-item p {
  font-size: 15px;
  color: #555555;
}

/* Guide Section */
.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-casino__guide-step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__guide-step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__guide-step-item p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__guide-conclusion {
  font-size: 18px;
  color: #f0f0f0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Providers Section */
.page-casino__providers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__provider-item {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  flex-grow: 1;
  max-width: 200px;
}

.page-casino__provider-logo {
  max-width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-casino__provider-name {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}

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

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

.page-casino__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  position: relative;
  user-select: none;
}

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

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

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07; /* Login color for toggle */
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−';
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

/* Final CTA Section */
.page-casino__final-cta-section {
  padding: 80px 0;
}

.page-casino__final-cta-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__final-cta-section .page-casino__description {
  color: #f0f0f0;
}

/* --- Responsive Styles --- */

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

/* All video responsive base */
.page-casino video,
.page-casino__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All button responsive base */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Containers for responsive handling */
.page-casino__section,
.page-casino__card,
.page-casino__container,
.page-casino__hero-section,
.page-casino__video-section,
.page-casino__video-container,
.page-casino__video-wrapper,
.page-casino__cta-buttons,
.page-casino__button-group,
.page-casino__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 500px;
  }

  .page-casino__hero-image {
    max-height: 500px;
  }

  .page-casino__section-title {
    font-size: clamp(24px, 4.5vw, 36px);
  }

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

  .page-casino__game-card, .page-casino__advantage-item, .page-casino__guide-step-item {
    padding: 25px;
  }

  .page-casino__game-title, .page-casino__advantage-title, .page-casino__guide-step-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 450px;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-casino__hero-image {
    max-height: 300px;
  }

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

  .page-casino__hero-content .page-casino__description {
    font-size: 16px;
  }

  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .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;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

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

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

  /* Force all images to be responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force all videos to be responsive */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure video/image containers are responsive */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino__game-list,
  .page-casino__advantages-grid,
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }

  .page-casino__provider-item {
    min-width: unset;
    flex-basis: 45%; /* Two items per row */
    max-width: 48%;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-section {
    min-height: 350px;
  }
  .page-casino__hero-image-wrapper {
    max-height: 200px;
  }
  .page-casino__hero-image {
    max-height: 200px;
  }
  .page-casino__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-casino__section-title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .page-casino__provider-item {
    flex-basis: 100%; /* One item per row */
    max-width: 100%;
  }
}