﻿
/* =====   GLOBAL RESET============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* sideways overflow is clipped on <html> only: "hidden" on <body> as well turned
   the body into its own scroll box, which stopped the sticky header from sticking */
html {
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
}

body {
    background: #ffffff;
    font-family: "DM Sans", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}


/* ======  BLOG BANNER =========================== */

.blogsBanner {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.blogImgParallax {
    width: 100%;
    height: 292px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.88) ), url("../Images/BlogBanner.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.blogText {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .blogText > div {
        width: 100%;
    }

    .blogText h1 {
        color: #ffffff;
        font-family: "Poppins", sans-serif;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 8px 0;
        padding: 0;
        text-align: center;
    }

    .blogText h5 {
        color: #ffffff;
        font-size: 23px;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
        padding: 0 15px;
        text-align: center;
    }


/* =====   MAIN BLOG SECTION========================== */

.Blog {
    width: 100%;
    max-width: 100%;
    background: #f6f8fc;
    padding: 40px 20px 55px;
    overflow: hidden;
}

    /*
           MAIN ROW

           Sidebar = 25%
           Blog area = 75%
        */

    .Blog > .row {
        width: 100%;
        max-width: 1300px;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }


        /* ======  BOOTSTRAP COLUMN FIX ==================== */

        .Blog > .row > .blog-sidebar {
            position: relative;
            width: 25%;
            flex: 0 0 25%;
            padding-left: 12px;
            padding-right: 12px;
        }

        .Blog > .row > .col-lg-9 {
            position: relative;
            width: 75%;
            flex: 0 0 75%;
            padding-left: 12px;
            padding-right: 12px;
        }


/* ======== LEFT SIDEBAR ================================ */

.blog-sidebar {
    width: 100%;
}

    .blog-sidebar .sidebar-box {
        width: 100%;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 20px;
        margin: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
        overflow: hidden;
    }

.popular-title {
    color: #0a1b4d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 22px 0;
    padding: 0;
}


/* ======  POPULAR POSTS =========================== */

.post-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 22px 0;
    padding: 0;
    min-width: 0;
}

    .post-item:last-child {
        margin-bottom: 0;
    }

    .post-item img {
        width: 65px;
        height: 65px;
        min-width: 65px;
        max-width: 65px;
        border-radius: 9px;
        object-fit: cover;
        display: block;
        flex-shrink: 0;
    }

