/* ============ CSS خاص بصفحة القياديون ============ */

:root {
    --primary-color: #3E67A3;
    --secondary-color: #03A180;
    --accent-color: #BBE7F4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --text-color: #334155;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 15px;
}

/* هيدر الصفحة الداخلي */
.page-header {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(62, 103, 163, 0.92) 0%, rgba(3, 161, 128, 0.88) 100%), 
                url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeInDown 1s ease;
}

.page-header p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
    position: relative;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* القائد الرئيسي */
.main-leader {
    max-width: 1000px;
    margin: 0 auto 100px;
    position: relative;
}

.leader-main-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-top: 6px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.leader-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.leader-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.leader-main-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin: 0 auto 40px;
    border: 8px solid white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.leader-main-card:hover .leader-main-image {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.leader-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.leader-main-card:hover .leader-main-image img {
    transform: scale(1.1);
}

.leader-main-info h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.leader-main-position {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.leader-main-position::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.leader-main-bio {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.leader-experience {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #9fd9e8);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(187, 231, 244, 0.4);
    transition: var(--transition);
}

.leader-experience:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(187, 231, 244, 0.6);
}

/* فريق القيادة */
.leaders-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 70px;
    position: relative;
    padding-bottom: 25px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    margin-bottom: 100px;
}

.leader-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 35px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
    opacity: 0;
    transform: translateY(30px);
}

.leader-card.animate-in {
    animation: cardFadeIn 0.6s ease forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leader-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.leader-card:hover::before {
    height: 6px;
}

.leader-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, var(--secondary-color), #029170);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(3, 161, 128, 0.3);
}

.leader-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 30px;
    border: 5px solid var(--accent-color);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(62, 103, 163, 0.25);
    transition: var(--transition);
}

.leader-card:hover .leader-image {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(62, 103, 163, 0.35);
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.leader-card:hover .leader-image img {
    transform: scale(1.15);
}

.leader-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.leader-position {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.leader-position::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.leader-bio {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.leader-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(62, 103, 163, 0.3);
}

.social-icon.twitter:hover {
    background: #1DA1F2;
}

.social-icon.linkedin-in:hover {
    background: #0077B5;
}

.social-icon.envelope:hover {
    background: #EA4335;
}

/* قسم المؤهلات */
.qualifications {
    background: linear-gradient(135deg, rgba(187, 231, 244, 0.15) 0%, rgba(62, 103, 163, 0.08) 100%);
    padding: 100px 0;
    margin: 100px 0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.qualifications::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233E67A3' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.qualification-item {
    text-align: center;
    padding: 50px 35px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.qualification-item.animate-in {
    animation: cardFadeIn 0.6s ease forwards;
}

.qualification-item:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.qualification-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    transition: var(--transition);
}

.qualification-item:hover .qualification-icon {
    transform: scale(1.2) rotate(5deg);
}

.qualification-item h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.qualification-item p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}


.back-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 14px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            margin-top: 30px;
            box-shadow: 0 4px 15px rgba(62, 103, 163, 0.3);
        }

        .back-btn:hover {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(3, 161, 128, 0.4);
        }

        .back-btn i {
            font-size: 1.1rem;
        }

/* تصميم متجاوب */
@media (max-width: 1200px) {
    .page-header h1 {
        font-size: 3.2rem;
    }
    
    .leader-main-card {
        padding: 50px;
    }
    
    .leaders-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 140px 0 80px;
    }
    
    .page-header h1 {
        font-size: 2.8rem;
    }
    
    .page-header p {
        font-size: 1.3rem;
        padding: 0 20px;
    }
    
    .leader-main-card {
        padding: 40px 30px;
    }
    
    .leader-main-image {
        width: 200px;
        height: 200px;
    }
    
    .leader-main-info h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .leaders-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 35px;
    }
    
    .qualifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.4rem;
    }
    
    .page-header p {
        font-size: 1.2rem;
    }
    
    .leader-main-image {
        width: 180px;
        height: 180px;
    }
    
    .leader-main-info h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    
    .leaders-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 60px;
    }
    
    .leader-card {
        padding: 35px 30px;
    }
    
    .leader-image {
        width: 160px;
        height: 160px;
    }
    
    .qualifications {
        padding: 70px 0;
        margin: 70px 0;
    }
    
    .qualifications-grid {
        grid-template-columns: 1fr;
    }
    
    .qualification-item {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .leader-main-card {
        padding: 35px 25px;
    }
    
    .leader-main-image {
        width: 160px;
        height: 160px;
    }
    
    .leader-main-info h2 {
        font-size: 1.8rem;
    }
    
    .leader-main-position {
        font-size: 1.3rem;
    }
    
    .leader-main-bio {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .leader-card {
        padding: 30px 25px;
    }
    
    .leader-image {
        width: 150px;
        height: 150px;
    }
    
    .leader-info h3 {
        font-size: 1.6rem;
    }

     .back-btn {
                padding: 12px 30px;
                font-size: 1rem;
            }
        
}

@media (max-width: 375px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .leader-main-card,
    .leader-card,
    .qualification-item {
        padding: 30px 20px;
    }
    
    .leader-main-image {
        width: 140px;
        height: 140px;
    }
    
    .leader-image {
        width: 140px;
        height: 140px;
    }
    
    .leader-info h3 {
        font-size: 1.5rem;
    }
}

/* تأثيرات التحميل */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* تأثيرات الطباعة */
@media print {
    .page-header {
        background: white !important;
        color: black !important;
        padding: 50px 0;
    }
    
    .page-header h1 {
        color: black;
    }
    
    .leader-main-card,
    .leader-card,
    .qualification-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .social-icon {
        display: none;
    }
}