/* ============================================
   Leadership Section - Alternating Layout
============================================ */
.leadership-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.leader-message-wrapper {
    position: relative;
    padding: 40px 0;
}

/* Image Section Styles */
.leader-image-section {
    position: relative;
    perspective: 1000px;
}

.leader-image-frame {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: floatImage 6s ease-in-out infinite;
}

.leader-image-frame:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.leader-image-frame img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.leader-image-frame:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Director Frame - Purple Accent */
.director-frame {
    border: 5px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

/* Principal Frame - Pink Accent */
.principal-frame {
    border: 5px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #f093fb 0%, #f5576c 100%) border-box;
}

/* Badge Overlay on Image */
.leader-badge-overlay {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: 2;
}

.director-badge-overlay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.principal-badge-overlay {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    }
}

/* Profile Info Below Image */
.leader-profile-info {
    margin-top: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leader-profile-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.leader-profile-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.principal-frame + .leader-profile-info::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.leader-profile-name {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.leader-profile-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.principal-frame ~ .leader-profile-info .leader-profile-name::after {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.leader-profile-info:hover .leader-profile-name::after {
    width: 100%;
}

.leader-profile-name:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leader-profile-title {
    font-size: 15px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.leader-profile-title::before,
.leader-profile-title::after {
    content: '';
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.principal-frame ~ .leader-profile-info .leader-profile-title::before,
.principal-frame ~ .leader-profile-info .leader-profile-title::after {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Section Styles */
.leader-content-section {
    padding: 40px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInContent 0.8s ease-out;
}

.leader-content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leader-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 25px 25px 0 0;
}

/* Content Badge */
.content-badge {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInBadge 0.6s ease-out;
}

.content-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.content-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.content-badge:hover::before {
    left: 100%;
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.director-content-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.principal-content-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Content Title */
.content-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Content Greeting */
.content-greeting {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

/* Content Message */
.content-message {
    margin-bottom: 25px;
}

.content-message p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 15px;
    text-align: justify;
}

/* Content Signature */
.content-signature {
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.signature-closing {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0;
    font-style: italic;
}

/* Decorative Elements */
.leader-message-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 50%;
    z-index: -1;
}

.leader-message-wrapper::after {
    content: '';
    position: absolute;
    bottom: 50%;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f093fb20 0%, #f5576c20 100%);
    border-radius: 50%;
    z-index: -1;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .leader-image-frame {
        margin-bottom: 30px;
    }
    
    .content-title {
        font-size: 24px;
    }
    
    .leader-profile-name {
        font-size: 20px;
    }
    
    .leader-badge-overlay {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 767px) {
    .leader-content-section {
        padding: 20px;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .content-message p {
        font-size: 15px;
    }
    
    .leader-message-wrapper {
        padding: 20px 0;
    }
    
    .leader-badge-overlay {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 10px;
        right: 10px;
    }
}

/* Smooth Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leader-message-wrapper {
    animation: fadeInUp 0.8s ease-out;
}
