/* style/game-guides.css */

/* Custom properties for colors */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --background-color: #0D0E12; /* This is the body background */
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --dark-text-color: #333333; /* For light backgrounds */
  --light-text-color: #FFF3E6; /* For dark backgrounds */
}

/* Base styles for the page content */
.page-game-guides {
  background-color: var(--background-color); /* Matches body background */
  color: var(--text-main-color); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
}

.page-game-guides__section:last-of-type {
  border-bottom: none;
}

.page-game-guides__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-game-guides h1,
.page-game-guides h2,
.page-game-guides h3,
.page-game-guides h4,
.page-game-guides h5,
.page-game-guides h6 {
  color: var(--primary-color);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-game-guides h1 {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  color: var(--text-main-color);
  font-weight: 800;
  margin-bottom: 20px;
}

.page-game-guides h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--primary-color);
  font-weight: 700;
}

.page-game-guides h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text-main-color);
  font-weight: 600;
}

.page-game-guides p {
  margin-bottom: 20px;
  color: var(--light-text-color);
}

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

.page-game-guides a:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Image base styles */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  /* Ensure minimum size for content images if not hero */
  min-width: 200px;
  min-height: 200px;
}

/* 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: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color);
}

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

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

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

.page-game-guides__hero-description {
  font-size: 18px;
  color: var(--light-text-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* CTA Buttons */
.page-game-guides__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-game-guides__cta-buttons--centered {
  margin-top: 40px;
}

.page-game-guides__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast on orange gradient */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-game-guides__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
}

.page-game-guides__btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.page-game-guides__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-game-guides__btn-tertiary {
  background: var(--deep-orange);
  color: #ffffff;
  border: none;
}

.page-game-guides__btn-tertiary:hover {
  background: var(--primary-color);
}

/* Introduction Section */
.page-game-guides__introduction-section p {
  font-size: 17px;
  text-align: justify;
}

/* Game Categories Section */
.page-game-guides__game-categories-section {
  background-color: var(--card-bg);
  padding-bottom: 80px;
}

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

.page-game-guides__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-game-guides__card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
  min-height: 200px; /* Ensure minimum size */
}

.page-game-guides__card-title {
  font-size: 22px;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

.page-game-guides__card-title a {
  color: var(--text-main-color);
  text-decoration: none;
}

.page-game-guides__card-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-game-guides__card p {
  font-size: 15px;
  color: var(--light-text-color);
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Allow paragraph to take up available space */
}

/* Detailed Guides Section */
.page-game-guides__detailed-guides-section {
  padding-top: 80px;
}

.page-game-guides__guide-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__guide-item img {
  margin: 20px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  min-height: 200px; /* Ensure minimum size */
}

.page-game-guides__guide-subtitle {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-game-guides__guide-item p {
  font-size: 16px;
  text-align: justify;
}

/* Benefits Section */
.page-game-guides__benefits-section {
  background-color: var(--card-bg);
}

.page-game-guides__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-game-guides__list li {
  background-color: #2a2c33; /* Slightly lighter than card-bg for contrast */
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: var(--light-text-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__list li strong {
  color: var(--secondary-color);
}

/* Get Started Section */
.page-game-guides__get-started-section {
  text-align: center;
}

.page-game-guides__get-started-section img {
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
  min-height: 200px; /* Ensure minimum size */
}

/* FAQ Section */
.page-game-guides__faq-section {
  background-color: var(--card-bg);
  padding-bottom: 80px;
}

details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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;
  color: var(--text-main-color);
  font-size: 17px;
  font-weight: 600;
}

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: rgba(var(--primary-color-rgb, 255, 140, 26), 0.1); /* Lighter hover for dark background */
}

.page-game-guides__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-game-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 25px 25px;
  background: #1f2128; /* Slightly lighter than card-bg */
  border-radius: 0 0 8px 8px;
  color: var(--light-text-color);
  font-size: 16px;
}

.page-game-guides__faq-answer p {
  margin-bottom: 0;
}

.page-game-guides__faq-section img {
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
  min-height: 200px; /* Ensure minimum size */
}

/* Blog Section */
.page-game-guides__blog-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-game-guides__blog-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__blog-card img {
  width: 100%;
  height: 220px; /* Consistent height for blog cards */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--border-color);
  min-height: 200px; /* Ensure minimum size */
}

.page-game-guides__blog-card .page-game-guides__card-title {
  font-size: 20px;
  margin: 20px 20px 10px 20px;
}

.page-game-guides__blog-card .page-game-guides__card-title a {
  color: var(--text-main-color);
}

.page-game-guides__blog-excerpt {
  font-size: 15px;
  color: var(--light-text-color);
  padding: 0 20px;
  margin-bottom: 15px;
}

.page-game-guides__blog-date {
  display: block;
  font-size: 14px;
  color: var(--primary-color);
  padding: 0 20px 20px;
  font-weight: 500;
}

.page-game-guides__view-all {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-image img {
    border-radius: 10px;
  }
  .page-game-guides__card img {
    
  }
  .page-game-guides__blog-card img {
    
  }
  .page-game-guides__section-title {
    font-size: 32px;
  }
  .page-game-guides h1 {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-game-guides__hero-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 0 15px;
  }
  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Fixed top padding for mobile */
  }
  .page-game-guides__hero-image {
    margin-bottom: 20px;
  }
  .page-game-guides__hero-image img {
    border-radius: 8px;
  }
  .page-game-guides__hero-content h1 {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-game-guides__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container to prevent overflow */
  }
  .page-game-guides__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-game-guides__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-game-guides h3 {
    font-size: 20px;
  }
  .page-game-guides p, .page-game-guides li, .page-game-guides__blog-excerpt {
    font-size: 15px;
  }
  .page-game-guides__grid {
    grid-template-columns: 1fr;
  }
  .page-game-guides__card {
    margin: 0 15px; /* Adjust card margin for mobile */
  }
  .page-game-guides__card img {
    
    min-
  }
  .page-game-guides__blog-card img {
    
    min-
  }
  .page-game-guides__card-title {
    font-size: 18px;
  }
  .page-game-guides__guide-item {
    padding: 20px;
    margin: 0 15px 30px 15px;
  }
  .page-game-guides__guide-item img,
  .page-game-guides__get-started-section img,
  .page-game-guides__faq-section img {
    min-height: 200px !important; /* Enforce min-height */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  details.page-game-guides__faq-item {
    margin: 0 15px 15px 15px;
  }
  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-game-guides__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }
  .page-game-guides__blog-grid {
    grid-template-columns: 1fr;
    margin: 0 15px;
  }
  .page-game-guides__blog-card {
    margin-bottom: 20px;
  }
  .page-game-guides__blog-card img {
    
    min-
  }
  .page-game-guides__view-all {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-game-guides__hero-content h1 {
    font-size: clamp(22px, 7vw, 30px);
  }
  .page-game-guides__hero-description {
    font-size: 15px;
  }
  .page-game-guides__cta-buttons {
    padding: 0 10px;
  }
  .page-game-guides__section-title {
    font-size: 24px;
  }
  .page-game-guides__card {
    margin: 0 10px;
  }
  .page-game-guides__card img {
    
    min-
  }
  .page-game-guides__blog-card img {
    
    min-
  }
  .page-game-guides__guide-item {
    margin: 0 10px 25px 10px;
    padding: 15px;
  }
  details.page-game-guides__faq-item {
    margin: 0 10px 10px 10px;
  }
  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 12px 15px;
    font-size: 15px;
  }
  .page-game-guides__faq-toggle {
    font-size: 20px;
    width: 20px;
  }
  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
}