.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFF1E8; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #FFF1E8; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__dark-section {
  background-color: #140C0C; /* Background */
  color: #FFF1E8;
  padding: 60px 0;
}

.page-blog__dark-bg {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8;
}

.page-blog__medium-bg {
  background-color: #E53030; /* Auxiliary color for contrast */
  color: #FFF1E8;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for aesthetic */
  margin-bottom: 40px;
}

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

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3em); /* Responsive H1 */
  color: #F3C54D; /* Gold */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #FFF1E8; /* Text Main */
  border: none;
  margin: 0 10px;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D; /* Gold border */
  margin: 0 10px;
}

.page-blog__btn-secondary:hover {
  background-color: #F3C54D;
  color: #140C0C; /* Background for contrast */
  transform: translateY(-2px);
}

/* Featured Articles Section */
.page-blog__featured-articles-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__featured-grid,
.page-blog__latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__article-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #6A1E1E; /* Border */
}

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

.page-blog__article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.page-blog__card-title {
  font-size: 1.4em;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: #FFF1E8;
  opacity: 0.7;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  color: #FFB04A;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.page-blog__read-more-link i {
  margin-left: 8px;
  font-size: 0.9em;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-blog__category-card {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
  color: #FFF1E8;
  border: 1px solid #6A1E1E; /* Border */
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__category-thumbnail {
  width: 100%;
  height: 180px; /* Fixed height for category images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #FFF1E8; /* Text Main */
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__pagination-cta {
  text-align: center;
  margin-top: 50px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to allow text to stand out */
}

.page-blog__cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__cta-title {
  font-size: clamp(2em, 4.5vw, 3.5em); /* Responsive H2 */
  color: #F3C54D; /* Gold */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 15px;
  }

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

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

  .page-blog__hero-title {
    font-size: clamp(2em, 4vw, 2.5em);
  }

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

  .page-blog__featured-grid,
  .page-blog__latest-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-blog__article-thumbnail {
    height: 180px;
  }

  .page-blog__card-title {
    font-size: 1.2em;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-blog__category-thumbnail {
    height: 150px;
  }

  .page-blog__cta-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }

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

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container,
  .page-blog__hero-content,
  .page-blog__cta-content,
  .page-blog__cta-button-group {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__cta-button-group {
    flex-direction: column !important;
    gap: 10px !important;
  }

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

  .page-blog__section-description {
    font-size: 0.95em;
  }

  .page-blog__featured-articles-section,
  .page-blog__categories-section,
  .page-blog__latest-articles-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__featured-grid,
  .page-blog__latest-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__article-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px; /* Ensure min height for content images */
    object-fit: cover;
  }

  .page-blog__card-title {
    font-size: 1.1em;
  }

  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__category-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px; /* Ensure min height for content images */
    object-fit: cover;
  }

  .page-blog__cta-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

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

  /* Ensure all images are responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-section,
  .page-blog__featured-articles-section,
  .page-blog__categories-section,
  .page-blog__latest-articles-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}