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

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

.page-blog__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for text readability */
}

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

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

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #E0B700; /* Accent color for button */
  color: #0A1931;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #ffc800;
}

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

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

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

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

.page-blog__article-card {
  background-color: #f8f8f8;
  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;
}

.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;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #0A1931;
}

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

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  min-height: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limit to 5 lines */
  -webkit-box-orient: vertical;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #0A1931;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #E0B700;
  color: #0A1931;
}

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

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

.page-blog__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__category-title {
  font-size: 1.8em;
  color: #0A1931;
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #666666;
}

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #0A1931;
  color: #ffffff;
}

.page-blog__cta-section .page-blog__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-blog__cta-content {
  flex: 1;
  padding-right: 40px;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #E0B700;
  color: #0A1931;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  margin-right: 15px;
}

.page-blog__cta-button:hover {
  background-color: #ffc800;
}

.page-blog__cta-button--secondary {
  background-color: #ffffff;
  color: #0A1931;
}

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

.page-blog__cta-image {
  flex-shrink: 0;
  width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it's treated as a block element */
}

.page-blog__about-y8 {
  padding: 60px 0;
  background-color: #ffffff;
  text-align: center;
}

.page-blog__text-content {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 30px;
  text-align: left;
}

.page-blog__about-button {
  display: inline-block;
  background-color: #0A1931;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__about-button:hover {
  background-color: #E0B700;
  color: #0A1931;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__cta-content {
    padding-right: 20px;
  }
  .page-blog__cta-image {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__cta-section .page-blog__container {
    flex-direction: column-reverse; /* Image above content on mobile */
  }
  .page-blog__cta-content {
    padding-right: 0;
    padding-top: 30px;
    text-align: center;
  }
  .page-blog__cta-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .page-blog__cta-button {
    margin-right: 10px;
    margin-bottom: 10px; /* Add space between buttons */
  }
  .page-blog__cta-button--secondary {
    margin-right: 0;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  /* Ensure content area images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-button {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-blog__cta-button:last-child {
    margin-bottom: 0;
  }
}