@font-face {
    font-family: Switzer;
    src: url("/assets/fonts/Switzer-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Switzer;
    src: url("/assets/fonts/Switzer-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Switzer;
    src: url("/assets/fonts/Switzer-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}


:root {
    --blue: #1954a6;
    --blue-dark: #0e3973;
    --blue-light: #edf5ff;

    --white: #ffffff;
    --footer: #f4f5f6;

    --text: #111827;
    --muted: #667085;

    --border: rgba(16, 24, 40, 0.09);

    --container: 1280px;
}


* {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;
}


body {
    min-width: 320px;
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(25, 84, 166, 0.13),
            transparent 42%
        ),
        #ffffff;

    color: var(--text);

    font-family:
        Switzer,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    padding:
        18px
        20px
        0;
}


.header-inner {
    width: min(
        calc(100% - 0px),
        var(--container)
    );

    min-height: 72px;

    margin: 0 auto;
    padding: 10px 14px;

    display: grid;

    grid-template-columns:
        minmax(160px, 1fr)
        auto
        minmax(160px, 1fr);

    align-items: center;

    gap: 20px;

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

    border-radius: 22px;

    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.88),
            rgba(235, 244, 255, 0.74)
        );

    box-shadow:
        0 18px 55px
        rgba(25, 84, 166, 0.10),

        inset 0 1px 0
        rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}


.brand {
    justify-self: start;

    display: flex;
    align-items: center;

    padding: 7px 8px;
}


.brand img {
    width: 150px;
    height: auto;
}


.main-nav {
    display: flex;

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

    gap: 4px;
}


.nav-link {
    min-height: 40px;

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

    padding: 0 16px;

    border-radius: 999px;

    color: #475467;

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

    white-space: nowrap;

    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}


a.nav-link:hover {
    color: var(--blue);

    background:
        rgba(255, 255, 255, 0.78);
}


.nav-link-active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1954a6,
            #397fd5
        );

    box-shadow:
        0 8px 22px
        rgba(25, 84, 166, 0.22);
}


.header-actions {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 9px;
}


.search-button {
    width: 42px;
    height: 42px;

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

    color: var(--blue);

    border:
        1px solid
        rgba(25, 84, 166, 0.10);

    border-radius: 50%;

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

    transition:
        background 160ms ease,
        transform 160ms ease;
}


.search-button:hover {
    background: #ffffff;
    transform: translateY(-1px);
}


.search-button svg {
    width: 19px;
    height: 19px;
}


.search-button svg circle {
    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
}


.search-button svg path {
    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
}


.membership-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 0 17px;

    border-radius: 999px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1954a6,
            #397fd5
        );

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    box-shadow:
        0 9px 24px
        rgba(25, 84, 166, 0.22);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}


.membership-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 13px 30px
        rgba(25, 84, 166, 0.28);
}


.membership-arrow {
    font-size: 15px;
}


.mobile-header-top {
    display: none;
}


/* =========================================================
   MAIN
========================================================= */

.public-main {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    min-height: 360px;

    margin: 0 auto;

    padding:
        70px
        0
        90px;
}


.placeholder-page {
    min-height: 300px;

    display: flex;

    flex-direction: column;

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

    text-align: center;
}


.placeholder-page h1 {
    margin: 0 0 12px;

    font-size:
        clamp(32px, 5vw, 52px);

    letter-spacing: -0.04em;
}


.placeholder-page p {
    margin: 0 0 22px;

    color: var(--muted);

    font-size: 15px;
}


.placeholder-page code {
    padding: 4px 8px;

    border-radius: 7px;

    background: #f1f5f9;

    color: var(--blue);
}


.placeholder-code {
    margin-bottom: 8px;

    color: var(--blue);

    font-size:
        clamp(70px, 12vw, 120px);

    line-height: 1;

    font-weight: 700;

    letter-spacing: -0.07em;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: 100%;

    margin-top: 20px;

    background: var(--footer);
}


.footer-inner {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;

    padding:
        70px
        0
        24px;
}


.footer-explore h2 {
    margin: 0 0 25px;

    color: #111827;

    font-size:
        clamp(27px, 3vw, 38px);

    line-height: 1.1;

    letter-spacing: -0.04em;
}


.footer-image-grid {
    width: 100%;

    display: grid;

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

    gap: 16px;
}


