/* style/game-guides.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này KHÔNG được viết lại */

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

.page-game-guides {
  background-color: var(--page-bg-color);
  color: var(--text-secondary-color);
  font-family: Arial, sans-serif;
  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-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  font-weight: bold;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-game-guides__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--text-secondary-color);
}

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

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

.page-game-guides__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-game-guides__btn-secondary {
  background: var(--card-bg-color);
  color: var(--glow-color);
  border: 2px solid var(--border-color);
}

.page-game-guides__btn-secondary:hover {
  background: var(--deep-green-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, đây chỉ là padding nội dung */
  background-color: var(--deep-green-color);
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-game-guides__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-game-guides__hero-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
}

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

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

/* Introduction Section */
.page-game-guides__introduction-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__introduction-section .page-game-guides__section-title {
  color: #333333;
}

.page-game-guides__introduction-section .page-game-guides__paragraph {
  color: #555555;
}

.page-game-guides__introduction-section .page-game-guides__highlight {
  color: #13994A;
}

/* Game Categories Section */
.page-game-guides__game-categories-section {
  padding: 80px 0;
  background-color: var(--page-bg-color);
}

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

.page-game-guides__category-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-height: 200px; /* Ensure minimum size */
}

.page-game-guides__card-title {
  font-size: 1.8em;
  color: var(--text-main-color);
  margin-bottom: 15px;
  padding: 0 15px;
}

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

.page-game-guides__category-card .page-game-guides__cta-button {
  margin: 0 auto;
  width: calc(100% - 30px);
  max-width: 200px;
}

/* Features Section */
.page-game-guides__features-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__features-section .page-game-guides__section-title {
  color: #333333;
}

.page-game-guides__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-game-guides__feature-title {
  font-size: 1.6em;
  color: #13994A;
  margin-bottom: 15px;
}

.page-game-guides__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Optimization Section */
.page-game-guides__optimization-section {
  padding: 80px 0;
  background-color: var(--page-bg-color);
}

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

.page-game-guides__optimization-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__optimization-card .page-game-guides__card-image {
  height: 200px; /* Adjust height for blog card */
}

.page-game-guides__optimization-card .page-game-guides__card-title {
  font-size: 1.6em;
}

/* Download Section */
.page-game-guides__download-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-game-guides__download-section .page-game-guides__section-title {
  color: #333333;
}

.page-game-guides__download-section .page-game-guides__paragraph {
  color: #555555;
}

.page-game-guides__download-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-game-guides__step-item {
  margin-bottom: 30px;
  padding-left: 40px;
  position: relative;
}

.page-game-guides__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: var(--btn-gradient);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-game-guides__step-title {
  font-size: 1.5em;
  color: #13994A;
  margin-bottom: 10px;
}

.page-game-guides__step-description {
  font-size: 1em;
  color: #555555;
}

.page-game-guides__download-cta {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-game-guides__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--text-main-color);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
}

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

.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;
  line-height: 1;
  width: 20px;
  text-align: center;
}

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

.page-game-guides__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-bg-color);
}

.page-game-guides__conclusion-section .page-game-guides__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }
  
  .page-game-guides__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-game-guides__cta-button,
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-game-guides__hero-cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-game-guides__hero-image {
    min-height: 200px;
  }

  .page-game-guides__container,
  .page-game-guides__introduction-section .page-game-guides__container,
  .page-game-guides__game-categories-section .page-game-guides__container,
  .page-game-guides__features-section .page-game-guides__container,
  .page-game-guides__optimization-section .page-game-guides__container,
  .page-game-guides__download-section .page-game-guides__container,
  .page-game-guides__faq-section .page-game-guides__container,
  .page-game-guides__conclusion-section .page-game-guides__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Ensure minimum size */
  }

  .page-game-guides__card-image {
    height: auto !important;
  }

  .page-game-guides__video-section {
    padding-top: 10px !important;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
  }

  .page-game-guides__feature-list,
  .page-game-guides__category-grid,
  .page-game-guides__optimization-grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__step-item {
    padding-left: 35px;
  }

  .page-game-guides__step-item::before {
    width: 25px;
    height: 25px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__section-title {
    font-size: 1.5em;
  }
  .page-game-guides__card-title {
    font-size: 1.5em;
  }
  .page-game-guides__feature-title,
  .page-game-guides__step-title {
    font-size: 1.3em;
  }
  .page-game-guides__faq-question {
    font-size: 1em;
  }
}