@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Baloo+2:wght@600;700&display=swap');

/* Shared blog module styles for modern, reusable listing pages */
:root {
    --brand: #224383;
    --accent: #fcc516;
    --brand-soft: #eef5ff;
    --accent-soft: #fff7db;
    --bg: #f7fbff;
    --surface: #ffffff;
    --border: #dfe9f7;
    --text: #18324b;
    --muted: #6c7f96;
    --shadow: 0 20px 45px rgba(34, 67, 131, 0.12);
}

.blog-section {
    padding: 1rem 0 3.5rem;
}

.blog-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    padding: 1.8rem;
    margin-bottom: 1.7rem;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--brand) 0%, #1a3267 100%);
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: auto -40px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(252, 197, 22, 0.2);
}

.blog-hero-copy {
    position: relative;
    z-index: 1;
}

.blog-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero h1 {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: #fff;
}

.blog-hero p {
    max-width: 620px;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.blog-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-brand,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand {
    background: var(--accent);
    color: var(--brand);
    box-shadow: 0 10px 24px rgba(252, 197, 22, 0.2);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-brand:hover,
.btn-outline:hover {
    transform: translateY(-2px);
}

.blog-hero-panel {
    display: grid;
    gap: 0.8rem;
    align-content: center;
    position: relative;
    z-index: 1;
}

.blog-hero-stat {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.blog-hero-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.blog-hero-stat span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.blog-section-kicker {
    display: inline-block;
    margin-bottom: 0.3rem;
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-section-header h2 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    color: var(--text);
    font-size: 1.35rem;
}

.blog-section-header>a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.blog-page-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}

.blog-card {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(24, 50, 75, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-image.no-image {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
    color: var(--brand);
    font-weight: 700;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand);
    box-shadow: 0 10px 24px rgba(24, 50, 75, 0.14);
}

.blog-card-content {
    padding: 1.2rem 1.2rem 1.35rem;
}

.blog-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
}

.blog-card-reading {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.blog-card-title {
    margin-bottom: 0.75rem;
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    line-height: 1.25;
}

.blog-card-title a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--brand);
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card-text {
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.blog-readmore:hover {
    color: var(--accent);
}

.blog-post-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(24, 50, 75, 0.07);
}

.blog-post-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.blog-post-body {
    padding: 1.4rem 1.4rem 1.6rem;
}

.blog-post-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.blog-post-title {
    margin-bottom: 0.8rem;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    color: var(--text);
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.blog-post-content {
    color: var(--text);
    line-height: 1.8;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 0.8rem 0;
}

.blog-post-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.blog-post-section-title {
    margin-bottom: 0.5rem;
    color: var(--brand);
    font-weight: 700;
}

.blog-post-tags {
    margin: 0;
    color: var(--muted);
}

.blog-share-links {
    display: flex;
    gap: 0.6rem;
}

.blog-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    text-decoration: none;
}

.blog-share-links a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.blog-sidebar-card {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(24, 50, 75, 0.05);
}

.blog-sidebar-card-header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--brand-soft), #f9fbff);
    color: var(--brand);
    font-weight: 800;
}

.blog-sidebar-card-body {
    padding: 1rem 1.1rem;
}

.blog-sidebar-list {
    display: grid;
    gap: 0.45rem;
}

.blog-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.75rem;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    background: #fcfdff;
}

.blog-sidebar-link:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.blog-sidebar-form .input-group {
    gap: 0.5rem;
}

.blog-sidebar-form .form-control {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.7rem 0.9rem;
}

.blog-sidebar-form .btn {
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    border: 0;
}

.blog-sidebar-post {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-sidebar-post:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.blog-sidebar-post a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.blog-sidebar-post a:hover {
    color: var(--brand);
}

.blog-sidebar-post span {
    color: var(--muted);
    font-size: 0.82rem;
}

.blog-empty {
    padding: 1.4rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px dashed var(--border);
    color: var(--muted);
    text-align: center;
}

.blog-pagination {
    margin-top: 2rem;
}

.blog-pagination .pagination {
    gap: 0.35rem;
}

.blog-pagination .page-link {
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    min-width: 40px;
    padding: 0.55rem 0.8rem;
    background: var(--surface);
}

.blog-pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

@media (max-width: 991px) {
    .blog-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding-bottom: 2.5rem;
    }

    .blog-hero {
        padding: 1.25rem;
    }

    .blog-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-card-image img {
        height: 190px;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .blog-post-body {
        padding: 1.1rem;
    }

    .blog-post-topbar,
    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.blog-sidebar {
    margin-bottom: 2rem;
}

.blog-sidebar .blog-sidebar-card + .blog-sidebar-card {
    margin-top: 1rem;
}

.blog-sidebar .list-group-item {
    border-color: var(--border);
    color: var(--text);
}

.blog-sidebar .list-group-item:hover {
    background: var(--brand-soft);
    color: var(--brand);
}
    margin-top: 1.5rem;
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(24, 50, 75, 0.05);
}

.blog-comments-title {
    margin-bottom: 1rem;
    font-family: 'Baloo 2', cursive;
    color: var(--brand);
    font-size: 1.35rem;
}

.blog-comment-note {
    color: var(--muted);
    margin-bottom: 1rem;
}

.blog-comment {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-comment-body p {
    margin-bottom: 0;
    color: var(--text);
    line-height: 1.7;
}

.blog-comment-meta {
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.blog-comment-meta strong {
    color: var(--text);
    margin-right: 0.5rem;
}

.blog-comment-form .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}