/* =========================================================
   KSUK e-LIBRARY
   SEARCH PAGE STYLES
========================================================= */


/* =========================================================
   SEARCH VARIABLES
========================================================= */

:root {

    --search-bg: #f5f7fb;

    --search-card: rgba(255, 255, 255, 0.78);

    --search-border: rgba(255, 255, 255, 0.72);

    --search-text: #111827;

    --search-muted: #6b7280;

    --search-soft: #eef2f7;

    --search-accent: #111827;

    --search-accent-soft: rgba(17, 24, 39, 0.08);

    --search-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);

    --search-radius: 24px;

}


/* =========================================================
   GLOBAL SEARCH CONTAINER
========================================================= */
*{
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

.search-container {

    width: 90vw;

    margin:  auto ;

}


/* =========================================================
   SEARCH HERO
========================================================= */

.search-hero {

    position: relative;

    padding:
        42px
        0
        70px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, 0.95),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(219, 226, 239, 0.75),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #eef2f7,
            #f8fafc
        );

}


.search-hero::before {

    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    top: -180px;

    right: -120px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.35);

    filter: blur(10px);

    pointer-events: none;

}


.search-hero::after {

    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    bottom: -160px;

    left: -80px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.4);

    filter: blur(20px);

    pointer-events: none;

}


/* =========================================================
   BREADCRUMB
========================================================= */

.search-breadcrumb {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 48px;

    font-size: 13px;

    color: var(--search-muted);

}


.search-breadcrumb a {

    color: var(--search-text);

    text-decoration: none;

    font-weight: 600;

    transition: 0.25s ease;

}


.search-breadcrumb a:hover {

    opacity: 0.6;

}


.search-breadcrumb i {

    font-size: 9px;

    opacity: 0.5;

}


/* =========================================================
   HERO CONTENT
========================================================= */

.search-hero-content {

    position: relative;

    z-index: 2;

    max-width: 760px;

    margin-bottom: 34px;

}


.search-eyebrow {

    display: inline-flex;

    align-items: center;

    padding: 8px 13px;

    border: 1px solid
        rgba(255, 255, 255, 0.85);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.48);

    -webkit-backdrop-filter: blur(18px);

    backdrop-filter: blur(18px);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.12em;

    color: #4b5563;

}


.search-hero-content h1 {

    margin: 18px 0 12px;

    color: var(--search-text);

    font-size:
        clamp(38px, 5vw, 66px);

    line-height: 1.02;

    letter-spacing: -0.045em;

    font-weight: 800;

}


.search-hero-content p {

    max-width: 680px;

    margin: 0;

    color: var(--search-muted);

    font-size: 16px;

    line-height: 1.75;

}


/* =========================================================
   MAIN SEARCH FORM
========================================================= */

.main-search-form {

    position: relative;

    z-index: 5;

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 12px;

    width: 100%;

}


.search-input-wrapper {

    position: relative;

    display: flex;

    align-items: center;

    min-height: 68px;

    padding: 0 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.68);

    box-shadow:
        0 18px 45px
        rgba(15, 23, 42, 0.08);

    -webkit-backdrop-filter: blur(24px);

    backdrop-filter: blur(24px);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.search-input-wrapper:focus-within {

    border-color:
        rgba(17, 24, 39, 0.28);

    box-shadow:
        0 22px 55px
        rgba(15, 23, 42, 0.12);

}


.search-input-wrapper > i {

    margin-right: 14px;

    color: #6b7280;

    font-size: 17px;

}


.search-input-wrapper input {

    width: 100%;

    height: 66px;

    border: none;

    outline: none;

    background: transparent;

    color: var(--search-text);

    font-family: inherit;

    font-size: 15px;

}


.search-input-wrapper input::placeholder {

    color: #9ca3af;

}


.clear-search-button {

    display: none;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: #e5e7eb;

    color: #4b5563;

    cursor: pointer;

}


.clear-search-button.show {

    display: flex;

}


.search-submit-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-width: 150px;

    padding: 0 26px;

    border: 1px solid
        rgba(255, 255, 255, 0.4);

    border-radius: 20px;

    background:
        rgba(17, 24, 39, 0.94);

    color: #fff;

    box-shadow:
        0 18px 35px
        rgba(15, 23, 42, 0.18);

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.search-submit-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 24px 42px
        rgba(15, 23, 42, 0.23);

}


.search-submit-button:active {

    transform: translateY(0);

}


/* =========================================================
   SEARCH SUGGESTIONS
========================================================= */

.search-suggestions {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 18px;

    color: var(--search-muted);

    font-size: 12px;

}


.search-suggestion {

    padding: 8px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.45);

    color: #4b5563;

    -webkit-backdrop-filter: blur(14px);

    backdrop-filter: blur(14px);

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    transition: 0.25s ease;

}


.search-suggestion:hover {

    background:
        rgba(255, 255, 255, 0.85);

    transform: translateY(-1px);

}


/* =========================================================
   SEARCH WORKSPACE
========================================================= */

.search-workspace {


    background: var(--search-bg);
    padding: 20px 0px;

}


/* =========================================================
   SEARCH TOOLBAR
========================================================= */

.search-toolbar {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;

}


.search-result-summary .section-label {

    display: block;

    margin-bottom: 8px;

    color: #9ca3af;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.14em;

}


.search-result-summary h2 {

    margin: 0 0 5px;

    color: var(--search-text);

    font-size: 30px;

    letter-spacing: -0.03em;

}


.search-result-summary p {

    margin: 0;

    color: var(--search-muted);

    font-size: 13px;

}


.search-toolbar-actions {

    display: flex;

    align-items: center;

    gap: 12px;

}


/* =========================================================
   FILTER TOGGLE
========================================================= */

.filter-toggle-button {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 17px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.68);

    color: #374151;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.05);

    -webkit-backdrop-filter: blur(18px);

    backdrop-filter: blur(18px);

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

}


.filter-toggle-button:hover {

    background: #fff;

}


/* =========================================================
   SORT CONTROL
========================================================= */

.sort-control {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 5px 8px 5px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.68);

    color: #6b7280;

    -webkit-backdrop-filter: blur(18px);

    backdrop-filter: blur(18px);

    font-size: 12px;

    font-weight: 600;

}


.sort-control select {

    border: none;

    outline: none;

    background: transparent;

    color: #374151;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

}


/* =========================================================
   SEARCH LAYOUT
========================================================= */

.search-layout {

    display: grid;

    grid-template-columns: 270px minmax(0, 1fr);

    gap: 28px;

    align-items: start;

}


/* =========================================================
   FILTER PANEL
========================================================= */

.search-filter-panel {

    position: sticky;

    top: 95px;

    padding: 24px;

    border:
        1px solid
        rgba(255, 255, 255, 0.85);

    border-radius: var(--search-radius);

    background:
        rgba(255, 255, 255, 0.67);

    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.06);

    -webkit-backdrop-filter: blur(22px);

    backdrop-filter: blur(22px);

}


.filter-panel-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 24px;

}


.filter-panel-header .section-label {

    display: block;

    margin-bottom: 5px;

    color: #9ca3af;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.13em;

}


.filter-panel-header h3 {

    margin: 0;

    color: var(--search-text);

    font-size: 21px;

}


.filter-close-button {

    display: none;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 50%;

    background: #eef2f7;

    color: #4b5563;

    cursor: pointer;

}


/* =========================================================
   FILTER GROUP
========================================================= */

.filter-group {

    padding: 18px 0;

    border-top:
        1px solid
        rgba(17, 24, 39, 0.07);

}


.filter-group:first-of-type {

    border-top: none;

    padding-top: 0;

}


.filter-group label {

    display: block;

    margin-bottom: 9px;

    color: #374151;

    font-size: 12px;

    font-weight: 700;

}


.filter-group select {

    width: 100%;

    min-height: 44px;

    padding: 0 12px;

    border:
        1px solid
        rgba(17, 24, 39, 0.08);

    border-radius: 12px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.68);

    color: #4b5563;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

}


.filter-group select:focus {

    border-color:
        rgba(17, 24, 39, 0.22);

}


/* =========================================================
   FILTER ACTIONS
========================================================= */

.filter-actions {

    display: grid;

    gap: 8px;

    padding-top: 20px;

}


.apply-filter-button {

    min-height: 44px;

    border: none;

    border-radius: 12px;

    background: #111827;

    color: #fff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s ease;

}


.apply-filter-button:hover {

    transform: translateY(-1px);

}


.reset-filter-button {

    min-height: 40px;

    border: none;

    background: transparent;

    color: #6b7280;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

}


.reset-filter-button:hover {

    color: #111827;

}


/* =========================================================
   RESULTS AREA
========================================================= */

.search-results-area {

    min-width: 0;

}


.search-results-list {

    display: grid;

    gap: 20px;

}


/* =========================================================
   RESULT CARD
========================================================= */

.search-result-card {

    display: grid;

    grid-template-columns: 150px minmax(0, 1fr);

    gap: 20px;

    padding: 20px;
    margin-bottom: 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: var(--search-radius);

    background:
        rgba(255, 255, 255, 0.76);

    box-shadow:
        0 15px 40px
        rgba(15, 23, 42, 0.055);

    -webkit-backdrop-filter: blur(20px);

    backdrop-filter: blur(20px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.search-result-card:hover {

    transform: translateY(-3px);

    border-color:
        rgba(255, 255, 255, 1);

    box-shadow:
        0 22px 50px
        rgba(15, 23, 42, 0.09);

}


/* =========================================================
   RESULT COVERS
========================================================= */

.result-cover {

    min-height: 205px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 18px;

    border-radius: 17px;

    overflow: hidden;

    color: #fff;

    position: relative;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.08);

}


.result-cover::after {

    content: "";

    position: absolute;

    width: 110px;

    height: 110px;

    right: -35px;

    bottom: -40px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.09);

}


