/* ========================================
   Library.css
   Style for Library page 
   ======================================== */

/* ----------------------------------------
   PAGE HEADER (Banner)
   ---------------------------------------- */
.page-header {
    background: linear-gradient(rgba(10, 115, 119, 0.85), rgba(139, 26, 50, 0.8)),
        url('/Images/Footer.png') no-repeat center center / cover;
    color: #fff;
    padding: 6rem 0; /* Reduced size as per BCOM reference */
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* ----------------------------------------
   ABOUT SECTION
   ---------------------------------------- */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-maroon);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Library Info & Image Grid */
.library-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.library-info .lead {
    font-size: 1.2rem;
    color: var(--primary-teal-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.library-info p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

/* Image Styling */
.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-frame img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.frame-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-frame:hover .frame-accent {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

/* ----------------------------------------
   TIMINGS BOX
   ---------------------------------------- */
.library-timings-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-gold);
    margin-top: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.library-timings-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-left-width: 10px;
}

.library-timings-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--secondary-maroon);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.75rem;
}

.library-timings-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-weight: 500;
}

.library-timings-box .day {
    color: var(--dark-gray);
}

.library-timings-box .time {
    color: var(--primary-teal);
    font-weight: 600;
}

/* ----------------------------------------
   LIBRARY SECTIONS (FEATURES)
   ---------------------------------------- */
.bg-light {
    background-color: var(--primary-teal);
    position: relative;
    color: var(--white);
}

.library-features .section-header h2 {
    color: var(--white);
}

.library-features .section-header p {
    color: var(--off-white);
}

.library-features .custom-shape-divider-top .shape-fill {
    fill: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-bottom-color: var(--accent-gold);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-teal-ultra-light);
    color: var(--primary-teal);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .icon-box {
    background: var(--primary-teal);
    color: var(--white);
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 10px 20px rgba(10, 115, 119, 0.3);
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--secondary-maroon);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ----------------------------------------
   LIBRARIAN SECTION
   ---------------------------------------- */
.librarian-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
    background: var(--secondary-maroon-dark); /* Dark maroon background */
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.librarian-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.librarian-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gold); /* Gold accent for the dark card */
    transition: width 0.4s ease;
}

.librarian-wrapper:hover::before {
    width: 10px;
}

.librarian-img {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.15); /* Soft border for dark bg */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.librarian-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.librarian-wrapper:hover .librarian-img {
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(232, 165, 32, 0.3);
}

.librarian-wrapper:hover .librarian-img img {
    transform: scale(1.08) rotate(3deg);
}

.librarian-info {
    flex: 1;
}

.librarian-info .name {
    font-size: 2rem;
    color: var(--white); /* White text for dark background */
    margin-bottom: 0.25rem;
}

.librarian-info .designation {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-gold); /* Gold stands out well on maroon */
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.librarian-info .desc {
    font-style: italic;
    color: var(--off-white); /* Lighter color for description */
    position: relative;
    padding-left: 1.5rem;
}

.librarian-info .desc::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.5;
}

/* ----------------------------------------
   RESPONSIVE STYLES
   ---------------------------------------- */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .library-layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .library-visual {
        order: -1; /* Image first on mobile */
    }

    .librarian-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .librarian-img {
        width: 200px;
        height: 200px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards in a row on tablets */
    }

    .librarian-info .desc {
        padding-left: 0;
        margin-top: 1.5rem;
    }

    .librarian-info .desc::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr; /* 1 card in a row on small phones */
    }
}

/* Footer Wave Adjustment */
#footer .custom-shape-divider-top .shape-fill {
    fill: var(--white) !important;
}
