body.about-library-page {
    background: #ffffff;
}

.about-library-page .container {
    width: min(1520px, calc(100% - 160px));
}

.about-library-shell {
    padding: 66px 0 96px;
}

.cert-page-banner {
    background-color: #f3f4f5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cert-page-banner.no-image {
    background-image: linear-gradient(135deg, #d9e4ea 0%, #f5f7f8 100%);
}

.cert-page-banner-inner {
    min-height: 328px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #ffffff;
}

.cert-page-banner-inner h1 {
    color: #ffffff;
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.cert-page-banner-inner p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.cert-group-section + .cert-group-section {
    margin-top: 54px;
}

.cert-group-title {
    margin-bottom: 26px;
    color: #1e2d39;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 600;
}

.cert-library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 28px;
}

.cert-library-card {
    background: #ffffff;
}

.cert-library-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 292px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #eef1f4;
    box-shadow: 0 18px 42px rgba(16, 34, 49, 0.04);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.cert-library-media.has-image {
    display: block;
}

.cert-library-media:hover {
    transform: translateY(-3px);
    border-color: #dbe4eb;
    box-shadow: 0 24px 44px rgba(16, 34, 49, 0.08);
}

.cert-library-media img {
    display: block;
    width: 100%;
    height: 242px;
    object-fit: contain;
}

.cert-paper-placeholder {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 0.82 / 1;
    padding: 22px 18px 18px;
    background:
        radial-gradient(circle at 20% 15%, rgba(62, 169, 227, 0.16) 0%, rgba(62, 169, 227, 0) 24%),
        radial-gradient(circle at 82% 18%, rgba(42, 194, 173, 0.14) 0%, rgba(42, 194, 173, 0) 26%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: inset 0 0 0 1px #e5edf2;
}

.cert-paper-placeholder::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid #e0e8ee;
}

.cert-paper-placeholder::after {
    content: "";
    position: absolute;
    inset: 30px 26px;
    border-top: 1px solid rgba(121, 148, 165, 0.18);
    border-bottom: 1px solid rgba(121, 148, 165, 0.18);
}

.certificate-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.11);
    color: #11998f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.certificate-year {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: #a98a4b;
    font-size: 12px;
    letter-spacing: 2px;
}

.cert-paper-placeholder h3 {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    color: #203243;
    font-size: 22px;
    line-height: 1.45;
}

.certificate-visual {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: rgba(20, 184, 166, 0.12);
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 3px;
}

.cert-library-copy {
    padding: 16px 8px 0;
    text-align: center;
}

.cert-library-copy h3 {
    color: #1e2d39;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 500;
}

.cert-library-copy p {
    margin-top: 6px;
    color: #8b99a5;
    font-size: 12px;
    line-height: 1.7;
}

.brochure-library-shell {
    padding-top: 56px;
}

.brochure-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 360px);
    gap: 88px;
    align-items: center;
}

.brochure-eyebrow {
    color: #1bb0a4;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.brochure-hero-copy h1 {
    margin-top: 18px;
    color: #1f2f3b;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.3;
    font-weight: 600;
}

.brochure-hero-copy p {
    max-width: 760px;
    margin-top: 18px;
    color: #6d7c88;
    font-size: 15px;
    line-height: 2;
}

.brochure-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    color: #97a5b1;
    font-size: 13px;
}

.brochure-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.brochure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #cfd7de;
    background: #ffffff;
    color: #4f6473;
    font-size: 13px;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.brochure-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.brochure-btn.disabled {
    color: #adb8c1;
    border-color: #e2e8ed;
    background: #f7f9fb;
    pointer-events: none;
}

.brochure-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.brochure-hero-visual .brochure-cover {
    width: min(100%, 310px);
    aspect-ratio: 4 / 5;
    box-shadow: 0 28px 50px rgba(16, 34, 49, 0.12);
}

.brochure-divider {
    margin: 58px 0 46px;
    border-top: 1px solid #e9eef2;
}

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

.brochure-library-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #f7f9fb;
}

.brochure-library-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brochure-library-date {
    color: #9aa8b4;
    font-size: 12px;
    letter-spacing: 1px;
}

.brochure-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(27, 176, 164, 0.12);
    color: #159d92;
    font-size: 11px;
}

.brochure-library-cover {
    margin-top: 18px;
}

.brochure-library-cover .brochure-cover {
    width: 100%;
    aspect-ratio: 4 / 5;
}

.brochure-library-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 18px;
}

.brochure-library-body h2 {
    color: #223340;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 500;
    min-height: 66px;
}

.brochure-library-size {
    margin-top: 8px;
    color: #9aa7b2;
    font-size: 12px;
}

