/* Nonviolence Academy Custom Theme CSS */
:root {
    --nv-primary: #a41e26;
    --nv-primary-dark: #7f161c;
    --nv-navy: #1b2b44;
    --nv-muted: #5c667b;
    --nv-bg: #f6f7fb;
    --nv-card: #ffffff;
    --nv-border: #e5e7ef;
    --nv-shadow: 0 12px 30px rgba(27, 43, 68, 0.08);
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--nv-navy);
    background: var(--nv-bg);
    padding-top: 96px;
}

a {
    color: var(--nv-primary);
}

a:hover,
a:focus {
    color: var(--nv-primary-dark);
    text-decoration: none;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nv-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.nv-navbar {
    background: #fff;
    border-bottom: 1px solid var(--nv-border);
    box-shadow: 0 4px 14px rgba(27, 43, 68, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

.nv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 82px;
    flex-wrap: nowrap;
}

.nv-brand {
    display: flex;
    align-items: center;
}

.nv-logo {
    height: 50px;
    width: auto;
    display: block;
}

.nv-nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0 12px;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.nv-nav-menu a {
    color: var(--nv-navy);
    font-size: 17px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nv-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--nv-primary);
    opacity: 0;
    transform: scaleX(0.8);
    transition: all 0.2s ease;
}

.nv-nav-menu a:hover::after,
.nv-nav-menu a:focus::after {
    opacity: 1;
    transform: scaleX(1);
}

.nv-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.nv-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--nv-border);
    border-radius: 999px;
    padding: 6px 14px;
    gap: 8px;
    background: #fff;
}

.nv-search input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    width: 170px;
}

.nv-search i {
    color: var(--nv-muted);
}

.nv-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nv-btn-primary {
    background: var(--nv-primary);
    border: 1px solid var(--nv-primary);
    color: #fff !important;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(164, 30, 38, 0.22);
}

.nv-btn-primary:hover,
.nv-btn-primary:focus {
    background: var(--nv-primary-dark);
    border-color: var(--nv-primary-dark);
}

.nv-btn-outlined {
    background: transparent;
    border: 1px solid var(--nv-primary);
    color: var(--nv-primary) !important;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nv-btn-outlined:hover,
.nv-btn-outlined:focus {
    background: rgba(164, 30, 38, 0.08);
}

.hero-section {
    padding: 0;
}

.hero-banner-image {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--nv-border);
}

.hero-overview {
    background: linear-gradient(180deg, #fff 0%, rgba(246, 247, 251, 0.8) 100%);
    padding: 56px 0;
}

.hero-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-copy h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--nv-navy);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.hero-copy .lead {
    font-size: 1.15rem;
    color: var(--nv-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 20px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 12px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--nv-border);
    color: var(--nv-navy);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(27, 43, 68, 0.05);
}

