/* style/casino.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-1: #f9f9f9;
  --bg-light-2: #ffffff;
  --border-color: #e0e0e0;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default to dark text for light backgrounds */
  background-color: var(--bg-light-2);
}

.page-casino__dark-bg {
  background-color: #0d0d0d; /* Assuming shared.css var(--bg-dark-1) is dark */
  color: var(--text-light);
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px; /* Adjust top padding for fixed header */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  overflow: hidden;
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-casino__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light);
}

.page-casino__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.page-casino__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: var(--bg-light-1);
}

.page-casino__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-casino__image-block {
  text-align: center;
}

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

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

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

.page-casino__game-card {
  background-color: var(--bg-light-2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  color: var(--text-dark);
}

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

.page-casino__game-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino__game-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__game-button:hover {
  background-color: #a50000;
}

/* Benefits Section */
.page-casino__benefits-section {
  padding: 80px 0;
  background-color: var(--bg-light-1);
}

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

.page-casino__benefit-item {
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-casino__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-casino__benefit-item p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Guide Section */
.page-casino__guide-section {
  padding: 80px 0;
}

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

.page-casino__step-item {
  background-color: var(--bg-light-2);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-casino__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-casino__guide-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-casino__guide-button:hover {
  background-color: #a50000;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-light-1);
}

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

.page-casino__promo-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
}

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

.page-casino__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
  color: var(--primary-color);
}

.page-casino__promo-card p {
  font-size: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
  color: var(--text-dark);
}

.page-casino__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__promo-button:hover {
  background-color: #a50000;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--bg-light-2);
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-light-1);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-casino__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: change to a cross */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: var(--bg-light-2);
  color: var(--text-dark);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; 
  padding: 20px 15px !important;
  opacity: 1;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

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

.page-casino__faq-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.page-casino__faq-button:hover {
  background-color: #e6c200;
}

/* Contact Section */
.page-casino__contact-section {
  padding: 80px 0;
  text-align: center;
}

/* Global image reset for content area */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Ensure images fit without cropping by default */
  min-width: 200px;
  min-height: 200px;
}

/* Card specific image rules */
.page-casino__game-card .page-casino__game-image,
.page-casino__promo-card .page-casino__promo-image {
  min-width: unset; /* Allow card images to be smaller than 200px if needed, but still above global min */
  min-height: unset;
  width: 100%;
  height: 200px; /* Fixed height for consistent card layout */
  object-fit: cover; /* Cover for cards */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-casino__main-title {
    font-size: 32px;
  }
  .page-casino__hero-description {
    font-size: 16px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__section-title {
    font-size: 28px;
  }
  .page-casino__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-casino__content-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__about-section, .page-casino__games-section, .page-casino__benefits-section, .page-casino__guide-section, .page-casino__promotions-section, .page-casino__faq-section, .page-casino__contact-section {
    padding: 50px 0;
  }
  .page-casino__game-categories, .page-casino__benefits-grid, .page-casino__guide-steps, .page-casino__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__image-block {
    order: -1; /* Image appears above text on mobile */
  }
  .page-casino__game-image, .page-casino__promo-image {
    height: 180px;
  }
  /* Mobile image and video overflow prevention */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: contain !important;
  }
  .page-casino__game-card .page-casino__game-image,
  .page-casino__promo-card .page-casino__promo-image {
    min-width: unset !important; /* Allow card images to be smaller than 200px if needed, but still above global min */
    min-height: unset !important;
    width: 100% !important;
    height: 180px !important; /* Fixed height for consistent card layout */
    object-fit: cover !important; /* Cover for cards */
  }
  .page-casino__hero-image {
    min-width: unset !important;
    min-height: unset !important;
    object-fit: cover !important;
  }

  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-casino__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }
  .page-casino__faq-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 28px;
  }
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-casino__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
  }
  .page-casino__step-title {
    font-size: 20px;
  }
}