/* /css/style.css */

:root {
    --nsb-primary: #0f5132;
    --nsb-primary-soft: #e6f2ec;
    --nsb-dark: #111111;
    --nsb-muted: #6c757d;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
    background-color: #f7f7f7;
    color: #212529;
}

/* Topbar */
.topbar {
    background-color: var(--nsb-dark);
    color: #f8f9fa;
    font-size: 0.9rem;
}

.topbar a {
    color: #f8f9fa;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    border-bottom: 2px solid #e5e5e5;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar-brand span {
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: none;
    color: var(--nsb-muted);
    line-height: 1.2;
}

.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--nsb-primary);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%230f5132' class='bi bi-list' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M2.5 12.5A.5.5 0 0 1 3 12h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 8h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 4h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z'/%3e%3c/svg%3e");
}

/* Login-sida */
.login-wrapper {
    min-height: calc(100vh - 60px - 200px); /* minus navbar + footer-ish */
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background:
        radial-gradient(circle at top left, rgba(15,81,50,0.12), transparent 50%),
        radial-gradient(circle at bottom right, rgba(0,0,0,0.06), transparent 55%);
}

.login-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e3e3e3;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.login-badge {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--nsb-muted);
}

.login-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.form-control:focus {
    border-color: var(--nsb-primary);
    box-shadow: 0 0 0 .2rem rgba(15,81,50,0.2);
}

.btn-login {
    background-color: var(--nsb-primary);
    border-color: var(--nsb-primary);
    color: #fff;
}

.btn-login:hover {
    background-color: #0b3b24;
    border-color: #0b3b24;
    color: #fff;
}

.small-link {
    font-size: 0.85rem;
}

/* Footer */
footer {
    background-color: var(--nsb-dark);
    color: #f8f9fa;
    padding-top: 2.5rem;
    margin-top: 2rem;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #ced4da;
}

@media (max-width: 767.98px) {
    .login-wrapper {
        padding: 2rem 0;
    }
}

@media (max-width: 767.98px) {
    .topbar .container {
        flex-direction: column;          /* lägg dom under varandra */
        align-items: stretch;            /* så de får full bredd i containern */
    }

    .topbar .small {
        width: 100%;                     /* full bredd */
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;              /* valfritt, men brukar bli snyggt */
    }
}
 /* Hero */
        .hero {
            background: linear-gradient(135deg, #ffffff 0%, #f2f5f3 40%, var(--nsb-primary-soft) 100%);
            padding: 4rem 0 3rem;
        }

        .hero-badge {
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.15em;
            color: var(--nsb-primary);
            font-weight: 600;
        }

        .hero-title {
            font-size: clamp(2rem, 3vw, 2.75rem);
            font-weight: 700;
        }

        .hero-subtitle {
            font-size: 1.05rem;
            color: var(--nsb-muted);
        }

        .hero-image {
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
        }

        /* Sektionstitlar */
        .section-title {
            font-size: 1.4rem;
            font-weight: 600;
        }

        .section-eyebrow {
            text-transform: uppercase;
            letter-spacing: 0.18em;
            font-size: 0.8rem;
            color: var(--nsb-muted);
        }

        /* Nyhetskort */
        .news-card {
            border-radius: 1rem;
            border: 1px solid #e3e3e3;
            transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
            background-color: #ffffff;
        }

        .news-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
            border-color: var(--nsb-primary-soft);
        }

        .news-meta {
            font-size: 0.8rem;
            color: var(--nsb-muted);
        }

        /* Event-lista */
        .event-item {
            border-left: 3px solid var(--nsb-primary);
            padding-left: 0.75rem;
            margin-bottom: 1rem;
        }

        .event-date {
            font-size: 0.85rem;
            color: var(--nsb-muted);
        }

        /* Medlemsklubbar */
        .club-card {
            border-radius: 0.9rem;
            border: 1px solid #e3e3e3;
            background-color: #ffffff;
            padding: 1.25rem 1rem;
            text-align: center;
            transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
            height: 100%;
        }

        .club-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
            border-color: var(--nsb-primary-soft);
        }

        .club-logo {
            max-height: 60px;
            margin-bottom: 0.75rem;
        }

        /* Info-tiles */
        .info-tile {
            border-radius: 1rem;
            padding: 1.5rem;
            background-color: #ffffff;
            border: 1px solid #e3e3e3;
            height: 100%;
        }

        .info-tile-icon {
            width: 40px;
            height: 40px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.75rem;
            background-color: var(--nsb-primary-soft);
            color: var(--nsb-primary);
        }
