/* file: /assets/css/insight.css */

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(11, 55, 101, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(6, 29, 53, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(6, 29, 53, 0.12);
  border-color: rgba(19, 133, 139, 0.16);
}

.blog-img {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: #eef4f8;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-img img,
.blog-card:focus-within .blog-img img {
  transform: scale(1.04);
}

.blog-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.blog-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(36, 122, 75, 0.08);
  color: #247a4b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-date {
  color: #728193;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.blog-title {
  margin: 0.4rem 0 0;
  color: #0b3765;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 800;
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-title a:hover,
.blog-title a:focus {
  color: #13858b;
}

.blog-excerpt {
  color: #5b6b7a;
  font-size: 0.96rem;
  line-height: 1.7;
  margin-top: 0.85rem;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #13858b;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.read-btn:hover,
.read-btn:focus {
  color: #0b3765;
  transform: translateX(2px);
}

#blog .alert {
  background: #ffffff;
  border-color: rgba(11, 55, 101, 0.08) !important;
  color: #5b6b7a;
}

@media (max-width: 767.98px) {
  .blog-card {
    border-radius: 22px;
  }

  .blog-img {
    height: 210px;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-title {
    font-size: 1.08rem;
  }

  .blog-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}

@media (max-width: 575.98px) {
  .blog-img {
    height: 200px;
  }

  .blog-meta {
    font-size: 0.74rem;
    padding: 0.32rem 0.65rem;
  }

  .blog-date {
    font-size: 0.8rem;
  }

  .blog-title {
    font-size: 1rem;
  }

  .blog-excerpt {
    font-size: 0.9rem;
  }
}