.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-casino__section-title,
.page-casino__cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
  line-height: 1.2;
}

.page-casino__section-description,
.page-casino__cta-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6; /* Text Main */
}

.page-casino__text-dark {
  color: #333333; /* For light backgrounds */
}

.page-casino__dark-bg {
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

.page-casino__light-bg {
  background-color: #f5f5f5;
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 550px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly over image for visual flow */
}

.page-casino__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFF3E6;
  opacity: 0.9;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  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: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E0781A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

.page-casino__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Primary */
  border: 2px solid #A84F0C; /* Border */
  margin-left: 20px;
}

.page-casino__btn-secondary:hover {
  background: #2a2d36;
  color: #FFA53A; /* Secondary */
  border-color: #FF8C1A;
  transform: translateY(-2px);
}

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

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

.page-casino__game-card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__game-card-text {
  font-size: 16px;
  color: #FFF3E6;
  opacity: 0.8;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

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

.page-casino__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__promo-text {
  flex: 1;
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  font-size: 17px;
  color: #333333; /* Dark text for light background */
}

.page-casino__promo-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-casino__promo-list li::before {
  content: '⭐';
  position: absolute;
  left: 0;
  color: #FF8C1A;
}

.page-casino__promo-image-wrapper {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

.page-casino__features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__features-list li {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-icon {
  font-size: 48px;
  color: #FFA53A; /* Secondary */
  margin-bottom: 15px;
  display: block;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__features-list p {
  font-size: 16px;
  color: #FFF3E6;
  opacity: 0.8;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

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

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: #2a2d36;
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Secondary */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 25px;
  background: #101216;
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  opacity: 0.9;
}

.page-casino__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.page-casino__faq-list {
  margin-top: 40px;
}

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

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Global image settings for content area */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-casino__hero-content {
    margin-top: -60px;
  }

  .page-casino__section-title,
  .page-casino__cta-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .page-casino__section-description,
  .page-casino__cta-description {
    font-size: 17px;
  }

  .page-casino__game-cards-grid {
    gap: 25px;
  }

  .page-casino__game-card-title {
    font-size: 22px;
  }

  .page-casino__game-card-text {
    font-size: 15px;
  }

  .page-casino__promo-content {
    flex-direction: column;
  }

  .page-casino__promo-text, .page-casino__promo-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-casino__promo-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .page-casino__features-list {
    gap: 25px;
  }

  .page-casino__feature-title {
    font-size: 20px;
  }

  .page-casino__faq-qtext {
    font-size: 17px;
  }
}

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

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

  /* Hero Section */
  .page-casino__hero-section {
    padding-bottom: 40px;
    min-height: 400px;
  }

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

  .page-casino__hero-content {
    margin-top: -40px;
  }

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

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

  /* Buttons */
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Reset margin for stacking */
  }

  .page-casino__btn-secondary {
    margin-top: 15px; /* Add spacing when stacked */
  }

  .page-casino__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General sections */
  .page-casino__games-overview,
  .page-casino__promotions-section,
  .page-casino__why-choose-us,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 50px 0;
  }

  .page-casino__section-title,
  .page-casino__cta-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
  }

  .page-casino__section-description,
  .page-casino__cta-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Game Cards */
  .page-casino__game-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card-image {
    height: 200px;
  }

  .page-casino__game-card-title {
    font-size: 20px;
  }

  .page-casino__game-card-text {
    font-size: 14px;
  }

  /* Promotions */
  .page-casino__promo-list {
    font-size: 15px;
  }

  .page-casino__promo-list li {
    margin-bottom: 10px;
  }

  /* Why Choose Us */
  .page-casino__features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__feature-title {
    font-size: 18px;
  }

  .page-casino__features-list p {
    font-size: 14px;
  }

  /* FAQ */
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 20px;
  }

  .page-casino__faq-qtext {
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
  }

  .page-casino__faq-answer p {
    font-size: 14px;
  }

  /* Ensure all images are responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__hero-section,
  .page-casino__games-overview,
  .page-casino__promotions-section,
  .page-casino__why-choose-us,
  .page-casino__faq-section,
  .page-casino__cta-section,
  .page-casino__game-card,
  .page-casino__promo-image-wrapper,
  .page-casino__features-list li {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__hero-section { padding-left: 0; padding-right: 0; }
  .page-casino__hero-image-wrapper { padding-left: 0; padding-right: 0; }
  .page-casino__hero-content { padding-left: 15px; padding-right: 15px; }
}