/* ========================================
   LEADERSHIP PAGE STYLES - OPTIMIZED FOR 100% ZOOM
   FLIP CARD DESIGN
   ======================================== */

/* CSS Variables */
:root {
    --color-white: #FFFFFF;
    --color-primary-blue: #1D95D1;
    --color-bright-teal: #5CC2CF;
    --color-dark-teal: #207C7E;
    --color-primary-green: #6EB510;
    --color-blue-gray: #2B4150;
    --color-navy: #3C4F5C;
    --font-primary: 'Urbanist', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --spacing-xxl: 100px;
    --container-padding: 40px;
}

/* ========== HERO SECTION ========== */
.leadership-hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0; /* CHANGED to 80px */
    background: radial-gradient(ellipse at 20% 30%, #2B4150 0%, #2B4150 25%, #207C7E 55%, #1D95D1 100%) !important;
}

.leadership-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* SVG Pattern - UPDATED SIZE AND POSITIONING */
.leadership-hero-pattern {
    position: absolute;
    top: -3%;
    left: 40%; /* MOVED RIGHT from 30% */
    right: -10%; /* MOVED RIGHT from -3% */
    bottom: -3%;
    overflow: hidden;
    background-image: url('https://arrowheadprstg.wpengine.com/wp-content/uploads/2026/01/subelement.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 750px; /* FIXED SIZE */
    opacity: 1;
    z-index: 2;
}

.leadership-hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding); /* INCREASED */
    width: 100%;
}

.leadership-hero-content {
    max-width: 750px;
    text-align: left;
    margin: 0;
}

