.remote-books-section {
    --zsu-khaki: #4D4634;
    --zsu-orange: #F39200;
    --zsu-olive: #6A653A;
    --zsu-deep: #444A38;
    color: #ece8d7;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #5b5631;
    background-image:
            radial-gradient(128% 96% at 14% 16%, rgba(224, 217, 181, 0.16) 0%, rgba(224, 217, 181, 0) 62%),
            radial-gradient(134% 98% at 86% 82%, rgba(30, 26, 15, 0.38) 0%, rgba(30, 26, 15, 0) 72%),
            linear-gradient(164deg, #7a7548 0%, #6a653a 42%, #59542f 68%, #4a4628 100%);
    background-blend-mode: screen, multiply, normal;
}

.remote-books-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
            repeating-linear-gradient(0deg,
                    rgba(234, 227, 189, 0.17) 0,
                    rgba(234, 227, 189, 0.17) 1px,
                    transparent 1px,
                    transparent 36px),
            repeating-linear-gradient(90deg,
                    rgba(234, 227, 189, 0.17) 0,
                    rgba(234, 227, 189, 0.17) 1px,
                    transparent 1px,
                    transparent 36px),
            repeating-linear-gradient(0deg,
                    rgba(246, 239, 205, 0.28) 0,
                    rgba(246, 239, 205, 0.28) 1px,
                    transparent 1px,
                    transparent 180px),
            repeating-linear-gradient(90deg,
                    rgba(246, 239, 205, 0.28) 0,
                    rgba(246, 239, 205, 0.28) 1px,
                    transparent 1px,
                    transparent 180px);
    mix-blend-mode: screen;
    opacity: 0.68;
}

.remote-books-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
            radial-gradient(circle at 21% 70%, transparent 0, transparent 56px, rgba(238, 230, 192, 0.24) 57px, rgba(238, 230, 192, 0.24) 58px, transparent 59px),
            radial-gradient(circle at 21% 70%, transparent 0, transparent 96px, rgba(238, 230, 192, 0.14) 97px, rgba(238, 230, 192, 0.14) 98px, transparent 99px),
            linear-gradient(32deg, transparent 48%, rgba(238, 230, 192, 0.16) 49%, rgba(238, 230, 192, 0.16) 50%, transparent 51%),
            linear-gradient(-18deg, transparent 41%, rgba(238, 230, 192, 0.12) 42%, rgba(238, 230, 192, 0.12) 43%, transparent 44%);
    opacity: 0.34;
    mix-blend-mode: screen;
}

.remote-books-section > .container {
    position: relative;
    z-index: 1;
}

.remote-books-section .container + .container {
    margin-top: 1.1rem;
}

.remote-books-section .remote-books-library {
    padding-top: 1.4rem !important;
    padding-bottom: 1.1rem !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.remote-books-section h2 {
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(1.1rem, 1.4vw + 0.9rem, 1.6rem);
    font-family: "UAFSans SemiBold", sans-serif;
    color: #ffffff;
}

.remote-books-section h2::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 0.45rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(243, 146, 0, 1) 0%, rgba(170, 163, 108, 1) 100%);
}

.remote-books-section .remote-library-intro {
    margin: 0 0 1rem;
    max-width: none;
    text-align: left;
    line-height: 1.55;
    color: #f1ecd7;
}

.remote-books-section .remote-library-links {
    display: grid;
    gap: 0.65rem 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.remote-books-section .remote-library-link {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    padding: 0.7rem 0.75rem;
    text-align: left;
    text-decoration: none;
    color: #f2ecd6;
    border: 1px solid rgba(243, 146, 0, 0.28);
    background: rgba(46, 41, 24, 0.24);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.remote-books-section .remote-library-link:hover {
    border-color: rgba(243, 146, 0, 0.62);
    background: rgba(63, 56, 34, 0.38);
    transform: translateY(-2px);
}

.remote-books-section .remote-library-link:focus-visible {
    outline: 2px solid #F39200;
    outline-offset: 2px;
}

.remote-books-section .remote-library-link__label {
    line-height: 1.35;
    color: #f4efdc;
}

.remote-books-section .remote-library-link__url {
    font-family: "UAFSans SemiBold", sans-serif;
    font-size: 0.84rem;
    line-height: 1.2;
    color: #F39200;
    word-break: break-word;
}

.remote-books-section .row {
    --bs-gutter-y: 1rem;
    row-gap: 1rem;
}

.remote-books-section .row > [class*="col-"] {
    display: flex;
}

.remote-books-section a.book-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    color: #f0ead4;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 0.22s ease;
}

.remote-books-section a.book-link:hover {
    transform: translateY(-4px);
}

.remote-books-section a.book-link:focus-visible {
    outline: 2px solid #F39200;
    outline-offset: 2px;
}

.remote-books-section .book-cover {
    border-radius: 10px;
    border: 1px solid rgba(106, 101, 58, 0.95);
    background: linear-gradient(145deg, #f7f2e6 0%, #ddd2b7 100%);
    box-shadow: inset 0 0 0 1px rgba(77, 70, 52, 0.35), 0 10px 16px rgba(0, 0, 0, 0.17);
    padding: 12px;
}

.remote-books-section .book-cover::before {
    inset: 10px;
    border-color: rgba(77, 70, 52, 0.42);
    border-radius: 6px;
}

.remote-books-section .book-title {
    color: #444A38;
    padding: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.remote-books-section a.book-link > img.img-fluid {
    width: 100%;
    aspect-ratio: 1 / 1.4142;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(106, 101, 58, 0.95);
    box-shadow: inset 0 0 0 1px rgba(77, 70, 52, 0.35), 0 10px 16px rgba(0, 0, 0, 0.17);
    background: #f7f2e6;
}

.remote-books-section a.book-link > p {
    margin: 0.75rem 0 0;
    font-size: 0.76rem !important;
    line-height: 1.4;
    color: #e8e2cb;
    text-align: left;
}

@media (max-width: 767px) {
    .remote-books-section h2 {
        letter-spacing: 0.05em;
    }

    .remote-books-section .remote-books-library {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .remote-books-section .remote-library-links {
        grid-template-columns: 1fr;
    }
}
