/* Blog Root & Blog Single templates */

.blog-hero {
  background: #fafafa;
  padding: 3rem 0;
}

.blog-hero .breadcrumbs {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.blog-hero .breadcrumbs .selected {
  color: #000;
}

.blog-hero h1 {
  font-size: 42px;
  color: #111;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 18px;
  color: #333;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.blog-hero-image {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  max-height: 380px;
}

/* Blog cards */

.blog-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  height: 415px;
  background-color: #005890;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.blog-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0, 88, 144, 0) 0%, #005890 70%);
}

.blog-tag {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 0 0 -8px 20px;
  background: #fff;
  color: #252525;
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 120px;
}

.blog-card-body {
  position: relative;
  z-index: 2;
  padding: 34px 20px 20px;
}

.blog-card-body h5 {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.blog-card-body p {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-read-more {
  display: inline-block;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 5px;
  padding: 8px 20px;
  font-size: 16px;
}

.blog-read-more:hover {
  background: #fff;
  color: #005890;
}

/* Sidebar */

.blog-sidebar-section {
  margin-bottom: 35px;
}

.blog-sidebar-heading {
  font-size: 24px;
  color: #111;
  margin-bottom: 20px;
}

.blog-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.blog-sidebar-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.blog-sidebar-item span {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: #111;
  line-height: 1.2;
}

.blog-sidebar-item em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: normal;
  opacity: 0.4;
  margin-bottom: 4px;
}

/* Blog single */

.blog-back-link {
  display: inline-block;
  font-size: 14px;
  color: #005890;
  margin-bottom: 1rem;
}

.blog-post-date {
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px;
}

.blog-post-header h1 {
  font-size: 42px;
  color: #111;
  margin-bottom: 12px;
}

.blog-post-excerpt {
  font-size: 18px;
  color: #333;
}

.blog-post-featured-image {
  width: 100%;
  border-radius: 5px;
  margin: 24px 0;
  object-fit: cover;
  max-height: 500px;
}

.blog-post-image-caption {
  font-size: 16px;
  color: #333;
  margin-bottom: 1rem;
}

.blog-post-body {
  font-size: 18px;
  color: #333;
  line-height: 1.3;
}

.blog-post-body h2,
.blog-post-body h3 {
  color: #005890;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-post-body p {
  margin-bottom: 1rem;
}

.blog-post-body img {
  max-width: 100%;
  border-radius: 5px;
}

/* Mobile */

@media screen and (max-width: 640px) {

  .blog-hero {
    padding: 2rem 0;
    text-align: center;
  }

  .blog-hero .breadcrumbs {
    font-size: 13px;
  }

  .blog-hero h1 {
    font-size: 28px;
    margin-bottom: 0.75rem;
  }

  .blog-hero p {
    font-size: 16px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-hero-image {
    margin-top: 1.5rem;
    max-height: 220px;
  }

  .blog-card {
    height: 320px;
  }

  .blog-card-body {
    padding: 24px 18px 18px;
  }

  .blog-card-body h5 {
    font-size: 18px;
  }

  .blog-card-body p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .blog-read-more {
    padding: 6px 16px;
    font-size: 14px;
  }

  .blog-sidebar-heading {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .blog-post-header h1 {
    font-size: 28px;
  }

  .blog-post-excerpt {
    font-size: 16px;
  }

  .blog-post-featured-image {
    max-height: 240px;
    margin: 16px 0;
  }

  .blog-post-body {
    font-size: 16px;
  }

}
