﻿/* =========================================
   FACULTY PAGE STYLING - BLACK & WHITE THEME
   ========================================= */

.faculty-page {
    min-height: 100vh;
    background: #fff;
    padding-top: 0;
}

/* =========================================
   PAGE TITLE SECTION
   ========================================= */
.page-title-section {
    background: #000000;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

    .page-title-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
        animation: patternMove 20s ease-in-out infinite;
    }

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: titleFadeIn 1s ease-out;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CATEGORY TABS (Updated Radius)
   ========================================= */
.category-tabs-wrapper {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 70px;
    z-index: 90;
    border-bottom: 1px solid #eaeaea;
}

.tabs-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 0 50px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

.tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    color: #000;
    border: 1px solid #e0e0e0;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    /* UPDATED: Rounded Pill Shape (Matches Navmenu) */
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .tab-btn:hover {
        background: #f5f5f5;
        border-color: #000;
    }

    .tab-btn.active {
        background: #000;
        color: #fff;
        border-color: #000;
    }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

    .scroll-btn:hover {
        background: #f0f0f0;
        border-color: #000;
    }

.left-btn {
    left: 0;
}

.right-btn {
    right: 0;
}

.scroll-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   FACULTY GRID & CARDS
   ========================================= */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.faculty-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s ease-out forwards;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.faculty-img-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid #000;
    margin-bottom: 15px;
}

    .faculty-img-container img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: #f1f5f9;
    }

.faculty-info {
    width: 100%;
}

    .faculty-info h3 {
        font-size: 1.1rem;
        font-weight: 800;
        color: #000;
        margin: 0 0 5px 0;
        line-height: 1.2;
    }

.faculty-designation {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.faculty-details {
    width: 100%;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #64748b;
}

    .detail-item strong {
        color: #000;
    }

.contact-badge {
    margin-top: 10px;
    background: #000;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .contact-badge:hover {
        opacity: 0.8;
    }

    .contact-badge svg {
        width: 14px;
        height: 14px;
    }

/* =========================================
   GLASSMORPHISM BUTTONS
   ========================================= */
.gallery-actions {
    text-align: center;
    margin-top: 30px;
}

/* Base Glass Button Style */
.btn-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06);
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.85);
        transform: translateY(-2px);
        box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.1);
    }

/* SHOW MORE: Pill Shape */
.btn-show-more {
    padding: 12px 35px;
    font-size: 1rem;
    border-radius: 50px;
    gap: 10px;
}

/* SHOW LESS: Circular Button Bottom Right */
.btn-show-less {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    z-index: 999;
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

.hidden {
    display: none !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 2.5rem;
    }

    .scroll-btn {
        display: none;
    }

    .category-tabs {
        padding: 0 20px;
    }

    .btn-show-less {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .page-title-section {
        padding: 90px 20px 50px;
    }
}
