.hero {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: center;
    overflow: hidden;


    background:
        linear-gradient(135deg,
            rgba(0, 20, 60, 0.82) 0%,
            rgba(0, 74, 153, 0.72) 60%,
            rgba(0, 97, 194, 0.65) 100%);
}


.hero-h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 680px;
}

.hero-h6 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}


@media (max-width: 767px) {
    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 80px 0 60px;
    }
}











/* ── BLOG CARDS – scoped under .blg-section ─────────
   Requires: Bootstrap Icons, Manrope + Source Sans 3
   and your existing :root CSS variables.
   ─────────────────────────────────────────────────── */

.blg-section {
    padding: 88px 0;
    background: var(--bg);
}

/* ── Header row ──────────────────────────────────── */
.blg-section .blg-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.blg-section .blg-all-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Manrope', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: 8px;
    padding: 9px 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.blg-section .blg-all-link:hover {
    background: var(--blue);
    color: #fff;
}

/* ── Grid ────────────────────────────────────────── */
.blg-section .blg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    /* Equal height columns */
    align-items: stretch;
}

/* ── Card ────────────────────────────────────────── */
.blg-section .blg-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* FIXED HEIGHT so all cards are equal */
    height: 480px;
    transition: box-shadow .25s, transform .25s;
}

.blg-section .blg-card:hover {
    box-shadow: var(--sh-lg);
    transform: translateY(-4px);
}

/* ── Thumbnail ───────────────────────────────────── */
.blg-section .blg-thumb-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.blg-section .blg-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blg-section .blg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.blg-section .blg-card:hover .blg-thumb img {
    transform: scale(1.05);
}

/* Dark overlay on image */
.blg-section .blg-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 40%,
            rgba(0, 20, 60, .35) 100%);
    pointer-events: none;
}

/* Category tag on image */
.blg-section .blg-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: 'Manrope', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--white);
    color: var(--blue);
    border-radius: 100px;
    padding: 4px 12px;
    box-shadow: var(--sh-sm);
}

/* ── Body ────────────────────────────────────────── */
.blg-section .blg-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Title – strictly 2 lines */
.blg-section .blg-title {
    font-family: 'Manrope', sans-serif;
    font-size: .97rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    /* clamp to exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(0.97rem * 1.4 * 2);
    /* exactly 2 lines */
}

.blg-section .blg-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color .18s;
}

.blg-section .blg-title a:hover {
    color: var(--blue);
}

/* Excerpt – strictly 3 lines */
.blg-section .blg-excerpt {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 auto;
    /* clamp to exactly 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(0.86rem * 1.7 * 3);
}

/* ── Footer row ──────────────────────────────────── */
.blg-section .blg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Author meta */
.blg-section .blg-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.blg-section .blg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blg-section .blg-meta-info {
    min-width: 0;
}

.blg-section .blg-meta-info strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blg-section .blg-meta-info span {
    font-size: .72rem;
    color: var(--muted);
    white-space: nowrap;
}

/* Read link */
.blg-section .blg-read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap .18s, color .18s;
}

.blg-section .blg-read-link:hover {
    gap: 8px;
    color: var(--blue-mid);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1199px) {
    .blg-section .blg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .blg-section {
        padding: 56px 0;
    }

    .blg-section .blg-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* On mobile allow natural height */
    .blg-section .blg-card {
        height: auto;
    }

    .blg-section .blg-title {
        height: auto;
    }

    .blg-section .blg-excerpt {
        height: auto;
    }
}

@media (max-width: 575px) {
    .blg-section .blg-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blg-section .blg-all-link {
        width: 100%;
        justify-content: center;
    }
}



/* ── PAGINATION – scoped under .pgn-section ─────────
   Requires: Bootstrap Icons, Manrope + Source Sans 3
   and your existing :root CSS variables.
   ─────────────────────────────────────────────────── */

.pgn-section {
    padding: 32px 0 64px;
    background: var(--bg);
}

