.library-hero {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.library-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 31, 42, 0.88), rgba(20, 91, 91, 0.54) 52%, rgba(114, 62, 35, 0.42)),
        linear-gradient(0deg, rgba(8, 31, 42, 0.58), rgba(8, 31, 42, 0.18));
}

.library-hero .kingster-page-title-container {
    position: relative;
    z-index: 2;
}

.library-hero-content {
    display: flex;
    align-items: flex-end;
    min-height: 620px;
    padding-top: 180px !important;
    padding-bottom: 72px !important;
}

.library-hero-panel {
    width: min(720px, 100%);
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.library-eyebrow,
.library-section-kicker {
    display: inline-flex;
    align-items: center;
    color: #b66d1f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
}

.library-eyebrow {
    color: #ffd188;
}

.library-title {
    margin: 16px 0 18px !important;
    color: #ffffff !important;
    font-size: clamp(44px, 6vw, 82px) !important;
    font-weight: 700 !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.library-hero-panel p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.75;
}

.library-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.library-hero-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    line-height: 1.2;
}

.library-hero-metrics strong {
    color: #ffd188;
    font-weight: 700;
}

.library-breadcrumbs {
    background: #f7fbfa;
}

.library-page {
    color: #20323d;
    background:
        linear-gradient(180deg, #f7fbfa 0%, #eef6f1 48%, #f8f4ec 100%);
    font-family: "Poppins", Arial, sans-serif;
}

.library-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.library-intro-section {
    padding: 84px 0 42px;
}

.library-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 34px;
    align-items: stretch;
}

.library-copy,
.library-image-card,
.library-controls,
.library-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 24px 64px rgba(25, 72, 83, 0.13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.library-copy {
    padding: clamp(28px, 4vw, 48px);
}

.library-copy h2,
.library-section-heading h2 {
    margin: 14px 0 18px;
    color: #0b2836;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: none;
}

.library-copy p,
.library-section-heading p,
.library-card p {
    color: #5d6f7c;
    font-size: 16px;
    line-height: 1.75;
}

.library-copy p {
    max-width: 760px;
    margin: 0;
}

.library-image-card {
    min-height: 360px;
    overflow: hidden;
    padding: 12px;
}

.library-image-card img {
    width: 100%;
    height: 100%;
    min-height: 336px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.library-catalog-section {
    padding: 42px 0 96px;
}

.library-section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.library-section-heading h2 {
    margin-bottom: 12px;
}

.library-section-heading p {
    margin: 0;
}

.library-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.library-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(20, 91, 91, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
}

.library-search i {
    color: #287c78;
    font-size: 16px;
}

.library-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #0b2836;
    background: transparent;
    font: inherit;
    font-size: 15px;
}

.library-search input::placeholder {
    color: #7a8c96;
}

.library-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.library-filter,
.library-page-btn,
.library-page-number {
    min-height: 42px;
    border: 1px solid rgba(20, 91, 91, 0.18);
    border-radius: 8px;
    color: #244552;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 24px rgba(25, 72, 83, 0.08);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.library-filter {
    padding: 0 16px;
}

.library-filter:hover,
.library-page-btn:hover,
.library-page-number:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(25, 72, 83, 0.14);
}

.library-filter.is-active,
.library-page-number.is-active {
    border-color: rgba(182, 109, 31, 0.5);
    color: #ffffff;
    background: linear-gradient(135deg, #287c78, #b66d1f);
}

.library-results-meta {
    min-height: 28px;
    margin: 22px 0 18px;
    color: #5d6f7c;
    font-size: 14px;
    font-weight: 600;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.library-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 274px;
    padding: 26px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.library-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 4px solid rgba(40, 124, 120, 0.76);
    pointer-events: none;
}

.library-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 124, 120, 0.3);
    box-shadow: 0 30px 72px rgba(25, 72, 83, 0.18);
}

.library-card[hidden] {
    display: none;
}

.library-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #287c78, #0b2836);
    box-shadow: 0 14px 28px rgba(40, 124, 120, 0.22);
    font-size: 22px;
}

.library-card-tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #8e4f12;
    background: rgba(255, 209, 136, 0.26);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.library-card h3 {
    margin: 0 0 12px;
    color: #0b2836;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.library-card p {
    margin: 0;
}

.library-empty {
    margin: 26px 0 0;
    padding: 22px;
    border: 1px solid rgba(182, 109, 31, 0.2);
    border-radius: 8px;
    color: #7b4b1d;
    background: rgba(255, 247, 236, 0.72);
    font-weight: 600;
    text-align: center;
}

.library-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
}

.library-page-btn {
    padding: 0 18px;
}

.library-page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.library-page-numbers {
    display: flex;
    gap: 8px;
}

.library-page-number {
    width: 42px;
    padding: 0;
}

@media (max-width: 1024px) {
    .library-intro,
    .library-controls,
    .library-grid {
        grid-template-columns: 1fr 1fr;
    }

    .library-controls {
        align-items: stretch;
    }

    .library-search,
    .library-filter-group {
        grid-column: 1 / -1;
    }

    .library-filter-group {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .library-shell {
        width: min(100% - 28px, 1180px);
    }

    .library-hero,
    .library-hero-content {
        min-height: 560px;
    }

    .library-hero-content {
        padding-top: 120px !important;
        padding-bottom: 42px !important;
    }

    .library-hero-panel {
        padding: 28px;
    }

    .library-hero-panel p {
        font-size: 16px;
        line-height: 1.65;
    }

    .library-hero-metrics {
        gap: 9px;
    }

    .library-hero-metrics span {
        width: 100%;
    }

    .library-intro-section {
        padding: 54px 0 28px;
    }

    .library-intro,
    .library-controls,
    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-image-card {
        min-height: 260px;
    }

    .library-image-card img {
        min-height: 236px;
    }

    .library-catalog-section {
        padding: 28px 0 66px;
    }

    .library-controls {
        padding: 14px;
    }

    .library-filter,
    .library-page-btn,
    .library-page-number {
        font-size: 13px;
    }

    .library-filter {
        flex: 1 1 calc(50% - 10px);
        padding: 0 12px;
    }

    .library-card {
        min-height: auto;
        padding: 24px;
    }

    .library-pagination {
        flex-wrap: wrap;
    }
}
