/* Library Collections Page Styles */

.collections-section .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.collections-content {
    flex: 1;
}

.collections-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.collections-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
}

.collections-subtitle {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 0;
    margin-top: 10px;
}

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

.collection-card-modern {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #eaeaea;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.collection-card-link:hover .collection-card-modern {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.collection-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tertiary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.collection-card-link:hover .collection-card-modern::before {
    transform: scaleY(1);
}

.collection-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.collection-card-link:hover .collection-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.collection-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collection-card-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.collection-card-link:hover .collection-card-title {
    color: var(--primary);
}

.collection-access {
    font-size: 0.85rem;
    font-weight: 700;
    color: #444; /* Darker color instead of var(--tertiary) */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.collection-card-link:hover .collection-access {
    opacity: 1;
    color: var(--primary); /* Shift to primary on hover */
    transform: translateX(5px);
}

@media (max-width: 991px) {
    .collections-header {
        flex-direction: column;
        gap: 20px;
    }

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

@media (max-width: 576px) {
    .collections-header,
    .collections-content {
        text-align: center;
        align-items: center;
    }

    .collections-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .collections-title {
        font-size: 2rem;
    }

    .collections-subtitle {
        font-size: 1rem;
    }

    .collection-card-modern {
        padding: 20px;
    }

    .collection-icon {
        width: 40px;
        height: 40px;
    }

    .collection-card-title {
        font-size: 1rem;
    }
}
