.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: var(--background-color, #ffffff);
}

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

.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;
  color: #555555;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  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-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

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

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Adjusted for desktop, will be 0 if body has padding */
  min-height: 600px;
  gap: 40px;
}

.page-casino__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

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

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

.page-casino__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-casino__hero-image-wrapper {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-casino__video-section {
  padding: 80px 20px;
  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: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Features Section */
.page-casino__features-section {
  padding: 80px 0;
}

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

.page-casino__feature-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-casino__feature-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not tiny */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-casino__card-text {
  font-size: 1em;
  color: #555555;
}

/* Games Overview Section */
.page-casino__games-overview {
  padding: 80px 0;
  text-align: center;
}

.page-casino__games-overview .page-casino__section-title,
.page-casino__games-overview .page-casino__section-description {
  color: #FFFFFF;
}

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

.page-casino__category-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-casino__category-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-casino__category-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
}

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

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

.page-casino__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__promo-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__promo-card .page-casino__btn-primary,
.page-casino__promo-card .page-casino__btn-secondary {
  margin-top: 20px;
}

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

.page-casino__faq-list {
  max-width: 800px;
  margin: 40px auto 0 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-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

.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 contain content */
  padding: 20px;
}

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

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 20px;
  text-align: center;
}

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

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

/* Color Contrast Classes */
.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    gap: 30px;
  }

  .page-casino__hero-content {
    max-width: 100%;
  }

  .page-casino__hero-title {
    font-size: 2.8em;
  }

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

  .page-casino__hero-buttons {
    justify-content: center;
  }

  .page-casino__hero-image-wrapper {
    max-width: 100%;
  }

  .page-casino__section-title {
    font-size: 2em;
  }

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

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

  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__video-section,
  .page-casino__features-section,
  .page-casino__games-overview,
  .page-casino__promotions-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing 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,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    width: 100% !important;
    max-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__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-casino video,
  .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;
    overflow: hidden !important;
  }

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

  .page-casino__feature-card,
  .page-casino__category-card,
  .page-casino__promo-card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-casino__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-casino__faq-answer {
    padding: 15px;
  }
}