/* =========================================================
   BLOG ARCHIVE PAGE
========================================================= */

.tl-blog-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: #10264d;
}

.tl-blog-page *,
.tl-blog-page *::before,
.tl-blog-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   ARCHIVE HERO
========================================================= */

.tl-archive-header {
    position: relative;
    padding: 65px 0 55px;

    background:
        linear-gradient(
            135deg,
            #f5f9ff 0%,
            #ffffff 48%,
            #eef6ff 100%
        );

    border-bottom: 1px solid #e7edf4;
}

.tl-archive-header .tl-container {
    position: relative;
    z-index: 2;
}

.tl-blog-section-kicker {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 0 11px;

    margin-bottom: 12px;

    border-radius: 4px;

    background: #edf5ff;
    color: #fb5703;

    font-size: 16px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: .3px;
    text-transform: uppercase;
}

.tl-archive-header h1 {
    max-width: 850px;

    margin: 0;

    color: #0a2551;

    font-size: clamp(24px, 3vw, 44px);
    line-height: 1.08;
    font-weight: 700;

    letter-spacing: -1.5px;
}

.tl-archive-description {
    max-width: 720px;

    margin-top: 14px;

    color: #66758a;

    font-size: 16px;
    line-height: 1.7;
}

.tl-archive-description p {
    margin: 0;
}


/* =========================================================
   BLOG LISTING
========================================================= */

.tl-blog-listing {
    padding: 48px 0 60px;
}

.tl-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.tl-blog-card {
    min-width: 0;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid #e0e7ef;
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(12, 39, 73, 0.05);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.tl-blog-card:hover {
    transform: translateY(-4px);

    border-color: #d4dee9;

    box-shadow:
        0 14px 30px rgba(12, 39, 73, 0.10);
}


/* =========================================================
   IMAGE
========================================================= */

.tl-blog-card-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #edf2f7;
}

.tl-blog-card-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    transition: transform .35s ease;
}

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


/* fallback when no featured image */

.tl-blog-card-image:has(img) {
    background: #edf2f7;
}

.tl-blog-card-image:not(:has(img)) {
    background:
        linear-gradient(
            135deg,
            #eaf3ff,
            #f7fbff
        );
}


/* =========================================================
   CATEGORY BADGE
========================================================= */

.tl-blog-category {
    position: absolute;

    left: 14px;
    bottom: 13px;

    z-index: 3;

    min-height: 25px;

    padding: 0 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;

    background: #2f74ca;
    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, .12);

    font-size: 12px;
    line-height: 1;
    font-weight: 600;

    letter-spacing: .25px;

    text-transform: uppercase;
}


/* =========================================================
   BODY
========================================================= */

