/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D;
  background: #F4F7FB;
}

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

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

.page-casino__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
}

.page-casino__text-block {
  font-size: 16px;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Hero Section */
.page-casino__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background: #F4F7FB;
  display: flex;
  align-items: center;
}

.page-casino__hero-section .page-casino__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-casino__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-casino__main-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  color: #1F2D3D;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

.page-casino__cta-buttons--center {
  margin-top: 30px;
}

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-casino__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.1);
}

.page-casino__btn-secondary:hover {
  background: #F4F7FB;
  color: #1F2D3D;
  border-color: #1F2D3D;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.2);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-casino__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Game Grid */
.page-casino__game-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: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

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

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

.page-casino__game-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  padding: 0 15px;
  text-align: center;
}

.page-casino__game-description {
  font-size: 15px;
  color: #1F2D3D;
  text-align: center;
  padding: 0 15px;
}

/* Live Casino Section (Dark Background) */
.page-casino__dark-bg {
  background: #2F6BFF;
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__text-block,
.page-casino__dark-bg .page-casino__feature-title {
  color: #ffffff;
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-casino__feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.page-casino__promo-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-casino__promo-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__promo-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  padding: 0 15px;
  text-align: center;
}

.page-casino__promo-card p {
  font-size: 15px;
  color: #1F2D3D;
  text-align: center;
  padding: 0 15px;
}

/* Guide Section */
.page-casino__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__guide-list li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__guide-list li p {
  color: #ffffff;
}

.page-casino__guide-step-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Features Section */
.page-casino__feature-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-casino__feature-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__feature-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  padding: 0 15px;
  text-align: center;
}

.page-casino__feature-card p {
  font-size: 15px;
  color: #1F2D3D;
  text-align: center;
  padding: 0 15px;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
}
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: #1F2D3D;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  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: #1F2D3D;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
  background: #2F6BFF;
  color: #ffffff;
}

.page-casino__responsible-gaming .page-casino__section-title,
.page-casino__responsible-gaming .page-casino__text-block {
  color: #ffffff;
}

/* General Image and Button Responsive Styles (from common rules) */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-casino__section,
.page-casino__card,
.page-casino__container,
.page-casino__cta-buttons,
.page-casino__button-group,
.page-casino__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  /* HOMEPAGE SPECIFIC CSS - REQUIRED BY PROMPT TO BE INCLUDED */
  .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;
  }

  /* General mobile adjustments for current page */
  .page-casino__main-title {
    font-size: clamp(32px, 8vw, 40px);
  }
  .page-casino__hero-description {
    font-size: 16px;
  }
  .page-casino__section-title {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  /* HOMEPAGE SPECIFIC CSS - REQUIRED BY PROMPT TO BE INCLUDED */
  .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;
  }

  /* Desktop layout for current page */
  .page-casino__hero-section .page-casino__container {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .page-casino__hero-image-wrapper {
    margin-top: 0;
    margin-left: 30px;
  }
  .page-casino__hero-content {
    text-align: left;
  }
  .page-casino__cta-buttons {
    justify-content: flex-start;
  }
  .page-casino__game-grid,
  .page-casino__features-grid,
  .page-casino__promo-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* General mobile overrides */
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__section {
    padding: 30px 0;
  }
  .page-casino__main-title {
    font-size: 30px;
  }
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__text-block {
    font-size: 15px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }
  .page-casino__hero-image-wrapper {
    margin-top: 20px;
  }
  .page-casino__game-grid,
  .page-casino__features-grid,
  .page-casino__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__game-card img,
  .page-casino__promo-card img,
  .page-casino__feature-card img {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__feature-card,
  .page-casino__guide-list li {
    padding: 15px;
  }
  .page-casino__faq-list {
    padding: 0 10px;
  }
  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; }

  /* HOMEPAGE SPECIFIC MEDIA QUERIES (REQUIRED by prompt) */
  .page-casino__promo-strip-track { /* Placeholder for homepage promo strip */
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
    gap: 15px;
    padding: 0 15px;
  }
  .page-casino__promo-strip-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 15px;
  }
  .page-casino__promo-strip-item img {
    
    
    margin-bottom: 10px;
  }
  .page-casino__hot-games-grid { /* Placeholder for homepage hot games */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-casino__hot-games-item-name,
  .page-casino__hot-games-item-rtp,
  .page-casino__hot-games-item-description {
    display: none !important; /* Hide details on mobile */
  }
  .page-casino__hot-games-item img {
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__brand-intro { /* Placeholder for homepage brand intro */
    padding: 20px 15px;
    text-align: center;
  }
  .page-casino__winner-ticker { /* Placeholder for homepage winner ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    z-index: 100;
  }
  body {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
}

/* Ensure images and containers are responsive */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-casino__section,
.page-casino__card,
.page-casino__container,
.page-casino__hero-section,
.page-casino__explore-casino,
.page-casino__live-casino,
.page-casino__promotions,
.page-casino__guide-section,
.page-casino__features-section,
.page-casino__faq-section,
.page-casino__responsible-gaming {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Contrast Fixes */
.page-casino__light-bg {
  background: #F4F7FB;
  color: #1F2D3D;
}
.page-casino__dark-bg {
  background: #2F6BFF;
  color: #ffffff;
}
.page-casino__card,
.page-casino__faq-item {
  background: #ffffff;
  color: #1F2D3D;
  border: 1px solid #D6E2FF;
}
.page-casino__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}
.page-casino__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}