/* Banner Section */
.banner-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.banner-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Section */
.main-content {
    padding: 60px 20px;
    background-color: var(--white);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    background:var(--secondary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Row-based Organizational Chart Styles */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    max-width: 100%;
}

.org-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.org-row-title {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 150px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.member-image {
    width: 80px;
    height: 80px;
    border-radius: 10%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
}

.member-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.member-position {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.3;
}

.member-badge {
    padding: 3px 8px;
    background:var(--secondary-color);
    color: var(--white);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* 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);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.modal-image {
    width: 100px;
    height: 100px;
    border-radius: 10%;
    object-fit: cover;
    margin-right: 20px;
    border: 4px solid var(--primary-color);
}

.modal-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.modal-info p {
    color: var(--text-light);
    font-size: 16px;
}

.modal-badge {
    display: inline-block;
    padding: 5px 12px;
    background:var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.modal-details {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.modal-details h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.detail-item {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 120px;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-light);
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: var(--white);
    padding: 5px;
}

.qr-code-text {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

.modal-bio {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-bio h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-bio p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .member-card {
        width: 130px;
        padding: 12px;
    }

    .member-image {
        width: 70px;
        height: 70px;
    }

    .member-name {
        font-size: 13px;
    }

    .member-position {
        font-size: 10px;
    }

    .org-row {
        gap: 15px;
    }

    .modal-details {
        flex-direction: column;
        align-items: center;
    }

    .qr-code-container {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .member-card {
        width: 110px;
        padding: 10px;
    }

    .member-image {
        width: 60px;
        height: 60px;
    }

    .member-name {
        font-size: 12px;
    }

    .member-position {
        font-size: 9px;
    }

    .org-row {
        gap: 10px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .qr-code {
        width: 100px;
        height: 100px;
    }
}