.page-casino {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
  overflow: hidden;
}

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

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

.page-casino__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-casino__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #FFF3E6;
  max-width: 100%;
  margin-bottom: 15px;
}

.page-casino__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  min-width: 200px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.page-casino__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 77, 0.6);
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF3E6;
  line-height: 1.2;
  background: linear-gradient(90deg, #FFA53A 0%, #FF8C1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

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

.page-casino__game-categories,
.page-casino__featured-games,
.page-casino__why-choose,
.page-casino__promotions-section,
.page-casino__how-to-start,
.page-casino__faq-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-casino__categories-grid,
.page-casino__games-grid,
.page-casino__promotions-grid,
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-casino__category-card,
.page-casino__promotion-card,
.page-casino__step-card {
  background-color: #17191F;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-casino__category-card:hover,
.page-casino__game-tile:hover,
.page-casino__promotion-card:hover,
.page-casino__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 176, 77, 0.3);
}

.page-casino__category-image,
.page-casino__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #A84F0C;
}

.page-casino__category-title,
.page-casino__promotion-title,
.page-casino__step-title {
  font-size: 1.4em;
  margin: 15px 10px;
  color: #FFF3E6;
}

.page-casino__game-tile {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-casino__game-tile img {
  width: 100%;
  height: 100%;
  min-height: 200px; /* Ensure game images meet minimum size */
  object-fit: cover;
  display: block;
}

.page-casino__why-choose-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-casino__why-choose-content .page-casino__text-content {
  flex: 1;
  min-width: 300px;
}

.page-casino__why-choose-content .page-casino__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__why-choose-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  min-height: 200px; /* Ensure image meets minimum size */
}

.page-casino__text-content p {
  margin-bottom: 20px;
}

.page-casino__text-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-casino__text-content ul li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFA53A"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
}

.page-casino__promotion-text {
  padding: 0 15px 15px;
  font-size: 0.95em;
  color: #CCC;
}

.page-casino__promotion-button {
  display: inline-block;
  padding: 10px 20px;
  background: #A84F0C;
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 15px;
  transition: background-color 0.2s ease;
}

.page-casino__promotion-button:hover {
  background-color: #D96800;
}

.page-casino__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

.page-casino__step-card {
  padding: 25px;
  position: relative;
  text-align: left;
}

.page-casino__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFA53A;
  position: absolute;
  top: 15px;
  right: 20px;
  opacity: 0.2;
}

.page-casino__step-title {
  margin-top: 0;
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 0.95em;
  color: #CCC;
  margin-bottom: 20px;
}

.page-casino__step-button {
  display: inline-block;
  padding: 10px 20px;
  background: #D96800;
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.page-casino__step-button:hover {
  background-color: #FF8C1A;
}

.page-casino__download-app {
  text-align: center;
  margin-top: 50px;
  padding: 30px 20px;
  background-color: #17191F;
  border-radius: 12px;
  border: 1px solid #A84F0C;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__download-text {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.page-casino__faq-list {
  margin-top: 30px;
}

.page-casino__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  width: 100%;
  background-color: #17191F;
  color: #FFF3E6;
  padding: 18px 25px;
  border: none;
  text-align: left;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.page-casino__faq-question:hover {
  background-color: #2a2c33;
}

.page-casino__faq-icon {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-question[aria-expanded="true"] .page-casino__faq-icon {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-casino__faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95em;
  color: #CCC;
}

.page-casino__faq-question[aria-expanded="true"] + .page-casino__faq-answer {
  max-height: 200px; /* Adjust as needed */
}

.page-casino__support-link {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
}

.page-casino__support-link a {
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
}

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

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-casino__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-casino__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
  .page-casino__why-choose-content {
    flex-direction: column;
  }
  .page-casino__why-choose-content .page-casino__image-wrapper {
    order: -1; /* Image appears above text on mobile */
  }
  .page-casino__why-choose-image,
  .page-casino__hero-image,
  .page-casino__category-image,
  .page-casino__promotion-image,
  .page-casino__game-tile img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-casino__categories-grid,
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__hero-section,
  .page-casino__game-categories,
  .page-casino__featured-games,
  .page-casino__why-choose,
  .page-casino__promotions-section,
  .page-casino__how-to-start,
  .page-casino__faq-section {
    padding: 20px 15px;
  }
  .page-casino__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
    margin-bottom: 30px;
  }
  .page-casino__hero-description,
  .page-casino__section-description {
    font-size: 1em;
  }
  .page-casino__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-casino__game-tile img {
    min-height: 200px; /* Still ensure minimum size */
  }
  .page-casino__why-choose-image,
  .page-casino__hero-image,
  .page-casino__category-image,
  .page-casino__promotion-image,
  .page-casino__game-tile img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure all images in content sections meet min-height requirements */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
}

/* Override specific elements for mobile to ensure no overflow */
@media (max-width: 768px) {
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-casino {
    overflow-x: hidden;
  }
  .page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .page-casino__hero-image {
    width: 100%;
    height: auto;
  }
}