/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #000; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 700px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-casino__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* General Section Styles */
.page-casino__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #0A2E36;
  border-radius: 2px;
}

.page-casino__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-casino__text-center {
  text-align: center;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background-color: #FFD700;
  color: #0A2E36;
  border: 2px solid #FFD700;
}

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

.page-casino__btn-secondary {
  background-color: #0A2E36;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

.page-casino__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Introduction Section */
.page-casino__introduction-section {
  padding: 60px 0;
  background-color: #000;
  color: #ffffff;
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
  background-color: #0A2E36; /* Dark background for this section */
  color: #ffffff;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

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

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

/* Live Experience Section */
.page-casino__live-experience-section {
  padding: 60px 0;
  background-color: #000;
  color: #ffffff;
}

.page-casino__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__content-flex:nth-child(even) {
  flex-direction: row-reverse;
}

.page-casino__text-content {
  flex: 1;
}

.page-casino__image-content {
  flex: 1;
}

.page-casino__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-casino__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__feature-list 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="%23FFD700"><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: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-casino__list-highlight {
  color: #FFD700;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
  background-color: #FFD700; /* Medium background for this section */
  color: #0A2E36; /* Dark text for medium background */
}

.page-casino__promotions-section .page-casino__section-title {
  color: #0A2E36;
}

.page-casino__promotions-section .page-casino__section-title::after {
  background-color: #0A2E36;
}

.page-casino__promotions-section .page-casino__paragraph {
  color: #0A2E36;
}

.page-casino__promotions-section .page-casino__paragraph a {
  color: #0A2E36;
  text-decoration: underline;
}

.page-casino__promotions-section .page-casino__paragraph a:hover {
  color: #072228;
}

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

.page-casino__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__promo-title {
  font-size: 1.5em;
  color: #0A2E36;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-description {
  font-size: 1em;
  color: #333333;
  padding: 0 15px;
}

/* Guide Section */
.page-casino__guide-section {
  padding: 60px 0;
  background-color: #000;
  color: #ffffff;
}

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

.page-casino__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-casino__step-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-casino__step-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security Section */
.page-casino__security-section {
  padding: 60px 0;
  background-color: #0A2E36; /* Dark background */
  color: #ffffff;
}

.page-casino__security-section .page-casino__content-flex:nth-child(even) {
    flex-direction: row;
}

/* Contact CTA Section */
.page-casino__contact-cta-section {
  padding: 80px 0;
  background-color: #000;
  color: #ffffff;
}

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

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.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: #f0f0f0;
}

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

.page-casino__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

  .page-casino__hero-description {
    font-size: 1.1em;
  }

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

  .page-casino__content-flex {
    flex-direction: column;
  }

  .page-casino__content-flex:nth-child(even) {
    flex-direction: column;
  }

  .page-casino__image-content {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-casino__paragraph {
    font-size: 0.95em;
  }

  .page-casino__games-grid,
  .page-casino__promo-grid,
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__games-section,
  .page-casino__live-experience-section,
  .page-casino__promotions-section,
  .page-casino__guide-section,
  .page-casino__security-section,
  .page-casino__contact-cta-section,
  .page-casino__faq-section {
    padding: 40px 0;
  }

  .page-casino__button-group {
    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;
  }

  /* Force images to be responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure containers for images/videos/buttons are also responsive */
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__game-card,
  .page-casino__live-experience-section,
  .page-casino__text-content,
  .page-casino__image-content,
  .page-casino__promotions-section,
  .page-casino__promo-card,
  .page-casino__guide-section,
  .page-casino__step-card,
  .page-casino__security-section,
  .page-casino__contact-cta-section,
  .page-casino__faq-section,
  .page-casino__faq-item,
  .page-casino__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-casino__hero-content {
    padding: 0 15px;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

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