/* Balram's Immigration Consultancy: red and blue brand, law-firm style layout */

:root {
    /* Canadian red + deep blue (logo) */
    --brand-red: #c8102e;
    --brand-red-hover: #a50d26;
    --brand-red-muted: rgba(200, 16, 46, 0.12);
    --brand-red-light: #ff6b7a;
    --brand-blue-950: #050d18;
    --brand-blue-900: #0a1628;
    --brand-blue-850: #0d1f35;
    --brand-blue-800: #122a45;
    --brand-blue-750: #163556;
    --brand-blue-700: #1c4370;
    --brand-blue-650: #245586;
    --brand-blue-600: #2d6499;
    --brand-blue-500: #3a7ab5;
    --brand-blue-400: #5a93c4;

    --surface-page: #eef2f7;
    --surface-white: #ffffff;
    --surface-muted: #f4f7fb;
    --surface-card-dark: #132a45;
    --border-soft: #d8e2ef;
    --border-nav: rgba(10, 22, 40, 0.08);

    --text-on-dark: #f5f8fc;
    --muted-on-dark: #b8c9dc;
    --text-on-light: #1a2d42;
    --muted-on-light: #4a5f78;
    --heading-on-light: #0f2744;
    --subheading-on-light: #163556;
    --link-on-light: #0c4a7a;

    --line-on-dark: rgba(255, 255, 255, 0.12);
    --form-field-dark: #0d243e;
    --placeholder-dark: #8fa8c4;

    --accent: var(--brand-red);
    --accent-hover: var(--brand-red-hover);
    --accent-muted-glow: var(--brand-red-muted);

    --bg: var(--brand-blue-850);
    --bg-soft: var(--brand-blue-750);
    --panel: var(--surface-card-dark);
    --text: var(--text-on-dark);
    --muted: var(--muted-on-dark);
    --line: var(--line-on-dark);

    --font-heading: 'Roboto Slab', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
    /* Traditional professional scale: 16px body, modest hierarchy (no html % bump). */
    --fs-body: 1rem;
    --fs-small: 0.9375rem;
    --fs-lead: 1.125rem;
    --fs-nav: 1.05rem;
    --fs-eyebrow: 0.6875rem;
    --fs-h1: clamp(2rem, 4vw, 2.75rem);
    --fs-h2: clamp(1.5rem, 2.5vw, 2rem);
    --fs-h3: 1.25rem;
    --fs-inner-h1: clamp(1.75rem, 3vw, 2.35rem);
    --lh-body: 1.65;
    --ls-heading: -0.01em;
    --ls-eyebrow: 0.14em;
}

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 400;
    color: #132c46;
    background: var(--surface-page);
    line-height: var(--lh-body);
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Wider centered layout across the whole site (still not full-width). */
@media (min-width: 992px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1080px;
    }
}

@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1280px;
    }
}

@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 1480px;
    }
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: var(--ls-heading);
    color: var(--heading-on-light);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.lead {
    font-family: var(--font-body);
    font-size: var(--fs-lead);
    font-weight: 400;
    line-height: 1.58;
}

small, .small {
    font-size: var(--fs-small);
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(245, 248, 252, 0.92);
}

.content-section .form-label {
    color: var(--subheading-on-light);
}

.btn {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.55rem 1.35rem;
    border-radius: 4px;
}

.btn-lg {
    font-size: 1.0625rem;
    padding: 0.7rem 1.65rem;
}

/* Header: dark strip + white nav */
.top-strip {
    background: #0a1f35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-on-dark);
    padding: 0.45rem 0;
    font-size: var(--fs-small);
    letter-spacing: 0.03em;
}

.top-strip .container {
    gap: 0.75rem;
}

.top-strip-social a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
}

.top-strip-social a:hover {
    color: #fff;
}

.top-strip-contact {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.top-strip-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-small);
    letter-spacing: 0.02em;
}

.top-strip-contact-link:hover {
    color: #fff;
}

.top-strip-contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.95;
}

.top-strip-contact-link--wa .top-strip-contact-icon {
    color: #25d366;
}

.top-strip-contact-link:hover .top-strip-contact-icon {
    opacity: 1;
}

.top-strip-contact-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    align-self: center;
}

.top-strip-contact-wa-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-right: 0.35rem;
}

.top-strip-contact-link--wa .top-strip-contact-wa-label {
    color: rgba(255, 255, 255, 0.88);
}

.top-strip-contact-num {
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.top-strip-contact-num--wa {
    color: var(--brand-red-light, #ff6b7a);
}

.top-strip-contact-link:hover .top-strip-contact-num--wa {
    color: #fff;
}

.site-header .navbar {
    position: relative;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-nav);
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.08);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.site-header .navbar-brand {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    margin-right: 0.75rem;
    line-height: 0;
}

.brand-logo {
    width: auto;
    height: auto;
    max-height: 134px;
    max-width: 308px;
    min-width: 0;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.site-header .dropdown-menu {
    border-radius: 6px;
    padding: 0.4rem 0;
    min-width: 15rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.12);
}

.site-header .dropdown-item {
    font-weight: 600;
    color: var(--heading-on-light);
    padding: 0.5rem 1.1rem;
    font-size: 0.9375rem;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    background: var(--surface-muted);
    color: var(--brand-red);
}

/* Mini mega: centered under Services toggle + upward caret */
.site-header .navbar-collapse,
.site-header .navbar-nav {
    overflow: visible;
}

.site-header .services-mini-mega-parent {
    position: relative;
    overflow: visible;
}

.site-header .services-mini-mega.dropdown-menu {
    --services-mini-mega-surface: #f0f4f8;
    width: min(60rem, calc(100vw - 1.25rem));
    min-width: 0;
    max-width: min(60rem, calc(100vw - 1.25rem));
    padding: 0.55rem;
    margin-top: 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--services-mini-mega-surface);
    box-shadow: 0 14px 40px rgba(10, 22, 40, 0.14);
    z-index: 1100;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    overflow: visible;
}

/* Caret pointing at Services */
.site-header .services-mini-mega.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--border-soft);
    pointer-events: none;
    z-index: 0;
}

.site-header .services-mini-mega.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--services-mini-mega-surface);
    pointer-events: none;
    z-index: 1;
}

.site-header .services-mini-mega-inner {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.site-header .services-mini-mega-all {
    margin: 0;
    padding: 0.6rem 0.85rem;
    text-align: center;
    font-weight: 600;
    font-size: var(--fs-nav);
    color: var(--heading-on-light);
    border-radius: 7px;
    border: 1px solid var(--border-soft);
    background: #fff;
}

.site-header .services-mini-mega-all:hover,
.site-header .services-mini-mega-all:focus {
    background: var(--surface-muted);
    color: var(--brand-red);
}

.site-header .services-mini-mega-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.site-header .services-mini-mega-block {
    margin: 0;
    padding: 0.55rem 0 0.7rem;
    border-bottom: 1px solid rgba(90, 115, 144, 0.14);
}

.site-header .services-mini-mega-block:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
}