.post-content {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}

    .post-content h4 {
        color: #0a1b4d;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.4;
        margin: 0 0 6px 0;
        padding: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .post-content a {
        color: #0a1b4d;
        text-decoration: none;
    }

        .post-content a:hover {
            color: #1d4ed8;
        }

    .post-content p {
        color: black;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.5;
        margin: 0;
        padding: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .post-content span {
        color: #1d4ed8;
        font-weight: 500;
    }


/* =====   RIGHT BLOG AREA============================= */

.Blog .col-lg-9 {
    width: 75%;
    flex: 0 0 75%;
    padding-left: 12px;
    padding-right: 12px;
}

    /*
           IMPORTANT:
           Blog card row must remain horizontal
        */

    .Blog .col-lg-9 > .row {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        margin-left: -12px !important;
        margin-right: -12px !important;
    }

        .Blog .col-lg-9 > .row > .col-lg-6 {
            width: 50%;
            flex: 0 0 50%;
            max-width: 50%;
            padding-left: 12px;
            padding-right: 12px;
            margin-bottom: 24px;
            display: flex;
            align-items: stretch;
        }


/* ======  BLOG CARD =============================== */

.blog-card {
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }


/* ======   BLOG IMAGE ============================== */

.blog-image {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #f1f1f1;
    flex-shrink: 0;
}

    .blog-image img {
        width: 100%;
        height: 210px;
        max-width: none;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }

.blog-card:hover .blog-image img {
    transform: scale(1.03);
}


/* =====   ARTICLE META ====================== */

.article-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    background: linear-gradient( transparent, rgba(0, 0, 0, 0.85) );
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    z-index: 2;
}

    .article-meta span {
        color: #ffffff;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }


/* ======  BLOG CONTENT=============================== */

.blog-content {
    width: 100%;
    max-width: 100%;
    padding: 22px 20px 25px;
    background: #ffffff;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}


/* ======= BLOG TITLE ============================ */

.blog-title {
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px 0;
    padding: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* =======  BLOG DESCRIPTION========================= */

.blog-desc {
    color: black;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 20px 0;
    padding: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 auto;
}

    .blog-desc p {
        margin: 0;
        padding: 0;
    }


/* =======READ MORE BUTTON========================= */

.animated-button1 {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background: #dd1717 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 2px;
    outline: none;
    padding: 8px 18px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .animated-button1:hover {
        background: #c91515 !important;
        color: #ffffff !important;
        transform: translateY(-1px);
    }

    .animated-button1 span {
        position: absolute;
        display: block;
        pointer-events: none;
    }

        .animated-button1 span:nth-child(1) {
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient( to left, transparent, #ffffff );
            animation: animateTop 2s linear infinite;
        }

        .animated-button1 span:nth-child(2) {
            top: 0;
            right: 0;
            width: 2px;
            height: 100%;
            background: linear-gradient( to top, transparent, #ffffff );
            animation: animateRight 2s linear -1s infinite;
        }

        .animated-button1 span:nth-child(3) {
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient( to right, transparent, #ffffff );
            animation: animateBottom 2s linear infinite;
        }

        .animated-button1 span:nth-child(4) {
            top: 0;
            left: 0;
            width: 2px;
            height: 100%;
            background: linear-gradient( to bottom, transparent, #ffffff );
            animation: animateLeft 2s linear -1s infinite;
        }


/* ======= BUTTON ANIMATION */

@keyframes animateTop {

    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes animateRight {

    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes animateBottom {

    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes animateLeft {

    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}


/* ======= OLD / CONFLICTING CLASSES=========================== */

.blog-meta {
    position: static;
}

.category-badge {
    position: static;
}

.blogDate {
    margin: 0;
}

    .blogDate p {
        margin: 0;
    }


/* =======  LARGE DESKTOP 1200px+============================ */

@media (min-width: 1200px) {

    .Blog {
        padding-left: 20px;
        padding-right: 20px;
    }

        .Blog > .row {
            max-width: 1494px;
        }

    .blog-image,
    .blog-image img {
        height: 220px;
    }
}


/* ========= DESKTOP 1025px - 1199px========================= */

@media (min-width: 1025px) and (max-width: 1199px) {

    .Blog {
        padding: 35px 15px 50px;
    }

        .Blog > .row {
            max-width: 1100px;
        }

            .Blog > .row > .blog-sidebar {
                width: 30%;
                flex: 0 0 30%;
            }

            .Blog > .row > .col-lg-9 {
                width: 70%;
                flex: 0 0 70%;
            }

        .Blog .col-lg-9 > .row > .col-lg-6 {
            width: 50%;
            flex: 0 0 50%;
            max-width: 50%;
        }

    .blog-image,
    .blog-image img {
        height: 200px;
    }

    .blog-title {
        font-size: 19px;
    }

    .blog-desc {
        font-size: 14px;
    }

    .blog-content {
        padding: 20px 16px 22px;
    }

    .blog-sidebar .sidebar-box {
        padding: 17px;
    }

    .post-item {
        gap: 10px;
    }

        .post-item img {
            width: 55px;
            height: 55px;
            min-width: 55px;
            max-width: 55px;
        }

    .post-content h4 {
        font-size: 13px;
    }

    .post-content p {
        font-size: 11px;
    }
}


/* ====== TABLE 769px - 1024px  Keep 2 cards horizontally========================= */

@media (min-width: 769px) and (max-width: 1024px) {

    .Blog {
        padding: 30px 15px 45px;
    }

        .Blog > .row {
            max-width: 950px;
        }

            .Blog > .row > .blog-sidebar {
                width: 32%;
                flex: 0 0 32%;
            }

            .Blog > .row > .col-lg-9 {
                width: 68%;
                flex: 0 0 68%;
            }

        .Blog .col-lg-9 > .row > .col-lg-6 {
            width: 50%;
            flex: 0 0 50%;
            max-width: 50%;
            padding-left: 8px;
            padding-right: 8px;
        }

        .Blog .col-lg-9 > .row {
            margin-left: -8px !important;
            margin-right: -8px !important;
        }

    .blog-image,
    .blog-image img {
        height: 190px;
    }

    .blog-content {
        padding: 18px 15px 22px;
    }

    .blog-title {
        font-size: 18px;
    }

    .blog-desc {
        font-size: 14px;
    }

    .article-meta {
        font-size: 10px;
        padding: 9px 10px;
    }
}


/* ======= MOBILE TABLET 481px - 768px=========== */

@media (min-width: 481px) and (max-width: 768px) {

    .Blog {
        padding: 30px 15px 45px;
    }
        /*
               Sidebar full width
            */

        .Blog > .row > .blog-sidebar {
            width: 100%;
            flex: 0 0 100%;
            margin-bottom: 25px;
            padding-left: 0;
            padding-right: 0;
        }
        /*
               Blog area full width
            */

        .Blog > .row > .col-lg-9 {
            width: 100%;
            flex: 0 0 100%;
            padding-left: 0;
            padding-right: 0;
        }
        /*
               TWO CARDS HORIZONTAL
            */

        .Blog .col-lg-9 > .row > .col-lg-6 {
            width: 50%;
            flex: 0 0 50%;
            max-width: 50%;
            padding-left: 8px;
            padding-right: 8px;
        }

        .Blog .col-lg-9 > .row {
            margin-left: -8px !important;
            margin-right: -8px !important;
        }

    .blog-image,
    .blog-image img {
        height: 200px;
    }

    .blog-content {
        padding: 18px 15px 22px;
    }

    .blog-title {
        font-size: 19px;
    }

    .blog-desc {
        font-size: 14px;
    }
}


@media (min-width: 320px) and (max-width: 480px) {

    .blogImgParallax {
        height: 260px;
    }

    .blogText h1 {
        font-size: 30px;
    }

    .blogText h5 {
        font-size: 16px;
        padding: 0 20px;
    }

    .Blog {
        padding: 25px 10px 40px;
    }
        /*
               Sidebar
            */

        .Blog > .row > .blog-sidebar {
            width: 100%;
            flex: 0 0 100%;
            padding-left: 0;
            padding-right: 0;
            margin-bottom: 20px;
        }
        /*
               Blog section
            */

        .Blog > .row > .col-lg-9 {
            width: 100%;
            flex: 0 0 100%;
            padding-left: 0;
            padding-right: 0;
        }
        /*
               ONE CARD PER ROW
            */

        .Blog .col-lg-9 > .row > .col-lg-6 {
            width: 100%;
            flex: 0 0 100%;
            max-width: 100%;
            padding-left: 0;
            padding-right: 0;
            margin-bottom: 20px;
        }

        .Blog .col-lg-9 > .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

    .blog-image,
    .blog-image img {
        height: 200px;
    }

    .blog-content {
        padding: 19px 17px 22px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-desc {
        font-size: 15px;
    }

    .article-meta {
        font-size: 10px;
        padding: 9px 10px;
    }
}


/* =========================================================
           SMALL MOBILE
           BELOW 320px
           ========================================================= */

@media (max-width: 319px) {

    .blogImgParallax {
        height: 250px;
    }

    .blogText h1 {
        font-size: 28px;
    }

    .blogText h5 {
        font-size: 15px;
    }

    .Blog {
        padding: 25px 10px 40px;
    }

        .Blog > .row > .blog-sidebar {
            width: 100%;
            flex: 0 0 100%;
            padding-left: 0;
            padding-right: 0;
            margin-bottom: 20px;
        }

        .Blog > .row > .col-lg-9 {
            width: 100%;
            flex: 0 0 100%;
            padding-left: 0;
            padding-right: 0;
        }

        .Blog .col-lg-9 > .row > .col-lg-6 {
            width: 100%;
            flex: 0 0 100%;
            max-width: 100%;
            padding-left: 0;
            padding-right: 0;
            margin-bottom: 20px;
        }

        .Blog .col-lg-9 > .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

    .blog-content {
        padding: 18px 15px 22px;
    }

    .blog-title {
        font-size: 19px;
    }

    .blog-desc {
        font-size: 14px;
    }

    .blog-image,
    .blog-image img {
        height: 190px;
    }

    .article-meta {
        font-size: 10px;
        padding: 9px 10px;
    }

    .post-item img {
        width: 55px;
        height: 55px;
        min-width: 55px;
        max-width: 55px;
    }

    .post-content h4 {
        font-size: 14px;
    }

    .post-content p {
        font-size: 11px;
    }
}


/* =====================================================================
   RESPONSIVE BLOG LIST (overrides the old Bootstrap-style % columns —
   Bootstrap's grid CSS is not loaded on this site, so .row/.col-* only
   worked at a few exact widths)
   desktop: sidebar | 2-3 card columns · tablet: sidebar on top, 2 columns
   phone: one column
   ===================================================================== */
.Blog {
    padding: 48px 4vw 64px
}

    .Blog > .row {
        display: grid;
        grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
        gap: 32px;
        max-width: 1300px;
        margin: 0 auto !important
    }

        .Blog > .row > .blog-sidebar,
        .Blog > .row > .col-lg-9 {
            width: auto;
            max-width: none;
            flex: none;
            padding: 0;
            margin: 0;
            min-width: 0
        }

    .Blog .col-lg-9 > .row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
        gap: 24px;
        width: 100%;
        margin: 0 !important
    }

        .Blog .col-lg-9 > .row > .col-lg-6 {
            width: auto;
            max-width: none;
            flex: none;
            padding: 0;
            margin: 0;
            min-width: 0
        }

.blog-sidebar .sidebar-box {
    position: sticky;
    top: 100px
}

.blog-content a {
    align-self: flex-start
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 40px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed #d6dbe4;
    border-radius: 12px;
    color: #3C4854
}

    .blog-empty h3 {
        margin: 0 0 6px;
        color: #0a1b4d;
        font-size: 22px
    }

@media (max-width: 900px) {
    .Blog > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px
    }

    .blog-sidebar .sidebar-box {
        position: static
    }

    /* popular posts sit side by side above the list on tablets */
    .blog-sidebar .post-item {
        margin: 0
    }

    .blog-sidebar .sidebar-box {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
        gap: 16px
    }

        .blog-sidebar .sidebar-box .popular-title {
            grid-column: 1 / -1;
            margin: 0
        }
}

@media (max-width: 600px) {
    .Blog {
        padding: 28px 16px 44px
    }

    .blogImgParallax {
        height: auto;
        min-height: 220px;
        padding: 40px 16px
    }

    .blogText h1 {
        font-size: 30px
    }

    .blogText h5 {
        font-size: 16px;
        padding: 0
    }

    .blog-image,
    .blog-image img {
        height: 200px
    }

    .blog-title {
        font-size: 20px
    }

    .article-meta {
        font-size: 12px
    }
}