.footer-image-card {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    display: flex;

    align-items: flex-end;
    justify-content: flex-start;

    padding: 15px;

    border-radius: 18px;

    border:
        1px solid
        rgba(16, 24, 40, 0.07);

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #ffffff 50%,
            #bfd8f6
        );

    box-shadow:
        0 8px 30px
        rgba(16, 24, 40, 0.05);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.footer-image-card:nth-child(2) {
    background:
        linear-gradient(
            135deg,
            #edf5ff,
            #cfe2fa
        );
}


.footer-image-card:nth-child(3) {
    background:
        linear-gradient(
            135deg,
            #c7dcf7,
            #f8fbff
        );
}


.footer-image-card:nth-child(4) {
    background:
        linear-gradient(
            135deg,
            #f7fbff,
            #c5dcf8
        );
}


.footer-image-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(25, 84, 166, 0.10);
}


.footer-image-card span {
    width: 32px;
    height: 32px;

    display: inline-flex;

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

    border-radius: 50%;

    color: var(--blue);

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

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

    backdrop-filter: blur(10px);
}


.footer-brand {
    margin-top: 62px;
}


.footer-brand img {
    width: 225px;
    height: auto;
}


.footer-links {
    display: flex;

    align-items: flex-start;

    gap: 90px;

    margin-top: 48px;
}


.footer-link-group {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.footer-link-group h3 {
    margin: 0 0 5px;

    color: #101828;

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

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.footer-link-group a {
    color: #667085;

    font-size: 14px;

    transition: color 160ms ease;
}


.footer-link-group a:hover {
    color: var(--blue);
}


.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 50px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(16, 24, 40, 0.12);
}


.footer-bottom p {
    margin: 0;

    color: #667085;

    font-size: 13px;
}


.demo-group-button {
    min-height: 42px;

    display: inline-flex;

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

    gap: 9px;

    padding: 0 16px;

    border:
        1px solid
        rgba(25, 84, 166, 0.10);

    border-radius: 999px;

    color: var(--blue);

    background: #ffffff;

    font-size: 13px;
    font-weight: 600;

    box-shadow:
        0 7px 22px
        rgba(16, 24, 40, 0.05);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}


.demo-group-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 27px
        rgba(16, 24, 40, 0.08);
}


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

@media (max-width: 760px) {

    .site-header {
        padding:
            10px
            10px
            0;
    }


    .header-inner {
        width: 100%;

        display: block;

        min-height: 0;

        padding: 11px;

        border-radius: 19px;
    }


    .brand,
    .header-actions {
        display: none;
    }


    .mobile-header-top {
        min-height: 44px;

        display: grid;

        grid-template-columns:
            44px
            minmax(0, 1fr)
            70px;

        align-items: center;
    }


    .mobile-search {
        width: 40px;
        height: 40px;

        display: flex;

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

        color: var(--blue);
    }


    .mobile-search svg {
        width: 20px;
        height: 20px;
    }


    .mobile-search svg circle {
        fill: none;

        stroke: currentColor;
        stroke-width: 1.8;
    }


    .mobile-search svg path {
        fill: none;

        stroke: currentColor;
        stroke-width: 1.8;

        stroke-linecap: round;
    }


    .mobile-brand {
        justify-self: center;
    }


    .mobile-brand img {
        width: 140px;
        height: auto;
    }


    .mobile-join {
        min-height: 36px;

        display: inline-flex;

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

        padding: 0 10px;

        border-radius: 999px;

        color: #ffffff;

        background:
            linear-gradient(
                135deg,
                #1954a6,
                #397fd5
            );

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

        white-space: nowrap;
    }


    .main-nav {
        width: 100%;

        margin-top: 11px;
        padding-top: 10px;

        border-top:
            1px solid
            rgba(16, 24, 40, 0.07);

        gap: 2px;
    }


    .nav-link {
        min-height: 36px;

        flex: 0 1 auto;

        padding: 0 11px;

        font-size: 12px;
    }


    .public-main {
        width: calc(100% - 28px);

        min-height: 300px;

        padding:
            45px
            0
            55px;
    }


    .site-footer {
        margin-top: 0;
    }


    .footer-inner {
        width: calc(100% - 28px);

        padding:
            48px
            0
            22px;
    }


    .footer-explore {
        text-align: center;
    }


    .footer-explore h2 {
        margin-bottom: 20px;

        font-size: 27px;
    }


    .footer-image-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .footer-image-card {
        border-radius: 14px;

        padding: 10px;
    }


    .footer-image-card span {
        width: 27px;
        height: 27px;

        font-size: 9px;
    }


    .footer-brand {
        display: flex;

        justify-content: center;

        margin-top: 45px;
    }


    .footer-brand img {
        width: 190px;
    }


    .footer-links {
        display: grid;

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

        gap: 30px 35px;

        margin-top: 40px;
    }


    .footer-link-group {
        gap: 9px;
    }


    .footer-link-group h3 {
        font-size: 11px;
    }


    .footer-link-group a {
        font-size: 13px;
    }


    .footer-legal {
        grid-column: 1 / -1;

        display: flex;

        flex-direction: row;

        flex-wrap: wrap;

        align-items: center;

        gap: 10px 18px;
    }


    .footer-legal h3 {
        width: 100%;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: center;

        margin-top: 36px;

        padding-top: 20px;

        text-align: center;
    }


    .footer-bottom p {
        order: 1;

        font-size: 12px;
    }


    .demo-group-button {
        order: 2;

        width: 100%;
    }
}


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

