/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Page background color */
}

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

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

.page-casino__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
  line-height: 1.2;
}

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

.page-casino__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__text-block--white {
  color: #f0f0f0;
}

.page-casino__text-block:last-of-type {
  margin-bottom: 0;
}

.page-casino__text-highlight {
  color: #E53935;
  font-weight: 600;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.page-casino__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background: #f5f5f5;
  color: #FF5A4F;
  border-color: #FF5A4F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-casino__btn-small {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  color: #ffffff;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

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

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

.page-casino__hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.page-casino__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px 15px;
}

.page-casino__main-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Intro Section */
.page-casino__intro-section {
  background-color: #F5F7FA;
  color: #333333;
}

/* Games Section */
.page-casino__games-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #333333;
}

.page-casino__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-casino__game-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #E53935;
}

.page-casino__game-description {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
  margin: 0 20px 20px;
}

/* Live Experience Section */
.page-casino__live-experience-section {
  background-color: #F5F7FA;
  color: #333333;
}

.page-casino__flex-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__flex-text {
  flex: 1;
}

.page-casino__flex-image {
  flex: 1;
  text-align: center;
}

.page-casino__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.page-casino__feature-list li {
  margin-bottom: 10px;
}

.page-casino__feature-list strong {
  color: #E53935;
}

/* Promotions Section */
.page-casino__promotions-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__promo-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #333333;
}

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

.page-casino__promo-title {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #E53935;
}

.page-casino__promo-description {
  font-size: 15px;
  line-height: 1.6;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-secondary {
  margin: 0 20px 20px;
}

/* Features Section */
.page-casino__features-section {
  background-color: #F5F7FA;
  color: #333333;
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-casino__feature-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #E53935;
}

.page-casino__feature-description {
  font-size: 15px;
  line-height: 1.6;
}

/* Guide Section */
.page-casino__guide-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-casino__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-casino__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #E53935;
}

.page-casino__step-description {
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section {
  background-color: #F5F7FA;
  color: #333333;
}

.page-casino__responsible-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.7;
}

.page-casino__responsible-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: #E53935;
  color: #ffffff;
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #E53935;
}

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

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

/* General image responsiveness */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__main-title {
    font-size: 44px;
  }
  .page-casino__hero-description {
    font-size: 18px;
  }
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__features-grid,
  .page-casino__guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-casino__flex-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__flex-text,
  .page-casino__flex-image {
    width: 100%;
  }
  .page-casino__feature-list,
  .page-casino__responsible-list {
    padding-left: 20px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* General mobile container and padding */
  .page-casino__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-casino__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-casino__text-block {
    font-size: 15px;
  }

  /* Hero Section */
  .page-casino__hero-section {
    min-height: 450px;
    padding-top: 10px;
  }

  .page-casino__hero-image {
    object-fit: contain; /* Banner 849px contain */
    height: auto;
    max-height: 849px; /* Example max height for contain */
  }

  .page-casino__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* Three-link buttons (if present, e.g., for __access-links) - example only, not used in this casino page directly */
  /* .page-casino__access-links { flex-direction: column; gap: 15px; } */

  /* Games Grid */
  .page-casino__games-grid,
  .page-casino__promotions-grid,
  .page-casino__features-grid,
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px;
  }

  /* Five-entry (if present, e.g., for __category-lobby) */
  .page-casino__category-card-link img { 
    aspect-ratio: 1/1;
    border: none;
    box-shadow: none;
  }
  .page-casino__category-lobby__grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Blog Slider (if present) */
  /* .page-casino__blog-slider-track { scroll-snap-type: x mandatory; } */
  /* .page-casino__post-item { flex: 0 0 90%; scroll-snap-align: start; } */

  /* Flex content */
  .page-casino__flex-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-casino__feature-list,
  .page-casino__responsible-list {
    padding-left: 15px;
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }

  .page-casino__faq-qtext {
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

  .page-casino__faq-answer p {
    font-size: 15px;
  }

  /* General image and button responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .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;
  }
  .page-casino__cta-center {
    flex-direction: column;
    gap: 15px;
  }
}