.page-blog {
  color: #333333; /* Dark text 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 */
  background-color: #000000; /* Dark background for hero content area */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 20px;
}

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

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #FFFFFF;
  max-width: 800px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(252, 188, 69, 0.4);
}

.page-blog__hero-cta-button:hover {
  background-color: #FFD700;
  transform: translateY(-3px);
}

.page-blog__latest-articles-section,
.page-blog__cta-section,
.page-blog__about-blog-section {
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-blog__latest-articles-section {
  background-color: #F5F5F5;
}

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

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

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
  border-radius: 2px;
}

.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: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

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

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

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

.page-blog__article-excerpt {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #333333;
  transform: translateX(5px);
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
}

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #E0E0E0;
  color: #333333;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
}

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

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 8px 25px rgba(252, 188, 69, 0.5);
}

.page-blog__cta-button:hover {
  background-color: #FFD700;
  transform: translateY(-5px);
}

.page-blog__about-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444444;
  text-align: justify;
}

.page-blog__about-content p {
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__hero-cta-button {
    font-size: 1.2em;
    padding: 12px 30px;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__article-title {
    font-size: 1.6em;
  }
  .page-blog__article-excerpt {
    font-size: 1em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
  .page-blog__cta-description {
    font-size: 1.2em;
  }
  .page-blog__cta-button {
    font-size: 1.3em;
    padding: 15px 40px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: var(--header-offset, 80px);
  }
  .page-blog__hero-content {
    position: static;
    transform: none;
    margin-top: -80px; /* Adjust to pull content up */
    background: rgba(0, 0, 0, 0.85); /* Darker background for readability */
    padding: 20px;
  }
  .page-blog__hero-image {
    height: 300px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-button {
    font-size: 1em;
    padding: 10px 25px;
  }
  .page-blog__latest-articles-section,
  .page-blog__cta-section,
  .page-blog__about-blog-section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__article-image {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__article-excerpt {
    font-size: 0.95em;
  }
  .page-blog__read-more-button {
    font-size: 0.9em;
    padding: 8px 20px;
  }
  .page-blog__pagination-link {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    font-size: 1.1em;
    padding: 12px 30px;
  }
  .page-blog__about-content {
    font-size: 1em;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__hero-cta-button {
    font-size: 0.9em;
    padding: 8px 20px;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
  .page-blog__cta-button {
    font-size: 1em;
    padding: 10px 25px;
  }
}