.highlight i {
    color: var(--nv-primary);
    font-size: 1.25rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.hero-link {
    font-weight: 700;
    color: var(--nv-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-link:hover {
    color: var(--nv-primary);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    box-shadow: var(--nv-shadow);
}

.hero-card {
    position: relative;
    top: auto;
    right: auto;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    max-width: 280px;
    border: 1px solid var(--nv-border);
    box-shadow: 0 16px 36px rgba(27, 43, 68, 0.12);
}

.hero-card h5 {
    margin: 0 0 6px;
    color: var(--nv-navy);
    font-weight: 700;
}

.hero-card p {
    margin: 0;
    color: var(--nv-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.features-section {
    padding: 70px 0 54px;
    background: #fff;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 36px;
}

.section-heading h2 {
    color: var(--nv-navy);
    font-weight: 800;
    letter-spacing: -0.4px;
}

.section-heading .muted {
    color: var(--nv-muted);
    margin: 0 auto;
    max-width: 620px;
}

.feature-col {
    display: flex;
}

.features-grid .feature-col {
    flex: 1 1 22%;
    min-width: 220px;
}

.feature-box {
    background: var(--nv-card);
    border: 1px solid var(--nv-border);
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 12px 26px rgba(27, 43, 68, 0.08);
    width: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(27, 43, 68, 0.12);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(164, 30, 38, 0.12);
    color: var(--nv-primary);
    font-size: 1.1rem;
}

.feature-box h5 {
    color: var(--nv-navy);
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--nv-muted);
    margin: 0;
    line-height: 1.5;
}

.popular-courses {
    padding: 68px 0;
    background: var(--nv-bg);
}

.course-grid {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.course-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--nv-border);
    box-shadow: 0 10px 26px rgba(27, 43, 68, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 320px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card--link:hover,
.course-card--link:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(27, 43, 68, 0.14);
    border-color: rgba(164, 30, 38, 0.25);
}

.course-card__media img {
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.course-card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-card__meta {
    font-size: 0.82rem;
    color: var(--nv-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.course-card__body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--nv-navy);
    line-height: 1.35;
}

.course-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--nv-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--nv-border);
}

.course-card__footer i {
    color: var(--nv-primary);
    margin-right: 6px;
}

.nv-footer {
    background: #fff;
    color: var(--nv-muted);
    font-size: 15px;
    border-top: 1px solid var(--nv-border);
    padding: 44px 0 26px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.nv-footer .footer-column {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 220px;
}

.nv-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nv-footer .footer-links li {
    margin-bottom: 6px;
}

.nv-footer h4 {
    color: var(--nv-primary);
    font-weight: 800;
    margin-bottom: 14px;
}

.nv-footer a {
    color: var(--nv-muted);
    text-decoration: none;
}

.nv-footer a:hover {
    color: var(--nv-primary);
}

.nv-footer address {
    font-style: normal;
    color: var(--nv-muted);
    line-height: 1.6;
}

.nv-footer .social-icons a {
    margin-right: 12px;
    color: var(--nv-muted);
    font-size: 1.1rem;
}

.nv-footer .social-icons a:hover {
    color: var(--nv-primary);
}

@media (max-width: 992px) {
    body {
        padding-top: 140px;
    }
    .nv-nav {
        flex-wrap: wrap;
    }
    .nv-actions {
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .nv-nav-menu {
        justify-content: flex-start;
        flex: 1 1 100%;
        padding: 0;
    }
    .nv-search input {
        width: 140px;
    }
    .hero-row {
        flex-direction: column-reverse;
        gap: 32px;
    }
    .hero-card {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 14px;
    }
    .features-grid .feature-col {
        flex: 0 0 50%;
    }
    .footer-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nv-nav-menu {
        gap: 16px;
        justify-content: center;
    }
    .nv-search {
        width: 100%;
        order: 3;
    }.nv-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-copy h1 {
        font-size: 2.2rem;
    }
    .hero-highlights {
        grid-template-columns: 1fr;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }
    .feature-box {
        text-align: left;
    }
    .features-grid .feature-col {
        flex: 0 0 100%;
    }
    .footer-grid {
        flex-direction: column;
    }
}

/* Responsive refinements for navbar + footer */
@media (max-width: 992px) {
    .nv-nav {
        padding: 8px 0;
        min-height: auto;
        flex-wrap: wrap;
    }
    .nv-nav-menu {
        flex-wrap: wrap;
        gap: 18px;
    }
    .nv-actions {
        width: 100%;
        justify-content: center;
    }
    .nv-auth {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 160px;
    }
    .nv-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .nv-brand {
        justify-content: center;
    }
    .nv-nav-menu {
        justify-content: center;
        padding: 0;
        gap: 12px;
    }
    .nv-actions {
        width: 100%;
        align-items: stretch;
    }
    .nv-search {
        width: 100%;
    }
    .nv-search input {
        width: 100%;
    }
    .nv-auth {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .nv-auth .btn {
        width: 100%;
        text-align: center;
    }.nv-lang-toggle {
        width: 100%;
        justify-content: center;
    }.footer-grid {
        gap: 18px;
    }
    .nv-footer .footer-column {
        align-items: flex-start;
    }
}

/* Navbar v2 (Bootstrap-like) */
.nv-brand-link {
    display: inline-flex;
    align-items: center;
}

.nv-nav {
    min-height: 52px;
    gap: 14px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.nv-brand {
    flex: 0 0 auto;
}

.nv-logo {
    height: 34px;
}

.nv-nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nv-nav-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    border: 1px solid var(--nv-border);
    border-radius: 6px;
    background: #fff;
    margin-left: auto;
}

.nv-toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--nv-navy);
    margin: 3px 0;
    border-radius: 2px;
}

.nv-nav-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 16px;
}

.nv-nav-menu {
    flex: 0 0 auto;
    gap: 18px;
    font-size: 0.95rem;
}

.nv-nav-menu a {
    text-decoration: none;
    border-bottom: none;
}

.nv-nav-menu a:hover,
.nv-nav-menu a:focus {
    text-decoration: none;
    border-bottom: none;
}

.nv-nav-menu a:focus {
    outline: 2px solid rgba(164, 30, 38, 0.25);
    outline-offset: 2px;
}

.nv-actions {
    gap: 12px;
}

.nv-search input {
    width: 150px;
}

/* Collapse behavior */
@media (max-width: 992px) {
    body {
        padding-top: 112px;
    }
    .nv-nav {
        flex-wrap: wrap;
    }
    .nv-brand {
        order: 1;
        justify-content: flex-start;
    }
    .nv-nav-toggler {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }
    .nv-nav-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px 0 12px;
        border-top: 1px solid var(--nv-border);
        order: 3;
        flex-basis: 100%;
    }
    .nv-nav-toggle:checked ~ .nv-nav-collapse {
        display: flex;
    }
    .nv-nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
    }
    .nv-nav-menu li {
        width: 100%;
    }
    .nv-nav-menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 6px 0;
    }
    .nv-actions {
        width: 100%;
        align-items: stretch;
    }
}

