/* 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: #FFFFFF; /* Default body background */
}

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

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

.page-casino__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-casino__section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
}

.page-casino__btn-tertiary:hover {
  background-color: #025f2e;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Hero Section */
.page-casino__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  margin-bottom: 30px;
}

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

.page-casino__main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.page-casino__feature-description {
  font-size: 15px;
  color: #555555;
}

/* Game Categories */
.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

.page-casino__category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

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

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

/* Live Casino Grid */
.page-casino__live-casino-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-casino__live-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.page-casino__live-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #017439;
}

.page-casino__live-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

.page-casino__live-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__live-features li {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #333333;
}

.page-casino__icon {
  color: #017439;
  margin-right: 10px;
  font-weight: bold;
}

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

.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

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

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

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

/* Security Section */
.page-casino__security-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 600px;
  text-align: left;
}

.page-casino__security-list li {
  font-size: 18px;
  margin-bottom: 15px;
  color: #f0f0f0;
  display: flex;
  align-items: center;
}

.page-casino__security-image {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 40px auto 0;
  border-radius: 10px;
}

/* Mobile Grid */
.page-casino__mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-casino__mobile-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.page-casino__mobile-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__mobile-content p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-casino__app-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Payment Methods */
.page-casino__payment-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__payment-icon-wrapper {
  text-align: center;
  width: 150px;
}

.page-casino__payment-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-casino__payment-icon-wrapper p {
  font-size: 15px;
  color: #555555;
}

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

.page-casino__channel-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-casino__channel-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #017439;
}

.page-casino__channel-card p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 25px;
}

/* Responsible Gaming */
.page-casino__responsible-gaming-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-casino__responsible-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.page-casino__responsible-list {
  list-style: none;
  padding: 0;
}

.page-casino__responsible-list li {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #333333;
}

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

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

/* Responsive Design */
/* Mobile Overflow Prevention */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Homepage Game Trial CSS (as per strict instruction, even if this is an inner page) */
@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 promo/hot-games/brand-intro/winner-ticker if they were here */
  /* Example for promo-strip, if it were present and needed PC specific styles */
  .page-casino__promo-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
  .page-casino__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
  }
}

/* General Mobile Adaptations (for casino page content) */
@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-bottom: 30px;
  }
  .page-casino__main-title {
    font-size: 32px;
  }
  .page-casino__description {
    font-size: 16px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .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__section-title {
    font-size: 26px;
  }
  .page-casino__text-block {
    font-size: 15px;
  }
  .page-casino__features-grid,
  .page-casino__game-categories,
  .page-casino__promotions-grid,
  .page-casino__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__live-casino-grid,
  .page-casino__mobile-grid,
  .page-casino__responsible-gaming-info {
    grid-template-columns: 1fr;
  }
  .page-casino__live-content, .page-casino__mobile-content {
    order: 1; /* Text content above image on mobile */
  }
  .page-casino__live-image, .page-casino__mobile-image {
    order: 2;
  }
  .page-casino__feature-title,
  .page-casino__category-title,
  .page-casino__promo-title,
  .page-casino__channel-title {
    font-size: 20px;
  }
  .page-casino__live-title,
  .page-casino__mobile-title {
    font-size: 24px;
  }
  .page-casino__security-list li,
  .page-casino__responsible-list li {
    font-size: 15px;
  }
  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;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  /* Ensure all content area images are responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__promo-card,
  .page-casino__category-card,
  .page-casino__feature-item,
  .page-casino__channel-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Homepage Game Trial related CSS (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;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.page-casino__reward-modal[hidden] {
  display: none;
}
.page-casino__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  position: relative;
}
.page-casino__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-casino__reward-modal h3 {
  font-size: 28px;
  color: #017439;
  margin-bottom: 20px;
}
.page-casino__reward-modal p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}
.page-casino__reward-modal .page-casino__btn-primary {
  width: auto;
  padding: 10px 25px;
}