/* Blog page styles */

/* Use hero breadcrumb style on this page instead of the global breadcrumb strip */
.breadcrumb-container {
  display: none;
}

.blog-page-main {
  background: linear-gradient(180deg, #eceff3 0%, #e2e6eb 100%);
  min-height: auto;
  padding-bottom: 0;
  margin-bottom: 0;
}

.blog-listing .container {
  max-width: 87vw;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.blog-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../blogs/hero-blog.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 17, 33, 0.72), rgba(8, 23, 44, 0.38));
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.blog-hero-breadcrumb {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
}

.blog-hero-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.blog-listing {
  padding: 3rem 0 0;
  margin-bottom: 0;
}

.blog-page-main> :last-child {
  margin-bottom: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e1e7ef;
  box-shadow: 0 8px 24px rgba(17, 37, 63, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17, 37, 63, 0.16);
}

.blog-card-image-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f4f7;
}

.blog-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image-wrap img {
  transform: none;
}

.blog-card-body {
  padding: 1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #1f2937;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.blog-date {
  font-size: 0.75rem;
  color: #0b567d;
  background: #d7edf8;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.blog-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
}

.blog-card-title a {
  color: #1f8460;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #15694a;
}

.blog-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5563;
}

.blog-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1fb56e;
  font-weight: 600;
  text-decoration: none;
}

.blog-read-more::before {
  content: '->';
  font-size: 0.9rem;
}

.blog-read-more:hover {
  color: #16935a;
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .blog-hero {
    min-height: 240px;
  }

  .blog-hero-content {
    padding: 1rem;
  }

  .blog-hero-breadcrumb {
    font-size: 0.95rem;
    gap: 0.4rem;
  }

  .blog-listing {
    padding-top: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .blog-card-body {
    padding: 0.9rem;
  }

  .blog-card-title {
    font-size: 1.24rem;
  }

  .blog-card-excerpt {
    font-size: 0.92rem;
  }
}