/* Mobile polish */
@media (max-width: 768px) {
    body {
        padding-top: 116px;
    }
    .nv-nav {
        flex-direction: row;
        align-items: center;
    }
    .nv-brand {
        justify-content: flex-start;
    }
    .nv-search,
    .nv-language,
    .nv-auth {
        width: 100%;
    }
    .nv-auth .btn {
        width: 100%;
        text-align: center;
    }.nv-lang-menu {
        left: 0;
        right: 0;
    }
}

/* Navbar refinements: language button + hamburger */.nv-lang-toggle:hover,.nv-toggler-bar {
    background: var(--nv-primary);
}

.nv-nav-toggler:hover,
.nv-nav-toggler:focus-visible {
    border-color: rgba(164, 30, 38, 0.35);
    box-shadow: 0 4px 10px rgba(27, 43, 68, 0.08);
}

.nv-nav-toggler:hover .nv-toggler-bar,
.nv-nav-toggler:focus-visible .nv-toggler-bar {
    background: var(--nv-primary-dark);
}

/* Disable hover effects for language selector */
.nv-lang-toggle:hover,.nv-lang-option:hover,.nv-lang-option:hover .lang-icon,/* Language button: icon-only, no color fill */.nv-lang-toggle:hover,/* Mobile drawer navigation (LMS only) */
.nv-drawer-header {
    display: none;
}

@media (max-width: 992px) {
    .nv-drawer-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }

    .nv-drawer-logo {
        height: 28px;
        width: auto;
    }

    .nv-drawer-brand {
        font-size: 1rem;
        font-weight: 700;
        color: var(--nv-navy);
    }

    .nv-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1090;
    }

    .nv-nav-collapse {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(82vw, 320px);
        background: #fff;
        border-right: 1px solid var(--nv-border);
        box-shadow: 0 12px 30px rgba(27, 43, 68, 0.18);
        padding: 72px 16px 18px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1100;
    }

    .nv-nav-toggle:checked ~ .nv-nav-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nv-nav-toggle:checked ~ .nv-nav-collapse {
        transform: translateX(0);
    }

    .nv-nav-menu {
        align-items: flex-start;
    }

    .nv-nav-menu li,
    .nv-actions {
        width: 100%;
    }

    .nv-nav-menu a {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        padding: 8px 6px;
    }

    .nv-actions {
        align-items: stretch;
        gap: 10px;
    }

    .nv-search input {
        font-size: 1rem;
    }

    .nv-language,.nv-lang-menu {
        left: 0;
        right: 0;
        min-width: unset;
    }
}

