
/* =========================================================
   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
========================================================= */

.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%;

    padding: 15px 55px 15px 50px;

    border: 0;

    outline: 0;

    background: transparent;

    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;

    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;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.home-container {
    max-width: 1160px;

    margin: 0 auto;

    padding:
        52px
        24px
        100px;
}


/* =========================================================
   INTRO
========================================================= */

.home-intro {
    margin-bottom: 35px;
}

.home-kicker {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 12px;

    color: #594bea;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .6px;

    text-transform: uppercase;
}

.home-kicker::before {
    content: '';

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #6254f5;
}

.home-heading {
    max-width: 720px;

    margin: 0;

    color: #16171b;

    font-size: 42px;

    line-height: 1.13;

    letter-spacing: -1.8px;

    font-weight: 800;
}

.home-description {
    max-width: 650px;

    margin: 13px 0 0;

    color: #73747c;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   FEATURED GRID
========================================================= */

.featured-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(0, .9fr);

    gap: 28px;

    margin-bottom: 78px;
}


/* =========================================================
   MAIN FEATURE
========================================================= */

.main-feature {
    display: block;
}

.main-feature-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    border-radius: 20px;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.main-feature:hover .main-feature-image {
    transform: translateY(-2px);

    box-shadow:
        0 20px 45px rgba(20,20,30,.10);
}

.main-feature-category {
    display: inline-flex;

    margin-top: 20px;

    padding: 6px 10px;

    border-radius: 30px;

    background: #f0efff;

    color: #594bea;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.main-feature h2 {
    margin:
        11px
        0
        10px;

    color: #17181c;

    font-size: 31px;

    line-height: 1.25;

    letter-spacing: -1px;

    transition: .2s;
}

.main-feature:hover h2 {
    color: #5849e8;
}

.main-feature p {
    margin: 0;

    color: #707179;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   SIDE FEATURE STORIES
========================================================= */

.side-features {
    display: flex;

    flex-direction: column;

    gap: 0;
}

.side-story {
    display: grid;

    grid-template-columns:
        130px
        1fr;

    gap: 17px;

    padding: 0 0 20px;

    margin-bottom: 20px;

    border-bottom: 1px solid #ececf0;
}

.side-story:last-child {
    margin-bottom: 0;

    border-bottom: 0;
}

.side-story-image {
    width: 130px;

    aspect-ratio: 1.25 / 1;

    object-fit: cover;

    border-radius: 13px;
}

.story-category {
    display: block;

    margin-bottom: 5px;

    color: #6555e9;

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .6px;
}

.side-story h3 {
    margin: 0;

    color: #24252a;

    font-size: 15px;

    line-height: 1.42;

    letter-spacing: -.25px;

    transition: .2s;
}

.side-story:hover h3 {
    color: #594bea;
}


/* =========================================================
   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);
}


/* =========================================================
   SECTION HEADER
========================================================= */

.section-heading-row {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;
}

.section-heading-left {
    min-width: 0;
}

.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;
}

.view-all {
    flex-shrink: 0;

    color: #6253ed;

    font-size: 12px;

    font-weight: 700;

    transition: .2s;
}

.view-all:hover {
    transform: translateX(3px);
}


/* =========================================================
   LATEST GUIDES
========================================================= */

.latest-section {
    margin-bottom: 80px;
}

.article-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        38px
        25px;
}

.article-card {
    display: block;
}

.article-card-image {
    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 h3 {
    margin:
        5px
        0
        7px;

    color: #202126;

    font-size: 18px;

    line-height: 1.4;

    letter-spacing: -.4px;

    transition: .2s;
}

.article-card:hover h3 {
    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;
}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.category-section {
    margin-bottom: 80px;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.category-card {
    position: relative;

    min-height: 170px;

    padding: 24px;

    border: 1px solid #e8e8ee;

    border-radius: 17px;

    overflow: hidden;

    background: #fff;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.category-card:hover {
    transform: translateY(-4px);

    border-color: #dad6ff;

    box-shadow:
        0 15px 35px rgba(30,30,50,.07);
}

.category-icon {
    width: 43px;
    height: 43px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 26px;

    background: #f0efff;

    color: #594bea;

    font-size: 16px;

    font-weight: 800;
}

.category-card h3 {
    margin:
        0
        0
        4px;

    color: #222328;

    font-size: 16px;

    letter-spacing: -.3px;
}

.category-card p {
    margin: 0;

    color: #8a8b92;

    font-size: 11px;

    line-height: 1.5;
}

.category-arrow {
    position: absolute;

    right: 20px;

    bottom: 18px;

    color: #aaa9b3;

    font-size: 20px;

    transition: .2s;
}

.category-card:hover .category-arrow {
    right: 16px;

    color: #594bea;
}


/* =========================================================
   POPULAR SECTION
========================================================= */

.popular-section {
    margin-bottom: 80px;

    padding:
        40px
        42px;

    border-radius: 24px;

    background: #f7f7fa;
}

.popular-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    column-gap: 55px;
}

.popular-item {
    display: grid;

    grid-template-columns:
        43px
        1fr;

    gap: 15px;

    padding: 17px 0;

    border-bottom: 1px solid #e4e4e9;
}

.popular-item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.popular-number {
    color: #d0cedd;

    font-size: 29px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -1px;
}

.popular-item:hover .popular-number {
    color: #6657ee;
}

.popular-category {
    margin-bottom: 3px;

    color: #696a72;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.popular-item h3 {
    margin: 0;

    color: #28292e;

    font-size: 14px;

    line-height: 1.45;

    transition: .2s;
}

.popular-item:hover h3 {
    color: #594bea;
}

/* =========================================================
   MORE HELPFUL GUIDES
========================================================= */

.more-guides-section {
    margin-bottom: 80px;
}

.more-guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 30px;
}

