/* style/game-guides.css */

/* Base styles for page-game-guides */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

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

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  max-height: 700px; /* Limit hero image height */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  background: rgba(8, 22, 15, 0.7); /* Deep Green overlay for readability */
  border-radius: 10px;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

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

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

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

.page-game-guides__btn-secondary {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-game-guides__btn-secondary:hover {
  background: #11271B; /* Card BG */
  color: #57E38D; /* Glow */
  transform: translateY(-2px);
}

.page-game-guides__btn-read-more {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  background: #11A84E; /* Primary Color */
  color: #ffffff;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-game-guides__btn-read-more:hover {
  background: #22C768; /* Auxiliary Color */
}

.page-game-guides__btn-lg {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Section Titles and Descriptions */
.page-game-guides__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-game-guides__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

.page-game-guides__text-block {
  font-size: 1.05em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

/* Introduction Section */
.page-game-guides__introduction-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

/* Game Types Section */
.page-game-guides__game-types-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
}

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

.page-game-guides__game-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Text Main */
}

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

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

.page-game-guides__game-card-title {
  font-size: 1.4em;
  font-weight: 600;
  padding: 15px;
  margin-bottom: 0;
  flex-grow: 1;
}

.page-game-guides__game-card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-game-guides__game-card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-game-guides__game-card-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px 15px;
  flex-grow: 1;
}

/* Strategy Section */
.page-game-guides__strategy-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-game-guides__strategy-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
  text-align: center;
}

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

.page-game-guides__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-game-guides__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-game-guides__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-game-guides__cta-final {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Global Image Styles */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

  .page-game-guides__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-game-guides__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-game-guides__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides__btn-read-more,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-game-guides__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__game-types-section,
  .page-game-guides__strategy-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding: 50px 0;
  }

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

  .page-game-guides__game-card {
    margin-bottom: 20px;
  }

  .page-game-guides__game-card-image {
    height: 180px;
  }

  .page-game-guides__strategy-image,
  .page-game-guides__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

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

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

  .page-game-guides__cta-final {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides img {
    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__game-card,
  .page-game-guides__game-cards-grid,
  .page-game-guides__cta-buttons,
  .page-game-guides__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-game-guides__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-game-guides__hero-image {
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 100%;
    max-width: none;
  }
}

/* Color Contrast Adjustments */
/* Default text is light on dark background */
.page-game-guides__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-game-guides__card-bg {
  background-color: #11271B;
  color: #F2FFF6;
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Ensure text in card-like elements remains readable */
.page-game-guides__game-card .page-game-guides__game-card-title a,
.page-game-guides__game-card .page-game-guides__game-card-text {
  color: #F2FFF6;
}

.page-game-guides__faq-item summary,
.page-game-guides__faq-item .page-game-guides__faq-answer p {
  color: #F2FFF6;
}

.page-game-guides__faq-item .page-game-guides__faq-answer {
  color: #A7D9B8;
}