/* style/game-guides.css */

/* Biến màu */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
  --button-login: #EA7C07;
  --black-color: #000000;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color); /* Body background is white */
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 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;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, var(--primary-color) 0%, #30baf2 100%); /* Slightly darker gradient for contrast */
  color: var(--text-light);
  overflow: hidden;
}

.page-game-guides__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

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

.page-game-guides__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-game-guides__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

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

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login); /* Use specific login color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__cta-button:hover {
  background: #e06c00; /* Slightly darker hover for login color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-game-guides__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-game-guides__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-dark);
}

.page-game-guides__dark-bg .page-game-guides__section-title,
.page-game-guides__dark-bg .page-game-guides__section-description {
  color: var(--text-light);
}

.page-game-guides__dark-bg .page-game-guides__link {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-game-guides__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-game-guides__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-game-guides__link:hover {
  text-decoration: underline;
}

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

.page-game-guides__grid--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

/* Card Styling */
.page-game-guides__card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

.page-game-guides__card-image {
  margin-bottom: 20px;
  text-align: center;
}

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

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

.page-game-guides__sub-title {
  font-size: 1.3em;
  color: var(--text-dark);
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-guides__card-content p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-game-guides__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-game-guides__list li {
  margin-bottom: 8px;
}

/* Other Games Section Specifics */
.page-game-guides__other-games-section .page-game-guides__section-description {
  color: var(--text-light);
}

.page-game-guides__game-card {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

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

.page-game-guides__game-card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__game-card-text {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-game-guides__game-card-link {
  color: var(--primary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
}

.page-game-guides__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-game-guides__game-card:hover .page-game-guides__arrow {
  transform: translateX(5px);
}

.page-game-guides__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-game-guides__image-wrapper img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.page-game-guides__benefit-item {
  background: var(--background-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-game-guides__benefit-item:hover {
  background-color: #eaf8ff; /* Light hover background */
}

.page-game-guides__benefit-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__benefit-item p {
  font-size: 1em;
  color: var(--text-dark);
}

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

.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-game-guides__faq-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
}

.page-game-guides__faq-question:active {
  background: #eeeeee;
}

.page-game-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Plus to X effect */
  border-color: var(--primary-color);
}

.page-game-guides__image-wrapper--faq {
    margin-top: 60px;
    margin-bottom: 20px;
}

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

.page-game-guides__news-card {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.page-game-guides__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-game-guides__news-card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__news-card-excerpt {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-game-guides__news-card-link {
  color: var(--primary-color);
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-title {
    font-size: 2.8em;
  }

  .page-game-guides__hero-description {
    font-size: 1.2em;
  }

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

  .page-game-guides__grid--two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-title {
    font-size: 2em;
  }

  .page-game-guides__hero-description {
    font-size: 1em;
  }

  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-game-guides__grid,
  .page-game-guides__benefits-grid,
  .page-game-guides__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card,
  .page-game-guides__game-card,
  .page-game-guides__benefit-item,
  .page-game-guides__news-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__card-image img,
  .page-game-guides__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-game-guides__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-game-guides__faq-question h3 {
    font-size: 1em;
  }

  .page-game-guides__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px !important;
  }
}