.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the page on dark body background */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Brand color as background */
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to let background color show */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

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

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

.page-casino__btn-register {
  background-color: #C30808; /* Specific color for Register */
  color: #FFFF00; /* Specific color for Register text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-casino__btn-login {
  background-color: #C30808; /* Specific color for Login */
  color: #FFFF00; /* Specific color for Login text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

/* General Sections */
.page-casino__intro-section, 
.page-casino__live-casino-section, 
.page-casino__why-choose-us-section, 
.page-casino__faq-section {
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text on light background */
  padding: 60px 0;
}

.page-casino__games-section, 
.page-casino__promotions-section, 
.page-casino__payment-section, 
.page-casino__cta-section {
  background-color: #333333; /* Dark background for these sections */
  color: #ffffff; /* Light text on dark background */
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section background */
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent card on dark section */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-casino__game-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__game-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

.page-casino__btn-play:hover {
  background-color: #005a2e;
}

/* Live Casino Section */
.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.page-casino__btn-join-live {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  background-color: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-casino__btn-join-live:hover {
  background-color: #005a2e;
}

/* Promotions Section */
.page-casino__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
}

.page-casino__promotion-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-casino__promotion-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-casino__btn-view-all {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-casino__btn-view-all:hover {
  background-color: #a00606;
  border-color: #FFFF00;
}

/* Why Choose Us Section */
.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  transition: transform 0.3s ease;
}

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

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

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

/* Payment Section */
.page-casino__payment-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-casino__payment-item {
  margin-bottom: 10px;
}

.page-casino__payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__payment-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Ensure logos are white on dark background if needed */
  opacity: 0.8;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

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

.page-casino__faq-title {
  margin: 0;
  color: inherit;
}

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
  background-color: #ffffff;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

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

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

.page-casino__cta-section .page-casino__section-title {
  margin-bottom: 20px;
}

.page-casino__cta-section .page-casino__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-casino__btn-primary {
  background-color: #017439;
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  background-color: #005a2e;
  border-color: #ffffff;
}

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

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

  .page-casino__promotion-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    min-height: 500px;
  }

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

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

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

  .page-casino__btn-register, 
  .page-casino__btn-login, 
  .page-casino__btn-play, 
  .page-casino__btn-join-live, 
  .page-casino__btn-view-all, 
  .page-casino__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-casino__hero-content,
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-casino__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-casino__payment-logos {
    flex-direction: column;
    align-items: center;
  }
}