.result-cover span {

    position: relative;

    z-index: 2;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.08em;

}


.result-cover strong {

    position: relative;

    z-index: 2;

    font-size: 16px;

    line-height: 1.15;

    letter-spacing: -0.02em;

}




.result-content {

    width: 100%;

    display: flex;

    flex-direction: column;


}


.result-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 9px;

}


.result-type {

    color: #6b7280;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.12em;

}


.result-year {

    color: #9ca3af;

    font-size: 11px;

    font-weight: 600;

}


.result-content h3 {

    margin: 0 0 7px;

    color: #111827;

    font-size: 21px;

    line-height: 1.25;

    letter-spacing: -0.025em;

}


.result-author {

    margin: 0 0 13px;

    color: #4b5563;

    font-size: 12px;

    font-weight: 600;

}


.result-description {

    max-width: 720px;

    margin: 0 0 18px;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.7;

}


/* =========================================================
   RESULT META
========================================================= */

.result-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 10px 18px;

    margin-bottom: auto;

    padding-bottom: 18px;

}


.result-meta span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #6b7280;

    font-size: 10px;

}


.result-meta i {

    color: #9ca3af;

}


/* =========================================================
   RESULT ACTIONS
========================================================= */

.result-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(17, 24, 39, 0.07);

}


.result-view-button {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #111827;

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    transition: 0.25s ease;
    margin: 5px;
    padding: 5px;
    border-radius: 10px;
    background-color: #06b5d473;

}


.result-view-button i {

    font-size: 10px;

    transition: transform 0.25s ease;

}


.result-view-button:hover i {

    transform: translateX(3px);

}


.result-save-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    border:
        1px solid
        rgba(17, 24, 39, 0.08);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.65);

    color: #6b7280;

    cursor: pointer;

    transition: 0.25s ease;

}


.result-save-button:hover {

    color: #111827;

    background: #fff;

}


.result-save-button.saved {

    color: #111827;

    background:
        rgba(17, 24, 39, 0.08);

}


/* =========================================================
   EMPTY STATE
========================================================= */

.search-empty-state {

    padding: 70px 30px;

    text-align: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: var(--search-radius);

    background:
        rgba(255, 255, 255, 0.68);

    box-shadow:
        0 18px 45px
        rgba(15, 23, 42, 0.05);
-webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);

    backdrop-filter: blur(20px);

}


.search-empty-state[hidden] {

    display: none;

}


.empty-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 60px;

    height: 60px;

    margin: 0 auto 18px;

    border-radius: 20px;

    background: #eef2f7;

    color: #6b7280;

    font-size: 20px;

}


.search-empty-state h2 {

    margin: 0 0 9px;

    color: #111827;

    font-size: 23px;

}


.search-empty-state p {

    max-width: 500px;

    margin: 0 auto 22px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.7;

}


.search-empty-state button {

    min-height: 42px;

    padding: 0 20px;

    border: none;

    border-radius: 12px;

    background: #111827;

    color: #fff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

}


/* =========================================================
   PAGINATION
========================================================= */

.search-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 34px;

}


.pagination-button,
.pagination-number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    border:
        1px solid
        rgba(17, 24, 39, 0.08);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.65);

    color: #6b7280;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s ease;

}


.pagination-button:hover,
.pagination-number:hover {

    background: #fff;

    color: #111827;

}


.pagination-number.active {

    background: #111827;

    border-color: #111827;

    color: #fff;

}


.pagination-dots {

    padding: 0 4px;

    color: #9ca3af;

    font-size: 12px;

}


/* =========================================================
   SEARCH HELP
========================================================= */

.search-help-section {

    padding: 0 0 90px;

    background: var(--search-bg);

}


.search-help-card {

    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 28px;

    padding: 34px;

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    border-radius: 26px;

    background:
        rgba(255, 255, 255, 0.65);

    box-shadow:
        0 20px 45px
        rgba(15, 23, 42, 0.055);
        

    -webkit-backdrop-filter: blur(22px);

    backdrop-filter: blur(22px);

}


.search-help-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 62px;

    height: 62px;

    border-radius: 20px;

    background: #eef2f7;

    color: #374151;

    font-size: 22px;

}


.search-help-content .section-label {

    display: block;

    margin-bottom: 7px;

    color: #9ca3af;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.13em;

}


.search-help-content h2 {

    margin: 0 0 7px;

    color: #111827;

    font-size: 22px;

    letter-spacing: -0.025em;

}


.search-help-content p {

    max-width: 600px;

    margin: 0;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.7;

}


.search-help-tips {

    display: grid;

    gap: 10px;

    min-width: 220px;

}


.search-help-tips span {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #6b7280;

    font-size: 11px;

    font-weight: 600;

}


.search-help-tips i {

    color: #374151;

}


/* =========================================================
   MOBILE FILTER OVERLAY
========================================================= */

.search-filter-panel::before {

    content: "";

    display: none;

}


/* =========================================================
   RESPONSIVE — 1100px
========================================================= */

@media (max-width: 1100px) {

    .search-layout {

        grid-template-columns:
            235px minmax(0, 1fr);

    }


    .search-result-card {

        grid-template-columns:
            125px minmax(0, 1fr);

    }


    .result-cover {

        min-height: 190px;

    }


    .search-help-card {

        grid-template-columns:
            auto 1fr;

    }


    .search-help-tips {

        grid-column: 1 / -1;

        display: flex;

        flex-wrap: wrap;

        gap: 18px;

    }

}


/* =========================================================
   RESPONSIVE — 850px
========================================================= */

@media (max-width: 850px) {

    .search-container {

        width:90vw;
        margin: auto;
    }


    .search-layout {

        display: block;

    }


    .search-filter-panel {

        position: fixed;

        z-index: 1000;

        top: 0;

        left: 0;

        width: min(330px, 88vw);

        height: 100vh;

        overflow-y: auto;

        border-radius: 0 24px 24px 0;

        transform: translateX(-105%);

        transition:
            transform 0.35s ease;

    }


    .search-filter-panel.active {

        transform: translateX(0);

    }


    .filter-close-button {

        display: inline-flex;

    }


    .search-toolbar {

        align-items: flex-start;

    }


    .search-result-card {

        grid-template-columns:
            115px minmax(0, 1fr);

    }


    .result-cover {

        min-height: 175px;

    }

}


/* =========================================================
   RESPONSIVE — 650px
========================================================= */

@media (max-width: 650px) {

    .search-container {

        width: 90vw;
        margin: auto;

    }


    .search-hero {

        padding-top: 28px;

        padding-bottom: 48px;

    }


    .search-breadcrumb {

        margin-bottom: 32px;

    }


    .search-hero-content h1 {

        font-size: 40px;

    }


    .search-hero-content p {

        font-size: 14px;

    }


    .main-search-form {

        grid-template-columns: 1fr;

    }


    .search-submit-button {

        min-height: 54px;

    }


    .search-toolbar {

        flex-direction: column;

        align-items: stretch;

        gap: 20px;

    }


    .search-toolbar-actions {

        justify-content: space-between;

    }


    .search-result-summary h2 {

        font-size: 25px;

    }


    .search-result-card {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .result-cover {

        min-height: 210px;

    }


    .result-cover strong {

        font-size: 20px;

    }


    .result-content h3 {

        font-size: 19px;

    }


    .search-help-card {

        grid-template-columns: 1fr;

        padding: 26px;

    }


    .search-help-icon {

        width: 54px;

        height: 54px;

    }


    .search-help-tips {

        display: grid;

        min-width: 0;

    }

}


/* =========================================================
   RESPONSIVE — 450px
========================================================= */

@media (max-width: 450px) {

    .search-hero-content h1 {

        font-size: 34px;

    }


    .search-suggestions {

        align-items: flex-start;

    }


    .search-suggestions > span {

        width: 100%;

    }


    .search-toolbar-actions {

        flex-direction: column;

        align-items: stretch;

    }


    .filter-toggle-button {

        justify-content: center;

    }


    .sort-control {

        justify-content: space-between;

    }


    .result-cover {

        min-height: 180px;

    }


    .result-meta {

        flex-direction: column;

        gap: 8px;

    }


    .search-pagination {

        gap: 4px;

    }


    .pagination-button,
    .pagination-number {

        width: 34px;

        height: 34px;

    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.search-suggestion:focus-visible,
.search-submit-button:focus-visible,
.filter-toggle-button:focus-visible,
.filter-close-button:focus-visible,
.apply-filter-button:focus-visible,
.reset-filter-button:focus-visible,
.result-view-button:focus-visible,
.result-save-button:focus-visible,
.pagination-button:focus-visible,
.pagination-number:focus-visible {

    outline:
        3px solid
        rgba(17, 24, 39, 0.18);

    outline-offset: 3px;

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .search-result-card,
    .search-submit-button,
    .search-suggestion,
    .result-view-button i,
    .search-filter-panel {

        transition: none;

    }

}


:root {
  --background: #eef1f6;

  --background-secondary: #e4e8ef;

  --surface: rgba(255, 255, 255, 0.52);

  --surface-strong: rgba(255, 255, 255, 0.72);

  --surface-soft: rgba(255, 255, 255, 0.35);

  --text: #111318;

  --text-soft: #666d78;

  --border: rgba(255, 255, 255, 0.72);

  --border-dark: rgba(30, 35, 45, 0.08);

  --accent: #111318;

  --accent-text: #ffffff;

  --glass-blur: 24px;

  --glass-saturation: 160%;

  --shadow-soft: 0 10px 40px rgba(31, 38, 52, 0.08);

  --shadow-glass: 0 20px 60px rgba(31, 38, 52, 0.12);

  --shadow-hover: 0 25px 70px rgba(31, 38, 52, 0.16);

  --radius-small: 12px;

  --radius-medium: 20px;

  --radius-large: 30px;

  --radius-xl: 42px;

  --max-width: 1400px;

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
  --background: #07090d;

  --background-secondary: #0d1118;

  --surface: rgba(25, 29, 37, 0.55);

  --surface-strong: rgba(30, 35, 44, 0.75);

  --surface-soft: rgba(255, 255, 255, 0.06);

  --text: #f4f6f9;

  --text-soft: #9299a6;

  --border: rgba(255, 255, 255, 0.12);

  --border-dark: rgba(255, 255, 255, 0.05);

  --accent: #ffffff;

  --accent-text: #090b0f;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.25);

  --shadow-glass: 0 25px 70px rgba(0, 0, 0, 0.4);

  --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  overflow-x: hidden;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  color: var(--text);

  line-height: 1.6;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(110, 145, 255, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(194, 130, 255, 0.15),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 90%,
      rgba(70, 210, 255, 0.12),
      transparent 35%
    ),
    var(--background);

  transition:
    background 0.4s ease,
    color 0.4s ease;
}

body.dark-mode {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(50, 90, 190, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(130, 65, 190, 0.13),
      transparent 30%
    ),
    var(--background);
}

body::before {
  content: "";

  position: fixed;

  inset: 0;

  z-index: -2;

  pointer-events: none;

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.18),
    transparent 35%,
    rgba(255, 255, 255, 0.08)
  );
}

img {
  max-width: 100%;

  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;

  text-decoration: none;
}

/* =========================================================
   GLASS MATERIAL
========================================================= */

.site-header,
.search-box,
.search-option,
.resource-card,
.featured-card,
.department-card,
.advanced-search-content,
.cta-icon,
.secondary-button,
.theme-button,
.mobile-menu-button,
.hero-badge {
  -webkit-backdrop-filter: blur(var(--glass-blur))
    saturate(var(--glass-saturation));

  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

/* =========================================================
   HEADER — FLOATING GLASS
========================================================= */

.site-header {
  position: fixed;

  top: 18px;

  left: 50%;

  z-index: 1000;

  width: min(calc(100% - 36px), 1380px);

  transform: translateX(-50%);

  border: 1px solid var(--border);

  border-radius: 24px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.58),
    rgba(255, 255, 255, 0.24)
  );

  box-shadow: var(--shadow-glass);
}

