/*
 * VedicWave overrides on top of the legacy theme (public/legacy/css/*).
 * Moved here from the inline <style> blocks in the legacy header.php,
 * footer.php, why.php and content-details.php so a strict CSP can apply.
 */

/* ---- design tokens: one place for colours, fonts, widths and type sizes ---- */
:root {
    --vw-navy: #023c5e;
    --vw-navy-dark: #012c46;
    --vw-navy-line: #0b5078;
    --vw-gold: #dfb416;
    --vw-gold-dark: #b98a00;
    --vw-text: #423338;
    --vw-muted: #555;
    --vw-link: #094999;
    --vw-green: #087a2a;
    --vw-border: #ebedf2;
    --vw-placeholder: #f4efe4;

    /* Roboto Slab has no Devanagari, so Hindi/Sanskrit used to fall back to whatever
       the device had (Nirmala UI, Mangal, Kohinoor...). Noto Sans Devanagari is loaded
       for the Devanagari range only (legacy/fonts/font-sk.css), so Latin stays Roboto Slab. */
    --vw-font: 'Roboto Slab', 'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari',
               'Devanagari Sangam MN', Mangal, 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --vw-shell: 1170px;          /* = Bootstrap 3 .container at >=1200px */
    --vw-header-h: 80px;

    --vw-fs-page-title: 30px;    /* banner title (h1) */
    --vw-fs-article-title: 30px; /* article h1 */
    --vw-fs-h2: 24px;
    --vw-fs-h3: 20px;
    --vw-fs-body: 16px;
    --vw-fs-article: 18px;
    --vw-fs-small: 14px;
    --vw-lh-body: 1.7;           /* Devanagari matras need more room than Latin */
    --vw-lh-heading: 1.35;
}
@media (max-width: 767px) {
    :root {
        --vw-fs-page-title: 26px;
        --vw-fs-article-title: 24px;
        --vw-fs-h2: 21px;
        --vw-fs-h3: 18px;
        --vw-fs-article: 17px;
    }
}

body { font-family: var(--vw-font); }
input, select, textarea, button { font-family: inherit; }
/* Legacy line-height 1.1 clips/overlaps two-line Hindi headings. */
h1, h2, h3, h4, h5, h6 { line-height: var(--vw-lh-heading); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--vw-gold);
    outline-offset: 2px;
}

/* One content width everywhere: header, banner, page body and footer share the
   same left/right edge (they were fluid / 1170 / 3% / 1170 before). */
#main-wrapper .container { width: auto; max-width: var(--vw-shell); }

