/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* 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: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Main color */
    line-height: 1.2;
}

.page-casino__text-light {
    color: #FFF6D6;
}

.page-casino__dark-section {
    background-color: #111111; /* Card BG */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
}

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

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

.page-casino__main-title {
    font-size: 48px;
    font-weight: 800;
    color: #FFD36B; /* Glow */
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-casino__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: #FFF6D6;
}

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

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

.page-casino__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color */
}

.page-casino__btn-secondary:hover {
    transform: translateY(-3px);
    background: #F2C14E;
    color: #111111;
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

/* Card styles */
.page-casino__card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #FFF6D6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__card-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD36B; /* Glow */
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-casino__feature-icon,
.page-casino__game-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

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

.page-casino__game-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-casino__step-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* About ibet188 Section */
.page-casino__about-ibet188 p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
}
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;
  color: #FFD36B; /* Glow */
  font-weight: 600;
}
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: rgba(242, 193, 78, 0.1);
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  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: rgba(17, 17, 17, 0.8);
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

/* Homepage-specific CSS (included as per strict instruction for CSS file content) */
@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;
  }
  .page-casino__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-casino__hot-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-casino__hot-games-name,
  .page-casino__hot-games-rtp,
  .page-casino__hot-games-desc {
    display: block;
    text-align: center;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-top: 0 !important;
    }
    .page-casino__main-title {
        font-size: 32px;
    }
    .page-casino__intro-text {
        font-size: 16px;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px;
        padding: 12px 20px;
    }
    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-casino__features-grid,
    .page-casino__games-grid,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__card {
        padding: 20px;
    }
    .page-casino__card-title {
        font-size: 20px;
    }
    .page-casino__about-ibet188 p {
        font-size: 16px;
    }
    details.page-casino__faq-item summary.page-casino__faq-question {
        padding: 15px;
    }
    .page-casino__faq-qtext {
        font-size: 16px;
    }
    .page-casino__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-casino__faq-item .page-casino__faq-answer {
        padding: 0 15px 15px;
    }
    /* Generic mobile image and container rules */
    .page-casino img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .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;
    }
    .page-casino__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    /* Homepage-specific 768px rules (included as per strict instruction) */
    .page-casino__promo-strip-track {
        grid-template-columns: repeat(4,1fr);
        overflow-x:hidden;
        padding: 0 15px;
    }
    .page-casino__hot-games-grid {
        grid-template-columns: repeat(2,1fr);
        padding: 0 15px;
    }
    .page-casino__hot-games-name,
    .page-casino__hot-games-rtp,
    .page-casino__hot-games-desc {
        display: none;
    }
}

/* Homepage-specific elements (included as per strict instruction) */
.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;}