body.dark-mode .site-header {
  background: linear-gradient(
    135deg,
    rgba(35, 40, 50, 0.68),
    rgba(15, 18, 25, 0.48)
  );
}

/* =========================================================
   HEADER REFLECTION
========================================================= */

.site-header::before {
  content: "";

  position: absolute;

  top: 1px;

  left: 5%;

  width: 90%;

  height: 1px;

  border-radius: 50%;

  background: linear-gradient(
    90deg,
    
    rgba(255, 255, 255, 1),
  );

}

.main-navigation {
  position: relative;

  min-height: 70px;

  padding: 0 18px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;
  z-index: 2;
}

/* =========================================================
   BRAND
========================================================= */

.brand {
  display: flex;

  align-items: center;

  gap: 10px;

  flex-shrink: 0;
}

.brand-logo {
  width: 43px;

  height: 43px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.7);

  border-radius: 14px;

  background: linear-gradient(145deg, #1c1f25, #090b0f);

  color: #fff;

  font-size: 10px;

  font-weight: 850;

  letter-spacing: 0.5px;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

.brand-text {
  display: flex;

  flex-direction: column;
}

.brand-title {
  font-size: 16px;

  font-weight: 750;

  line-height: 1;
}

.brand-subtitle {
  margin-top: 4px;

  color: var(--text-soft);

  font-size: 8px;

  line-height: 1;
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav-links {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 3px;
}

.nav-link {
  position: relative;

  padding: 9px 11px;

  border: 1px solid transparent;

  border-radius: 12px;

  color: var(--text-soft);

  font-size: 12px;

  font-weight: 560;

  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);

  border-color: rgba(255, 255, 255, 0.55);

  background: rgba(255, 255, 255, 0.28);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-link.active {
  color: var(--text);

  border-color: rgba(255, 255, 255, 0.65);

  background: rgba(255, 255, 255, 0.42);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 5px 15px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {
  display: flex;

  align-items: center;

  gap: 7px;

  flex-shrink: 0;
}

.theme-button {
  width: 38px;

  height: 38px;

  border: 1px solid var(--border);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.34);

  color: var(--text);

  transition: var(--transition);
}

.theme-button:hover {
  transform: translateY(-2px) rotate(12deg);

  box-shadow: var(--shadow-soft);
}

.login-button {
  position: relative;

  overflow: hidden;

  padding: 10px 16px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 13px;

  background: linear-gradient(145deg, #181b21, #08090c);

  color: #fff;

  font-size: 12px;

  font-weight: 650;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.12);

  transition: var(--transition);
}

.login-button::before {
  content: "";

  position: absolute;

  top: -80%;

  left: -40%;

  width: 30%;

  height: 260%;

  transform: rotate(25deg);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );

  transition: left 0.6s ease;
}

.login-button:hover::before {
  left: 120%;
}

.login-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-button {
  display: none;

  width: 42px;

  height: 42px;

  border: 1px solid var(--border);

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.35);
}

.mobile-menu-button span {
  display: block;

  width: 18px;

  height: 2px;

  margin: 4px auto;

  border-radius: 5px;

  background: var(--text);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;

  min-height: 850px;

  padding: 180px 30px 110px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;
}

.hero-background {
  position: absolute;

  inset: 0;

  pointer-events: none;
}

.hero-glow {
  position: absolute;

  width: 500px;

  height: 500px;

  border-radius: 50%;

  filter: blur(110px);

  opacity: 0.22;

  animation: floatingGlow 10s ease-in-out infinite alternate;
}

.glow-one {
  top: 5%;

  left: -10%;

  background: #6588ff;
}

.glow-two {
  right: -10%;

  top: 20%;

  background: #bb72ff;

  animation-delay: -3s;
}

.glow-three {
  bottom: -25%;

  left: 35%;

  background: #48d5ff;

  animation-delay: -6s;
}

@keyframes floatingGlow {
  from {
    transform: translate3d(-20px, -10px, 0) scale(1);
  }

  to {
    transform: translate3d(30px, 25px, 0) scale(1.1);
  }
}

.hero-content {
  position: relative;

  z-index: 2;

  width: 100%;

  max-width: 950px;

  text-align: center;
}

/* =========================================================
   HERO BADGE
========================================================= */

.hero-badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 25px;

  padding: 8px 13px;

  border: 1px solid var(--border);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.35);

  color: var(--text-soft);

  font-size: 9px;

  font-weight: 750;

  letter-spacing: 1.3px;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.badge-dot {
  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: #35c875;

  box-shadow: 0 0 10px rgba(53, 200, 117, 0.7);
}

/* =========================================================
   HERO TEXT
========================================================= */

.hero-content h1 {
  max-width: 900px;

  margin: auto;

  font-size: clamp(52px, 8vw, 92px);

  line-height: 0.94;

  letter-spacing: -5px;

  font-weight: 850;
}

.hero-content h1 span {
  display: block;

  color: var(--text-soft);
}

.hero-description {
  max-width: 670px;

  margin: 30px auto 35px;

  color: var(--text-soft);

  font-size: 16px;
}

/* =========================================================
   SEARCH GLASS
========================================================= */

.library-search {
  max-width: 820px;

  margin: auto;
}

.search-box {
  position: relative;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 7px;

  border: 1px solid var(--border);

  border-radius: 21px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.67),
    rgba(255, 255, 255, 0.3)
  );

  box-shadow:
    var(--shadow-glass),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box::before {
  content: "";

  position: absolute;

  top: 1px;

  left: 10%;

  width: 80%;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
}

.search-icon {
  padding-left: 14px;

  color: var(--text-soft);

  font-size: 25px;
}

.search-box input {
  flex: 1;

  min-width: 0;

  height: 50px;

  border: none;

  outline: none;

  background: transparent;

  color: var(--text);

  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--text-soft);
}

.search-button {
  min-height: 50px;

  padding: 0 23px;

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-radius: 15px;

  background: linear-gradient(145deg, #1a1d23, #08090c);

  color: #fff;

  font-size: 12px;

  font-weight: 700;

  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);

  transition: var(--transition);
}

.search-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   SEARCH FILTERS
========================================================= */

.search-options {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 13px;
}

.search-option {
  padding: 6px 11px;

  border: 1px solid transparent;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.16);

  color: var(--text-soft);

  font-size: 10px;

  transition: var(--transition);
}

.search-option:hover,
.search-option.active {
  border-color: var(--border);

  background: rgba(255, 255, 255, 0.4);

  color: var(--text);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.advanced-search-link {
  display: inline-block;

  margin-top: 15px;

  color: var(--text-soft);

  font-size: 11px;

  text-decoration: underline;
}

/* =========================================================
   SECTIONS
========================================================= */

.quick-access-section,
.featured-section,
.browse-section {
  position: relative;

  max-width: var(--max-width);

  margin: auto;

  padding: 100px 30px;
}

.section-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 35px;
}

.section-header h2 {
  margin-top: 7px;

  font-size: clamp(30px, 4vw, 46px);

  line-height: 1.05;

  letter-spacing: -2px;
}

.section-header > p {
  max-width: 300px;

  color: var(--text-soft);

  font-size: 12px;
}

.section-label {
  color: var(--text-soft);

  font-size: 9px;

  font-weight: 850;

  letter-spacing: 1.6px;
}

.view-all-link {
  color: var(--text-soft);

  font-size: 12px;

  font-weight: 650;
}

/* =========================================================
   RESOURCE CARDS
========================================================= */

.resource-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;
}

