:root {
    --connect-primary: #4b60a9;
    --connect-link: #2a5298;
}

/* Hero Section */
.connect-hero-section {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}

.connect-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.connect-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.connect-hero-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 1.5rem;
}

.connect-hero-title {
    font-family: 'NonBureau', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.connect-hero-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
}

/* Blog Grid */
.blog-grid-section {
    background-color: #f8f9fa;
}


.blog-card {
    /* border-radius: 10px; */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    --media-card-min-height: 220px;
    --media-card-fit: cover;
    position: relative;
    width: 100%;
    height: 220px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.blog-card-image .blog-card-overlay {
    background-color: #ffffffe1;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-logo-wrapper {
    width: clamp(90px, 40%, 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.blog-card-body h5 {
    font-family: 'NonBureau', sans-serif;
    font-weight: 700;
    color: var(--connect-primary);
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-excerpt {
    color: #495057;
    font-size: 0.975rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.blog-card-body a {
    font-weight: 600;
    color: var(--connect-link);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    align-self: flex-start;
    padding-bottom: 0.15rem;
    transition: border-color 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.blog-card-body a:hover {
    color: #1e3c72;
    border-bottom-color: currentColor;
}

.blog-card--compact .blog-card-image {
    height: 160px;
}

.blog-card--compact .blog-card-body {
    padding: 1.35rem;
}

.blog-card--compact .blog-card-body h5 {
    font-size: 1.05rem;
}

.blog-card--compact .blog-card-meta {
    font-size: 0.8rem;
}

/* Pagination */
.blog-pagination {
    margin-top: 2.5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .connect-hero-title {
        font-size: 2.4rem;
    }

    .connect-hero-subtitle {
        font-size: 1.05rem;
        letter-spacing: 2px;
    }

    .connect-hero-logo {
        max-width: 180px;
    }

    .blog-card-image {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .connect-hero-section {
        min-height: 360px;
    }

    .connect-hero-title {
        font-size: 2rem;
    }

    .connect-intro-text .lead {
        font-size: 1.05rem;
    }

    .blog-card-body {
        padding: 1.5rem;
    }

    .blog-card-image {
        height: 190px;
    }
}

/* Blog Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content iframe {
    max-width: 100%;
    margin: 1.5rem 0;
}

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--connect-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content a {
    color: var(--connect-link);
    text-decoration: underline;
}
