/* Leadership Section */
.leadership-section {
    background: linear-gradient(135deg,
        rgba(248, 249, 250, 0.8) 0%,
        rgba(241, 243, 244, 0.9) 50%,
        rgba(248, 249, 250, 0.8) 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 154, 204, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.leadership-section .section-header h2 {
    color: var(--cpc-blue-primary);
    position: relative;
    z-index: 1;
}

.leader-profile {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 6rem;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.leader-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 44, 95, 0.01) 0%,
        rgba(0, 102, 204, 0.02) 50%,
        rgba(0, 154, 204, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.leader-profile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.12),
        0 16px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.leader-profile:hover::before {
    opacity: 1;
}

.leader-profile:last-child {
    margin-bottom: 0;
}

.leader-profile-alt {
    flex-direction: row-reverse;
}

.leader-profile-alt .leader-image-container {
    order: 2;
}

.leader-profile-alt .leader-content {
    order: 1;
}

.leader-image-container {
    flex-shrink: 0;
    width: 380px;
    position: relative;
}

.leader-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(1.05) contrast(1.1);
}

.leader-profile:hover .leader-image {
    transform: scale(1.05) rotate(1deg);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(0, 0, 0, 0.12);
}

.leader-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.leader-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cpc-blue-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--cpc-blue-primary), var(--cpc-blue-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leader-title {
    font-size: 1.1rem;
    color: var(--cpc-blue-secondary);
    font-weight: 600;
    margin-bottom: 2rem !important;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid linear-gradient(90deg, var(--cpc-blue-accent), var(--cpc-blue-light));
    position: relative;
}

.leader-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cpc-blue-accent), var(--cpc-blue-light));
    border-radius: 2px;
}

.leader-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.25rem;
    max-width: none;
    font-weight: 400;
}

.leader-content p:last-child {
    margin-bottom: 0;
}

.leader-content p:first-of-type::first-letter {
    font-size: 3.5rem;
    line-height: 1;
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    font-weight: 700;
    color: var(--cpc-blue-primary);
}

.leader-traits {
    margin-top: 2.5rem !important;
    padding: 0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.leader-trait-item {
    background: linear-gradient(135deg,
        rgba(0, 102, 204, 0.08) 0%,
        rgba(0, 154, 204, 0.06) 50%,
        rgba(0, 174, 239, 0.04) 100%);
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.leader-trait-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 174, 239, 0.1),
        transparent);
    transition: left 0.6s ease;
}

.leader-trait-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.3);
}

.leader-trait-item:hover::before {
    left: 100%;
}

.leader-trait-item strong {
    color: var(--cpc-blue-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.leader-trait-item span {
    color: var(--cpc-blue-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    margin-left: 0.5rem;
}

/* Alternative styling for the traits text */
.leader-traits-alt {
    margin-top: 2.5rem !important;
    padding: 2.5rem;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 154, 204, 0.02) 0%, transparent 50%);
    border-radius: 24px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.leader-traits-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--cpc-blue-accent), var(--cpc-blue-light));
    border-radius: 24px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.leader-traits-alt strong {
    color: var(--cpc-blue-primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.leader-traits-alt p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .leader-profile {
        gap: 3rem;
        padding: 3rem;
    }

    .leader-image-container {
        width: 320px;
    }

    .leader-content h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .leader-profile,
    .leader-profile-alt {
        flex-direction: column !important;
        gap: 2.5rem;
        padding: 2.5rem;
        margin-bottom: 4rem;
    }

    .leader-image-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .leader-content h3 {
        font-size: 2rem;
        text-align: center;
    }

    .leader-title {
        text-align: center;
        font-size: 1rem;
    }

    .leader-content p {
        font-size: 1.1rem;
    }

    .leader-content p:first-of-type::first-letter {
        font-size: 2.5rem;
        float: none;
        margin-right: 0;
        margin-top: 0;
        display: block;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}