/* style/game-guides.css */

/* Custom Colors */
:root {
  --jdb-primary: #11A84E;
  --jdb-secondary: #22C768;
  --jdb-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --jdb-card-bg: #11271B;
  --jdb-background: #08160F;
  --jdb-text-main: #F2FFF6;
  --jdb-text-secondary: #A7D9B8;
  --jdb-border: #2E7A4E;
  --jdb-glow: #57E38D;
  --jdb-gold: #F2C14E;
  --jdb-divider: #1E3A2A;
  --jdb-deep-green: #0A4B2C;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--jdb-text-main); /* Default text color for dark background */
  background-color: var(--jdb-background); /* Overall page background */
}

.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--jdb-deep-green);
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-game-guides__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 15px;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--jdb-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__intro-text {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--jdb-text-secondary);
  margin-bottom: 30px;
}

.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--jdb-button-gradient);
  color: var(--jdb-text-main);
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--jdb-text-main);
  border-color: var(--jdb-primary);
}

.page-game-guides__btn-secondary:hover {
  background: var(--jdb-primary);
  color: #fff;
  transform: translateY(-2px);
}

.page-game-guides__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--jdb-background);
  color: var(--jdb-text-main);
  border-bottom: 1px solid var(--jdb-divider);
}

.page-game-guides__light-bg {
  background-color: var(--jdb-background);
  color: var(--jdb-text-main);
}

.page-game-guides__dark-bg {
  background-color: var(--jdb-deep-green);
  color: var(--jdb-text-main);
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--jdb-gold);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
}

.page-game-guides__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--jdb-primary);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__text-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--jdb-text-secondary);
}

.page-game-guides__text-block ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-game-guides__text-block li {
  margin-bottom: 8px;
  color: var(--jdb-text-secondary);
}

.page-game-guides__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides__featured-games {
  padding: 60px 20px;
  text-align: center;
}

.page-game-guides__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.page-game-guides__game-card {
  background-color: var(--jdb-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--jdb-border);
}

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

.page-game-guides__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__card-title a {
  color: var(--jdb-text-main);
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  color: var(--jdb-gold);
}

.page-game-guides__card-description {
  font-size: 0.95rem;
  color: var(--jdb-text-secondary);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-game-guides__btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-game-guides__btn-inline {
  margin-top: 20px;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-game-guides__faq-item {
  background-color: var(--jdb-card-bg);
  border: 1px solid var(--jdb-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--jdb-text-main);
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
}

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

.page-game-guides__faq-question .page-game-guides__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--jdb-gold);
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--jdb-text-secondary);
  line-height: 1.6;
}

.page-game-guides__faq-answer p {
  margin-bottom: 15px;
}

.page-game-guides__cta-bottom {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--jdb-deep-green);
  color: var(--jdb-text-main);
  background-image: url('[GALLERY:bg:1920x400:jdb casino,cta background,abstract,green gold]');
  background-size: cover;
  background-position: center;
}

.page-game-guides__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-game-guides__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--jdb-gold);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-game-guides__cta-description {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--jdb-text-secondary);
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    margin-top: 15px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-game-guides__intro-text {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
  }
}

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

  .page-game-guides__hero-section {
    padding: 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-game-guides__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-game-guides__intro-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    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-game-guides__content-area,
  .page-game-guides__featured-games,
  .page-game-guides__cta-bottom {
    padding: 40px 15px;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-game-guides__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .page-game-guides__text-block p,
  .page-game-guides__text-block li {
    font-size: 0.95rem;
  }

  .page-game-guides__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-guides__game-grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__game-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-game-guides__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-guides__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

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

  .page-game-guides__cta-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-game-guides__cta-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
  }
}