/* style/casino.css */

/* Custom Colors */
:root {
  --page-casino-bg-primary: #08160F;
  --page-casino-bg-card: #11271B;
  --page-casino-text-main: #F2FFF6;
  --page-casino-text-secondary: #A7D9B8;
  --page-casino-border: #2E7A4E;
  --page-casino-glow: #57E38D;
  --page-casino-gold: #F2C14E;
  --page-casino-divider: #1E3A2A;
  --page-casino-deep-green: #0A4B2C;
}

/* General Page Styles */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-casino-text-main); /* Default text color for dark background */
  background-color: var(--page-casino-bg-primary); /* Default page background */
}

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

.page-casino__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-casino-text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-casino__dark-bg {
  background-color: var(--page-casino-bg-primary);
  color: var(--page-casino-text-main);
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-casino__text-main {
  color: var(--page-casino-text-main);
}

.page-casino__text-secondary {
  color: var(--page-casino-text-secondary);
}

.page-casino__card {
  background: var(--page-casino-bg-card);
  border: 1px solid var(--page-casino-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-casino-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* Always white text on green button */
  border: none;
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--page-casino-glow);
}

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

.page-casino__btn-secondary:hover {
  background-color: var(--page-casino-glow);
  color: var(--page-casino-bg-primary);
  box-shadow: 0 0 15px var(--page-casino-glow);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
  margin-bottom: 30px;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Overlap image slightly for visual effect */
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-casino-border);
}

.page-casino__hero-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--page-casino-gold);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-casino__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--page-casino-text-main);
}

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

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

.page-casino__about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: justify;
}

.page-casino__about-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-casino__about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg-primary);
}

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

.page-casino__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-casino__game-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-casino__game-link:hover {
  color: var(--page-casino-glow);
}

.page-casino__game-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-casino__promotion-card {
  text-align: center;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-casino__promotion-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 15px;
}

.page-casino__promotion-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #11A84E;
}

.page-casino__promotion-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

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

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: var(--page-casino-bg-primary);
}

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

.page-casino__feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-casino__feature-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--page-casino-text-secondary);
}

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

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

.page-casino__faq-item {
  margin-bottom: 20px;
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-casino__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #11A84E;
  border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #11A84E;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: "−";
}

.page-casino__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-casino-deep-green);
  color: var(--page-casino-text-main);
}

.page-casino__cta-final-section .page-casino__section-title {
  color: var(--page-casino-gold);
}

.page-casino__cta-final-section .page-casino__section-description {
  color: var(--page-casino-text-secondary);
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-casino__about-content {
    grid-template-columns: 1fr 1fr;
  }
  .page-casino__about-content p:first-of-type {
    order: 0;
  }
  .page-casino__about-image {
    order: 1;
  }
  .page-casino__about-content p:last-of-type {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-casino__hero-content {
    padding: 30px 20px;
    margin-top: -100px; /* Adjust overlap for mobile */
  }

  .page-casino__hero-title {
    font-size: 28px;
  }

  .page-casino__hero-description {
    font-size: 16px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 15px;
  }

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__why-choose-section,
  .page-casino__faq-section,
  .page-casino__cta-final-section {
    padding: 50px 0;
  }

  .page-casino__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-casino__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

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

  .page-casino__game-categories,
  .page-casino__promotions-grid,
  .page-casino__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-image {
    height: 160px;
  }

  .page-casino__promotion-image {
    height: 150px;
  }

  .page-casino__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-casino__faq-answer {
    padding: 10px 20px 15px;
    font-size: 14px;
  }

  /* Ensure all containers for images/buttons/videos are constrained */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__hero-content,
  .page-casino__hero-cta-buttons,
  .page-casino__game-card,
  .page-casino__promotion-card,
  .page-casino__feature-item,
  .page-casino__faq-item,
  .page-casino__cta-center,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-casino__container */
    /* padding-right: 15px; */ /* Handled by .page-casino__container */
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-casino__hero-image-wrapper, .page-casino__hero-content {
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino__hero-cta-buttons {
    gap: 10px;
  }
}