/* Leadership Page Styles */

/* Leadership Hero Section */
.leadership-hero {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    background: #3a0ca3; /* Fallback color */
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ensure proper stacking context */
.leadership-hero {
    isolation: isolate;
}

/* Background image styling */
.leadership-hero .hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2;
}

/* Overlay styling */
.leadership-hero .hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 37, 54, 0.9) 0%, rgba(58, 12, 163, 0.6) 100%);
    z-index: 2;
}

/* Mobile-specific styles for the text that's getting cut off */
.mobile-visible-text {
    position: relative;
    z-index: 20;
    hyphens: none; /* avoid mid-word hyphenation */
    margin-top: 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

/* Ensure text is readable on all devices */
.leadership-hero-content h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    font-size: 2.5rem;
}

/* Divider styling */
.leadership-hero-content .divider {
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 1.5rem auto;
    border: none;
}

.leadership-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 120px 0 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    box-sizing: border-box;
}

.leadership-hero-content .container {
    position: relative;
    z-index: 15;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.leadership-hero-content .hero-content-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

/* Hero container flexbox styles - only apply to mobile */
@media (max-width: 480px) {
    .hero-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
}

/* Extra small mobile devices - Responsive flexbox layout */
@media (max-width: 480px) {
    /* Hero section container */
    .leadership-hero {
        min-height: 35vh;
        height: auto;
        padding: 50px 0 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Adjust navbar for mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand .subtitle {
        font-size: 0.7rem;
    }
    
    /* Hero content area */
    .leadership-hero-content {
        padding: 2rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Container adjustments */
    .leadership-hero-content .container {
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* Title styling */
    .leadership-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
    }
    
    /* Divider styling */
    .leadership-hero-content .divider {
        width: 50px;
        margin: 0.5rem auto;
        height: 3px;
    }
    
    /* Text styling */
    .mobile-visible-text,
    .leadership-hero-content .lead {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
        margin: 0.5rem auto !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center;
        /* Break long words if necessary */
        overflow-wrap: break-word !important; /* safer wrapping */
        word-wrap: break-word !important;     /* legacy alias */
        word-break: normal !important;        /* avoid mid-word */
        hyphens: none !important;             /* disable hyphenation */
    }
    
    /* Background image adjustments */
    .hero-bg-img {
        object-fit: cover;
        object-position: center;
    }
}

/* Very small mobile devices - Enhanced responsive layout */
@media (max-width: 360px) {
    /* Further optimize hero section */
    .leadership-hero {
        padding: 50px 0 30px;
    }
    
    /* Container adjustments */
    .hero-container {
        padding: 0 5px;
    }
    
    /* Content wrapper adjustments */
    .hero-content-wrapper {
        padding: 10px 5px;
    }
    
    /* Title adjustments */
    .leadership-hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    /* Text adjustments */
    .mobile-visible-text {
        font-size: 0.8rem !important;
        padding: 0 8px !important;
        line-height: 1.2 !important;
        margin: 10px auto 15px !important;
    }
    
    /* Divider adjustments */
    .leadership-hero-content .divider {
        width: 50px;
        margin: 8px auto;
        height: 3px;
    }
}

/* Leadership Team Section */
.leadership-team-section {
    background-color: var(--light);
    position: relative;
    padding: 100px 0;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto;
}

/* Leadership Cards */
.leadership-cards {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Center images in their columns */
.leadership-card .col-lg-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.leadership-card .row {
    align-items: center;
}

.leadership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.leadership-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none !important;
    text-decoration: none !important;
    margin: auto;
    width: 100%;
}

/* Fix for underline issue */
.image-wrapper {
    border: none !important;
    text-decoration: none !important;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 10px;
}

/* Additional fixes to prevent any underlines */
.leadership-image-container::after,
.leadership-image-container::before,
.image-wrapper::after,
.image-wrapper::before,
.leadership-image::after,
.leadership-image::before {
    display: none !important;
    content: none !important;
    border: none !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Override any potential browser default styles */
.leadership-card a,
.leadership-card a:hover,
.leadership-card a:focus,
.leadership-card a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Image container styling - standardized for all leadership cards */
.leadership-image-container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
    border: none !important;
}

/* Remove any pseudo-elements that might cause underlines */
.leadership-image-container::after,
.leadership-image-container::before,
.image-wrapper::after,
.image-wrapper::before,
.leadership-social::after,
.leadership-social::before {
    display: none !important;
    content: none !important;
}

/* Image wrapper styling */
.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
    border: none !important;
}

/* Standardized hover effects for all leadership cards */
.leadership-card:hover .leadership-image {
    transform: scale(1.05);
}

.leadership-card:hover .leadership-social {
    transform: translateY(0);
}

/* Leadership image styling */
.leadership-image {
    width: auto;
    max-width: 85%;
    height: auto;
    max-height: 300px;
    object-fit: contain !important;
    transition: transform 0.5s ease;
    margin: 10px auto;
    display: block;
    filter: contrast(1.05) saturate(1.05);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none !important;
    border-bottom: none !important;
    border: none !important;
    outline: none !important;
    background-color: transparent;
}

/* Remove any underlines from image containers and links */
.leadership-image-container,
.leadership-image-container a,
.leadership-image-container img,
.leadership-image,
.ceo-image {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.leadership-card:hover .leadership-image {
    transform: scale(1.05);
}

/* CEO image styling removed - now using standard leadership-image class */

/* Social media container - always visible */
.leadership-social-simple {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 10;
}

/* Social icons remain visible - no hover transform needed */

/* Style the social icons */
.social-icon {
    color: white;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Comprehensive fix for underlines */
.leadership-image-container,
.leadership-image-container *,
.leadership-social,
.leadership-social *,
.social-icon,
.social-icon *,
.leadership-image,
.ceo-image,
a .leadership-image,
a .ceo-image,
.no-underline,
.no-underline * {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
    border: none !important;
}

.leadership-card:hover .leadership-social {
    transform: translateY(0);
}

/* Radical fix for underline issue */
.leadership-card *,
.leadership-card *::before,
.leadership-card *::after {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.leadership-card {
    position: relative;
}

/* Fix for any potential parent element causing underlines */
.leadership-card::after,
.leadership-card::before {
    display: none !important;
    content: none !important;
}

/* Add staggered animation for social icons */
/* Simple hover effect for social icons */
.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: white;
    color: var(--primary);
}

/* Remove any underlines from links */
a.social-icon, 
a.social-icon:hover, 
a.social-icon:focus, 
a.social-icon:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

@keyframes socialIconPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 0;
    border-radius: 50%;
}

.social-icon:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-icon i {
    position: relative;
    z-index: 2;
}

.leadership-content {
    padding: 2.5rem 2rem 2rem;
    position: relative;
}

.leadership-content-inner {
    position: relative;
    z-index: 5;
}

.leadership-badge {
    white-space: nowrap;
    position: absolute;
    top: 20px;
    right: 2rem;
    transform: translateY(0);
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 10;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Restored base content styles that were accidentally removed */
.leadership-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.leadership-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1rem 0;
}

.leadership-bio {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.leadership-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.expertise-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.expertise-tag:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 575px) {
    .leadership-hero {
        min-height: 40vh;
    }
    
    /* Enhanced positioning for badges on small mobile screens */
    .leadership-badge {
        top: 12px; /* Position badge lower but still visible on smaller screens */
        font-size: clamp(0.75rem, 3.8vw, 0.95rem); /* scale text to fit */
        padding: 0.35rem 0.9rem; /* slightly tighter padding */
        left: 50%; /* ensure centered */
        right: auto;
        transform: translateX(-50%);
        max-width: calc(100% - 2rem); /* avoid overflowing container */
        box-sizing: border-box; /* include padding in width calc */
        text-align: center; /* center multi-word title */
    }
    
    .leadership-content {
        padding-top: 4.9rem; /* slight bump to ensure space for taller titles */
    }
    
    /* Additional space for name on smaller screens */
    .leadership-name {
        margin-top: 15px;
    }
    
    .leadership-hero-content {
        padding: 80px 0 40px 0;
    }
    
    .leadership-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .leadership-hero-content .lead {
        font-size: 1rem;
    }
    
    .leadership-team-section,
    .leadership-values-section,
    .leadership-principles-section {
        padding: 40px 0;
    }
    
    .section-intro h2,
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-intro .lead,
    .section-header .lead {
        font-size: 1rem;
    }
    
    .leadership-image-container {
        height: 240px;
    }
    
    .leadership-image {
        max-width: 90%;
        max-height: 220px;
    }
    
    .leadership-content {
        padding: 2.5rem 1rem 1.25rem;
    }
    
    .leadership-name {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .leadership-divider {
        display: block;
        margin: 0.75rem auto;
    }
    
    .leadership-position {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .leadership-bio {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .leadership-expertise {
        gap: 0.5rem;
    }
    
    .expertise-tag {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
        margin: 0.2rem;
    }
    
    .leadership-social-simple a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .value-item {
        padding: 1.25rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .value-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .value-content p {
        font-size: 0.9rem;
    }
    
    .join-team-card {
        padding: 1.5rem;
    }
    
    .floating-shape {
        display: none;
    }
}

/* Leadership Values Section */
.leadership-values-section {
    background-color: #fff;
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.value-item:hover .value-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: rotateY(180deg);
}

.value-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.values-image-container {
    position: relative;
    padding: 2rem;
}

.values-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.shape1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(76, 201, 240, 0.2));
    top: 0;
    left: 0;
}

.shape2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.2), rgba(58, 12, 163, 0.2));
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

.shape3 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.2), rgba(67, 97, 238, 0.2));
    bottom: 30%;
    left: 10%;
    animation-delay: 4s;
}

