.page-blog {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #FFFFFF; /* Ensure page background matches body */
}

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 80px 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text for button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e0a53b;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555555;
}

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

.page-blog__benefit-card {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.page-blog__benefit-description {
  color: #666666;
  font-size: 0.95em;
}

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
}

.page-blog__button--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Dark text */
}

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

.page-blog__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* White text */
  border: 1px solid #000000;
  margin-left: 15px;
}

.page-blog__button--secondary:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-blog__featured-articles-section,
.page-blog__latest-articles-section,
.page-blog__cta-section,
.page-blog__about-jilipg-section {
  padding: 60px 0;
}

.page-blog__article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__article-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-blog__article-card--featured {
  flex-direction: row;
}

.page-blog__article-card--featured .page-blog__article-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-blog__article-card--featured .page-blog__article-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

.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 {
  color: #555555;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

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

.page-blog__cta-section {
  background-color: #000000; /* Main color */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

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

.page-blog__about-jilipg-section {
  background-color: #F8F8F8;
  padding: 60px 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-card--featured {
    flex-direction: column;
  }
  .page-blog__article-card--featured .page-blog__article-image,
  .page-blog__article-card--featured .page-blog__article-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-content {
    padding: 30px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-intro {
    font-size: 0.95em;
  }
  .page-blog__benefits-grid,
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.5em;
  }
  .page-blog__article-excerpt {
    font-size: 0.9em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button--secondary {
    margin-left: 0;
  }
  /* Content area images must not cause horizontal scroll */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    min-height: 400px; /* Ensure hero image is not too small on mobile */
  }
  .page-blog__article-card--featured .page-blog__article-image {
    height: auto; /* Allow auto height for featured images on mobile */
  }
  .page-blog__article-image {
    height: auto; /* Allow auto height for all article images on mobile */
  }
  /* Specific overrides for image sizing to ensure min-width 200px is not violated by other rules */
  .page-blog__hero-image, .page-blog__article-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-content {
    padding: 20px;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}