.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background);
  line-height: 1.6;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

.page-blog__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
}

.page-blog__btn-secondary:hover {
  background-color: var(--deep-green);
  color: #F2FFF6;
  border-color: var(--deep-green);
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--background);
  overflow: hidden;
}

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

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

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-blog__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__cta-buttons--center {
  margin-top: 30px;
}

/* Latest Blog Posts Section */
.page-blog__latest-posts-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-blog__post-card {
  background-color: var(--background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--divider);
}

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

.page-blog__post-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-image {
  transform: scale(1.05);
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: var(--gold);
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-blog__post-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: var(--background);
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item a {
  display: block;
  padding: 12px 25px;
  background-color: var(--card-bg);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 1px solid var(--divider);
}

.page-blog__category-item a:hover {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.3);
}

/* Featured Articles Section */
.page-blog__featured-articles-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-blog__featured-card {
  background-color: var(--background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--divider);
}

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

.page-blog__featured-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-blog__featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__featured-card:hover .page-blog__featured-image {
  transform: scale(1.05);
}

.page-blog__featured-content {
  padding: 20px;
}

.page-blog__featured-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__featured-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__featured-title a:hover {
  color: var(--gold);
}

.page-blog__featured-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Why Read Section */
.page-blog__why-read-section {
  padding: 80px 0;
  background-color: var(--background);
}

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

.page-blog__benefit-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider);
}

.page-blog__benefit-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-blog__benefit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-blog__benefit-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Call to Action Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green);
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title,
.page-blog__cta-description {
  color: #F2FFF6;
}

.page-blog__cta-description {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: var(--background);
  border: 1px solid var(--divider);
  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: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: var(--deep-green);
  color: #F2FFF6;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2rem;
  }

  .page-blog__hero-content {
    padding: 0 25px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-blog__hero-description {
    font-size: 1.05rem;
  }

  .page-blog__posts-grid,
  .page-blog__featured-grid,
  .page-blog__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .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: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__featured-articles-section,
  .page-blog__why-read-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 50px 0;
  }

  .page-blog__post-image-wrapper {
    height: 180px;
  }

  .page-blog__post-title {
    font-size: 1.2rem;
  }

  .page-blog__featured-image-wrapper {
    height: 160px;
  }

  .page-blog__featured-title {
    font-size: 1.1rem;
  }

  .page-blog__benefit-icon {
    width: 80px;
  }

  .page-blog__benefit-title {
    font-size: 1.3rem;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 18px 20px;
  }

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

  /* Mobile specific overrides for images and containers */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__featured-articles-section,
  .page-blog__why-read-section,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__post-card,
  .page-blog__featured-card,
  .page-blog__benefit-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__hero-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5rem;
  }

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

  .page-blog__posts-grid,
  .page-blog__featured-grid,
  .page-blog__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-content,
  .page-blog__featured-content,
  .page-blog__benefit-item,
  .page-blog__faq-question,
  .page-blog__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-blog__post-image-wrapper {
    height: 160px;
  }

  .page-blog__featured-image-wrapper {
    height: 140px;
  }

  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item a {
    width: 100%;
    max-width: 280px;
  }
}