/* style/blog-w33win-code-guide.css */

/* Global styles for this page scope */
.page-blog-w33win-code-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background */
  padding-top: 10px; /* Small top padding for the first section in main */
}

/* Ensure all links within the content are styled for dark background */
.page-blog-w33win-code-guide a {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog-w33win-code-guide a:hover {
  color: #2AD16F; /* Lighter green on hover */
  text-decoration: underline;
}

/* Highlighted keywords */
.page-blog-w33win-code-guide .highlight {
  color: #F2C14E; /* Gold color for highlights */
  font-weight: bold;
}

/* Section styling */
.page-blog-w33win-code-guide__section {
  padding: 40px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-blog-w33win-code-guide__section:last-of-type {
  border-bottom: none;
}

.page-blog-w33win-code-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-blog-w33win-code-guide__hero-section {
  display: flex;
  flex-direction: column; /* Stacks image then content */
  align-items: center;
  text-align: center;
  padding: 0;
  margin-bottom: 20px;
  background-color: #08160F; /* Ensure background matches body */
}

.page-blog-w33win-code-guide__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #08160F; /* Fallback background */
}

.page-blog-w33win-code-guide__hero-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: cover;
  display: block;
}

.page-blog-w33win-code-guide__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  background-color: #11271B; /* Card BG for content block */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E; /* Border */
  margin-top: 20px; /* Small gap after image */
}

/* Titles */
.page-blog-w33win-code-guide__section-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.page-blog-w33win-code-guide__sub-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Gold for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Paragraphs */
.page-blog-w33win-code-guide__paragraph {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #F2FFF6;
}

/* Lists */
.page-blog-w33win-code-guide__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-blog-w33win-code-guide__list-item {
  margin-bottom: 10px;
  color: #F2FFF6;
}

/* Images within content */
.page-blog-w33win-code-guide__image-wrapper {
  margin: 30px auto;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
}

.page-blog-w33win-code-guide__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* CTA Buttons */
.page-blog-w33win-code-guide__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.page-blog-w33win-code-guide__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-w33win-code-guide__cta-button--secondary {
  background: none;
  border: 2px solid #11A84E; /* Main color as border */
  color: #11A84E;
}

.page-blog-w33win-code-guide__cta-button--secondary:hover {
  background: rgba(17, 168, 78, 0.1); /* Slight background on hover */
  color: #2AD16F;
  border-color: #2AD16F;
}

.page-blog-w33win-code-guide__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* FAQ Section */
.page-blog-w33win-code-guide__faq-list {
  margin-top: 30px;
}

.page-blog-w33win-code-guide__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-blog-w33win-code-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green for question background */
  color: #F2FFF6;
  position: relative;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-blog-w33win-code-guide__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog-w33win-code-guide__faq-question:hover {
  background-color: #11A84E; /* Main color on hover */
}

.page-blog-w33win-code-guide__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-blog-w33win-code-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #F2C14E; /* Gold for toggle icon */
}

.page-blog-w33win-code-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color for answer */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-blog-w33win-code-guide__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin in answer */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog-w33win-code-guide__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-blog-w33win-code-guide__section-title {
    font-size: 2rem;
  }
  .page-blog-w33win-code-guide__sub-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-blog-w33win-code-guide {
    padding-top: 10px !important; /* Small top padding, body handles header-offset */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-w33win-code-guide__hero-section {
    min-height: auto;
  }

  .page-blog-w33win-code-guide__hero-image-wrapper {
    max-height: 300px; /* Adjust image height for mobile */
  }

  .page-blog-w33win-code-guide__hero-content {
    padding: 30px 15px;
    margin-top: 15px; /* Adjust gap for mobile */
  }

  .page-blog-w33win-code-guide__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-blog-w33win-code-guide__lead-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-blog-w33win-code-guide__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-blog-w33win-code-guide__sub-title {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-blog-w33win-code-guide__paragraph {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .page-blog-w33win-code-guide__list {
    margin-left: 15px;
    margin-bottom: 15px;
  }

  .page-blog-w33win-code-guide__list-item {
    font-size: 1rem;
    margin-bottom: 8px;
  }

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

  .page-blog-w33win-code-guide__section,
  .page-blog-w33win-code-guide__container,
  .page-blog-w33win-code-guide__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Responsive buttons */
  .page-blog-w33win-code-guide__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: 1rem;
    margin-top: 15px;
  }

  .page-blog-w33win-code-guide__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-blog-w33win-code-guide__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }
}