.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

/* Ensure the first section has proper padding-top for fixed header */
.page-casino__hero-section {
  padding-top: 10px; /* Small padding for visual spacing, body handles --header-offset */
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main and Auxiliary colors */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  text-align: center;
  padding-top: 50px; /* Additional internal spacing for hero content */
}

.page-casino__hero-image-block {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-text-block {
  max-width: 800px;
}

.page-casino__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-casino__cta-buttons {
  display: flex;
  flex-direction: column; /* Default to column for mobile */
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  max-width: 400px; /* Constrain button group width */
  box-sizing: border-box;
}

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast */
  border: none;
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
}

.page-casino__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-casino__about-section,
.page-casino__game-categories,
.page-casino__featured-games,
.page-casino__promo-section,
.page-casino__payment-section,
.page-casino__responsible-gaming,
.page-casino__faq-section,
.page-casino__cta-section,
.page-casino__partners-section,
.page-casino__info-text {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-casino__about-section:last-of-type,
.page-casino__info-text:last-of-type {
  border-bottom: none;
}

.page-casino__categories-grid,
.page-casino__games-grid,
.page-casino__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__category-card,
.page-casino__game-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
}

.page-casino__category-card:hover,
.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.3);
}

.page-casino__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px #F2C14E);
}

.page-casino__category-title,
.page-casino__game-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-casino__category-text,
.page-casino__game-provider {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-casino__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-casino__btn-play {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-casino__view-all-button {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-casino__promo-card {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-casino__promo-details {
  padding: 30px;
  text-align: center;
}

.page-casino__promo-title {
  font-size: 2em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-casino__promo-text {
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-casino__payment-options {
  text-align: center;
  margin-top: 40px;
}

.page-casino__payment-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__responsible-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 40px auto 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #FFD36B; /* Auxiliary color */
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

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

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px 20px 20px;
}

.page-casino__partners-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-items: center;
  align-items: center;
}

.page-casino__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.page-casino__partner-logo:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}

.page-casino__expandable-content {
  max-height: 600px; /* Initial collapsed height for info text */
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  position: relative;
  margin-bottom: 20px;
}

.page-casino__expandable-content.collapsed {
  max-height: 250px;
}

.page-casino__expandable-content::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, #0A0A0A, rgba(10, 10, 10, 0));
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.page-casino__expandable-content.collapsed::before {
  opacity: 1;
}

.page-casino__expandable-content:not(.collapsed)::before {
  opacity: 0;
}

.page-casino__load-less-btn {
  display: block;
  margin: 20px auto 0 auto;
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 1px solid #F2C14E;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-casino__load-less-btn:hover {
  background: #F2C14E;
  color: #111111;
}

/* Desktop styles */
@media (min-width: 769px) {
  .page-casino__hero-content-wrapper {
    flex-direction: row; /* Desktop: row */
    text-align: left;
    justify-content: space-between;
    gap: 50px;
    padding-top: 80px;
  }

  .page-casino__hero-image-block {
    flex: 1;
    margin-bottom: 0;
  }

  .page-casino__hero-text-block {
    flex: 1;
    max-width: none;
  }

  .page-casino__cta-buttons {
    flex-direction: row; /* Desktop: row */
    max-width: none;
    justify-content: flex-start;
  }

  .page-casino__main-title {
    font-size: 3.5em;
  }

  .page-casino__section-title {
    font-size: 3em;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media query */
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2em, 8vw, 2.8em); /* Responsive font size */
  }

  .page-casino__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-casino__section-description,
  .page-casino__hero-description,
  .page-casino__category-text,
  .page-casino__game-provider,
  .page-casino__promo-text,
  .page-casino__faq-answer p {
    font-size: 1em;
  }

  .page-casino__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-play,
  .page-casino__load-less-btn,
  .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__view-all-button {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-casino__promo-details {
    padding: 20px;
  }

  .page-casino__promo-title {
    font-size: 1.5em;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__faq-question {
    font-size: 1em;
  }

  .page-casino__expandable-content {
    max-height: 300px; /* Adjust initial collapsed height for mobile */
  }

  .page-casino__expandable-content.collapsed {
    max-height: 200px;
  }
}