/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

/* Section padding and container */
.page-casino__section-padding {
  padding: 60px 20px;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px; /* Adjust as needed */
  background-color: #26A9E0;
  overflow: hidden;
  padding-top: 10px; /* Small top padding for first section */
}

.page-casino__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px; /* Ensure image is visible */
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino__hero-content-wrapper {
  position: relative; /* Ensure content is above image if needed, but not overlapping */
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for readability */
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal, but content is below */
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-casino__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-casino__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

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

/* General Titles */
.page-casino__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

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

.page-casino__text-white {
  color: #ffffff;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

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

.page-casino__btn-login:hover {
  background-color: #c46607;
  border-color: #c46607;
}

/* Game Types Section */
.page-casino__game-cards-grid {
  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;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
}

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

.page-casino__game-card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__game-card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

/* Dealer & Tech Section */
.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino__flex-reverse-mobile {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__content-half,
.page-casino__image-half {
  flex: 1;
}

.page-casino__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Promotions Section */
.page-casino__flex-mobile {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-casino__promotion-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
}

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

.page-casino__step-item {
  text-align: center;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-casino__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-casino__step-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-casino__mt-40 {
  margin-top: 40px;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
  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;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-casino__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e9e9e9;
  margin-top: 10px;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-casino__hero-content-wrapper {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino__flex-reverse-mobile,
  .page-casino__flex-mobile {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__content-half,
  .page-casino__image-half {
    width: 100%;
  }

  .page-casino__image-half {
    margin-bottom: 30px;
  }

  .page-casino__flex-reverse-mobile .page-casino__image-half {
    order: -1; /* Image above text on mobile for reverse flex */
    margin-bottom: 30px;
  }

  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-casino__hero-content-wrapper {
    margin-top: -40px;
    padding: 20px 15px;
  }

  .page-casino__main-title {
    font-size: 1.8em; /* Adjust H1 size for mobile */
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

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

  .page-casino__section-title {
    font-size: 1.5em;
    margin-bottom: 25px;
  }

  .page-casino__text-block {
    font-size: 0.95em;
  }

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

  /* Responsive containers */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__game-types-section,
  .page-casino__dealer-tech-section,
  .page-casino__promotions-section,
  .page-casino__get-started-section,
  .page-casino__mobile-section,
  .page-casino__faq-section,
  .page-casino__cta-section,
  .page-casino__game-card,
  .page-casino__step-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Responsive buttons */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-login,
  .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__hero-cta-buttons,
  .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: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-casino__game-card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-casino__promotion-list li {
    font-size: 0.9em;
  }
}