/* style/blog-32win11-beginner-guide.css */

/* Base styles for the page content */
.page-blog-32win11-beginner-guide {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* Ensure consistency with body background */
  line-height: 1.6;
}

/* Custom color variables from the palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Section styling */
.page-blog-32win11-beginner-guide__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-blog-32win11-beginner-guide__section:last-of-type {
  border-bottom: none;
}

.page-blog-32win11-beginner-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Headings */
.page-blog-32win11-beginner-guide__heading {
  font-size: 2.5rem;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog-32win11-beginner-guide__game-title {
  font-size: 1.5rem;
  color: var(--text-main-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Paragraphs */
.page-blog-32win11-beginner-guide__paragraph {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

/* Hero Section */
.page-blog-32win11-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for first section */
  overflow: hidden;
  background-color: var(--deep-green-color); /* Fallback if image fails */
}

.page-blog-32win11-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog-32win11-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-blog-32win11-beginner-guide__hero-content {
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 2;
  max-width: 900px;
}

.page-blog-32win11-beginner-guide__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog-32win11-beginner-guide__hero-description {
  font-size: 1.2rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-32win11-beginner-guide__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-blog-32win11-beginner-guide__btn-primary,
.page-blog-32win11-beginner-guide__btn-secondary,
.page-blog-32win11-beginner-guide__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  box-sizing: border-box;
}

.page-blog-32win11-beginner-guide__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-32win11-beginner-guide__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-32win11-beginner-guide__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-blog-32win11-beginner-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-blog-32win11-beginner-guide__btn-tertiary {
  background-color: var(--deep-green-color);
  color: var(--gold-color);
  border: 1px solid var(--gold-color);
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-blog-32win11-beginner-guide__btn-tertiary:hover {
  background-color: var(--gold-color);
  color: var(--deep-green-color);
}

/* Content Layouts */
.page-blog-32win11-beginner-guide__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-blog-32win11-beginner-guide__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-blog-32win11-beginner-guide__text-content {
  flex: 1;
}

.page-blog-32win11-beginner-guide__image-wrapper {
  flex: 1;
  min-width: 300px; /* Minimum width for image wrapper */
}

.page-blog-32win11-beginner-guide__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* All images minimum size */
}

/* Game Grid */
.page-blog-32win11-beginner-guide__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog-32win11-beginner-guide__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog-32win11-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog-32win11-beginner-guide__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-blog-32win11-beginner-guide__game-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-blog-32win11-beginner-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-32win11-beginner-guide__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-blog-32win11-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog-32win11-beginner-guide__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-blog-32win11-beginner-guide__faq-question:hover {
  background-color: var(--primary-color);
}

.page-blog-32win11-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-blog-32win11-beginner-guide__faq-item[open] .page-blog-32win11-beginner-guide__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-blog-32win11-beginner-guide__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: var(--text-secondary-color);
}

.page-blog-32win11-beginner-guide__faq-answer .page-blog-32win11-beginner-guide__paragraph {
  margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-blog-32win11-beginner-guide__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-blog-32win11-beginner-guide__content-wrapper--reverse {
    flex-direction: column; /* Still column, reverse order not as impactful on mobile */
  }

  .page-blog-32win11-beginner-guide__text-content,
  .page-blog-32win11-beginner-guide__image-wrapper {
    width: 100%;
    flex: none;
  }

  .page-blog-32win11-beginner-guide__image-wrapper {
    order: -1; /* Image first on mobile for reversed sections */
    margin-bottom: 30px;
  }

  .page-blog-32win11-beginner-guide__content-wrapper--reverse .page-blog-32win11-beginner-guide__image-wrapper {
    order: -1; /* Keep image first for reversed layout on mobile */
  }

  .page-blog-32win11-beginner-guide__hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-blog-32win11-beginner-guide__hero-description {
    font-size: 1rem;
  }

  .page-blog-32win11-beginner-guide__heading {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-blog-32win11-beginner-guide__section {
    padding: 40px 0;
  }

  .page-blog-32win11-beginner-guide__container {
    padding: 0 15px; /* Smaller padding on mobile */
  }

  .page-blog-32win11-beginner-guide__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  /* Responsive images */
  .page-blog-32win11-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-32win11-beginner-guide__section,
  .page-blog-32win11-beginner-guide__card,
  .page-blog-32win11-beginner-guide__container,
  .page-blog-32win11-beginner-guide__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog-32win11-beginner-guide__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  /* Responsive buttons */
  .page-blog-32win11-beginner-guide__btn-primary,
  .page-blog-32win11-beginner-guide__btn-secondary,
  .page-blog-32win11-beginner-guide__btn-tertiary,
  .page-blog-32win11-beginner-guide a[class*="button"],
  .page-blog-32win11-beginner-guide 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;
    padding-right: 15px;
  }

  .page-blog-32win11-beginner-guide__hero-cta,
  .page-blog-32win11-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-32win11-beginner-guide__game-grid {
    grid-template-columns: 1fr;
  }

  .page-blog-32win11-beginner-guide__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-blog-32win11-beginner-guide__faq-answer {
    padding: 0 20px 15px;
    font-size: 1rem;
  }

  /* Ensure all image containers don't cause overflow */
  .page-blog-32win11-beginner-guide__image-wrapper,
  .page-blog-32win11-beginner-guide__game-card {
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* No CSS filter on images */
.page-blog-32win11-beginner-guide img {
  filter: none !important;
}

/* Content area images minimal size */
.page-blog-32win11-beginner-guide__content-area img,
.page-blog-32win11-beginner-guide__text-content img,
.page-blog-32win11-beginner-guide__image-wrapper img,
.page-blog-32win11-beginner-guide__game-image {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure game card images are not smaller than 200px */
.page-blog-32win11-beginner-guide__game-image {
  min-width: 200px;
  min-height: 200px;
}