/* style/blog.css */
.page-blog {
  color: #ffffff; /* Body background #1a1a1a is dark, so text is light */
}

.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: #1a1a1a; /* Dark background for hero */
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-blog__description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-blog__introduction-section,
.page-blog__latest-posts,
.page-blog__cta-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
}

.page-blog__categories-section,
.page-blog__why-read,
.page-blog__faq-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-blog__section-description {
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-blog__category-grid,
.page-blog__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__category-card,
.page-blog__post-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-blog__introduction-section .page-blog__category-card,
.page-blog__latest-posts .page-blog__post-card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-blog__card-image,
.page-blog__post-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__category-card .page-blog__card-title,
.page-blog__post-card .page-blog__post-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  color: inherit;
}

.page-blog__category-card .page-blog__card-text,
.page-blog__post-card .page-blog__post-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: inherit;
}

.page-blog__category-card .page-blog__btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.page-blog__category-card .page-blog__card-title a,
.page-blog__post-card .page-blog__post-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__category-card .page-blog__card-title a:hover,
.page-blog__post-card .page-blog__post-title a:hover {
  color: #26A9E0;
}

.page-blog__post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__post-meta {
  font-size: 0.875rem;
  color: #999999;
  margin-bottom: 10px;
}

.page-blog__read-more {
  display: inline-block;
  margin-top: auto;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

.page-blog__view-all {
  text-align: center;
  margin-top: 20px;
}

.page-blog__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-blog__advantage-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-blog__advantage-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  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;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__category-grid,
  .page-blog__post-grid,
  .page-blog__advantage-list {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__latest-posts,
  .page-blog__why-read,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 15px;
  }

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

  .page-blog__section-title {
    font-size: 2rem;
  }

  .page-blog__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsiveness */
  .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-image-wrapper,
  .page-blog__category-card,
  .page-blog__post-card,
  .page-blog__advantage-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

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

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-blog__section-title {
    font-size: 1.8rem;
  }

  .page-blog__category-grid,
  .page-blog__post-grid,
  .page-blog__advantage-list {
    grid-template-columns: 1fr;
  }

  .page-blog__category-card,
  .page-blog__post-card {
    margin: 0 auto;
  }

  .page-blog__category-card .page-blog__card-image,
  .page-blog__post-card .page-blog__post-image {
    height: 180px;
  }
}