/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on default light body background */
  background-color: #ffffff;
}

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

/* Section Titles */
.page-casino__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding: 100px 20px 60px; /* Default padding, assuming shared handles body padding */
  background-color: #26A9E0;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #ffffff;
}

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

/* Buttons */
.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.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Dark background sections */
.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Video Section */
.page-casino__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-casino__video-cta {
  margin-top: 40px;
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-casino__video-cta:hover {
  background-color: #d86c00;
  border-color: #d86c00;
}

/* Game Categories */
.page-casino__game-categories {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #333333;
}

.page-casino__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-casino__live-casino-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__text-block {
  flex: 1;
  text-align: left;
}

.page-casino__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-casino__image-block {
  flex: 1;
  text-align: center;
}

.page-casino__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Promotions Section */
.page-casino__promotions {
  padding: 80px 0;
  text-align: center;
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-casino__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #EA7C07;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-casino__promo-item strong {
  color: #ffffff;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-casino__why-choose-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-casino__benefits-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-casino__benefits-list li strong {
  color: #26A9E0;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #333333;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #e0e0e0;
}

.page-casino__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

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

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 0;
}

.page-casino__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

/* Call to Action Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #26A9E0;
}

.page-casino__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-casino__cta-section .page-casino__container {
  position: relative;
  z-index: 2;
}

.page-casino__cta-section .page-casino__section-title,
.page-casino__cta-section .page-casino__section-description {
  color: #ffffff;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__game-card {
    padding-bottom: 20px;
  }
  .page-casino__live-casino-content,
  .page-casino__why-choose-grid {
    flex-direction: column;
  }
  .page-casino__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-casino__game-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__game-card {
    padding-bottom: 20px;
  }
  .page-casino__card-image {
    height: 200px;
  }
  .page-casino__card-title {
    font-size: 1.5em;
  }
  .page-casino__text-block p,
  .page-casino__benefits-list li,
  .page-casino__promo-item {
    font-size: 0.95em;
  }
  .page-casino__faq-question h3 {
    font-size: 1em;
  }
  .page-casino__video-section,
  .page-casino__game-categories,
  .page-casino__live-casino-section,
  .page-casino__promotions,
  .page-casino__why-choose-us,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 60px 0;
  }
  .page-casino__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-casino img,
  .page-casino video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
  }
  .page-casino__cta-section .page-casino__btn-primary,
  .page-casino__cta-section .page-casino__btn-secondary {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__game-card {
    padding: 0 10px 15px;
  }
  .page-casino__card-title {
    font-size: 1.3em;
  }
  .page-casino__card-text {
    font-size: 0.9em;
  }
  .page-casino__faq-question h3 {
    font-size: 0.9em;
  }
}