.more-guide-card {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 18px;

    padding-bottom: 18px;

    border-bottom: 1px solid #ececf0;
}

.more-guide-image {
    width: 155px;
    height: 105px;

    object-fit: cover;

    border-radius: 13px;
}

.more-guide-content {
    min-width: 0;
}

.more-guide-category {
    display: block;

    margin-bottom: 5px;

    color: #6253ed;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .6px;
    text-transform: uppercase;
}

.more-guide-card h3 {
    margin: 0 0 6px;

    color: #222328;

    font-size: 16px;
    line-height: 1.4;

    letter-spacing: -.3px;

    transition: .2s;
}

.more-guide-card:hover h3 {
    color: #594bea;
}

.more-guide-card p {
    margin: 0;

    color: #81828a;

    font-size: 11.5px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* =========================================================
   NEWSLETTER
========================================================= */

.home-newsletter {
    position: relative;

    overflow: hidden;

    padding:
        55px
        60px;

    border-radius: 25px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,255,255,.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #5143e9,
            #7541e6
        );

    color: #fff;
}

.home-newsletter::after {
    content: '';

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    bottom: -160px;

    border-radius: 50%;

    border: 40px solid rgba(255,255,255,.07);
}

.newsletter-content {
    position: relative;

    z-index: 2;

    max-width: 600px;
}

.home-newsletter h2 {
    margin:
        0
        0
        9px;

    font-size: 31px;

    line-height: 1.2;

    letter-spacing: -1px;
}

.home-newsletter p {
    max-width: 520px;

    margin:
        0
        0
        23px;

    color: rgba(255,255,255,.78);

    font-size: 14px;

    line-height: 1.7;
}

.newsletter-form {
    display: flex;

    gap: 9px;

    max-width: 520px;
}

.newsletter-form input {
    min-width: 0;

    flex: 1;

    padding:
        13px
        16px;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 11px;

    outline: 0;

    background: rgba(255,255,255,.13);

    color: #fff;

    font-size: 13px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,.65);
}

.newsletter-form button {
    padding:
        13px
        20px;

    border: 0;

    border-radius: 11px;

    background: #fff;

    color: #5545e7;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding:
        68px
        24px
        25px;

    background: #141418;

    color: #fff;
}

.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;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .side-features {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 20px;
    }

    .side-story {
        grid-template-columns:
            115px
            1fr;

        margin: 0;

        padding:
            0
            0
            18px;
    }

    .side-story-image {
        width: 115px;
    }

    .article-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns:
            1.5fr 1fr 1fr;

        gap: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
.more-guides-section {
    margin-bottom: 60px;
}

.more-guides-grid {
    grid-template-columns: 1fr;
    gap: 17px;
}

.more-guide-card {
    grid-template-columns: 115px 1fr;
    gap: 14px;
}

.more-guide-image {
    width: 115px;
    height: 85px;
}

.more-guide-card h3 {
    font-size: 14px;
}

.more-guide-card p {
    display: none;
}
    .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;
    }


    /* HOME */

    .home-container {
        padding:
            35px
            18px
            65px;
    }

    .home-intro {
        margin-bottom: 27px;
    }

    .home-heading {
        font-size: 34px;

        line-height: 1.15;

        letter-spacing: -1.3px;
    }

    .home-description {
        font-size: 14px;
    }


    /* FEATURE */

    .featured-grid {
        gap: 31px;

        margin-bottom: 60px;
    }

    .main-feature-image {
        border-radius: 15px;
    }

    .main-feature h2 {
        font-size: 25px;

        line-height: 1.3;
    }

    .main-feature p {
        font-size: 13px;
    }

    .side-features {
        display: block;
    }

    .side-story {
        grid-template-columns:
            110px
            1fr;

        gap: 14px;

        padding-bottom: 17px;

        margin-bottom: 17px;
    }

    .side-story-image {
        width: 110px;

        border-radius: 11px;
    }

    .side-story h3 {
        font-size: 14px;
    }


    /* HEADINGS */

    .section-heading-row {
        margin-bottom: 21px;
    }

    .section-title {
        font-size: 25px;
    }


    /* ARTICLES */

    .latest-section,
    .category-section,
    .popular-section {
        margin-bottom: 60px;
    }

    .article-grid {
        grid-template-columns: 1fr;

        gap: 31px;
    }

    .article-card-image {
        border-radius: 13px;
    }

    .article-card h3 {
        font-size: 18px;
    }


    /* CATEGORY */

    .category-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }

    .category-card {
        min-height: 155px;

        padding: 18px;
    }

    .category-icon {
        width: 38px;
        height: 38px;

        margin-bottom: 22px;
    }


    /* POPULAR */

    .popular-section {
        margin-left: -18px;

        margin-right: -18px;

        padding:
            32px
            18px;

        border-radius: 0;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .popular-item {
        border-bottom:
            1px solid #e4e4e9 !important;
    }

    .popular-item:last-child {
        border-bottom: 0 !important;
    }


    /* NEWSLETTER */

    .home-newsletter {
        padding:
            36px
            24px;

        border-radius: 18px;
    }

    .home-newsletter h2 {
        font-size: 25px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }


    /* 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 MOBILE
========================================================= */

@media (max-width: 420px) {

    .home-heading {
        font-size: 31px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 135px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

}