.site-header .services-mini-mega-block__label {
    margin: 0 0 0.4rem 0.1rem;
    padding: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #5a7390;
    line-height: 1.2;
}

.site-header .services-mini-mega-block__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    grid-auto-rows: 5.5rem;
    width: 100%;
    min-width: 0;
}

.site-header .services-mini-mega-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 5.5rem;
    gap: 0.4rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    text-align: center;
    font-size: var(--fs-nav);
    font-weight: 600;
    line-height: 1.35;
    color: #3a546f;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: #e6edf5;
}

.site-header .services-mini-mega-cell span {
    display: block;
    max-width: 100%;
    padding-inline: 0.1rem;
    line-height: 1.2;
}

.site-header .services-mini-mega-cell i {
    font-size: calc(var(--fs-nav) * 1.15);
    color: #7d93aa;
    line-height: 1;
}

.site-header .services-mini-mega-cell:hover,
.site-header .services-mini-mega-cell:focus {
    background: #dbe6f0;
    border-color: #c7d5e4;
    color: var(--heading-on-light);
}

.site-header .services-mini-mega-cell:hover i,
.site-header .services-mini-mega-cell:focus i {
    color: var(--brand-red);
}

.site-header .dropdown.show > .nav-link.dropdown-toggle {
    color: var(--brand-red) !important;
}

.site-header .navbar-nav .nav-link.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/*
 * Mobile / tablet collapsed nav: dropdown was centered with translateX(-50%) while
 * width used 100vw — wider than the narrow <li>, so the panel overflowed and clipped.
 * Below lg: pin mega menu to the nav item edges and use 100% width.
 */
@media (max-width: 991.98px) {
    /* Keep collapsed nav usable on short screens */
    #mainNav {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 0.75rem;
    }

    /* Make collapsed nav items full-width and predictable */
    .site-header .navbar-nav,
    .site-header .navbar-nav .nav-item,
    .site-header .services-mini-mega-parent {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    .site-header .navbar-nav .nav-link {
        width: 100%;
    }

    /* Full-width row in collapsed nav so mega menu isn’t wider than the <li> */
    .site-header .services-mini-mega-parent {
        width: 100%;
        max-width: 100%;
    }

    .site-header .services-mini-mega.dropdown-menu {
        /* Force mobile in-flow block; cancel desktop absolute centering */
        position: static !important;
        float: none !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: none;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.35rem;
        margin-bottom: 0.35rem;
        box-sizing: border-box;
        box-shadow: 0 8px 28px rgba(10, 22, 40, 0.12);
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
        z-index: auto;
    }

    .site-header .services-mini-mega.dropdown-menu.show {
        display: block;
    }

    /* Hide floating caret in mobile in-flow mode */
    .site-header .services-mini-mega.dropdown-menu::before {
        display: none;
    }

    .site-header .services-mini-mega.dropdown-menu::after {
        display: none;
    }

    .site-header .services-mini-mega-inner {
        max-width: 100%;
        min-width: 0;
    }

    .site-header .services-mini-mega-block__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        grid-auto-rows: auto;
        min-width: 0;
    }

    .site-header .services-mini-mega-cell {
        height: auto;
        min-height: 4.85rem;
        padding: 0.5rem 0.4rem;
    }

    .site-header .services-mini-mega-cell span {
        font-size: 0.8rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {
    .site-header .services-mini-mega-block__grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .site-header .services-mini-mega-cell {
        min-height: 0;
        padding: 0.55rem 0.65rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 0.65rem;
    }

    .site-header .services-mini-mega-cell span {
        text-align: left;
    }
}

@media (max-width: 380px) {
    .site-header .services-mini-mega-block__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .site-header .services-mini-mega-cell {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.65rem;
        min-height: 0;
        padding: 0.55rem 0.65rem;
        text-align: left;
    }

    .site-header .services-mini-mega-cell span {
        text-align: left;
    }
}

/* Mobile-first override: render Services submenu as a clean stacked list */
@media (max-width: 991.98px) {
    .site-header .services-mini-mega.dropdown-menu {
        background: #f4f7fb !important;
        border: 1px solid var(--border-soft) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        padding: 0.5rem !important;
    }

    .site-header .services-mini-mega-inner {
        gap: 0.35rem !important;
    }

    .site-header .services-mini-mega-all {
        text-align: left !important;
        padding: 0.65rem 0.75rem !important;
        font-size: 0.92rem !important;
        border-radius: 8px !important;
    }

    .site-header .services-mini-mega-sections {
        gap: 0.45rem !important;
    }

    .site-header .services-mini-mega-block {
        border: 1px solid var(--border-soft) !important;
        border-radius: 8px !important;
        background: #fff !important;
        padding: 0.55rem !important;
        margin: 0 !important;
    }

    .site-header .services-mini-mega-block__label {
        margin: 0 0 0.45rem 0.15rem !important;
        font-size: 0.66rem !important;
    }

    .site-header .services-mini-mega-block__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.35rem !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }

    .site-header .services-mini-mega-cell {
        min-height: 0 !important;
        height: auto !important;
        padding: 0.6rem 0.7rem !important;
        border-radius: 8px !important;
        background: #eef3f8 !important;
        border: 1px solid #d8e2ef !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0.55rem !important;
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }

    .site-header .services-mini-mega-cell i {
        font-size: 1rem !important;
    }

    .site-header .services-mini-mega-cell span {
        text-align: left !important;
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
}

.navbar .nav-link {
    color: var(--heading-on-light) !important;
    font-size: var(--fs-nav);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.5rem 0.85rem !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand-red) !important;
}

/* Hero */
.hero-section {
    background: var(--brand-blue-750);
}

.hero-with-banner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-color: var(--brand-blue-800);
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center 35%;
    overflow: hidden;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.84);
    z-index: 0;
}

.hero-with-banner .container {
    z-index: 1;
}

.hero-banner-inner {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

@media (min-width: 992px) {
    .hero-banner-inner {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
}

.hero-kicker {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.18;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
    color: #fff !important;
}

.inner-hero {
    /* Fallback only; not used as any page’s primary hero (see hero-bg.php). */
    --inner-hero-bg: url("../img/hero/contact.jpg");
    --inner-hero-bg-position: center 34%;
    --inner-hero-photo-size: cover;
    --inner-hero-banner-height: 20rem;
    background-color: rgb(10, 22, 40);
    background-image: var(--inner-hero-bg);
    background-size: var(--inner-hero-photo-size);
    background-position: var(--inner-hero-bg-position);
    background-repeat: no-repeat;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: var(--inner-hero-banner-height);
    height: var(--inner-hero-banner-height);
    padding-block: 1rem;
    position: relative;
    overflow: hidden;
}

.inner-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.45;
    z-index: 1;
}

.inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.82);
    pointer-events: none;
    z-index: 0;
}

.inner-hero .container {
    position: relative;
    z-index: 2;
}

.inner-hero h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-inner-h1);
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
}

.inner-hero .eyebrow {
    color: #f0a8b0;
}

