/* style/game-guides.css */
/* 
  Body padding-top is handled by shared.css for header offset.
  This page's top sections should only have a small decorative top padding.
*/
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Assuming default white body background */
}

/* --- Hero Section --- */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Custom text color */
}

.page-game-guides__lead-paragraph {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: #FFF5E1; /* Custom text color */
}

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

/* --- Buttons --- */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red text for contrast */
  border: 2px solid #F2B544; /* Custom border color */
  box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4); /* Gold glow effect */
}

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

.page-game-guides__btn-secondary {
  background-color: #FFF5E1; /* Custom text main for background */
  color: #C91F17; /* Main brand color for text */
  border: 2px solid #C91F17; /* Main brand color for border */
}

.page-game-guides__btn-secondary:hover {
  background-color: #F4D34D; /* Gold color on hover */
  color: #7A0E0E; /* Deep Red text */
  border-color: #F4D34D;
  transform: translateY(-2px);
}

.page-game-guides__btn-text {
  color: #C91F17; /* Main brand color for text links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #E53935; /* Auxiliary brand color on hover */
  text-decoration: underline;
}

.page-game-guides__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-game-guides__btn-glow {
  box-shadow: 0 0 20px #FFCC66; /* Glow effect */
}

/* --- General Section Styles --- */
.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(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #C91F17; /* Main brand color */
}

.page-game-guides__section-title--white {
  color: #FFF5E1; /* Custom text color for dark backgrounds */
}

.page-game-guides__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-game-guides__section-description--white {
  color: #FFF5E1; /* Custom text color for dark backgrounds */
}

.page-game-guides__introduction-section,
.page-game-guides__tips-strategy-section,
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333;
}

.page-game-guides__dark-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color */
}

.page-game-guides__deep-red-bg {
  background-color: #7A0E0E; /* Deep Red background */
  color: #FFF5E1; /* Custom text color */
  padding: 80px 0;
  text-align: center;
}

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

.page-game-guides__game-card {
  background-color: #D32F2F; /* Custom card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1; /* Custom text color for card */
  display: flex;
  flex-direction: column;
  text-align: left;
}

.page-game-guides__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-game-guides__card-title a {
  color: #FFF5E1; /* Custom text color for card title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
  color: #F4D34D; /* Gold color on hover */
  text-decoration: underline;
}

.page-game-guides__game-card p {
  font-size: 0.95em;
  margin: 0 20px 20px;
  flex-grow: 1; /* Make paragraphs take available space */
}

.page-game-guides__game-card .page-game-guides__btn-text {
  display: inline-block;
  margin: 0 20px 20px;
  align-self: flex-start;
  color: #F4D34D; /* Gold color for text links */
}

.page-game-guides__game-card .page-game-guides__btn-text:hover {
  color: #FFCC66; /* Glow color on hover */
}


/* --- Tips & Strategy Section --- */
.page-game-guides__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-game-guides__text-content {
  flex: 1;
  min-width: 300px;
}

.page-game-guides__image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-game-guides__responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.page-game-guides__list {
  list-style: disc inside;
  margin: 20px 0;
  padding-left: 20px;
}

.page-game-guides__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-game-guides__list strong {
  color: #C91F17; /* Main brand color for strong text */
}

/* --- Register Section --- */
.page-game-guides__register-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-game-guides__register-content .page-game-guides__text-block,
.page-game-guides__register-content .page-game-guides__image-block {
  flex: 1;
  min-width: 300px;
}

.page-game-guides__register-content .page-game-guides__text-block {
  text-align: left;
}

.page-game-guides__register-content .page-game-guides__image-block {
  text-align: center;
}

.page-game-guides__steps-list {
  list-style: decimal inside;
  margin: 20px 0 30px;
  padding-left: 0;
}

.page-game-guides__steps-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-game-guides__steps-list strong {
  color: #FFD86A; /* Custom gold color for emphasis */
}

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

.page-game-guides__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  color: #C91F17; /* Main brand color */
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  background-color: #f0f0f0;
  border-bottom: 1px solid #C91F17;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #E53935; /* Auxiliary brand color */
}

.page-game-guides__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-game-guides__faq-image {
  margin-top: 50px;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    max-width: 700px;
  }
  .page-game-guides__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding: 10px 0 40px;
  }

  .page-game-guides__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-game-guides__lead-paragraph {
    font-size: clamp(0.9em, 3vw, 1.1em);
    margin-bottom: 20px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons mobile responsive */
  .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; /* Add some padding for text */
    padding-right: 15px; /* Add some padding for text */
  }
  
  .page-game-guides__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__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

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

  .page-game-guides__introduction-section,
  .page-game-guides__game-type-section,
  .page-game-guides__tips-strategy-section,
  .page-game-guides__register-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-final-section {
    padding: 40px 0;
  }

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

  .page-game-guides__content-wrapper,
  .page-game-guides__register-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-guides__text-content,
  .page-game-guides__image-content,
  .page-game-guides__register-content .page-game-guides__text-block,
  .page-game-guides__register-content .page-game-guides__image-block {
    min-width: unset;
    width: 100%;
    padding: 0 15px; /* Add horizontal padding for content */
    box-sizing: border-box;
  }

  .page-game-guides__list,
  .page-game-guides__steps-list {
    padding-left: 0;
    margin-left: 0;
  }

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

  .page-game-guides__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  /* Mobile image responsive */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__image-content,
  .page-game-guides__register-content .page-game-guides__image-block,
  .page-game-guides__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific rule for hero image wrapper padding if needed */
  .page-game-guides__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  /* No video section on this page, but if there was: */
  .page-game-guides__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure minimum image size for content images */
.page-game-guides__card-image,
.page-game-guides__responsive-image {
  min-width: 200px;
  min-height: 200px;
}