/* Base styles for page-casino */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8; /* Light background for the main content area */
}

.page-casino__section {
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

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

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.page-casino__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.page-casino__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.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%;
  z-index: 1;
  opacity: 0.1;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Using grayscale for subtle background effect, no color change */
  transform: scale(1.1);
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

.page-casino__btn-secondary {
  background: #C30808; /* Login/Register color as per custom palette */
  color: #FFFF00; /* Login/Register font color as per custom palette */
  border: 2px solid #C30808;
}

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

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

/* Content Grid */
.page-casino__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-casino__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-casino__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-casino__text-block h2,
.page-casino__text-block h3 {
  color: #017439;
  margin-bottom: 15px;
}

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

.page-casino__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

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

.page-casino__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-casino__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #333333;
  font-size: 17px;
}

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

.page-casino__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

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

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

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

.page-casino__game-description {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino__game-btn {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
}

/* Dark Section */
.page-casino__dark-section {
  background: #017439;
  color: #ffffff;
}

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__section-description,
.page-casino__dark-section .page-casino__text-block h2,
.page-casino__dark-section .page-casino__text-block h3,
.page-casino__dark-section .page-casino__text-block p {
  color: #ffffff;
}

.page-casino__dark-section .page-casino__btn-primary {
  background: #C30808; /* Login/Register color */
  border-color: #C30808;
  color: #FFFF00; /* Login/Register font color */
}

.page-casino__dark-section .page-casino__btn-primary:hover {
  background: #a60707;
  border-color: #a60707;
}

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

.page-casino__promo-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
}

.page-casino__promo-item h3 {
  font-size: 20px;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__promo-item p {
  font-size: 15px;
  color: #666666;
}

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

.page-casino__advantage-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-casino__advantage-title {
  font-size: 20px;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__advantage-description {
  font-size: 15px;
  color: #666666;
}

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

/* Get Started Section */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  position: relative;
  color: #ffffff;
}

.page-casino__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border: 3px solid #017439;
}

.page-casino__step-title {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__step-description {
  font-size: 15px;
  color: #f0f0f0;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 60px 20px;
}

/* Copyright */
.page-casino__copyright {
  text-align: center;
  padding: 20px;
  background-color: #017439;
  color: #ffffff;
  font-size: 14px;
}

/* Responsive Styles - Homepage trial CSS (forced inclusion) */
@media (max-width: 1023px) {
  .page-casino__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-casino__hero-brand,
  .page-casino__hero-jackpot {
    display: none !important;
  }
  .page-casino__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-casino__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial-topbar,
  .page-casino__game-trial-bottombar {
    display: none !important;
  }
  .page-casino__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-casino__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-casino__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-casino__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-casino__hero-brand,
  .page-casino__hero-jackpot,
  .page-casino__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-casino__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-casino__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-casino__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-casino__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-casino__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Responsive Styles - General for casino.html (768px) */
@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-casino__section {
    padding: 20px 15px;
  }

  .page-casino__section-title {
    font-size: 28px;
  }

  .page-casino__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-casino__hero-section {
    padding: 10px 15px 40px;
  }

  .page-casino__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-casino__hero-description {
    font-size: 16px;
  }

  .page-casino__hero-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__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-casino__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-casino__content-grid--reverse {
    flex-direction: column;
  }

  .page-casino__text-block,
  .page-casino__image-block {
    min-width: unset;
    width: 100%;
  }

  .page-casino__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__game-image {
    height: 180px;
  }

  .page-casino__games-grid,
  .page-casino__promo-list,
  .page-casino__advantages-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__promo-item,
  .page-casino__advantage-card,
  .page-casino__step-card {
    padding: 20px;
  }

  .page-casino__game-title {
    font-size: 20px;
  }

  .page-casino__step-number {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
  .page-casino__faq-qtext { font-size: 15px; }
  .page-casino__faq-answer { padding: 0 15px 15px; }

  /* Homepage specific elements for 768px (forced inclusion) */
  .page-casino__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for 2 columns on mobile */
    overflow-x: hidden;
  }
  .page-casino__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-casino__brand-intro {
    display: block !important; /* Ensure it's visible if hidden on larger screens */
  }
  .page-casino__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
  }
  body {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
  main.page-content {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
}

/* General image and container responsive rules */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-casino__section,
.page-casino__card,
.page-casino__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Fixed styles for game trial overlay/start (from homepage rules) */
.page-casino__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-casino__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-casino__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-casino__game-trial-shell{
  border:1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-casino__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
}
.page-casino__reward-modal.is-hidden {
  display: none !important;
}
.page-casino__reward-modal-close {
  background: #C30808;
  color: #FFFF00;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}