.page-casino { font-family: 'Arial', sans-serif; color: #333333; background: #f8f8f8; line-height: 1.6; }
.page-casino__section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.page-casino__dark-section { background: #10233F; color: #F3F8FF; }
.page-casino__section-title { font-size: 32px; font-weight: bold; text-align: center; margin-bottom: 20px; color: #113B7A; }
.page-casino__dark-section .page-casino__section-title { color: #F2C14E; }
.page-casino__section-description { font-size: 18px; text-align: center; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; color: #666; }
.page-casino__dark-section .page-casino__section-description { color: #AFC4E8; }

.page-casino__hero-section { position: relative; width: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 10px; padding-bottom: 40px; }
.page-casino__hero-image-wrapper { width: 100%; position: relative; height: 0; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ }
.page-casino__hero-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.page-casino__hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 20px; background: rgba(255, 255, 255, 0.9); border-radius: 10px; margin-top: -100px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.page-casino__main-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.2; color: #113B7A; margin-bottom: 15px; }
.page-casino__description { font-size: 18px; color: #333333; margin-bottom: 30px; }
.page-casino__cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.page-casino__btn-primary, .page-casino__btn-secondary, .page-casino__btn-play, .page-casino__btn-details, .page-casino__btn-lg { 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; cursor: pointer; white-space: normal; word-wrap: break-word; text-align: center; box-sizing: border-box; }
.page-casino__btn-primary { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #F3F8FF; border: none; }
.page-casino__btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(17, 59, 122, 0.4); }
.page-casino__btn-secondary { background: #ffffff; color: #113B7A; border: 2px solid #113B7A; }
.page-casino__btn-secondary:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(17, 59, 122, 0.2); }
.page-casino__btn-play, .page-casino__btn-details { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #F3F8FF; border: none; padding: 10px 20px; font-size: 16px; margin-top: auto; }
.page-casino__btn-play:hover, .page-casino__btn-details:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(17, 59, 122, 0.3); }
.page-casino__btn-lg { padding: 15px 35px; font-size: 20px; }

.page-casino__game-grid, .page-casino__promo-grid, .page-casino__feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.page-casino__card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; color: #333333; }
.page-casino__dark-section .page-casino__card { background: #10233F; border-color: #244D84; color: #F3F8FF; }
.page-casino__card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.page-casino__game-card-image, .page-casino__promo-card-image, .page-casino__feature-icon { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; display: block; object-fit: cover; margin-left: auto; margin-right: auto; }
.page-casino__feature-icon { max-width: 120px; margin-bottom: 20px; }
.page-casino__game-card-title, .page-casino__promo-card-title, .page-casino__feature-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: #113B7A; }
.page-casino__dark-section .page-casino__game-card-title, .page-casino__dark-section .page-casino__promo-card-title, .page-casino__dark-section .page-casino__feature-title { color: #F2C14E; }
.page-casino__game-card-title a, .page-casino__promo-card-title a { color: inherit; text-decoration: none; }
.page-casino__game-card-title a:hover, .page-casino__promo-card-title a:hover { text-decoration: underline; }
.page-casino__game-card-text, .page-casino__promo-card-text, .page-casino__feature-description { font-size: 16px; color: #666; margin-bottom: 15px; flex-grow: 1; }
.page-casino__dark-section .page-casino__game-card-text, .page-casino__dark-section .page-casino__promo-card-text, .page-casino__dark-section .page-casino__feature-description { color: #AFC4E8; }

.page-casino__responsible-gaming-section { text-align: center; }

.page-casino__faq-list { margin-top: 30px; }
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: #113B7A; }
.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: #333333; }

/* Ensure all images are responsive */
.page-casino img { max-width: 100%; height: auto; display: block; }

/* --- HOMEPAGE GAME TRIAL CSS BLOCKS (AS PER INSTRUCTION) --- */
@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;
  }
}

/* --- END HOMEPAGE GAME TRIAL CSS BLOCKS --- */

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-casino__section { padding: 20px 15px; }
  .page-casino__section-title { font-size: 26px; }
  .page-casino__section-description { font-size: 16px; }

  .page-casino__hero-content { margin-top: -50px; padding: 15px; }
  .page-casino__main-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .page-casino__description { font-size: 16px; }
  .page-casino__cta-buttons { flex-direction: column; gap: 15px; }
  .page-casino__btn-primary, .page-casino__btn-secondary, .page-casino__btn-play, .page-casino__btn-details, .page-casino__btn-lg {
    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__game-grid, .page-casino__promo-grid, .page-casino__feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-casino__game-card, .page-casino__promo-card, .page-casino__feature-item { padding: 15px; }
  .page-casino__game-card-title, .page-casino__promo-card-title, .page-casino__feature-title { font-size: 20px; }
  .page-casino__game-card-text, .page-casino__promo-card-text, .page-casino__feature-description { font-size: 15px; }

  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; }

  /* General image and container responsiveness for mobile */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for __promo-strip mobile rules */
  .page-casino__promo-strip-track { grid-template-columns: repeat(2, 1fr); overflow-x: hidden; }
  .page-casino__promo-strip-card { display: flex; flex-direction: column; text-align: center; }
  /* Placeholder for __hot-games mobile rules */
  .page-casino__hot-games-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .page-casino__hot-games-item-name, .page-casino__hot-games-item-rtp, .page-casino__hot-games-item-desc { display: none; }
  /* Placeholder for __brand-intro mobile rules */
  .page-casino__brand-intro { display: block; text-align: center; }
  /* Placeholder for __winner-ticker mobile rules */
  .page-casino__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; background: #08162B; padding: 10px 0; z-index: 999; }
}