.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-casino__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

/* Hero Section */
.page-casino__hero-section {
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero_bg:1920x1080:casino_lobby,blurred_background,green_theme,vietnam]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

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

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

.page-casino__btn-lg {
  padding: 18px 35px;
  font-size: 1.1em;
}

.page-casino__btn-text {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: #005a2d;
}

/* Section Titles & Intros */
.page-casino__section-title {
  font-size: 2.5em;
  margin-top: 60px;
  margin-bottom: 20px;
  text-align: center;
}

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

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

/* Video Showcase */
.page-casino__video-showcase {
  padding: 60px 0;
  text-align: center;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

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

.page-casino__video-caption {
  margin-top: 20px;
  font-style: italic;
  font-size: 1em;
}

/* Game Categories */
.page-casino__game-categories {
  padding: 60px 0;
}

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

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

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

.page-casino__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-casino__card-title a:hover {
  text-decoration: underline;
}

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

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

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

.page-casino__feature-item {
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-icon {
  width: 250px;
  height: 187px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 10px;
}

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

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

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

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

.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

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

.page-casino__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  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: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-casino__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: #555555;
}

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

.page-casino__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-casino__faq-answer a:hover {
  color: #005a2d;
}

/* Testimonials Section */
.page-casino__testimonials {
  padding: 60px 0;
}

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

.page-casino__testimonial-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-casino__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #017439;
}

.page-casino__testimonial-text {
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
}

.page-casino__testimonial-author {
  font-weight: bold;
  color: #017439;
}

/* Call to Action Bottom */
.page-casino__cta-bottom {
  text-align: center;
  padding: 80px 20px;
}

/* Images general styles */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure minimum size for content images */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding: 60px 15px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__video-showcase,
  .page-casino__game-categories,
  .page-casino__features,
  .page-casino__promotions,
  .page-casino__faq-section,
  .page-casino__testimonials,
  .page-casino__cta-bottom {
    padding: 40px 0;
  }

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

  .page-casino__section-title {
    font-size: 1.8em;
    margin-top: 40px;
  }

  .page-casino__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Image responsive rules */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow images to shrink below 200px on mobile if needed for layout */
    min-height: unset !important;
  }

  .page-casino__game-image,
  .page-casino__promo-image,
  .page-casino__feature-icon {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: contain;
  }

  /* Video responsive rules */
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important; /* Remove padding for video wrapper itself */
    padding-right: 0 !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

  .page-casino__testimonial-avatar {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }

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

  .page-casino__game-grid,
  .page-casino__feature-grid,
  .page-casino__promo-grid,
  .page-casino__testimonial-grid {
    grid-template-columns: 1fr;
  }
}