@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --grad: linear-gradient(to right, #199e82, #206785);
    --teal: #199e82;
    --blue: #206785;
    --dark: #0f2a35;
    --soft: #f4fafa;
    --card-bg: #ffffff;
    --border: #e0f0ee;
    --text-muted: #6b8c99;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.blog-page {
    font-family: 'Inter', sans-serif;
    /* background: var(--soft); */
    color: var(--dark);
}
/* ── HERO SECTION ───────────────────────────────────── */
.blog-hero {
    background: #f7fcfb;
    padding: 52px 20px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      url('/frontend/assets/img/images/backgroundfinal.png');
    pointer-events: none;
}

.blog-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
    background: rgba(25,158,130,.08);
    border: 1px solid rgba(25,158,130,.2);
    padding: 5px 14px;
    border-radius: 100px;
    position: relative;
}

.blog-hero-eyebrow span.dot {
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(1.4); }
}

.blog-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #0d1f26;
    line-height: 1.2;
    max-width: 100%;        /* changed from 560px */
    margin: 0 auto 14px;
    position: relative;
    letter-spacing: -0.03em;
}

.blog-hero h1 em {
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    color: #6b8c99;
    font-size: 15px;
    font-weight: 400;
    max-width: 100%;        /* changed from 400px */
    margin: 0 auto 24px;
    line-height: 1.65;
    position: relative;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    max-width: 100%;        /* changed from 400px */
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(25,158,130,.22);
    border-radius: 50px;
    padding: 5px 5px 5px 18px;
    gap: 10px;
    position: relative;
    transition: border-color .3s, box-shadow .3s;
    box-shadow: 0 2px 20px rgba(25,158,130,.08);
}

.hero-search-bar:focus-within {
    border-color: rgba(25,158,130,.5);
    box-shadow: 0 4px 24px rgba(25,158,130,.14);
}

.hero-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #0d1f26;
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
}

.hero-search-bar input::placeholder { color: #aac4cc; }

.hero-search-btn {
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 8px 18px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    font-family: 'Inter', sans-serif;
    letter-spacing: .2px;
    box-shadow: 0 2px 12px rgba(25,158,130,.3);
}

.hero-search-btn:hover {
    opacity: .88;
    transform: scale(1.03);
    box-shadow: 0 4px 18px rgba(25,158,130,.4);
}

/* ── STATS STRIP ────────────────────────────────────── */
.stats-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 22px 20px;
}


.stats-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp .5s forwards;
    padding: 10px 0;      /* added so items breathe on mobile 2-col layout */
}

.stat-item:nth-child(1) { animation-delay: .1s; }
.stat-item:nth-child(2) { animation-delay: .2s; }
.stat-item:nth-child(3) { animation-delay: .3s; }
.stat-item:nth-child(4) { animation-delay: .4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: .3px;
}

/* ── FEATURED ARTICLE ───────────────────────────────── */
.featured-section {
 margin: 60px auto 0;
    padding: 0;  
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.featured-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(32,103,133,.07);
    transition: box-shadow .3s, transform .3s;
}

.featured-card:hover {
    box-shadow: 0 16px 50px rgba(32,103,133,.14);
    transform: translateY(-4px);
}
.featured-card:hover .featured-img img {
    transform: scale(1.08); /* slightly smoother zoom */
}
.featured-img {
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.featured-img img {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    height: 100%;
        transition: transform 0.6s ease;
    will-change: transform; 
}


.featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25,158,130,.35), rgba(32,103,133,.45));
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--grad);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
}

.featured-content {
    padding: 31px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tag-pill {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(25,158,130,.1);
    border: 1px solid rgba(25,158,130,.2);
    padding: 4px 12px;
    border-radius: 100px;
}

.meta-date {
    font-size: .78rem;
    font-weight: 400;
    color: var(--text-muted);
}

.featured-content h2 {
    color: var(--dark);
    margin-bottom: 6px;
}

.featured-content p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 10px;
    text-align: justify;
    font-size: 15px;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad);
    color: #fff;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    align-self: flex-start;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(25,158,130,.25);
    letter-spacing: .1px;
}

.read-btn:hover {
    opacity: .9;
    transform: translateX(3px);
    box-shadow: 0 6px 24px rgba(25,158,130,.35);
    color: white !important;
}

.read-btn svg { transition: transform .2s; }
.read-btn:hover svg { transform: translateX(3px); }

@media (max-width: 767px) {
    .featured-img {
        min-height: 220px;
    }

    .featured-content {
        padding: 28px 24px;
    }
}

/* ── BLOG GRID ──────────────────────────────────────── */
.blog-grid-section {
      margin: 60px auto 80px;
    padding: 0;  
}

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

/* ── BLOG CARD ──────────────────────────────────────── */
.blog-card {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.22,.68,0,1.2), box-shadow .4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal .6s forwards;
    width: 100%;  
}

.blog-card:nth-child(1) { animation-delay: .1s; }
.blog-card:nth-child(2) { animation-delay: .22s; }
.blog-card:nth-child(3) { animation-delay: .34s; }

@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(32,103,133,.14);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
    z-index: 2;
}

