/* ==========================================================================
   SVS Facility Management - Blog Section Stylesheet
   File: blog/blog.css
   Scoped specifically for the Blog section to prevent style leaks
   ========================================================================== */

/* Introduction section */
.blog-intro-section {
    padding: 60px 0 30px;
    background-color: #ffffff;
}

.blog-intro-box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.blog-intro-box h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #14287b;
    margin-bottom: 18px;
    line-height: 1.3;
}

.blog-intro-box p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 15px;
}

.blog-intro-divider {
    width: 70px;
    height: 4px;
    background-color: #fef22e;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Blog grid section */
.blog-grid-section {
    padding: 30px 0 80px;
    background-color: #f8f9fa;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 45px;
}

.blog-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #14287b;
    margin-bottom: 10px;
}

.blog-section-header p {
    font-size: 15px;
    color: #646464;
    margin: 0;
}

/* Individual blog cards */
.blog-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(20, 40, 123, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    border: 1px solid #ebeef5;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(20, 40, 123, 0.16);
}

.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #14287b;
}

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

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

.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #14287b;
    color: #fef22e;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #777777;
    margin-bottom: 12px;
}

.blog-card-meta i {
    color: #14287b;
    margin-right: 6px;
}

.blog-card-meta span {
    margin-right: 15px;
}

.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 56px;
}

.blog-card-title a {
    color: #14287b;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-card-title a:hover {
    color: #2f3abd;
}

.blog-card-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #646464;
    margin-bottom: 18px;
    flex-grow: 1;
}

.blog-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.blog-read-more {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #14287b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.blog-read-more i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.25s ease;
}

.blog-read-more:hover {
    color: #2f3abd;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .blog-intro-box h2 {
        font-size: 26px;
    }
    .blog-card-img-wrap {
        height: 200px;
    }
    .blog-card-title {
        font-size: 18px;
        min-height: 51px;
    }
}

@media (max-width: 575px) {
    .blog-intro-section {
        padding: 40px 0 20px;
    }
    .blog-grid-section {
        padding: 20px 0 50px;
    }
    .blog-card-body {
        padding: 18px;
    }
    .blog-card-img-wrap {
        height: 190px;
    }
    .blog-card-title {
        min-height: auto;
    }
}
