/* ==================== FACULTY PAGE ANIMATIONS ==================== */

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes cardHover {
    0% {
        box-shadow: 0 4px 15px rgba(0, 119, 182, 0.08);
    }
    50% {
        box-shadow: 0 12px 30px rgba(0, 119, 182, 0.15);
    }
    100% {
        box-shadow: 0 12px 30px rgba(0, 119, 182, 0.15);
    }
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-back:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-back:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-title {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(135deg, #c4d7e0 0%, #b8cad8 100%);
    animation: slideInDown 0.6s ease;
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.hero-section:hover .hero-banner {
    transform: scale(1.02);
}

.hero-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 45px 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-text h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-text p {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
}


/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Faculty Section */
.faculty-section {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
}

.section-header h2 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Faculty Grid */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.faculty-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.faculty-card-link:focus-within .faculty-card {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.faculty-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faculty-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 119, 182, 0.2);
    border-color: var(--primary);
}

.faculty-card:active {
    transform: translateY(-6px) scale(1.01);
}

.faculty-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
    position: relative;
}

.faculty-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 119, 182, 0);
    transition: background 0.3s ease;
}

.faculty-card:hover .faculty-image::after {
    background: rgba(0, 119, 182, 0.1);
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.1);
}

.faculty-info {
    padding: 24px 16px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faculty-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.faculty-card:hover .faculty-info h3 {
    color: var(--primary-dark);
}

.faculty-info p {
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s ease;
}

.faculty-card:hover .faculty-info p {
    color: var(--primary);
}

/* Add Faculty Section */
.add-faculty-section {
    background: var(--white);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.1);
    margin-top: 80px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.add-faculty-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
    border-radius: 16px;
    padding: 50px;
    border: 3px dashed var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.add-faculty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add-faculty-card:hover::before {
    opacity: 1;
}

.add-faculty-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(0, 119, 182, 0.2);
    transform: scale(1.02);
}

.add-icon {
    font-size: 56px;
    margin-bottom: 20px;
    animation: pulse 2s ease infinite;
    position: relative;
    z-index: 1;
}

.add-faculty-card h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.add-faculty-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.add-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 14px 48px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.2);
}

.add-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.4);
}

.add-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.add-btn:active {
    transform: translateY(-2px) scale(1.02);
}



/* Responsive Design */
@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .hero-overlay h1 {
        font-size: 28px;
    }

    .nav-title {
        font-size: 18px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .faculty-image {
        height: 150px;
    }

    .add-faculty-card {
        padding: 30px 20px;
    }

    .container {
        padding: 40px 20px;
    }
}
/* Modal Basic */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin: 8px 0 15px;
}

.save-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.close-add {
    float: right;
    font-size: 20px;
    cursor: pointer;
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin: 8px 0 15px;
}

.save-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.close-add {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

.faculty-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.faculty-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.edit-faculty-btn {
    background: #2563eb;
    color: white;
}

.delete-faculty-btn {
    background: #dc2626;
    color: white;
}