.resource-card {
  position: relative;

  height: 275px;

  overflow: hidden;

  padding: 28px;

  border: 1px solid var(--border);

  border-radius: var(--radius-large);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.54),
    rgba(255, 255, 255, 0.18)
  );

  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  transition: var(--transition);
}

.resource-card::before {
  content: "";

  position: absolute;

  top: -120%;

  left: -60%;

  width: 50%;

  height: 300%;

  transform: rotate(25deg);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );

  transition: left 0.8s ease;

  pointer-events: none;
}

.resource-card:hover::before {
  left: 130%;
}

.resource-card:hover {
  transform: translateY(-9px) scale(1.01);

  border-color: rgba(255, 255, 255, 0.9);

  box-shadow:
    var(--shadow-hover),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.resource-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 35px;
}

.resource-icon {
  width: 54px;

  height: 54px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 17px;

  background: rgba(255, 255, 255, 0.34);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);

  font-size: 23px;
}

.resource-arrow {
  color: var(--text-soft);

  font-size: 19px;

  transition: var(--transition);
}

.resource-card:hover .resource-arrow {
  transform: translate(4px, -4px);

  color: var(--text);
}

.resource-card h3 {
  margin-bottom: 8px;

  font-size: 21px;
}

.resource-card p {
  min-height: 48px;

  margin-bottom: 22px;

  color: var(--text-soft);

  font-size: 12px;
}

.resource-count {
  color: var(--text);

  font-size: 10px;

  font-weight: 750;
}

/* =========================================================
   FEATURED
========================================================= */

.featured-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 17px;
}

.featured-card {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: var(--radius-large);

  background: rgba(255, 255, 255, 0.3);

  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  transition: var(--transition);
}

.featured-card:hover {
  transform: translateY(-7px);

  box-shadow: var(--shadow-hover);
}

.featured-cover {
  position: relative;

  min-height: 220px;

  padding: 25px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  color: #fff;

  overflow: hidden;
}

.featured-cover::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    transparent 35%
  );

  pointer-events: none;
}

.book-cover {
  background: linear-gradient(135deg, #111827, #475569);
}

.journal-cover {
  background: linear-gradient(135deg, #3b0764, #9333ea);
}

.research-cover {
  background: linear-gradient(135deg, #064e3b, #10b981);
}

.featured-cover span {
  position: relative;

  z-index: 1;

  font-size: 9px;

  font-weight: 850;

  letter-spacing: 1.3px;

  opacity: 0.7;
}

.featured-cover strong {
  position: relative;

  z-index: 1;

  max-width: 220px;

  font-size: 29px;

  line-height: 1;
}

.featured-content {
  padding: 25px;
}

.resource-type {
  font-size: 9px;

  font-weight: 850;

  color: var(--text-soft);

  letter-spacing: 1px;
}

.featured-content h3 {
  margin: 9px 0 5px;

  font-size: 18px;
}

.author {
  margin-bottom: 13px;

  color: var(--text-soft);

  font-size: 11px;
}

.featured-content > p:not(.author) {
  margin-bottom: 20px;

  color: var(--text-soft);

  font-size: 12px;
}

.featured-content > a {
  font-size: 11px;

  font-weight: 750;
}

/* =========================================================
   DEPARTMENTS
========================================================= */

.department-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;
}

.department-card {
  position: relative;

  min-height: 90px;

  padding: 18px;

  display: grid;

  grid-template-columns:
    55px
    1fr
    auto;

  align-items: center;

  gap: 15px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.3);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  transition: var(--transition);
}

.department-card:hover {
  transform: translateY(-4px);

  background: rgba(255, 255, 255, 0.46);

  box-shadow: var(--shadow-soft);
}

.department-code {
  width: 45px;

  height: 45px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.35);

  font-size: 10px;

  font-weight: 850;
}

.department-name {
  font-size: 12px;

  font-weight: 650;
}

.department-arrow {
  color: var(--text-soft);
}

/* =========================================================
   STATISTICS
========================================================= */

.statistics-section {
  max-width: var(--max-width);

  margin: 30px auto;

  padding: 65px 30px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  border: 1px solid var(--border);

  border-radius: var(--radius-large);

  background: rgba(255, 255, 255, 0.25);

  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  -webkit-backdrop-filter: blur(25px);

  backdrop-filter: blur(25px);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;

  margin-bottom: 5px;

  font-size: 42px;

  letter-spacing: -2px;
}

.stat-item span {
  color: var(--text-soft);

  font-size: 10px;
}

/* =========================================================
   ADVANCED SEARCH
========================================================= */

.advanced-search-section {
  max-width: var(--max-width);

  margin: auto;

  padding: 100px 30px;
}

.advanced-search-content {
  position: relative;

  overflow: hidden;

  padding: 60px;

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.22)
  );

  box-shadow:
    var(--shadow-glass),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.advanced-search-content::before {
  content: "";

  position: absolute;

  top: -200px;

  right: -100px;

  width: 400px;

  height: 400px;

  border-radius: 50%;

  background: rgba(100, 130, 255, 0.12);

  filter: blur(60px);

  pointer-events: none;
}

.advanced-search-content h2 {
  position: relative;

  max-width: 650px;

  margin: 10px 0;

  font-size: 45px;

  line-height: 1;

  letter-spacing: -2px;
}

.advanced-search-content > p {
  position: relative;

  max-width: 600px;

  margin-bottom: 35px;

  color: var(--text-soft);

  font-size: 13px;
}

.advanced-search-form {
  position: relative;

  display: grid;

  grid-template-columns:
    1.5fr
    1fr
    1fr
    0.7fr
    auto;

  align-items: end;

  gap: 12px;
}

.form-group {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.form-group label {
  color: var(--text-soft);

  font-size: 10px;

  font-weight: 650;
}

.form-group input,
.form-group select {
  width: 100%;

  height: 48px;

  padding: 0 13px;

  border: 1px solid var(--border);

  border-radius: 12px;

  outline: none;

  background: rgba(255, 255, 255, 0.32);

  color: var(--text);

  -webkit-backdrop-filter: blur(15px);

  backdrop-filter: blur(15px);

  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(120, 140, 255, 0.55);

  box-shadow: 0 0 0 4px rgba(100, 130, 255, 0.08);
}

.advanced-search-button {
  height: 48px;

  padding: 0 18px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 12px;

  background: linear-gradient(145deg, #191c22, #08090c);

  color: #fff;

  font-size: 11px;

  font-weight: 750;
}

/* =========================================================
   CTA
========================================================= */

.cta-section {
  padding: 130px 30px;

  text-align: center;
}

.cta-content {
  max-width: 720px;

  margin: auto;
}

.cta-icon {
  width: 66px;

  height: 66px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 20px;

  border: 1px solid var(--border);

  border-radius: 21px;

  background: rgba(255, 255, 255, 0.35);

  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  font-size: 27px;
}

.cta-content h2 {
  margin: 10px 0 15px;

  font-size: clamp(40px, 6vw, 65px);

  line-height: 1;

  letter-spacing: -3px;
}

.cta-content p {
  max-width: 550px;

  margin: 0 auto 30px;

  color: var(--text-soft);

  font-size: 13px;
}

.cta-actions {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;
}

.primary-button,
.secondary-button {
  position: relative;

  overflow: hidden;

  padding: 12px 20px;

  border-radius: 13px;

  font-size: 11px;

  font-weight: 750;
}

.primary-button {
  background: linear-gradient(145deg, #1b1e24, #08090c);

  color: #fff;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.secondary-button {
  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.32);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  margin-top: 30px;

  border-top: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.12);

  -webkit-backdrop-filter: blur(20px);

  backdrop-filter: blur(20px);
}

.footer-main {
  max-width: var(--max-width);

  margin: auto;

  padding: 70px 30px;

  display: grid;

  grid-template-columns:
    2fr
    1fr
    1fr
    1fr;

  gap: 50px;
}

.footer-brand {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 15px;
}

.footer-brand-column > p {
  max-width: 310px;

  color: var(--text-soft);

  font-size: 11px;
}

.footer-column {
  display: flex;

  flex-direction: column;

  gap: 11px;
}

.footer-column h3 {
  margin-bottom: 7px;

  font-size: 11px;
}

.footer-column a {
  color: var(--text-soft);

  font-size: 11px;

  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--text);

  transform: translateX(3px);
}

.footer-bottom {
  max-width: var(--max-width);

  margin: auto;

  padding: 20px 30px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-top: 1px solid var(--border);

  color: var(--text-soft);

  font-size: 9px;
}

.footer-bottom-links {
  display: flex;

  gap: 20px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1150px) {
  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 8px;

    font-size: 10px;
  }

  .resource-grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advanced-search-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .advanced-search-button {
    width: 100%;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .site-header {
    top: 12px;

    width: calc(100% - 24px);
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;

    top: 77px;

    left: 0;

    right: 0;

    display: none;

    flex-direction: column;

    align-items: stretch;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.58);

    box-shadow: var(--shadow-glass);

    -webkit-backdrop-filter: blur(30px);

    backdrop-filter: blur(30px);
  }

  .nav-links.show {
    display: flex;

    animation: glassMenu 0.35s ease;
  }

  @keyframes glassMenu {
    from {
      opacity: 0;

      transform: translateY(-10px) scale(0.98);
    }

    to {
      opacity: 1;

      transform: translateY(0) scale(1);
    }
  }

  .nav-link {
    width: 100%;

    padding: 13px;
  }

  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   PHONE
========================================================= */

