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

.page-game-guides {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Assuming body background is dark from shared.css */
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-game-guides__light-bg {
  background-color: var(--card-bg); /* Using card-bg for a lighter section background */
  color: var(--text-main-color);
}

.page-game-guides__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--gold-color);
  line-height: 1.2;
}

.page-game-guides__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

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

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

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image slightly */
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-game-guides__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: none;
}

.page-game-guides__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-dark);
  transform: translateY(-2px);
}

/* Game Types Section */
.page-game-guides__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-game-guides__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-game-guides__card-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-game-guides__card-description {
  font-size: 16px;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-game-guides__btn-text {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: auto;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  text-decoration: underline;
  color: var(--gold-color);
}

/* Promotions Section */
.page-game-guides__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-game-guides__promotions-content {
  flex: 1;
}

.page-game-guides__promotions-content .page-game-guides__section-title {
  text-align: left;
  color: var(--text-main-color);
}

.page-game-guides__promotions-content .page-game-guides__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-game-guides__list li {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-game-guides__list li::before {
  content: '✓';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-game-guides__list li a {
  color: var(--glow-color);
  text-decoration: none;
}

.page-game-guides__list li a:hover {
  text-decoration: underline;
}

.page-game-guides__promotions-image-wrapper {
  flex: 1;
  max-width: 50%;
  text-align: right;
}

.page-game-guides__promotions-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Strategy Section */
.page-game-guides__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__strategy-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
}

.page-game-guides__strategy-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-game-guides__strategy-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-game-guides__strategy-description {
  font-size: 17px;
  color: var(--text-secondary-color);
  flex-grow: 1;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-game-guides__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-item[open] {
  background-color: var(--deep-green);
}

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

.page-game-guides__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-game-guides__faq-question:hover {
  color: var(--gold-color);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow-color);
  margin-left: 15px;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  color: var(--gold-color);
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 17px;
  color: var(--text-secondary-color);
  line-height: 1.5;
}

.page-game-guides__faq-answer a {
  color: var(--glow-color);
  text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
  text-decoration: underline;
}

.page-game-guides__faq-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
  padding: 10px 20px;
  border: 2px solid var(--glow-color);
  border-radius: 8px;
  color: var(--glow-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-game-guides__faq-more:hover {
  background-color: var(--glow-color);
  color: var(--background-dark);
}

/* CTA Bottom Section */
.page-game-guides__cta-bottom-section {
  padding: 80px 0;
}

.page-game-guides__cta-bottom-section .page-game-guides__section-title {
  color: var(--text-main-color);
}

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

/* --- Responsive Design --- */

/* Desktop video container width for flex */
.page-game-guides__video-container {
  width: 100%; /* Ensures it takes full width within its parent flex item */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .page-game-guides__flex-container {
    flex-direction: column;
  }

  .page-game-guides__promotions-image-wrapper {
    max-width: 100%;
    text-align: center;
  }

  .page-game-guides__promotions-content .page-game-guides__section-title,
  .page-game-guides__promotions-content .page-game-guides__text-block {
    text-align: center;
  }

  .page-game-guides__list {
    padding-left: 25px;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__hero-content {
    margin-top: -100px; /* Adjust for smaller screens */
  }

  .page-game-guides__main-title {
    font-size: 30px;
  }

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__section-title {
    font-size: 26px;
  }

  .page-game-guides__text-block {
    font-size: 16px;
  }

  .page-game-guides__game-cards,
  .page-game-guides__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-game-guides__card,
  .page-game-guides__strategy-item {
    padding: 20px;
  }

  .page-game-guides__card-image,
  .page-game-guides__strategy-image {
    height: 180px;
  }

  .page-game-guides__card-title {
    font-size: 20px;
  }

  .page-game-guides__strategy-title {
    font-size: 22px;
  }

  .page-game-guides__list {
    padding-left: 20px;
  }

  .page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 18px;
  }

  .page-game-guides__faq-answer {
    padding: 0 20px 15px;
    font-size: 16px;
  }

  /* Mobile image responsiveness */
  .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,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__promotions-image-wrapper,
  .page-game-guides__strategy-item,
  .page-game-guides__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  .page-game-guides__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

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

  .page-game-guides__main-title {
    font-size: 26px;
  }

  .page-game-guides__hero-description {
    font-size: 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-game-guides__section-title {
    font-size: 22px;
  }

  .page-game-guides__card-image,
  .page-game-guides__strategy-image {
    height: 150px;
  }

  .page-game-guides__card-title {
    font-size: 18px;
  }

  .page-game-guides__strategy-title {
    font-size: 20px;
  }

  .page-game-guides__faq-question {
    font-size: 16px;
    padding: 12px 15px;
  }

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