/*
==========================================================
Qalamation
Public Categories
==========================================================
*/


/*
|--------------------------------------------------------------------------
| Categories Hero
|--------------------------------------------------------------------------
*/

.categories-hero {

    position: relative;

    padding: 110px 0 120px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 85% 20%,
            rgba(25, 135, 84, 0.13),
            transparent 30%
        ),

        radial-gradient(
            circle at 10% 90%,
            rgba(25, 135, 84, 0.08),
            transparent 25%
        ),

        #f7fcf9;

}

.categories-hero::before {

    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.35;

    background-image:

        linear-gradient(
            rgba(25, 135, 84, 0.05)
            1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(25, 135, 84, 0.05)
            1px,
            transparent 1px
        );

    background-size: 60px 60px;

}

.categories-hero-shape {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

}

.categories-hero-shape-one {

    width: 380px;

    height: 380px;

    right: -190px;

    top: -190px;

    border:

        75px solid

        rgba(
            25,
            135,
            84,
            0.05
        );

}

.categories-hero-shape-two {

    width: 190px;

    height: 190px;

    left: -95px;

    bottom: -95px;

    background:

        rgba(
            25,
            135,
            84,
            0.05
        );

}

.categories-hero-inner {

    position: relative;

    z-index: 2;

    max-width: 900px;

    margin: 0 auto;

    text-align: center;

}

.categories-hero-label {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 16px;

    border-radius: 50px;

    color: #198754;

    background:

        rgba(
            25,
            135,
            84,
            0.09
        );

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.7px;

}

.categories-hero h1 {

    margin: 30px 0 0;

    color: #192d22;

    font-size: clamp(
        52px,
        7vw,
        84px
    );

    font-weight: 800;

    line-height: 1.03;

    letter-spacing: -5px;

}

.categories-hero h1 span {

    display: block;

    color: #198754;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    font-style: italic;

}

.categories-hero p {

    max-width: 650px;

    margin: 30px auto 0;

    color: #718078;

    font-size: 16px;

    line-height: 1.8;

}

.categories-hero-stats {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 30px;

    margin-top: 45px;

}

.categories-hero-stats div {

    text-align: center;

}

.categories-hero-stats strong {

    display: block;

    color: #243b2f;

    font-size: 27px;

    font-weight: 800;

}

.categories-hero-stats span {

    display: block;

    margin-top: 3px;

    color: #8b9991;

    font-size: 10px;

}

.categories-hero-stats > i {

    width: 1px;

    height: 40px;

    background: #d9e5de;

}


/*
|--------------------------------------------------------------------------
| Categories Section
|--------------------------------------------------------------------------
*/

.categories-explore-section {

    padding: 110px 0 125px;

    background: #ffffff;

}

.categories-section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 55px;

}

.categories-section-heading > div {

    max-width: 620px;

}

.categories-section-heading span {

    display: block;

    margin-bottom: 12px;

    color: #198754;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

}

.categories-section-heading h2 {

    margin: 0;

    color: #20362a;

    font-size: 48px;

    font-weight: 800;

    line-height: 1.12;

    letter-spacing: -2.5px;

}

.categories-section-heading > p {

    max-width: 410px;

    margin: 0;

    color: #7a8981;

    font-size: 13px;

    line-height: 1.8;

}


/*
|--------------------------------------------------------------------------
| Categories Grid
|--------------------------------------------------------------------------
*/

.categories-explore-grid {

    display: grid;

    grid-template-columns:

        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 25px;

}


/*
|--------------------------------------------------------------------------
| Category Card
|--------------------------------------------------------------------------
*/

.category-explore-card {

    position: relative;

    min-height: 380px;

    padding: 35px;

    border: 1px solid #e0e9e4;

    border-radius: 25px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    transition:

        transform 0.35s ease,

        box-shadow 0.35s ease,

        border-color 0.35s ease;

}

.category-explore-card:hover {

    transform: translateY(-8px);

    border-color:

        rgba(
            25,
            135,
            84,
            0.25
        );

    box-shadow:

        0 25px 65px

        rgba(
            29,
            68,
            47,
            0.11
        );

}