@media (max-width: 650px) {
  .main-navigation {
    min-height: 64px;

    padding: 0 12px;
  }

  .site-header {
    border-radius: 20px;
  }

  .brand-subtitle {
    display: none;
  }

  .theme-button {
    display: none;
  }

  .login-button {
    display: none;
  }

  .hero-section {
    min-height: 760px;

    padding: 150px 20px 80px;
  }

  .hero-content h1 {
    font-size: 51px;

    letter-spacing: -3px;
  }

  .hero-description {
    font-size: 14px;
  }

  .search-box {
    flex-wrap: wrap;

    padding: 8px;

    border-radius: 19px;
  }

  .search-icon {
    display: none;
  }

  .search-box input {
    flex: 1 1 100%;

    width: 100%;

    padding: 0 12px;
  }

  .search-button {
    width: 100%;
  }

  .search-options {
    justify-content: flex-start;
  }

  .quick-access-section,
  .featured-section,
  .browse-section,
  .advanced-search-section {
    padding: 70px 20px;
  }

  .section-header {
    display: block;
  }

  .section-header > p {
    margin-top: 10px;
  }

  .resource-grid,
  .featured-grid,
  .department-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: 250px;
  }

  .statistics-section {
    grid-template-columns: repeat(2, 1fr);

    gap: 35px;

    margin: 20px;

    padding: 50px 15px;

    border-radius: 25px;
  }

  .stat-item strong {
    font-size: 34px;
  }

  .advanced-search-content {
    padding: 30px 20px;

    border-radius: 28px;
  }

  .advanced-search-content h2 {
    font-size: 36px;
  }

  .advanced-search-form {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 90px 20px;
  }

  .cta-content h2 {
    font-size: 44px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;

    max-width: 250px;

    text-align: center;
  }

  .footer-main {
    grid-template-columns: 1fr;

    padding: 55px 20px;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;

    gap: 15px;

    padding: 20px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   PHASE 3A
   DISCOVER / LIBRARY CATALOG
========================================================= */

.discover-hero {
  position: relative;

  padding: 180px 30px 80px;

  text-align: center;

  overflow: hidden;
}

.discover-hero-content {
  position: relative;

  max-width: 900px;

  margin: auto;
}

.discover-hero h1 {
  margin: 15px 0 20px;

  font-size: clamp(55px, 8vw, 90px);

  line-height: 0.95;

  letter-spacing: -5px;
}

.discover-hero h1 span {
  display: block;

  color: var(--text-soft);
}

.discover-hero-content > p {
  max-width: 650px;

  margin: 0 auto 30px;

  color: var(--text-soft);

  font-size: 14px;
}

/* SEARCH */

.discover-search {
  max-width: 820px;

  margin: auto;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 7px 8px;

  border: 1px solid var(--border);

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.4);

  box-shadow:
    var(--shadow-glass),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  backdrop-filter: blur(25px);
}

.discover-search > i {
  padding-left: 15px;

  color: var(--text-soft);
}

.discover-search input {
  flex: 1;

  height: 48px;

  min-width: 0;

  border: none;

  outline: none;

  background: transparent;

  color: var(--text);
}

.discover-search button {
  height: 48px;

  padding: 0 23px;

  border: none;

  border-radius: 14px;

  background: #111318;

  color: white;

  font-size: 11px;

  font-weight: 700;
}

.discover-quick-filters {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 17px;
}

.quick-filter {
  padding: 8px 13px;

  border: 1px solid var(--border);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.24);

  color: var(--text-soft);

  font-size: 10px;

  cursor: pointer;

  transition: var(--transition);
}

.quick-filter:hover,
.quick-filter.active {
  background: rgba(255, 255, 255, 0.55);

  color: var(--text);

  transform: translateY(-2px);
}

/* DISCOVER AREA */

.discover-section {
  max-width: 1400px;

  margin: auto;
  padding: 40px 30px 110px;
}

.discover-layout {
  margin-top: 50px;
  display: grid;

  grid-template-columns: 1fr;

  gap: 30px;

  align-items: start;
}

/* SIDEBAR */

.filter-sidebar {
  position: sticky;

  top: 105px;

  padding: 22px;

  border: 1px solid var(--border);

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.34);

  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  backdrop-filter: blur(25px);
}

.filter-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  margin-bottom: 25px;
}

.filter-header h2 {
  margin-top: 5px;

  font-size: 25px;

  letter-spacing: -1px;
}

.clear-filters {
  border: none;

  background: transparent;

  color: var(--text-soft);

  font-size: 9px;

  cursor: pointer;
}

.filter-group {
  padding: 20px 0;

  border-top: 1px solid var(--border);
}

.filter-group h3 {
  margin-bottom: 13px;

  font-size: 10px;
}

.check-option {
  display: grid;

  grid-template-columns:
    18px
    1fr
    auto;

  align-items: center;

  gap: 7px;

  margin: 11px 0;

  color: var(--text-soft);

  font-size: 10px;

  cursor: pointer;
}

.check-option input {
  accent-color: var(--text);
}

.check-option small {
  opacity: 0.6;
}

.glass-select {
  width: 100%;

  height: 43px;

  padding: 0 11px;

  border: 1px solid var(--border);

  border-radius: 11px;

  outline: none;

  background: rgba(255, 255, 255, 0.3);

  color: var(--text);

  font-size: 10px;
}

.apply-filter-button {
  width: 100%;

  height: 44px;

  border: none;

  border-radius: 12px;

  background: #111318;

  color: white;

  font-size: 10px;

  font-weight: 700;

  cursor: pointer;
}

/* RESULTS */

.results-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 28px;
}

.results-header h2 {
  margin: 7px 0 3px;

  font-size: 32px;

  letter-spacing: -1.5px;
}

.results-header p {
  color: var(--text-soft);

  font-size: 10px;
}

.sort-wrapper {
  display: flex;

  align-items: center;

  gap: 8px;
}

.sort-wrapper label {
  color: var(--text-soft);

  font-size: 9px;
}

.sort-select {
  width: 135px;
}

/* LIBRARY GRID */

.library-grid {

  display: grid;
  width: 90vw;
  margin: auto;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;
  
}

.library-card {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.27);

  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  backdrop-filter: blur(20px);

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.library-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-hover);
}

/* COVERS */

.library-cover {
  position: relative;

  height: 230px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  overflow: hidden;

  color: white;
}




.library-cover span,
.library-cover strong,
.library-cover small {
  position: relative;

  z-index: 1;
}

.library-cover span {
  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1.4px;

  opacity: 0.7;
}

.library-cover strong {
  max-width: 200px;

  font-size: 25px;

  line-height: 0.95;

  letter-spacing: -1px;
}

.library-cover small {
  font-size: 8px;

  opacity: 0.65;
}

/* COVER VARIANTS */

