/* Premium Library Hero Section */
.library-hero {
    background-color: #050A18;
    /* Deep Navy/Black */
    position: relative;
    padding: 80px 0 100px;
    /* Increased padding for better spacing */
    overflow: hidden;
    text-align: center;
    color: #fff;
    margin-top: -20px;
    /* Counteract any default margins if necessary */
}

.library-hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    /* Larger for better impact */
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    /* Very subtle watermark */
    white-space: nowrap;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    letter-spacing: 10px;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.library-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.library-breadcrumbs {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 25px;
    font-weight: 500;
    display: inline-block;
}

.library-breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.library-breadcrumbs a:hover {
    color: #fff;
}

.library-breadcrumbs .current {
    color: #FF4500;
    /* Orange/Red accent */
}

.library-divider {
    height: 3px;
    width: 100px;
    /* Shorter, centered divider often looks more premium */
    background-color: #FFD700;
    /* Gold */
    margin: 30px auto;
    border: none;
}

.library-subtitle {
    color: #b0b8c8;
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 60px;
    font-weight: 300;
}

/* Search Bar Container */
.library-search-container {
    background: #fff;
    /* White bg for search bar */
    padding: 10px;
    border-radius: 8px;
    /* Slightly rounded */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    /* Overlap effect if needed, mostly just spacing */
}

.search-input-group {
    flex: 2;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    border-right: 1px solid #eee;
}

.search-input-group i {
    color: #aaa;
    margin-right: 15px;
    font-size: 1.1rem;
}

.search-input-group input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 0;
    font-size: 1.05rem;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.search-input-group input::placeholder {
    color: #999;
}

.filter-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 25px;
    border-right: 1px solid #eee;
    cursor: pointer;
    position: relative;
    min-width: 150px;
    transition: background 0.2s;
}

.filter-group:hover {
    background-color: #f9f9f9;
}

.filter-group:last-child {
    border-right: none;
}

.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label i {
    color: #666;
}

.filter-arrow {
    color: #999;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.filter-group:hover .filter-arrow {
    transform: translateY(2px);
    color: #333;
}

@media (max-width: 992px) {
    .library-hero-bg-text {
        font-size: 5rem;
    }

    .library-search-container {
        flex-wrap: wrap;
    }

    .filter-group {
        border-right: none;
        border-bottom: 1px solid #eee;
        flex-basis: 50%;
    }

    .filter-group:nth-child(2),
    .filter-group:nth-child(4) {
        /* Adjust borders for grid */
        border-right: none;
    }
}

@media (max-width: 768px) {
    .library-hero-bg-text {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .library-hero {
        padding: 50px 0 60px;
    }

    .library-search-container {
        flex-direction: column;
        gap: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 0;
        overflow: hidden;
    }

    .search-input-group,
    .filter-group {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px;
    }

    .filter-group:last-child {
        border-bottom: none;
    }
}