.page-blog {
  color: #333333; /* Default text color for light body background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Constrain hero container width */
  margin: 0 auto;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 20px;
  box-sizing: border-box;
}

.page-blog__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 900px;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #F0F0F0;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  font-size: 1.1em;
}

.page-blog__button--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-blog__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-blog__about-section,
.page-blog__benefits-section,
.page-blog__featured-articles,
.page-blog__latest-posts,
.page-blog__categories-section,
.page-blog__cta-section,
.page-blog__faq-section {
  padding: 80px 0;
}

.page-blog__about-section {
  background-color: #F8F8F8;
}

.page-blog__text-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444444;
  text-align: justify;
}

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

.page-blog__benefit-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__benefit-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
  object-fit: cover;
}

.page-blog__benefit-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 15px;
}

.page-blog__benefit-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.page-blog__article-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__article-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FCBC45;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #e0a53b;
}

.page-blog__latest-posts {
  background-color: #F8F8F8;
}

.page-blog__posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__post-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.page-blog__post-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

.page-blog__post-content {
  padding: 25px;
  flex-grow: 1;
}

.page-blog__post-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FCBC45;
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #777777;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.page-blog__category-card:hover {
  background-color: #333333;
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-blog__category-description {
  font-size: 0.9em;
  color: #E0E0E0;
  line-height: 1.5;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  text-align: center;
  padding: 100px 20px;
}

.page-blog__cta-title {
  font-size: 3em;
  color: #FFFFFF;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-blog__faq-section {
  background-color: #FFFFFF;
}

.page-blog__faq-item {
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.page-blog__faq-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.page-blog__faq-question {
  font-size: 1.3em;
  color: #000000;
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FDFDFD;
}

.page-blog__faq-question::after {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  color: #FCBC45;
  transition: transform 0.3s ease;
}

.page-blog__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #555555;
  padding: 0 25px 20px 25px;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-blog__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }

  .page-blog__hero-description {
    font-size: 1.1em;
  }

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

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }

  .page-blog__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-blog__button {
    width: 80%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

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

  .page-blog__post-item {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__post-image {
    width: 100%;
    height: 250px;
    min-width: 200px; /* Ensure mobile images are not too small */
    min-height: 200px;
  }

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

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-description {
    font-size: 1em;
  }

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

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

  /* Content area images must not cause horizontal scroll */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }

  .page-blog__hero-description {
    font-size: 0.9em;
  }

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

  .page-blog__cta-title {
    font-size: 1.8em;
  }
}