@media (max-width: 380px) {

    .mobile-header-top {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            64px;
    }


    .mobile-brand img {
        width: 125px;
    }


    .mobile-join {
        padding: 0 8px;
        font-size: 10px;
    }


    .nav-link {
        padding: 0 8px;
        font-size: 11px;
    }
}

/* =========================================================
   HOMEPAGE
   ========================================================= */

.homepage {
    width: 100%;
}

.homepage-hero {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 42px;
}

.homepage-hero-copy {
    max-width: 820px;
}

.homepage-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.homepage-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(25, 84, 166, 0.72);
    font-size: 17px;
    line-height: 1.65;
}

.video-grid-section {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 90px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.video-card {
    min-width: 0;
}

.video-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(25, 84, 166, 0.14),
            rgba(255, 255, 255, 0.96)
        );
    border: 1px solid rgba(25, 84, 166, 0.10);
    box-shadow:
        0 14px 40px rgba(25, 84, 166, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.video-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.video-card-link:hover .video-card-image img {
    transform: scale(1.035);
}

.video-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(25, 84, 166, 0.55);
    font-size: 14px;
    font-weight: 600;
}

.video-card-content {
    padding: 14px 4px 0;
}

.video-card-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.38;
    font-weight: 600;
    letter-spacing: -0.012em;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.video-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: rgba(25, 84, 166, 0.62);
    font-size: 12px;
    line-height: 1.4;
}

.video-card-meta > span,
.video-card-meta > time {
    display: inline-flex;
    align-items: center;
}

.video-card-meta > * + *::before {
    content: "•";
    margin-right: 7px;
    color: rgba(25, 84, 166, 0.30);
}

.video-card-category {
    font-weight: 600;
}

.video-card-model {
    font-weight: 500;
}

.video-card-date {
    opacity: 0.82;
}

.homepage-empty {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 100px;
}

.homepage-empty-inner {
    padding: 70px 30px;
    text-align: center;
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(25, 84, 166, 0.08),
            rgba(255, 255, 255, 0.92)
        );
    border: 1px solid rgba(25, 84, 166, 0.10);
}

.homepage-empty-number {
    display: block;
    margin-bottom: 14px;
    color: rgba(25, 84, 166, 0.45);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.homepage-empty h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.025em;
}

.homepage-empty p {
    margin: 10px 0 0;
    color: rgba(25, 84, 166, 0.62);
}


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

