.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Assuming body background is black from shared.css */
}

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

.page-casino__dark-section {
  background-color: #003366;
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__light-bg {
  background-color: #f0f0f0;
  color: #333333;
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #FFCC00;
  text-align: center;
  margin-bottom: 20px;
}

.page-casino__light-bg .page-casino__section-title {
  color: #003366;
}

.page-casino__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-casino__light-bg .page-casino__section-intro {
  color: #555555;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

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

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

.page-casino__btn-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
  text-align: center;
}

.page-casino__btn-large {
  font-size: 1.2em;
  padding: 18px 35px;
}

.page-casino__hero-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  width: 1200px; /* HTML width attribute */
  height: 675px; /* HTML height attribute */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Game Types Section */
.page-casino__game-grid,
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card,
.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, adjust as needed */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__card-title {
  font-size: 1.4em;
  color: #003366;
  margin: 0 15px 10px 15px;
}

.page-casino__card-title a {
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
  color: #FFCC00;
}

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

.page-casino__card-link {
  display: inline-block;
  background-color: #003366;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__card-link:hover {
  background-color: #FFCC00;
  color: #003366;
}

/* Live Experience Section */
.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Security & Fairness Section */
.page-casino__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-casino__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

/* Mobile Gaming Section */
.page-casino__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-casino__mobile-subtitle {
  font-size: 1.8em;
  color: #003366;
  margin-bottom: 15px;
}

.page-casino__mobile-text p {
  color: #555555;
  margin-bottom: 20px;
}

.page-casino__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-casino__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  width: 500px; /* HTML width attribute */
  height: 375px; /* HTML height attribute */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Payment & Support Section */
.page-casino__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-casino__info-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #003366;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

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

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

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  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: 15px 25px;
}

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

/* Final CTA Section */
.page-casino__cta-final .page-casino__section-title {
  color: #FFCC00;
}

.page-casino__cta-final .page-casino__section-intro {
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px);
  }

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

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

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

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

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

  .page-casino__mobile-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section,
  .page-casino__dark-section,
  .page-casino__light-bg {
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }

  .page-casino__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-casino__section-intro {
    font-size: 0.95em;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__feature-grid,
  .page-casino__security-features,
  .page-casino__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__card-image,
  .page-casino__hero-image,
  .page-casino__mobile-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Override fixed HTML width for responsiveness */
    height: auto !important; /* Override fixed HTML height for responsiveness */
  }

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

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

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px;
  }
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}