.tl-blog-card-body {
    flex: 1;

    padding: 18px 18px 19px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   META
========================================================= */

.tl-blog-meta {
    margin-bottom: 10px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px 13px;

    color: #8190a4;

    font-size: 16px;
    line-height: 1.3;
}

.tl-blog-meta span {
    position: relative;
}

.tl-blog-meta span + span::before {
    content: "";

    position: absolute;

    left: -7px;
    top: 50%;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #aab3bf;

    transform: translateY(-50%);
}


/* =========================================================
   TITLE
========================================================= */

.tl-blog-card-title {
    margin: 0;

    font-size: 20px;
    line-height: 1.28;
    font-weight: 600;

    letter-spacing: -0.35px;
}

.tl-blog-card-title a {
    color: #102b58;

    text-decoration: none;

    transition: color .2s ease;
}

.tl-blog-card-title a:hover {
    color: #f4511e;
}


/* =========================================================
   EXCERPT
========================================================= */

.tl-blog-card-body > p {
    margin: 11px 0 17px;

    color: #66758a;

    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   READ MORE
========================================================= */

.tl-blog-read-more {
    margin-top: auto;

    display: inline-flex;
    align-items: center;

    width: fit-content;

    color: #175eaa;

    font-size: 16px;
    line-height: 1;
    font-weight: 600;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.tl-blog-read-more:hover {
    color: #f4511e;

    transform: translateX(2px);
}


/* =========================================================
   PAGINATION
========================================================= */

.tl-blog-pagination {
    margin-top: 42px;
}

.tl-blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;
}

.tl-blog-pagination .page-numbers {
    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce4ed;
    border-radius: 6px;

    background: #ffffff;
    color: #234568;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.tl-blog-pagination .page-numbers:hover {
    border-color: #286dc0;

    background: #f3f8fe;
    color: #175ca4;
}

.tl-blog-pagination .page-numbers.current {
    border-color: #0d4f98;

    background: #0d4f98;
    color: #ffffff;
}

.tl-blog-pagination .prev,
.tl-blog-pagination .next {
    min-width: auto;

    padding-inline: 15px;
}


/* =========================================================
   EMPTY RESULT
========================================================= */

.tl-blog-listing .tl-container > p {
    padding: 50px 20px;

    border: 1px dashed #d7e0e9;
    border-radius: 8px;

    background: #f9fbfd;
    color: #718096;

    text-align: center;

    font-size: 16px;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1280px) {

    .tl-blog-grid {
        gap: 26px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .tl-archive-header {
        padding: 52px 0 45px;
    }

    .tl-blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .tl-blog-card-title {
        font-size: 19px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .tl-archive-header {
        padding: 38px 0 35px;
    }

    .tl-archive-header h1 {
        font-size: 32px;
    }

    .tl-archive-description {
        font-size: 16px;
    }

    .tl-blog-listing {
        padding: 32px 0 45px;
    }

    .tl-blog-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .tl-blog-card {
        border-radius: 8px;
    }

    .tl-blog-card-image {
        aspect-ratio: 16 / 9;
    }

    .tl-blog-card-body {
        padding: 16px;
    }

    .tl-blog-card-title {
        font-size: 19px;
    }

    .tl-blog-card-body > p {
        font-size: 10.5px;
    }

    .tl-blog-pagination {
        margin-top: 30px;
    }

    .tl-blog-pagination .page-numbers {
        min-width: 36px;
        height: 36px;

        padding: 0 10px;

        font-size: 16px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .tl-archive-header h1 {
        font-size: 29px;
    }

    .tl-blog-card-title {
        font-size: 18px;
    }

    .tl-blog-pagination .prev,
    .tl-blog-pagination .next {
        width: 100%;
    }

}

/* =========================================================
   BLOG CARD AUTHOR FOOTER
========================================================= */

.tl-blog-card-footer {
    margin-top: auto;
    padding-top: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    border-top: 1px solid #edf0f3;
}

.tl-blog-card-author {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;
}

.tl-blog-card-author-image {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    overflow: hidden;

    border-radius: 50%;

    background: #edf2f7;
}

.tl-blog-card-author-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover;
}

.tl-blog-card-author small {
    display: block;

    color: #8a95a4;

    font-size: 16px;
    line-height: 1;
}

.tl-blog-card-author strong {
    display: block;

    max-width: 120px;

    margin-top: 3px;

    overflow: hidden;

    color: #314867;

    font-size: 16px;
    line-height: 1.2;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Read More */

.tl-blog-card-footer .tl-blog-read-more {
    flex: 0 0 auto;

    margin: 0;

    gap: 5px;
}

.tl-blog-card-footer .tl-blog-read-more svg {
    width: 14px !important;
    height: 14px !important;

    transition: transform .2s ease;
}

.tl-blog-card-footer .tl-blog-read-more:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   NO FEATURED IMAGE
========================================================= */

.tl-blog-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #e9f3ff,
            #f8fbff
        );

    color: #3475c5;
}

.tl-blog-image-placeholder svg {
    width: 60px !important;
    height: 60px !important;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.tl-blog-empty {
    max-width: 600px;

    margin: 25px auto;

    padding: 55px 30px;

    border: 1px solid #dfe6ee;
    border-radius: 10px;

    background: #f9fbfd;

    text-align: center;
}

.tl-blog-empty-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf4ff;
    color: #2e71c4;
}

.tl-blog-empty-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.tl-blog-empty h2 {
    margin: 0;

    color: #102c58;

    font-size: 23px;
}

.tl-blog-empty p {
    max-width: 420px;

    margin: 10px auto 18px;

    color: #718095;

    font-size: 16px;
    line-height: 1.65;
}

.tl-blog-empty a {
    min-height: 40px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #0d4f98;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .tl-blog-card-footer {
        align-items: flex-start;
    }

    .tl-blog-card-author strong {
        max-width: 105px;
    }

    .tl-blog-empty {
        padding: 40px 20px;
    }

}