/* Lead / intro under hero title — Bootstrap text-light-emphasis is dark (for light pages); force light on dark hero */
.inner-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: var(--fs-small);
    line-height: 1.65;
}

.inner-hero .text-light-emphasis {
    color: rgba(255, 255, 255, 0.9) !important;
}

.breadcrumb-nav {
    font-size: var(--fs-small);
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0.4rem;
}

/* Inner page heroes: fixed height + tight padding clips multi-line titles on phones */
@media (max-width: 991.98px) {
    .inner-hero {
        height: auto;
        min-height: 14rem;
        padding-block: clamp(1.75rem, 6vw, 2.75rem);
        align-items: flex-start;
    }

    .inner-hero .container {
        width: 100%;
        padding-top: 0.15rem;
        padding-bottom: 0.35rem;
    }

    .inner-hero .breadcrumb-nav {
        margin-top: 0;
        margin-bottom: 0.85rem;
    }

    .inner-hero h1 {
        margin-bottom: 0.65rem;
    }

    .inner-hero .eyebrow {
        margin-bottom: 0.4rem;
    }
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.88) !important;
}

.eyebrow {
    font-family: var(--font-body);
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    font-size: var(--fs-eyebrow);
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.section-head h2,
.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.28;
}

.section-head--light h2,
.section-title--light {
    color: var(--heading-on-light) !important;
}

.section-head--dark h2,
.section-title--dark {
    color: #fff !important;
}

.section-head .eyebrow {
    display: block;
}

.text-banner-sub {
    font-size: var(--fs-lead);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

/* Cred / experience strip */
.cred-strip {
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.cred-strip .cred-item {
    color: var(--heading-on-light);
    border: 1px solid var(--border-soft);
    background: var(--surface-muted);
}

.cred-item {
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    font-size: var(--fs-small);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Services (white panel) */
.services-section {
    background: var(--surface-white);
    color: var(--text-on-light);
}

.services-section .service-row h3 {
    color: var(--heading-on-light);
}

.services-section .service-row p {
    color: var(--muted-on-light);
}

.service-row {
    display: flex;
    gap: 1rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 1.15rem 1.1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Homepage service tiles: fill row height so paired columns align */
.service-row--tile .service-row__body {
    flex: 1;
    min-width: 0;
}

.service-row h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.service-row p {
    font-size: var(--fs-small);
    line-height: 1.6;
    margin: 0;
}

a.service-row-link {
    color: inherit;
    display: block;
}

.services-section a.service-row-link.d-flex {
    min-height: 0;
}

a.service-row-link:hover .service-row {
    border-color: var(--brand-red);
    box-shadow: 0 8px 28px rgba(200, 16, 46, 0.1);
}

a.service-row-link:hover h3 {
    color: var(--brand-red);
}

.service-row-icon-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.1);
    color: var(--brand-red);
    margin-top: 0.15rem;
}

.service-row-icon {
    font-size: 1.05rem;
    line-height: 1;
}

/* Homepage — “Why work with us” (light section; do not use section-title--dark here) */
.feature-highlight-section {
    background: var(--surface-muted);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.feature-highlight-section .section-head {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.home-highlight-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 2px 16px rgba(10, 22, 40, 0.06);
    min-height: 100%;
}

.home-highlight-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--heading-on-light);
    line-height: 1.3;
}

.home-highlight-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border-soft);
    margin-top: auto;
}

/* Help band */
.help-band {
    background: var(--brand-blue-850);
    border-top: 3px solid var(--brand-red);
    border-bottom: 1px solid var(--line-on-dark);
}

.help-band-inner {
    text-align: center;
    padding: 2rem 1rem;
}

.help-band-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.help-band-title em {
    font-style: normal;
    color: var(--brand-red);
}

.feature-banner {
    background: var(--brand-blue-800);
}

.feature-banner h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.25;
}

.feature-banner p {
    color: rgba(255, 255, 255, 0.88);
}

.feature-banner .eyebrow {
    color: #f0a8b0 !important;
}

.assessment-section {
    background: var(--brand-blue-800);
}

.assessment-section h2,
.assessment-section .eyebrow {
    color: #fff;
}

.assessment-section .eyebrow {
    color: #f0a8b0;
}

.assessment-section > .container > .row > div:first-child p,
.assessment-section > .container > .row > div:first-child .checklist {
    color: var(--muted-on-dark);
}

.checklist li {
    margin-bottom: 0.4rem;
}

.checklist li::before {
    content: "\2713 ";
    color: var(--brand-red);
    font-weight: 700;
}

.assessment-section .checklist li {
    color: rgba(255, 255, 255, 0.88);
}

.service-card,
.card-form {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.35rem;
}

.bg-deep .service-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.bg-deep .service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-small);
    margin: 0;
}

.testimonial-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 1.35rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.05);
}

.testimonial-card p {
    color: var(--muted-on-light);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.testimonial-card strong {
    color: var(--heading-on-light);
    font-size: var(--fs-small);
}

.contact-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 1.35rem;
    color: var(--text-on-light);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}

.contact-card h2,
.contact-card h3 {
    color: var(--heading-on-light);
}

.contact-card p {
    color: var(--muted-on-light);
}

.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}

.contact-info-icon {
    width: 1.2rem;
    color: var(--heading-on-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.08rem;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1rem;
    line-height: 1;
}

.contact-card .contact-info-row a {
    color: var(--muted-on-light);
    text-decoration: none;
}

.contact-card .contact-info-row a:hover {
    color: var(--heading-on-light);
    text-decoration: underline;
}

.contact-card .contact-info-row--wa .contact-info-icon i {
    color: #25d366;
}

.contact-card .contact-wa-label {
    color: var(--muted-on-light);
}

.contact-card .contact-wa-num {
    color: var(--brand-red);
    font-weight: 700;
}

.contact-card .contact-info-row--wa a:hover .contact-wa-num {
    color: var(--heading-on-light);
}

.form-control,
.form-select {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    background: var(--form-field-dark);
    border: 1px solid var(--line);
    color: var(--text-on-dark);
    border-radius: 4px;
}

.form-control:focus,
.form-select:focus {
    background: var(--form-field-dark);
    color: var(--text-on-dark);
    border-color: var(--brand-red);
    box-shadow: 0 0 0 0.2rem var(--accent-muted-glow);
}

.form-control::placeholder {
    color: var(--placeholder-dark);
}

/* Contact + consultation: scroll inside the field when the message is long */
textarea.form-control[name="message"] {
    max-height: min(50vh, 22rem);
    overflow-y: auto;
    overflow-x: hidden;
    resize: vertical;
}

.btn-accent {
    background: var(--brand-red);
    color: #fff !important;
    border: 0;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
}

.btn-accent:hover {
    background: var(--brand-red-hover);
    color: #fff !important;
}

.btn-accent:focus,
.btn-accent:focus-visible,
.btn-accent:active,
.btn-accent.active,
.btn-check:active + .btn-accent,
.btn-check:checked + .btn-accent {
    background: var(--brand-red-hover) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 0.2rem var(--accent-muted-glow);
}

/* Header CTA: default Bootstrap .btn size; uppercase + light pink border only */
.site-header .navbar .btn-accent {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 3px;
    border: 1px solid rgba(255, 170, 185, 0.6);
    background: var(--brand-red);
    color: #fff !important;
    box-shadow: none;
    white-space: nowrap;
}

.site-header .navbar .btn-accent:hover,
.site-header .navbar .btn-accent:focus-visible,
.site-header .navbar .btn-accent:focus,
.site-header .navbar .btn-accent:active,
.site-header .navbar .btn-accent.active,
.site-header .navbar .btn-check:active + .btn-accent,
.site-header .navbar .btn-check:checked + .btn-accent {
    background: var(--brand-red-hover);
    color: #fff !important;
    border-color: rgba(255, 200, 210, 0.85);
}

.site-header .navbar .btn-accent.is-current {
    background: var(--brand-red);
    color: #fff !important;
    border-color: rgba(255, 200, 210, 0.85);
    box-shadow: none;
}

/* Book-consultation form primary: same look as header CTA (no extra inset ring) */
.consultation-form .btn-accent {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 3px;
    border: 1px solid rgba(255, 170, 185, 0.6);
    background: var(--brand-red);
    color: #fff !important;
    box-shadow: none;
    white-space: normal;
    text-align: center;
}

.consultation-form .btn-accent:hover,
.consultation-form .btn-accent:focus-visible,
.consultation-form .btn-accent:focus,
.consultation-form .btn-accent:active,
.consultation-form .btn-accent.active,
.consultation-form .btn-check:active + .btn-accent,
.consultation-form .btn-check:checked + .btn-accent {
    background: var(--brand-red-hover);
    color: #fff !important;
    border-color: rgba(255, 200, 210, 0.85);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff !important;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--heading-on-light) !important;
    border-color: #fff;
}

