/* Base styles for .page-casino */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #f5f5f5; /* A light background, assuming --secondary-color is light */
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column; /* Default to column, mobile first */
  align-items: center;
  gap: 20px;
  padding: 10px 20px 40px; /* Small top padding, relying on body padding for header offset */
  background: linear-gradient(135deg, #017439, #028a45); /* Brand color gradient */
  color: #ffffff;
}

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

.page-casino__main-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-casino__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

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

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

/* Forced Game Trial Section (from prompt requirements) */
.page-casino__home-hero {
  padding: 10px 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-casino__hero-brand {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: #333333;
}

.page-casino__brand-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__brand-text {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-casino__brand-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-casino__brand-features li {
  display: flex;
  flex-direction: column; /* Stack image and text for better display */
  align-items: center;
  text-align: center;
  font-size: 1em;
  gap: 5px;
}

.page-casino__brand-features li img {
  width: 200px; /* Forced to 200px minimum display size */
  height: 200px;
  flex-shrink: 0;
  object-fit: contain; /* To ensure icon is visible within 200x200 */
}

.page-casino__game-trial {
  background: #212121; /* Dark background for trial area */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-casino__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}

.page-casino__game-trial-topbar {
  background: #333333;
  color: #ffffff;
  padding: 10px 15px;
  text-align: center;
}

.page-casino__game-trial-title {
  margin: 0;
  font-size: 1.2em;
}

.page-casino__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768; /* Forced by prompt */
  overflow: hidden;
  box-sizing: border-box;
}

.page-casino__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.page-casino__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5; /* Forced by prompt */
  pointer-events: auto;
}

.page-casino__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}

.page-casino__game-trial-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  z-index: 6; /* Forced by prompt */
  pointer-events: auto;
  touch-action: manipulation;
  white-space: normal;
  word-wrap: break-word;
  max-width: 90%; /* To prevent overflow on very small screens */
  box-sizing: border-box;
}

.page-casino__game-trial-start:hover {
  background: #a80707;
}

.page-casino__game-trial-bottombar {
  background: #333333;
  padding: 10px 15px;
  text-align: center;
}

.page-casino__hero-jackpot {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  color: #333333;
}

.page-casino__jackpot-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__jackpot-amount {
  font-size: 1.8em;
  font-weight: 700;
  color: #C30808;
  margin-bottom: 10px;
}

.page-casino__jackpot-value {
  color: #C30808;
}

.page-casino__jackpot-text {
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-casino__hero-jackpot-claim {
  display: inline-block;
  background: #C30808 !important;
  color: #FFFF00 !important;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-casino__hero-jackpot-claim:hover {
  background: #a80707 !important;
}

/* Reward Modal */
.page-casino__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.page-casino__reward-modal[hidden] {
  opacity: 0;
  pointer-events: none;
}

.page-casino__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  color: #333333;
}

.page-casino__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.page-casino__reward-modal-close:hover {
  color: #333;
}

.page-casino__reward-modal-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__reward-modal-text {
  font-size: 1.1em;
  margin-bottom: 25px;
}

/* Content Area */
.page-casino__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
}

.page-casino__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino__card-title {
  font-size: 1.4em;
  margin: 15px 10px 10px;
  color: #017439;
  flex-grow: 1;
}

.page-casino__card-link {
  text-decoration: none;
  color: inherit;
}

.page-casino__card-link:hover {
  text-decoration: underline;
}

.page-casino__card-text {
  font-size: 0.9em;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-casino__card-button {
  margin: 0 15px;
}

/* Feature Block (Live Casino) */
.page-casino__feature-block,
.page-casino__promo-block,
.page-casino__security-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  color: #333333;
}

.page-casino__feature-block:nth-of-type(odd) {
  flex-direction: row;
}

.page-casino__feature-block:nth-of-type(even) {
  flex-direction: row-reverse;
}

.page-casino__feature-text,
.page-casino__promo-content,
.page-casino__security-text {
  flex: 1;
}

.page-casino__feature-text p,
.page-casino__promo-content p,
.page-casino__security-text p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-casino__feature-image-wrapper,
.page-casino__security-image-wrapper {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-casino__feature-image,
.page-casino__promo-image,
.page-casino__security-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino__promo-block {
  flex-direction: column;
}

.page-casino__promo-image {
  border-radius: 10px;
  margin-bottom: 20px;
}

.page-casino__security-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 50px;
}

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