/* ---- header.php ---- */
/* Card titles are <h2> (they follow the page <h1>); keep the old <h3> look. */
.contents > h2.card-title { font-size: var(--vw-fs-h3); line-height: var(--vw-lh-heading); margin-top: 24px; margin-bottom: 10px; }
a { color: var(--vw-link); }
#style-switcher { display: none; }
#header { min-height: var(--vw-header-h); }
#header .header-nav-bar { background: var(--vw-navy); }
#header .header-nav-bar > .container-fluid {
    max-width: var(--vw-shell);
    margin: 0 auto;
    min-height: var(--vw-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#header .header-nav-bar > .container-fluid::before,
#header .header-nav-bar > .container-fluid::after { display: none; }
#header .header-nav-bar .logo { float: none; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
/* Logo mark (public/images/brand/vedicwave-mark-plain.svg) beside the wordmark. */
.brand-mark { display: block; width: auto; height: 40px; }
#header .header-nav-bar .primary-nav > li > a,
#header .header-nav-bar .primary-nav > li.active > a { color: #fff; }
#header .header-nav-bar .primary-nav > li:hover > a,
#header .header-nav-bar .primary-nav > li.active > a { color: var(--vw-gold); }
/* English labels in normal case (the theme's uppercase did not fit beside the logo below 1200px). */
#header .header-nav-bar .primary-nav > li > a.nav-link-en { font-size: 15px; text-transform: none; }
#header .header-nav-bar .primary-nav > li > a.nav-link-hi { font-size: 17px; font-weight: 600; }
/* Sticky header: when it is taken out of the flow the page would jump up by its
   height, so the main content keeps that space. */
#header.fixed { position: fixed; top: 0; z-index: 1000; width: 100%; }
#header.fixed + #main-content { margin-top: var(--vw-header-h); }
/* The logo text is a <span>, not an <h2>; keep the old <h2> look. */
.brand-title { color: var(--vw-gold); display: block; font-size: 36px; line-height: 1; margin: 0; }
p { text-align: justify; }
.langs {
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 4px;
    background: #fff;
    color: var(--vw-navy);
    font-size: 15px;
}
.language-form { display: inline-block; padding: 0; margin: 0; line-height: normal; }
.language-form select { margin-top: 0; }

/* Desktop menu: one line, links and language selector on the same centre line. */
@media (min-width: 992px) {
    #header .header-nav-bar .primary-nav { display: flex; align-items: center; }
    #header .header-nav-bar .primary-nav > li { float: none; margin-left: 22px; }
    #header .header-nav-bar .primary-nav > li:first-child { margin-left: 24px; }
    #header .header-nav-bar .primary-nav > li > a { line-height: var(--vw-header-h); white-space: nowrap; }
}
/* 992-1199px: the labels + logo did not fit and the menu dropped to a second row. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #header .header-nav-bar .primary-nav > li { margin-left: 11px; }
    #header .header-nav-bar .primary-nav > li:first-child { margin-left: 16px; }
    #header .header-nav-bar .primary-nav > li > a.nav-link-hi { font-size: 16px; }
    #header .header-nav-bar .primary-nav > li > a.nav-link-en { font-size: 14px; }
    .brand-title { font-size: 26px; }
    .brand-mark { height: 30px; }
    #header .header-nav-bar .logo { gap: 8px; }
    html[lang="en"] #header .header-nav-bar .primary-nav > li { margin-left: 8px; }
}
/* English labels are longer than the Hindi ones; with the logo mark they need tighter spacing. */
@media (min-width: 1200px) {
    html[lang="en"] #header .header-nav-bar .primary-nav > li { margin-left: 16px; }
}

/* Mobile menu (<992px): the theme's brown panel, recoloured to the navy brand. */
@media (max-width: 991px) {
    #mobile-menu-toggle { margin: 0 0 0 auto; background: var(--vw-gold); }
    #mobile-menu-container { padding-bottom: 10px; }
    #mobile-menu-container .primary-nav { margin-bottom: 10px; }
    #header .header-nav-bar .primary-nav li > a,
    #header .header-nav-bar .primary-nav ul > li > a {
        padding: 10px 15px;
        background: var(--vw-navy-dark);
        border-bottom-color: var(--vw-navy-line);
        line-height: 1.5;
    }
    #header .header-nav-bar .primary-nav > li.active > a,
    #header .header-nav-bar .primary-nav > li:hover > a,
    #header .header-nav-bar .primary-nav > li.hover > a { background: var(--vw-navy-line); }
    #header .header-nav-bar .primary-nav > li.active > a { color: var(--vw-gold); }
    #header .header-nav-bar .primary-nav .language-form { display: block; padding: 10px 15px; background: var(--vw-navy-dark); }
    .brand-title { font-size: 30px; }
    .brand-mark { height: 34px; }
}
@media (max-width: 992px) {
    h1 { font-size: 30px; margin-top: 10px; }
    h3 { font-size: 20px; margin-top: 8px; }
    .contents > h2.card-title { margin-top: 16px; }
}

