/* style/casino-game-rules-explained.css */

/* Variables */
:root {
  --k9cc-primary: #113B7A;
  --k9cc-secondary: #1D5FD1;
  --k9cc-card-bg: #10233F;
  --k9cc-text-main: #F3F8FF;
  --k9cc-text-secondary: #AFC4E8;
  --k9cc-border: #244D84;
  --k9cc-glow: #4FA8FF;
  --k9cc-gold: #F2C14E;
  --k9cc-divider: #1B3357;
  --k9cc-deep-navy: #08162B;
  --k9cc-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

/* General styles for the page content, ensuring light text on dark body background */
.page-casino-game-rules-explained {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--k9cc-text-main); /* Light text for readability on dark background */
  background-color: var(--k9cc-deep-navy); /* Ensure body background is dark */
}

.page-casino-game-rules-explained__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-casino-game-rules-explained__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--k9cc-gold);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-casino-game-rules-explained__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--k9cc-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-casino-game-rules-explained__text-block {
  font-size: 1rem;
  color: var(--k9cc-text-secondary);
  margin-bottom: 15px;
}

.page-casino-game-rules-explained__highlight {
  color: var(--k9cc-gold);
  font-weight: bold;
}

.page-casino-game-rules-explained a {
  color: var(--k9cc-glow);
  text-decoration: none;
}

.page-casino-game-rules-explained a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-casino-game-rules-explained__cta-button,
.page-casino-game-rules-explained__game-link {
  display: inline-block;
  background: var(--k9cc-button-gradient);
  color: var(--k9cc-text-main);
  padding: 12px 25px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--k9cc-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino-game-rules-explained__cta-button:hover,
.page-casino-game-rules-explained__game-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Hero Section */
.page-casino-game-rules-explained__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, no var(--header-offset) */
  overflow: hidden;
  color: var(--k9cc-text-main);
}

.page-casino-game-rules-explained__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino-game-rules-explained__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-casino-game-rules-explained__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Adjust to bring content slightly over the image, without overlapping text */
  background: rgba(16, 35, 63, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--k9cc-border);
}

.page-casino-game-rules-explained__main-title {
  font-weight: 800;
  color: var(--k9cc-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-casino-game-rules-explained__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--k9cc-text-secondary);
}

/* Introduction Section */
.page-casino-game-rules-explained__introduction-section {
  padding: 60px 0;
  background-color: var(--k9cc-deep-navy);
}

.page-casino-game-rules-explained__image-content {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--k9cc-border);
}

.page-casino-game-rules-explained__image-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Games Section */
.page-casino-game-rules-explained__games-section {
  padding: 60px 0;
  background-color: var(--k9cc-card-bg);
}

.page-casino-game-rules-explained__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino-game-rules-explained__game-card {
  background-color: var(--k9cc-deep-navy);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--k9cc-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding-bottom: 20px;
}