/* Drawer search sizing fix */
@media (max-width: 992px) {
    .nv-nav-collapse {
        overflow-y: auto;
    }
    .nv-search {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .nv-search input {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        box-sizing: border-box;
    }
}

/* Drawer layout fixes: keep inputs inside */
@media (max-width: 992px) {
    .nv-nav-collapse {
        box-sizing: border-box;
    }

    .nv-nav-collapse * {
        box-sizing: border-box;
    }

    .nv-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nv-search,
    .nv-auth,.nv-search {
        overflow: hidden;
    }

    .nv-search input {
        width: 100%;
        min-width: 0;
    }}

/* Clamp search width inside drawer */
@media (max-width: 992px) {
    .nv-nav-collapse .nv-actions .nv-search {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: stretch;
        overflow: hidden;
    }

    .nv-nav-collapse .nv-actions .nv-search input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
}

/* Drawer search: prevent overflow from icon+gap */
@media (max-width: 992px) {
    .nv-nav-collapse .nv-search {
        width: 100%;
    }
    .nv-nav-collapse .nv-search input {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* Drawer search overflow fix (flex-based) */
@media (max-width: 992px) {
    .nv-nav-collapse .nv-search {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .nv-nav-collapse .nv-search input {
        width: 0;
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* Mobile nav + drawer fixes */
.nv-nav-toggler {
    flex-direction: column;
    gap: 4px;
}

.nv-toggler-bar {
    margin: 0;
}

@media (max-width: 992px) {
    .nv-nav {
        min-height: 52px;
        padding: 0;
    }

    .nv-nav-collapse {
        padding: 60px 16px 16px;
    }

    .nv-drawer-header {
        border-bottom: 1px solid var(--nv-border);
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .nv-nav-menu {
        border-bottom: 1px solid var(--nv-border);
        padding: 0 0 12px;
        margin-bottom: 12px;
    }
}

/* Match mobile navbar height to desktop */
@media (max-width: 992px) {
    .nv-navbar,
    .nv-nav {
        height: 52px;
        min-height: 52px;
    }
}

/* Center footer content on mobile only */
@media (max-width: 768px) {
    .nv-footer {
        text-align: center;
    }

    .nv-footer .footer-grid {
        align-items: center;
    }

    .nv-footer .footer-column {
        align-items: center;
    }

    .nv-footer .footer-links {
        align-items: center;
    }

    .nv-footer address {
        text-align: center;
    }

    .nv-footer .social-icons {
        justify-content: center;
    }
}

/* Courses page */
.nv-page-hero {
    background: #fff;
    border-bottom: 1px solid var(--nv-border);
    padding: 48px 0 36px;
}

.nv-page-hero h1 {
    color: var(--nv-navy);
    font-size: 2.4rem;
    font-weight: 800;
    margin: 6px 0 10px;
}

.nv-page-hero .lead {
    color: var(--nv-muted);
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.nv-courses-section {
    padding: 36px 0 64px;
}

.nv-courses-section .courses-container {
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 16px;
    box-shadow: var(--nv-shadow);
    padding: 24px;
}

@media (max-width: 768px) {
    .nv-page-hero {
        padding: 32px 0 24px;
    }

    .nv-page-hero h1 {
        font-size: 1.9rem;
    }

    .nv-courses-section .courses-container {
        padding: 18px;
    }
}

/* Courses hero refinements */
.nv-courses-hero {
    text-align: center;
}

.nv-courses-hero .eyebrow {
    margin-bottom: 6px;
}

.nv-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--nv-muted);
    margin-bottom: 14px;
}

.nv-breadcrumbs a {
    color: var(--nv-muted);
    text-decoration: none;
}

.nv-breadcrumbs a:hover,
.nv-breadcrumbs a:focus {
    color: var(--nv-primary);
}

.nv-courses-hero .nv-breadcrumbs {
    margin: 6px 0 14px;
}

.nv-courses-hero .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* About page */
.nv-about-hero {
    text-align: center;
}

.nv-about-hero .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 760px;
}

.nv-about-banner {
    padding: 10px 0 40px;
}

.nv-about-banner__image {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--nv-shadow);
}

.nv-about-grid {
    padding: 20px 0 20px;
}

.nv-about-grid .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.nv-about-card {
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--nv-shadow);
}

.nv-about-card h3 {
    color: var(--nv-primary);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.nv-about-card h4 {
    font-size: 1.2rem;
    color: var(--nv-navy);
    margin: 0 0 10px;
}

.nv-about-card p {
    color: var(--nv-muted);
    line-height: 1.7;
    margin: 0;
}

.nv-about-pillars {
    padding: 10px 0 40px;
}

.nv-about-pillars__image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--nv-border);
    background: #fff;
}

.nv-about-cta {
    padding: 10px 0 60px;
    text-align: center;
}

.nv-about-cta a {
    color: var(--nv-primary);
    font-weight: 700;
    text-decoration: none;
}

.nv-about-cta a:hover,
.nv-about-cta a:focus {
    color: var(--nv-primary-dark);
}

@media (max-width: 992px) {
    .nv-about-grid .container {
        grid-template-columns: 1fr;
    }
}

/* Contact page */
.nv-contact-hero {
    text-align: center;
}

.nv-contact-hero .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 720px;
}

.nv-contact-section {
    padding: 30px 0 70px;
}

.nv-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.nv-contact-info h2 {
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--nv-navy);
}

.nv-contact-info .muted {
    color: var(--nv-muted);
    margin-bottom: 20px;
}

.nv-contact-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--nv-shadow);
    margin-bottom: 14px;
}

