
/*
|--------------------------------------------------------------------------
| KAMPUS MADINAH SALAM
| MOBILE BOTTOM NAVIGATION
|--------------------------------------------------------------------------
*/

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

@media (max-width: 991.98px) {

    /* Sembunyikan tombol hamburger */
    .website-navbar .navbar-toggler {
        display: none !important;
    }

    /* Navigasi desktop digantikan bottom navigation */
    .website-navbar .navbar-collapse {
        display: none !important;
    }

    .website-navbar {
        min-height: 66px;
    }

    .website-navbar .container {
        justify-content: flex-start;
    }

    .website-navbar .navbar-brand {
        margin-right: auto;
    }

    .website-logo {
        max-height: 42px;
        width: auto;
    }

    /* Beri ruang untuk bottom navigation */
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .website-footer {
        margin-bottom: 0;
    }

}

/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.website-mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {

    .website-mobile-bottom-nav {
        display: block;

        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        z-index: 1050;

        background: rgba(255, 255, 255, 0.97);

        border-top: 1px solid rgba(20, 75, 52, 0.10);

        box-shadow:
            0 -5px 25px rgba(20, 50, 35, 0.07);

        padding:
            7px
            5px
            calc(7px + env(safe-area-inset-bottom));

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .website-mobile-bottom-nav-list {
        display: flex;
        align-items: stretch;
        justify-content: space-around;

        width: 100%;
        max-width: 680px;

        margin: 0 auto;

        gap: 3px;
    }

    .website-mobile-nav-trigger,
    .website-mobile-nav-link {
        position: relative;

        display: flex;
        flex: 1 1 0;

        min-width: 0;
        min-height: 57px;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        padding: 5px 2px;

        border: 0;
        border-radius: 13px;

        background: transparent;

        color: #78847d;

        text-decoration: none;

        font-family: inherit;

        cursor: pointer;

        transition:
            color 0.25s ease,
            background 0.25s ease,
            transform 0.25s ease;
    }

    .website-mobile-nav-trigger:hover,
    .website-mobile-nav-link:hover {
        color: #176b49;
        background: rgba(28, 112, 75, 0.06);
    }

    .website-mobile-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 27px;
        height: 27px;

        font-size: 20px;
        line-height: 1;

        transition:
            transform 0.25s ease,
            color 0.25s ease;
    }

    .website-mobile-nav-label {
        display: block;

        width: 100%;

        overflow: hidden;

        font-size: 10px;
        font-weight: 600;

        line-height: 1.2;

        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;

        transition:
            color 0.25s ease,
            font-weight 0.25s ease;
    }

    .website-mobile-nav-trigger.is-active,
    .website-mobile-nav-link.is-current {
        color: #176b49;
        background: rgba(28, 112, 75, 0.08);
    }

    .website-mobile-nav-trigger.is-active .website-mobile-nav-icon,
    .website-mobile-nav-link.is-current .website-mobile-nav-icon {
        transform: translateY(-2px) scale(1.08);
    }

    .website-mobile-nav-trigger.is-active .website-mobile-nav-label,
    .website-mobile-nav-link.is-current .website-mobile-nav-label {
        color: #145b3d;
        font-weight: 700;
    }

    .website-mobile-nav-trigger.is-active::before,
    .website-mobile-nav-link.is-current::before {
        content: "";

        position: absolute;
        top: -7px;

        width: 23px;
        height: 3px;

        border-radius: 0 0 5px 5px;

        background: #c5a13b;
    }

}

/* =========================================================
   OVERLAY
========================================================= */

.website-mobile-nav-overlay {
    display: flex;

    position: fixed;
    inset: 0;

    z-index: 1045;

    align-items: flex-end;
    justify-content: center;

    padding: 12px 10px calc(82px + env(safe-area-inset-bottom));

    background: rgba(12, 32, 23, 0.38);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.website-mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 992px) {

    .website-mobile-nav-overlay {
        display: none !important;
    }

}

/* =========================================================
   BOTTOM SHEET
========================================================= */

.website-mobile-nav-sheet {
    display: flex;

    flex-direction: column;

    width: 100%;
    max-width: 600px;

    max-height: min(72vh, 680px);

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 25px 25px 20px 20px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.18);

    transform: translateY(35px) scale(0.98);

    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.website-mobile-nav-overlay.is-open .website-mobile-nav-sheet {
    transform: translateY(0) scale(1);
}

body.website-mobile-nav-open {
    overflow: hidden;
}

/* =========================================================
   SHEET HEADER
========================================================= */

.website-mobile-nav-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 17px 18px 14px;

    border-bottom: 1px solid #edf1ee;
}

.website-mobile-nav-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}

.website-mobile-nav-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    border-radius: 13px;

    background: #eaf5ed;

    color: #176b49;

    font-size: 20px;
}

.website-mobile-nav-heading strong {
    display: block;

    color: #174c35;

    font-size: 17px;
    font-weight: 750;

    line-height: 1.3;
}