.page-casino-game-rules-explained__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino-game-rules-explained__game-title {
  font-size: 1.5rem;
  color: var(--k9cc-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino-game-rules-explained__game-description {
  font-size: 0.95rem;
  color: var(--k9cc-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino-game-rules-explained__game-link {
  margin: 0 auto;
}

/* Rules and Terminology Section */
.page-casino-game-rules-explained__rules-terminology-section {
  padding: 60px 0;
  background-color: var(--k9cc-deep-navy);
}

.page-casino-game-rules-explained__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-casino-game-rules-explained__text-column {
  flex: 1;
}

.page-casino-game-rules-explained__image-column {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-casino-game-rules-explained__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-casino-game-rules-explained__list-item {
  color: var(--k9cc-text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-casino-game-rules-explained__list-item::before {
  content: '&#10003;'; /* Checkmark */
  color: var(--k9cc-gold);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Safety and Fairness Section */
.page-casino-game-rules-explained__safety-fairness-section {
  padding: 60px 0;
  background-color: var(--k9cc-card-bg);
  text-align: center;
}

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

.page-casino-game-rules-explained__feature-card {
  background-color: var(--k9cc-deep-navy);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--k9cc-border);
}

.page-casino-game-rules-explained__feature-title {
  font-size: 1.4rem;
  color: var(--k9cc-gold);
  margin-bottom: 15px;
}

.page-casino-game-rules-explained__feature-description {
  color: var(--k9cc-text-secondary);
  font-size: 0.95rem;
}

/* Tips and Strategies Section */
.page-casino-game-rules-explained__tips-strategies-section {
  padding: 60px 0;
  background-color: var(--k9cc-deep-navy);
}

.page-casino-game-rules-explained__content-wrapper--reverse {
  flex-direction: row-reverse;
}

/* FAQ Section */
.page-casino-game-rules-explained__faq-section {
  padding: 60px 0;
  background-color: var(--k9cc-card-bg);
}

.page-casino-game-rules-explained__faq-item {
  background-color: var(--k9cc-deep-navy);
  border: 1px solid var(--k9cc-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-game-rules-explained__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--k9cc-text-main);
  cursor: pointer;
  background-color: var(--k9cc-primary);
  border-bottom: 1px solid var(--k9cc-divider);
}

.page-casino-game-rules-explained__faq-question:hover {
  background-color: #1a4a94; /* Slightly lighter primary */
}

.page-casino-game-rules-explained__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--k9cc-gold);
  transition: transform 0.3s ease;
}

.page-casino-game-rules-explained__faq-item[open] .page-casino-game-rules-explained__faq-toggle {
  transform: rotate(45deg); /* Plus to X effect */
}

.page-casino-game-rules-explained__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--k9cc-text-secondary);
  border-top: 1px solid var(--k9cc-divider);
}

.page-casino-game-rules-explained__faq-answer p {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-casino-game-rules-explained__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--k9cc-deep-navy);
}

.page-casino-game-rules-explained__cta-section .page-casino-game-rules-explained__cta-button {
  margin-top: 30px;
  font-size: 1.2rem;
  padding: 15px 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-casino-game-rules-explained__main-title {
    font-size: 2.2rem;
  }
  .page-casino-game-rules-explained__description {
    font-size: 1rem;
  }
  .page-casino-game-rules-explained__section-title {
    font-size: 2rem;
  }
  .page-casino-game-rules-explained__sub-title {
    font-size: 1.6rem;
  }
  .page-casino-game-rules-explained__content-wrapper {
    flex-direction: column;
  }
  .page-casino-game-rules-explained__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-casino-game-rules-explained__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  /* Images responsiveness */
  .page-casino-game-rules-explained img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino-game-rules-explained__hero-image-wrapper,
  .page-casino-game-rules-explained__game-card,
  .page-casino-game-rules-explained__feature-card,
  .page-casino-game-rules-explained__faq-item,
  .page-casino-game-rules-explained__container,
  .page-casino-game-rules-explained__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Buttons responsiveness */
  .page-casino-game-rules-explained__cta-button,
  .page-casino-game-rules-explained__game-link {
    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;
    font-size: 1rem !important;
  }

  .page-casino-game-rules-explained__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-casino-game-rules-explained__hero-content {
    margin-top: -30px; /* Less overlap on mobile */
    padding: 20px;
  }

  .page-casino-game-rules-explained__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-casino-game-rules-explained__section-title {
    font-size: 1.8rem;
  }

  .page-casino-game-rules-explained__sub-title {
    font-size: 1.4rem;
  }

  .page-casino-game-rules-explained__game-image {
    height: 180px;
  }

  .page-casino-game-rules-explained__game-card {
    padding-bottom: 15px;
  }

  .page-casino-game-rules-explained__game-title {
    font-size: 1.3rem;
  }

  .page-casino-game-rules-explained__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-casino-game-rules-explained__faq-answer {
    padding: 15px 20px;
  }

  .page-casino-game-rules-explained__cta-section .page-casino-game-rules-explained__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .page-casino-game-rules-explained__main-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-casino-game-rules-explained__hero-content {
    padding: 15px;
  }
  .page-casino-game-rules-explained__section-title {
    font-size: 1.6rem;
  }
  .page-casino-game-rules-explained__sub-title {
    font-size: 1.2rem;
  }
  .page-casino-game-rules-explained__game-grid {
    gap: 20px;
  }
  .page-casino-game-rules-explained__game-image {
    height: 160px;
  }
}