.nv-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(164, 30, 38, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nv-primary);
    font-size: 1.1rem;
}

.nv-contact-card h4 {
    margin: 0 0 6px;
    color: var(--nv-navy);
}

.nv-contact-card p {
    margin: 0;
    color: var(--nv-muted);
    line-height: 1.6;
}

.nv-contact-form {
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--nv-shadow);
}

.nv-contact-form h3 {
    margin: 0 0 6px;
    color: var(--nv-navy);
}

.nv-contact-form p {
    color: var(--nv-muted);
    margin-bottom: 18px;
}

.nv-contact-form label {
    display: block;
    font-weight: 600;
    color: var(--nv-navy);
    margin-bottom: 10px;
}

.nv-contact-form input,
.nv-contact-form textarea {
    width: 100%;
    border: 1px solid var(--nv-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: 0.95rem;
}

.nv-contact-form button {
    margin-top: 6px;
}

@media (max-width: 992px) {
    .nv-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Privacy page */
.nv-privacy-hero {
    text-align: center;
}

.nv-privacy-hero .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 760px;
}

.nv-privacy-body {
    padding: 24px 0 70px;
}

.nv-privacy-card {
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--nv-shadow);
}

.nv-privacy-card h2 {
    margin-top: 22px;
    color: var(--nv-navy);
}

.nv-privacy-card h3 {
    margin-top: 16px;
    color: var(--nv-navy);
    font-size: 1.05rem;
}

.nv-privacy-card p,
.nv-privacy-card li {
    color: var(--nv-muted);
    line-height: 1.7;
}

.nv-privacy-card ul {
    padding-left: 18px;
}

@media (max-width: 768px) {
    .nv-privacy-card {
        padding: 18px;
    }
}

/* Terms page */
.nv-terms-hero {
    text-align: center;
}

.nv-terms-hero .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 760px;
}

.nv-terms-body {
    padding: 24px 0 70px;
}

.nv-terms-card {
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--nv-shadow);
}

.nv-terms-card h2 {
    margin-top: 22px;
    color: var(--nv-navy);
}

.nv-terms-card p {
    color: var(--nv-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .nv-terms-card {
        padding: 18px;
    }
}

/* Language dropdown: align under icon, easier hover */.nv-lang-option {
    padding: 10px 12px;
}

.nv-lang-option:hover,/* Footer: reduce vertical spacing on mobile */
@media (max-width: 768px) {
    .nv-footer {
        padding: 28px 0 18px;
    }

    .nv-footer .footer-column {
        margin-bottom: 16px;
    }

    .nv-footer h4 {
        margin-bottom: 8px;
    }

    .nv-footer .footer-links li {
        margin-bottom: 4px;
    }
}

/* Language dropdown: remove dark hover */
.nv-lang-toggle:hover,.nv-lang-option:hover,/* Language dropdown: compact flags + no dark hover */
.nv-lang-toggle:hover,.nv-lang-menu {
    min-width: 64px;
    width: auto;
    padding: 6px;
}.nv-lang-option:hover,/* Footer: flexible columns, wrap only when needed */
.nv-footer .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nv-footer .footer-column {
    flex: 1 1 250px;
    max-width: 100%;
}

/* Footer layout refresh: modern, left-aligned, responsive wrap */
.nv-footer .footer-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: clamp(16px, 3vw, 32px);
    align-items: flex-start;
    justify-content: space-between;
}

.nv-footer .footer-column {
    flex: 1 1 260px;
    max-width: 360px;
    align-items: flex-start;
    text-align: left;
}

.nv-footer h4 {
    margin-bottom: 8px;
}

.nv-footer .footer-links li {
    margin-bottom: 4px;
}

.nv-footer .social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .nv-footer {
        text-align: left;
    }

    .nv-footer .footer-grid {
        flex-direction: row;
        gap: 20px;
    }

    .nv-footer .footer-column {
        max-width: none;
        margin-bottom: 8px;
    }
}

/* Ashoka-style footer */
.nv-footer.nv-footer-dark {
    background: #45121a;
    color: #fff;
    border-top: none;
    position: relative;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 25% 100%;
}

.nv-footer.nv-footer-dark a {
    color: #fff;
    opacity: 0.9;
}

.nv-footer.nv-footer-dark a:hover {
    opacity: 1;
}

