/* -------------------------------------------------------------------------- */
/*                            Base & Utility Styles                           */
/* -------------------------------------------------------------------------- */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
  line-height: 1.6;
}

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

.page-casino__section-padding {
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-casino__section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.8;
}

.page-casino__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF3E6;
  opacity: 0.9;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E67A00 100%);
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: #17191F;
  color: #FFA53A;
  border: 2px solid #A84F0C; /* Border */
}

.page-casino__btn-secondary:hover {
  background: #2a2d34;
  color: #FFB04D;
  border-color: #FFB04D;
  transform: translateY(-2px);
}

.page-casino__btn-outline {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #A84F0C;
}

.page-casino__btn-outline:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
}

.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px;
  overflow: hidden;
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(13, 14, 18, 0.7); /* Background with transparency */
  border-radius: 10px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.page-casino__main-title {
  color: #FFB04D;
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-casino__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #FFF3E6;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

/* -------------------------------------------------------------------------- */
/*                               About Section                                */
/* -------------------------------------------------------------------------- */
.page-casino__about-section {
  background: #0D0E12;
}

/* -------------------------------------------------------------------------- */
/*                                Games Section                               */
/* -------------------------------------------------------------------------- */
.page-casino__games-section {
  background: #17191F;
}

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

.page-casino__game-card {
  background: #0D0E12;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #A84F0C;
}

.page-casino__game-card-title {
  font-size: 22px;
  color: #FFA53A;
  margin: 20px 15px 10px;
  font-weight: 700;
}

.page-casino__game-card-description {
  font-size: 15px;
  color: #FFF3E6;
  opacity: 0.8;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__game-card .page-casino__btn-outline {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* -------------------------------------------------------------------------- */
/*                             Promotions Section                             */
/* -------------------------------------------------------------------------- */
.page-casino__promotions-section {
  background: #0D0E12;
}

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

.page-casino__promo-card {
  background: #17191F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-casino__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #A84F0C;
}

.page-casino__promo-card-title {
  font-size: 24px;
  color: #FFB04D;
  margin: 20px 15px 10px;
  font-weight: 700;
}

.page-casino__promo-card-description {
  font-size: 16px;
  color: #FFF3E6;
  opacity: 0.8;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* -------------------------------------------------------------------------- */
/*                              Security Section                              */
/* -------------------------------------------------------------------------- */
.page-casino__security-section {
  background: #17191F;
}

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

.page-casino__feature-item {
  background: #0D0E12;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  text-align: center;
}

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

.page-casino__feature-title {
  font-size: 22px;
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-casino__feature-description {
  font-size: 15px;
  color: #FFF3E6;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
}
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: #2a2d34;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12;
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
  opacity: 0.8;
  font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/*                                 CTA Section                                */
/* -------------------------------------------------------------------------- */
.page-casino__cta-section {
  background: linear-gradient(135deg, #FF8C1A, #FFA53A);
  text-align: center;
}

.page-casino__cta-section .page-casino__section-title {
  color: #17191F;
}

.page-casino__cta-section .page-casino__text-block {
  color: #17191F;
  font-size: 18px;
  margin-bottom: 40px;
}

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

.page-casino__cta-section .page-casino__btn-primary {
  background: #17191F;
  color: #FFB04D;
}

.page-casino__cta-section .page-casino__btn-primary:hover {
  background: #0D0E12;
  color: #FFB04D;
}

.page-casino__cta-section .page-casino__btn-secondary {
  background: #FFF3E6;
  color: #D96800;
  border-color: #D96800;
}

.page-casino__cta-section .page-casino__btn-secondary:hover {
  background: #ffffff;
  color: #FF8C1A;
  border-color: #FF8C1A;
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Design                            */
/* -------------------------------------------------------------------------- */

/* Homepage trial layout CSS - MUST BE INCLUDED AS PER PROMPT, even if HTML doesn't use it */
@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;
  }
  /* Placeholder for other homepage sections if they were to exist */
  /* .page-casino__promo-strip { margin-top: 16px; } */
  /* .page-casino__hot-games-grid { grid-template-columns: repeat(6, 1fr); } */
}

/* Mobile Adaptation for casino.html */
@media (max-width: 768px) {
  .page-casino__section-padding {
    padding: 40px 0;
  }

  .page-casino__hero-section {
    min-height: 400px;
  }

  .page-casino__hero-content {
    padding: 20px 15px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-outline,
  .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__hero-cta-buttons,
  .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__hero-cta-buttons {
    flex-direction: column;
  }

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

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

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__game-categories-grid,
  .page-casino__promo-grid,
  .page-casino__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card-image,
  .page-casino__promo-card-image,
  .page-casino__feature-image {
    height: auto;
  }

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

  /* Placeholder for homepage specific sections on mobile if they were to exist */
  /* .page-casino__promo-strip-track { grid-template-columns: repeat(4, 1fr); overflow-x: hidden; } */
  /* .page-casino__hot-games-grid { grid-template-columns: repeat(2, 1fr); } */
  /* winner-ticker fixed bottom bar etc. */
}

/* Common styles for game trial overlay/modal - MUST BE INCLUDED AS PER PROMPT */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-casino__reward-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}
.page-casino__reward-modal-content {
  background: #17191F;
  color: #FFF3E6;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 2px solid #FFA53A;
  box-shadow: 0 0 20px rgba(255, 165, 58, 0.5);
}
.page-casino__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #FFA53A;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}
.page-casino__reward-modal-close:hover {
  color: #FFB04D;
}
.page-casino__reward-modal h3 {
  font-size: 32px;
  color: #FFB04D;
  margin-bottom: 15px;
}
.page-casino__reward-modal p {
  font-size: 18px;
  margin-bottom: 25px;
}
.page-casino__reward-modal .page-casino__btn-primary {
  width: auto;
  padding: 12px 30px;
}