/* Leadership Static Page - Organizational Chart Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    background-attachment: fixed;
    font-family: 'Georgia', 'Times New Roman', serif;
    cursor: default;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(160, 82, 45, 0.8) 50%, rgba(205, 133, 63, 0.8) 100%), 
                url('../../images/hero1.jpeg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Container */
.article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
    font-weight: 600;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Organizational Chart */
.org-chart {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    overflow-x: auto;
    min-width: 100%;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.org-level {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 2rem;
    flex-wrap: wrap;
}

.org-level.level-1 {
    margin-bottom: 3rem;
}

.org-level.level-2,
.org-level.level-3 {
    margin: 3rem 0;
}

.org-level.level-4 {
    margin-top: 3rem;
}

/* Position Cards */
.position-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 220px;
    max-width: 250px;
}

.position-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
}

/* Executive Level */
.position-card.executive {
    border-color: #8B4513;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
}

.position-card.executive:hover {
    border-color: #A0522D;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.15) 0%, rgba(139, 69, 19, 0.1) 100%);
}

/* Senior Administration */
.position-card.senior-admin {
    border-color: #CD853F;
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.1) 0%, rgba(205, 133, 63, 0.05) 100%);
}

.position-card.senior-admin:hover {
    border-color: #D2691E;
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.15) 0%, rgba(205, 133, 63, 0.1) 100%);
}

/* Department Heads */
.position-card.dept-head {
    border-color: #B8860B;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.1) 0%, rgba(184, 134, 11, 0.05) 100%);
}

.position-card.dept-head:hover {
    border-color: #DAA520;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.15) 0%, rgba(184, 134, 11, 0.1) 100%);
}

/* Coordinators */
.position-card.coordinator {
    border-color: #DEB887;
    background: linear-gradient(135deg, rgba(222, 184, 135, 0.1) 0%, rgba(222, 184, 135, 0.05) 100%);
}

.position-card.coordinator:hover {
    border-color: #F4A460;
    background: linear-gradient(135deg, rgba(222, 184, 135, 0.15) 0%, rgba(222, 184, 135, 0.1) 100%);
}

/* Position Photo */
.position-photo {
    margin-bottom: 1rem;
}

.position-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Position Info */
.position-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.position-title {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.position-department {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

/* Connection Lines */
.connection-line {
    height: 2px;
    background: linear-gradient(90deg, #bdc3c7 0%, #ecf0f1 50%, #bdc3c7 100%);
    margin: 1rem 0;
    width: 60%;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.connection-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.vertical-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, #bdc3c7 0%, #ecf0f1 50%, #bdc3c7 100%);
}

.horizontal-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #bdc3c7 0%, #ecf0f1 50%, #bdc3c7 100%);
}

.vertical-branches {
    display: flex;
    justify-content: space-between;
    width: 80%;
    position: relative;
}

.vertical-branches .branch {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, #bdc3c7 0%, #ecf0f1 50%, #bdc3c7 100%);
}

/* Faculty Section */
.faculty-section {
    margin-top: 5rem;
    padding: 3rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
}

.section-subtitle {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.faculty-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Faculty Stats */
.faculty-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Clickable Stat Card */
.clickable-stat {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clickable-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
}

.click-hint {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.clickable-stat:hover .click-hint {
    opacity: 1;
}

/* View Faculty Button */
.view-faculty-btn-container {
    margin-top: 3rem;
    text-align: center;
}

.view-faculty-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.view-faculty-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.view-faculty-btn span {
    margin-right: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .org-chart {
        padding: 1rem;
    }
    
    .org-level {
        gap: 1rem;
    }
    
    .position-card {
        min-width: 200px;
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .article-container {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .org-level {
        flex-direction: column;
        align-items: center;
    }
    
    .position-card {
        min-width: 250px;
        max-width: 300px;
    }
    
    .faculty-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card h4 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .faculty-stats {
        grid-template-columns: 1fr;
    }
    
    .position-card {
        min-width: 280px;
        max-width: 320px;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 2rem;
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .org-chart {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .position-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .faculty-section {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}