/* Make blog cards smaller */
        .blog-card {
            max-width: 320px;
            min-height: 390px;
            height: auto;
            margin: 0 auto 30px auto;
            padding: 18px 0 0 0;
        }
        .blog-card__image__item img {
            height: 180px;
            min-height: 160px;
            max-height: 180px;
        }
        .blog-card__content {
            padding: 42px 40px 40px 40px;
        }
        .blog-card__title {
            font-size: 18px;
            margin-bottom: 15px;
        }
        .blog-card__author__name {
            font-size: 14px;
        }
        .blog-card__author__deg {
            font-size: 11px;
        }
        /* Consolidated mobile layout overrides at the end of the stylesheet */

/* --- Element Custom Styles --- */

.blog-custom-1 {
    position: relative; overflow: hidden;
}

.blog-custom-2 {
    background-size: cover; background-position: center; padding: 95px 0; position: relative;
}

.blog-custom-3 {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1;
}

.blog-custom-4 {
    position: relative; z-index: 2; text-align: left;
}

.blog-custom-5 {
    color: #fff; font-weight: bold;
}

.blog-custom-6 {
    color: #fff;
}

.blog-custom-7 {
    margin-bottom: 50px; margin-top: 32px;
}

.blog-custom-8 {
    margin-top: -18px;
}

/* ═══════════════════════════════════════
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ═══════════════════════════════════════ */

/* Tablets & Mobiles (< 991px) */
@media (max-width: 991px) {
    .blog-custom-6 {
        font-size: 1.5rem !important;
    }
    
    /* Optimize blog card layout to keep perfect aspect ratio and sizes */
    .blog-card {
        max-width: 320px !important;
        min-height: 380px !important;
        margin: 0 auto 30px auto !important;
    }
    
    .blog-card__image__item img {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .blog-card__content {
        padding: 30px 20px 25px 20px !important;
    }
}

/* Mobile Screens (< 767px) */
@media (max-width: 767px) {
    /* Reset banner text container margin & padding */
    .banner-text {
        margin-left: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-align: center !important;
    }

    .blog-custom-6 {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        color: #ffffff !important;
        display: block !important;
    }

    .blog-custom-5 {
        font-size: 2.2rem !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    /* Section margins */
    .blog-custom-7 {
        margin-bottom: 25px !important;
        margin-top: 20px !important;
    }

    .blog-one {
        padding: 40px 0 !important;
    }
}

/* Small Mobile Screens (< 575px) */
@media (max-width: 575px) {
    /* Page Header Banner subtitle font-size */
    .blog-custom-6 {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
        white-space: normal !important;
    }
}