.blog-card:hover::before { transform: scaleX(1); }

.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.blog-card:hover .card-img-wrap img { transform: scale(1.07); }

.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,42,53,.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}

.blog-card:hover .card-img-wrap::after { opacity: 1; }

.card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--grad);
    padding: 4px 12px;
    border-radius: 100px;
}

.card-body {
    padding: 26px 26px 28px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-date {
    font-size: .74rem;
    font-weight: 400;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-read-time {
    font-size: .74rem;
    font-weight: 400;
    color: var(--text-muted);
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

.card-body h3 a {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color .2s;
}

.blog-card:hover .card-body h3 a { color: var(--teal); }

.card-body p {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.card-footer:last-child{
    border-radius: 9px;
}
.author-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-name {
    font-size: .76rem;
    font-weight: 600;
    color: var(--dark);
}

.card-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--soft);
    border: 1px solid #87c7bf;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s, border-color .25s, transform .25s;
    color: var(--teal);
    text-decoration: none;
}

.blog-card:hover .card-arrow {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    transform: rotate(-45deg);
}

/* ── NEWSLETTER CTA ─────────────────────────────────── */
.newsletter-section {
    background: #f7fcfb;
    padding: 72px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 140% at -5% 50%, rgba(25,158,130,.15) 0%, transparent 60%),
        radial-gradient(ellipse 45% 120% at 105% 50%, rgba(32,103,133,.13) 0%, transparent 60%),
        radial-gradient(ellipse 40% 70% at 50% 110%, rgba(25,158,130,.08) 0%, transparent 55%);
    pointer-events: none;
}

.newsletter-inner {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.newsletter-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0d1f26;
    margin-bottom: 12px;
    line-height: 1.2;
}

.newsletter-section h2 em {
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-section p {
    color: #6b8c99;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.65;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(25,158,130,.22);
    border-radius: 50px;
    padding: 12px 20px;
    color: #0d1f26;
    font-size: .88rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .3s, box-shadow .3s;
    box-shadow: 0 2px 16px rgba(25,158,130,.07);
}

.newsletter-form input::placeholder { color: #aac4cc; }

.newsletter-form input:focus {
    border-color: rgba(25,158,130,.5);
    box-shadow: 0 4px 20px rgba(25,158,130,.13);
}

.newsletter-form button {
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
    letter-spacing: .1px;
    box-shadow: 0 2px 14px rgba(25,158,130,.28);
}

.newsletter-form button:hover {
    opacity: .88;
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(25,158,130,.4);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-img { min-height: 260px; }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .stats-inner { gap: 24px; }
    .featured-content { padding: 28px 24px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; text-align: center; }
}

/* ================================================================
   blog-details.css  –  scoped under .bd-* to avoid conflicts
   with blog.css. CSS variables reuse the same tokens.
   ================================================================ */

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.bd-breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
}

.bd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: .76rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.bd-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--teal);
    text-decoration: none;
    transition: opacity .2s;
}

.bd-breadcrumb a:hover { opacity: .75; }

.bd-chevron { color: var(--border); flex-shrink: 0; }

.bd-bc-current {
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* ── SHARED CONTAINER ───────────────────────────────────────── */
.bd-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── ARTICLE HEADER ─────────────────────────────────────────── */
.bd-header {
    background: #f7fcfb;
    padding: 71px 20px 71px;
    position: relative;
    overflow: hidden;
}

.bd-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/frontend/assets/img/blog/breadcrumb.png') no-repeat center center;
    background-size: cover; /* ✅ makes it cover */
    z-index: 1;
}
.bd-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 61%); /* ✅ clean dark overlay */
    z-index: 2;
}


.bd-header-inner { position: relative;  z-index: 3;}

.bd-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: .78rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.bd-header-meta .tag-pill { margin: 0; }

.bd-dot-sep { color: var(--border); }

.bd-read-time,
.bd-pub-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bd-title {
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 18px;
}

.bd-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 28px;
}

.bd-author-strip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bd-author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.bd-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bd-author-name {
    font-size: .83rem;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
}

.bd-author-role {
    font-size: .74rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

/* ── COVER IMAGE ────────────────────────────────────────────── */
.bd-cover-wrap {
    padding: 32px 20px 0;
}

.bd-cover-img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: clamp(220px, 40vw, 480px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(32,103,133,.1);
}

.bd-cover-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.bd-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,42,53,.25) 0%, transparent 55%);
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.bd-body-wrap {
    padding: 48px 20px 80px;
}

.bd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* ── ARTICLE CONTENT ────────────────────────────────────────── */
.bd-article { min-width: 0; }

.bd-content {
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.85;
    color: #2c4a58;
}

.bd-content p {
    margin-bottom: 22px;
}

.bd-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark);
    margin: 36px 0 14px;
    line-height: 1.3;
}

.bd-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin: 28px 0 10px;
    line-height: 1.4;
}

.bd-content blockquote {
    border-left: 3px solid var(--teal);
    background: rgba(25,158,130,.05);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 28px 0;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.65;
}

.bd-content ul,
.bd-content ol {
    margin: 0 0 22px 20px;
}

