/* =========================================================
   INTELLIVEST — INSIGHTS / BLOG
========================================================= */


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

.insights-hero {
    position: relative;
    overflow: hidden;
    padding: var(--section-space, 90px) 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(189, 113, 62, 0.18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #072138 0%,
            #0E3961 100%
        );
}

.insights-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -100px;
    bottom: -210px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
}

.insights-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.insights-hero__eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #BD713E;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.insights-hero h1 {
    margin: 0 0 20px;
    color: #fff;
}

.insights-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    line-height: 1.75;
}


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

.insights-listing {
    padding: var(--section-space, 90px) 0;
    background: #f7fafc;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.insights-heading {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.insights-heading__line {
    display: inline-block;
    width: 36px;
    height: 1px;
    margin: 0 10px 4px;
    background: #9babb7;
}

.insights-heading__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #BD713E;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.insights-heading h2 {
    margin: 0 0 14px;
    color: #072138;
}

.insights-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: #667784;
    line-height: 1.7;
}


/* =========================================================
   GRID
========================================================= */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


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

.insight-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce4e9;
    border-radius: 4px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 113, 62, 0.45);
    box-shadow: 0 18px 40px rgba(7, 33, 56, 0.09);
}


/* IMAGE */

.insight-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e8eef2;
}

.insight-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.insight-card:hover .insight-card__image img {
    transform: scale(1.035);
}

.insight-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #072138,
        #0E3961
    );
}

.insight-card__placeholder span {
    color: rgba(255,255,255,0.65);
    font-size: 20px;
    font-weight: 700;
}


/* CARD BODY */

.insight-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}


/* META */

.insight-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
    color: #74828c;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.insight-card__separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #BD713E;
}

.insight-card__category {
    color: #BD713E;
}


/* TITLE */

.insight-card__title {
    margin: 0 0 14px;
    color: #072138;
    font-size: 21px;
    line-height: 1.35;
}

.insight-card__title a {
    color: inherit;
    text-decoration: none;
}


/* EXCERPT */

.insight-card__excerpt {
    margin-bottom: 24px;
    color: #667784;
    font-size: 14px;
    line-height: 1.7;
}


/* READ MORE */

.insight-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    color: #072138;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.insight-card__link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.insight-card__link:hover {
    color: #BD713E;
}

.insight-card__link:hover svg {
    transform: translateX(4px);
}


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

.insights-pagination {
    margin-top: 55px;
}

.insights-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.insights-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d7e0e6;
    background: #fff;
    color: #072138;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.insights-pagination .page-numbers:hover,
.insights-pagination .page-numbers.current {
    border-color: #072138;
    background: #072138;
    color: #fff;
}


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

.insights-empty {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #dce4e9;
}

.insights-empty h2 {
    margin: 0;
}


/* =========================================================
   RTL / FARSI
========================================================= */

html[dir="rtl"] .insights-hero__content {
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .insight-card__link svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .insight-card__link:hover svg {
    transform: scaleX(-1) translateX(4px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

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

}


@media (max-width: 767px) {

    .insights-hero {
        padding: 65px 0;
    }

    .insights-hero h1 {
        font-size: 38px;
    }

    .insights-listing {
        padding: 65px 0;
    }

    .insights-heading {
        margin-bottom: 34px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .insight-card__body {
        padding: 22px;
    }

}


@media (max-width: 480px) {

    .insights-hero h1 {
        font-size: 32px;
    }

    .insights-hero p {
        font-size: 15px;
    }

    .insight-card__title {
        font-size: 19px;
    }

}