.book-style-one {
  background: linear-gradient(135deg, #111827, #475569);
}

.book-style-two {
  background: linear-gradient(135deg, #292524, #78716c);
}

.book-style-three {
  background: linear-gradient(135deg, #172554, #2563eb);
}

.journal-style-one {
  background: linear-gradient(135deg, #3b0764, #9333ea);
}

.journal-style-two {
  background: linear-gradient(135deg, #164e63, #0891b2);
}

.research-style-one {
  background: linear-gradient(135deg, #064e3b, #10b981);
}

.research-style-two {
  background: linear-gradient(135deg, #312e81, #6366f1);
}

.research-style-three {
  background: linear-gradient(135deg, #431407, #ea580c);
}

.thesis-style-one {
  background: linear-gradient(135deg, #172554, #1d4ed8);
}

.thesis-style-two {
  background: linear-gradient(135deg, #3f3f46, #71717a);
}

.past-style-one {
  background: linear-gradient(135deg, #111827, #0f766e);
}

.past-style-two {
  background: linear-gradient(135deg, #4c0519, #be123c);
}

/* CARD BODY */

.library-card-body {
  padding: 20px;
}

.resource-badge {
  color: var(--text-soft);

  font-size: 8px;

  font-weight: 850;

  letter-spacing: 1.2px;
}

.library-card-body h3 {
  margin: 8px 0 3px;

  font-size: 16px;

  line-height: 1.2;
}

.resource-author {
  margin-bottom: 13px;

  color: var(--text-soft);

  font-size: 10px;
}

.resource-description {
  min-height: 50px;

  margin-bottom: 16px;

  color: var(--text-soft);

  font-size: 10px;

  line-height: 1.6;
}

.resource-meta {
  display: flex;

  align-items: center;

  gap: 13px;

  margin-bottom: 17px;

  color: var(--text-soft);

  font-size: 9px;
}

.resource-meta span {
  display: flex;

  align-items: center;

  gap: 5px;
}

.view-resource {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding-top: 13px;

  border-top: 1px solid var(--border);

  font-size: 10px;

  font-weight: 700;
}

.view-resource i {
  transition: transform 0.3s ease;
}

.view-resource:hover i {
  transform: translate(3px, -3px);
}

/* NO RESULTS */

.no-results {
  display: none;

  padding: 80px 20px;

  text-align: center;
}

.no-results.show {
  display: block;
}

.no-results-icon {
  width: 60px;

  height: 60px;

  margin: 0 auto 18px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.3);
}

.no-results h3 {
  margin-bottom: 5px;
}

.no-results p {
  margin-bottom: 18px;

  color: var(--text-soft);

  font-size: 11px;
}

/* PAGINATION */

.pagination {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 6px;

  margin-top: 45px;
}

.pagination-button {
  width: 37px;

  height: 37px;

  border: 1px solid var(--border);

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.3);

  color: var(--text);

  font-size: 10px;

  cursor: pointer;
}

.pagination-button.active {
  background: #111318;

  color: white;
}

.pagination-button.disabled {
  opacity: 0.35;

  pointer-events: none;
}

.pagination span {
  color: var(--text-soft);
}

/* CTA */

.discover-cta {
  padding: 100px 25px;

  text-align: center;
}

.discover-cta-content {
  max-width: 650px;

  margin: auto;
}

.discover-cta h2 {
  margin: 12px 0;

  font-size: clamp(45px, 7vw, 70px);

  line-height: 0.95;

  letter-spacing: -4px;
}

.discover-cta h2 span {
  color: var(--text-soft);
}

.discover-cta p {
  max-width: 500px;

  margin: 0 auto 25px;

  color: var(--text-soft);

  font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .discover-layout {
    grid-template-columns:
      210px
      1fr;
  }

  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  
    
  }
}

@media (max-width: 850px) {
  .discover-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .discover-hero {
    padding: 150px 20px 60px;
  }

  .discover-hero h1 {
    font-size: 54px;

    letter-spacing: -3px;
  }

  .discover-search {
    flex-wrap: wrap;
  }

  .discover-search input {
    width: calc(100% - 45px);
  }

  .discover-search button {
    width: 100%;
  }

  .discover-section {
    padding: 25px 20px 80px;
  }

  .results-header {
    display: block;
  }

  .sort-wrapper {
    margin-top: 15px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   RESOURCE PAGE
========================================================= */

.resource-container {
  width: min(1200px, calc(100% - 50px));

  margin: auto;
}

.resource-top {
  padding-top: 130px;
}

.resource-breadcrumb {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 9px;

  color: var(--text-soft);

  font-size: 9px;
}

.resource-breadcrumb a {
  color: var(--text-soft);
}

.resource-breadcrumb a:hover {
  color: var(--text);
}

.resource-breadcrumb i {
  font-size: 7px;

  opacity: 0.5;
}

/* MAIN */

.resource-section {
  padding: 35px 0 90px;
}

.resource-main {
  display: grid;

  grid-template-columns:
    300px
    1fr;

  gap: 65px;

  align-items: start;
}

/* COVER */

.resource-preview-column {
  position: sticky;

  top: 110px;
}

.resource-large-cover {
  position: relative;

  min-height: 440px;

  padding: 30px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  overflow: hidden;

  border-radius: 25px;

  background: linear-gradient(145deg, #111827, #475569);

  color: white;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.resource-large-cover::after {
  content: "";

  position: absolute;

  width: 180px;

  height: 180px;

  right: -60px;

  bottom: -60px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);

  filter: blur(2px);
}

.cover-type {
  font-size: 9px;

  font-weight: 800;

  letter-spacing: 2px;

  opacity: 0.65;
}

.cover-title {
  position: relative;

  z-index: 2;

  font-size: 31px;

  font-weight: 800;

  line-height: 0.95;

  letter-spacing: -1.5px;
}

.cover-publisher {
  position: relative;

  z-index: 2;

  font-size: 8px;

  line-height: 1.5;

  letter-spacing: 1px;

  opacity: 0.65;
}

/* ACTION BUTTONS */

.save-resource-button,
.share-resource-button {
  width: 100%;

  height: 47px;

  margin-top: 10px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.35);

  color: var(--text);

  font-size: 10px;

  cursor: pointer;

  backdrop-filter: blur(18px);

  transition: 0.3s ease;
}

.save-resource-button:hover,
.share-resource-button:hover {
  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.6);
}

.save-resource-button.saved {
  background: #111318;

  color: white;
}

/* INFORMATION */

.resource-type-label {
  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 1.5px;

  color: var(--text-soft);
}

.resource-type-dot {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #22c55e;
}

.resource-heading h1 {
  max-width: 850px;

  margin: 12px 0 9px;

  font-size: clamp(40px, 5vw, 65px);

  line-height: 0.98;

  letter-spacing: -3px;
}

.resource-author-large {
  margin-bottom: 20px;

  font-size: 12px;

  color: var(--text-soft);
}

.resource-introduction {
  max-width: 760px;

  color: var(--text-soft);

  font-size: 12px;

  line-height: 1.8;
}

/* RESOURCE ACTIONS */

.resource-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin: 30px 0;
}

.primary-resource-button,
.secondary-resource-button {
  height: 48px;

  padding: 0 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  border-radius: 13px;

  font-size: 10px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s ease;
}

.primary-resource-button {
  border: none;

  background: #111318;

  color: white;
}

.secondary-resource-button {
  border: 1px solid var(--border);

  background: rgba(255, 255, 255, 0.3);

  color: var(--text);
}

.primary-resource-button:hover,
.secondary-resource-button:hover {
  transform: translateY(-2px);
}

/* METADATA */

.resource-metadata {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);
}

.metadata-item {
  min-height: 90px;

  padding: 18px 15px;

  border-right: 1px solid var(--border);
}

.metadata-item:nth-child(3n) {
  border-right: none;
}

.metadata-item:nth-child(-n + 3) {
  border-bottom: 1px solid var(--border);
}

.metadata-item span {
  display: block;

  margin-bottom: 8px;

  color: var(--text-soft);

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 1px;
}

.metadata-item strong {
  font-size: 10px;
}

/* CONTENT */

.resource-content-section {
  margin-top: 50px;
}

.resource-content-section h2 {
  margin: 8px 0 18px;

  font-size: 25px;

  letter-spacing: -1px;
}

.resource-content-section p {
  max-width: 850px;

  margin-bottom: 15px;

  color: var(--text-soft);

  font-size: 11px;

  line-height: 1.9;
}

/* SUBJECTS */

.subject-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;
}

.subject-tags span {
  padding: 9px 13px;

  border: 1px solid var(--border);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.3);

  color: var(--text-soft);

  font-size: 9px;
}

/* CITATION */

.citation-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 15px;
}

.copy-citation {
  height: 37px;

  padding: 0 13px;

  display: flex;

  align-items: center;

  gap: 7px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.3);

  color: var(--text);

  font-size: 9px;

  cursor: pointer;
}

.citation-box {
  padding: 18px;

  border: 1px solid var(--border);

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.25);

  color: var(--text-soft);

  font-size: 10px;

  line-height: 1.7;
}

/* IDENTIFIERS */

.identifier-list {
  border-top: 1px solid var(--border);
}

.identifier-list > div {
  padding: 15px 0;

  display: flex;

  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--border);
}

.identifier-list span {
  color: var(--text-soft);

  font-size: 9px;
}

.identifier-list strong {
  font-size: 9px;
}

/* RELATED */

.related-section {
  padding: 90px 0 110px;
}

.related-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  margin-bottom: 25px;
}

.related-heading h2 {
  margin-top: 8px;

  font-size: 35px;

  letter-spacing: -1.5px;
}

.view-all-link {
  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 10px;

  font-weight: 700;
}

.related-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;
}

.related-card {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.28);

  box-shadow: var(--shadow-soft);

  backdrop-filter: blur(20px);

  transition: 0.4s ease;
}

.related-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-hover);
}

.related-cover {
  min-height: 190px;

  padding: 20px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  color: white;
}

.related-cover span {
  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1px;

  opacity: 0.7;
}

.related-cover strong {
  font-size: 24px;

  line-height: 0.95;

  letter-spacing: -1px;
}

