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

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--dark-text-color);
  line-height: 1.6;
}

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

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

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

.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: 10px; /* Small top padding, header offset handled by body */
  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;
  width: 100%;
}

.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;
}

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

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark-text-color);
  margin-bottom: 20px;
}

.page-game-guides__description {
  font-size: 18px;
  line-height: 1.5;
  color: var(--dark-text-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-button-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  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: darken(var(--login-button-color), 10%); /* Placeholder for CSS preprocessor function */
  background: #d46c06; /* Manual darken for plain CSS */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-game-guides__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-game-guides__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--dark-text-color);
}

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

.page-game-guides__section-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--dark-text-color);
}

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

.page-game-guides__intro-section p {
  font-size: 17px;
  max-width: 900px;
  margin: 20px auto;
}

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

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

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

.page-game-guides__game-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--dark-text-color);
}

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

.page-game-guides__game-card .page-game-guides__card-title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-game-guides__game-card p {
  font-size: 15px;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-guides__strategy-content,
.page-game-guides__selection-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-game-guides__strategy-content img,
.page-game-guides__selection-content img {
  flex-shrink: 0;
  width: 50%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-game-guides__strategy-text,
.page-game-guides__selection-text {
  flex-grow: 1;
}

.page-game-guides__strategy-text h3,
.page-game-guides__selection-text h3 {
  font-size: 24px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--dark-text-color);
}

.page-game-guides__dark-bg .page-game-guides__strategy-text h3,
.page-game-guides__dark-bg .page-game-guides__selection-text h3 {
  color: var(--light-text-color);
}

.page-game-guides__strategy-text p,
.page-game-guides__selection-text p {
  font-size: 16px;
  margin-bottom: 15px;
}

.page-game-guides__selection-content img {
  order: 1; /* For right-aligned image */
}

.page-game-guides__selection-text {
  order: 2; /* For left-aligned text */
}

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

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color);
}

details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: #f5f5f5;
}

.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--dark-text-color);
}

.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--dark-text-color);
}

.page-game-guides__faq-answer p {
  font-size: 16px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-game-guides__strategy-content,
  .page-game-guides__selection-content {
    flex-direction: column;
    text-align: center;
  }
  .page-game-guides__strategy-content img,
  .page-game-guides__selection-content img {
    width: 80%;
    max-width: 600px;
    margin-bottom: 30px;
  }
  .page-game-guides__selection-content img {
    order: 0;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-game-guides__hero-image img {
    border-radius: 4px;
  }
  
  .page-game-guides__main-title {
    font-size: 28px;
  }

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

  .page-game-guides__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-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__section {
    padding: 60px 15px;
  }

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

  .page-game-guides__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-game-guides__game-card img {
    
  }
  
  .page-game-guides__game-card .page-game-guides__card-title {
    font-size: 20px;
  }

  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-game-guides__strategy-content img,
  .page-game-guides__selection-content img {
    width: 100%;
    max-width: 100%;
  }

  .page-game-guides__strategy-text h3,
  .page-game-guides__selection-text h3 {
    font-size: 20px;
  }

  .page-game-guides__faq-item summary.page-game-guides__faq-question { padding: 15px; }
  .page-game-guides__faq-qtext { font-size: 15px; }
  .page-game-guides__faq-answer { padding: 0 15px 15px; }

  /* Image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}