/* Leadership Principles Section */
.leadership-principles-section {
    background-color: var(--light-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.leadership-principles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTAgNTEuNzZjMzYuMjEtMi4yNSA3Ny41Ny0zLjU4IDEyNi40Mi0zLjU4IDMyMCAwIDMyMCA1NyA2NDAgNTcgMjcxLjE1IDAgMzEyLjU4LTQwLjkxIDUxMy41OC01Ny40VjBIMHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCA5MC43MmMxNzEtMTcuNTQgMzM3Ljc2LTMxLjc0IDUwMC0zMS43NCAyNzAuNDIgMCAzMjEuNTggNTYuOTQgNzgwIDU2Ljk0IDIyLjg2IDAgNDMuMTktLjg4IDYwLS4zOVYwSDB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTAgNTcuNzRjMTk3LjE4LTIzLjU2IDM0OS4yLTQ3LjEgNTAwLTU3Ljc0IDMzOC4yOC0yMy4zIDQ2OS43IDU3Ljc0IDc4MCA1Ny43NCA2Ni4wMiAwIDEyNi40Mi0xNS4xMSAyMDAtMzIuMTZWMEgweiIvPjwvZz48L3N2Zz4=');
    background-size: 100% 100px;
    background-position: top;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.5;
}

.leadership-principles-section .container {
    position: relative;
    z-index: 2;
}

/* Timeline Layout */
.principles-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.principles-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.8), rgba(79, 70, 229, 0.1));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* ... */
.timeline-icon {
    position: absolute;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.6s ease;
}

