/* style/game-guides.css */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-game-guides {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.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;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up slightly over the image for visual flow */
  background: rgba(17, 39, 27, 0.8); /* Card BG color with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-game-guides__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-game-guides__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-game-guides__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

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

.page-game-guides__highlight {
  color: var(--gold-color);
  font-weight: bold;
}

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

.page-game-guides__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-game-guides__game-card h3 {
  font-size: 1.4rem;
  color: var(--text-main-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-game-guides__game-card p {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-game-guides__game-card .page-game-guides__btn-primary {
  margin: 0 20px 20px;
  text-align: center;
  width: calc(100% - 40px);
}

.page-game-guides__responsible-gaming-section .page-game-guides__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-game-guides__responsible-gaming-section .page-game-guides__text-content {
  flex: 2;
  min-width: 300px;
}

.page-game-guides__responsible-gaming-section .page-game-guides__image-content {
  flex: 1;
  min-width: 250px;
}

.page-game-guides__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

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

.page-game-guides__dark-section .page-game-guides__section-title {
  color: var(--gold-color);
}

.page-game-guides__dark-section .page-game-guides__text-block {
  color: var(--text-secondary-color);
}

.page-game-guides__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-game-guides__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main-color);
  transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-item summary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* border-color with transparency */
}

.page-game-guides__faq-item[open] summary {
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

.page-game-guides__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

.page-game-guides__cta-bottom-section .page-game-guides__btn-primary,
.page-game-guides__cta-bottom-section .page-game-guides__btn-secondary {
  min-width: 200px;
}

.page-game-guides__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    margin-top: -100px;
  }
}

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

  .page-game-guides__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
  }

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

  .page-game-guides__hero-description {
    font-size: 1rem;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    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: 12px 20px;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

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

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

  .page-game-guides__game-card {
    margin: 0 15px;
  }

  .page-game-guides__responsible-gaming-section .page-game-guides__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

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

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-game-guides__game-card .page-game-guides__btn-primary {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
  }

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

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

  .page-game-guides__cta-bottom-section .page-game-guides__button-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-game-guides__cta-bottom-section .page-game-guides__btn-primary,
  .page-game-guides__cta-bottom-section .page-game-guides__btn-secondary {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

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

  .page-game-guides__game-card h3 {
    font-size: 1.2rem;
  }
}