/* ============================================================
   India Pharma Expo — Blog
   .bl-*  blog listing (blogs.html) and blog posts (blog/*.html)
   Builds on news.css (.nd-hero, .nd-container, .nd-body, .nd-btn ...)
   ============================================================ */

/* ---------- Listing page ---------- */
.bl-intro {
   font-family: 'Inter', sans-serif;
   font-size: 17px;
   line-height: 1.7;
   color: rgba(255, 255, 255, 0.78);
   max-width: 720px;
   margin: 0;
}

.bl-grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 28px;
}

.bl-card {
   display: flex;
   flex-direction: column;
   min-width: 0;
   background: #ffffff;
   border: 1px solid rgba(12, 26, 46, 0.07);
   border-radius: 14px;
   overflow: hidden;
   box-shadow: 0 8px 22px rgba(12, 26, 46, 0.07);
   transition: transform .35s ease, box-shadow .35s ease;
}

.bl-card:hover {
   transform: translateY(-6px);
   box-shadow: 0 20px 40px rgba(12, 26, 46, 0.14);
}

.bl-card-media {
   display: block;
   aspect-ratio: 3 / 2;
   overflow: hidden;
   background: linear-gradient(135deg, #0c2a4d 0%, #0070fa 100%);
}

.bl-card-media img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   transition: transform .6s ease;
}

.bl-card:hover .bl-card-media img {
   transform: scale(1.05);
}

.bl-card-body {
   display: flex;
   flex-direction: column;
   flex: 1;
   padding: 20px 22px 22px;
}

.bl-card-meta {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 8px 14px;
   font-family: 'Inter', sans-serif;
   font-size: 13px;
   color: #6b7a8c;
   margin-bottom: 12px;
}

.bl-card-cat {
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: #04734f;
   background: rgba(1, 168, 111, 0.08);
   border: 1px solid rgba(1, 168, 111, 0.22);
   padding: 5px 12px;
   border-radius: 999px;
}

.bl-card-title {
   font-family: 'Cairo', sans-serif;
   font-size: 19px;
   font-weight: 700;
   line-height: 1.4;
   margin: 0 0 10px;
}

.bl-card-title a {
   color: #0c1a2e;
   text-decoration: none;
   transition: color .25s ease;
}

.bl-card-title a:hover,
.bl-card:hover .bl-card-title a {
   color: #0070fa;
}

.bl-card-excerpt {
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
   font-family: 'Inter', sans-serif;
   font-size: 15px;
   line-height: 1.65;
   color: #38465a;
   margin: 0 0 18px;
}

.bl-card-foot {
   margin-top: auto;
   padding-top: 16px;
   border-top: 1px solid #e3eaf2;
}

.bl-card-more {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-family: 'Inter', sans-serif;
   font-size: 14px;
   font-weight: 600;
   color: #0070fa;
   text-decoration: none;
}

.bl-card-more svg {
   width: 16px;
   height: 16px;
   flex-shrink: 0;
   transition: transform .25s ease;
}

.bl-card-more:hover {
   color: #0c1a2e;
}

.bl-card-more:hover svg {
   transform: translateX(4px);
}

/* ---------- Post page ---------- */
.nd-content .bl-standfirst {
   font-size: 19px;
   line-height: 1.65;
   font-weight: 500;
   color: #0c1a2e;
   padding-left: 18px;
   border-left: 4px solid #2bbde6;
   margin-bottom: 1.6em;
}

.nd-content .bl-facts {
   border-radius: 12px;
   overflow: hidden;
   border-style: hidden;
   box-shadow: 0 0 0 1px #dde6f0;
}

.nd-content .bl-facts th {
   width: 34%;
   background: #f3f8fd;
   font-weight: 600;
   color: #0c1a2e;
   vertical-align: top;
}

.bl-glance {
   list-style: none;
   margin: 0 0 22px;
   padding: 0;
   display: grid;
   gap: 14px;
   font-family: 'Inter', sans-serif;
   font-size: 15px;
   line-height: 1.5;
   color: #0c1a2e;
}

.bl-glance span {
   display: block;
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: #6b7a8c;
   margin-bottom: 3px;
}

.bl-aside-actions {
   display: grid;
   gap: 10px;
}

.bl-aside-actions .nd-btn {
   justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
   .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 575.98px) {
   .bl-intro { font-size: 15px; }
   .bl-grid { grid-template-columns: minmax(0, 1fr); }
   .bl-card-title { font-size: 18px; }
   .nd-content .bl-standfirst { font-size: 17px; }
   .nd-content .bl-facts th { width: 40%; }
}

@media (prefers-reduced-motion: reduce) {
   .bl-card,
   .bl-card-media img,
   .bl-card-more svg { transition: none; }
}
