:root {
    --primary: #226156;
    --primary-dark: #19423A;
    --primary-light: #286457;
    --secondary: #CCA556;
    --secondary-light: #AC975A;
    --accent: #B5AB79;
    --light: #f8f9fa;
    --dark: #355A53;
    --mid: #3D625A;
    --mid-light: #466962;
    --transition: all 0.4s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shade-1: #12322C;
    /* أغمق درجة */
    --shade-2: #19423A;
    --shade-3: #226156;
    --shade-4: #2B7A6E;
    /* وسط */
    --shade-5: #3D9B88;


    /* أفتح درجة */


    --gradient-dark-original: linear-gradient(to bottom,
            var(--shade-1),
            var(--shade-2),
            var(--shade-3),
            var(--shade-4),
            var(--shade-5));

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




body {
    background: var(--gradient-dark-original);
    background-size: 100% 200%;
    animation: gradientMove 7s ease-in-out infinite alternate;
    font-family: 'Tajawal', sans-serif;
}

@keyframes gradientMove {
    0% {
        background-position: top;
    }

    100% {
        background-position: bottom;
    }
}



/* body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
    animation: animateGradient 7s ease-out infinite alternate;

}

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
} */

/* شريط التنقل */
.navbar {
    /* background: linear-gradient(to right, var(--primary-dark), var(--primary)); */
    /* background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); */
    /* position: sticky; */
    /* top: 0; */
    /* z-index: 1000; */
    box-shadow: none;
    /* transition: var(--transition); */
    position: relative;
    /* This is essential for z-index to work */
    z-index: 1000;
    margin-top: 30px;

}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-nav {
    display: flex;
    align-items: center;
}

.logo-nav img {
    height: 50px;
    margin-left: 10px;
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin: 0 8px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-links li a i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-links li a.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(204, 165, 86, 0.4);
}

.nav-links li a.active:hover {
    background: var(--secondary-light);
}

.nav-btn {
    background: var(--secondary);
    padding: 10px 25px !important;
    box-shadow: 0 4px 15px rgba(204, 165, 86, 0.4);
}

.nav-btn:hover {
    background: var(--secondary-light) !important;
    transform: translateY(-3px);
}

/* Dropdown container */
.nav-links li.dropdown {
    position: relative;
}

/* القائمة المخفية */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 200px;
    z-index: 1000;
}

/* شكل الروابط داخل القائمة */
.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--primary-dark);
    text-decoration: none;

}

.dropdown-menu li a:hover {
    background: var(--secondary-light);
    color: white;
}

/* عرض القائمة عند المرور */
.nav-links li.dropdown:hover .dropdown-menu {
    display: block;
}

/* للهواتف - خليها نفس لون القائمة */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        min-width: unset;
    }

    .dropdown-menu li a {
        color: white;
        padding: 10px;
    }
}

.mobile-menu {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* الترويسة */
header {
    /* background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); */
    color: white;
    padding: 0;
    /* تم تعديله من 1.5rem 0 */
    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin-top: 0;


}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    /* يتمركز أفقيًا */
    padding: 0 20px;
    /* حواف داخلية */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
}



.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.logo i {
    font-size: 2.5rem;
    color: white;
}

.program-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: fadeIn 1.5s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.program-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 800px;
    animation: fadeIn 2s ease;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 10px;
}

.logo-container img {
    max-height: 100px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    margin-bottom: 1rem;
    /* Added margin to separate it from the text */
}



/*footer section*/
footer {
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 10px 0;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin: 0 8px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}













/* محتوى الصفحة */
.container2 {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.content-box {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 600px;
}

.image-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
}

.image-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-section p {
    font-size: 1.2rem;
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.benefits {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-size: 1.5rem;
    color: var(--secondary);
}

.benefit-text {
    flex: 1;
}

.benefit-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border-radius: 30px;
}

.form-section h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.form-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(204, 165, 86, 0.3);
}

.errorlist {
    color: #e74c3c;
    margin-top: 8px;
    padding-right: 10px;
    list-style: none;
}

.errorlist li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.errorlist li i {
    font-size: 0.9rem;
}

.btn {
    display: block;
    width: 100%;
    background: linear-gradient(to right, var(--secondary), var(--secondary-light));
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(204, 165, 86, 0.4);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 165, 86, 0.6);
    background: linear-gradient(to right, var(--secondary-light), var(--secondary));
}


.powered-by {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.powered-by img {
    height: 65px; 
    width:278px;/* عدّل الحجم حسب اللوجو */
}
.powered-by img {
        transition: transform 0.3s ease;
    }

    .powered-by img:hover {
        transform: scale(1.1);
    }
.form-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-footer p {
    color: var(--mid);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* الرسوم المتحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


    @media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .image-section,
    .login-section {
        flex: none;
        width: 100%;
    }

    .image-section {
        padding: 40px 20px;
    }

    .login-form {
        max-width: 600px;
    }

    .welcome-message h2 {
        font-size: 2rem;
    }

    .welcome-message p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        width: 90%;
        margin: 0 auto;
        justify-content: center;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 300px;
    }

    .login-form {
        padding: 30px 20px;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }

    .welcome-message h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 20px 15px;
    }

    .image-section {
        padding: 30px 15px;
    }

    .welcome-message h2 {
        font-size: 1.6rem;
    }

    .welcome-message p {
        font-size: 1rem;
    }
}
