/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from body via shared.css */
}

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

.page-casino__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-casino__section-title,
.page-casino__hero-title,
.page-casino__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__section-description,
.page-casino__hero-description,
.page-casino__cta-description {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-casino__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-casino__btn-secondary:hover {
  background-color: #FFD700;
  color: #0a0a0a;
}

.page-casino__btn-tertiary {
  background-color: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid #FFD700;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-casino__btn-tertiary:hover {
  background-color: #FFD700;
  color: #0a0a0a;
}

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

.page-casino__hero-content {
  z-index: 2;
  position: relative;
  max-width: 900px;
  text-align: center;
  margin-bottom: 40px;
}

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

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

/* Game Showcase Section */
.page-casino__game-showcase {
  padding: 80px 0;
}

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

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

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

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

.page-casino__game-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino__game-title a:hover {
  text-decoration: underline;
}

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

/* Why Choose Section */
.page-casino__why-choose {
  padding: 80px 0;
}

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

.page-casino__feature-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-casino__feature-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 0.95em;
  color: #cccccc;
}

/* Promotions Section */
.page-casino__promotions {
  padding: 80px 0;
}

.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: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-casino__promo-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino__promo-title a:hover {
  text-decoration: underline;
}

.page-casino__promo-text {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__cta-full-width {
  text-align: center;
  margin-top: 60px;
  background-color: #8B0000;
  padding: 40px;
  border-radius: 10px;
  color: #ffffff;
}

.page-casino__cta-full-width .page-casino__cta-text {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Video Section */
.page-casino__video-section {
  padding: 80px 0;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 10;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-casino__video-caption {
  text-align: center;
  color: #cccccc;
  margin-top: 20px;
  font-style: italic;
}

.page-casino__video-cta {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

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

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

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

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

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

.page-casino__guide-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino__guide-title a:hover {
  text-decoration: underline;
}

.page-casino__guide-text {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
  padding: 80px 0;
  text-align: center;
}

.page-casino__responsible-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 700px;
}

.page-casino__responsible-item {
  background-color: #1a1a1a;
  padding: 15px 25px;
  margin-bottom: 10px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  text-align: left;
  font-size: 1.05em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-casino__faq {
  padding: 80px 0;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question:hover {
  background-color: #2a2a2a;
}

.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 25px;
  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 value */
  padding: 15px 25px;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #cccccc;
}

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

.page-casino__cta-content {
  background-color: #8B0000;
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__cta-content .page-casino__cta-title {
  color: #FFD700;
  font-size: 3em;
  margin-bottom: 25px;
}

.page-casino__cta-content .page-casino__cta-description {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-casino__cta-button {
  margin: 0 10px;
  font-size: 1.1em;
  padding: 15px 35px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__section-title,
  .page-casino__hero-title,
  .page-casino__cta-title {
    font-size: 2.2em;
  }
  .page-casino__section-description,
  .page-casino__hero-description,
  .page-casino__cta-description {
    font-size: 1em;
  }
  .page-casino__game-grid,
  .page-casino__feature-grid,
  .page-casino__promo-grid,
  .page-casino__guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

  .page-casino__section-title,
  .page-casino__hero-title,
  .page-casino__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-casino__section-description,
  .page-casino__hero-description,
  .page-casino__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-casino__container,
  .page-casino__game-showcase,
  .page-casino__why-choose,
  .page-casino__promotions,
  .page-casino__video-section,
  .page-casino__guide-section,
  .page-casino__responsible-gaming,
  .page-casino__faq,
  .page-casino__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino img,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-casino__video-wrapper {
    padding-bottom: 65%; /* Adjust for mobile aspect ratio if needed, or keep 16:9 */
  }

  .page-casino__cta-full-width {
    padding: 30px 20px;
  }

  .page-casino__cta-content {
    padding: 40px 20px;
  }

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

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

  .page-casino__faq-answer {
    padding: 10px 20px;
  }

  /* Ensure content area images are not smaller than 200px (excluding icons/logos in shared) */
  .page-casino__game-image, 
  .page-casino__promo-image, 
  .page-casino__guide-image {
    min-width: 200px !important;
    min-height: 150px !important; /* Adjust height based on aspect ratio, ensuring it's not tiny */
  }

  .page-casino__feature-icon {
    min-width: 80px !important;
    min-height: 80px !important;
    width: 80px !important; /* Keep icons small, but ensure they are not tiny and are content-displaying */
    height: 80px !important;
  }

  /* Override for content images if they are too small */
  .page-casino__game-card img, 
  .page-casino__promo-card img, 
  .page-casino__guide-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 200px;
    min-
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-casino__section-title,
  .page-casino__hero-title,
  .page-casino__cta-title {
    font-size: 1.5em;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
  }
}