/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Global Styles */
body {
    font-family: "Cairo" !important;
    font-weight: bold !important;
    background-color: #f8f8f8;
    background-position: center;
    background-size: cover;
    color: #333;
    direction: rtl;
}

/* Header */
.headerr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0d3d61;
    color: #ffffff;
    padding: 0px 20px;
    position: relative;
}

.sub-header {
    display: flex;
    background-color: #ffff;
    background-image: url('../images/background/360_F_328708862_iHlNmzUORR8tS2lOOEltk7zbI9vin77M.png');
    background-position: center;
    background-size: cover;
    color: #0D0D0D;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    height: 60px;
    padding: 20px;
}

.logo {
    width: 130px;
    height: 80px;
}

.logo a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation (Desktop) */
.navv {
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 10px; */
}

.navv ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin-bottom: 0px;
}

.navv ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 18px;
}

.navv ul li a:hover {
    color: #ddd;
}

/* Toggle Button (Hamburger) */
.toggle-btn {
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.toggle-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

/* Nav Wrapper */
.nav-wrapper {
    position: relative;
    padding: 10px;

}

/* Overlay */
#nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Mobile Sidebar Styles */
@media (max-width: 768px) {
    .toggle-btn {
        display: flex;
    }

    .navv {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background-color: #061928;
        flex-direction: column;
        color: #ffff !important;
        justify-content: flex-start;
        padding-top: 135px;
        /* padding-right: 20px; */
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .navv::before {
        content: '';
        display: block;
        position: absolute;
        top: 20px;
        right: 50px;
        width: 120px;
        height: 80px;
        background-image: url('../WhatsApp_Image_2025-05-01_at_12.21.11_AM-removebg-preview.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: right center;
    }

    .navv.active {
        right: 0;
    }

    .navv ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    #nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Animate hamburger to X when active */
    .toggle-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .toggle-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .toggle-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navv ul li a {
        color: #fff !important;
        font-weight: bold;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 14px;
    }
}


#lms-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;

    /* animated diagonal gradient */
    background: linear-gradient(45deg, #0D0D0D, #506B56, #0D0D0D);
    background-size: 200% 200%;
    animation: gradientBG 6s ease infinite, fade-out-bg 0.6s ease-out forwards;

    /* keep fade‑out ability */
    transition: opacity 0.6s ease;
}

#lms-loader.fade-out {
    opacity: 0;
}

/* 2) Optional: a subtle pulse “glow” behind the icon/text */
#lms-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(80, 107, 86, 0.15), transparent 60%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* bring icon/text above that pseudo‑layer */
#lms-loader i,
#lms-loader p {
    position: relative;
    z-index: 1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* fade-out‑bg ensures the gradient stops at 100% opacity before we remove the element */
@keyframes fade-out-bg {
    to {
        background-position: 0% 50%;
    }
}

/* graduation cap icon */
#lms-loader i {
    font-size: 5rem;
    color: #000;
    /* Your primary green color */
    /* deep‑red for theatrical feel */
    animation: cap-spin 1s ease-in-out infinite;
}

/* loader text */
#lms-loader p {
    margin-top: 30px;
    font-size: 24px;
    color: #f8f8f8;
    /* Your light text color */
    font-weight: bold;
    animation: text-bounce 1s ease-in-out infinite;
}

/* icon spin & pulse */
@keyframes cap-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* text bounce */
@keyframes text-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}