.website-mobile-nav-heading small {
    display: block;

    margin-top: 3px;

    color: #87918b;

    font-size: 11px;
}

.website-mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border: 0;
    border-radius: 50%;

    background: #f3f6f3;

    color: #45534a;

    font-size: 16px;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.website-mobile-nav-close:hover {
    background: #e7efe9;
    transform: rotate(90deg);
}

/* =========================================================
   BREADCRUMB
========================================================= */

.website-mobile-nav-breadcrumb {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 8px 18px;

    border-bottom: 1px solid #f0f2f0;

    color: #849087;

    font-size: 11px;
    font-weight: 600;
}

.website-mobile-nav-breadcrumb button {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-right: 12px;
    padding: 5px 9px;

    border: 0;
    border-radius: 8px;

    background: #edf6ef;

    color: #176b49;

    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   CONTENT
========================================================= */

.website-mobile-nav-content {
    position: relative;

    overflow-x: hidden;
    overflow-y: auto;

    min-height: 120px;

    padding: 13px 15px 18px;

    overscroll-behavior: contain;
}

.website-mobile-nav-level[hidden] {
    display: none !important;
}

.website-mobile-nav-level {
    opacity: 0;
    transform: translateX(18px);

    transition:
        opacity 0.25s ease,
        transform 0.28s ease;
}

.website-mobile-nav-level.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.website-mobile-nav-intro {
    padding: 3px 3px 12px;
}

.website-mobile-nav-intro span {
    display: block;

    margin-bottom: 4px;

    color: #a0aaa3;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.website-mobile-nav-intro p {
    margin: 0;

    color: #174c35;

    font-size: 17px;
    font-weight: 750;
}

/* =========================================================
   COLUMN CARDS
========================================================= */

.website-mobile-nav-card {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 12px;

    margin-bottom: 9px;
    padding: 13px;

    border: 1px solid #e8eee9;
    border-radius: 15px;

    background: #ffffff;

    text-align: left;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.website-mobile-nav-card:hover,
.website-mobile-nav-card:active {
    border-color: #cde5d3;

    background: #f0f8f1;

    transform: translateX(3px);

    box-shadow: 0 5px 15px rgba(22, 92, 57, 0.06);
}

.website-mobile-nav-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    border-radius: 13px;

    background: #eaf5ed;

    color: #176b49;

    font-size: 19px;
}

.website-mobile-nav-card-text {
    display: flex;
    flex: 1;

    flex-direction: column;

    min-width: 0;

    gap: 3px;
}

.website-mobile-nav-card-text strong {
    color: #244c38;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.4;
}

.website-mobile-nav-card-text small {
    color: #87928a;

    font-size: 11px;
    line-height: 1.4;
}

.website-mobile-nav-card-arrow {
    flex: 0 0 auto;

    color: #9aaa9e;

    font-size: 15px;
}

/* =========================================================
   ELEMENT ITEMS
========================================================= */

.website-mobile-nav-item {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    margin-bottom: 3px;
    padding: 12px 9px;

    border-bottom: 1px solid #edf1ee;

    color: #253d30;

    text-decoration: none;

    transition:
        background 0.2s ease,
        padding 0.2s ease;
}

.website-mobile-nav-item:last-child {
    border-bottom: 0;
}

.website-mobile-nav-item:hover {
    padding-left: 13px;

    border-radius: 12px;

    background: #f0f8f1;

    color: #176b49;
}

.website-mobile-nav-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    border-radius: 12px;

    background: #edf6ef;

    color: #176b49;

    font-size: 17px;
}

.website-mobile-nav-item-text {
    display: flex;
    flex: 1;

    flex-direction: column;

    min-width: 0;

    gap: 3px;
}

.website-mobile-nav-item-text strong {
    color: #244c38;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;
}

.website-mobile-nav-item-text small {
    display: -webkit-box;

    overflow: hidden;

    color: #8a948d;

    font-size: 10px;
    line-height: 1.4;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.website-mobile-nav-item-arrow {
    flex: 0 0 auto;

    color: #a1afa5;

    font-size: 13px;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.website-mobile-nav-empty {
    padding: 25px 15px;

    border: 1px dashed #dce7df;
    border-radius: 14px;

    background: #f9fbf9;

    color: #8a968d;

    font-size: 12px;

    text-align: center;
}

/* =========================================================
   SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .website-mobile-nav-label {
        font-size: 9px;
    }

    .website-mobile-nav-icon {
        font-size: 18px;
    }

    .website-mobile-nav-sheet {
        max-height: 75vh;
    }

    .website-mobile-nav-card {
        padding: 11px;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .website-mobile-nav-overlay,
    .website-mobile-nav-sheet,
    .website-mobile-nav-level,
    .website-mobile-nav-card,
    .website-mobile-nav-item,
    .website-mobile-nav-trigger,
    .website-mobile-nav-link {
        transition: none !important;
        animation: none !important;
    }

}
