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

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

.page-blog__hero-section {
  position: relative;
  color: #FFFFFF;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  overflow: hidden; /* For image */
  background-color: #000000; /* Fallback for hero section background */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 400px; /* Ensure image covers enough area */
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

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

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

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

.page-blog__button--register {
  background-color: #FCBC45; /* Login color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--register:hover {
  background-color: #e0a73d;
  transform: translateY(-2px);
}

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

.page-blog__button--explore:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 60px;
  padding-top: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 20px auto 0;
}

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

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

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

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  /* Ensure images are at least 200px */
  min-width: 200px;
  min-height: 200px;
}

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

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

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

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

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

.page-blog__button--read-more {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.9em;
  border: none;
  align-self: flex-start;
}

.page-blog__button--read-more:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-blog__deep-content {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-blog__deep-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
}

.page-blog__sub-title {
  font-size: 2.2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 25px;
  position: relative;
}

.page-blog__sub-title::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: #FCBC45;
  position: absolute;
  left: 0;
  top: -10px;
}

.page-blog__content-figure {
  margin: 40px 0;
  text-align: center;
}

.page-blog__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  /* Ensure images are at least 200px */
  min-width: 200px;
  min-height: 200px;
}

.page-blog__content-caption {
  font-style: italic;
  font-size: 0.95em;
  color: #666666;
  margin-top: 15px;
}

.page-blog__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-blog__list-item {
  margin-bottom: 10px;
}

.page-blog__list-item strong {
  color: #000000;
}

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

.page-blog__cta-content {
  max-width: 900px;
}

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

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

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

.page-blog__button--sign-up {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--sign-up:hover {
  background-color: #e0a73d;
  transform: translateY(-2px);
}

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

.page-blog__button--download:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-section {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-container {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 280px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__sub-title {
    font-size: 1.8em;
  }
  .page-blog__deep-content p,
  .page-blog__list {
    font-size: 1em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-actions {
    flex-direction: column;
  }
  /* Mobile content image constraint */
  .page-blog__hero-image,
  .page-blog__post-image,
  .page-blog__content-image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure content area images are not too small on mobile */
  .page-blog__post-image,
  .page-blog__content-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__sub-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}