/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main color for dark background */
  background-color: #0D0E12; /* Background color */
  line-height: 1.6;
}

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

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFA53A; /* Auxiliary color for titles */
}

.page-casino__section-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body padding-top is handled by shared.css */
  margin-bottom: 40px;
  overflow: hidden; /* Ensure image overflow is handled */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop hero image */
  overflow: hidden;
}

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

.page-casino__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
  text-align: center;
}

.page-casino__hero-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: #FFB04D; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-casino__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
}

.page-casino__btn-secondary:hover {
  background: #FFA53A;
  color: #0D0E12;
  transform: translateY(-2px);
}

.page-casino__btn-link {
  background: transparent;
  color: #FFA53A;
  border: 1px solid #A84F0C; /* Border color */
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.page-casino__btn-link:hover {
  background: #A84F0C;
  color: #FFF3E6;
}

/* Intro Section */
.page-casino__intro-section {
  padding-top: 20px; /* Adjust top padding for visual flow */
}

/* Games Section */
.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__game-card-img {
  width: 100%;
  height: 220px; /* Consistent image height for cards */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-casino__game-card-title {
  font-size: 24px;
  color: #FFB04D;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-card-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-casino__all-games-cta {
  margin-top: 50px;
}

/* Promotions Section */
.page-casino__promotions-section {
  background-color: #17191F; /* Card BG as section background for contrast */
  color: #FFF3E6;
}

.page-casino__promotions-section .page-casino__section-title {
  color: #FFB04D;
}

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

.page-casino__promo-card {
  background-color: #0D0E12; /* Background color for promo cards */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__promo-card-img {
  width: 100%;
  height: 200px; /* Consistent image height for promo cards */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-casino__promo-card-title {
  font-size: 22px;
  color: #FFB04D;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-card-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__all-promos-cta {
  margin-top: 50px;
}

/* Why Choose Section */
.page-casino__features-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: left;
}

.page-casino__feature-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-title {
  font-size: 24px;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 16px;
  color: #FFF3E6;
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: #0D0E12;
}

.page-casino__faq-section .page-casino__section-title {
  color: #FFB04D;
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG color */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
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: #FFB04D; /* Glow color for question text */
  font-size: 18px;
  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, 140, 26, 0.1); /* Slightly lighter hover for dark background */
}
.page-casino__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color for toggle icon */
  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: #0D0E12; /* Background color for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
  font-size: 16px;
}
details.page-casino__faq-item .page-casino__faq-answer p {
  margin: 0;
}


/* CTA Section */
.page-casino__cta-section {
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  padding-bottom: 80px;
}

.page-casino__cta-content {
  padding-top: 40px;
}

.page-casino__cta-content .page-casino__section-title {
  color: #FFB04D;
}

.page-casino__cta-content .page-casino__section-text {
  margin-bottom: 50px;
}

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


/* --- Responsive Styles --- */

/* All images must be responsive */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All containers must be responsive */
.page-casino__section,
.page-casino__container,
.page-casino__game-card,
.page-casino__promo-card,
.page-casino__feature-item {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-casino__section {
    padding: 40px 0;
  }
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-casino__section-text {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-casino__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    margin-bottom: 20px;
  }
  .page-casino__hero-image-wrapper {
    height: 250px;
  }
  .page-casino__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons responsive */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Games Section */
  .page-casino__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__game-card-img {
    
  }
  .page-casino__game-card-title {
    font-size: 20px;
  }
  .page-casino__game-card-description {
    font-size: 14px;
  }

  /* Promotions Section */
  .page-casino__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__promo-card-img {
    
  }
  .page-casino__promo-card-title {
    font-size: 18px;
  }
  .page-casino__promo-card-description {
    font-size: 14px;
  }

  /* Why Choose Section */
  .page-casino__features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__feature-item {
    padding: 25px;
  }
  .page-casino__feature-title {
    font-size: 20px;
  }
  .page-casino__feature-description {
    font-size: 14px;
  }

  /* FAQ Section */
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-casino__faq-qtext {
    font-size: 15px;
  }
  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

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

  /* Ensure all content containers are within bounds */
  .page-casino__section,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific padding for button containers */
  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
}