/* ---- page title banner (why.php etc.) ---- */
.navigater {
    /* The photo is light in places, so a navy tint keeps the white text readable. */
    background-image: linear-gradient(rgba(2, 60, 94, .55), rgba(2, 60, 94, .55)), url(../legacy/img/page-title-bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* Fallback behind the image so the white title/breadcrumbs always have contrast. */
    background-color: var(--vw-navy);
    color: white;
    padding: 16px 0 14px;
}
/* Title and breadcrumbs share the left edge with the logo and the page content. */
.navigater .text-center { text-align: left; }
.navigater h1,
.navigater .page-title-text {
    float: none;
    margin: 0 0 6px;
    font-size: var(--vw-fs-page-title);
    line-height: var(--vw-lh-heading);
    text-align: left;
}
.navigater .breadcrumbs {
    color: white;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.6;
}
.navigater .breadcrumbs > li { float: none; min-width: 0; }
/* Article pages: the last crumb is the full article title, which is repeated as the
   <h1> right below; keep it to one line instead of wrapping over the banner. */
.navigater .breadcrumbs > li:last-child { flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.breadcrumbs > li:after { margin: 0 10px; color: #d2b995; content: '/'; }
.breadcrumbs > li:last-child:after { content: ''; }
.navigater .breadcrumbs > li > a { color: white; }
.navigater .breadcrumbs > li > a:hover { color: var(--vw-gold); }

/* ---- section listing cards ---- */
#page-content { background: white; padding: 30px 0 50px; }
/* Everything inside the page body uses the shared width (rows bring their own 15px gutters). */
#page-content > .row { max-width: var(--vw-shell); margin: 0 auto; }
#page-content > :not(.row) {
    width: calc(100% - 30px);
    max-width: calc(var(--vw-shell) - 30px);
    margin-left: auto;
    margin-right: auto;
}
/* Card grid: the legacy Bootstrap 3 columns are floats, so a taller card made the
   next one snag under a shorter one and left gaps (one card per row). Flex rows
   keep every row of three aligned regardless of card height. */
/* Space between card rows comes from row-gap, so the first row is not pushed down
   twice (page padding + card margin). */
#page-content > .row { display: flex; flex-wrap: wrap; row-gap: 30px; }
#page-content > .row::before,
#page-content > .row::after { display: none; }
#page-content > .row > [class*="col-"] { width: 100%; display: flex; }
@media (min-width: 768px) {
    #page-content > .row > .col-md-4 { width: 50%; }
}
@media (min-width: 992px) {
    #page-content > .row > .col-md-4 { width: 33.33333333%; }
}
#page-content > .page-content { background: inherit; padding-top: 20px; }
.empty-state { flex: 1 1 auto; margin: 30px 0; color: var(--vw-muted); text-align: center; font-size: 17px; }
/* Cards in a row are the same height; "read more" sits at the bottom of each. */
.single-blog-card {
    border: 1px solid var(--vw-border);
    position: relative;
    margin-top: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.single-blog-card .blog-featured-img {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--vw-placeholder);
    overflow: hidden;
}
.single-blog-card .blog-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Articles without a picture: a quiet branded tile instead of a flat grey box. */
.single-blog-card div.blog-featured-img { display: flex; align-items: center; justify-content: center; }
.single-blog-card div.blog-featured-img::after { content: 'Vedicwave'; color: var(--vw-gold-dark); opacity: .45; font-size: 28px; }
.single-blog-card .contents { padding: 0 24px 24px; margin-top: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
/* 4 whole lines (the old max-height cut the 5th line in half). */
.single-blog-card .contents .card-excerpt {
    font-size: 15px;
    line-height: var(--vw-lh-body);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    overflow-wrap: break-word;
    text-align: left; /* justify left wide gaps in a narrow card */
}
.single-blog-card .contents .read-more-link {
    color: var(--vw-green); /* was #01b42e (2.8:1 on white); now ~5.4:1 */
    font-weight: 600;
    font-size: var(--vw-fs-small);
    line-height: 1;
    text-transform: uppercase;
    margin-top: auto;
    padding-top: 12px;
    display: block;
}

/* ---- article page (content-details.php) ---- */
#main-wrapper { background: white; }
.axil-breadcrumb-area { margin: 30px 0 50px; }
/* Comfortable reading width (~75 characters) and Devanagari-friendly line height. */
.article-title,
.article-image,
.article-body,
.article-videos { max-width: 860px; }
.article-title { font-size: var(--vw-fs-article-title); line-height: var(--vw-lh-heading); margin: 0 0 18px; color: var(--vw-navy); }
.article-image { margin: 0 0 20px; }
.article-image img { max-width: 100%; height: auto; display: block; margin: 0; }
.article-body { margin-bottom: 20px; font-size: var(--vw-fs-article); line-height: var(--vw-lh-body); overflow-wrap: break-word; }
.article-body p { margin: 0 0 1em; }
/* Subheadings inside articles were 30px, the same as the article title. */
.article-body h2 { font-size: var(--vw-fs-h2); }
.article-body h3 { font-size: 22px; }
.article-body h4 { font-size: var(--vw-fs-h3); }
.article-body h2, .article-body h3, .article-body h4 { color: var(--vw-navy); line-height: var(--vw-lh-heading); margin: 1.4em 0 .6em; }
@media (max-width: 767px) {
    .article-body h3 { font-size: 20px; }
}
.article-body img { max-width: 100%; height: auto; }
.article-videos { margin-top: 10px; }
.article-videos .sermon-item { margin-bottom: 20px; }
/* 16:9 instead of a fixed 215px height, so embeds are not letterboxed on any width. */
.article-videos iframe { border: 0; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.preview-banner { background: #fff3cd; color: #664d03; padding: 8px 16px; text-align: center; }

/* Justified text leaves wide gaps in narrow Hindi columns. */
@media (max-width: 767px) {
    p { text-align: left; }
}

/* ---- disclaimer page (resources/views/public/pages/disclaimer.blade.php) ---- */
.disclaimer-page h2 { font-size: var(--vw-fs-h2); color: var(--vw-navy); margin: 0 0 16px; line-height: 1.3; }
.disclaimer-page h3 { font-size: 18px; color: var(--vw-navy); margin: 0 0 10px; line-height: var(--vw-lh-heading); }
.disclaimer-languages { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.disclaimer-block { min-width: 0; border-top: 3px solid var(--vw-gold); padding-top: 18px; }
.disclaimer-block p { margin: 0 0 12px; line-height: var(--vw-lh-body); text-align: left; }
.disclaimer-block[lang="hi"] p { font-size: 17px; }
.disclaimer-credit { font-weight: 700; color: var(--vw-navy); }
.disclaimer-references { margin-top: 40px; border-top: 3px solid var(--vw-gold); padding-top: 18px; }
.references-note { color: var(--vw-muted); font-size: var(--vw-fs-small); margin: 0 0 6px; }
.references-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.reference-group { border: 1px solid var(--vw-border); padding: 16px 18px; min-width: 0; }
.reference-letter { color: var(--vw-gold-dark); }
.reference-en { color: var(--vw-muted); font-size: var(--vw-fs-small); }
.reference-group ul { margin: 0; padding-left: 18px; }
.reference-group li { margin: 0 0 6px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 992px) {
    .disclaimer-languages { grid-template-columns: 1fr; }
    .references-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .references-grid { grid-template-columns: 1fr; }
}

/* ---- about us page (resources/views/public/pages/about-us.blade.php) ---- */
.about-page p { line-height: var(--vw-lh-body); text-align: left; }
.about-page h2 { font-size: var(--vw-fs-h2); color: var(--vw-navy); margin: 0 0 16px; line-height: 1.3; }
.about-page h3 { font-size: var(--vw-fs-h3); color: var(--vw-navy); margin: 0 0 8px; line-height: var(--vw-lh-heading); }
.about-hero { padding: 6px 0 4px; }
.about-tagline { font-size: 30px; line-height: 1.4; color: var(--vw-navy); font-weight: 600; margin: 0 0 6px; }
.about-tagline-hi { font-size: 20px; color: var(--vw-gold-dark); margin: 0 0 6px; }
.about-intro { font-size: 18px; max-width: 760px; margin: 10px 0 0; padding-top: 14px; border-top: 3px solid var(--vw-gold); }
/* Four pillars: overview cards that jump to their section. */
.about-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.about-pillar {
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
    padding: 20px; border: 1px solid var(--vw-border); border-radius: 6px; color: var(--vw-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.about-pillar:hover, .about-pillar:focus-visible { border-color: var(--vw-gold); box-shadow: 0 2px 8px rgba(2, 60, 94, .08); color: var(--vw-text); text-decoration: none; }
.about-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--vw-navy); color: var(--vw-gold); }
.about-icon svg { width: 28px; height: 28px; }
.about-pillar-name { font-size: 19px; font-weight: 600; color: var(--vw-navy); line-height: var(--vw-lh-heading); }
.about-pillar-text { font-size: 15px; line-height: 1.6; }
.about-section { margin-top: 44px; padding-top: 18px; border-top: 3px solid var(--vw-gold); scroll-margin-top: calc(var(--vw-header-h) + 16px); }
.about-section > p { max-width: 860px; }
.about-questions { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 30px; }
.about-questions li { position: relative; padding-left: 30px; line-height: 1.6; }
.about-questions li::before {
    content: '?'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--vw-placeholder); color: var(--vw-gold-dark); font-weight: 700; font-size: 13px; line-height: 20px; text-align: center;
}
.about-quote { margin: 4px 0 18px; padding: 16px 22px; border-left: 4px solid var(--vw-gold); background: var(--vw-placeholder); max-width: 860px; }
.about-quote p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--vw-navy); }
.about-quote .about-quote-en { margin-top: 8px; font-size: 16px; color: var(--vw-muted); }
.about-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 18px 0; }
.about-topic { border: 1px solid var(--vw-border); border-radius: 6px; padding: 18px 20px; min-width: 0; }
.about-topic-letter {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 6px;
    border-radius: 50%; background: var(--vw-navy); color: var(--vw-gold); font-size: 15px; vertical-align: 2px;
}
.about-topic ul { margin: 0; padding-left: 18px; }
.about-topic li { margin-bottom: 4px; line-height: 1.6; }
.about-note { color: var(--vw-muted); font-size: 15px; }
/* Ask -> Understand -> Learn is a real sequence, so the steps are numbered. */
.about-steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-steps li { counter-increment: step; position: relative; padding: 18px 20px 16px; border: 1px solid var(--vw-border); border-radius: 6px; }
.about-steps li::before {
    content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 10px;
    border-radius: 50%; background: var(--vw-gold); color: var(--vw-navy); font-weight: 700; font-size: 17px;
}
.about-steps p { margin: 0; }
.about-mission { margin: 6px 0 0; padding-left: 24px; columns: 2; column-gap: 40px; }
.about-mission li { break-inside: avoid; margin-bottom: 10px; line-height: 1.6; padding-left: 4px; }
.about-mission li::marker { color: var(--vw-gold-dark); font-weight: 700; }
.about-chips { list-style: none; padding: 0; margin: 6px 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.about-chips li { padding: 5px 14px; border: 1px solid var(--vw-border); border-radius: 20px; background: var(--vw-placeholder); font-size: 15px; }
.about-not ul { margin: 0 0 12px; padding-left: 20px; max-width: 860px; }
.about-not li { margin-bottom: 8px; line-height: 1.6; }
.about-not-end { font-weight: 600; color: var(--vw-navy); }
.about-closing { margin-top: 44px; padding: 30px 32px; border-radius: 6px; background: var(--vw-navy); color: #fff; }
.about-closing p { max-width: 860px; margin: 0 0 10px; font-size: 18px; color: #fff; }
.about-closing .about-closing-sign { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(223, 180, 22, .5); color: var(--vw-gold); font-weight: 600; }
@media (max-width: 992px) {
    .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .about-tagline { font-size: 24px; }
    .about-questions, .about-steps { grid-template-columns: 1fr; }
    .about-mission { columns: 1; }
    .about-quote p { font-size: 18px; }
    .about-closing { padding: 24px 20px; }
}
@media (max-width: 600px) {
    .about-pillars, .about-topics { grid-template-columns: 1fr; }
}

/* ---- donation.php / contact-us.php ---- */
/* The page templates use Bootstrap 4 spacing classes, which Bootstrap 3 lacks. */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.donation-container {
    background-color: white;
    padding: 40px;
    border: 1px solid var(--vw-border);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    max-width: 600px;
    margin: 50px auto;
}
#page-content > .donation-container { margin-top: 0; margin-bottom: 20px; }
.donation-title { text-align: center; margin: 0 0 20px; color: var(--vw-navy); font-size: var(--vw-fs-h2); }
.donation-amounts label { margin-right: 18px; }
.donation-amounts > label:first-child { margin-bottom: 6px; }
.donation-amounts input[type="radio"] { margin-right: 6px; }
.donation-container label,
.contact-form label { font-weight: 600; }
.donation-amounts label:not(:first-child) { font-weight: 400; }
/* One button style for both forms (was Bootstrap blue / Bootstrap green). */
.btn-donate,
.contact-form .btn {
    background-color: var(--vw-navy);
    border: 1px solid var(--vw-navy);
    color: white;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.btn-donate:hover,
.contact-form .btn:hover { background-color: var(--vw-navy-line); color: white; }
.contact-page { background-color: #f9f9f9; padding: 60px 0; }
.contact-form { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.form-unavailable { margin-top: 12px; color: #6c757d; text-align: center; }
fieldset[disabled] { opacity: 0.7; }
@media (max-width: 600px) {
    .donation-container { padding: 24px 18px; }
}

/* ---- footer.php ---- */
#footer > .container { padding-bottom: 30px; }
#footer { background: var(--vw-navy); color: #fff; font-size: 15px; }
#footer .footer-copyright { background: var(--vw-navy-dark); color: white; }
#footer .footer-copyright p { float: none; margin: 0; padding: 14px 0; text-align: center; font-size: var(--vw-fs-small); }
#footer > .container p,
#footer .footer-links li a { color: #fff; }
#footer > .container p { text-align: left; line-height: var(--vw-lh-body); }
#footer .footer-links li { margin-bottom: 6px; }
#footer > .container a:hover,
#footer .footer-links li a:hover { color: var(--vw-gold); }
.footer-highlight { color: var(--vw-gold); }
#footer > .container a.footer-more { color: var(--vw-gold); white-space: nowrap; }
/* Footer headings are <h2> (were <h5>, which skipped levels); keep the old <h5> look. */
#footer > .container .footer-heading { font-size: 18px; font-weight: 700; line-height: var(--vw-lh-heading); margin: 30px 0 14px; }
@media (max-width: 991px) {
    #footer > .container .footer-heading { margin: 30px 0 12px; }
}

/* ---- error pages ---- */
.error-page { background: #f5f6f8; font-family: var(--vw-font); }
.error-box { max-width: 560px; margin: 12vh auto; padding: 32px; background: #fff; border-radius: 6px; text-align: center; }
.error-box h1 { font-size: 56px; color: var(--vw-navy); margin: 0 0 12px; }
.error-box p { text-align: center; }
