/* =========================================================
   VALRYN NETWORK
   partnerships.css — CLEAN RESPONSIVE VERSION
   ========================================================= */

:root {
    --vn-bg: #081418;
    --vn-panel: #10242b;
    --vn-panel-light: #18333c;
    --vn-emerald: #17c97b;
    --vn-mint: #6ef3c5;
    --vn-gold: #f6c453;
    --vn-text: #f6fbfc;
    --vn-muted: #9db5be;
    --vn-border: rgba(255, 255, 255, 0.08);
    --vn-radius: 26px;
    --vn-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--vn-bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--vn-text);
    background: var(--vn-bg);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--vn-mint);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.vn-app {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: clip;
    isolation: isolate;
}

.vn-background {
    position: fixed;
    inset: 0;
    z-index: -5;
    background:
        radial-gradient(circle at top, rgba(23, 201, 123, 0.18), transparent 40%),
        linear-gradient(180deg, #081418, #0d1e23, #081418);
}

.vn-grid {
    position: fixed;
    inset: 0;
    z-index: -4;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.vn-particles {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.vn-main {
    width: min(1650px, 95%);
    margin: 0 auto;
    padding: 40px 0 80px;
}

.vn-header {
    width: min(1650px, 95%);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: 18px 28px;
    border: 1px solid var(--vn-border);
    border-radius: 24px;
    background: rgba(16, 36, 43, 0.82);
    box-shadow: var(--vn-shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.vn-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--vn-text);
    text-decoration: none;
}

.vn-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.vn-logo-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 243, 197, 0.35);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(23, 201, 123, 0.25), rgba(110, 243, 197, 0.08));
    color: var(--vn-mint);
    font-family: "Fredoka", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(23, 201, 123, 0.18);
}

.vn-logo strong,
.vn-logo span {
    display: block;
}

.vn-logo strong {
    font-size: 1rem;
    letter-spacing: 0.18em;
}

