/* style/game-guides.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --login-button-color: #EA7C07;
}

.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default dark text for light body background */
  background-color: var(--bg-white);
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-game-guides__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-game-guides__sub-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.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), #6dd5ed); /* Gradient with primary color */
  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;
}

.page-game-guides__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 900px; /* Adjust max-width for image to be prominent but not cover everything */
}

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

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

.page-game-guides__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-game-guides__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color); /* Use login button color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__cta-button:hover {
  background: #ff8c00; /* Slightly darker orange on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-button--bottom {
  margin-top: 40px;
}

.page-game-guides__introduction p,
.page-game-guides__detailed-guides p,
.page-game-guides__general-tips p,
.page-game-guides__conclusion p {
  font-size: 17px;
  margin-bottom: 15px;
  color: var(--text-dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-game-guides__card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-game-guides__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-game-guides__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
  color: #1a7bb7; /* Slightly darker primary color */
}

.page-game-guides__card-text {
  font-size: 15px;
  color: #555555;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-game-guides__btn-secondary:hover {
  background: #1a7bb7; /* Slightly darker primary color */
}

.page-game-guides__detailed-guides .page-game-guides__content-block {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.page-game-guides__content-block:last-child {
  margin-bottom: 0;
}

.page-game-guides__content-block ul {
  list-style: disc inside;
  padding-left: 20px;
  margin-top: 20px;
  color: #555555;
}

.page-game-guides__content-block ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  max-height: 400px; /* Constrain height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-game-guides__tip-card {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-game-guides__tip-card:hover {
  transform: translateY(-5px);
}

.page-game-guides__tip-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-game-guides__tip-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__tip-card p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 0;
}

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

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

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

.page-game-guides__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-game-guides__faq-toggle {
  font-size: 28px;
  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: 30px;
  height: 30px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #eaf7fc; /* Lighter primary for active question */
  border-color: var(--primary-color);
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.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 25px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 32px;
  }
  .page-game-guides__main-title {
    font-size: 40px;
  }
  .page-game-guides__description {
    font-size: 18px;
  }
}

@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-image img {
    border-radius: 8px;
  }

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

  .page-game-guides__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-game-guides__cta-button--bottom {
    margin-top: 30px;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-game-guides__sub-title {
    font-size: 24px;
    margin-top: 30px;
  }

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

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

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

  .page-game-guides__card-title {
    font-size: 20px;
    margin: 15px 15px 8px;
  }

  .page-game-guides__card-text {
    font-size: 14px;
    margin: 0 15px 15px;
  }

  .page-game-guides__btn-secondary {
    padding: 8px 20px;
    font-size: 14px;
    margin: 0 15px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-game-guides__content-image {
    max-height: 250px;
    margin-bottom: 20px;
  }

  .page-game-guides__content-block ul {
    padding-left: 15px;
  }

  .page-game-guides__content-block ul li {
    font-size: 15px;
  }

  .page-game-guides__tip-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__tip-card {
    padding: 20px;
  }

  .page-game-guides__tip-image {
    height: 150px;
  }

  .page-game-guides__tip-title {
    font-size: 18px;
  }

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

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

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

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

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all images are responsive */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-guides__container, 
  .page-game-guides__section, 
  .page-game-guides__card, 
  .page-game-guides__content-block, 
  .page-game-guides__tip-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__main-title {
    font-size: 28px;
  }
  .page-game-guides__section-title {
    font-size: 24px;
  }
  .page-game-guides__sub-title {
    font-size: 20px;
  }
  .page-game-guides__cta-button {
    font-size: 16px;
    padding: 10px 25px;
  }
  .page-game-guides__hero-image {
    margin-bottom: 20px;
  }
  .page-game-guides__hero-image img {
    border-radius: 4px;
  }
  .page-game-guides__card-image {
    height: 150px;
  }
  .page-game-guides__tip-image {
    height: 120px;
  }
}