
/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #fff;

    color: #202124;

    font-family:
        'Inter',
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: inherit;

    text-decoration: none;
}

button,
input {
    font-family: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;

    background:
        rgba(255,255,255,.96);

    border-bottom:
        1px solid #e9e9ed;

    position: sticky;

    top: 0;

    z-index: 1000;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);
}

.header-inner {
    max-width: 1240px;

    height: 74px;

    margin: 0 auto;

    padding:
        0
        24px;

    display: flex;

    align-items: center;

    gap: 38px;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.logo-icon {
    width: 37px;

    height: 37px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #5b4df7,
            #8d46f5
        );

    color: #fff;

    font-size: 20px;

    font-weight: 800;

    box-shadow:
        0 7px
        18px
        rgba(91,77,247,.24);
}

.logo-text {
    color: #17171b;

    font-size: 21px;

    font-weight: 800;

    letter-spacing:
        -.7px;
}


/* =========================================================
   NAV
========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    gap: 29px;

    flex: 1;
}

.main-nav a {
    color: #4b4c53;

    font-size: 14px;

    font-weight: 600;

    transition: .2s;
}

.main-nav a:hover {
    color: #5b4df7;
}

.header-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.search-button,
.menu-button {
    width: 42px;

    height: 42px;

    border: 0;

    border-radius: 12px;

    background: #f5f5f8;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: .2s;
}

.search-button:hover,
.menu-button:hover {
    background: #eeeeF5;
}

.search-button svg,
.menu-button svg {
    width: 19px;

    height: 19px;
}

.menu-button {
    display: none;
}


/* =========================================================
   SEARCH PANEL
========================================================= */

.search-panel {
    background: #fff;

    border-bottom:
        1px solid #e9e9ed;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height .3s ease,
        opacity .25s ease;
}

.search-panel.active {
    max-height: 110px;

    opacity: 1;
}

.search-panel-inner {
    max-width: 1160px;

    margin: 0 auto;

    padding:
        17px
        24px;
}

.search-form {
    position: relative;

    display: flex;

    align-items: center;

    background: #f5f5f8;

    border:
        1px solid #e7e7ec;

    border-radius: 14px;

    transition: .2s;
}

.search-form:focus-within {
    background: #fff;

    border-color:
        #bdb8f8;

    box-shadow:
        0 0 0 4px
        rgba(91,77,247,.08);
}

.search-form-icon {
    position: absolute;

    left: 18px;

    width: 19px;

    height: 19px;

    color: #85868d;

    pointer-events: none;
}

.search-form input {
    width: 100%;

    border: 0;

    outline: 0;

    background:
        transparent;

    padding:
        15px
        55px
        15px
        50px;

    color: #222329;

    font-size: 15px;
}

.search-form input::placeholder {
    color: #96979e;
}

.search-close {
    position: absolute;

    right: 11px;

    width: 34px;

    height: 34px;

    border: 0;

    border-radius: 9px;

    background:
        transparent;

    color: #777880;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;
}

.search-close:hover {
    background: #e9e9ee;

    color: #222;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    display: none;

    background: #fff;

    border-bottom:
        1px solid #e9e9ed;
}

.mobile-menu-inner {
    padding:
        7px
        18px
        16px;
}

.mobile-menu-inner a {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    padding:
        14px
        3px;

    border-bottom:
        1px solid #eeeeF2;

    color: #303137;

    font-size: 15px;

    font-weight: 600;
}

.mobile-menu-inner a:last-child {
    border-bottom: 0;
}

.mobile-menu-inner a span {
    color: #aaaab1;

    font-size: 22px;

    font-weight: 400;
}


/* =========================================================
   CATEGORY HERO
========================================================= */

.category-hero {
    max-width: 1160px;

    margin: 0 auto;

    padding:
        58px
        24px
        46px;
}

.breadcrumb {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 24px;

    color: #888991;

    font-size: 12px;

    font-weight: 500;
}

.breadcrumb a:hover {
    color: #5b4df7;
}

.breadcrumb-separator {
    color: #c1c1c6;
}

.category-label {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 13px;

    color: #594bea;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .7px;
}

.category-label-dot {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #6254f5;
}

.category-title {
    margin: 0;

    color: #17181c;

    font-size: 45px;

    line-height: 1.13;

    font-weight: 800;

    letter-spacing:
        -1.8px;
}

.category-description {
    max-width: 700px;

    margin:
        14px
        0
        0;

    color: #73747c;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   CONTENT
========================================================= */

.category-content {
    max-width: 1160px;

    margin:
        0
        auto
        100px;

    padding:
        0
        24px;
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-heading-row {
    display: flex;

    align-items: flex-end;

    justify-content:
        space-between;

    gap: 20px;

    padding-top: 30px;

    margin-bottom: 28px;

    border-top:
        1px solid #ececf0;
}

.section-eyebrow {
    margin-bottom: 5px;

    color: #6253ed;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .8px;

    text-transform: uppercase;
}

.section-title {
    margin: 0;

    color: #18191d;

    font-size: 29px;

    line-height: 1.25;

    letter-spacing:
        -.9px;
}

.article-count {
    color: #92939a;

    font-size: 12px;
}


/* =========================================================
   ARTICLE GRID
========================================================= */

.article-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        42px
        25px;
}

.article-card {
    display: block;
}

.article-card-image {
    display: block;

    width: 100%;

    aspect-ratio:
        16 / 10;

    object-fit: cover;

    border-radius: 15px;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.article-card:hover
.article-card-image {
    transform:
        translateY(-3px);

    box-shadow:
        0 14px
        35px
        rgba(20,20,30,.09);
}

.card-category {
    display: inline-block;

    margin-top: 15px;

    color: #6253ed;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;
}

.article-card h2 {
    margin:
        5px
        0
        7px;

    color: #202126;

    font-size: 18px;

    line-height: 1.4;

    letter-spacing:
        -.4px;

    transition: .2s;
}

.article-card:hover h2 {
    color: #594bea;
}

.article-card p {
    margin: 0;

    color: #7a7b82;

    font-size: 12.5px;

    line-height: 1.65;

    display:
        -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient:
        vertical;

    overflow: hidden;
}


/* =========================================================
   IMAGE PLACEHOLDER
========================================================= */

.image-placeholder {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,.7),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #eeeefe,
            #e4e1fb
        );

    display: flex;

    align-items: center;

    justify-content: center;
}

