.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background is white */
}

.page-blog__deep-red-bg {
  background-color: #7A0E0E; /* Deep Red background from palette */
  color: #FFF5E1; /* Text Main color for this dark background */
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__text-main {
  color: #FFF5E1; /* Text Main color from palette */
}

.page-blog__text-primary {
  color: #C91F17; /* Primary color for titles on light background */
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-blog__hero-image-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-blog__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #333333; /* Dark text for golden button */
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__articles-section {
  padding: 80px 0;
}

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

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}

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

.page-blog__article-card {
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #FFF5E1; /* Text Main color for card content */
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  overflow: hidden;
}

.page-blog__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #FFCC66; /* Glow color for meta info */
  margin-bottom: 10px;
}

.page-blog__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #FFF5E1; /* Text Main color for title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #F4D34D; /* Gold color on hover */
}

.page-blog__article-excerpt {
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F4D34D; /* Gold color for read more link */
  text-decoration: none;
  border-bottom: 2px solid #F4D34D;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFCC66; /* Glow color on hover */
  border-color: #FFCC66;
}

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

.page-blog__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  text-decoration: none;
  color: #C91F17; /* Primary color */
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
  background-color: #C91F17; /* Primary color */
  color: #ffffff;
  border-color: #C91F17;
}

.page-blog__cta-section {
  padding: 80px 20px;
}

.page-blog__cta-section .page-blog__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.page-blog__cta-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-blog__cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  background-color: transparent;
  color: #F4D34D; /* Gold color for text */
  border: 2px solid #F4D34D; /* Gold border */
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: #F4D34D; /* Gold background on hover */
  color: #333333; /* Dark text for golden button */
  transform: translateY(-2px);
}

.page-blog__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-blog__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

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

  .page-blog__cta-section .page-blog__container {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__cta-content {
    max-width: 100%;
  }

  .page-blog__cta-buttons {
    justify-content: center;
  }

  .page-blog__cta-image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

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

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-blog__articles-section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__article-image-wrapper {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  /* Image responsive rules */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-image-container,
  .page-blog__article-image-wrapper,
  .page-blog__cta-image-wrapper,
  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content area padding for mobile */
  .page-blog__hero-section,
  .page-blog__articles-section,
  .page-blog__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all images in content areas are at least 200px and responsive */
.page-blog__article-image, .page-blog__cta-image, .page-blog__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific rule for content area images to ensure they are not too small if selected by a selector */
.page-blog .page-blog__article-image, 
.page-blog .page-blog__cta-image, 
.page-blog .page-blog__hero-image {
  width: 100%; /* Ensure they take full width of parent */
  height: auto; /* Maintain aspect ratio */
  max-width: 100%; /* Prevent overflow */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

/* Ensure images are not affected by CSS filters */
.page-blog img {
  filter: none !important;
}