@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

header.top-header,
.top-header {
    width: 100%;
    margin: 0;
    padding: 8px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #063b3d 0%, #0b5255 60%, #146c70 100%);
    color: #ffffff;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-header .nama-yayasan {
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #e6f6f6;
    line-height: 1.4;
}

.top-header .nomor {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    line-height: 1.4;
}

.navbar-section {
    width: 100%;
    margin: 0;
    padding: 10px 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(235, 247, 247, 0.88) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(6, 59, 61, 0.12);
    border-radius: 18px;
    padding: 12px 26px;
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 28px rgba(6, 59, 61, 0.1);
    position: relative;
    z-index: 1000;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.navbar:hover {
    box-shadow: 0 14px 32px rgba(6, 59, 61, 0.14);
}

.navbar .logo {
    margin: 0;
    padding: 4px 0 4px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    min-width: 0;
    border-left: 4px solid #063b3d;
    border-radius: 2px;
}

.navbar .logo a {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.navbar .logo a::after {
    display: none !important;
}

.navbar .logo h1,
.navbar-brand {
    font-size: 23px;
    font-weight: 800;
    color: #063b3d;
    letter-spacing: -0.5px;
    margin: 0;
    padding: 0;
    line-height: 1.15;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.navbar .logo p,
.navbar-brand small {
    font-size: 10.5px;
    font-weight: 700;
    color: #0d7377;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    margin: 3px 0 0;
    padding: 0;
    line-height: 1.1;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.navbar .menu,
.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.navbar a,
.navbar .menu a,
.menu a,
.navbar .nav-link {
    color: #163a3c;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none !important;
    transition: all 0.22s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
}

.navbar .menu a::after,
.menu a::after {
    display: none !important;
}

.navbar .menu > li > a:hover,
.menu > li > a:hover,
.navbar .menu > li > a.active,
.menu > li > a.active {
    color: #063b3d;
    background-color: rgba(13, 115, 119, 0.12);
    transform: translateY(-1px);
}

.navbar .dropdown > a::after,
.dropdown > a::after {
    content: '▾';
    display: inline-block !important;
    font-size: 11px;
    color: #0d7377;
    margin-left: 2px;
    transition: transform 0.22s ease;
}

.navbar .dropdown:hover > a::after,
.dropdown:hover > a::after,
.navbar .dropdown:focus-within > a::after,
.dropdown:focus-within > a::after {
    transform: rotate(180deg);
}

.navbar .dropdown,
.dropdown {
    position: relative;
    margin: 0 !important;
    padding: 0;
}

.navbar .dropdown-menu,
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;

    width: max-content;
    min-width: 205px;
    max-width: calc(100vw - 24px);

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(6, 59, 61, 0.16);
    border: 1px solid rgba(6, 59, 61, 0.1);
    padding: 8px;
    z-index: 1100;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    list-style: none;
    overflow-wrap: break-word;
}

.navbar .dropdown-menu a,
.dropdown-menu a {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 9px 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #24484a !important;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: normal;
}

.navbar .dropdown-menu a:hover,
.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(13, 115, 119, 0.14), rgba(161, 206, 208, 0.22)) !important;
    color: #063b3d !important;
    padding-left: 18px !important;
}

.navbar .dropdown:hover > .dropdown-menu,
.dropdown:hover > .dropdown-menu,
.navbar .dropdown:focus-within > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-top {
    padding: 10px 26px;
    font-size: 14px;
}

@media (max-width: 850px) {
    header.top-header,
    .top-header {
        padding: 6px 16px;
        font-size: 11px;
    }

    .navbar-section {
        padding: 8px 12px 0;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
        border-radius: 16px;
        padding: 12px 16px;
        min-height: auto;
        text-align: center;
    }

    .navbar .logo {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        align-items: center;
        text-align: center;
    }

    .navbar .logo h1 {
        font-size: 21px;
    }

    .navbar .menu,
    .menu {
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar .menu > li > a,
    .menu > li > a {
        padding: 6px 11px;
        font-size: 13.5px;
    }

    .navbar .dropdown-menu,
    .dropdown-menu {
        top: calc(100% + 6px);
        left: 50%;
        right: auto;
        width: max-content;
        min-width: 185px;
        max-width: calc(100vw - 24px);
        transform: translate(-50%, 6px);
    }

    .navbar .dropdown:hover > .dropdown-menu,
    .dropdown:hover > .dropdown-menu,
    .navbar .dropdown:focus-within > .dropdown-menu,
    .dropdown:focus-within > .dropdown-menu {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 480px) {
    .navbar-section {
        padding: 6px 10px 0;
    }

    .navbar {
        padding: 10px 12px;
    }

    .navbar .logo h1 {
        font-size: 18.5px;
    }

    .navbar .logo p {
        font-size: 9.5px;
    }

    .navbar .menu,
    .menu {
        gap: 6px;
    }

    .navbar .menu > li > a,
    .menu > li > a {
        font-size: 12.5px;
        padding: 6px 9px;
    }

    .navbar .dropdown-menu,
    .dropdown-menu {
        min-width: 170px;
        max-width: calc(100vw - 20px);
    }
}

main,
.content,
.card-utama {
    margin-bottom: 0;
}

footer {
    width: 100%;
    margin: 0;
    padding: 24px 0 0;
    background-color: #88a8a8;
    color: #ffffff;
    text-align: center;
}

.footer-contact {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 20px;
    border: none;
    border-radius: 0;
    text-align: center;
}

.footer-contact-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
}

.footer-contact-text {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 18px;
    padding: 0;
    color: #e8f4f4;
    font-size: 14px;
    line-height: 1.6;
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 12px 22px;
    background-color: #063b3d;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 6px 16px rgba(6, 59, 61, 0.25);
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.footer-whatsapp-btn:hover {
    background-color: #0a4f52;
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-whatsapp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #25d366;
}

.footer-copy {
    width: 100%;
    margin: 0;
    padding: 16px 10px;
    background-color: #88a8a8;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 640px) {
    footer {
        padding-top: 0;
    }

    .footer-contact {
        padding: 24px 16px;
    }

    .footer-contact-title {
        font-size: 18px;
    }

    .footer-contact-text {
        font-size: 14px;
    }

    .footer-whatsapp-btn {
        width: 100%;
        max-width: 360px;
    }

    .footer-copy {
        padding: 14px 10px;
    }
}

/* Tombol Logout */
.navbar a.logout,
.navbar button.logout,
nav a.logout,
nav button.logout {
    background-color: #063b3d;
    color: #ffffff;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.navbar a.logout:hover,
.navbar button.logout:hover,
nav a.logout:hover,
nav button.logout:hover {
    background-color: #0b5557;
    color: #ffffff;
}

/* Form Logout */
.navbar .menu form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

/* Tombol Logout */
.navbar .menu .btn-logout {
    background-color: #063b3d;
    color: #ffffff;
    border: none;
    padding: 10px 17px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Efek Hover */
.navbar .menu .btn-logout:hover {
    background-color: #0b5557;
    color: #ffffff;
    transform: translateY(-2px);
}