.vn-logo span {
    margin-top: 2px;
    color: var(--vn-emerald);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.vn-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.vn-nav::-webkit-scrollbar {
    display: none;
}

.vn-nav a {
    flex: 0 0 auto;
    color: var(--vn-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.25s ease;
}

.vn-nav a:hover,
.vn-nav a.active {
    color: var(--vn-text);
}

.vn-nav a:hover {
    transform: translateY(-2px);
}

.vn-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vn-header-actions button {
    min-height: 42px;
    padding: 0 18px;
    color: var(--vn-text);
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 800;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.vn-header-actions button:hover {
    color: #071417;
    background: var(--vn-emerald);
    transform: translateY(-2px);
}

.vn-hero {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    align-items: center;
    gap: clamp(40px, 5vw, 70px);
}

.vn-label {
    margin: 0 0 16px;
    color: var(--vn-emerald);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.vn-hero h1 {
    margin: 0 0 26px;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(4rem, 7vw, 6.5rem);
    line-height: 0.92;
}

.vn-description {
    max-width: 700px;
    margin: 0;
    color: var(--vn-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.vn-search {
    display: flex;
    margin-top: 40px;
    overflow: hidden;
    border: 1px solid var(--vn-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.vn-search input {
    min-width: 0;
    flex: 1;
    padding: 18px 22px;
    color: var(--vn-text);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.95rem;
}

.vn-search input::placeholder {
    color: #86a6a9;
}

.vn-search input:focus {
    box-shadow: inset 0 0 0 2px rgba(110, 243, 197, 0.35);
}

.vn-search button {
    width: 160px;
    min-height: 56px;
    color: #081418;
    border: 0;
    background: linear-gradient(135deg, var(--vn-emerald), var(--vn-mint));
    font-weight: 800;
}

.vn-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.vn-primary,
.vn-secondary {
    min-height: 52px;
    padding: 14px 30px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.vn-primary {
    color: #071417;
    border: 0;
    background: linear-gradient(135deg, var(--vn-emerald), var(--vn-mint));
    box-shadow: 0 14px 32px rgba(23, 201, 123, 0.18);
}

.vn-secondary {
    color: var(--vn-text);
    border: 1px solid var(--vn-border);
    background: rgba(255, 255, 255, 0.05);
}

.vn-primary:hover,
.vn-secondary:hover {
    transform: translateY(-4px);
}

.vn-hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vn-network-globe {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1;
    border: 1px solid rgba(110, 243, 197, 0.22);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 201, 123, 0.18), rgba(16, 36, 43, 0.05));
    animation: vnRotate 36s linear infinite;
}

.vn-network-globe::before,
.vn-network-globe::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.vn-network-globe::before {
    inset: 7%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vn-network-globe::after {
    inset: 15.5%;
    border: 1px solid rgba(23, 201, 123, 0.18);
}

.vn-globe-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(96px, 29%, 150px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    color: #081418;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vn-emerald), var(--vn-mint));
    font-family: "Fredoka", sans-serif;
    font-size: clamp(2.5rem, 9vw, 4rem);
    font-weight: 700;
    box-shadow: 0 0 50px rgba(23, 201, 123, 0.45);
}

.vn-node {
    position: absolute;
    width: clamp(12px, 3.5%, 18px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--vn-mint);
    box-shadow: 0 0 18px rgba(110, 243, 197, 0.9);
}

.n1 { top: 8%; left: 48%; }
.n2 { top: 24%; right: 10%; }
.n3 { top: 48%; right: 3%; }
.n4 { right: 16%; bottom: 18%; }
.n5 { bottom: 6%; left: 48%; }
.n6 { bottom: 18%; left: 14%; }
.n7 { top: 48%; left: 3%; }
.n8 { top: 24%; left: 10%; }

@keyframes vnRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vn-section-header {
    margin-bottom: 40px;
    text-align: center;
}

.vn-section-header h2 {
    margin: 10px 0 0;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.vn-section-header p:last-child {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--vn-muted);
    line-height: 1.8;
}

.vn-categories {
    margin-top: 80px;
}

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

.vn-category-card {
    padding: 36px;
    color: var(--vn-text);
    border: 1px solid var(--vn-border);
    border-radius: 24px;
    background: var(--vn-panel);
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vn-category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(23, 201, 123, 0.45);
    background: var(--vn-panel-light);
    box-shadow: 0 20px 45px rgba(23, 201, 123, 0.12);
}

.vn-category-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(23, 201, 123, 0.12);
    font-size: 2rem;
}

.vn-category-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.vn-category-card span {
    color: var(--vn-muted);
    line-height: 1.7;
}

.vn-featured,
.vn-opportunities,
.vn-global-network {
    margin-top: 100px;
}

.vn-member-grid,
.vn-opportunity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.vn-member-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--vn-border);
    border-radius: 24px;
    background: var(--vn-panel);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vn-member-card:hover {
    transform: translateY(-6px);
    border-color: rgba(23, 201, 123, 0.35);
    background: var(--vn-panel-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.vn-member-logo {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(23, 201, 123, 0.12);
    font-size: 2.3rem;
}

.vn-member-info h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.vn-member-info span {
    color: var(--vn-emerald);
    font-size: 0.82rem;
    font-weight: 700;
}

.vn-member-info p {
    margin: 12px 0 0;
    color: var(--vn-muted);
    line-height: 1.75;
}

.vn-member-card button,
.vn-opportunity-card button {
    min-height: 46px;
    padding: 12px 22px;
    color: #081418;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--vn-emerald), var(--vn-mint));
    font-weight: 800;
}

.vn-opportunity-card {
    padding: 28px;
    border: 1px solid var(--vn-border);
    border-radius: 24px;
    background: var(--vn-panel);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vn-opportunity-card:hover {
    transform: translateY(-8px);
    border-color: rgba(23, 201, 123, 0.35);
    background: var(--vn-panel-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.vn-opportunity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.vn-tag {
    padding: 8px 14px;
    color: var(--vn-emerald);
    border-radius: 999px;
    background: rgba(23, 201, 123, 0.12);
    font-size: 0.72rem;
    font-weight: 800;
}

.vn-location {
    color: var(--vn-muted);
    font-size: 0.78rem;
}

.vn-opportunity-card h3 {
    margin: 0 0 14px;
    font-size: 1.4rem;
}

.vn-opportunity-card p {
    margin: 0 0 26px;
    color: var(--vn-muted);
    line-height: 1.8;
}

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

.vn-network-stat {
    padding: 42px 20px;
    border: 1px solid var(--vn-border);
    border-radius: 24px;
    background: var(--vn-panel);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vn-network-stat:hover {
    transform: translateY(-8px);
    border-color: rgba(23, 201, 123, 0.35);
    background: var(--vn-panel-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.vn-network-stat h3 {
    margin: 0 0 10px;
    color: var(--vn-emerald);
    font-family: "Fredoka", sans-serif;
    font-size: 3rem;
}

.vn-network-stat span {
    color: var(--vn-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.vn-join-network {
    margin: 120px 0 80px;
}

.vn-join-card {
    padding: 80px 60px;
    border: 1px solid rgba(23, 201, 123, 0.25);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(23, 201, 123, 0.12), rgba(110, 243, 197, 0.06));
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.vn-join-card h2 {
    margin: 12px 0 0;
    font-family: "Fredoka", sans-serif;
    font-size: clamp(2.5rem, 4vw, 4.2rem);
}

.vn-join-card p {
    max-width: 760px;
    margin: 24px auto;
    color: var(--vn-muted);
    line-height: 1.9;
}

.vn-join-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 35px;
}

@media (max-width: 1200px) {
    .vn-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 56px;
        padding: 90px 0 40px;
        text-align: center;
    }

    .vn-description {
        margin-inline: auto;
    }

    .vn-search {
        max-width: 720px;
        margin: 40px auto 0;
    }

    .vn-hero-buttons {
        justify-content: center;
    }

    .vn-hero-right {
        width: min(620px, 100%);
        margin-inline: auto;
    }

    .vn-category-grid,
    .vn-member-grid,
    .vn-opportunity-grid,
    .vn-network-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .vn-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vn-logo {
        justify-content: center;
    }

    .vn-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .vn-header-actions {
        width: 100%;
    }

    .vn-header-actions button {
        flex: 1;
    }

    .vn-member-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vn-member-logo {
        margin-inline: auto;
    }

    .vn-member-card button {
        width: 100%;
    }

    .vn-join-buttons {
        flex-direction: column;
    }

    .vn-join-buttons .vn-primary,
    .vn-join-buttons .vn-secondary {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .vn-main {
        width: min(100% - 24px, 1650px);
        padding: 24px 0 54px;
    }

    .vn-header {
        width: min(100% - 24px, 1650px);
        margin-top: max(12px, env(safe-area-inset-top));
        padding: 16px;
        border-radius: 18px;
    }

    .vn-logo {
        justify-content: flex-start;
    }

    .vn-logo img,
    .vn-logo-mark {
        width: 48px;
        height: 48px;
    }

    .vn-logo strong {
        font-size: 0.9rem;
        letter-spacing: 0.13em;
    }

    .vn-logo span {
        font-size: 0.64rem;
        letter-spacing: 0.18em;
    }

    .vn-nav {
        flex-wrap: nowrap;
        gap: 20px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .vn-nav a {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
    }

    .vn-header-actions {
        flex-direction: column;
    }

    .vn-header-actions button {
        width: 100%;
        min-height: 46px;
    }

    .vn-hero {
        gap: 42px;
        padding: 56px 0 30px;
    }

    .vn-hero h1 {
        font-size: clamp(3rem, 16vw, 4rem);
    }

    .vn-description {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .vn-search {
        flex-direction: column;
        border-radius: 16px;
    }

    .vn-search input {
        min-height: 54px;
    }

    .vn-search button {
        width: 100%;
        min-height: 54px;
    }

    .vn-hero-buttons {
        flex-direction: column;
    }

    .vn-primary,
    .vn-secondary {
        width: 100%;
    }

    .vn-network-globe {
        width: min(100%, 430px);
    }

    .vn-categories {
        margin-top: 60px;
    }

    .vn-featured,
    .vn-opportunities,
    .vn-global-network {
        margin-top: 76px;
    }

    .vn-section-header {
        margin-bottom: 28px;
    }

    .vn-category-grid,
    .vn-member-grid,
    .vn-opportunity-grid,
    .vn-network-grid {
        gap: 18px;
    }

    .vn-category-card,
    .vn-member-card,
    .vn-opportunity-card {
        padding: 22px;
        border-radius: 20px;
    }

    .vn-opportunity-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .vn-opportunity-card button {
        width: 100%;
    }

    .vn-network-stat {
        padding: 32px 18px;
        border-radius: 20px;
    }

    .vn-join-network {
        margin: 84px 0 46px;
    }

    .vn-join-card {
        padding: 48px 22px;
        border-radius: 24px;
    }
}

@media (max-width: 390px) {
    .vn-main,
    .vn-header {
        width: min(100% - 18px, 1650px);
    }

    .vn-header {
        padding: 14px;
    }

    .vn-logo strong {
        font-size: 0.82rem;
    }

    .vn-logo span {
        display: none;
    }

    .vn-hero h1 {
        font-size: 2.85rem;
    }

    .vn-label {
        font-size: 0.68rem;
        letter-spacing: 0.22em;
    }

    .vn-category-card,
    .vn-member-card,
    .vn-opportunity-card {
        padding: 20px;
    }

    .vn-join-card {
        padding-inline: 18px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .vn-nav a:hover,
    .vn-header-actions button:hover,
    .vn-primary:hover,
    .vn-secondary:hover,
    .vn-category-card:hover,
    .vn-member-card:hover,
    .vn-opportunity-card:hover,
    .vn-network-stat:hover {
        transform: none;
    }

    .vn-header-actions button,
    .vn-primary,
    .vn-secondary,
    .vn-member-card button,
    .vn-opportunity-card button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
