/* ==========================================
   Fixed Main Navbar Base Styles
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    box-sizing: border-box;
    transition: padding 0.3s ease;
}

.logo, .logo a {
    height: 70px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    text-decoration: none;
    color: #0F1F14;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    transition: opacity 0.3s, color 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.btn-appointment {
    background-color: #d4af37 !important;
    color: #1b4d3e !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.3s ease !important;
}

.btn-appointment:hover {
    transform: translateY(-2px);
    opacity: 0.9 !important;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #1b4d3e;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}


/* ==========================================
   Desktop Dropdown Menu Styles (> 1024px)
   ========================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #0F1F14;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 11px;
    color: #d4af37;
    transition: transform 0.3s ease;
}

@media screen and (min-width: 1025px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        background-color: #ffffff;
        min-width: 280px;
        box-shadow: 0 12px 30px rgba(15, 31, 20, 0.15);
        border-radius: 12px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1100;
        border: 1px solid #e1e8e5;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }

    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        color: #0F1F14;
        font-size: 13.5px;
        font-weight: 400;
        text-decoration: none;
        white-space: normal;
        transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
    }

    .dropdown-menu a i {
        color: #d4af37;
        font-size: 13px;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .dropdown-menu a:hover {
        background-color: #f4f8f6;
        color: #1b4d3e;
        padding-left: 24px;
    }
}


/* ==========================================
   Medium & Mobile Screens (≤ 1024px)
   ========================================== */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 15px 5%;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 30px;
        gap: 18px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #e1e8e5;
        
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        visibility: hidden;
        transition: clip-path 0.4s ease-in-out, visibility 0.4s ease-in-out;
        box-sizing: border-box;

        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        visibility: visible;
    }

    .nav-links a {
        font-size: 16px;
        width: 100%;
    }

    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        font-size: 16px;
    }

    /* Accordion Dropdown for Tablets & Phones */
   .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #f8fbf9;
        border-radius: 10px;
        margin-top: 8px;
        box-sizing: border-box;
        
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    /* ONLY show when JS toggles .active class */
    .dropdown.active .dropdown-menu {
        max-height: 1000px !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 5px !important;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

    /* Expand when JS toggles .active OR on hover */
   

    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        padding: 10px 15px;
        color: #0F1F14;
        text-decoration: none;
        border-bottom: 1px solid #eef3f0;
        white-space: normal;
        transition: padding-left 0.2s, background-color 0.2s;
    }

    .dropdown-menu a i {
        color: #d4af37;
        font-size: 13px;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-menu a:hover {
        padding-left: 20px;
        background-color: #eef5f1;
    }

    .btn-appointment {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 20px;
        margin-top: 10px;
    }

/* Extra Small Screens (≤ 480px) */
@media screen and (max-width: 480px) {
    .logo, .logo a {
        height: 40px;
    }

    .nav-links {
        padding: 20px 20px;
    }
}