/* style/blog.css */
.page-blog {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF; /* Light background as per instructions */
  color: #333333; /* Dark text for contrast on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px; /* Adjusted padding */
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for hero */
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 30px;
}

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

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

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-blog__button--primary {
  background-color: #FFFFFF; /* Register color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog__button--primary:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  transform: translateY(-2px);
}

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

.page-blog__button--secondary:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2; /* Subtle background image */
  overflow: hidden;
}

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

/* Section Titles and Intros */
.page-blog__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  color: #000000; /* Dark text for titles on light background */
}

.page-blog__section-intro {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Article Grid Section */
.page-blog__articles-section {
  padding: 60px 0;
  background-color: #F8F8F8; /* Slightly off-white background for contrast */
}

.page-blog__article-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 8px 25px 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 12px 35px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-blog__article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image-wrapper img {
  transform: scale(1.05);
}

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

.page-blog__article-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-blog__article-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start; /* Align button to the start */
}

.page-blog__read-more-button:hover {
  background-color: #FCBC45;
  transform: translateY(-2px);
}

/* Featured Content Section */
.page-blog__featured-content {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-blog__content-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}

.page-blog__content-row:last-child {
  margin-bottom: 0;
}

.page-blog__content-row--reverse {
  flex-direction: row-reverse;
}

.page-blog__content-text {
  flex: 1;
}

.page-blog__content-subtitle {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000000;
}

.page-blog__content-text p {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 30px;
}

.page-blog__content-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__cta-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

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

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-blog__button--cta:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

.page-blog__cta-section img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtle background image */
  z-index: 0;
}


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

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

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

  .page-blog__content-row {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__content-row--reverse {
    flex-direction: column; /* Reset to column for reverse */
  }

  .page-blog__content-text,
  .page-blog__content-image-wrapper {
    width: 100%;
  }

  .page-blog__content-image-wrapper {
    margin-top: 30px;
  }

  .page-blog__content-row--reverse .page-blog__content-image-wrapper {
    margin-bottom: 30px;
    margin-top: 0;
  }
}

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

  .page-blog__hero-title {
    font-size: 2.2em;
  }

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

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 300px; /* Limit width on small screens */
  }

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

  .page-blog__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-blog__articles-section {
    padding: 40px 0;
  }

  .page-blog__article-image-wrapper {
    height: 180px; /* Adjust card image height */
  }

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

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

  .page-blog__read-more-button {
    padding: 8px 15px;
    font-size: 0.85em;
  }

  .page-blog__featured-content {
    padding: 60px 0;
  }

  .page-blog__content-subtitle {
    font-size: 1.6em;
  }

  .page-blog__content-text p {
    font-size: 1em;
  }

  .page-blog__cta-section {
    padding: 60px 0;
  }

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

  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-blog__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Ensure content area images are not too small */
  .page-blog img { /* This selects all images within .page-blog */
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image img,
  .page-blog__article-image-wrapper img,
  .page-blog__content-image-wrapper img,
  .page-blog__cta-section img {
    /* These specific image selectors already have appropriate sizes or object-fit */
    /* Ensure they respect max-width: 100% on mobile */
    max-width: 100%;
    height: auto;
  }

}

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