.related-cover-one {
  background: linear-gradient(135deg, #172554, #3b82f6);
}

.related-cover-two {
  background: linear-gradient(135deg, #3f0764, #a855f7);
}

.related-cover-three {
  background: linear-gradient(135deg, #164e63, #06b6d4);
}

.related-body {
  padding: 17px;
}

.related-body > span {
  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1px;

  color: var(--text-soft);
}

.related-body h3 {
  margin: 7px 0 4px;

  font-size: 14px;

  line-height: 1.25;
}

.related-body p {
  margin-bottom: 15px;

  color: var(--text-soft);

  font-size: 9px;
}

.related-body a {
  display: flex;

  justify-content: space-between;

  padding-top: 12px;

  border-top: 1px solid var(--border);

  font-size: 9px;

  font-weight: 700;
}

/* READER */

body.reader-open {
  overflow: hidden;
}

.reader-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: none;
}

.reader-modal.show {
  display: block;
}

.reader-overlay {
  position: absolute;

  inset: 0;

  background: rgba(5, 8, 15, 0.55);

  backdrop-filter: blur(20px);
}

.reader-window {
  position: relative;

  width: min(1000px, calc(100% - 40px));

  height: min(760px, calc(100vh - 40px));

  margin: 20px auto;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.92);

  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.reader-header {
  height: 70px;

  padding: 0 22px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.reader-header span {
  display: block;

  margin-bottom: 4px;

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 1px;

  opacity: 0.5;
}

.reader-header strong {
  font-size: 11px;
}

.reader-close {
  width: 38px;

  height: 38px;

  border: none;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.06);

  cursor: pointer;
}

.reader-body {
  height: calc(100% - 70px);

  display: flex;

  align-items: center;

  justify-content: center;
}

.reader-placeholder {
  max-width: 400px;

  padding: 30px;

  text-align: center;
}

.reader-placeholder i {
  margin-bottom: 20px;

  font-size: 55px;
}

.reader-placeholder h2 {
  margin-bottom: 10px;

  font-size: 25px;
}

.reader-placeholder p {
  margin-bottom: 15px;

  color: #666;

  font-size: 11px;

  line-height: 1.7;
}

.reader-placeholder span {
  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1px;

  opacity: 0.5;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .resource-main {
    grid-template-columns:
      230px
      1fr;

    gap: 35px;
  }

  .resource-large-cover {
    min-height: 350px;
  }

  .resource-metadata {
    grid-template-columns: repeat(2, 1fr);
  }

  .metadata-item:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .metadata-item:nth-child(2n) {
    border-right: none;
  }

  .metadata-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 700px) {
  .resource-container {
    width: calc(100% - 35px);
  }

  .resource-top {
    padding-top: 120px;
  }

  .resource-main {
    grid-template-columns: 1fr;
  }

  .resource-preview-column {
    position: static;

    max-width: 300px;

    margin: auto;

    width: 100%;
  }

  .resource-heading h1 {
    font-size: 42px;

    letter-spacing: -2px;
  }

  .resource-metadata {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-heading {
    align-items: flex-start;
  }

  .citation-heading {
    display: block;
  }

  .copy-citation {
    margin-top: 12px;
  }
}

@media (max-width: 450px) {
  .resource-actions {
    display: grid;

    grid-template-columns: 1fr;
  }

  .primary-resource-button,
  .secondary-resource-button {
    width: 100%;
  }

  .resource-metadata {
    grid-template-columns: 1fr;
  }

  .metadata-item,
  .metadata-item:nth-child(2n),
  .metadata-item:nth-child(3n) {
    border-right: none;

    border-bottom: 1px solid var(--border);
  }
}
/* =========================================================
   PHASE 4A — AUTHENTICATION / LOGIN
========================================================= */

/* =========================================================
   AUTH PAGE
========================================================= */

.auth-page {
  min-height: 100vh;
}

.auth-main {
  min-height: calc(100vh - 90px);

  padding: 125px 30px 60px;
}

.auth-wrapper {
  width: min(1180px, 100%);

  min-height: 650px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1fr
    460px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  background: var(--surface);

  box-shadow: var(--shadow-glass);

  -webkit-backdrop-filter: blur(var(--glass-blur))
    saturate(var(--glass-saturation));

  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

/* =========================================================
   BACK BUTTON
========================================================= */

.auth-back-button {
  height: 42px;

  padding: 0 16px;

  display: flex;

  align-items: center;

  gap: 8px;

  border: 1px solid var(--border);

  border-radius: 50px;

  background: var(--surface-soft);

  color: var(--text);

  font-size: 9px;

  font-weight: 700;

  -webkit-backdrop-filter: blur(18px);

  backdrop-filter: blur(18px);

  transition: var(--transition);
}

.auth-back-button:hover {
  transform: translateY(-2px);

  background: var(--surface-strong);

  box-shadow: var(--shadow-soft);
}

/* =========================================================
   SHOWCASE
========================================================= */

.auth-showcase {
  position: relative;

  min-height: 650px;

  padding: 70px;

  display: flex;

  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(85, 130, 255, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(180, 90, 255, 0.18),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.06)
    );
}

.auth-showcase-content {
  position: relative;

  z-index: 3;

  max-width: 590px;
}

.auth-badge {
  width: fit-content;

  padding: 8px 12px;

  display: flex;

  align-items: center;

  gap: 7px;

  border: 1px solid var(--border);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.25);

  color: var(--text-soft);

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1.4px;

  -webkit-backdrop-filter: blur(18px);

  backdrop-filter: blur(18px);
}

.auth-badge-dot {
  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.auth-showcase h1 {
  margin: 25px 0 18px;

  font-size: clamp(55px, 6vw, 82px);

  line-height: 0.92;

  letter-spacing: -4px;
}

.auth-showcase h1 span {
  display: block;

  color: var(--text-soft);
}

.auth-showcase-content > p {
  max-width: 530px;

  color: var(--text-soft);

  font-size: 12px;

  line-height: 1.9;
}

/* =========================================================
   FEATURES
========================================================= */

.auth-features {
  margin-top: 40px;

  display: grid;

  gap: 14px;
}

.auth-feature {
  display: flex;

  align-items: center;

  gap: 13px;
}

.auth-feature-icon {
  width: 42px;

  height: 42px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.3);

  box-shadow: var(--shadow-soft);

  -webkit-backdrop-filter: blur(18px);

  backdrop-filter: blur(18px);
}

.auth-feature-icon i {
  font-size: 13px;
}

.auth-feature strong {
  display: block;

  margin-bottom: 3px;

  font-size: 10px;
}

.auth-feature span {
  display: block;

  color: var(--text-soft);

  font-size: 8px;
}

/* =========================================================
   DECORATIVE ORBS
========================================================= */

.auth-orb {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(2px);
}

.auth-orb-one {
  width: 240px;

  height: 240px;

  top: -100px;

  right: -80px;

  background: rgba(90, 130, 255, 0.16);
}

.auth-orb-two {
  width: 180px;

  height: 180px;

  bottom: -80px;

  left: 35%;

  background: rgba(190, 100, 255, 0.14);
}

.auth-orb-three {
  width: 80px;

  height: 80px;

  top: 45%;

  right: 10%;

  background: rgba(70, 210, 255, 0.13);
}

/* =========================================================
   FORM SECTION
========================================================= */

.auth-form-section {
  padding: 35px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.18);
}

.auth-card {
  width: 100%;

  max-width: 390px;
}

.auth-card-header {
  margin-bottom: 30px;
}

.auth-card-icon {
  width: 42px;

  height: 42px;

  margin-bottom: 17px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 13px;

  background: var(--accent);

  color: var(--accent-text);

  box-shadow: var(--shadow-soft);
}

.auth-card-icon i {
  font-size: 14px;
}

.auth-card-label {
  display: block;

  margin-bottom: 7px;

  color: var(--text-soft);

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 1.5px;
}

.auth-card-header h2 {
  margin-bottom: 5px;

  font-size: 31px;

  line-height: 1;

  letter-spacing: -1.5px;
}

.auth-card-header p {
  color: var(--text-soft);

  font-size: 10px;
}

/* =========================================================
   FORM
========================================================= */

.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 18px;
}

.form-group > label,
.password-label-row label {
  display: block;

  margin-bottom: 7px;

  font-size: 9px;

  font-weight: 700;
}

.password-label-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 7px;
}

.password-label-row label {
  margin-bottom: 0;
}

.password-label-row a {
  color: var(--text-soft);

  font-size: 8px;

  font-weight: 600;
}

.password-label-row a:hover {
  color: var(--text);
}

.input-wrapper {
  position: relative;
}

.input-wrapper > i {
  position: absolute;

  left: 14px;

  top: 50%;

  z-index: 2;

  transform: translateY(-50%);

  color: var(--text-soft);

  font-size: 11px;
}

.input-wrapper input {
  width: 100%;

  height: 50px;

  padding: 0 43px;

  border: 1px solid var(--border);

  border-radius: 14px;

  outline: none;

  background: rgba(255, 255, 255, 0.34);

  color: var(--text);

  font-size: 10px;

  -webkit-backdrop-filter: blur(18px);

  backdrop-filter: blur(18px);

  transition: var(--transition);
}

.input-wrapper input::placeholder {
  color: var(--text-soft);

  opacity: 0.7;
}

.input-wrapper input:focus {
  border-color: rgba(100, 120, 255, 0.55);

  background: rgba(255, 255, 255, 0.5);

  box-shadow: 0 0 0 4px rgba(100, 120, 255, 0.08);
}

.password-toggle {
  position: absolute;

  right: 8px;

  top: 50%;

  width: 34px;

  height: 34px;

  transform: translateY(-50%);

  border: none;

  border-radius: 10px;

  background: transparent;

  color: var(--text-soft);
}

.password-toggle:hover {
  background: rgba(0, 0, 0, 0.05);

  color: var(--text);
}

.form-error {
  display: block;

  min-height: 12px;

  margin-top: 5px;

  color: #dc2626;

  font-size: 8px;
}

/* =========================================================
   REMEMBER ME
========================================================= */

.auth-options {
  margin: 2px 0 20px;
}

.remember-option {
  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--text-soft);

  font-size: 9px;

  cursor: pointer;
}

.remember-option input {
  position: absolute;

  opacity: 0;
}

.custom-checkbox {
  width: 16px;

  height: 16px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.35);

  transition: 0.25s ease;
}

.remember-option input:checked + .custom-checkbox {
  background: var(--accent);

  border-color: var(--accent);
}

.remember-option input:checked + .custom-checkbox::after {
  content: "✓";

  color: var(--accent-text);

  font-size: 9px;

  font-weight: 900;
}

/* =========================================================
   SUBMIT
========================================================= */

.auth-submit-button {
  width: 100%;

  height: 51px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  border: none;

  border-radius: 14px;

  background: var(--accent);

  color: var(--accent-text);

  font-size: 10px;

  font-weight: 800;

  box-shadow: var(--shadow-soft);

  transition: var(--transition);
}

.auth-submit-button:hover {
  transform: translateY(-2px);

  box-shadow: var(--shadow-hover);
}

.auth-submit-button.loading {
  pointer-events: none;

  opacity: 0.7;
}

.auth-submit-button.success {
  background: #16a34a;

  color: white;
}

/* =========================================================
   STATUS
========================================================= */

.auth-status {
  min-height: 20px;

  margin-top: 10px;

  text-align: center;

  font-size: 9px;
}

.auth-status.error {
  color: #dc2626;
}

.auth-status.success {
  color: #16a34a;
}

/* =========================================================
   DIVIDER
========================================================= */

.auth-divider {
  position: relative;

  margin: 25px 0;

  text-align: center;
}

.auth-divider::before {
  content: "";

  position: absolute;

  left: 0;

  right: 0;

  top: 50%;

  height: 1px;

  background: var(--border-dark);
}

.auth-divider span {
  position: relative;

  padding: 0 12px;

  background: var(--background);

  color: var(--text-soft);

  font-size: 7px;

  font-weight: 700;

  letter-spacing: 1px;
}

/* =========================================================
   CREATE ACCOUNT
========================================================= */

.create-account {
  text-align: center;

  font-size: 9px;
}

.create-account > span {
  color: var(--text-soft);
}

.create-account a {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  margin-left: 4px;

  color: var(--text);

  font-weight: 800;
}

.create-account a:hover {
  text-decoration: underline;
}

.create-account i {
  font-size: 7px;
}

/* =========================================================
   SECURITY
========================================================= */

.auth-security-note {
  margin-top: 25px;

  padding: 11px;

  display: flex;

  align-items: flex-start;

  gap: 9px;

  border: 1px solid var(--border);

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.2);
}

.auth-security-note i {
  margin-top: 2px;

  color: #16a34a;

  font-size: 9px;
}

