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

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

.page-casino__hero-section {
  position: relative;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay to ensure text visibility */
}

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

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

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__section-description {
  color: #ffffff;
}

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

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-casino__card-button {
  background-color: #017439;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-casino__card-button:hover {
  background-color: #005a2d;
}

/* Video Section */
.page-casino__video-section {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-casino__game-category {
  margin-bottom: 60px;
}

.page-casino__category-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

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

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

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

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

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

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

.page-casino__promo-card .page-casino__card-title {
  color: #017439;
}

.page-casino__promo-card .page-casino__card-text {
  color: #555555;
}

.page-casino__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Guide Section */
.page-casino__guide-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-casino__step-card {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-casino__step-text {
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Payment Section */
.page-casino__payment-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-casino__payment-card {
  background-color: #005a2d;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-casino__payment-card .page-casino__card-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-casino__payment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.page-casino__payment-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-casino__payment-list li::before {
  content: '✔';
  color: #FFFF00;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-casino__content-block {
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.page-casino__block-text {
  color: #555555;
}

/* Support Section */
.page-casino__support-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-casino__channel-card {
  background-color: #005a2d;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-casino__channel-card .page-casino__card-title {
  color: #ffffff;
}

.page-casino__channel-card .page-casino__card-text {
  color: #f0f0f0;
}

/* App Section */
.page-casino__app-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-casino__app-content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-casino__app-text-content {
  flex: 1;
  min-width: 300px;
}

.page-casino__app-text-content .page-casino__section-title {
  text-align: left;
}

.page-casino__app-text-content .page-casino__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-casino__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__app-features li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
  color: #555555;
}

.page-casino__app-features li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

.page-casino__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-casino__faq-item {
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  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: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #dddddd;
  list-style: none; /* For details/summary */
}

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

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

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

.page-casino__faq-answer {
  padding: 20px 25px;
  color: #555555;
  font-size: 1em;
  background-color: #ffffff;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__app-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__app-text-content .page-casino__section-title,
  .page-casino__app-text-content .page-casino__section-description {
    text-align: center;
  }
  .page-casino__app-features {
    text-align: left;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__hero-section {
    padding-bottom: 40px;
    min-height: 400px;
  }
  .page-casino__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-casino__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__card-button,
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-casino__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-casino__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section is not covered */
    padding: 40px 0;
  }
  .page-casino__video-wrapper,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__guide-section,
  .page-casino__payment-section,
  .page-casino__responsible-gambling-section,
  .page-casino__support-section,
  .page-casino__app-section,
  .page-casino__faq-section {
    padding: 40px 0;
  }
  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__guide-steps,
  .page-casino__payment-methods,
  .page-casino__content-grid,
  .page-casino__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__game-image,
  .page-casino__promo-image,
  .page-casino__app-image,
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__app-content-wrapper {
    padding: 0 15px;
  }
  .page-casino__app-text-content .page-casino__section-title,
  .page-casino__app-text-content .page-casino__section-description {
    text-align: center !important;
  }
  .page-casino__app-features {
    text-align: center !important;
    padding-left: 0 !important;
  }
  .page-casino__app-features li {
    padding-left: 0 !important;
    text-align: center;
  }
  .page-casino__app-features li::before {
    position: static !important;
    display: inline-block;
    margin-right: 5px;
  }
  .page-casino__app-image-wrapper {
    order: -1; /* Move image above text on mobile */
  }
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-card,
  .page-casino__payment-card,
  .page-casino__content-block,
  .page-casino__channel-card,
  .page-casino__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-casino__hero-image-wrapper {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 15px 20px;
  }
}