/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding: 40px 20px;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

/* Profile */
.profile {
    flex: 0 0 auto;
}

.profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ddd;
}

/* Info */
.info {
    margin-left: 30px;
}

.info h1 {
    font-size: 36px;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.3;
}

.info h2 {
    font-size: 22px;
    font-weight: 400;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
}
#bio {
    margin-top: 10px; /* ↓↓↓ المسافة فوق Bio */
}
#p{
    margin-top: 5px; /* ↓↓↓ المسافة فوق Bio */
}    /* ↓↓↓ المسافة فوق Bio */

#news {
    margin-top:5px; /* ↓↓↓ المسافة فوق Bio */
}
#Research_intersted {
    margin-top:5px; /* ↓↓↓ المسافة فوق Bio */
}
#teaching ul {
    line-height: 1.2; /* تأكد من استخدام هذه القيمة في كل الأماكن */
}

#teaching ul li {
    margin-bottom: 4px; /* تقليل المسافة بين العناصر */
}

#awards {
    margin-top:5px; /* ↓↓↓ المسافة فوق Bio */
}
.info h3 {
    font-size: 20px;
    font-weight: 300;
    color: #888;
    line-height: 1.4;
}

/* Navigation */
.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #eee;
    margin-top: 5px;
    /* margin-bottom: 5px; */
    padding-bottom: 5px;
     margin-bottom: 0px;
}

.navigation a {
    text-decoration: none;
    color: #0077cc;
    font-size: 16px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.navigation a:hover {
    background-color: #f0f8ff;
}

.navigation a.disabled {
    color: #aaa;
    pointer-events: none;
    cursor: default;
}

/* Sections */
section {
    margin-top: 20px;
    margin-bottom: 20px;
}

section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #444;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    line-height: 1.3;
}

section p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5em;
}

section ul {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.2; /* حاول استخدام 1.2 بدلاً من 1.8 لتقليل التباعد */
}

section ul li {
    margin-bottom: 10px; /* قلل المسافة بين العناصر */
    font-size: 17px;
    line-height: 1.2; /* تأكد من أن هذا التعديل غير مكرر */
    color: #555;
    padding-bottom: 4px;
}

#contact ul {
    list-style: none; /* إزالة الرموز الافتراضية */
    padding-left: 0;
    margin: 0;
    line-height: 1.2; /* تقليل التباعد بين الأسطر */
}

#contact ul li {
    margin-bottom: 8px; /* تقليل المسافة بين العناصر */
    font-size: 16px; /* ضبط حجم الخط */
    line-height: 1.2; /* ضبط التباعد بين الأسطر داخل li */
}

#contact ul li i {
    margin-right: 10px;
    color: #555;
    width: 20px;
    text-align: center;
}
/* Contact Label */
.contact-list .label {
    font-weight: bold;
    display: inline-block;
    width: 80px;
}

/* Badge */
.badge {
    background-color: #0077cc;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
}

/* General Links */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    font-size: 14px;
    color: #aaa;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .info {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    section p {
        font-size: 16px;
        line-height: 1.7;
    }
}
