
/* ==========================================
   MI HUBBUL QUR'AN
   NAVBAR COMPONENT - FINAL
========================================== */

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

/* NAVBAR CONTAINER */

.site-header .navbar {
    width: 92%;
    max-width: 1250px;
    min-height: 85px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ==========================================
   BRAND / LOGO
========================================== */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;

    text-decoration: none;
    color: #009FAE;
}

.navbar-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.navbar-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-school-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    color: #009FAE;
    letter-spacing: 0.2px;
}

.navbar-school-tagline {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #647779;
    letter-spacing: 0.3px;
}

/* ==========================================
   NAVIGATION MENU
========================================== */

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu .nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 0;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #18393B;
    text-decoration: none;
    white-space: nowrap;

    transition: color 0.3s ease;
}

/* UNDERLINE HOVER */

.navbar-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;
    border-radius: 2px;
    background-color: #D4AF37;

    transition: width 0.3s ease;
}

.navbar-menu .nav-link:hover,
.navbar-menu .nav-link.active {
    color: #009FAE;
}

.navbar-menu .nav-link:hover::after,
.navbar-menu .nav-link.active::after {
    width: 100%;
}

/* ==========================================
   ACTION BUTTON
========================================== */

.navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex-shrink: 0;
}

.navbar-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 22px;
    border-radius: 30px;
    background-color: #F5AD24;

    color: #043F43;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition: all 0.3s ease;
}

.navbar-contact:hover {
    background-color: #009FAE;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(7, 87, 91, 0.2);
}

/* ==========================================
   HAMBURGER BUTTON
========================================== */

.navbar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;

    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: #009FAE;

    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background-color: #EDF5F3;
}

/* HAMBURGER ACTIVE */

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 1150px) {

    .site-header .navbar {
        min-height: 80px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        padding: 25px 5%;
        background-color: #ffffff;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
    }

    .navbar-menu.show {
        display: flex;
    }

    .navbar-menu .nav-link {
        display: block;
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .navbar-menu .nav-link:hover,
    .navbar-menu .nav-link.active {
        background-color: #EDF5F3;
    }

    .navbar-menu .nav-link::after {
        display: none;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
========================================== */

/* ==========================================
   FINAL NAVBAR MOBILE + TOMBOL DAFTAR
========================================== */

@media (max-width: 600px) {

    .site-header .navbar {
        width: 94%;
        max-width: 100%;
        min-width: 0;
        min-height: 72px;
        gap: 8px;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
    }

    .navbar-logo {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .navbar-identity {
        min-width: 0;
    }

    .navbar-school-name {
        font-size: 9px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .navbar-school-tagline {
        font-size: 8px;
    }

    .navbar-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
    }

    /* TAMPILKAN TOMBOL DAFTAR */
    .navbar-btn-daftar {
        display: inline-flex;
        padding: 9px 11px;
        font-size: 11px;
        white-space: nowrap;
        border-radius: 30px;
    }

    /* SEMBUNYIKAN TOMBOL KONTAK */
    .navbar-btn-kontak,
    .navbar-contact {
        display: none;
    }

    /* TOMBOL HAMBURGER */
    .navbar-toggle {
        display: flex;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .navbar-menu {
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 3px solid #D4AF37;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .navbar *,
    .navbar *::after {
        transition: none !important;
    }
}
/* NAVBAR ACTIONS */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-btn-daftar,
.navbar-btn-kontak {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all .3s ease;
}

.navbar-btn-daftar {
    background: #009FAE;
    color: #FFFFFF;
}

.navbar-btn-daftar:hover {
    background: #007F8E;
    color: #FFFFFF;
}

.navbar-btn-kontak {
    background: #F5AD24;
    color: #07535D;
}

.navbar-btn-kontak:hover {
    background: #D9900C;
    color: #FFFFFF;
}
/* ==========================================
   FIX NAVBAR RESPONSIVE MOBILE
========================================== */

@media (max-width: 600px) {

    .site-header .navbar {
        width: 92%;
        max-width: 100%;
        min-width: 0;
        gap: 10px;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .navbar-identity {
        min-width: 0;
    }

    .navbar-school-name {
        font-size: 11px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .navbar-actions {
        flex: 0 0 auto;
        gap: 0;
    }

    .navbar-btn-daftar,
    .navbar-btn-kontak,
    .navbar-contact {
        display: none;
    }

    .navbar-toggle {
        display: flex;
        flex: 0 0 42px;
    }

    .navbar-menu {
        box-sizing: border-box;
        max-width: 100%;
    }
}
/* ==========================================
   FINAL FIX TOMBOL DAFTAR MOBILE
========================================== */

@media (max-width: 600px) {

    .site-header .navbar {
        width: 94%;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .site-header .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-header .navbar-actions {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 5px;
    }

    /* TAMPILKAN DAFTAR SEKARANG */
    .site-header .navbar-btn-daftar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
        border-radius: 30px;
        background: #009FAE;
        color: #ffffff;
    }

    /* SEMBUNYIKAN KONTAK DI HP */
    .site-header .navbar-btn-kontak,
    .site-header .navbar-contact {
        display: none;
    }

    /* HAMBURGER TETAP MUNCUL */
    .site-header .navbar-toggle {
        display: flex;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        padding: 6px;
    }
}