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

/* General page-casino styles */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Background color for the page */
  line-height: 1.6;
}

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

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  color: #ffffff;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-play {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-casino__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-casino__btn-play {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  font-size: 0.9rem;
  padding: 8px 15px;
  width: fit-content;
  margin-top: auto; /* Push to bottom of card */
}

.page-casino__btn-play:hover {
  opacity: 0.9;
}

/* Section Titles */
.page-casino__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-casino__section-title--light {
  color: #ffffff;
}

.page-casino__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-casino__section-description--light {
  color: #f0f0f0;
}

.page-casino__text-block {
  font-size: 1rem;
  margin-bottom: 1.5em;
  color: #333333;
}

.page-casino__dark-section {
  background: #E53935;
  color: #ffffff;
}

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

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

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-height: 200px; /* Min size requirement */
}

.page-casino__game-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-card-title a {
  text-decoration: none;
  color: inherit;
}

.page-casino__game-card-title a:hover {
  text-decoration: underline;
}

.page-casino__game-card-description {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 15px;
  padding: 0 15px;
  flex-grow: 1; /* Allow description to take available space */
}

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

.page-casino__advantage-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__advantage-icon {
  width: 100px; /* Adjust size to be content image, not icon */
  height: 75px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure images are not small icons */
  min-height: 150px;
}

.page-casino__advantage-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-casino__advantage-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Guide Section */
.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__guide-step-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-casino__guide-step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-casino__guide-step-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
}

.page-casino__responsible-gaming-list li {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  color: #333333;
}

.page-casino__responsible-gaming-list li p {
  margin: 0;
  font-size: 1rem;
}

.page-casino__responsible-gaming-list li strong {
  color: #E53935;
}

.page-casino__responsible-gaming-cta {
  text-align: center;
  margin-top: 30px;
}

/* 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;
}
.page-casino__faq-answer p {
  margin-bottom: 0;
}

/* Text highlight */
.page-casino .text-highlight {
  color: #E53935;
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    max-width: 700px;
  }
  .page-casino__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-casino__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-casino__section-padding {
    padding: 30px 15px;
  }
  .page-casino__container {
    padding: 0 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-casino__hero-section {
    min-height: 400px;
  }
  .page-casino__hero-content {
    padding: 15px;
  }
  .page-casino__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-casino__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-casino__hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__hero-cta {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__guide-step-item .page-casino__btn-secondary {
    margin: 0 auto; /* Center button in guide steps */
  }

  /* Section Titles */
  .page-casino__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-casino__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Images and Containers for mobile */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-casino__game-card-image {
    height: auto; /* Allow height to adjust */
    min-height: 180px;
  }
  .page-casino__advantage-icon {
    min-width: 150px;
    min-height: 100px;
    width: 100%;
    height: auto;
  }

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

  /* Additional mobile responsive rules for general content areas */
  .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;
  }

  /* If buttons are in a flex container, ensure wrap */
  .page-casino__hero-cta,
  .page-casino__button-group {
    display: flex;
    flex-direction: column; /* Or flex-wrap: wrap; */
    gap: 10px;
  }
}