/* style/blog.css */

/* Base styles for the blog page content */
.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); /* Account for fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Ensure hero section has a minimum height */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.page-blog__hero-content {
  color: #FFFFFF; /* Light text on darkened hero image */
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login color for emphasis */
}

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

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-blog__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.page-blog__btn--primary {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Primary color for text */
  border: 2px solid #FCBC45;
}

.page-blog__btn--primary:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

.page-blog__btn--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-blog__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-blog__articles-section {
  padding: 60px 20px;
  background-color: #FFFFFF; /* Secondary color for section background */
}

.page-blog__articles-container,
.page-blog__cta-container,
.page-blog__newsletter-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__article-card {
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 250px; /* 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.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45; /* Login color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

.page-blog__cta-section {
  background-color: #000000; /* Primary color for CTA background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__cta-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-blog__cta-container {
  position: relative;
  z-index: 2;
}

.page-blog__cta-content {
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Login color */
}

.page-blog__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-blog__btn--cta {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Primary color */
  padding: 15px 35px;
  font-size: 1.1em;
  border: 2px solid #FCBC45;
}

.page-blog__btn--cta:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

.page-blog__newsletter-section {
  padding: 60px 20px;
  background-color: #f0f0f0;
  text-align: center;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.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: 12px 20px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-blog__btn--submit {
  background-color: #000000; /* Primary color */
  color: #FFFFFF;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-blog__btn--submit:hover {
  background-color: #333333;
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 300px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__newsletter-input, .page-blog__btn--submit {
    width: 100%;
  }
  .page-blog__articles-section, .page-blog__cta-section, .page-blog__newsletter-section {
    padding: 40px 15px;
  }
  /* Ensure all content images do not 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__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
}