/* 18px Label - REDUCED SIZE */
.leadership-hero-label {
    color: #6EB510;
    font-family: 'Inter', sans-serif;
    font-size: 14px; /* REDUCED from 18px */
    font-weight: 700;
    letter-spacing: 2px; /* REDUCED from 2.5px */
    text-transform: uppercase;
    margin: 0 0 16px 0;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

/* Hero Title - REDUCED SIZE */
.leadership-hero-title {
    color: #FFFFFF;
    font-family: 'Urbanist', sans-serif;
    font-size: 48px; /* REDUCED from 56px */
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px 0; /* REDUCED from 24px */
    animation: fadeInTyping 1.2s ease-out;
	max-width: 650px;
}

/* Typing animation effect */
@keyframes fadeInTyping {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Description - REDUCED SIZE */
.leadership-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* REDUCED from 18px */
    line-height: 1.7;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ========== RESPONSIVE HERO PATTERN ========== */

/* Small to Medium Desktop (1000px - 1400px) - Move pattern further right */
@media (min-width: 1000px) and (max-width: 1400px) {
    .leadership-hero-pattern {
        left: 45% !important;
        right: -12% !important;
        background-position: 100% center !important;
    }
}

/* Hide SVG pattern on screens less than 1000px */
@media (max-width: 999px) {
    .leadership-hero-pattern {
        display: none !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .leadership-hero-title {
        font-size: 42px; /* REDUCED from 48px */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .leadership-hero-section .container {
        padding: 0 20px; /* Mobile padding */
    }
    
    .leadership-hero-section {
        min-height: auto;
        padding: 80px 0; /* INCREASED from 60px */
    }
    
    .leadership-hero-label {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .leadership-hero-title {
        font-size: 40px !important; /* REDUCED from 36px */
    }
    
    .leadership-hero-description {
        font-size: 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .leadership-hero-title {
        font-size: 28px; /* REDUCED from 32px */
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .leadership-hero-label,
    .leadership-hero-title,
    .leadership-hero-description {
        animation: none;
    }
}

/* ========== LEADERSHIP GRID SECTION ========== */
.leadership-grid-section {
    padding: var(--spacing-xxl) 0; /* INCREASED */
    background: #F8F8F8;
}

.leadership-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding); /* INCREASED */
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* ========== FLIP CARD STRUCTURE ========== */
.leadership-card {
    perspective: 1000px;
    height: 680px; /* Fixed height to accommodate longest bio */
}

.leadership-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.leadership-card:hover .leadership-card-inner {
    transform: rotateY(180deg);
}

.leadership-card-front,
.leadership-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.leadership-card-back {
    transform: rotateY(180deg);
}

/* ========== CARD CONTENT ========== */
.leadership-image {
    width: 100%;
    height: 0;
    padding-bottom: 111.11%; /* 10/9 ratio for 9:10 aspect ratio */
    position: relative;
    overflow: hidden;
    background: #E5E5E5;
    flex-shrink: 0; /* Don't allow image to shrink */
}

.leadership-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Align to top for headshots */
    display: block;
}

/* Leadership Info Section */
.leadership-info {
    padding: 20px;
    padding-bottom: 32px; /* Fixed bottom padding for button spacing */
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1; /* Take remaining space after image */
    min-height: 0; /* Allow flex to work properly */
}

/* Leadership Name */
.leadership-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1D95D1;
    margin: 0 0 8px 0;
    flex-shrink: 0; /* Don't shrink */
}

/* Leadership Title */
.leadership-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #6EB510;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    flex-shrink: 0; /* Don't shrink */
}

/* Leadership Bio - Takes available space */
.leadership-bio {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 18px 0;
    flex: 0 0 auto; /* Don't grow, just natural size */
}

/* LinkedIn Button - ALWAYS positioned at bottom */
.leadership-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: #1d95d1;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto; /* This pushes button to bottom */
    align-self: center; /* Center horizontally */
    flex-shrink: 0; /* Never shrink button */
    white-space: nowrap; /* Keep text on one line */
}

.leadership-linkedin svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.leadership-linkedin:hover {
    background: #6eb510;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* ========== HOVER EFFECTS ========== */
.leadership-card-front {
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.leadership-card:hover .leadership-card-front {
    border-color: #5CC2CF;
}

.leadership-card-back {
    border: 2px solid #5CC2CF;
}

/* ========== RESPONSIVE ========== */

/* Large Desktop - 3 columns */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .leadership-hero-title {
        font-size: 42px;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .leadership-card {
        height: 700px; /* Slightly taller for 2-column layout */
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .leadership-grid-section .container {
        padding: 0 20px;
    }
    
    .leadership-hero-section {
        padding: 80px 0;
    }
    
    .leadership-hero-label {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .leadership-hero-title {
        font-size: 32px;
    }
    
    .leadership-hero-description {
        font-size: 16px;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .leadership-card {
        height: 720px; /* Taller for mobile to ensure button fits */
    }
    
    /* On mobile, tap to flip instead of hover */
    .leadership-card {
        cursor: pointer;
    }
    
    /* More breathing room on mobile */
    .leadership-info {
        padding: 20px;
        padding-bottom: 36px;
    }
    
    .leadership-bio {
        margin-bottom: 20px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .leadership-card {
        height: 740px; /* Even taller for small screens */
    }
    
    .leadership-info {
        padding-bottom: 40px;
    }
}

/* ========== ACCESSIBILITY ========== */
/* Add focus states for keyboard navigation */
.leadership-card:focus-within .leadership-card-inner {
    transform: rotateY(180deg);
}

.leadership-card {
    outline: none;
}

.leadership-card:focus-within {
    outline: 2px solid #5CC2CF;
    outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .leadership-card-inner {
        transition: none;
    }
    
    .leadership-card:hover .leadership-card-inner,
    .leadership-card:focus-within .leadership-card-inner {
        transform: none;
    }
    
    /* Instead, just show back with opacity change */
    .leadership-card:hover .leadership-card-front,
    .leadership-card:focus-within .leadership-card-front {
        opacity: 0;
    }
    
    .leadership-card:hover .leadership-card-back,
    .leadership-card:focus-within .leadership-card-back {
        opacity: 1;
    }
    
    .leadership-card-back {
        opacity: 0;
        transform: none;
    }
    
    .leadership-card-front,
    .leadership-card-back {
        transition: opacity 0.3s ease;
    }
}