.page-blog {
  color: #333333; /* Dark text for light body background */
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-offset, 120px) 20px 60px; /* Use header offset for top padding */
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-blog__hero-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

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

.page-blog__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-size: 1em;
  cursor: pointer;
}

.page-blog__btn--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
  box-shadow: 0 4px 10px rgba(252, 188, 69, 0.4);
}

.page-blog__btn--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(252, 188, 69, 0.6);
}

.page-blog__btn--secondary {
  background-color: #000000;
  color: #FFFFFF; /* Register button color */
  border: 2px solid #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-blog__btn--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.page-blog__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 1200px; /* constrain image width */
}

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

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

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

.page-blog__featured-articles,
.page-blog__categories,
.page-blog__deep-dive,
.page-blog__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

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

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

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

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

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

.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: #666666;
  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;
}

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

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-blog__category-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

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

.page-blog__category-text {
  color: #666666;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.page-blog__deep-dive {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 60px 40px;
  margin-top: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__deep-dive .page-blog__section-title {
  text-align: left;
  margin-bottom: 30px;
}

.page-blog__deep-dive .page-blog__section-description {
  text-align: left;
  margin: 0 0 30px;
}

.page-blog__sub-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__paragraph {
  font-size: 1em;
  color: #444444;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__cta-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-blog__cta-content {
  max-width: 700px;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-blog__btn--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 15px 35px;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(252, 188, 69, 0.5);
}

.page-blog__btn--cta:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 188, 69, 0.7);
}

.page-blog__cta-image {
  width: 100%;
  max-width: 600px; /* Constrain CTA image width */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.4em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__article-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: var(--header-offset, 120px) 15px 40px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-description {
    font-size: 1em;
  }
  .page-blog__deep-dive {
    padding: 40px 20px;
  }
  .page-blog__sub-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }

  /* Critical: prevent content overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image {
    height: 200px; /* Adjust height for mobile */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__article-image {
    height: 180px;
  }
}