/* Base styles for page-game-guides */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: var(--background-color, #B71C1C); /* Fallback to Deep Red if var not set */
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
}

.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-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #FFF5E1; /* Text Main */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: #FFF5E1; /* Text Main */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: clamp(28px, 4.5vw, 50px); /* Responsive H1 font size */
}

.page-game-guides__description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
  background: #B71C1C; /* Background */
}

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

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 1000px;
  box-sizing: border-box;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
  width: auto;
  flex-grow: 1; /* Allow buttons to grow */
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-game-guides__btn-secondary {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  background-color: #B71C1C; /* Background */
}

/* Introduction Section */
.page-game-guides__introduction p {
  font-size: 17px;
  max-width: 900px;
  margin: 20px auto;
  color: #FFF5E1;
}

/* Game Type Section */
.page-game-guides__game-type-section {
  background-color: #D32F2F; /* Card BG */
  padding: 80px 0;
  border-bottom: 5px solid #F2B544;
}

.page-game-guides__game-type-section.page-game-guides__dark-section {
  background-color: #B71C1C; /* Background */
  border-bottom: 5px solid #F2B544;
}

.page-game-guides__game-type-section .page-game-guides__section-title {
  color: #FFF5E1;
}

.page-game-guides__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-game-guides__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-game-guides__content-grid--reverse .page-game-guides__image-block {
  order: 2;
}

.page-game-guides__content-grid--reverse .page-game-guides__text-block {
  order: 1;
}

.page-game-guides__text-block h3 {
  font-size: 26px;
  color: #FFCC66; /* Glow */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-game-guides__text-block p,
.page-game-guides__text-block li {
  font-size: 16px;
  color: #FFF5E1;
  margin-bottom: 10px;
}

.page-game-guides__text-block ul {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
}

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

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

/* Tips Section */
.page-game-guides__tips-section {
  background-color: #B71C1C; /* Background */
  padding: 80px 0;
}

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

.page-game-guides__tip-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border color */
}

.page-game-guides__tip-card h3 {
  font-size: 24px;
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
}

.page-game-guides__tip-card p {
  font-size: 16px;
  color: #FFF5E1;
  margin-bottom: 20px;
}

.page-game-guides__btn-text-link {
  display: inline-block;
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  border-bottom: 2px solid #F4D34D;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-game-guides__btn-text-link:hover {
  color: #FFCC66; /* Glow */
  border-color: #FFCC66;
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: #D32F2F; /* Card BG */
  padding: 80px 0;
}

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

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #B71C1C; /* Background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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-color: #7A0E0E; /* Deep Red */
}

.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Text Main */
}

.page-game-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFCC66; /* Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 25px 25px;
  background-color: #7A0E0E; /* Deep Red */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1; /* Text Main */
  font-size: 16px;
  text-align: left;
}

.page-game-guides__faq-answer p {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Dark background text color */
.page-game-guides__dark-bg {
  color: #FFF5E1; /* Text Main */
  background: #C91F17; /* Main color */
}

.page-game-guides__light-bg {
  color: #333333; /* Dark text */
  background: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 34px;
  }
  .page-game-guides__main-title {
    font-size: clamp(26px, 4vw, 45px);
  }
  .page-game-guides__description {
    font-size: 16px;
  }
  .page-game-guides__content-grid {
    gap: 30px;
  }
  .page-game-guides__text-block h3 {
    font-size: 24px;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-game-guides {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-game-guides__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-game-guides__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-game-guides__description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-game-guides__hero-image-wrapper {
    max-height: 400px;
  }
  .page-game-guides__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure image fits without cropping on smaller screens */
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-game-guides__game-type-section {
    padding: 50px 0;
  }
  .page-game-guides__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-game-guides__content-grid--reverse .page-game-guides__image-block {
    order: 1;
  }
  .page-game-guides__content-grid--reverse .page-game-guides__text-block {
    order: 2;
  }
  .page-game-guides__text-block h3 {
    font-size: 22px;
  }
  .page-game-guides__text-block p,
  .page-game-guides__text-block li {
    font-size: 15px;
  }
  .page-game-guides__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0;
  }
  .page-game-guides__tips-section {
    padding: 50px 0;
  }
  .page-game-guides__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-game-guides__tip-card {
    padding: 25px;
  }
  .page-game-guides__tip-card h3 {
    font-size: 20px;
  }
  .page-game-guides__tip-card p {
    font-size: 15px;
  }
  .page-game-guides__btn-text-link {
    font-size: 14px;
  }
  .page-game-guides__faq-section {
    padding: 50px 0;
  }
  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px 20px;
  }
  .page-game-guides__faq-qtext {
    font-size: 16px;
  }
  .page-game-guides__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 20px 20px;
  }
  .page-game-guides__faq-answer p {
    font-size: 15px;
  }
}