


/* =========================================================
   COMMUNITY NAVIGATION PANEL
========================================================= */

.community-nav-section {
    position: relative;
    z-index: 20;
    margin-top: 0px;
    padding-bottom: 30px;
}

.community-nav-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    /* border-radius: 14px; */
    background: var(--white);
    box-shadow: 0 20px 55px rgba(6, 24, 74, 0.10);
}


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

.community-nav-card {
    position: relative;
    min-height: 130px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 20px;
    background: var(--white);
    color: var(--dark);
    transition:background .3s ease, transform .3s ease;
}


/* Vertical dividers */

.community-nav-card:nth-child(4n + 2),
.community-nav-card:nth-child(4n + 3),
.community-nav-card:nth-child(4n + 4) {
    border-left: 1px solid rgba(6, 24, 74, 0.12);
}


/* Horizontal divider */

.community-nav-card:nth-child(n + 5) {
    border-top: 1px solid rgba(6, 24, 74, 0.12);
}


/* =========================================================
   ICON
========================================================= */

.nav-card-icon {
    width: 60px;
    height: 60px;
    /* flex: 0 0 50px; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #D1C4E950;
    color: #3D0075;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.nav-card-icon svg {
    width: 28px;
    height: 28px;
}


/* =========================================================
   TEXT AREA
========================================================= */

.nav-card-content {
    min-width: 0;
    padding-right: 10px;
}

.nav-card-content h3 {
    margin: 0;
    color: var(--dark);
    font-family: "Poppins", serif;
    font-size: var(--font-16);
    font-weight: var(--weight-500);
    /* line-height: 1.15; */
}

.nav-card-content p {
    max-width: 180px;
    margin-top: 3px;
    color: var(--muted);
    font-size: var(--font-14);
    line-height: 1.35;
}


/* =========================================================
   ARROW
========================================================= */

.community-nav-card::after {
    content: "→";
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: #3D0075;
    font-size: var(--font-16);
    transition:color .3s ease, transform .3s ease;
}


/* =========================================================
   HOVER
========================================================= */

.community-nav-card:hover {
    background: #d1c4e920;
}

.nav-card-icon:hover .nav-card-icon{
    background: #D1C4E970;
    color: #3D0075;
}

.community-nav-card:hover .nav-card-icon {
    background: #d1c4e9;
    color: var(--dark);
    transform: translateY(-2px);
}

.community-nav-card:hover::after {
    color: #5a199b;
    transform: translateX(5px);
}


/* =========================================================
   ICON VARIATIONS
========================================================= */

.community-nav-card:nth-child(2) .nav-card-icon {
    background: #D1C4E950;
    color: #3D0075;
}

.community-nav-card:nth-child(3) .nav-card-icon {
    background: #D1C4E950;
    color: #3D0075;
}

.community-nav-card:nth-child(6) .nav-card-icon {
    background: #D1C4E950;
    color: #3D0075;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    .community-nav-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    /*
       Reset desktop dividers
    */

    .community-nav-card:nth-child(4n + 2),
    .community-nav-card:nth-child(4n + 3),
    .community-nav-card:nth-child(4n + 4) {
        border-left: none;
    }

    /*
       Vertical divider between
       two tablet columns
    */

    .community-nav-card:nth-child(2n) {
        border-left: 1px solid rgba(6, 24, 74, 0.12);
    }

    /*
       Horizontal divider between rows
    */

    .community-nav-card:nth-child(n + 3) {
        border-top: 1px solid rgba(6, 24, 74, 0.12);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .community-nav-section {
        margin-top: -25px;
        padding-bottom: 10px;
    }

    .community-nav-panel {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 22px;
    }

    .community-nav-card {
        min-height: 135px;

        gap: 12px;

        padding:
            18px 15px;
    }

    .nav-card-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        border-radius: 12px;
    }

    .nav-card-icon svg {
        width: 19px;
        height: 19px;
    }

    .nav-card-content {
        padding-right: 5px;
    }

    .nav-card-content h3 {
        font-size: var(--font-16);
    }

    .nav-card-content p {
        max-width: 125px;
        font-size: var(--font-14);
    }

    .community-nav-card::after {
        right: 10px;
        bottom: 10px;
        font-size: var(--font-14);
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .community-nav-card {
        min-height: 125px;
        gap: 10px;
        padding: 15px 12px;
    }

    .nav-card-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .nav-card-icon svg {
        width: 17px;
        height: 17px;
    }

    .nav-card-content h3 {
        font-size: var(--font-14);
    }

    .nav-card-content p {
        font-size: var(--font-12);
    }

}