/* PPID frontend navigation — cleaner, human-friendly layout */

/* Halaman internal (profil, permohonan, dll.) — navbar sama dengan home */
.ppid-internal-page .ppid-navbar {
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
}

.ppid-internal-page .ppid-navbar .nav-link {
    color: #3d4349 !important;
}

.ppid-internal-page .content-page {
    padding-top: 88px;
}

@media (max-width: 991.98px) {
    .ppid-internal-page .content-page {
        padding-top: 72px;
    }
}

.ppid-navbar.navbar-expand-lg .navbar-nav .nav-item {
    padding-left: 0;
}

/* Desktop (≥992px): menu horizontal satu baris */
@media (min-width: 992px) {
    .ppid-navbar > .container {
        flex-wrap: nowrap;
        align-items: center;
        max-width: 1140px;
    }

    .ppid-navbar .navbar-brand {
        flex: 0 0 auto;
        margin-right: 0.75rem;
    }

    .ppid-navbar .navbar-collapse {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    .ppid-nav-inner {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
        min-width: 0;
        gap: 0.35rem;
    }

    .ppid-nav-main {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 0;
        justify-content: flex-end;
    }

    .ppid-nav-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex: 0 0 auto;
        flex-shrink: 0;
        margin-left: 0.25rem;
        padding-left: 0.5rem;
        border-left: 1px solid #eef0f3;
    }

    .ppid-nav-cta-short {
        display: none;
    }

    .ppid-nav-cta-long {
        display: inline;
    }
}

/* Desktop sedang (992–1199px): kompak — ikon tetap tampil, hanya lebih kecil */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ppid-nav-main .nav-link {
        padding: 0.38rem 0.35rem !important;
        font-size: 0.8125rem;
        gap: 0.2rem;
    }

    .ppid-nav-main .nav-link i.lni:not(.nav-caret),
    .ppid-nav-main .nav-link i[class*="lni-"]:not(.nav-caret) {
        font-size: 0.8rem;
        opacity: 0.9;
    }

    .ppid-nav-cta-long {
        display: none;
    }

    .ppid-nav-cta-short {
        display: inline;
    }

    .ppid-nav-cta {
        font-size: 0.75rem;
        padding: 0.38rem 0.6rem;
    }

    .ppid-nav-login {
        font-size: 0.75rem;
        padding: 0.35rem 0.55rem;
    }

    .ppid-navbar .navbar-brand img {
        width: 56px !important;
    }
}

/* Desktop lebar (≥1200px): ukuran penuh */
@media (min-width: 1200px) {
    .ppid-nav-main .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.875rem;
    }
}

/* Mobile & tablet (<992px): hamburger */
@media (max-width: 991.98px) {
    .ppid-navbar > .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .ppid-navbar .navbar-brand {
        order: 1;
        flex: 0 0 auto;
        margin: 0 auto 0 0;
        padding: 0;
    }

    .ppid-navbar .navbar-brand img {
        width: 56px !important;
        height: auto;
        margin: 0;
        display: block;
    }

    .ppid-navbar .navbar-toggler {
        order: 2;
        flex: 0 0 auto;
        margin: 0 0 0 0.5rem;
        align-self: center;
        padding: 0.35rem 0.55rem;
    }

    .ppid-navbar .navbar-collapse {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.25rem;
    }

    .ppid-nav-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .ppid-nav-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
        padding: 0.25rem 0;
        list-style: none;
    }

    .ppid-nav-main .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f1f3;
    }

    .ppid-nav-main .nav-item:last-child {
        border-bottom: none;
    }

    .ppid-nav-main .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.65rem 0.5rem !important;
        border-radius: 0;
    }

    .ppid-nav-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        margin-left: 0;
        padding: 0.75rem 0.5rem 0.25rem;
        border-top: 1px solid #eef0f3;
        border-left: none;
    }

    .ppid-nav-cta {
        width: 100%;
        justify-content: center;
    }

    .ppid-nav-cta-long {
        display: inline;
    }

    .ppid-nav-cta-short {
        display: none;
    }

    .ppid-nav-main .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0.5rem 0.75rem;
        margin: 0;
        background: #fafbfc;
    }

    .ppid-mega-menu {
        min-width: 100% !important;
        padding: 0 0 0.5rem 0.75rem !important;
    }

    .ppid-dropdown-header {
        border-bottom: none;
        padding-left: 0;
    }
}

.ppid-nav-main > .nav-item {
    position: relative;
}

.ppid-nav-main .nav-link i.lni:not(.nav-caret),
.ppid-nav-main .nav-link i[class*="lni-"]:not(.nav-caret) {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

.ppid-nav-main .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.6rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3d4349 !important;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.ppid-nav-main .nav-link:before {
    display: none !important;
}

.ppid-nav-main .nav-link:hover,
.ppid-nav-main .nav-item.show > .nav-link,
.ppid-nav-main .nav-item.active > .nav-link {
    color: #F63854 !important;
    background: rgba(246, 56, 84, 0.08);
}

.ppid-nav-main .nav-link .nav-caret {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.ppid-nav-main .nav-item.show .nav-caret {
    transform: rotate(180deg);
}

.ppid-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #F63854 0%, #d92a44 100%);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(246, 56, 84, 0.25);
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ppid-nav-cta:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(246, 56, 84, 0.35);
}

.ppid-nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #585b60 !important;
    background: #f4f5f7;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.ppid-nav-icon-btn:hover {
    color: #F63854 !important;
    background: rgba(246, 56, 84, 0.1);
}

.ppid-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #F63854 !important;
    border: 1.5px solid rgba(246, 56, 84, 0.45);
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.ppid-nav-login:hover {
    background: rgba(246, 56, 84, 0.08);
    color: #d92a44 !important;
}

/* Dropdown panels (desktop) */
@media (min-width: 992px) {
    .ppid-nav-main .dropdown-menu {
        border: none;
        border-radius: 12px;
        padding: 0.65rem;
        min-width: 260px;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
        margin-top: 0.35rem;
    }

    .ppid-nav-main .dropdown-menu:before {
        display: none;
    }

    .ppid-mega-menu {
        min-width: 420px !important;
        padding: 0.85rem !important;
    }
}

.ppid-dropdown-header {
    padding: 0.35rem 0.65rem 0.55rem;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 0.35rem;
}

.ppid-dropdown-header strong {
    display: block;
    font-size: 0.8125rem;
    color: #1f2937;
}

.ppid-dropdown-header span {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.ppid-dropdown-item {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none !important;
    color: #374151 !important;
    transition: background 0.15s ease;
}

.ppid-dropdown-item:hover {
    background: #f9fafb;
    color: #F63854 !important;
}

.ppid-dropdown-item.featured {
    background: rgba(246, 56, 84, 0.06);
    border: 1px solid rgba(246, 56, 84, 0.15);
}

.ppid-dropdown-item strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.ppid-dropdown-item small {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.ppid-mega-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0 0.5rem 0.35rem;
}

.ppid-mega-menu .ppid-dropdown-item {
    padding: 0.45rem 0.5rem;
    font-size: 0.8125rem;
}

.ppid-nav-cta-short {
    display: none;
}

.top-nav-collapse .ppid-nav-main .nav-link {
    color: #3d4349 !important;
}