.cta-section,
.bg-deep {
    background: var(--brand-blue-900);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
}

.process-section {
    background: var(--brand-blue-900);
}

.process-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-on-dark);
    border-radius: 6px;
    padding: 1.25rem;
}

.process-card span {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    border-radius: 3px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.6rem;
}

.process-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
}

.process-card p {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-section {
    background: var(--brand-blue-800);
}

.accordion-item {
    border: 1px solid var(--line-on-dark);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    border-radius: 4px !important;
    overflow: hidden;
}

.accordion-button,
.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
}

.accordion-button:not(.collapsed) {
    color: #fff;
}

.accordion-body {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    background: rgba(0, 0, 0, 0.12);
}

.featured-section {
    background: var(--brand-blue-850);
}

.logo-box {
    background: var(--surface-white);
    color: var(--heading-on-light);
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    padding: 1.25rem;
    text-align: center;
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.featured-section .featured-logo-row .logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: balance;
}

.articles-section {
    background: var(--brand-blue-750);
}

.article-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line-on-dark);
    border-radius: 6px;
    padding: 1.15rem;
    height: 100%;
}

.article-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
}

.article-card p {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 0;
}

.form-note {
    color: #a3e4b0;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--brand-blue-950);
    border-top: 3px solid var(--brand-red);
    font-size: var(--fs-small);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    clear: both;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 0.85rem;
}

.site-footer p {
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer-copy {
    color: rgba(255, 255, 255, 0.88) !important;
}

.rcic-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.site-footer .footer-contact-row--phone,
.site-footer .footer-contact-row--email {
    margin-bottom: 0.85rem;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer-contact-icon i {
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
}

.footer-contact-body {
    flex: 1;
    min-width: 0;
}

.site-footer .footer-contact-body p {
    color: #fff;
    line-height: 1.45;
    margin-bottom: 0;
}

.site-footer .footer-contact-body p + p {
    margin-top: 0.2rem;
}

.footer-contact-row--phone .footer-contact-body {
    font-size: 1.0625rem;
    font-weight: 600;
}

.footer-contact-row--phone .footer-contact-body a {
    color: #fff;
}

.footer-contact-row--wa .footer-contact-icon i {
    color: #25d366;
}

.footer-contact-row--wa .footer-contact-wa-label {
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-row--wa .footer-contact-wa-num {
    color: var(--brand-red-light, #ff6b7a);
}

.footer-contact-row--wa .footer-contact-body a:hover .footer-contact-wa-num {
    color: #fff;
}

.footer-contact-row--email .footer-contact-body a {
    color: #fff;
}

.social-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.8rem;
    margin-top: 0.85rem;
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 1rem;
    text-decoration: none;
}

.social-links i {
    font-size: 1.08rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
}

.social-links a:hover i {
    color: #fff;
}

.site-footer .social-links .social-link-facebook i { color: #1877f2; }
.site-footer .social-links .social-link-instagram i {
    background: none;
    color: #dd2a7b;
    -webkit-text-fill-color: currentColor;
}
.site-footer .social-links .social-link-tiktok i {
    color: #fff;
    text-shadow: -0.8px 0 #25f4ee, 0.8px 0 #fe2c55;
}
.site-footer .social-links .social-link-linkedin i { color: #0a66c2; }
.site-footer .social-links .social-link-x i { color: #fff; }

.site-footer .social-links a:hover i {
    filter: brightness(1.1);
}

/* Inner content pages */
.content-section {
    background: var(--surface-page);
    color: var(--text-on-light);
    padding: 3rem 0 4rem;
}

.content-section h2 {
    font-family: var(--font-heading);
    color: var(--heading-on-light);
    font-size: clamp(1.25rem, 1.75vw, 1.5rem);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.content-section h2:first-of-type {
    margin-top: 0;
}

.content-section h3 {
    font-family: var(--font-heading);
    color: var(--subheading-on-light);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.content-section p,
.content-section li {
    font-size: var(--fs-body);
    color: #2a435d;
    line-height: 1.75;
}

/* Section intros (e.g. Client Feedback): eyebrow is a <p> — 75ch max-width + text-center looks off-center */
.content-section .section-head .eyebrow,
.content-section .section-head h2,
.content-section .section-head .section-title {
    max-width: none;
}

.content-section .testimonial-card {
    text-align: center;
}

.content-section .testimonial-card p,
.content-section .testimonial-card strong {
    max-width: none;
}

.content-section ul {
    padding-left: 1.25rem;
}

.content-section a {
    color: var(--link-on-light);
    font-weight: 600;
}

.content-section a:hover {
    color: var(--brand-red);
}

.page-cta-box {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--brand-red);
    border-radius: 8px;
    padding: 1.35rem 1.5rem;
    margin-top: 2.5rem;
    box-shadow: 0 8px 28px rgba(10, 22, 40, 0.07);
}

.image-panel {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.12);
    background: #fff;
}

.image-panel img {
    width: 100%;
    height: auto;
    display: block;
}

.image-panel.about-rcic-panel img {
    /* 80% of content width, centered; keep natural aspect ratio (avoid .image-panel img width:100% squash) */
    width: 80% !important;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin-inline: auto;
    display: block;
}

.image-panel.about-rcic-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.image-panel-caption {
    padding: 0.8rem 1rem;
    font-size: var(--fs-small);
    color: #35516b;
    background: #fff;
}

.about-rcic-panel .image-panel-caption {
    background: transparent;
    padding: 0.65rem 0 0;
}

.page-cta-box strong {
    color: var(--heading-on-light);
    display: block;
    margin-bottom: 0.35rem;
}

.services-hub-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
}

.services-hub-card:hover {
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.1);
}

.content-section .services-intro-full {
    max-width: none;
}

.services-hub-card h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--heading-on-light);
    margin: 0;
    line-height: 1.28;
}

.services-hub-card p {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--muted-on-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: none;
}

.services-hub-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: -1.4rem -1.4rem 0.9rem;
    padding: 0.9rem 1.05rem;
    background: #f4f7fb;
    border-bottom: 1px solid var(--border-soft);
}

.services-hub-icon-badge {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.1);
    border: 1px solid rgba(200, 16, 46, 0.18);
    flex: 0 0 2.65rem;
}

