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

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

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

/* Header offset for fixed header */
.page-casino__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main color for titles */
}

.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main color gradient */
  display: flex; /* For image above text layout */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 15px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the bottom of the image for visual flow */
  background: #111111; /* Card BG */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-50px); /* Adjust to make it visually sit well */
}

.page-casino__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

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

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

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

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

.page-casino__btn-secondary:hover {
  background: #F2C14E; /* Main color */
  color: #111111; /* Card BG */
  border-color: #F2C14E; /* Main color */
  transform: translateY(-2px);
}

.page-casino__btn-text {
  background: transparent;
  color: #FFD36B; /* Glow color */
  border: 1px solid transparent;
  padding: 5px 0;
  font-size: 1em;
  text-align: center;
  display: block;
  margin-top: 15px;
}

.page-casino__btn-text:hover {
  color: #F2C14E; /* Main color */
  text-decoration: underline;
}

.page-casino__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF6D6; /* Text Main */
}

.page-casino__highlight {
  color: #FFD36B; /* Glow color */
  font-weight: bold;
}

.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-casino__card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #FFF6D6; /* Text Main */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__card:hover {
  transform: translateY(-5px);
}

.page-casino__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__card-description {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
}

.page-casino__main-image,
.page-casino__promo-banner,
.page-casino__mobile-app-image,
.page-casino__support-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  object-fit: cover;
  max-width: 100%;
}

.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__category-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #FFF6D6; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
}

.page-casino__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: none; /* Ensure no CSS filter changes original color */
}

.page-casino__category-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit image height within card */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  filter: none; /* Ensure no CSS filter changes original color */
}

.page-casino__registration-steps {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  counter-reset: step-counter;
}

.page-casino__registration-steps li {
  counter-increment: step-counter;
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 40px;
  position: relative;
  color: #FFF6D6; /* Text Main */
}

.page-casino__registration-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: #F2C14E; /* Main color */
  color: #111111; /* Card BG */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

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

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

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

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

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

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to a minus */
}

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

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 20px;
}

.page-casino__faq-answer p {
  margin: 0;
  color: #FFF6D6; /* Text Main */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    max-height: 400px;
  }
  .page-casino__hero-content {
    margin-top: -80px;
    transform: translateY(-40px);
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile default */
    min-height: 400px;
  }
  .page-casino__hero-image-wrapper {
    max-height: 300px;
  }
  .page-casino__hero-content {
    margin-top: -60px;
    transform: translateY(-30px);
    padding: 25px 15px;
  }
  .page-casino__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__section {
    padding: 40px 0;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 1em;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-casino__card,
  .page-casino__category-card {
    padding: 20px;
  }
  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px 15px;
  }

  /* Image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific override for hero content padding if needed to prevent double padding */
  .page-casino__hero-content.page-casino__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-content {
    margin-top: -40px;
    transform: translateY(-20px);
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__faq-question {
    font-size: 1em;
  }
}

/* Ensure no CSS filter changes original color */
.page-casino img {
  filter: none;
}

/* Content area image CSS size lower bound check */
/* This is a general rule, specific images like the category icons or game partner logos are exceptions handled by their specific selectors or sizes */
.page-casino img:not(.page-casino__category-icon):not(.page-casino__media-partner-game-image) {
  min-width: 200px;
  min-height: 200px;
}