/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LEADERSHIP SECTION ===== */
.leadership-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f3 100%);
}

.main-title {
    text-align: center;
    font-size: 3.2rem;
    color: #0b7a44;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0b7a44, #0da75c);
    border-radius: 2px;
}

.leadership-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.intro-image {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.team-image:hover {
    transform: scale(1.03);
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.intro-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: #e8f5e9;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0b7a44;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* ===== TEAM SECTIONS ===== */
.directors-section,
.advisors-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #0b7a44;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0b7a44, #0da75c);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ===== TEAM CARDS ===== */
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .member-photo {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.director-badge {
    background: rgba(11, 122, 68, 0.95);
    color: white;
}

.advisor-badge {
    background: rgba(21, 101, 192, 0.95);
    color: white;
}

.card-content {
    padding: 25px;
}

.member-name {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.member-role {
    color: #0b7a44;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.member-brief {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 70px;
}

/* ===== CARD BUTTONS ===== */
.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view-profile,
.btn-learn-more {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-view-profile {
    background: linear-gradient(135deg, #0b7a44, #0da75c);
    color: white;
}

.btn-view-profile:hover {
    background: linear-gradient(135deg, #0a6a3a, #0c9650);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 122, 68, 0.2);
}

.btn-learn-more {
    background: #f8f9fa;
    color: #0b7a44;
    border: 2px solid #e8f5e9;
}

.btn-learn-more:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-view-profile i,
.btn-learn-more i {
    font-size: 1.1rem;
}

/* ===== POPUPS ===== */

/* Profile Popup */
.profile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.profile-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.profile-popup.active .popup-container {
    transform: translateY(0);
    opacity: 1;
}

.popup-content {
    padding: 40px;
    overflow-y: auto;
    max-height: 85vh;
}

/* Info Popup */
.info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.info-popup.active {
    opacity: 1;
    visibility: visible;
}

.info-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.info-popup.active .info-container {
    transform: scale(1);
    opacity: 1;
}

.info-content {
    padding: 40px;
    overflow-y: auto;
    max-height: 80vh;
}

/* ===== POPUP CONTENT STYLES ===== */

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #0b7a44;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #0b7a44;
    color: white;
    transform: rotate(90deg);
}

/* Popup Header */
.popup-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e8f5e9;
}

.popup-image {
    flex: 0 0 160px;
    height: 160px;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #e8f5e9;
    box-shadow: 0 10px 25px rgba(11, 122, 68, 0.15);
}

.popup-title {
    flex: 1;
}

.popup-title h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.popup-title .popup-role {
    font-size: 1.2rem;
    color: #0b7a44;
    font-weight: 600;
    margin-bottom: 15px;
}

.popup-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e8f5e9;
    color: #0b7a44;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Popup Sections */
.popup-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #0b7a44;
}

.popup-section h3 {
    color: #0b7a44;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-section p {
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
}

.popup-section ul {
    padding-left: 20px;
    margin-top: 10px;
}

.popup-section li {
    margin-bottom: 8px;
    color: #555;
}

/* Info Popup Specific */
.info-content h2 {
    color: #0b7a44;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-details {
    line-height: 1.8;
    color: #444;
}

.info-details p {
    margin-bottom: 15px;
}

/* Scrollbar Styling */
.popup-content::-webkit-scrollbar,
.info-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track,
.info-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb,
.info-content::-webkit-scrollbar-thumb {
    background: #0da75c;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover,
.info-content::-webkit-scrollbar-thumb:hover {
    background: #0b7a44;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 992px) {
    .leadership-intro {
        flex-direction: column;
        gap: 30px;
    }
    
    .intro-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .intro-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .popup-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .popup-image {
        flex: 0 0 140px;
        height: 140px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .leadership-section {
        padding: 60px 0;
    }
    
    .leadership-intro {
        padding: 30px;
    }
    
    .intro-text h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .btn-view-profile,
    .btn-learn-more {
        width: 100%;
    }
    
    .popup-content,
    .info-content {
        padding: 30px 20px;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .popup-title h2 {
        font-size: 1.6rem;
    }
    
    .info-content h2 {
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .leadership-intro {
        padding: 20px;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat {
        padding: 12px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .popup-container,
    .info-container {
        width: 95%;
    }
    
    .popup-content,
    .info-content {
        padding: 25px 15px;
    }
    
    .popup-section {
        padding: 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    animation: fadeIn 0.5s ease forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== BODY SCROLL LOCK ===== */
body.popup-open {
    overflow: hidden;
}

/* ===== TOUCH FRIENDLY ===== */
.btn-view-profile,
.btn-learn-more,
.popup-close {
    min-height: 44px; /* Minimum touch target size for mobile */
}

.team-card {
    -webkit-tap-highlight-color: transparent;
}