:root {
    --white: #ffffff;
}

/* Additional styles for internal pages */
.page-header {
    background: transparent;
    padding: 140px 2rem 0;
    text-align: center;
}
.page-header h1 {
    margin-bottom: 0;
}

/* Content Section */
.content-section {
    padding: 3rem 2rem 5rem;
    max-width: 1509px;
    margin: 0 auto;
}

/* Leadership Cards Layout styled like the original premium design */
.pimpinan-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 3rem;
}

.pimpinan-card {
    width: calc(20% - 1rem); /* 5 cards per row */
    min-width: 200px;
    background: #f4f7f6; /* Light gray-greenish card background */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    gap: 1.2rem;
}

@media (max-width: 1200px) {
    .pimpinan-card {
        width: calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    .pimpinan-card {
        width: calc(50% - 0.625rem);
    }
    .pimpinan-img-wrapper {
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
    }
}

@media (max-width: 576px) {
    .pimpinan-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .pimpinan-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

.pimpinan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(24, 80, 18, 0.12);
    background: #eef2ef;
}

.pimpinan-img-wrapper {
    width: 100%;
    height: 280px;
    background-color: #e2e8e5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pimpinan-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pimpinan-card:hover .pimpinan-img-wrapper img {
    transform: scale(1.05);
}

.pimpinan-info {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.pimpinan-card:hover .pimpinan-info {
    box-shadow: 0 6px 20px rgba(24, 80, 18, 0.06);
}

.pimpinan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pimpinan-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    .pimpinan-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

/* Faculty Tabs Styling */
.faculty-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 2.5rem auto;
    max-width: 100%;
    padding: 0 1rem;
}
.tab-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(24, 80, 18, 0.04);
}
.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(24, 80, 18, 0.2);
    transform: translateY(-2px);
}

.faculty-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}
.faculty-pane.active {
    display: block;
}

.pimpinan-grid-4 {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.pimpinan-grid-4 .pimpinan-card {
    flex: 1 1 0;
    min-width: 180px;
    max-width: 300px;
}

@media (max-width: 768px) {
    .pimpinan-grid-4 {
        flex-wrap: wrap;
    }
    .pimpinan-grid-4 .pimpinan-card {
        flex: 0 0 calc(50% - 0.625rem);
        max-width: none;
    }
}
@media (max-width: 576px) {
    .pimpinan-grid-4 .pimpinan-card {
        flex: 0 0 100%;
    }
}

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