.bd-content li {
    margin-bottom: 8px;
}

.bd-content a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity .2s;
}

.bd-content a:hover { opacity: .75; }

.bd-content img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.bd-content strong { font-weight: 600; color: var(--dark); }

/* ── TAGS ───────────────────────────────────────────────────── */
.bd-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.bd-tags-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    margin-right: 4px;
}

.bd-tag {
    font-size: .72rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(25,158,130,.08);
    border: 1px solid rgba(25,158,130,.18);
    padding: 4px 12px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    transition: background .2s, border-color .2s;
    cursor: default;
}

.bd-tag:hover {
    background: rgba(25,158,130,.14);
    border-color: rgba(25,158,130,.3);
}

/* ── BACK BUTTON ────────────────────────────────────────────── */
.bd-back-row {
    margin-top: 36px;
}

.bd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    border: 1px solid rgba(25,158,130,.25);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    transition: background .2s, border-color .2s, transform .2s;
    background: rgba(25,158,130,.04);
}

.bd-back-btn:hover {
    background: rgba(25,158,130,.1);
    border-color: rgba(25,158,130,.4);
    transform: translateX(-3px);
}

.bd-back-btn svg { transition: transform .2s; }
.bd-back-btn:hover svg { transform: translateX(-3px); }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.bd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

.bd-sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(32,103,133,.06);
}

.bd-sc-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

/* Author card */
.bd-author-card {
    text-align: center;
}

.bd-sidebar-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    margin-bottom: 12px;
}

.bd-sidebar-author-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    margin-bottom: 3px;
}

.bd-sidebar-author-role {
    font-size: .74rem;
    font-weight: 400;
    color: var(--teal);
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
}

.bd-sidebar-author-bio {
    font-size: .78rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.65;
    font-family: 'Inter', sans-serif;
}

/* Related articles */
.bd-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bd-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s;
}

.bd-related-item:hover {
    background: var(--soft);
    border-color: var(--border);
}

.bd-related-item img {
    width: 58px; height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.bd-related-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.bd-related-cat {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
    font-family: 'Inter', sans-serif;
}

.bd-related-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bd-layout {
        grid-template-columns: 1fr;
    }

    .bd-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bd-sidebar-card {
        flex: 1 1 260px;
    }

    .bd-author-card {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .bd-header {
        padding: 36px 20px 32px;
    }

    .bd-title {
        font-size: 1.5rem;
    }

    .bd-cover-wrap {
        padding: 20px 20px 0;
    }

    .bd-cover-img {
        border-radius: 12px;
    }

    .bd-body-wrap {
        padding: 28px 20px 60px;
    }

    .bd-sidebar {
        flex-direction: column;
    }

    .bd-sidebar-card {
        flex: none;
    }

    .bd-bc-current {
        max-width: 130px;
    }

    .bd-header-meta {
        gap: 7px;
    }
}
/* ── PAGINATION ── */

/* ── PAGINATION WRAPPER ── */
.blog-grid-section .pagination-info {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.blog-grid-section nav {
    display: flex;
    align-items: center;
}

.blog-grid-section .pagination {
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

/* ── PAGE BUTTONS ── */
.blog-grid-section .page-item .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 600;
    background: #fff;
    padding: 0;
    transition: all .25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    text-decoration: none;
    line-height: 1;
}

/* ── PREV / NEXT — pill shape ── */
.blog-grid-section .page-item:first-child .page-link,
.blog-grid-section .page-item:last-child .page-link {
    width: auto;
    padding: 0 18px;
    gap: 6px;
    border-radius: 50px;
    font-size: 13px;
}

/* ── HOVER ── */
.blog-grid-section .page-item .page-link:hover {
    background: linear-gradient(to right, #199e82, #206785);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25,158,130,.25);
}

/* ── ACTIVE ── */
.blog-grid-section .page-item.active .page-link {
    background: linear-gradient(to right, #199e82, #206785);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(25,158,130,.30);
    transform: translateY(-1px);
}

/* Prevent Bootstrap from overriding active with its own focus style */
.blog-grid-section .page-item.active .page-link:focus {
    box-shadow: 0 6px 18px rgba(25,158,130,.30);
    outline: none;
}

/* ── DISABLED ── */
.blog-grid-section .page-item.disabled .page-link {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #f0f0f0;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── ELLIPSIS / DOTS ── */
.blog-grid-section .page-item span.page-link {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: default;
    pointer-events: none;
}

/* ── FOCUS OUTLINE (accessibility) ── */
.blog-grid-section .page-item .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25,158,130,.18);
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .blog-grid-section .pagination-info {
        text-align: center;
        display: block;
        margin-bottom: 12px;
    }

    .blog-grid-section nav {
        justify-content: center;
    }

    .blog-grid-section .page-item .page-link {
        width: 36px;
        height: 36px;
        font-size: 12.5px;
        border-radius: 10px;
    }

    .blog-grid-section .page-item:first-child .page-link,
    .blog-grid-section .page-item:last-child .page-link {
        padding: 0 14px;
        font-size: 12px;
    }
}
.blog-grid-section nav > p {
    display: none;
}