/* style/casino.css */
.page-casino {
  color: #333333; /* Dark text for default white body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary blue for titles */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  position: relative;
}

.page-casino__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ffc107; /* Secondary gold for accent */
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-casino__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Minimum height for hero */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Darken image for text readability */
}

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

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffc107; /* Gold for main title */
  line-height: 1.2;
}

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

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

.page-casino__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  white-space: nowrap;
}

.page-casino__btn--primary {
  background-color: #ffc107; /* Secondary gold */
  color: #007bff; /* Primary blue text */
  border: 2px solid #ffc107;
}

.page-casino__btn--primary:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

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

.page-casino__btn--secondary:hover {
  background-color: rgba(255, 193, 7, 0.2);
  transform: translateY(-3px);
}

.page-casino__btn--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-casino__game-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__game-card-title {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-casino__game-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Bonus Section */
.page-casino__bonus-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
}

.page-casino__bonus-section .page-casino__section-title {
  color: #ffc107;
}

.page-casino__bonus-section .page-casino__section-title::after {
  background-color: #ffffff;
}

.page-casino__bonus-section .page-casino__text-content {
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-casino__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-casino__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #ffc107;
  color: #007bff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: #ffc107;
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-casino__bonus-cta {
  text-align: center;
  margin-top: 40px;
}

.page-casino__bonus-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.page-casino__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-casino__security-image {
  display: block;
  margin: 50px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  padding: 80px 0;
  background-color: #e9ecef;
}

.page-casino__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.page-casino__responsible-item {
  background-color: #ffffff;
  padding: 20px;
  border-left: 5px solid #007bff;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #333333;
}

.page-casino__responsible-gaming-section .page-casino__btn {
  margin-top: 40px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-casino__faq-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
  width: 100%;
  background-color: #007bff;
  color: #ffffff;
  padding: 20px 25px;
  border: none;
  text-align: left;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-casino__faq-question.active {
  background-color: #0056b3;
}

.page-casino__faq-question.active::after {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  padding: 0 25px;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-casino__faq-answer.open {
  max-height: 200px; /* Adjust as needed for content */
  padding: 20px 25px;
}

.page-casino__faq-answer p {
  margin: 0;
  color: #555555;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #ffffff;
  text-align: center;
}

.page-casino__cta-section .page-casino__section-title {
  color: #ffc107;
}

.page-casino__cta-section .page-casino__section-title::after {
  background-color: #ffffff;
}

.page-casino__cta-section .page-casino__text-content {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px);
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__hero-actions {
    flex-direction: column;
  }
  .page-casino__btn {
    width: 100%;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-casino__game-card-image, .page-casino__bonus-image, .page-casino__security-image {
    max-width: 100%;
    height: auto;
  }
  .page-casino__faq-answer.open {
    max-height: 400px; /* Adjust for smaller screens if content is longer */
  }
  .page-casino__game-categories, .page-casino__steps, .page-casino__features, .page-casino__responsible-list {
    grid-template-columns: 1fr;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  /* Ensure all images within .page-casino are responsive and do not overflow */
  .page-casino img {
    max-width: 100%;
    height: auto;
  }
  .page-casino {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__step-card {
    padding: 20px;
  }
  .page-casino__step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.5em;
  }
  .page-casino__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-casino__faq-answer.open {
    padding: 15px 20px;
  }
}