/* Icon rotation animation */
@keyframes icon-rotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.timeline-item:hover .timeline-icon i {
    animation: icon-rotate 1.5s infinite;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.timeline-content p {
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Ensure overall timeline text is dark and visible */
.timeline-content { color: var(--text-dark); }

/* Override AOS default hidden state to ensure visibility even if JS fails */
.timeline-item[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.timeline-line {
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: rgba(79, 70, 229, 0.5);
    top: 50%;
}

.timeline-item:nth-child(odd) .timeline-line {
    left: -25px;
}

.timeline-item:nth-child(even) .timeline-line {
    right: -25px;
}

/* Hover Effects */
.timeline-item:hover .timeline-icon {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.3), 0 0 20px rgba(0, 0, 0, 0.15);
    background: var(--primary);
}

.timeline-item:hover .timeline-icon i {
    color: #fff;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Timeline */
@media (max-width: 575px) {
    .leadership-hero {
        min-height: 40vh;
    }
    
    /* Enhanced positioning for badges on small mobile screens */
    .leadership-badge {
        top: 12px; /* Position badge lower but still visible on smaller screens */
        font-size: clamp(0.75rem, 3.8vw, 0.95rem); /* scale text to fit */
        padding: 0.35rem 0.9rem; /* slightly tighter padding */
        left: 50%; /* ensure centered */
        right: auto;
        transform: translateX(-50%);
        max-width: calc(100% - 2rem); /* avoid overflowing container */
        box-sizing: border-box; /* include padding in width calc */
        text-align: center; /* center multi-word title */
    }
    
    .leadership-content {
        padding-top: 4.9rem; /* slight bump to ensure space for taller titles */
    }
    
    /* Additional space for name on smaller screens */
    .leadership-name {
        margin-top: 15px;
    }
    
    .leadership-hero-content {
        padding: 80px 0 40px 0;
    }
    
    .leadership-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .leadership-hero-content .lead {
        font-size: 1rem;
    }
    
    .leadership-team-section,
    .leadership-values-section,
    .leadership-principles-section {
        padding: 40px 0;
    }
    
    .section-intro h2,
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-intro .lead,
    .section-header .lead {
        font-size: 1rem;
    }
    
    .leadership-image-container {
        height: 240px;
    }
    
    .leadership-image {
        max-width: 90%;
        max-height: 220px;
    }
    
    .leadership-content {
        padding: 2.5rem 1rem 1.25rem;
    }
    
    .leadership-name {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .leadership-position {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .leadership-bio {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .leadership-expertise {
        gap: 0.5rem;
    }
    
    .expertise-tag {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
        margin: 0.2rem;
    }
    
    .leadership-social-simple a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .value-item {
        padding: 1.25rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .value-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .value-content p {
        font-size: 0.9rem;
    }
    
    .join-team-card {
        padding: 1.5rem;
    }
    
    .floating-shape {
        display: none;
    }
    /* Hide the center spine on mobile */
    .principles-timeline::before {
        display: none;
    }
    
    /* Move icon above the content card and center it */
    .timeline-item {
        flex-direction: column;
        align-items: stretch;
    }
    .timeline-icon {
        position: relative;
        left: auto;
        transform: none;
        margin: 0 auto 12px auto;
    }
    
    /* Make the timeline card full-width on mobile */
    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-item:hover .timeline-icon {
        transform: scale(1.1);
        background: var(--primary);
    }
    
    .timeline-item:hover .timeline-icon i {
        color: #fff;
        animation: icon-rotate 1.5s infinite;
    }
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .leadership-team-section,
    .leadership-values-section,
    .leadership-principles-section {
        padding: 80px 0;
    }
    
    .leadership-image {
        max-width: 90%;
        max-height: 280px;
    }
    
    .leadership-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 991px) {
    .leadership-card .row {
        flex-direction: column;
        align-items: center;
    }
    
    .leadership-image-container {
        height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }
    
    .leadership-team-section,
    .leadership-values-section,
    .leadership-principles-section {
        padding: 70px 0;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-image-container {
        margin-top: 2.5rem;
        height: 300px;
    }
    
    .leadership-badge {
        left: 50%;
        transform: translateX(-50%);
        top: 15px; /* Position the badge lower, away from photo frames */
    }
    
    .leadership-content {
        text-align: center;
        padding: 4.5rem 1.5rem 2rem; /* Increased top padding to make room for the badge */
    }
    
    /* Adjust name position to create more space */
    .leadership-name {
        margin-top: 10px;
    }
    
    .leadership-expertise {
        justify-content: center;
    }
    
    .section-intro h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .leadership-hero {
        min-height: 50vh;
    }
    
    .leadership-hero-content {
        padding: 2rem 0;
    }
    
    .leadership-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .leadership-hero-content .lead {
        font-size: 1.1rem;
    }
    
    .leadership-team-section,
    .leadership-values-section,
    .leadership-principles-section {
        padding: 50px 0;
    }
    
    .section-intro h2,
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-intro .lead,
    .section-header .lead {
        font-size: 1.1rem;
    }
    
    .leadership-image-container {
        height: 280px;
    }
    
    .leadership-image {
        max-width: 85%;
        max-height: 250px;
    }
    
    .leadership-content {
        padding: 2.5rem 1.25rem 1.5rem;
    }
    
    .leadership-name {
        font-size: 1.5rem;
    }
    
    .leadership-bio {
        font-size: 0.95rem;
    }
    
    .leadership-expertise {
        flex-wrap: wrap;
    }
    
    .expertise-tag {
        margin: 0.25rem;
        font-size: 0.8rem;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .value-icon {
        margin: 0 auto 1rem;
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .value-content h4 {
        font-size: 1.3rem;
    }
    
    .join-team-card {
        padding: 2rem;
    }
    
    .floating-shape {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Animation for profile cards on hover */
@keyframes profilePulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

/* Add a subtle typing animation to the leadership bios */
.leadership-bio {
    overflow: hidden;
    border-right: .15em solid transparent;
    white-space: normal;
    animation: typing 3s steps(40, end);
}

@keyframes typing {
    from { max-height: 0; opacity: 0; }
    to { max-height: 1000px; opacity: 1; }
}

/* Add a subtle background pattern */
.leadership-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Add a cool hover effect for the leadership cards */
.leadership-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0), rgba(76, 201, 240, 0));
    z-index: 0;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.leadership-card:hover::after {
    opacity: 0.1;
}
