/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #ffffff); /* Fallback to white if var not defined */
}

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

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-casino__section-subtitle {
  font-size: 18px;
  color: #666666;
  margin-bottom: 40px;
}

.page-casino__section-subtitle--light {
  color: #f0f0f0;
}

.page-casino__content-area {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 16px;
}

.page-casino__content-area p {
  margin-bottom: 15px;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-casino__main-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-casino__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.page-casino__btn-text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-casino__btn-text-link:hover {
  color: #1a7bbd;
  text-decoration: underline;
}

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

.page-casino__btn-centered {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.page-casino__about-section {
  background: #FFFFFF;
}

/* Games Section */
.page-casino__games-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-casino__game-card {
  background: #FFFFFF;
  border-radius: 10px;
  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: 700;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
}

.page-casino__game-description {
  font-size: 15px;
  color: #666666;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* Promotions Section */
.page-casino__promotions-section {
  background: #f8f8f8;
}

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-casino__promo-card {
  background: #FFFFFF;
  border-radius: 10px;
  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__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-casino__promo-description {
  font-size: 15px;
  color: #666666;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
}

/* Guide Section */
.page-casino__guide-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.page-casino__step-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__step-description {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-casino__step-card .page-casino__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-casino__step-card .page-casino__btn-secondary:hover {
  background: rgba(38, 169, 224, 0.1);
}

/* Mobile App Section */
.page-casino__mobile-app-section {
  background: #FFFFFF;
}

.page-casino__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-casino__mobile-app-content .page-casino__text-content {
  flex: 1;
}

.page-casino__mobile-app-content .page-casino__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__mobile-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

/* Payments Section */
.page-casino__payments-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-casino__payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto 0 auto;
}

.page-casino__method-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-casino__method-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__method-description {
  font-size: 16px;
  color: #666666;
  flex-grow: 1;
}

/* Support Section */
.page-casino__support-section {
  background: #f8f8f8;
}

.page-casino__support-content {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-casino__support-content .page-casino__text-content {
  flex: 1;
}

.page-casino__support-content .page-casino__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__support-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

/* FAQ Section */
.page-casino__faq-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #ffffff;
  font-weight: 600;
}

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

details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  color: #e0f2f7;
  font-size: 15px;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  background: #FFFFFF;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-casino__hero-description {
    font-size: 17px;
  }

  .page-casino__section-title {
    font-size: 32px;
  }

  .page-casino__game-image, .page-casino__promo-image {
    height: 180px;
  }

  .page-casino__mobile-app-content, .page-casino__support-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-casino__mobile-app-content .page-casino__image-content,
  .page-casino__support-content .page-casino__image-content {
    order: -1; /* Image first on smaller screens */
  }

  .page-casino__mobile-image, .page-casino__support-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-casino__hero-section {
    padding-bottom: 40px;
    padding-top: 10px; /* Still small top padding */
  }

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

  .page-casino__hero-image {
    object-fit: contain !important; /* HERO mobile: contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 10px;
  }

  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-casino__hero-cta-buttons,
  .page-casino__app-buttons,
  .page-casino__support-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  .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;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-casino__section-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-casino__content-area {
    font-size: 15px;
    padding: 0 10px;
  }

  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__guide-steps,
  .page-casino__payment-methods {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-card,
  .page-casino__method-card {
    padding: 20px;
  }

  .page-casino__game-image, .page-casino__promo-image {
    height: 160px;
  }

  .page-casino__game-title, .page-casino__promo-title, .page-casino__step-title, .page-casino__method-title {
    font-size: 20px;
    margin: 15px 0 10px 0;
  }

  .page-casino__game-description, .page-casino__promo-description, .page-casino__step-description, .page-casino__method-description {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .page-casino__game-card .page-casino__btn-primary,
  .page-casino__promo-card .page-casino__btn-primary,
  .page-casino__step-card .page-casino__btn-secondary {
    width: 100% !important;
    margin: 0;
  }

  .page-casino__mobile-app-content,
  .page-casino__support-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-casino__mobile-image,
  .page-casino__support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }
  .page-casino__faq-qtext {
    font-size: 15px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }
}