/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 8px 30px;
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    padding: 4px;
}

.nav-link {
    font-size: 15px;
    margin-right: 16px;
    color: #555 !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: #2a7de1 !important; }

.nav-link.active {
    color: #2a7de1 !important;
    font-weight: 600;
}

/* Free class button */
.free-class-btn {
    border: 2px solid #f86808;
    color: #de3203;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}

.free-class-btn:hover {
    background: #ba5830;
    color: white;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 8px 0;
    border: none;
}

.nav-item:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: #fff4ee;
    color: #f86808;
}

/* Toggler */
.navbar-toggler {
    border: 1.5px solid #f86808;
    padding: 6px 10px;
    border-radius: 8px;
}

.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f86808' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== MOBILE (≤991px) ===== */
@media (max-width: 991px) {

    .navbar {
        padding: 8px 14px !important;
    }

    .logo {
        height: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .navbar-brand {
        max-width: 70%;
        padding: 0;
        margin: 0;
    }

    /* Slide-down mobile menu */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 12px 16px 18px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
        border-radius: 0 0 14px 14px;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 0;
    }

    .nav-item {
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        margin-right: 0 !important;
        padding: 12px 8px !important;
        font-size: 15px;
    }

    /* Mobile dropdown — Bootstrap toggle handles open/close */
    .nav-item:hover .dropdown-menu { display: none; }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        min-width: 100%;
        margin: 4px 0 8px;
        padding: 6px;
        box-shadow: none;
        border: 1px solid #f1f1f1 !important;
        border-radius: 10px;
        background: #fff8f4;
        display: none;
    }

    .dropdown-menu a {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .nav-item.ms-3 {
        margin-left: 0 !important;
        margin-top: 12px;
        border-bottom: none;
    }

    .free-class-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 13px 14px;
        border-radius: 20px;
        font-size: 13px;
    }
}

/* ===== SMALL MOBILE (≤575px) ===== */
@media (max-width: 575px) {
    .navbar { padding: 7px 12px !important; }
    .logo { height: 42px !important; }
}