: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 */
}

/* المحتوى الرئيسي */
.container {
    max-width: 1200px;
    margin: 0 auto;

}

.section {
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
    padding: 0 30px;
    margin-bottom: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;

}

.section:hover {
    transform: translateY(-10px);
    box-shadow: none;
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    /* background: linear-gradient(to right, var(--secondary), var(--primary)); */

}

.section-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--secondary-light);
    position: relative;
    animation: slideInRight 1s ease;
}

.parg {
    color: white;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.info-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 8px 20px rgba(34, 97, 86, 0.1);
    border: 1px solid #d0e6dd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(34, 97, 86, 0.2);
    border-color: #1e7f69;
}

.info-card h3 {
    color: #226156;
    font-size: 1.4rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-card h3 i {
    color: #1e7f69;
    font-size: 1.8rem;
}

.info-card ul {
    list-style: none;
    padding-right: 20px;
    margin: 0;
}

.info-card ul li {
    position: relative;
    margin-bottom: 12px;
    padding-right: 25px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #4a6b61;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-card ul li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: #1e7f69;
    font-size: 1rem;
    top: 0.3em;
}

/* ==================== Responsive ==================== */

/* للشاشات المتوسطة */
@media (max-width: 992px) {
    .info-card {
        padding: 25px 20px;
    }
    .info-card h3 {
        font-size: 1.3rem;
    }
    .info-card ul li {
        font-size: 1rem;
    }
}

/* للشاشات الصغيرة */
@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .info-card {
        padding: 20px 15px;
    }
    .info-card h3 {
        font-size: 1.1rem;
        gap: 8px;
    }
    .info-card h3 i {
        font-size: 1.5rem;
    }
    .info-card ul {
        padding-right: 15px;
    }
    .info-card ul li {
        font-size: 0.95rem;
        line-height: 1.4;
        padding-right: 20px;
    }
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background: linear-gradient(to bottom right, var(--light), white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    animation: fadeIn 1s ease;
}

.course-card:hover {
    transform: scale(1.05);
}

.course-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 15px 0;
}

.course-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: white;
}
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.certificate-item {
    display: flex;
    flex-direction: column;
}

.certificate-card {
    background: linear-gradient(to bottom right, #fdfdfd, #ffffff);
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-light);
}

.certificate-level {
    font-size: 1.2rem;
    color: white;
    background-color: var(--secondary-light);
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 5px 10px;
    display: inline-block;
    max-width: 300px;
}

.certificate-desc {
    font-weight: 500;
    margin-bottom: 12px;
    color: #555;
}

.certificate-conditions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certificate-conditions li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.certificate-conditions li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--secondary);
    font-size: 1rem;
    top: 2px;
}

/* ==================== Responsive ==================== */

/* للشاشات المتوسطة (تابلت) */
@media (max-width: 992px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .certificate-card {
        padding: 18px 20px;
    }
    .certificate-level {
        font-size: 1.1rem;
    }
    .certificate-desc {
        font-size: 0.95rem;
    }
}

/* للشاشات الصغيرة (موبايل) */
@media (max-width: 576px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .certificate-card {
        padding: 15px;
    }
    .certificate-level {
        font-size: 1rem;
        padding: 4px 8px;
    }
    .certificate-desc {
        font-size: 0.9rem;
    }
    .certificate-conditions li {
        font-size: 0.9rem;
        padding-right: 20px;
    }
}


.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--secondary), var(--secondary-light));
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    /* transition: var(--transition); */
    box-shadow: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: none;
    background: linear-gradient(to right, var(--secondary-light), var(--secondary));
}

.instructor-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    max-width: 100%;
    box-sizing: border-box;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.instructor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--secondary);
}

.instructor-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.instructor-card p {
    color: var(--mid);
    font-size: 1rem;
    margin-bottom: 15px;
}


.social-links a {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
    transform: scale(1.2);
}


.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
}

.partnership-logo {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 75%;
}

.partnership-logo img {
    max-width: 100%;

    width: auto;
    height: 100%;

    object-fit: contain;

}

.partnership-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}



.partnership-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}




/* Team Section */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 10px;
}

.org-level {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.org-group {
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 190px;
}

.org-title {
    background: var(--secondary);
    color: white;
    padding: 10px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
 
    
}

.org-title:hover {
    background: #1e4f46;
}

.org-names {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.org-names.show {
    display: flex;
}

.org-card {
    background: white;
    border-radius: 6px;
    padding: 8px 15px;
    border: 2px solid var(--secondary);
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.leader {
    border-color: #4CAF50;
    font-weight: bold;
}

.organize {
    border-color: #CCA556;
    width: 201px;
}

/* الخطوط الرأسية */
.org-group::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #ccc;
}

.org-chart > .org-group::before {
    display: none;
}

/* ====== Responsive adjustments ====== */
@media (max-width: 768px) {
    .org-level {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .org-group {
        min-width: unset;
        width: 100%;
    }

    .org-names {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .org-card {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .org-card {
        min-width: 120px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .org-title {
        font-size: 1rem;
        padding: 8px 15px;
    }
}



/*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);
}


/* الرسوم المتحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;

}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    min-width: 80px;
    text-align: center;
    backdrop-filter: blur(5px);
    background-color: white;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.countdown-item {
    /* It's helpful to see the parent's styling */
    /* For example, it might be a flex container: */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This centers the children horizontally */
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    background-color: #CCA556;
    width: 160%;
    /* This is the key line */
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .program-title {
        font-size: 1.5rem;
    }

    .program-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .countdown {
        flex-wrap: wrap;
    }

    .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;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .certificates {
        flex-direction: column;
        align-items: center;
    }

    .certificate-card {
        width: 100%;
        max-width: 350px;
    }
   

}


@media (max-width: 480px) {
    .logo-nav img {
        height: 30px;
        
    }
     .navbar-container{
        display: flex;
        justify-content: space-around;
    }

    .mobile-menu {
        font-size: 1.5rem;
    }

    .nav-links {
        top: 60px;
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 10px 15px;
    }

}