.pgn-section .pgn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Prev / Next buttons ─────────────────────────── */
.pgn-section .pgn-prev,
.pgn-section .pgn-next {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Manrope', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    color: var(--mid);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 9px 18px;
    text-decoration: none;
    transition: border-color .2s, color .2s, box-shadow .2s, transform .2s;
    white-space: nowrap;
}

.pgn-section .pgn-prev:hover,
.pgn-section .pgn-next:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: var(--sh-sm);
    transform: translateY(-1px);
}

.pgn-section .pgn-prev i,
.pgn-section .pgn-next i {
    font-size: .8rem;
}

/* ── Number group ────────────────────────────────── */
.pgn-section .pgn-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Individual page number */
.pgn-section .pgn-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    font-family: 'Manrope', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--mid);
    background: var(--white);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s, transform .2s;
}

.pgn-section .pgn-item:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: var(--sh-sm);
    transform: translateY(-1px);
}

/* Active page */
.pgn-section .pgn-item.pgn-active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 74, 153, .28);
    pointer-events: none;
}

/* Dots */
.pgn-section .pgn-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: 'Manrope', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    pointer-events: none;
    letter-spacing: .05em;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 575px) {
    .pgn-section {
        padding: 24px 0 56px;
    }

    .pgn-section .pgn-prev span,
    .pgn-section .pgn-next span {
        display: none;
    }

    .pgn-section .pgn-prev,
    .pgn-section .pgn-next {
        padding: 9px 14px;
    }

    .pgn-section .pgn-item {
        width: 36px;
        height: 36px;
        font-size: .82rem;
    }
}




.no-results-container {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.no-results-container .icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.no-results-container h4 {
    color: #495057;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-results-container p {
    color: #6c757d;
    margin-bottom: 25px;
}

.btn-reset {
    display: inline-block;
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-reset:hover {
    background-color: #0056b3;
}








/* ── SEARCH BAR STYLES ───────────────────────────── */

.blg-search-container {
    max-width: 700px;
    margin: -35px auto 50px; /* Pulls it slightly into the hero section */
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.search-form {
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 20, 60, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: #9ca3af;
    font-size: 1.1rem;
}

.search-input {
    border: none !important;
    padding: 12px 20px 12px 50px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    box-shadow: none !important;
    background: transparent;
    flex: 1;
}

.search-input::placeholder {
    color: #9ca3af;
}

.btn-search {
    background: var(--blue); /* Uses your existing blue */
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #003d80; /* Slightly darker blue */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.2);
}

/* ── RESPONSIVE SEARCH ───────────────────────────── */

@media (max-width: 575px) {
    .blg-search-container {
        margin-top: -25px;
        margin-bottom: 40px;
    }
    
    .btn-search span {
        display: none; /* Hide text on small mobiles to save space */
    }
    
    .btn-search {
        padding: 10px 15px;
    }
    
    .btn-search i {
        font-size: 1.4rem;
    }

    .search-input {
        padding-left: 45px;
        font-size: 0.9rem;
    }
}



/* ── SEARCH BAR STYLES ───────────────────────────── */

.blg-search-container {
    max-width: 700px;
    margin: -35px auto 50px; /* Pulls it slightly into the hero section */
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.search-form {
    background: #fff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 20, 60, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: #9ca3af;
    font-size: 1.1rem;
}

.search-input {
    border: none !important;
    padding: 12px 20px 12px 50px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    box-shadow: none !important;
    background: transparent;
    flex: 1;
}

.search-input::placeholder {
    color: #9ca3af;
}

.btn-search {
    background: var(--blue); /* Uses your existing blue */
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #003d80; /* Slightly darker blue */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.2);
}

/* ── RESPONSIVE SEARCH ───────────────────────────── */

@media (max-width: 575px) {
    .blg-search-container {
        margin-top: -25px;
        margin-bottom: 40px;
    }
    
    .btn-search span {
        display: none; /* Hide text on small mobiles to save space */
    }
    
    .btn-search {
        padding: 10px 15px;
    }
    
    .btn-search i {
        font-size: 1.4rem;
    }

    .search-input {
        padding-left: 45px;
        font-size: 0.9rem;
    }
}