@media (max-width: 760px) {

    .homepage-hero {
        width: min(100% - 24px, 1400px);
        padding: 42px 0 28px;
    }

    .homepage-hero h1 {
        font-size: 34px;
    }

    .homepage-hero p {
        margin-top: 14px;
        font-size: 15px;
    }

    .video-grid-section {
        width: min(100% - 24px, 1400px);
        padding-bottom: 60px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-card-image {
        aspect-ratio: 16 / 10;
        border-radius: 20px;
    }

    .video-card-content {
        padding: 12px 3px 0;
    }

    .video-card-title {
        font-size: 16px;
    }

    .video-card-meta {
        font-size: 12px;
        margin-top: 8px;
    }

    .homepage-empty {
        width: min(100% - 24px, 1400px);
        padding-bottom: 60px;
    }

    .homepage-empty-inner {
        padding: 55px 20px;
        border-radius: 22px;
    }

}

/* =========================================================
   VIDEO PAGE
   ========================================================= */

.video-page {
    width: 100%;
    padding: 40px 0 90px;
}

.video-detail {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.video-player-wrap {
    width: 100%;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow:
        0 24px 70px rgba(25, 84, 166, 0.14);
}

.video-player iframe,
.video-player img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-player img {
    object-fit: contain;
}

.video-detail-content {
    max-width: 980px;
    padding: 30px 4px 0;
}

.video-detail-content h1 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.video-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    color: rgba(25, 84, 166, 0.65);
    font-size: 13px;
}

.video-detail-meta span,
.video-detail-meta time {
    display: inline-flex;
    align-items: center;
}

.video-detail-meta > * + *::before {
    content: "•";
    margin-right: 8px;
    color: rgba(25, 84, 166, 0.3);
}

.video-description {
    margin-top: 25px;
    color: rgba(15, 31, 52, 0.78);
    font-size: 16px;
    line-height: 1.75;
    white-space: normal;
}

.video-taxonomy {
    margin-top: 28px;
}

.video-taxonomy strong {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.video-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-taxonomy-list a {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    color: #1954a6;
    background: rgba(25, 84, 166, 0.07);
    border: 1px solid rgba(25, 84, 166, 0.1);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease;
}

.video-taxonomy-list a:hover {
    background: rgba(25, 84, 166, 0.13);
}

@media (max-width: 760px) {

    .video-page {
        padding: 20px 0 60px;
    }

    .video-detail {
        width: calc(100% - 20px);
    }

    .video-player {
        aspect-ratio: 16 / 9;
        border-radius: 18px;
    }

    .video-detail-content {
        padding-top: 22px;
    }

    .video-detail-content h1 {
        font-size: 27px;
    }

    .video-description {
        font-size: 15px;
        line-height: 1.7;
    }

}

/* =========================================================
   MODELS
   ========================================================= */

.listing-hero {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 42px;
}

.listing-hero-copy {
    max-width: 820px;
}

.listing-hero h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.listing-hero h2 {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(25, 84, 166, 0.68);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
}

.models-list-section {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 90px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.model-card {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px;
    color: #1954a6;
    text-decoration: none;
    border: 1px solid rgba(25, 84, 166, 0.10);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(25, 84, 166, 0.10),
            rgba(255, 255, 255, 0.92)
        );
    box-shadow: 0 14px 40px rgba(25, 84, 166, 0.07);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.model-card:hover {
    transform: translateY(-3px);
    border-color: rgba(25, 84, 166, 0.20);
    box-shadow: 0 20px 50px rgba(25, 84, 166, 0.11);
}

.model-card-content h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.model-card-content span {
    display: block;
    margin-top: 8px;
    color: rgba(25, 84, 166, 0.60);
    font-size: 13px;
}

.model-card-arrow {
    align-self: flex-start;
    font-size: 20px;
    opacity: 0.65;
}

.listing-empty {
    padding: 70px 25px;
    text-align: center;
    border-radius: 26px;
    background: rgba(25, 84, 166, 0.05);
    border: 1px solid rgba(25, 84, 166, 0.08);
}

.listing-empty h2 {
    margin: 0;
    font-size: 25px;
}

.listing-empty p {
    margin: 10px 0 0;
    color: rgba(25, 84, 166, 0.60);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 45px;
    font-size: 14px;
}

.pagination a {
    color: #1954a6;
    text-decoration: none;
    font-weight: 600;
}

.pagination span {
    color: rgba(25, 84, 166, 0.55);
}

@media (max-width: 1000px) {

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

}

@media (max-width: 760px) {

    .listing-hero {
        width: calc(100% - 24px);
        padding: 42px 0 28px;
    }

    .listing-hero h1 {
        font-size: 34px;
    }

    .listing-hero h2 {
        margin-top: 14px;
        font-size: 15px;
    }

    .models-list-section {
        width: calc(100% - 24px);
        padding-bottom: 60px;
    }

    .models-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .model-card {
        min-height: 125px;
        padding: 20px;
        border-radius: 20px;
    }

}

/* =========================================================
   CATEGORY / LISTING PAGES
   ========================================================= */

.listing-hero {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 42px;
}

.listing-hero-copy {
    max-width: 820px;
}

.listing-hero h1 {
    margin: 0;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.listing-hero h2 {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(25, 84, 166, 0.68);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
}

@media (max-width: 760px) {

    .listing-hero {
        width: calc(100% - 24px);
        padding: 42px 0 28px;
    }

    .listing-hero h1 {
        font-size: 34px;
    }

    .listing-hero h2 {
        margin-top: 14px;
        font-size: 15px;
    }

}

/* =========================================================
   MODELS / ENTITY PAGES
========================================================= */

.entity-list-hero {
    width: min(
        calc(100% - 32px),
        var(--container)
    );

    margin: 0 auto 30px;
}

.entity-list-hero-copy {
    padding: 24px 0 8px;
}

.entity-list-hero-copy h1 {
    margin: 0 0 10px;

    color: var(--text);

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.entity-list-hero-copy h2 {
    max-width: 850px;

    margin: 0;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
}


/* MODEL INDEX */

.entity-grid-section {
    width: min(
        calc(100% - 32px),
        var(--container)
    );

    margin: 0 auto;
}

.entity-grid {
    display: grid;

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

    gap: 18px;
}

.entity-card {
    display: block;

    overflow: hidden;

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

    border-radius: 18px;

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

    box-shadow:
        0 10px 35px
        rgba(25, 84, 166, 0.06);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.entity-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(25, 84, 166, 0.18);

    box-shadow:
        0 18px 45px
        rgba(25, 84, 166, 0.11);
}

.entity-card-content {
    padding: 22px;
}

.entity-card-content h2 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
}

.entity-card-content span {
    color: var(--muted);

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


/* PAGINATION */

.entity-pagination {
    width: min(
        calc(100% - 32px),
        var(--container)
    );

    margin: 34px auto;

    display: flex;

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

    gap: 20px;
}

.entity-pagination a {
    display: inline-flex;

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

    min-height: 40px;

    padding: 0 16px;

    border-radius: 999px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1954a6,
            #397fd5
        );

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

    box-shadow:
        0 8px 22px
        rgba(25, 84, 166, 0.16);
}

.entity-pagination span {
    color: var(--muted);

    font-size: 14px;
}


/* EMPTY STATE */

.empty-state {
    width: min(
        calc(100% - 32px),
        var(--container)
    );

    margin: 50px auto;

    text-align: center;

    color: var(--muted);
}


/* RESPONSIVE */

@media (max-width: 1000px) {

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

}


@media (max-width: 600px) {

    .entity-list-hero {
        margin-bottom: 22px;
    }

    .entity-list-hero-copy {
        padding-top: 16px;
    }

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

    .entity-list-hero-copy h2 {
        font-size: 15px;
    }

    .entity-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .entity-card-content {
        padding: 18px;
    }

    .entity-pagination {
        gap: 12px;
    }

}


/* =========================================================
   TAGS / TAG PAGES
========================================================= */

.tags-index-page,
.tag-detail-page {
    width: 100%;
}


/* =========================================================
   SEARCH PAGE
========================================================= */

.search-page {
    width: 100%;
}

.search-page-header {
    margin-bottom: 28px;
}

.search-page-header h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.search-result-count {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 15px;
}

.search-page .empty-state {
    margin-top: 10px;
}

.search-page .empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
}

@media (max-width: 600px) {

    .search-page-header {
        margin-bottom: 22px;
    }

    .search-page-header h1 {
        font-size: 26px;
    }

}


/* =========================================================
   VIDEO BREADCRUMBS
========================================================= */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.breadcrumbs a {
    color: #1954a6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
    color: #6b7280;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {

    .breadcrumbs {
        margin-bottom: 16px;
        font-size: 13px;
        gap: 6px;
    }

}


/* Header search */
.header-search {
    display: flex;
    align-items: center;
    gap: 7px;

    width: 260px;
    height: 42px;

    padding: 0 7px 0 14px;

    border: 1px solid rgba(25, 84, 166, 0.12);
    border-radius: 22px;

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

    box-shadow: 0 6px 18px rgba(25, 84, 166, 0.08);
}

.header-search[hidden] {
    display: none;
}

.header-search input {
    min-width: 0;
    flex: 1;

    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #111827;
    font: inherit;
    font-size: 14px;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search button {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

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

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--blue);

    cursor: pointer;
}

.header-search button:hover {
    background: rgba(25, 84, 166, 0.07);
}

.header-search button svg {
    width: 17px;
    height: 17px;
}

.header-search button svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.header-search button svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}

@media (max-width: 800px) {
    .header-search {
        position: absolute;

        top: calc(100% + 10px);
        left: 16px;
        right: 16px;

        width: auto;
        z-index: 20;
    }
}
