/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* White background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black overlay for text readability */
  border-radius: 8px;
}

.page-blog__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-blog__button--register {
  background-color: #FFFFFF; /* Custom color for Register */
  color: #000000;
}

.page-blog__button--register:hover {
  background-color: #e0e0e0;
}

.page-blog__button--login {
  background-color: #FCBC45; /* Custom color for Login */
  color: #000000;
}

.page-blog__button--login:hover {
  background-color: #e6a73a;
}

.page-blog__intro-section, .page-blog__featured-articles, .page-blog__join-us-cta {
  padding: 60px 20px;
}

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

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

.page-blog__sub-section-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

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

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

.page-blog__content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-blog__content-card .page-blog__card-title {
  font-size: 1.5em;
  color: #000000;
  padding: 20px 20px 10px;
  margin-bottom: 0;
}

.page-blog__content-card .page-blog__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-blog__card-link {
  display: block;
  padding: 15px 20px;
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Pushes link to the bottom */
}

.page-blog__card-link:hover {
  background-color: #333333;
}

.page-blog__cta-banner {
  background-color: #000000; /* Primary color for CTA banner */
  color: #FFFFFF;
  padding: 60px 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
}

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

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

.page-blog__button--primary {
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000;
}

.page-blog__button--primary:hover {
  background-color: #e6a73a;
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.page-blog__article-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image {
  width: 100%;
  height: 280px; /* Consistent height for article images */
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  background-color: #333333;
}

.page-blog__join-us-cta {
  background-color: #000000; /* Dark background for this CTA */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-blog__cta-text {
  max-width: 800px;
}

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

.page-blog__button--secondary {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__button--secondary:hover {
  background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__sub-section-title {
    font-size: 1.7em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
    padding: 30px 15px;
  }
  .page-blog__hero-content {
    padding: 20px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 280px; /* Limit button width on small screens */
  }
  .page-blog__intro-section, .page-blog__featured-articles, .page-blog__join-us-cta {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__sub-section-title {
    font-size: 1.5em;
  }
  .page-blog__content-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-banner {
    padding: 40px 20px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-title {
    font-size: 1.5em;
  }

  /* Mobile content area image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__sub-section-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
  }
}