/* === Global Body Settings === */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    width: 100%;
    overflow-x: hidden;
    padding-top: 80px;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Top Header Logos === */
.top-header {
    background-color: #ffffff;
    width: 100%;
}
.eu-logo {
    height: 60px;
    max-width: 100%;
}
.quartz-main-logo {
    height: 50px;
    max-width: 100%;
}

/* === Sticky Navbar Wrapper === */
.sticky-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 10px;
    z-index: 1000;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* === Navbar Core === */
.custom-navbar {
    padding: 0;
    background-color: transparent;
    width: 100%;
    margin: 0;
}
.nav-container-custom {
    padding: 0 20px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* === Branding === */
.navbar-brand {
    padding-left: 30px;
}
.navbar-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}
.navbar-logo:hover {
    transform: scale(1.05);
}

/* === Navbar Items === */
.main-nav-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    margin: 0 auto;
}
.navbar-nav .nav-link {
    padding: 8px !important;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #2c3e50;
    text-transform: uppercase;
    position: relative;
}
.navbar-nav .nav-link:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* === Right Side (LMS & Lang) === */
.right-nav-items {
    display: flex;
    align-items: center;
    gap: 15px;
}
.lms-button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lms-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #2980b9, #2c3e50);
}
.language-switcher .lang-btn {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    background: transparent;
}
.lang-btn:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* === Toggler Button === */
.navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #3498db;
}

/* === Responsive Navbar Behavior === */
@media (max-width: 1024px) {
    .navbar-toggler {
        display: block;
    }
    .navbar-collapse {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: calc(100vh - 80px);
        background-color: #fff;
        padding: 20px;
        overflow-y: auto;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-nav .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }
    .right-nav-items {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .language-switcher {
        width: 100%;
    }
    .lms-button {
        width: 100%;
        justify-content: center;
    }
}

/* === Extra Small Devices === */
@media (max-width: 767.98px) {
    body {
        padding-top: 70px;
    }
    .navbar-logo {
        height: 45px;
    }
    .navbar-collapse {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

/* === Footer & Scroll Button === */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding-top: 40px;
    margin-top: auto;
}
.footer-bottom {
    background-color: #1a252f;
    padding: 15px 0;
}
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #3498db, #2980b9);
        color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
}
.scroll-top-btn.visible {
    display: flex;
}
.scroll-top-btn:hover {
    background-color: #689F38;
}

/* === Scrollbar Custom === */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3498db, #2c3e50);
    border-radius: 10px;
}
