/* style/blog.css */
.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); /* Fixed header offset for desktop */
}

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 0;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Secondary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Secondary color for button */
  color: #1A237E; /* Primary color for button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #1A237E; /* Primary color for titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

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

.page-blog__featured-articles {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #1A237E; /* Primary color for button */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #3f47a6;
}

.page-blog__latest-updates {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

.page-blog__update-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__update-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__update-title {
  font-size: 1.4em;
  color: #1A237E;
  margin-bottom: 10px;
}

.page-blog__update-title a {
  color: #1A237E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__update-title a:hover {
  color: #FFD700;
}

.page-blog__update-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__view-details-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A237E;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__view-details-button:hover {
  background-color: #e5c100;
}

.page-blog__cta-section {
  background-color: #1A237E; /* Primary color for CTA background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__article-image {
    height: 350px;
  }
  .page-blog__update-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 250px;
  }
  .page-blog__update-card {
    flex-direction: column;
  }
  .page-blog__updates-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  /* Mobile content area image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Ensure images are not displayed smaller than 200px height */
    object-fit: cover; /* To prevent distortion if min-height changes aspect ratio */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 10px;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__update-image {
    height: auto; /* Let it scale down, min-height handles the floor */
    max-width: 100%;
  }
  .page-blog__update-card {
    height: auto;
  }
  .page-blog__update-content {
    padding: 15px;
  }
  .page-blog__update-title {
    font-size: 1.2em;
  }
  .page-blog__update-description {
    font-size: 0.85em;
  }
  .page-blog__view-details-button {
    padding: 8px 15px;
    font-size: 0.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
}