.placeholder-icon {
    width: 54px;

    height: 54px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #5b4df7,
            #8d46f5
        );

    color: #fff;

    font-size: 25px;

    font-weight: 800;

    box-shadow:
        0 10px
        25px
        rgba(91,77,247,.2);
}


/* =========================================================
   NO ARTICLES
========================================================= */

.no-results {
    padding:
        60px
        30px;

    border:
        1px solid #e8e8ec;

    border-radius: 18px;

    background: #fafafa;

    text-align: center;
}

.no-results-icon {
    width: 55px;

    height: 55px;

    margin:
        0
        auto
        18px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #efedff;

    color: #5d4cec;

    font-size: 22px;

    font-weight: 800;
}

.no-results h2 {
    margin:
        0
        0
        7px;

    color: #24252a;

    font-size: 20px;
}

.no-results p {
    margin: 0;

    color: #85868d;

    font-size: 13px;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 65px;
}

.page-link {
    min-width: 40px;

    height: 40px;

    padding:
        0
        12px;

    border:
        1px solid #e5e5ea;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff;

    color: #55565d;

    font-size: 12px;

    font-weight: 700;

    transition: .2s;
}

.page-link:hover {
    border-color: #cfcafc;

    color: #594bea;
}

.page-link.active {
    border-color: #5b4df7;

    background: #5b4df7;

    color: #fff;
}

.page-link.disabled {
    opacity: .35;

    pointer-events: none;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #141418;

    color: #fff;

    padding:
        68px
        24px
        25px;
}

.footer-inner {
    max-width: 1160px;

    margin: 0 auto;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1fr
        1fr;

    gap: 60px;

    padding-bottom: 55px;
}

.footer-brand
.site-logo {
    margin-bottom: 18px;
}

.footer-brand
.logo-text {
    color: #fff;
}

.footer-brand p {
    max-width: 340px;

    margin: 0;

    color: #97979f;

    font-size: 13px;

    line-height: 1.75;
}

.footer-column h4 {
    margin:
        0
        0
        17px;

    color: #fff;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .8px;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-links a {
    color: #92929a;

    font-size: 13px;

    transition: .2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 23px;

    border-top:
        1px solid #29292e;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

    color: #77777f;

    font-size: 11px;
}

.footer-bottom-links {
    display: flex;

    gap: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        display: none;
    }

    .header-inner {
        justify-content:
            space-between;
    }

    .menu-button {
        display: flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .article-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns:
            1.5fr
            1fr
            1fr;

        gap: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .header-inner {
        height: 64px;

        padding:
            0
            17px;
    }

    .logo-icon {
        width: 34px;

        height: 34px;

        border-radius: 10px;

        font-size: 18px;
    }

    .logo-text {
        font-size: 19px;
    }

    .search-button,
    .menu-button {
        width: 38px;

        height: 38px;
    }

    .search-panel-inner {
        padding:
            13px
            17px;
    }

    .search-form input {
        font-size: 16px;
    }


    /* CATEGORY */

    .category-hero {
        padding:
            32px
            18px
            35px;
    }

    .breadcrumb {
        margin-bottom: 19px;

        font-size: 11px;
    }

    .category-title {
        font-size: 34px;

        letter-spacing:
            -1.3px;
    }

    .category-description {
        font-size: 14px;

        line-height: 1.65;
    }


    /* CONTENT */

    .category-content {
        margin-bottom: 70px;

        padding:
            0
            18px;
    }

    .section-heading-row {
        padding-top: 25px;

        margin-bottom: 23px;
    }

    .section-title {
        font-size: 25px;
    }


    /* GRID */

    .article-grid {
        grid-template-columns: 1fr;

        gap: 32px;
    }

    .article-card-image {
        border-radius: 13px;
    }

    .article-card h2 {
        font-size: 18px;
    }


    /* PAGINATION */

    .pagination {
        margin-top: 48px;

        gap: 5px;
    }

    .page-link {
        min-width: 37px;

        height: 37px;

        padding:
            0
            10px;
    }


    /* FOOTER */

    .site-footer {
        padding:
            50px
            20px
            22px;
    }

    .footer-grid {
        grid-template-columns:
            1fr
            1fr;

        gap:
            38px
            25px;
    }

    .footer-brand {
        grid-column:
            1 / -1;
    }

    .footer-bottom {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 420px) {

    .category-title {
        font-size: 31px;
    }

    .footer-grid {
        grid-template-columns:
            1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

}