.services-hub-icon {
    font-size: 1.05rem;
    color: var(--brand-red);
    line-height: 1;
}

.services-hub-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 575px) {
    .services-hub-card__head {
        margin: -1.4rem -1.4rem 0.8rem;
        padding: 0.8rem 0.9rem;
    }
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-on-light);
    margin-bottom: 0.75rem;
}

.sidebar-card ul {
    color: var(--muted-on-light);
    line-height: 1.7;
    font-size: var(--fs-small);
    margin-bottom: 1rem;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-sidebar .services-hub-card p {
    max-width: none;
}

.service-sidebar .contact-form-module.card-form {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 28px rgba(10, 22, 40, 0.06);
}

.service-sidebar .contact-form-module h2 {
    color: var(--heading-on-light);
    font-family: var(--font-heading);
    font-size: 1.06rem;
}

.service-sidebar .contact-form-module .text-muted {
    color: var(--muted-on-light) !important;
}

.service-sidebar .contact-form-module .form-control,
.service-sidebar .contact-form-module .form-select {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    color: var(--text-on-light);
}

.service-sidebar .contact-form-module .form-control:focus,
.service-sidebar .contact-form-module .form-select:focus {
    background: var(--surface-white);
    color: var(--text-on-light);
    border-color: var(--brand-red);
}

.service-sidebar .contact-form-module .form-label {
    color: var(--subheading-on-light);
}

@media (max-width: 991px) {
    .service-sidebar {
        margin-top: 1rem;
    }
}

.btn-outline-brand {
    border: 2px solid var(--brand-blue-650) !important;
    color: var(--heading-on-light) !important;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.btn-outline-brand:hover {
    background: var(--surface-muted) !important;
    border-color: var(--brand-red) !important;
    color: var(--brand-red) !important;
}

.btn-outline-brand:focus,
.btn-outline-brand:focus-visible,
.btn-outline-brand:active,
.btn-outline-brand.active,
.btn-check:active + .btn-outline-brand,
.btn-check:checked + .btn-outline-brand {
    background: var(--surface-muted) !important;
    border-color: var(--brand-red) !important;
    color: var(--brand-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.12) !important;
}

@media (min-width: 992px) {
    .sidebar-sticky {
        position: sticky;
        top: 1.25rem;
    }
}

/* =====================================================================
   Service page rich content components
   ===================================================================== */

.service-fact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.service-fact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-soft);
    border-radius: 100px;
    padding: 0.28rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--heading-on-light);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.service-fact-pill i {
    color: var(--brand-red);
    font-size: 0.88rem;
}

.service-page-note {
    font-size: 0.82rem;
    color: var(--muted-on-light);
    border-top: 1px solid var(--border-soft);
    padding-top: 1.25rem;
    margin-top: 2.5rem;
    line-height: 1.75;
}

/* Contact page light section */
.contact-main {
    background: var(--surface-page);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: visible;
}

.contact-prep-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 1.35rem;
    color: var(--text-on-light);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}

.contact-prep-card h2,
.contact-prep-card h3 {
    font-family: var(--font-heading);
    color: var(--heading-on-light);
}

.contact-prep-card p {
    color: var(--muted-on-light);
}

.contact-prep-card a {
    color: var(--link-on-light);
    font-weight: 600;
}

.contact-prep-card a:hover {
    color: var(--brand-red);
}

.letter-spacing-tight {
    letter-spacing: 0.04em;
}

.contact-main .contact-aside-card__map {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    padding-top: 0.25rem;
}

.contact-main .contact-aside-card__map-inner {
    position: relative;
    min-height: 240px;
}

.contact-main .contact-aside-card__map .contact-aside-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (min-width: 992px) {
    .contact-main .contact-aside-media img {
        max-height: 240px;
        width: 100%;
        object-fit: cover;
        object-position: center 25%;
    }

    .contact-main .contact-main-row > .col-lg-5 > .contact-aside-card {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .contact-main .contact-aside-card__map {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        margin-top: 1.75rem;
        margin-bottom: 1.5rem;
        padding-top: 0.35rem;
    }

    .contact-main .contact-aside-card__map-inner {
        flex: 1 1 auto;
        min-height: 280px;
    }

    .contact-main .contact-main-row > .col-lg-7 > .contact-prep-card {
        flex: 0 0 auto;
        min-height: 0;
    }
}

.contact-main .card-form,
form.contact-form-module.card-form {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 28px rgba(10, 22, 40, 0.06);
}

.contact-main .form-control,
.contact-main .form-select,
form.contact-form-module .form-control,
form.contact-form-module .form-select {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    color: var(--text-on-light);
}

.contact-main .form-control:focus,
.contact-main .form-select:focus,
form.contact-form-module .form-control:focus,
form.contact-form-module .form-select:focus {
    background: var(--surface-white);
    color: var(--text-on-light);
    border-color: var(--brand-red);
}

.contact-main .form-label,
form.contact-form-module .form-label {
    color: var(--subheading-on-light);
}

.contact-main .contact-form-block .text-muted,
form.contact-form-module .text-muted {
    color: var(--muted-on-light) !important;
}

.contact-main .contact-form-block h2,
form.contact-form-module h2 {
    color: var(--heading-on-light);
    font-family: var(--font-heading);
}

.contact-field-legend .contact-field-icon--required {
    color: var(--brand-red);
    font-size: 0.65rem;
    vertical-align: middle;
}

.contact-field-legend .contact-field-icon--optional {
    color: var(--muted-on-light);
    font-size: 0.7rem;
    vertical-align: middle;
}

.contact-main .form-label-with-indicator,
form.contact-form-module .form-label-with-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.contact-main .field-indicator,
form.contact-form-module .field-indicator {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.contact-main .field-indicator--required,
form.contact-form-module .field-indicator--required {
    color: var(--brand-red);
    font-size: 0.6rem;
}

.contact-main .field-indicator--optional,
form.contact-form-module .field-indicator--optional {
    color: var(--muted-on-light);
    font-size: 0.72rem;
}

.consultation-form h2,
.consultation-form h3 {
    color: var(--heading-on-light);
}

.consultation-note {
    color: var(--muted-on-light);
}

.slot-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.9rem;
    height: 100%;
}

.slot-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--subheading-on-light);
}