.article-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e3e3e3;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 1.5rem 1.75rem;
}
@media (max-width: 767.98px) {
    .article-card {
        padding: 1.25rem 1rem;
    }
}
  .section-eyebrow {
        text-transform: uppercase;
        letter-spacing: .18em;
        font-size: .75rem;
        color: #6c757d;
    }
    .news-meta {
        font-size: 0.85rem;
        color: #6c757d;
    }
    .news-meta i {
        color: #0f5132;
    }
    .article-hero {
        border-radius: 1.25rem;
        overflow: hidden;
        margin-bottom: 1.25rem;
    }
    .article-hero img {
        width: 100%;
        display: block;
    }
    .article-body h2 {
        font-size: 1.1rem;
        margin-top: 1.35rem;
        margin-bottom: 0.4rem;
    }
    .article-body p {
        font-size: 0.96rem;
        line-height: 1.7;
    }
    .article-body ul {
        font-size: 0.96rem;
    }
    .article-body blockquote {
        border-left: 3px solid #0f5132;
        padding-left: .75rem;
        margin-left: 0;
        font-size: 0.95rem;
        font-style: italic;
        color: #6c757d;
    }
    .sidebar-card {
        background-color: #ffffff;
        border-radius: 1.25rem;
        border: 1px solid #e3e3e3;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }
    .sidebar-card .list-group-item {
        border: 0;
        border-bottom: 1px solid #f1f1f1;
        font-size: 0.9rem;
    }
    .sidebar-card .list-group-item:last-child {
        border-bottom: 0;
    }

.news-nav {
    margin-top: 1.75rem;
}

.news-nav a {
    text-decoration: none;
    color: inherit;
}

.news-nav-card {
    background-color: #ffffff;
    border-radius: 999px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    padding: 0.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    transition: transform .12s ease, box-shadow .12s ease;
}

.news-nav-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.news-nav-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.news-nav-title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 0.1rem;
}
    /* Styrelsesida-specifik styling */
    .section-eyebrow {
        text-transform: uppercase;
        letter-spacing: .18em;
        font-size: .75rem;
        color: var(--nsb-muted, #6c757d);
    }

    .section-title {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .board-card {
        border-radius: 1rem;
        border: 1px solid #e3e3e3;
        background-color: #ffffff;
        box-shadow: 0 10px 26px rgba(0,0,0,0.04);
        transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
        height: 100%;
    }

    .board-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.08);
        border-color: var(--nsb-primary-soft, #e6f2ec);
    }

    /* Stående (portrait) profilbilder */
    .board-card .ratio-3x4 img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .board-role {
        font-size: .85rem;
        font-weight: 500;
        color: var(--nsb-primary, #0f5132);
    }

    .board-club,
    .board-contact {
        font-size: .85rem;
        color: var(--nsb-muted, #6c757d);
    }

    .board-bio {
        font-size: .9rem;
    }

    .board-avatar-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f5f5f5, #e9ecef);
        color: #adb5bd;
        font-size: 2.2rem;
        font-weight: 600;
    }

    .section-eyebrow {
        text-transform: uppercase;
        letter-spacing: .18em;
        font-size: .8rem;
        color: var(--nsb-muted, #6c757d);
    }
    .section-title {
        font-size: 1.8rem;
        font-weight: 600;
    }
    .page-wrapper {
        background-color: #ffffff;
        border-radius: 1.25rem;
        border: 1px solid #e3e3e3;
        box-shadow: 0 10px 25px rgba(0,0,0,0.04);
        padding: 1.75rem 1.75rem 2rem;
    }
    .page-content {
        font-size: 0.97rem;
    }
    .page-content img {
        max-width: 100%;
        height: auto;
    }

.section-eyebrow {
        text-transform: uppercase;
        letter-spacing: .18em;
        font-size: .8rem;
        color: var(--nsb-muted, #6c757d);
    }
    .section-title {
        font-size: 1.9rem;
        font-weight: 600;
    }

    .board-grid-row {
        row-gap: 1.5rem;
    }

    .board-col {
        display: flex;
        justify-content: center;
    }

    .board-card {
        border-radius: 1rem;
        border: 1px solid #e3e3e3;
        background-color: #ffffff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.04);
        max-width: 300px;
        width: 100%;
        overflow: hidden;
    }

    .board-photo-wrapper {
        position: relative;
        width: 100%;
    }

    /* stående ratio 3x4 */
    .board-photo-ratio {
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }

    .board-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .board-card-body {
        padding: 0.9rem 1.2rem 1.1rem;
    }

    .board-name {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.1rem;
    }

    .board-role {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--nsb-primary, #0f5132);
        margin-bottom: 0.25rem;
    }

    .board-club {
        font-size: 0.85rem;
        color: var(--nsb-muted, #6c757d);
        margin-bottom: 0.35rem;
    }

    .board-bio {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .board-contact a {
        font-size: 0.85rem;
        text-decoration: none;
    }

    .board-contact a:hover {
        text-decoration: underline;
    }

    @media (max-width: 575.98px) {
        .board-card-body {
            padding: 0.8rem 1rem 1rem;
        }
    }


        .nsb-cookie-backdrop {
            position: fixed;
            inset: 0;
            z-index: 9998;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(8px);
        }
        .nsb-cookie-modal {
            position: fixed;
            z-index: 9999;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .nsb-cookie-dialog {
            pointer-events: auto;
            max-width: 760px;
            width: 100%;
            margin: 24px;
            border-radius: 18px;
            background: radial-gradient(circle at top left, rgba(148,163,184,0.16), transparent 55%), #020617;
            color: #e5e7eb;
            box-shadow:
                0 24px 60px rgba(15,23,42,0.95),
                0 0 0 1px rgba(15,23,42,0.9);
            padding: 20px 22px 18px;
            font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }
        .nsb-cookie-header-eyebrow {
            font-size: 0.7rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: #9ca3af;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
        }
        .nsb-cookie-shield {
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: radial-gradient(circle at 30% 20%, #fefce8, #facc15);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            color: #111827;
        }
        .nsb-cookie-title {
            font-size: 1.35rem;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .nsb-cookie-lead {
            font-size: 0.92rem;
            color: #e5e7eb;
            margin-bottom: 14px;
        }
        .nsb-cookie-lead strong {
            font-weight: 600;
        }
        .nsb-cookie-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }
        .nsb-cookie-card {
            border-radius: 14px;
            border: 1px solid rgba(55,65,81,0.9);
            background: radial-gradient(circle at top left, rgba(15,23,42,0.8), rgba(15,23,42,0.95));
            padding: 12px 12px 10px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .nsb-cookie-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }
        .nsb-cookie-card-title {
            font-size: 0.9rem;
            font-weight: 600;
        }
        .nsb-cookie-pill {
            font-size: 0.7rem;
            border-radius: 999px;
            padding: 2px 7px;
            border: 1px solid rgba(148,163,184,0.8);
            color: #e5e7eb;
            white-space: nowrap;
        }
        .nsb-cookie-card-text {
            font-size: 0.78rem;
            color: #9ca3af;
        }

        /* Toggle */
        .nsb-toggle {
            position: relative;
            width: 42px;
            height: 22px;
            border-radius: 999px;
            background: #111827;
            border: 1px solid #4b5563;
            cursor: pointer;
            flex-shrink: 0;
        }
        .nsb-toggle-knob {
            position: absolute;
            top: 1px;
            left: 1px;
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: #e5e7eb;
            box-shadow: 0 0 0 1px rgba(15,23,42,0.4),
                        0 4px 8px rgba(15,23,42,0.7);
            transition: transform 0.18s ease, background 0.18s ease;
        }
        .nsb-toggle-label {
            font-size: 0.75rem;
            color: #e5e7eb;
        }
        .nsb-toggle-input {
            display: none;
        }
        .nsb-toggle[data-state="on"] {
            background: linear-gradient(135deg, #f97316, #facc15);
            border-color: #facc15;
        }
        .nsb-toggle[data-state="on"] .nsb-toggle-knob {
            transform: translateX(18px);
            background: #111827;
        }

        .nsb-cookie-footer {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            border-top: 1px solid rgba(55,65,81,0.9);
            padding-top: 10px;
        }
        .nsb-cookie-more {
            font-size: 0.78rem;
            color: #9ca3af;
        }
        .nsb-cookie-more a {
            color: #e5e7eb;
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 2px;
        }
        .nsb-cookie-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .nsb-cookie-btn {
            border-radius: 999px;
            border: none;
            padding: 0.4rem 1.1rem;
            font-size: 0.83rem;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.25rem;
            white-space: nowrap;
        }
        .nsb-cookie-btn-secondary {
            background: transparent;
            border: 1px solid rgba(148,163,184,0.8);
            color: #e5e7eb;
        }
        .nsb-cookie-btn-primary {
            background: linear-gradient(135deg, #f97316, #facc15);
            color: #111827;
            border: none;
        }

        /* Liten diskret knapp nere till vänster */
        .nsb-cookie-settings-btn {
            position: fixed;
            right: 16px;
            bottom: 16px;
            z-index: 9997;
            background: #020617;
            color: #e5e7eb;
            border-radius: 999px;
            padding: 5px 12px 5px 10px;
            font-size: 0.8rem;
            font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 8px 20px rgba(15,23,42,0.7);
            border: 1px solid rgba(55,65,81,0.9);
            cursor: pointer;
        }
        .nsb-cookie-settings-icon {
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: radial-gradient(circle at 30% 20%, #fefce8, #facc15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            color: #111827;
        }

        @media (max-width: 680px) {
            .nsb-cookie-dialog {
                padding: 16px 14px 14px;
                border-radius: 16px;
            }
            .nsb-cookie-grid {
                grid-template-columns: 1fr;
            }
            .nsb-cookie-footer {
                flex-direction: column;
                align-items: stretch;
            }
            .nsb-cookie-actions {
                width: 100%;
            }
            .nsb-cookie-btn {
                flex: 1 1 auto;
            }
        }
