/* style/game-guides.css */

/* Base styles for the game guides page */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background, #08160F); /* Default background from custom palette */
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for hero section */
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure content takes full width up to max-width */
  padding: 0 15px;
  box-sizing: border-box;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-game-guides__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

/* General Section Styles */
.page-game-guides__section {
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--background, #08160F);
}

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

.page-game-guides__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size for H2 */
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-game-guides__sub-title {
  font-size: clamp(1.4em, 2.8vw, 2em); /* Responsive font size for H3 */
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-game-guides__sub-sub-title {
  font-size: clamp(1.2em, 2.5vw, 1.6em); /* Responsive font size for H4 */
  color: var(--text-secondary, #A7D9B8);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-game-guides p {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-game-guides a {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

.page-game-guides a:hover {
  text-decoration: underline;
  color: var(--deep-green, #0A4B2C);
}

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

.page-game-guides__card {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

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

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

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__card p {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
}

/* Content Blocks with images */
.page-game-guides__content-block {
  margin-bottom: 40px;
  background: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-game-guides__content-block:not(:last-child) {
  margin-bottom: 30px;
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: var(--deep-green, #0A4B2C);
  padding: 60px 20px;
}

.page-game-guides__faq-list {
  margin-top: 30px;
}

.page-game-guides__faq-item {
  background: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border, #2E7A4E);
}

.page-game-guides__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  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: var(--deep-green, #0A4B2C);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow, #57E38D);
  margin-left: 15px;
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  border-top: 1px solid var(--divider, #1E3A2A);
}

/* Final CTA Section */
.page-game-guides__cta-final {
  padding: 60px 20px;
  text-align: center;
}

.page-game-guides__cta-final .page-game-guides__container {
  background: var(--deep-green, #0A4B2C);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-game-guides__cta-final .page-game-guides__section-title {
  color: var(--gold, #F2C14E);
  margin-bottom: 25px;
}

.page-game-guides__cta-final p {
  font-size: 1.1em;
  margin-bottom: 35px;
  color: var(--text-main, #F2FFF6);
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-game-guides__btn-secondary:hover {
  background: var(--glow, #57E38D);
  color: var(--deep-green, #0A4B2C);
  transform: translateY(-2px);
}

.page-game-guides__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Image and Video Responsive Styles */
.page-game-guides img,
.page-game-guides video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }

  .page-game-guides__intro-text {
    font-size: 1em;
  }

  .page-game-guides__section {
    padding: 30px 15px;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }

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

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important; /* Ensure small top padding for mobile */
  }

  .page-game-guides__hero-content {
    padding: 0 10px;
  }

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

  .page-game-guides__intro-text {
    font-size: 0.95em;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }

  .page-game-guides__section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-final {
    padding: 25px 15px;
  }

  .page-game-guides__container {
    padding: 0 10px;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-game-guides__sub-title {
    font-size: clamp(1.2em, 4.5vw, 1.8em);
  }

  .page-game-guides__sub-sub-title {
    font-size: clamp(1em, 4vw, 1.4em);
  }

  .page-game-guides p {
    font-size: 0.9em;
  }

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

  .page-game-guides__card-title {
    font-size: 1.3em;
  }

  .page-game-guides__content-block {
    padding: 20px;
  }

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

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

  /* Force responsive images and containers */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-guides video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__cta-buttons,
  .page-game-guides__content-block,
  .page-game-guides__faq-section,
  .page-game-guides__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-game-guides__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}