.contact-map-embed {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 32px rgba(10, 22, 40, 0.1);
}

.contact-map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991px) {
    .hero-with-banner {
        min-height: 440px;
    }

    .brand-logo {
        max-height: 123px;
        max-width: 280px;
    }

    .service-row {
        flex-direction: column;
    }

    .top-strip .container {
        flex-direction: column;
        text-align: center;
    }

    .top-strip-social {
        justify-content: center;
        width: 100%;
    }

    .top-strip-contact {
        justify-content: center;
        width: 100%;
    }
}

/* About page — richer layout (left column & full-width strips only) */
.about-main .lead {
    max-width: 75ch;
    color: var(--heading-on-light);
}

.about-stats-row {
    --about-stat-bg: #f7fafd;
}

.about-stat-card {
    background: var(--about-stat-bg);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.04);
}

.about-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1.15;
}

.about-stat-label {
    display: block;
    font-size: var(--fs-small);
    color: var(--muted-on-light);
    margin-top: 0.35rem;
    line-height: 1.35;
}

.about-highlight {
    background: rgba(200, 16, 46, 0.05);
    border-left: 4px solid var(--brand-red);
    border-radius: 0 8px 8px 0;
    padding: 1.1rem 1.25rem;
    font-size: var(--fs-body);
    color: #2a435d;
}

.about-mini-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.1rem 1.15rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-mini-card:hover {
    border-color: rgba(200, 16, 46, 0.22);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
}

.about-mini-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.1);
    color: var(--brand-red);
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
}

.about-mini-card .h6 {
    font-family: var(--font-heading);
    color: var(--heading-on-light);
}

.about-mini-card p {
    max-width: none;
}

.about-checklist li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
    font-size: var(--fs-body);
    line-height: 1.65;
    max-width: 75ch;
}

.about-checklist li:last-child {
    margin-bottom: 0;
}

.about-checklist .bi-check2-circle {
    color: var(--brand-red);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Text container inside checklist items — keeps label+body as one block */
.about-checklist li > div {
    flex: 1;
    min-width: 0;
    display: block; /* avoid any flex/grid fragmentation of mixed text + strong nodes */
}

/* Two-line labeled checklist items: bold label on its own line */
.about-checklist li > div > strong:first-child {
    display: block;
    color: var(--heading-on-light);
    margin-bottom: 0.1rem;
    font-weight: 700;
}

/* Body copy after the title line — keeps inline emphasis from breaking into columns */
.about-checklist li > div > .about-checklist__body {
    display: block;
}

.about-checklist li > div > .about-checklist__body strong {
    display: inline;
    font-weight: 700;
    color: var(--heading-on-light);
}

/* Any strong that is not the first child of the cell must stay inline (fixes split words) */
.about-checklist li > div > strong:not(:first-child) {
    display: inline;
    font-weight: 700;
}

/* Province/program card grid for PNP page */
.province-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.15rem 1.2rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.province-card:hover {
    border-color: rgba(200, 16, 46, 0.22);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
}

.province-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-on-light);
    margin-bottom: 0.2rem;
}

.province-card__program {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-red);
    margin-bottom: 0.65rem;
}

.province-card__streams {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    color: var(--muted-on-light);
}

.province-card__streams li {
    padding: 0.18rem 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.province-card__streams li:last-child {
    border-bottom: 0;
}

.province-card__streams li::before {
    content: "›";
    color: var(--brand-red);
    font-weight: 700;
    flex-shrink: 0;
}

.province-card .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
}

.province-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.pnp-province-actions .btn {
    font-size: 0.875rem;
}

/* PNP page: “Choosing the right province” + “Documents typically needed” side by side */
.pnp-side-by-side-panels__inner {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
}

.pnp-side-by-side-panels__inner > h2 {
    color: var(--heading-on-light);
    font-family: var(--font-heading);
    line-height: 1.3;
}

.pnp-side-by-side-panels .about-checklist li {
    max-width: none;
}

.about-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: aboutstep;
}

.about-step-list > li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
    max-width: none;
}

.about-step-list > li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.about-step-list__num {
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.12);
    color: var(--brand-red);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.about-reality-strip {
    background: #edf2f8;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.about-pill-card {
    background: #fff;
    border: 1px solid rgba(10, 22, 40, 0.08);
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
    height: 100%;
    box-shadow: 0 4px 18px rgba(10, 22, 40, 0.05);
}

.about-pill-card__icon {
    font-size: 1.35rem;
    color: var(--brand-red);
    display: block;
    margin-bottom: 0.5rem;
}

.about-pill-card h3 {
    font-family: var(--font-heading);
    color: var(--heading-on-light);
    margin-bottom: 0.45rem;
}

.about-pill-card p {
    color: var(--muted-on-light);
    max-width: none;
}

.testimonial-card--rich {
    position: relative;
    padding-top: 2.25rem;
}

.testimonial-card__quote {
    position: absolute;
    top: 0.65rem;
    right: 1rem;
    font-size: 2rem;
    line-height: 1;
    color: rgba(200, 16, 46, 0.2);
}

.testimonial-card--rich p {
    position: relative;
    z-index: 1;
}

/* FAQ page — single stacked block, no gaps between rows; header/body flush (no white seam) */
.faq-accordion {
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-white);
    box-shadow: 0 4px 18px rgba(10, 22, 40, 0.06);
    padding: 0;
}

.faq-accordion .accordion-item {
    margin: 0 !important;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
    overflow: visible;
    background: transparent;
}

.faq-accordion .accordion-item:last-child {
    border-bottom: none;
}

.faq-accordion .accordion-button {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-on-light);
    background: #f6f9fc;
    box-shadow: none !important;
    border: none;
    border-left: 4px solid transparent;
    border-radius: 0;
    padding: 1rem 1.15rem;
    /* Avoid delayed paint: no inset shadow, no transition on border-left (Bootstrap animates box-shadow) */
    transition-property: background-color, color;
    transition-duration: 0.12s;
}

/* Open question: neutral panel + left accent — border paints immediately on click */
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--heading-on-light);
    background: #e9eff6;
    border-bottom: 1px solid var(--border-soft);
    border-left-color: var(--brand-red);
}

.faq-accordion .accordion-header {
    margin: 0 !important;
}

.faq-accordion .accordion-button.collapsed {
    border-bottom: none;
}

.faq-accordion .accordion-button::after {
    filter: opacity(0.75);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none !important;
    z-index: 1;
}

/* Do not use border-color: transparent here — it cleared the red left bar until focus moved */
.faq-accordion .accordion-button:focus-visible {
    outline: 2px solid rgba(200, 16, 46, 0.45);
    outline-offset: 2px;
}

/* Remove Bootstrap collapse gap / white line between trigger and panel */
.faq-accordion .accordion-collapse {
    border: none !important;
    margin: 0 !important;
}

