/* style/game-guides.css */

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

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--section-bg); /* Default background for main content sections */
}

/* General Section Styling */
.page-game-guides__section {
  padding: 60px 20px;
  text-align: center;
}

.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(28px, 4vw, 42px);
  color: var(--gold-color);
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-game-guides__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-game-guides__text-block strong {
  color: var(--text-main);
}

/* 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, body handles --header-offset */
  background-color: var(--deep-green-color);
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
  color: var(--text-main);
}

.page-game-guides__main-title {
  font-size: clamp(32px, 5vw, 54px);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-game-guides__hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to screen width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  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-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

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

/* Intro Section */
.page-game-guides__intro-section {
  background-color: var(--section-bg);
  color: var(--text-secondary);
}

/* Types Section */
.page-game-guides__types-section {
  background-color: var(--card-bg);
}

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

.page-game-guides__card {
  background-color: var(--deep-green-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-secondary);
}

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

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

.page-game-guides__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__card .page-game-guides__btn-secondary {
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
}

/* Advanced Strategies Section */
.page-game-guides__advanced-strategies {
  background-color: var(--section-bg);
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__list-item {
  background-color: var(--deep-green-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 18px;
  color: var(--text-main);
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__list-item strong {
  color: var(--gold-color);
}

/* Access Guides Section */
.page-game-guides__access-guides {
  background-color: var(--card-bg);
}

.page-game-guides__numbered-list {
  list-style: none;
  padding: 0;
  counter-reset: my-counter;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__numbered-list .page-game-guides__list-item {
  counter-increment: my-counter;
  position: relative;
  padding-left: 45px;
  border-left: none;
  background-color: var(--deep-green-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__numbered-list .page-game-guides__list-item::before {
  content: counter(my-counter);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: var(--section-bg);
}

.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(--deep-green-color);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color);
}

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

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

/* Details element specific styling */
.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__faq-item summary {
  list-style: none;
}

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

/* Conclusion Section */
.page-game-guides__conclusion-section {
  background-color: var(--card-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-section {
    padding: 40px 15px;
  }
  .page-game-guides__section {
    padding: 40px 15px;
  }
  .page-game-guides__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  .page-game-guides__hero-description {
    font-size: 18px;
  }
  .page-game-guides__grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 10px !important;
  }

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

  .page-game-guides__hero-content,
  .page-game-guides__container,
  .page-game-guides__grid-container,
  .page-game-guides__list,
  .page-game-guides__numbered-list,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-game-guides__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

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

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 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;
    font-size: 16px;
  }

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

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

  .page-game-guides__card,
  .page-game-guides__section,
  .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__text-block, .page-game-guides__list-item, .page-game-guides__faq-answer p {
    font-size: 15px;
  }

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

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