.brochure-library-body .brochure-actions {
    margin-top: auto;
    padding-top: 22px;
}

.brochure-cover {
    position: relative;
    overflow: hidden;
    border: 1px solid #e4ebf0;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.brochure-cover::before,
.brochure-cover::after {
    content: "";
    position: absolute;
}

.brochure-cover.variant-a::before,
.brochure-cover.featured::before {
    inset: 12px;
    border: 1px solid #edf2f6;
    background:
        radial-gradient(circle at 132% 48%, rgba(83, 167, 228, 0.48) 0%, rgba(83, 167, 228, 0.48) 13%, rgba(83, 167, 228, 0) 14%),
        radial-gradient(circle at 118% 48%, rgba(83, 167, 228, 0.18) 0%, rgba(83, 167, 228, 0.18) 22%, rgba(83, 167, 228, 0) 23%),
        linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.brochure-cover.variant-a::after,
.brochure-cover.featured::after {
    left: 18px;
    right: 18px;
    bottom: 22px;
    height: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(217, 233, 245, 0.9)),
        linear-gradient(90deg, rgba(47, 174, 170, 0.08), rgba(47, 174, 170, 0.08));
}

.brochure-cover.variant-b::before {
    inset: 12px;
    border: 1px solid #e8efe6;
    background:
        linear-gradient(180deg, rgba(61, 177, 102, 0.08), rgba(61, 177, 102, 0)),
        linear-gradient(180deg, #ffffff 0%, #f4faf5 100%);
}

.brochure-cover.variant-b::after {
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 44%;
    background:
        radial-gradient(circle at 18% 100%, rgba(116, 193, 126, 0.28) 0%, rgba(116, 193, 126, 0) 32%),
        radial-gradient(circle at 66% 110%, rgba(139, 207, 148, 0.3) 0%, rgba(139, 207, 148, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(192, 225, 193, 0.95)),
        linear-gradient(0deg, #eaf6e9 0 38%, transparent 38%);
}

.brochure-cover.variant-c::before {
    inset: 12px;
    border: 1px solid #e6efea;
    background:
        linear-gradient(180deg, rgba(110, 194, 150, 0.11), rgba(110, 194, 150, 0)),
        linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.brochure-cover.variant-c::after {
    left: 12px;
    right: 12px;
    bottom: 20px;
    height: 40%;
    background:
        radial-gradient(circle at 50% 120%, rgba(146, 209, 167, 0.34) 0%, rgba(146, 209, 167, 0) 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(209, 235, 217, 0.92)),
        linear-gradient(180deg, transparent 0 35%, rgba(129, 194, 150, 0.38) 35% 38%, transparent 38% 56%, rgba(129, 194, 150, 0.28) 56% 59%, transparent 59%);
}

.brochure-cover.featured {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.brochure-cover.has-image {
    background: #ffffff;
}

.brochure-cover.has-image::before,
.brochure-cover.has-image::after {
    display: none;
}

.brochure-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-empty-state {
    padding: 72px 24px 80px;
    text-align: center;
    border: 1px solid #edf1f4;
    background: #fafbfc;
}

.library-empty-state h2 {
    color: #233442;
    font-size: 28px;
    line-height: 1.4;
}

.library-empty-state p {
    max-width: 520px;
    margin: 14px auto 0;
    color: #7a8894;
    font-size: 14px;
    line-height: 1.9;
}

@media (max-width: 1440px) {
    .about-library-page .container {
        width: calc(100% - 88px);
    }

    .brochure-hero {
        gap: 60px;
    }
}

@media (max-width: 1200px) {
    .about-library-page .container {
        width: calc(100% - 64px);
    }

    .cert-library-grid,
    .brochure-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brochure-hero {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .brochure-hero-visual {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .cert-page-banner-inner {
        min-height: 250px;
    }

    .cert-library-grid,
    .brochure-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .about-library-page .container {
        width: calc(100% - 32px);
    }

    .about-library-shell {
        padding: 42px 0 70px;
    }

    .cert-page-banner-inner {
        min-height: 210px;
    }

    .cert-page-banner-inner h1 {
        font-size: 34px;
        letter-spacing: 2px;
    }

    .cert-page-banner-inner p {
        letter-spacing: 2px;
    }

    .cert-group-section + .cert-group-section {
        margin-top: 42px;
    }

    .cert-group-title {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .brochure-hero-copy h1 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .cert-library-grid,
    .brochure-library-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .cert-library-media {
        min-height: 250px;
    }

    .brochure-library-card {
        padding: 20px;
    }

    .brochure-library-body h2 {
        min-height: 0;
        font-size: 18px;
    }
}
