* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* html, body {
    overflow-x: hidden;
    overflow-y: auto; 
} */

body {
    position: relative;
}

/* ===== TOP HEADER ===== */
.header-top {
    /* background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); */
    background-color: #fff;
    color: black;
    padding: 3px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    /* overflow-x: hidden; */
}

.top-contact {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-contact i {
    color: #F59E0B;
    margin-right: 5px;
}

.top-contact p {
    margin: 0;
}

.lang-selector {
    display: flex;
    gap: 10px;
}

.lang-selector select {
    background: #F59E0B;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.lang-selector select:hover {
    background: #1D4ED8;
}

/* ===== MAIN NAVBAR ===== */

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}
.navbar {
    background-color: #1D4ED8;
    padding: 15px 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 99999;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}


/* ===== LOGO SECTION ===== */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-section:hover {
    transform: scale(1.02);
}

.logo-section img {
    width: 50px;
    height: auto;
}

.school-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.school-info h3 {
    margin: 0;
    font-size: 20px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.school-info p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===== NAVIGATION MENU ===== */

.nav-menu { display: flex; list-style: none; gap: 5px; align-items: center; margin: 0; padding: 0; }
.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}


.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #F59E0B;

    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link i {
    font-size: 16px;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    min-width: 190px;
    padding: 12px 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    z-index: 1001;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #1D4ED8;
    color: #fff;
    padding-left: 25px;
}

/* ===== ADMIN BUTTON ===== */
.admin-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    margin-left: 10px;
    font-weight: 600;
}

.admin-btn:hover {
    background: white;
    color: #1D4ED8;
}

/* ===== HAMBURGER MENU ===== */
/* ===== HAMBURGER ===== */
.hamburger {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    display: none;
}

.hamburger {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    left: 0;
    transition: 0.3s ease;
}

/* normal */
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* X FIXED (pa shtrembërim) */
.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {

    .nav-menu.active {
    max-height: 500px;
    visibility: visible;
    opacity: 1;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
    .navbar {
        padding: 12px 20px;
    }

    .header-top {
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1D4ED8;
        flex-direction: column;
        gap: 0;
        margin-top: 0;
        /* padding: 20px 0; */
        max-height: 0;
        /* overflow: hidden; */
        transition: max-height 0.3s ease;
        border-radius: 0;
    }

    .nav-menu.active {
        max-height: 500px;
        box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    }
    .nav-menu {
    will-change: max-height;
}

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 15px 30px;
        width: 100%;
        border-radius: 0;
    }


    .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: scaleY(0);
        transform-origin: top;
        max-height: 0;
        /* overflow: hidden; */
        background-color: #1D4ED8;
        transition: all 0.3s ease;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
        max-height: 300px;
        padding: 10px 0;
    }

    .dropdown-menu a {
        padding: 12px 50px;
        color: #fff;
    }

    .dropdown-menu a:hover {
        padding-left: 55px;
    }

    .admin-btn {
        margin-left: 0;
        width: 100%;
        border: none;
        justify-content: flex-start;
    }

    .school-info h3 {
        font-size: 18px;
    }

    .school-info p {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1D4ED8;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

    .header-top {
        flex-direction: column;
        gap: 15px;
        padding: 12px 20px;
        text-align: center;
    }

    .top-contact {
        justify-content: center;
        gap: 15px;
    }

    .navbar-container {
        gap: 15px;
    }

    .logo-section img {
        width: 40px;
    }

    .school-info h3 {
        font-size: 16px;
    }

    .school-info p {
        display: none;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 13px;
    }

    .nav-link i {
        font-size: 14px;
    }

    .dropdown-menu a {
        padding: 10px 40px;
    }

    .dropdown-menu a:hover {
        padding-left: 45px;
    }
}

/* Additional responsive for small mobile devices */
@media (max-width: 576px) {
    .header-top {
        padding: 10px 15px;
        font-size: 12px;
    }

    .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1D4ED8;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

    .nav-menu.active {
    max-height: 500px;
    visibility: visible;
    opacity: 1;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

    .top-contact {
        gap: 12px;
    }

    .top-contact i,
    .top-contact p {
        display: inline;
    }

    .navbar {
        padding: 10px 15px;
    }

    .navbar-container {
        gap: 10px;
        flex-wrap: wrap;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-section img {
        width: 35px;
    }

    .school-info h3 {
        font-size: 14px;
    }

    .hamburger {
        padding: 6px;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    .nav-menu.active {
        max-height: 600px;
    }
    .nav-link {
        padding: 12px 18px;
        font-size: 12px;
    }
    .dropdown-menu a {
        padding: 10px 35px;
        font-size: 13px;
    }

    .dropdown-menu a:hover {
        padding-left: 40px;
    }
}
@media (max-width: 992px) {

    .dropdown-menu {
        display: none;
        max-height: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}


.dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
    transition: 0.3s;
}