.nv-footer-dark .nv-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 52px 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nv-footer-dark .nv-footer-logo {
    width: 120px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.nv-footer-dark .nv-footer-address {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 16px;
}

.nv-footer-dark h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nv-footer-dark .nv-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nv-footer-dark .nv-footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.nv-footer-bullet {
    width: 6px;
    height: 6px;
    background: #e3002f;
    border-radius: 1px;
    margin-top: 7px;
    flex: 0 0 auto;
}

.nv-footer-dark .nv-footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nv-footer-dark .nv-footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.nv-footer-dark .nv-app-badge img {
    width: 180px;
    height: auto;
    display: block;
}

.nv-footer-dark .nv-footer-bottom {
    text-align: center;
    padding: 18px 0 24px;
    color: rgba(255, 255, 255, 0.8);
}

.nv-footer-dark .nv-footer-bottom a {
    color: #fff;
}

/* Responsive footer grid */
@media (max-width: 1100px) {
    .nv-footer-dark .nv-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nv-footer-dark .nv-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nv-footer.nv-footer-dark {
        background-size: 100% 100%;
    }
}

/* Footer light theme override (matches navbar + theme colors) */
.nv-footer.nv-footer-dark {
    background: var(--nv-bg);
    color: var(--nv-navy);
    border-top: 1px solid var(--nv-border);
    background-image: none;
}

.nv-footer.nv-footer-dark a {
    color: var(--nv-navy);
    opacity: 1;
}

.nv-footer.nv-footer-dark a:hover {
    color: var(--nv-primary);
}

.nv-footer-dark .nv-footer-address {
    color: var(--nv-muted);
}

.nv-footer-dark h4 {
    color: var(--nv-primary);
    border-bottom: 1px solid var(--nv-border);
}

.nv-footer-bullet {
    background: var(--nv-primary);
}

.nv-footer-dark .nv-footer-social a {
    background: #fff;
    border: 1px solid var(--nv-border);
    color: var(--nv-navy);
}

.nv-footer-dark .nv-footer-social a:hover {
    color: var(--nv-primary);
}

.nv-footer-dark .nv-footer-bottom {
    color: var(--nv-muted);
}

/* Mobile address alignment fix */
@media (max-width: 640px) {
    .nv-footer-dark .nv-footer-address {
        text-align: left;
    }
}

/* Mobile breathing room: keep content away from edges */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nv-courses-section .courses-container,
    .nv-privacy-card,
    .nv-terms-card,
    .nv-contact-form,
    .nv-contact-card,
    .nv-about-grid,
    .nv-about-pillars,
    .nv-about-cards,
    .nv-about-card {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Popular courses: simpler, cleaner card */
.popular-courses {
    padding: 72px 0;
}

.course-grid {
    gap: 22px;
}

.course-card {
    border-radius: 16px;
    border: 1px solid var(--nv-border);
    box-shadow: 0 8px 18px rgba(27, 43, 68, 0.08);
    max-width: 320px;
}

.course-card__media img {
    height: 190px;
    border-bottom: 1px solid var(--nv-border);
}

.course-card__body {
    padding: 16px 18px 18px;
    gap: 10px;
}

.course-card__meta {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--nv-muted);
}

.course-card__body h3 {
    font-size: 1.05rem;
    line-height: 1.4;
}

.course-card__body p {
    color: var(--nv-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.course-card__footer {
    border-top: 1px solid var(--nv-border);
    padding-top: 10px;
    font-size: 0.9rem;
    color: var(--nv-primary);
}

.course-card__footer i {
    color: var(--nv-primary);
}

.course-card--link:hover,
.course-card--link:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(27, 43, 68, 0.12);
    border-color: rgba(164, 30, 38, 0.25);
}

/* Remove empty marketing hero gap on mobile */
@media (max-width: 768px) {
    .marketing-hero {
        display: none;
    }
}

/* Hero alignment + full-height image */
.hero-row {
    align-items: stretch;
}

.hero-copy .eyebrow {
    text-align: center;
    width: 100%;
}

.hero-ctas {
    justify-content: center;
}

.hero-visual {
    display: flex;
    align-items: stretch;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile grids: keep 2x2 */
@media (max-width: 768px) {
    .hero-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features-grid .feature-col {
        flex: 0 0 50%;
    }
}

/* Mobile: match body padding to navbar height + center CTAs */
@media (max-width: 768px) {
    body {
        padding-top: 49px;
    }

    .hero-ctas {
        justify-content: center;
        align-items: center;
    }
}

/* Hero image crop focus */
.hero-image {
    object-position: left center;
}

/* Mobile/tablet navbar spacing */
@media (max-width: 992px) {
    body {
        padding-top: 45px;
    }
}

/* Features: 2x2 grid on mobile + hover swap */
@media (max-width: 768px) {
    .features-grid .feature-col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .feature-box {
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .feature-box p {
        display: none;
    }

    .feature-box:hover p,
    .feature-box:focus-within p {
        display: block;
    }

    .feature-box:hover .feature-icon,
    .feature-box:hover h5,
    .feature-box:focus-within .feature-icon,
    .feature-box:focus-within h5 {
        display: none;
    }
}

/* Features: 2x2 grid up to tablets */
@media (max-width: 992px) {
    .features-grid .feature-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Force features 2x2 up to tablets (override old 1-column rule) */
@media (max-width: 992px) {
    .features-grid .feature-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Popular courses: 3 per row + title glow, no underline */
.course-grid {
    justify-content: center;
}

.course-card {
    flex: 1 1 calc(33.333% - 22px);
    max-width: 340px;
}

.course-card--link,
.course-card--link * {
    text-decoration: none !important;
}

.course-card--link:hover h3,
.course-card--link:focus h3 {
    color: var(--nv-primary);
    text-shadow: 0 0 12px rgba(164, 30, 38, 0.2);
}

/* 2 per row on tablets, 1 per row on small phones */
@media (max-width: 992px) {
    .course-card {
        flex: 1 1 calc(50% - 22px);
        max-width: 360px;
    }
}

@media (max-width: 640px) {
    .course-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Force 2x2 features on mobile/tablet (override older 1-col rules) */
@media (max-width: 992px) {
    .features-section .features-grid .feature-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Force features grid to 2x2 on tablets/phones (CSS grid override) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.features-grid .feature-col {
    width: auto;
    max-width: none;
    flex: none;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Popular courses: 3 per row on desktop (CSS grid override) */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.course-grid > .col-md-4 {
    width: auto;
    max-width: none;
    padding: 0;
}

.course-card {
    width: 100%;
    max-width: none;
}

@media (max-width: 992px) {
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile: tighter features cards to prevent overlap */
@media (max-width: 520px) {
    .features-grid {
        gap: 12px;
    }

    .feature-box {
        padding: 16px 12px;
    }

    .feature-box h5 {
        font-size: 0.95rem;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
    }
}

/* Mobile: tighter features cards to prevent overlap */
@media (max-width: 520px) {
    .features-grid {
        gap: 12px;
    }

    .feature-box {
        padding: 16px 12px;
    }

    .feature-box h5 {
        font-size: 0.95rem;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
    }
}

/* Fix feature card overlap on small screens */
@media (max-width: 520px) {
    .features-grid {
        margin-left: 0;
        margin-right: 0;
        gap: 14px;
    }

    .features-grid .feature-col {
        padding-left: 0;
        padding-right: 0;
        min-width: 0;
    }

    .feature-box {
        box-sizing: border-box;
    }
}

/* Tighten feature gaps on very small screens */
@media (max-width: 520px) {
    .features-grid {
        gap: 8px;
    }

    .feature-box {
        padding: 14px 10px;
    }
}

/* Fix large gaps on very small screens */
@media (max-width: 520px) {
    .features-grid {
        column-gap: 8px;
        row-gap: 8px;
    }

    .features-grid .feature-col {
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Features grid: tighter 2x2 layout on small screens */
@media (max-width: 992px) {
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .features-grid .feature-col {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .feature-box {
        width: 100%;
        min-height: 140px;
    }
}

@media (max-width: 420px) {
    .feature-box {
        padding: 12px 10px;
    }

    .feature-box h5 {
        font-size: 0.9rem;
    }
}

/* Features grid: tighter 2x2 layout on small screens */
@media (max-width: 992px) {
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .features-grid .feature-col {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .feature-box {
        width: 100%;
        min-height: 140px;
    }
}

@media (max-width: 420px) {
    .feature-box {
        padding: 12px 10px;
    }

    .feature-box h5 {
        font-size: 0.9rem;
    }
}

/* Feature min width */
.features-grid .feature-col {
    min-width: 150px !important;
}

/* Language selector: cleaner look + easier hover */
.custom-language-selector {
    position: relative;
}

.custom-language-selector .lang-button {
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 999px;
    height: 34px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nv-navy);
    box-shadow: none;
}

.custom-language-selector .lang-button .fa {
    color: var(--nv-primary);
    font-size: 0.9rem;
}

.custom-language-selector .lang-button:hover,
.custom-language-selector .lang-button:focus {
    border-color: rgba(164, 30, 38, 0.25);
    box-shadow: 0 4px 10px rgba(27, 43, 68, 0.08);
}

/* Hover buffer to keep dropdown open */
.custom-language-selector::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 6px;
}

.custom-language-selector .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(27, 43, 68, 0.12);
    z-index: 1000;
    min-width: 150px;
    padding: 6px;
    margin: 0;
}

.custom-language-selector .dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--nv-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-language-selector .dropdown-menu button:hover,
.custom-language-selector .dropdown-menu button:focus {
    background: rgba(164, 30, 38, 0.08);
    outline: none;
}

.custom-language-selector:hover .dropdown-menu,
.custom-language-selector:focus-within .dropdown-menu {
    display: block;
}

/* Mobile: align dropdown under button */
@media (max-width: 992px) {
    .custom-language-selector .dropdown-menu {
        left: 0;
        right: auto;
    }
}

/* Language button: remove dark active/focus state */
.custom-language-selector .lang-button:active,
.custom-language-selector .lang-button:focus {
    background: #fff;
    color: var(--nv-navy);
    box-shadow: none;
    outline: none;
}

/* Language dropdown: remove any top borders between items */
.custom-language-selector .dropdown-menu button {
    border: none;
    box-shadow: none;
}

.custom-language-selector .dropdown-menu button + button {
    border-top: none;
}

/* Footer accordion: only on mobile */
@media (max-width: 768px) {
    .nv-footer-accordion {
        border-bottom: 1px solid var(--nv-border);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .nv-footer-summary {
        cursor: pointer;
        font-weight: 700;
        color: var(--nv-primary);
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nv-footer-summary::after {
        content: "▾";
        font-size: 0.9rem;
        color: var(--nv-muted);
    }

    .nv-footer-accordion[open] .nv-footer-summary::after {
        content: "▴";
    }

    .nv-footer-links {
        margin-top: 8px;
    }
}

/* Desktop: keep sections open */
@media (min-width: 769px) {
    .nv-footer-accordion {
    }
    .nv-footer-summary {
        cursor: default;
    }
    .nv-footer-summary::after {
        content: "";
    }
}

/* Desktop: remove accordion behavior + restore red headings */
@media (min-width: 769px) {
    .nv-footer-accordion {
        border: 0;
        padding: 0;
        margin: 0;
    }

    .nv-footer-summary {
        pointer-events: none;
        color: var(--nv-primary);
        font-weight: 800;
        font-size: 1rem;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--nv-border);
    }

    .nv-footer-summary::after {
        content: "";
    }

    .nv-footer-accordion > summary::-webkit-details-marker {
        display: none;
    }
}

/* Center hero image in hero-visual */
.hero-visual {
    align-items: center;
}

/* Mobile hero order: text block first, image second */
@media (max-width: 768px) {
    .hero-row {
        flex-direction: column;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }
}


/* Language button: hard-disable dark active/focus states */ 
.custom-language-selector .lang-button, 
.custom-language-selector .lang-button:focus, 
.custom-language-selector .lang-button:focus-visible, 
.custom-language-selector .lang-button:active {
    background: #fff !important;
    color: var(--nv-navy) !important;
    box-shadow: none !important;
    outline: none !important; 
} 
/* Language button: hard-disable dark active/focus states */
.custom-language-selector .lang-button,
.custom-language-selector .lang-button:focus,
.custom-language-selector .lang-button:focus-visible,
.custom-language-selector .lang-button:active {
    background: #fff !important;
    color: var(--nv-navy) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Language selector: compact font + small flags */
.custom-language-selector .lang-button {
    font-size: 0.82rem;
    height: 32px;
    padding: 5px 9px;
}

.custom-language-selector .current-lang-code {
    font-size: 0.8rem;
}

.custom-language-selector .dropdown-menu {
    min-width: 120px;
}

.custom-language-selector .dropdown-menu button {
    font-size: 0.85rem;
    padding: 6px 8px;
}

.custom-language-selector .lang-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

/* Language flag backgrounds */
.lang-icon-en {
    background-image:
        linear-gradient(180deg, #b22234 14.3%, #fff 14.3%, #fff 28.6%, #b22234 28.6%, #b22234 42.9%, #fff 42.9%, #fff 57.2%, #b22234 57.2%, #b22234 71.5%, #fff 71.5%, #fff 85.8%, #b22234 85.8%),
        linear-gradient(90deg, #3c3b6e 40%, transparent 40%);
}
.lang-icon-de {
    background: linear-gradient(180deg, #000 33%, #dd0000 33%, #dd0000 66%, #ffce00 66%);
}