.faq-accordion .accordion-body {
    color: #2a435d;
    line-height: 1.75;
    max-width: none;
    margin: 0;
    padding: 1rem 1.15rem 1.15rem;
    /* Answer panel: pure white; hairline divider from question row */
    background: #ffffff;
    border-top: 1px solid rgba(10, 22, 40, 0.06);
}

.faq-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Services hub page */
.services-page-intro .lead {
    max-width: 75ch;
    color: var(--heading-on-light);
}

.services-trust-card {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-trust-card:hover {
    border-color: rgba(200, 16, 46, 0.2);
    box-shadow: 0 8px 26px rgba(10, 22, 40, 0.08);
}

.services-trust-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--brand-red);
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
}

.services-trust-card h3 {
    font-family: var(--font-heading);
    color: var(--heading-on-light);
}

.services-trust-card p {
    color: var(--muted-on-light);
    max-width: none;
}

.services-hub-card--elevated {
    box-shadow: 0 6px 22px rgba(10, 22, 40, 0.07);
}

/* Blog (public) */
.blog-card .stretched-link::after {
    z-index: 1;
}

/* Blog home: left list + right sidebar */
.blog-home-layout .service-sidebar {
    position: sticky;
    top: 1.25rem;
}

.blog-home-list {
    border-top: 1px solid var(--border-soft);
}

.blog-home-item {
    display: grid;
    grid-template-columns: minmax(220px, 36%) 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-soft);
    min-height: 230px;
}

.blog-home-item__media {
    display: block;
    align-self: center;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1200 / 630;
    background: #eef2f6;
}

.blog-home-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-home-item__title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.26;
    margin: 0 0 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-home-item__title a {
    color: var(--heading-on-light);
}

.blog-home-item__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.blog-home-item__excerpt {
    margin: 0 0 0.75rem;
    color: var(--muted-on-light);
    font-size: var(--fs-body);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.7em * 3);
}

.blog-home-item__meta {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
    width: 100%;
}

.blog-home-item__author-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.blog-home-item__author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
}

.blog-home-item__author-avatar--placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    color: var(--brand-blue-600);
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
}

.blog-home-item__author {
    color: #667586;
    font-size: 0.82rem;
    line-height: 1.25;
    text-align: left;
}

.blog-home-item__date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #7b8897;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-home-item__date-icon {
    font-size: 0.95rem;
    opacity: 0.88;
}

.blog-home-item__date {
    display: inline;
    text-align: inherit;
    color: inherit;
    font-size: inherit;
    letter-spacing: inherit;
}

@media (max-width: 991.98px) {
    .blog-home-layout .service-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .blog-home-item {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        min-height: 0;
    }

    .blog-home-item__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ——— Single blog post: distinct title / summary / meta / body (matches sidebar card language) ——— */
.blog-post-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-soft);
}

.blog-post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: var(--ls-heading);
    color: var(--heading-on-light);
    margin: 0;
}

.blog-post-summary {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem 1.05rem 1.25rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--brand-red);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.04);
}

.blog-post-summary__text {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.65;
    color: var(--subheading-on-light);
    font-style: italic;
}

.blog-post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.35rem;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(10, 22, 40, 0.06);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-on-light);
}

.blog-post-meta-bar__item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--heading-on-light);
}

.blog-post-meta-bar__item--author {
    gap: 0.55rem;
}

.blog-post-meta-bar__byline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.35rem;
}

.blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
}

.blog-author-avatar--placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    color: var(--brand-blue-600);
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
}

.blog-post-meta-bar__item .bi {
    font-size: 1.05rem;
    color: var(--brand-blue-600);
    flex-shrink: 0;
}

.blog-post-meta-bar__label {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-on-light);
}

.blog-post-meta-bar__divider {
    display: inline-block;
    width: 1px;
    height: 1.25rem;
    background: var(--border-soft);
    margin: 0 0.35rem;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .blog-post-meta-bar__divider {
        display: none;
    }

    .blog-post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .blog-post-meta-bar__item {
        width: 100%;
    }
}

.blog-post-taxonomy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem 1.25rem;
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.blog-post-taxonomy__group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.blog-post-taxonomy__group--tags .blog-post-taxonomy__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.blog-post-taxonomy__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-on-light);
    margin-right: 0.15rem;
}

.blog-post-taxonomy__link {
    text-decoration: none;
    font-weight: 500;
    color: var(--accent, #0d6efd);
    border-bottom: 1px solid transparent;
}

.blog-post-taxonomy__link:hover {
    border-bottom-color: currentColor;
}

.blog-post-taxonomy__link--tag {
    font-weight: 500;
}

.blog-post-featured {
    margin: 0 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
    background: var(--surface-white);
}

.blog-post-featured__img {
    display: block;
    border-radius: 0;
}

.blog-post-article {
    margin-top: 0.25rem;
    padding: 1.35rem 1.25rem 1.5rem;
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(10, 22, 40, 0.06);
}

.blog-post-article .blog-content > *:first-child {
    margin-top: 0;
}

@media (max-width: 575.98px) {
    .blog-post-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .blog-post-summary {
        padding: 0.85rem 0.95rem 0.9rem 1rem;
        margin-bottom: 1rem;
    }

    .blog-post-article {
        padding: 1.1rem 1rem 1.25rem;
        border-radius: 10px;
    }

    .blog-post-featured {
        border-radius: 10px;
    }
}

.blog-content {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-on-light);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: var(--font-heading);
    color: var(--heading-on-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-content a {
    color: var(--link-on-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content blockquote {
    border-left: 4px solid var(--brand-red-muted);
    padding-left: 1rem;
    margin: 1.25rem 0;
    color: var(--muted-on-light);
}

/* Blog post: social share strip */
.blog-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    border-top: 2px solid var(--line);
}
.blog-share__label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--heading-on-light);
    white-space: nowrap;
    margin-right: 0.25rem;
}
.blog-share__icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.blog-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Bootstrap link colours must not win over icon glyphs */
    color: #fff !important;
}
.blog-share__link i,
.blog-share__link .bi {
    color: inherit !important;
}
.blog-share__link:hover,
.blog-share__link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    color: #fff !important;
}
.blog-share__link:active {
    transform: translateY(0);
}
.blog-share__link--facebook  { background: #1877f2; }
.blog-share__link--x         { background: #000000; }
.blog-share__link--linkedin  { background: #0a66c2; }
.blog-share__link--whatsapp  { background: #25d366; }
.blog-share__link--email     { background: #555; }
.blog-share__link--copy      { background: #495057; }

.blog-copy-feedback {
    flex-basis: 100%;
    margin: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--heading-on-light, #1a1a1a);
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.35);
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.blog-copy-feedback--visible {
    opacity: 1;
    transform: translateY(0);
}

button.blog-share__link {
    padding: 0;
    border: none;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}
button.blog-share__link:focus-visible {
    outline: 2px solid var(--brand-red, #c41e3a);
    outline-offset: 2px;
}

/* Blog post: previous / next (matches share strip + article cards) */
.blog-post-adjacent {
    margin-top: 0;
    padding: 1.35rem 0 0;
    border-top: 2px solid var(--line);
}

.blog-post-adjacent__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: stretch;
}

.blog-post-adjacent__cell {
    display: flex;
    min-width: 0;
}

.blog-post-adjacent__cell--next {
    text-align: right;
}

.blog-post-adjacent__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
    height: 100%;
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--surface-white);
    box-shadow: 0 2px 10px rgba(10, 22, 40, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-adjacent__link:hover {
    border-color: var(--brand-red-muted);
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.08);
}

.blog-post-adjacent__link--next {
    align-items: flex-end;
    text-align: right;
}

.blog-post-adjacent__dir {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-on-light);
}

.blog-post-adjacent__dir .bi {
    font-size: 0.85em;
    vertical-align: -0.05em;
}

.blog-post-adjacent__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--heading-on-light);
}

.blog-post-adjacent__link:hover .blog-post-adjacent__title {
    color: var(--link-on-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
    .blog-post-adjacent__grid {
        grid-template-columns: 1fr;
    }

    .blog-post-adjacent__cell--next {
        text-align: left;
    }

    .blog-post-adjacent__link--next {
        align-items: flex-start;
        text-align: left;
    }
}

.blog-post-back {
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.blog-post-adjacent--footer {
    margin-top: 1.5rem;
}

/* Homepage newsletter */
.newsletter-section {
    background: #f6f8fb;
}

.newsletter-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 1.65rem;
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.05);
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.4vw + 0.65rem, 1.65rem);
    line-height: 1.2;
    color: var(--heading-on-light);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.newsletter-form .form-control {
    min-height: 50px;
    border: 1px solid #d4deea;
    background-color: #eaf0f7;
    color: #1a2d42;
}

.newsletter-form .form-control::placeholder {
    color: #5a6f88;
}

.newsletter-form .form-control:focus {
    background: #eef3f9;
    color: #1a2d42;
    border-color: #aebfd4;
    box-shadow: 0 0 0 0.2rem rgba(26, 45, 66, 0.08);
}

#newsletterPopupModal .newsletter-form .form-control {
    background-color: #eaf0f7;
    border: 1px solid #d4deea;
    color: #1a2d42;
}

#newsletterPopupModal .newsletter-form .form-control::placeholder {
    color: #5a6f88;
}

