/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f8f8f8;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  color: #333333;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

/* CTA Buttons */
.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid #26A9E0;
}

.page-blog__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

.page-blog__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand color text */
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #1e87c2;
}

.page-blog__btn-large {
  font-size: 1.1em;
  padding: 18px 35px;
}

/* Content Area */
.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-top: -30px; /* Overlap with hero slightly for visual flow */
  position: relative;
  z-index: 2;
}

.page-blog__section-intro,
.page-blog__article-section,
.page-blog__conclusion-section,
.page-blog__faq-section {
  margin-bottom: 50px;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-blog__article-heading {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: left;
}

.page-blog__section-text {
  font-size: 1.05em;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__article-image-container {
  margin: 30px 0;
  text-align: center;
}

.page-blog__article-image,
.page-blog__step-image {
  width: 100%;
  max-width: 800px; /* Max width for content images */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__benefit-list,
.page-blog__problem-list,
.page-blog__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__benefit-item,
.page-blog__problem-item,
.page-blog__tips-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__benefit-item:hover,
.page-blog__problem-item:hover,
.page-blog__tips-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__benefit-title,
.page-blog__problem-title,
.page-blog__tips-item strong {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog__benefit-description,
.page-blog__problem-description,
.page-blog__tips-item {
  font-size: 1em;
  color: #555555;
}

/* Step-by-step guide */
.page-blog__step-by-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

.page-blog__step-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__step-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__step-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-blog__step-list li {
  margin-bottom: 8px;
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
}

.page-blog__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #000000;
  background-color: #eaf7ff; /* Lighter brand color background */
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #26A9E0;
  color: #FFFFFF;
  border-bottom-color: #26A9E0;
}

.page-blog__faq-question:hover {
  background-color: #d8edf7;
}

.page-blog__faq-item[open] .page-blog__faq-question:hover {
  background-color: #1e87c2;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  color: #FFFFFF;
}

.page-blog__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    max-width: 700px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-blog__description {
    font-size: 1em;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__btn-large {
    padding: 15px 25px;
    font-size: 1.05em;
  }

  .page-blog__content-area {
    padding: 20px 15px;
    margin-top: -20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-blog__article-heading {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-blog__section-intro,
  .page-blog__article-section,
  .page-blog__conclusion-section,
  .page-blog__faq-section {
    margin-bottom: 30px;
  }

  .page-blog__article-image,
  .page-blog__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__benefit-item,
  .page-blog__problem-item,
  .page-blog__tips-item,
  .page-blog__step-item {
    padding: 15px;
  }

  .page-blog__benefit-title,
  .page-blog__problem-title,
  .page-blog__tips-item strong {
    font-size: 1.2em;
  }

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

  .page-blog__faq-answer {
    padding: 10px 20px;
  }

  .page-blog__faq-toggle {
    font-size: 1.3em;
  }

  .page-blog__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual padding */
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

  .page-blog__content-area {
    padding: 15px 10px;
  }

  .page-blog__main-title {
    font-size: clamp(1.3em, 7vw, 2em);
  }

  .page-blog__section-title {
    font-size: 1.6em;
  }

  .page-blog__article-heading {
    font-size: 1.3em;
  }
}

/* Ensure no CSS filters on images */
.page-blog img {
  filter: none;
}