.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, explicit for clarity */
}

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

.page-casino__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-casino__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-casino__btn-primary.page-casino__btn-register,
.page-casino__btn-login {
  background-color: #C30808; /* Register/Login button background */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-casino__btn-primary.page-casino__btn-register:hover,
.page-casino__btn-login:hover {
  background-color: #e00b0b;
  color: #ffffff;
}

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

.page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

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

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

.page-casino__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
  padding: 80px 0;
}

.page-casino__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

.page-casino__text-dark {
  color: #333333;
}

/* About Section */
.page-casino__about-section .page-casino__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-casino__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-casino__image-block {
  text-align: center;
}

.page-casino__image-about {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

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

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

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

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

.page-casino__btn-play {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
  margin: 0 15px;
}

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

/* Features Section */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-casino__feature-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-casino__btn-download {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

.page-casino__btn-download:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Promotions Section */
.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-casino__btn-view-promo {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
  margin: 0 15px;
}

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

/* Guide Section */
.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-casino__step-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-casino__btn-guide {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

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

/* Support Section */
.page-casino__support-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-casino__channel-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-casino__channel-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-casino__channel-list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-casino__channel-list a {
  color: #017439;
  text-decoration: none;
}

.page-casino__channel-list a:hover {
  text-decoration: underline;
}

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

.page-casino__btn-contact {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

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

/* Responsible Gaming Section */
.page-casino__responsible-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-casino__responsible-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__responsible-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-casino__responsible-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-casino__btn-responsible {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 1em;
}

.page-casino__btn-responsible:hover {
  background-color: #017439;
  color: #ffffff;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-casino__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #333333;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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;
}

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

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

/* Conclusion Section */
.page-casino__btn-final-cta {
  background-color: #C30808; /* Register/Login button background */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  padding: 15px 40px;
  font-size: 1.2em;
  margin-top: 40px;
}

.page-casino__btn-final-cta:hover {
  background-color: #e00b0b;
  color: #ffffff;
}

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

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

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

  .page-casino__support-channels,
  .page-casino__responsible-content {
    grid-template-columns: 1fr;
  }
}

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

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

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

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

  .page-casino__section-description {
    font-size: 0.9em;
    margin-bottom: 40px;
  }

  .page-casino__sub-title,
  .page-casino__card-title,
  .page-casino__feature-title,
  .page-casino__promo-card .page-casino__card-title,
  .page-casino__step-title,
  .page-casino__channel-title,
  .page-casino__responsible-title,
  .page-casino__faq-title {
    font-size: 1.4em;
  }

  .page-casino__dark-bg,
  .page-casino__light-bg {
    padding: 60px 0;
  }

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

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__games-grid,
  .page-casino__features-grid,
  .page-casino__promotions-grid,
  .page-casino__guide-steps,
  .page-casino__support-channels,
  .page-casino__responsible-content,
  .page-casino__faq-list,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}