/* 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); /* Ensure content is not hidden by fixed header */
}

.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;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  padding: 20px;
  z-index: 1;
}

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

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Primary gold color */
  color: #000080; /* Dark blue text for contrast */
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #000080; /* Dark blue for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold underline */
  border-radius: 2px;
}

.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

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

.page-blog__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #000080; /* Dark blue for article titles */
  min-height: 70px; /* Ensure consistent title height */
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FFD700; /* Gold for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-blog__read-more:hover {
  color: #000080; /* Dark blue on hover */
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-blog__cta-section--gold-bg {
  background-color: #FFD700; /* Gold background */
  color: #000080; /* Dark blue text */
}

.page-blog__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #000080; /* Dark blue title */
}

.page-blog__cta-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #000080; /* Dark blue button */
  color: #FFD700; /* Gold text */
  padding: 18px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button:hover {
  background-color: #1a1a90;
  transform: translateY(-3px);
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #f4f4f4;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-blog__category-card {
  display: block;
  background-color: #ffffff;
  color: #000080;
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.page-blog__category-card:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #000080;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog__newsletter-section {
  padding: 80px 0;
  background-color: #000080; /* Dark blue background */
  color: #ffffff;
  text-align: center;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #e0e0e0;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
}

.page-blog__newsletter-input::placeholder {
  color: #999999;
}

.page-blog__newsletter-button {
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text */
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }

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

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

  .page-blog__cta-title {
    font-size: 2.5em;
  }

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

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 15px;
  }

  .page-blog__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-card {
    margin-bottom: 20px;
  }

  .page-blog__article-image {
    height: 200px;
  }

  .page-blog__article-title {
    font-size: 1.3em;
    min-height: auto;
  }

  .page-blog__article-excerpt {
    font-size: 0.9em;
  }

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

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

  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }

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

  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__newsletter-input,
  .page-blog__newsletter-button {
    width: 100%;
  }

  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }

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

  .page-blog__hero-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }

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

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

/* Ensure content area images are at least 200px wide for all selectors */
.page-blog .page-blog__article-image,
.page-blog .page-blog__hero-image {
  min-width: 200px;
  min-height: 200px;
}