/* ===== GENERAL ===== */
body {
    font-family: 'Segoe UI', sans-serif;
}

.library-container {
    width: 100%;
}

/* ===== HERO ===== */
.library-hero {
    height: 350px;
    background: url('../images/library.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.library-hero .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
}

.hero-content {
    position: relative;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: bold;
}

/* ===== SECTIONS ===== */
.section {
    padding: 50px 10%;
}

.section.light {
    background: #f5f9ff;
}

.section h2 {
    color: #003366;
    margin-bottom: 20px;
}

/* ===== STATS ===== */
.stats {
    display: flex;
    justify-content: space-around;
    background: #003366;
    color: white;
    padding: 40px 10%;
    flex-wrap: wrap;
}

.stats .card {
    text-align: center;
    margin: 10px;
}

.stats h3 {
    font-size: 28px;
}

/* ===== GRID LIST ===== */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 15px;
}

.grid-list li {
    background: #e6f0ff;
    padding: 12px;
    border-radius: 6px;
}

/* ===== TABLE ===== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #003366;
    color: white;
    padding: 10px;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
    .hero-content h1 {
        font-size: 26px;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }
}
/* ===== SECTION TITLE ===== */
.section-title {
    font-weight: 700;
    color: #003366;
    
    padding-left: 10px;
}

/* ===== STAT CARDS ===== */
.facility-card {
    background: linear-gradient(135deg,#003366,#0055aa);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.facility-card i {
    font-size: 30px;
    margin-bottom: 10px;
}

.facility-card h4 {
    font-size: 26px;
    font-weight: bold;
}

.facility-card:hover {
    transform: translateY(-6px);
}

/* ===== TABLE WRAPPER ===== */
.facility-table-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== TABLE ===== */
.facility-table {
    width: 100%;
    border-collapse: collapse;
}

.facility-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

/* ALTERNATE ROW COLORS */
.facility-table tr:nth-child(odd) {
    background: #f8fbff;
}

.facility-table tr:nth-child(even) {
    background: #eef5ff;
}

/* HOVER EFFECT */
.facility-table tr:hover {
    background: #dbe9ff;
    transition: 0.2s;
}

/* FULL ROW */
.facility-table .full-row {
    background: #003366;
    color: #fff;
    font-weight: 500;
}

/* RESPONSIVE */
@media(max-width:768px){
    .facility-card {
        margin-bottom: 15px;
    }
}
/* ===== VISIT BUTTON ===== */
.visit-btn {
    background: linear-gradient(135deg,#003366,#0055aa);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.visit-btn:hover {
    background: #001f4d;
    transform: scale(1.05);
}
/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition: all 0.3s ease;
}

/* ===== GLASS CARD ANIMATION ===== */
.glass-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TABLE ROW ANIMATION ===== */
.eresource-table tbody tr {
    transition: 0.25s ease;
}

.eresource-table tbody tr:hover {
    background: #eef5ff;
    transform: translateX(5px);
}

/* ===== VISIT BUTTON ANIMATION ===== */
.visit-btn {
    position: relative;
    overflow: hidden;
}

.visit-btn::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.2);
    transition: 0.3s;
}

.visit-btn:hover::after {
    width: 100%;
}

/* ===== FACILITY CARD FLOAT ===== */
.facility-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.library-hero {
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% {background-position: left;}
    50% {background-position: right;}
    100% {background-position: left;}
}


/* ===== DEPT HEADER ===== */
.dept-header {
    position: relative;
    padding-left: 20px;
}

.dept-header h2 {
    font-weight: 700;
    color: #123a6b;
}

.dept-line {
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 40px;
    background: linear-gradient(to bottom,#1c4fa3,#ff3c3c,#f4a261);
    border-radius: 3px;
}

/* ===== CARD ===== */
.faculty-card-modern {
    display: flex;
    align-items: center;
    gap: 15px;

    background: #f4f6f9;
    padding: 18px;
    border-radius: 16px;

    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faculty-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* IMAGE */
.faculty-img-modern {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid #1c4fa3;
}

/* CONTENT */
.faculty-content h5 {
    font-weight: 600;
    color: #123a6b;
    margin-bottom: 5px;
}

.light-text {
    font-size: 13px;
    color: #777;
    margin-bottom: 3px;
}

/* BUTTON */
.view-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 5px 14px;

    background: #e9edf3;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #123a6b;
}

.view-btn:hover {
    background: #1c4fa3;
    color: #fff;
}