.newsletter-form .btn {
    min-width: 130px;
    min-height: 50px;
}

.newsletter-form .input-group {
    box-shadow: 0 1px 4px rgba(10, 22, 40, 0.05);
    border-radius: 10px;
}

.newsletter-form .input-group > .form-control,
.newsletter-form .input-group > .btn {
    height: 50px;
}

.newsletter-feedback {
    display: none;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.newsletter-feedback.is-success,
.newsletter-feedback.is-error {
    display: block;
}

.newsletter-feedback.is-success {
    background: #e8f4ee;
    border: 1px solid #b8dac7;
    color: #1e5b3c;
}

.newsletter-feedback.is-error {
    background: #fcecef;
    border: 1px solid #efc2cb;
    color: #8c1f35;
}

#newsletterPopupModal .modal-content {
    border: 1px solid #d5dfeb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(10, 22, 40, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

#newsletterPopupModal .modal-dialog {
    max-width: min(680px, calc(100vw - 1.5rem));
}

#newsletterPopupModal .modal-header {
    padding: 1.1rem 1.35rem 0.65rem;
    position: relative;
    padding-right: 3.2rem;
}

#newsletterPopupModal .modal-header .btn-close {
    margin: 0;
    padding: 0.35rem;
    position: absolute;
    top: 0.95rem;
    right: 1rem;
    transform: none;
}

#newsletterPopupModal .newsletter-popup__header {
    position: relative;
}

#newsletterPopupModal .newsletter-popup__header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red) 0%, #f04f69 45%, #f8a8b6 100%);
}

#newsletterPopupModal .newsletter-popup__kicker {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 0.35rem;
}

#newsletterPopupModal .modal-body {
    padding: 0.1rem 1.35rem 1.25rem;
}

#newsletterPopupModal .modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--heading-on-light);
    line-height: 1.2;
}

#newsletterPopupModal .newsletter-popup__lead {
    font-size: 1rem;
    color: var(--muted-on-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

#newsletterPopupModal .newsletter-popup__form-shell {
    background: #eef4fa;
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
}

#newsletterPopupModal .newsletter-popup__caption {
    display: block;
    font-size: 0.86rem;
    color: #58708b;
    margin-top: 0.55rem;
    line-height: 1.45;
}

#newsletterPopupModal .newsletter-popup__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.1rem;
    margin-top: 0.95rem;
    font-size: 0.86rem;
    color: #4e667f;
    align-items: center;
}

#newsletterPopupModal .newsletter-popup__meta i {
    color: var(--brand-red);
    margin-right: 0.25rem;
}

/* Blog sidebar: category / month filters (dropdown + checkboxes) */
.service-sidebar .form-control,
.service-sidebar .form-select {
    background: #eaf0f7;
    border: 1px solid #d4deea;
    color: #1a2d42;
}

.service-sidebar .form-control::placeholder {
    color: #5a6f88;
}

.service-sidebar .form-control:focus,
.service-sidebar .form-select:focus {
    background: #eef3f9;
    color: #1a2d42;
    border-color: #aebfd4;
    box-shadow: 0 0 0 0.2rem rgba(26, 45, 66, 0.08);
}

/* Blog index: posts-per-page (main column) — same light field look as sidebar filters */
/* White field so it reads clearly on the pale content-section background */
.content-section .blog-per-page-form .form-select {
    background: #fff;
    border: 1px solid #d4deea;
    color: #1a2d42;
}

.content-section .blog-per-page-form .form-select:focus {
    background: #fff;
    color: #1a2d42;
    border-color: #aebfd4;
    box-shadow: 0 0 0 0.2rem rgba(26, 45, 66, 0.08);
}

.blog-sidebar-filter-dropdown .blog-sidebar-filter-dropdown__btn {
    background: #eaf0f7;
    border: 1px solid #d4deea;
    color: #1a2d42;
}

.blog-sidebar-filter-dropdown .blog-sidebar-filter-dropdown__btn:hover,
.blog-sidebar-filter-dropdown .blog-sidebar-filter-dropdown__btn:active,
.blog-sidebar-filter-dropdown .blog-sidebar-filter-dropdown__btn.show {
    background: #e5edf6;
    border-color: #c8d4e4;
    color: #1a2d42;
}

.blog-sidebar-filter-dropdown .blog-sidebar-filter-dropdown__btn:focus {
    background: #eef3f9;
    color: #1a2d42;
    border-color: #aebfd4;
    box-shadow: 0 0 0 0.2rem rgba(26, 45, 66, 0.08);
}

.blog-sidebar-filter-dropdown .dropdown-menu {
    max-height: 240px;
    overflow-y: auto;
}

.blog-sidebar-filter-dropdown .blog-sidebar-filter-dropdown__btn.dropdown-toggle::after {
    flex-shrink: 0;
    margin-left: 0.35rem;
}