.category-card-number {

    position: absolute;

    right: 28px;

    top: 27px;

    color: #c6d1cb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}

.category-card-icon {

    position: relative;

    z-index: 2;

    width: 65px;

    height: 65px;

    border-radius: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #198754;

    background:

        rgba(
            25,
            135,
            84,
            0.09
        );

    font-size: 23px;

    transition:

        color 0.3s ease,

        background 0.3s ease,

        transform 0.3s ease;

}

.category-explore-card:hover
.category-card-icon {

    color: #ffffff;

    background: #198754;

    transform: rotate(-6deg);

}

.category-card-content {

    position: relative;

    z-index: 2;

    margin-top: 35px;

}

.category-card-count {

    color: #198754;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.5px;

}

.category-card-content h3 {

    margin: 12px 0 0;

    color: #253c30;

    font-size: 27px;

    font-weight: 800;

    letter-spacing: -1px;

}

.category-card-content p {

    margin: 15px 0 0;

    color: #7c8b83;

    font-size: 12px;

    line-height: 1.8;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}

.category-card-link {

    position: relative;

    z-index: 2;

    margin-top: auto;

    padding-top: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #53685d;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

}

.category-card-link i {

    width: 40px;

    height: 40px;

    border: 1px solid #dce6e1;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #198754;

    background: #ffffff;

    font-size: 10px;

    transform: rotate(-35deg);

    transition:

        transform 0.25s ease,

        color 0.25s ease,

        background 0.25s ease;

}

.category-explore-card:hover
.category-card-link {

    color: #198754;

}

.category-explore-card:hover
.category-card-link i {

    color: #ffffff;

    background: #198754;

    border-color: #198754;

    transform: rotate(0);

}

.category-card-decoration {

    position: absolute;

    right: -35px;

    bottom: -45px;

    color:

        rgba(
            25,
            135,
            84,
            0.035
        );

    font-size: 150px;

    transform: rotate(-15deg);

    pointer-events: none;

    transition:

        transform 0.5s ease,

        color 0.5s ease;

}

.category-explore-card:hover
.category-card-decoration {

    color:

        rgba(
            25,
            135,
            84,
            0.055
        );

    transform:

        rotate(-5deg)

        scale(1.08);

}


/*
|--------------------------------------------------------------------------
| Empty Categories
|--------------------------------------------------------------------------
*/

.categories-empty {

    padding: 90px 30px;

    border: 1px dashed #ccd9d2;

    border-radius: 25px;

    text-align: center;

    background: #fafcfb;

}

.categories-empty-icon {

    width: 80px;

    height: 80px;

    margin: 0 auto;

    border-radius: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #198754;

    background:

        rgba(
            25,
            135,
            84,
            0.09
        );

    font-size: 28px;

}

.categories-empty h3 {

    margin: 25px 0 0;

    color: #283f33;

    font-size: 25px;

    font-weight: 800;

}

.categories-empty p {

    margin: 10px 0 0;

    color: #829087;

    font-size: 13px;

}


/*
|--------------------------------------------------------------------------
| Writing CTA
|--------------------------------------------------------------------------
*/

.categories-writing-cta {

    padding: 0 0 120px;

    background: #ffffff;

}

.categories-writing-cta-inner {

    position: relative;

    min-height: 300px;

    padding: 60px 65px;

    border-radius: 30px;

    display: flex;

    align-items: center;

    gap: 35px;

    overflow: hidden;

    color: #ffffff;

    background:

        linear-gradient(
            125deg,
            #0e5e39,
            #198754
        );

    box-shadow:

        0 35px 80px

        rgba(
            25,
            135,
            84,
            0.22
        );

}

.categories-writing-cta-icon {

    position: relative;

    z-index: 2;

    width: 95px;

    height: 95px;

    min-width: 95px;

    border-radius: 27px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #198754;

    background: #ffffff;

    font-size: 34px;

}

.categories-writing-cta-content {

    position: relative;

    z-index: 2;

    max-width: 610px;

}

.categories-writing-cta-content > span {

    color:

        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

}

.categories-writing-cta-content h2 {

    margin: 11px 0 0;

    color: #ffffff;

    font-size: 38px;

    font-weight: 800;

    letter-spacing: -1.7px;

}

.categories-writing-cta-content p {

    margin: 15px 0 0;

    color:

        rgba(
            255,
            255,
            255,
            0.74
        );

    font-size: 13px;

    line-height: 1.8;

}

.categories-writing-cta-action {

    position: relative;

    z-index: 2;

    margin-left: auto;

}

.categories-writing-cta-action a {

    min-width: 190px;

    padding: 17px 25px;

    border-radius: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: #198754;

    background: #ffffff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    transition:

        transform 0.25s ease,

        box-shadow 0.25s ease;

}

.categories-writing-cta-action a:hover {

    transform: translateY(-3px);

    box-shadow:

        0 15px 35px

        rgba(
            0,
            0,
            0,
            0.15
        );

}

.categories-writing-cta-action a i {

    transition: transform 0.2s ease;

}

.categories-writing-cta-action a:hover i {

    transform: translateX(5px);

}

.categories-writing-cta-decoration {

    position: absolute;

    right: -40px;

    bottom: -130px;

    color:

        rgba(
            255,
            255,
            255,
            0.05
        );

    font-family: Georgia, serif;

    font-size: 370px;

    font-weight: 800;

    line-height: 1;

}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (
    max-width: 991.98px
) {

    .categories-hero {

        padding: 90px 0 100px;

    }

    .categories-explore-grid {

        grid-template-columns:

            repeat(
                2,
                minmax(0, 1fr)
            );

    }

    .categories-section-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 20px;

    }

    .categories-writing-cta-inner {

        padding: 50px;

        flex-wrap: wrap;

    }

    .categories-writing-cta-action {

        width: 100%;

        margin-left: 130px;

    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (
    max-width: 767.98px
) {

    .categories-hero {

        padding: 70px 0 80px;

    }

    .categories-hero h1 {

        font-size: 48px;

        letter-spacing: -3px;

    }

    .categories-hero p {

        font-size: 14px;

    }

    .categories-hero-stats {

        margin-top: 35px;

    }


    /*
    |--------------------------------------------------------------------------
    | Explore
    |--------------------------------------------------------------------------
    */

    .categories-explore-section {

        padding: 75px 0 85px;

    }

    .categories-section-heading {

        margin-bottom: 35px;

    }

    .categories-section-heading h2 {

        font-size: 36px;

        letter-spacing: -1.8px;

    }

    .categories-section-heading > p {

        font-size: 12px;

    }

    .categories-explore-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

    .category-explore-card {

        min-height: 350px;

        padding: 30px;

    }


    /*
    |--------------------------------------------------------------------------
    | CTA
    |--------------------------------------------------------------------------
    */

    .categories-writing-cta {

        padding-bottom: 80px;

    }

    .categories-writing-cta-inner {

        padding: 40px 30px;

        display: block;

        border-radius: 25px;

    }

    .categories-writing-cta-icon {

        width: 75px;

        height: 75px;

        min-width: 75px;

        border-radius: 22px;

        font-size: 27px;

    }

    .categories-writing-cta-content {

        margin-top: 30px;

    }

    .categories-writing-cta-content h2 {

        font-size: 31px;

    }

    .categories-writing-cta-action {

        width: auto;

        margin: 30px 0 0;

    }

    .categories-writing-cta-action a {

        width: 100%;

    }

}


/*
|--------------------------------------------------------------------------
| Small Mobile
|--------------------------------------------------------------------------
*/

@media (
    max-width: 399.98px
) {

    .categories-hero h1 {

        font-size: 42px;

    }

    .categories-hero-stats {

        gap: 20px;

    }

    .categories-section-heading h2 {

        font-size: 32px;

    }

    .category-explore-card {

        min-height: 340px;

        padding: 27px;

    }

}