/* =====================================================
   WAYWEGO BLOG
===================================================== */

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


.blog-page {
    --primary: #5b00ff;
    --primary2: #823cff;

    --dark: #15131f;
    --text: #1e1a26;
    --muted: #74707f;

    --soft: #f8f5ff;
    --border: #ebe6f3;

    width: 100%;

    overflow: hidden;

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}


.blog-container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: auto;
}


/* =====================================================
   GLOBAL
===================================================== */

.blog-main-heading {
    margin: 0;

    color: var(--dark);

    font-size: 42px;

    line-height: 1.12;

    font-weight: 850;

    letter-spacing: -1.4px;
}


.blog-page p {
    font-size: 16px;

    line-height: 1.8;
}


.blog-kicker {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 14px;

    color: var(--primary);

    font-size: 16px;

    font-weight: 800;
}


.blog-kicker::before {
    content: "";

    width: 28px;

    height: 2px;

    background: var(--primary);
}


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

.blog-hero {
    position: relative;

    overflow: hidden;

    padding: 100px 0 95px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(91,0,255,.17),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f7f3ff
        );
}


.blog-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);
}


.blog-orb-one {
    width: 350px;
    height: 350px;

    right: -100px;
    top: -100px;

    background:
        rgba(91,0,255,.15);
}


.blog-orb-two {
    width: 280px;
    height: 280px;

    bottom: -120px;
    left: -100px;

    background:
        rgba(128,60,255,.10);
}


.blog-hero-content {
    position: relative;

    z-index: 2;

    max-width: 760px;

    margin: auto;

    text-align: center;
}


.blog-hero-content .blog-kicker {
    justify-content: center;
}


.blog-hero-content p {
    max-width: 650px;

    margin: 20px auto 0;

    color: var(--muted);
}


/* SEARCH */

.blog-search {
    display: flex;

    max-width: 590px;

    margin: 31px auto 0;

    padding: 6px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: white;

    box-shadow:
        0 14px 35px
        rgba(42,18,90,.08);
}


.blog-search input {
    flex: 1;

    min-width: 0;

    height: 48px;

    padding: 0 15px;

    border: 0;

    outline: 0;

    color: var(--text);

    background: transparent;

    font-size: 16px;
}


.blog-search button {
    min-width: 115px;

    border: 0;

    border-radius: 9px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    font-size: 16px;

    font-weight: 750;

    cursor: pointer;
}


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

.blog-category-section {
    padding: 25px 0;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}


.blog-category-list {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;
}


.blog-category-list a {
    padding: 9px 14px;

    border-radius: 50px;

    color: #625c69;

    text-decoration: none;

    font-size: 16px;

    transition: .25s ease;
}


.blog-category-list a:hover,
.blog-category-list a.active {
    color: var(--primary);

    background:
        rgba(91,0,255,.08);
}


/* =====================================================
   FEATURED
===================================================== */

.blog-featured-section {
    padding: 90px 0 45px;
}


.blog-featured-card {
    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    min-height: 440px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 23px;

    background: white;

    box-shadow:
        0 25px 65px
        rgba(43,17,92,.10);
}


.blog-featured-image {
    min-height: 440px;
}


.blog-featured-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;
}


.blog-placeholder {
    display: grid;

    width: 100%;

    height: 100%;

    min-height: 250px;

    place-items: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #4400ca,
            #823cff
        );

    font-size: 70px;

    font-weight: 900;
}


.blog-featured-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 45px;
}


.blog-featured-label {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 800;
}


.blog-category {
    display: inline-flex;

    width: fit-content;

    padding: 7px 11px;

    border-radius: 30px;

    color: var(--primary);

    background:
        rgba(91,0,255,.08);

    font-size: 14px;

    font-weight: 700;
}


.blog-featured-content h2 {
    margin: 17px 0 0;

    color: var(--dark);

    font-size: 32px;

    line-height: 1.25;
}


.blog-featured-content p {
    margin: 17px 0 0;

    color: var(--muted);
}


.blog-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 20px;

    color: #8c8694;

    font-size: 14px;
}


.blog-read-button {
    display: inline-flex;

    width: fit-content;

    margin-top: 26px;

    padding: 13px 19px;

    border-radius: 9px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary2)
        );

    text-decoration: none;

    font-size: 16px;

    font-weight: 750;
}


/* =====================================================
   ARTICLE LIST
===================================================== */

.blog-list-section {
    padding: 60px 0 100px;
}


.blog-section-heading {
    display: flex;

    justify-content:
        space-between;

    align-items: flex-end;

    gap: 30px;

    margin-bottom: 42px;
}


.blog-section-heading > p {
    max-width: 360px;

    margin: 0;

    color: var(--muted);
}


.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 24px;
}


.blog-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 17px;

    background: white;

    box-shadow:
        0 10px 30px
        rgba(42,18,90,.05);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


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

    box-shadow:
        0 20px 45px
        rgba(42,18,90,.11);
}


.blog-card-image {
    position: relative;

    display: block;

    height: 230px;

    overflow: hidden;
}


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

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease;
}


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


.blog-card-image > span {
    position: absolute;

    left: 15px;

    bottom: 15px;

    padding: 7px 10px;

    border-radius: 30px;

    color: var(--primary);

    background:
        rgba(255,255,255,.94);

    font-size: 13px;

    font-weight: 750;
}


.blog-card-content {
    padding: 23px;
}


.blog-card-meta {
    display: flex;

    justify-content:
        space-between;

    gap: 10px;

    color: #918b98;

    font-size: 13px;
}


.blog-card h3 {
    margin: 14px 0 0;

    font-size: 20px;

    line-height: 1.4;
}


.blog-card h3 a {
    color: var(--dark);

    text-decoration: none;
}


.blog-card p {
    margin: 11px 0 0;

    color: var(--muted);
}


.blog-card-link {
    display: inline-flex;

    margin-top: 17px;

    color: var(--primary);

    text-decoration: none;

    font-size: 16px;

    font-weight: 750;
}


.blog-empty {
    padding: 65px 20px;

    border-radius: 16px;

    text-align: center;

    background: var(--soft);
}


.blog-empty h3 {
    margin: 0;

    font-size: 24px;
}


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

@media (max-width: 991px) {

    .blog-featured-card {
        grid-template-columns: 1fr;
    }


    .blog-featured-image {
        min-height: 360px;
    }


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

}


@media (max-width: 767px) {

    .blog-container {
        width:
            calc(100% - 32px);
    }


    .blog-main-heading {
        font-size: 34px;
    }


    .blog-hero {
        padding: 70px 0;
    }


    .blog-featured-section {
        padding-top: 65px;
    }


    .blog-featured-content {
        padding: 30px;
    }


    .blog-section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 575px) {

    .blog-container {
        width:
            calc(100% - 28px);
    }


    .blog-main-heading {
        font-size: 32px;
    }


    .blog-search {
        flex-direction: column;

        padding: 7px;
    }


    .blog-search button {
        min-height: 47px;
    }


    .blog-featured-image {
        min-height: 260px;
    }


    .blog-featured-content {
        padding: 24px;
    }


    .blog-featured-content h2 {
        font-size: 26px;
    }


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


    .blog-list-section {
        padding-bottom: 70px;
    }

}