/* =========================================================
   SIGMAEQI LIBRARY PAGE
   ========================================================= */

   :root {
    --library-navy: #0d2345;
    --library-blue: #1769aa;
    --library-red: #c52142;
    --library-text: #16345f;
    --library-muted: #607a9b;
    --library-border: #dce7f2;
    --library-bg: #f7faff;
    --library-white: #ffffff;
}


/* =========================================================
   GENERAL
   ========================================================= */

.library-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: var(--library-text);
}

.library-container {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.library-breadcrumb {
    padding: 60px 0 22px;
    background: #ffffff;
    padding-left: 80px;
}

.library-breadcrumb .library-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.library-breadcrumb a {
    color: var(--library-navy);
    text-decoration: none;
    font-weight: 600;
}

.library-breadcrumb span {
    color: #9aaabd;
}

.library-breadcrumb strong {
    color: var(--library-red);
    font-weight: 700;
}


/* =========================================================
   HERO
   ========================================================= */

.library-hero {
    position: relative;
    min-height: 510px;
    background:
        radial-gradient(
            circle at 78% 50%,
            rgba(197, 33, 66, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 60% 60%,
            rgba(23, 105, 170, 0.08),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fbff 100%
        );
}

.library-hero-grid {
    min-height: 510px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 45px;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.library-hero-content {
    padding-left: 50px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 0px;

    color: var(--library-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;

    margin-bottom: 24px;
}

.section-label span {
    display: block;
    width: 38px;
    height: 2px;
    background: var(--library-red);
}

.library-hero-content h1 {
    margin: 0;

    font-size: clamp(48px, 5vw, 76px);
    line-height: 0.99;
    letter-spacing: -2.8px;

    font-weight: 800;
    color: var(--library-navy);
}

.library-hero-content h1 span {
    color: var(--library-red);
}

.library-hero-content p {
    max-width: 610px;
    margin: 30px 0 30px;

    color: #577292;
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.library-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    padding: 16px 24px;

    background: linear-gradient(
        135deg,
        #0e315f,
        #214d83
    );

    color: #ffffff;
    text-decoration: none;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 10px 25px rgba(13, 35, 69, 0.16);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.library-primary-btn i {
    transition: transform 0.25s ease;
}

.library-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(13, 35, 69, 0.22);
}

.library-primary-btn:hover i {
    transform: translateY(3px);
}


/* =========================================================
   HERO INFOGRAPHIC
   ========================================================= */

.library-hero-visual {
    position: relative;
    height: 430px;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* Orbit */

.library-orbit {
    position: absolute;

    border: 1px dashed rgba(23, 105, 170, 0.25);

    border-radius: 50%;

    transform: rotate(-15deg);
}

.orbit-one {
    width: 390px;
    height: 260px;
}

.orbit-two {
    width: 500px;
    height: 330px;

    transform: rotate(18deg);
}


/* Book stack */

.library-book-stack {
    position: relative;

    width: 340px;
    height: 270px;

    z-index: 3;
}


/* Books */

.book {
    position: absolute;

    width: 260px;
    height: 75px;

    left: 40px;

    border-radius: 8px;

    display: flex;
    align-items: center;

    padding-left: 28px;

    color: #ffffff;

    box-shadow:
        0 18px 35px rgba(13, 35, 69, 0.16);

    transition: transform 0.35s ease;
}

.book i {
    font-size: 25px;
}

.book-one {
    top: 55px;
    background: #0d376d;
    transform: rotate(-7deg);
}

.book-two {
    top: 115px;
    left: 25px;
    background: #c52142;
    transform: rotate(4deg);
}

.book-three {
    top: 175px;
    left: 48px;
    background: #1769aa;
    transform: rotate(-3deg);
}

.library-hero-visual:hover .book-one {
    transform: rotate(-7deg) translateY(-8px);
}

.library-hero-visual:hover .book-two {
    transform: rotate(4deg) translateY(-4px);
}

.library-hero-visual:hover .book-three {
    transform: rotate(-3deg) translateY(4px);
}


/* Magnifier */

.library-magnifier {
    position: absolute;

    right: 0;
    bottom: 8px;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    background: #ffffff;

    border: 8px solid #1769aa;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #1769aa;

    font-size: 28px;

    box-shadow: 0 12px 30px rgba(13, 35, 69, 0.15);

    z-index: 5;
}

.library-magnifier::after {
    content: "";

    position: absolute;

    width: 40px;
    height: 10px;

    background: #1769aa;

    right: -28px;
    bottom: -15px;

    transform: rotate(45deg);

    border-radius: 10px;
}


/* Floating icons */

.floating-resource {
    position: absolute;

    width: 68px;
    height: 68px;

    border-radius: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 25px;

    box-shadow: 0 12px 28px rgba(13, 35, 69, 0.15);

    z-index: 6;

    animation: libraryFloat 4s ease-in-out infinite;
}

.resource-one {
    top: 40px;
    left: 15%;

    background: #2388d1;
}

.resource-two {
    top: 15px;
    right: 16%;

    background: #c52142;

    animation-delay: 0.8s;
}

.resource-three {
    bottom: 35px;
    right: 11%;

    background: #7b4bc1;

    animation-delay: 1.5s;
}

@keyframes libraryFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


/* =========================================================
   RESOURCE SECTION
   ========================================================= */

.library-resources {
    padding: 85px 0 95px;
    background: #ffffff;
}

.library-section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-label.centered {
    justify-content: center;
    margin-bottom: 16px;
}

.library-section-heading h2 {
    margin: 0;

    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;

    letter-spacing: -1.5px;

    color: var(--library-navy);
}

.library-section-heading h2 span {
    color: var(--library-red);
}

.library-section-heading p {
    margin: 17px auto 0;

    color: var(--library-muted);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   CARD GRID
   ========================================================= */

.library-card-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   CARDS
   ========================================================= */

.library-card {
    position: relative;

    min-height: 275px;

    padding: 27px;

    background: #ffffff;

    border: 1px solid var(--library-border);

    border-radius: 17px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(17, 49, 87, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.library-card::after {
    content: "";

    position: absolute;

    width: 115px;
    height: 115px;

    right: -50px;
    bottom: -50px;

    border-radius: 50%;

    opacity: 0.07;
}

.library-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 38px rgba(17, 49, 87, 0.11);
}

.library-card-number {
    position: absolute;

    top: 20px;
    right: 22px;

    font-size: 12px;

    font-weight: 800;

    color: #a5b5c8;
}


/* =========================================================
   CARD ICON
   ========================================================= */

.library-card-icon {
    width: 58px;
    height: 58px;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 22px;

    margin-bottom: 22px;

    box-shadow:
        0 8px 18px rgba(13, 35, 69, 0.12);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.library-card h3 {
    margin: 0 0 10px;

    color: var(--library-navy);

    font-size: 19px;
    line-height: 1.3;

    font-weight: 750;
}

.library-card p {
    margin: 0;

    color: #68819f;

    font-size: 14px;
    line-height: 1.65;

    max-width: 240px;
}

.library-card-status {
    position: absolute;

    bottom: 22px;
    left: 27px;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 1.3px;

    font-weight: 800;

    color: #8ca0b7;
}


/* =========================================================
   CARD COLORS
   ========================================================= */

.card-blue .library-card-icon {
    background: #2388d1;
}

.card-blue::after {
    background: #2388d1;
}


.card-purple .library-card-icon {
    background: #7b4bc1;
}

.card-purple::after {
    background: #7b4bc1;
}


.card-teal .library-card-icon {
    background: #1596a0;
}

.card-teal::after {
    background: #1596a0;
}


.card-orange .library-card-icon {
    background: #f2a02c;
}

.card-orange::after {
    background: #f2a02c;
}


.card-red .library-card-icon {
    background: #c52142;
}

.card-red::after {
    background: #c52142;
}


.card-navy .library-card-icon {
    background: #214f87;
}

.card-navy::after {
    background: #214f87;
}


.card-violet .library-card-icon {
    background: #8751c8;
}

.card-violet::after {
    background: #8751c8;
}


/* =========================================================
   CTA
   ========================================================= */

.library-cta-section {
    padding: 0 0 85px;
    background: #ffffff;
}

.library-cta {
    min-height: 165px;

    padding: 30px 42px;

    display: flex;
    align-items: center;

    gap: 28px;

    border-radius: 18px;

    background:
        linear-gradient(
            110deg,
            #0d376d 0%,
            #214d83 50%,
            #b62042 100%
        );

    color: #ffffff;

    box-shadow:
        0 18px 35px rgba(13, 35, 69, 0.15);
}

.library-cta-icon {
    flex: 0 0 auto;

    width: 65px;
    height: 65px;

    border-radius: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.14);

    font-size: 26px;
}

.library-cta-content {
    flex: 1;
}

.library-cta-content > span {
    display: block;

    margin-bottom: 7px;

    color: #ffb7c6;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.library-cta-content h2 {
    margin: 0 0 5px;

    font-size: 25px;
    line-height: 1.2;
}

.library-cta-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    line-height: 1.6;
}

.library-cta-btn {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 22px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    border-radius: 10px;

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.library-cta-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .library-container {
        width: min(100% - 50px, 1050px);
    }

    .library-hero-content {
        padding-left: 25px;
    }

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

    .library-hero-content h1 {
        font-size: 55px;
    }

    .library-hero-visual {
        transform: scale(0.9);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .library-container {
        width: calc(100% - 34px);
    }

    .library-breadcrumb {
        padding: 22px 0 15px;
    }

    .library-hero {
        min-height: auto;
    }

    .library-hero-grid {
        min-height: auto;

        grid-template-columns: 1fr;

        gap: 15px;

        padding: 45px 0 35px;
    }

    .library-hero-content {
        padding-left: 0;
        text-align: left;
    }

    .library-hero-content h1 {
        font-size: clamp(43px, 11vw, 60px);
        letter-spacing: -2px;
    }

    .library-hero-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .library-hero-visual {
        height: 350px;
        transform: scale(0.82);
        margin-top: -15px;
    }

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

    .library-cta {
        flex-wrap: wrap;
        padding: 30px;
    }

    .library-cta-content {
        min-width: calc(100% - 100px);
    }

    .library-cta-btn {
        margin-left: 93px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .library-container {
        width: calc(100% - 28px);
    }

    .section-label {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .section-label span {
        width: 25px;
    }

    .library-hero-content h1 {
        font-size: 42px;
    }

    .library-hero-content p {
        font-size: 15px;
    }

    .library-primary-btn {
        width: 100%;
        justify-content: center;
    }

    .library-hero-visual {
        height: 310px;
        transform: scale(0.68);
        transform-origin: center;
        margin: -30px 0 -20px;
    }

    .library-resources {
        padding: 60px 0;
    }

    .library-section-heading h2 {
        font-size: 35px;
    }

    .library-section-heading p {
        font-size: 15px;
    }

    .library-card-grid {
        grid-template-columns: 1fr;
    }

    .library-card {
        min-height: 245px;
    }

    .library-cta {
        display: block;
        text-align: center;
        padding: 30px 22px;
    }

    .library-cta-icon {
        margin: 0 auto 18px;
    }

    .library-cta-content {
        min-width: 0;
    }

    .library-cta-content h2 {
        font-size: 22px;
    }

    .library-cta-content p {
        margin-bottom: 20px;
    }

    .library-cta-btn {
        margin: 0;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .floating-resource {
        animation: none;
    }

    .library-card,
    .library-primary-btn,
    .library-cta-btn,
    .book {
        transition: none;
    }
}

/* =========================================================
   JS CARD REVEAL
   ========================================================= */

   .library-card {
    opacity: 0;
    transform: translateY(20px);
}

.library-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.library-card:nth-child(1) {
    transition-delay: 0.05s;
}

.library-card:nth-child(2) {
    transition-delay: 0.10s;
}

.library-card:nth-child(3) {
    transition-delay: 0.15s;
}

.library-card:nth-child(4) {
    transition-delay: 0.20s;
}

.library-card:nth-child(5) {
    transition-delay: 0.25s;
}

.library-card:nth-child(6) {
    transition-delay: 0.30s;
}

.library-card:nth-child(7) {
    transition-delay: 0.35s;
}