/* Leadership Page Specific Styles */

/* Leadership Header */
.leadership-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    text-align: center;
}

.leadership-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.leadership-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--white);
    font-size: 2rem;
}

.leadership-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.leadership-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Leadership Content */
.leadership-content {
    padding: 4rem 0;
    background-color: var(--white);
}

.leadership-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Skeleton loading states */
.leadership-card.skeleton-card {
    border-color: transparent;
    box-shadow: none;
    background-color: var(--gray-50);
}

.skeleton-image,
.skeleton-line {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-200);
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.skeleton-line {
    height: 14px;
    margin: 0.35rem 0;
    border-radius: 999px;
}

.skeleton-line.w-60 {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-line.w-40 {
    width: 40%;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: skeleton-shimmer 1.3s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(300%);
    }
}

.leadership-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.chairman-card {
    border: 1px solid var(--gray-200);
    background: var(--white);
    position: relative;
}

.chairman-card::before {
    display: none;
}

.chairman-card .leadership-info h3 {
    color: var(--gray-900);
    font-weight: 700;
}

.chairman-card .leadership-info p {
    color: var(--gray-900);
    font-weight: 600;
}

.leadership-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.leadership-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.leadership-card:hover .leadership-image img {
    transform: scale(1.05);
}

.leadership-info {
    padding: 2rem 1.5rem;
    background-color: var(--white);
}

.leadership-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.leadership-info p {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Inline LinkedIn icon next to name */
.leadership-linkedin-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
    color: #0a66c2;
    font-size: 0.9rem;
}

/* Links row (LinkedIn / CV) */
.leadership-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.leadership-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    color: var(--primary-color);
    text-decoration: none;
    background-color: #f9fafb;
}

.leadership-links a i {
    font-size: 0.85rem;
}

/* Special styling for CEO card */
.leadership-section:first-child .leadership-card {
    border: 1px solid var(--gray-200);
    position: relative;
}

.leadership-section:first-child .leadership-card::before {
    content: 'الرئيس التنفيذي';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

/* Department categories styling */
.leadership-section:nth-child(2) .leadership-card {
    border-left: 4px solid var(--primary-color);
}

.leadership-section:nth-child(2) .leadership-card:hover {
    border-left-color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .leadership-title {
        font-size: 2.5rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .leadership-header {
        padding: 6rem 0 3rem;
    }
    
    .leadership-title {
        font-size: 2rem;
    }
    
    .leadership-subtitle {
        font-size: 1rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .leadership-image {
        height: 250px;
    }
    
    .leadership-info {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .leadership-header {
        padding: 5rem 0 2rem;
    }
    
    .leadership-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .leadership-title {
        font-size: 1.75rem;
    }
    
    .leadership-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .leadership-image {
        height: 200px;
    }
    
    .leadership-info h3 {
        font-size: 1.125rem;
    }
    
    .leadership-info p {
        font-size: 0.9rem;
    }
}

/* Animation for cards */
.leadership-card {
    animation: fadeInUp 0.6s ease-out;
}

.leadership-card:nth-child(1) { animation-delay: 0.1s; }
.leadership-card:nth-child(2) { animation-delay: 0.2s; }
.leadership-card:nth-child(3) { animation-delay: 0.3s; }
.leadership-card:nth-child(4) { animation-delay: 0.4s; }
.leadership-card:nth-child(5) { animation-delay: 0.5s; }
.leadership-card:nth-child(6) { animation-delay: 0.6s; }
.leadership-card:nth-child(7) { animation-delay: 0.7s; }
.leadership-card:nth-child(8) { animation-delay: 0.8s; }
.leadership-card:nth-child(9) { animation-delay: 0.9s; }
.leadership-card:nth-child(10) { animation-delay: 1.0s; }
.leadership-card:nth-child(11) { animation-delay: 1.1s; }
.leadership-card:nth-child(12) { animation-delay: 1.2s; }
.leadership-card:nth-child(13) { animation-delay: 1.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.leadership-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--gray-500);
}

.leadership-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover effects for better UX */
.leadership-card {
    cursor: pointer;
}

.leadership-card:hover .leadership-info h3 {
    color: var(--primary-color);
}


/* Responsive Design for Chairman Card */
@media (max-width: 768px) {
    .chairman-card::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .chairman-card::before {
        display: none;
    }
}