.auth-security-note span {
  color: var(--text-soft);

  font-size: 7px;

  line-height: 1.5;
}

/* =========================================================
   FOOTER
========================================================= */

.auth-footer {
  width: min(1180px, calc(100% - 60px));

  margin: 0 auto;

  padding: 20px 0 30px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: var(--text-soft);

  font-size: 8px;
}

.auth-footer > div {
  display: flex;

  gap: 16px;
}

.auth-footer a:hover {
  color: var(--text);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: auto;

    padding: 50px;
  }

  .auth-showcase h1 {
    font-size: 60px;
  }

  .auth-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .auth-feature {
    align-items: flex-start;
  }

  .auth-feature span {
    display: none;
  }
}

@media (max-width: 650px) {
  .auth-main {
    padding: 115px 18px 40px;
  }

  .auth-wrapper {
    border-radius: 25px;
  }

  .auth-showcase {
    padding: 40px 28px;
  }

  .auth-showcase h1 {
    font-size: 48px;

    letter-spacing: -2.5px;
  }

  .auth-showcase-content > p {
    font-size: 10px;
  }

  .auth-features {
    grid-template-columns: 1fr;
  }

  .auth-feature span {
    display: block;
  }

  .auth-form-section {
    padding: 30px 22px;
  }

  .auth-footer {
    width: calc(100% - 36px);

    flex-direction: column;

    gap: 10px;
  }
}

@media (max-width: 450px) {
  .auth-back-button {
    width: 42px;

    padding: 0;

    justify-content: center;

    font-size: 0;
  }

  .auth-back-button i {
    font-size: 11px;
  }

  .auth-showcase h1 {
    font-size: 42px;
  }

  .auth-card-header h2 {
    font-size: 27px;
  }
}
/* =========================================================
   PHASE 4B — SIGNUP PAGE
========================================================= */

/* =========================================================
   SIGNUP WRAPPER
========================================================= */

.signup-wrapper {
  width: min(1180px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1fr
    520px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: var(--radius-xl);

  background: var(--surface);

  box-shadow: var(--shadow-glass);

  -webkit-backdrop-filter: blur(var(--glass-blur))
    saturate(var(--glass-saturation));

  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}

/* =========================================================
   INTRO PANEL
========================================================= */

.signup-intro {
  position: relative;

  min-height: 800px;

  padding: 65px;

  display: flex;

  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(90, 130, 255, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(180, 90, 255, 0.18),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.06)
    );
}

.signup-intro-content {
  position: relative;

  z-index: 3;

  max-width: 540px;
}

.signup-intro h1 {
  margin: 25px 0 18px;

  font-size: clamp(52px, 5vw, 76px);

  line-height: 0.94;

  letter-spacing: -3.5px;
}

.signup-intro h1 span {
  display: block;

  color: var(--text-soft);
}

.signup-intro-content > p {
  max-width: 500px;

  color: var(--text-soft);

  font-size: 11px;

  line-height: 1.9;
}

/* =========================================================
   BENEFITS
========================================================= */

.signup-benefits {
  margin-top: 38px;

  display: grid;

  gap: 14px;
}

.signup-benefit {
  display: flex;

  align-items: center;

  gap: 13px;
}

.signup-benefit-icon {
  width: 44px;

  height: 44px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.3);

  box-shadow: var(--shadow-soft);

  -webkit-backdrop-filter: blur(18px);

  backdrop-filter: blur(18px);
}

.signup-benefit-icon i {
  font-size: 13px;
}

.signup-benefit strong {
  display: block;

  margin-bottom: 3px;

  font-size: 10px;
}

.signup-benefit span {
  display: block;

  max-width: 340px;

  color: var(--text-soft);

  font-size: 8px;

  line-height: 1.5;
}

/* =========================================================
   DECORATIVE ORBS
========================================================= */

.signup-orb {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;
}

.signup-orb-one {
  width: 260px;

  height: 260px;

  top: -110px;

  right: -100px;

  background: rgba(80, 120, 255, 0.16);
}

.signup-orb-two {
  width: 190px;

  height: 190px;

  bottom: -80px;

  left: 35%;

  background: rgba(190, 90, 255, 0.13);
}

.signup-orb-three {
  width: 80px;

  height: 80px;

  top: 40%;

  right: 12%;

  background: rgba(70, 210, 255, 0.13);
}

/* =========================================================
   SIGNUP FORM SECTION
========================================================= */

.signup-form-section {
  padding: 40px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.signup-card {
  width: 100%;

  max-width: 440px;
}

.signup-card-header {
  margin-bottom: 24px;
}

.signup-card-icon {
  width: 42px;

  height: 42px;

  margin-bottom: 15px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 13px;

  background: var(--accent);

  color: var(--accent-text);

  box-shadow: var(--shadow-soft);
}

.signup-card-header h2 {
  margin-bottom: 5px;

  font-size: 30px;

  line-height: 1;

  letter-spacing: -1.5px;
}

.signup-card-header p {
  color: var(--text-soft);

  font-size: 9px;
}

/* =========================================================
   TWO COLUMN FIELDS
========================================================= */

.signup-two-columns {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 12px;
}

.signup-two-columns .form-group {
  min-width: 0;
}

/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-strength {
  margin-top: 7px;

  display: flex;

  align-items: center;

  gap: 8px;
}

.strength-track {
  width: 70px;

  height: 4px;

  overflow: hidden;

  border-radius: 50px;

  background: var(--border-dark);
}

.strength-track span {
  display: block;

  width: 0;

  height: 100%;

  border-radius: inherit;

  background: var(--accent);

  transition: 0.3s ease;
}

#strengthText {
  color: var(--text-soft);

  font-size: 7px;
}

/* =========================================================
   TERMS
========================================================= */

.signup-terms {
  margin: 2px 0 18px;
}

.terms-option {
  display: flex;

  align-items: flex-start;

  gap: 8px;

  color: var(--text-soft);

  font-size: 8px;

  line-height: 1.6;

  cursor: pointer;
}

.terms-option input {
  position: absolute;

  opacity: 0;
}

.terms-checkbox {
  width: 16px;

  height: 16px;

  flex-shrink: 0;

  margin-top: 1px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.35);
}

.terms-option input:checked + .terms-checkbox {
  background: var(--accent);

  border-color: var(--accent);
}

.terms-option input:checked + .terms-checkbox::after {
  content: "✓";

  color: var(--accent-text);

  font-size: 9px;

  font-weight: 900;
}

.terms-option a {
  color: var(--text);

  font-weight: 700;
}

.terms-option a:hover {
  text-decoration: underline;
}

/* =========================================================
   LOGIN LINK
========================================================= */

.signup-login-link {
  margin-top: 22px;

  text-align: center;

  font-size: 9px;
}

.signup-login-link span {
  color: var(--text-soft);
}

.signup-login-link a {
  margin-left: 4px;

  color: var(--text);

  font-weight: 800;
}

.signup-login-link a:hover {
  text-decoration: underline;
}

.signup-login-link i {
  margin-left: 3px;

  font-size: 7px;
}

/* =========================================================
   SIGNUP RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
  .signup-wrapper {
    grid-template-columns:
      1fr
      480px;
  }

  .signup-intro {
    padding: 50px;
  }
}

@media (max-width: 900px) {
  .signup-wrapper {
    grid-template-columns: 1fr;
  }

  .signup-intro {
    min-height: auto;

    padding: 50px;
  }

  .signup-intro h1 {
    font-size: 58px;
  }

  .signup-benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .signup-benefit {
    align-items: flex-start;
  }

  .signup-benefit span {
    display: none;
  }

  .signup-form-section {
    padding: 40px 50px;
  }
}

@media (max-width: 650px) {
  .signup-main {
    padding: 115px 18px 40px;
  }

  .signup-wrapper {
    border-radius: 25px;
  }

  .signup-intro {
    padding: 40px 28px;
  }

  .signup-intro h1 {
    font-size: 45px;

    letter-spacing: -2px;
  }

  .signup-benefits {
    grid-template-columns: 1fr;
  }

  .signup-benefit span {
    display: block;
  }

  .signup-form-section {
    padding: 32px 22px;
  }

  .signup-two-columns {
    grid-template-columns: 1fr;

    gap: 0;
  }
}

@media (max-width: 900px) {
  .main-navigation {
    position: relative;
  }

  /* Mobile hamburger button */
  .mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 44px;
    height: 44px;

    padding: 0;
    margin-left: auto;
    margin-right: 10px;

    border: 0;
    border-radius: 12px;

    background: transparent;
    color: inherit;

    cursor: pointer;

    gap: 5px;

    z-index: 1002;
  }

  /* Hamburger lines */
  .mobile-menu-button span {
    display: block;

    width: 23px;
    height: 2px;

    border-radius: 10px;

    background: currentColor;

    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .nav-links {
    position: absolute;

    top: calc(100% + 10px);
    left: 10px;
    right: 10px;

    display: flex;
    flex-direction: column;

    padding: 18px;

    background: #061a3a;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;

    z-index: 1001;
  }

  /* Open dropdown */
  .nav-links.mobile-menu-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
  }

  /* Mobile navigation links */
  .nav-links .nav-link {
    width: 100%;

    padding: 14px 16px;

    color: #ffffff;

    border-radius: 10px;

    text-decoration: none;

    transition:
      background 0.2s ease,
      color 0.2s ease;
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
}

@media (max-width: 600px) {
  .main-navigation {
    padding: 10px 14px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 16px;
  }

  .mobile-menu-button {
    width: 40px;
    height: 40px;

    margin-right: 5px;
  }

  .nav-actions .theme-button {
    width: 38px;
    height: 38px;
  }

  .nav-actions .login-button {
    display: none;
  }

  .nav-links {
    left: 10px;
    right: 10px;

    border-radius: 18px;
  }
}

