:root {
    --app-bg: #f3f6fb;
    --app-bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --text-main: #112036;
    --text-muted: #61748b;
    --border: #081021;
    --primary: #1f4a6a;
    --primary-2: #2c5f7f;
    --success: #16a34a;
    --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.12);
    --shadow-md: 0 10px 24px rgba(12, 33, 61, 0.1);
}

html[data-theme="dark"] {
    --app-bg: #0b1220;
    --app-bg-soft: #10192d;
    --surface: #121d33;
    --surface-2: #15233d;
    --text-main: #e9f0fb;
    --text-muted: #a7bbd5;
    --border: #25385a;
    --primary: #7fa6c1;
    --primary-2: #5f87a2;
    --success: #4ade80;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body {
    color: var(--text-main);
    background: radial-gradient(1200px 500px at 100% -10%, rgba(31, 41, 55, 0.12), transparent 55%),
                radial-gradient(900px 400px at 0% 0%, rgba(71, 85, 105, 0.1), transparent 50%),
                var(--app-bg);
    transition: background-color .25s ease, color .25s ease;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        url("../images/bg.png");
    background-repeat: repeat;
    background-size: auto, 620px 620px;
    opacity: 1;
}

/* Unify exam cards image area in /exams and home popular exams */
#examsGrid .exam-image,
#popularExamsGrid .exam-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

#examsGrid .exam-image img,
#popularExamsGrid .exam-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

@media (max-width: 767.98px) {
    #examsGrid .exam-image,
    #popularExamsGrid .exam-image {
        height: 200px;
    }
}

html[data-theme="dark"] body::before {
    background-image:
        linear-gradient(rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0.9)),
        url("../images/bg.png");
    background-size: auto, 620px 620px;
    filter: invert(1) contrast(0.9);
    opacity: 0.2;
}

.bg-man-body {
    background: transparent;
}

.header {
    background: transparent !important;
    border-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 0;
    padding-top: 8px;
}

.hero-banner-slot {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    min-width: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.navbar.bg-man-blue {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 0;
}

html[data-theme="dark"] .navbar.bg-man-blue {
    background: transparent !important;
    border: 0 !important;
}

.header .navbar > .container {
    background: linear-gradient(120deg, #ffffff, #f7f9fc) !important;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: .45rem .85rem;
    min-height: 62px;
}

.navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    min-width: 0;
}

.navbar-collapse > .navbar-nav {
    min-width: 0;
}

.navbar-collapse > .navbar-nav.me-auto {
    flex: 1 1 auto;
    flex-wrap: nowrap;
}

.navbar-collapse > .navbar-nav:last-child {
    flex: 0 0 auto;
    align-items: center;
    gap: .1rem;
}

.navbar .nav-item {
    min-width: 0;
}

html[data-theme="dark"] .header .navbar > .container {
    background: linear-gradient(120deg, #0f172a, #1f2937) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar .nav-link {
    color: #1f2f44 !important;
    font-weight: 600;
    border-radius: 10px;
    padding: .5rem .8rem !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: rgba(31, 47, 68, 0.08);
}

html[data-theme="dark"] .navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="dark"] .navbar .nav-link:hover,
html[data-theme="dark"] .navbar .nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
}

.navbar.bg-man-blue img {
    height: 52px !important;
    width: auto;
    margin-left: 10px !important;
}

.nav-short-label {
    display: none;
}

@media (max-width: 1699.98px) {
    .navbar .nav-link {
        font-size: .9rem;
        padding: .42rem .5rem !important;
    }

    .nav-long-label {
        display: none;
    }

    .nav-short-label {
        display: inline;
    }

    .navbar.bg-man-blue img {
        height: 48px !important;
    }

    .navbar-collapse > .navbar-nav:last-child .nav-link {
        padding-inline: .4rem !important;
    }
}

@media (max-width: 1399.98px) {
    .navbar .nav-link {
        font-size: .86rem;
        padding: .38rem .42rem !important;
    }

    .header .navbar > .container {
        padding: .38rem .65rem;
    }

    .navbar-collapse {
        gap: .2rem;
    }

    .navbar-collapse > .navbar-nav:last-child .nav-link {
        padding-inline: .32rem !important;
    }
}

@media (max-width: 1199.98px) {
    .header .navbar > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        row-gap: .35rem;
        padding: .45rem .65rem;
    }

    .navbar.bg-man-blue img {
        order: 2;
        height: 46px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .navbar-toggler {
        order: 1;
        border: 1px solid #0d1e35 !important;
        background: #ffffff !important;
        border-radius: 10px;
        width: 42px;
        height: 42px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    html[data-theme="dark"] .navbar-toggler {
        background: #0f1d35 !important;
        border-color: #2f4569 !important;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 .16rem rgba(31, 74, 106, .2);
    }

    #navbarNav {
        order: 3;
        flex-basis: 100%;
    }

    .navbar-collapse {
        display: none !important;
        min-width: 100% !important;
        background: linear-gradient(145deg, #f8fbff, #eef4fb);
        border: 1px solid #d4deea;
        border-radius: 12px;
        padding: .55rem;
        margin-top: .2rem;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        display: block !important;
    }

    html[data-theme="dark"] .navbar-collapse {
        background: linear-gradient(145deg, #102039, #152a49);
        border-color: #2d4568;
    }

    .navbar-collapse > .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .3rem .4rem;
        align-items: stretch;
    }

    .navbar-collapse > .navbar-nav.me-auto {
        margin: 0 !important;
    }

    .navbar-collapse > .navbar-nav:last-child {
        margin-top: .45rem;
        padding-top: .45rem;
        border-top: 1px solid rgba(16, 33, 56, 0.12);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .3rem .4rem;
    }

    html[data-theme="dark"] .navbar-collapse > .navbar-nav:last-child {
        border-top-color: rgba(187, 209, 240, 0.2);
    }

    .navbar .nav-item {
        min-width: 0;
    }

    .navbar .nav-link {
        width: 100% !important;
        justify-content: center;
        text-align: center;
        white-space: normal;
        min-height: 42px;
        padding: .5rem .55rem !important;
        border: 1px solid rgba(11, 29, 53, 0.12);
        background: rgba(255, 255, 255, 0.7);
        border-radius: 10px;
    }

    html[data-theme="dark"] .navbar .nav-link {
        background: rgba(12, 27, 49, 0.68);
        border-color: rgba(168, 192, 227, 0.24);
    }

    .navbar .dropdown-toggle {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 1199.98px) and (max-height: 560px) {
    .header .navbar > .container {
        padding: .4rem .55rem;
    }

    .navbar-collapse > .navbar-nav,
    .navbar-collapse > .navbar-nav:last-child {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .navbar .nav-link {
        min-height: 38px;
        font-size: .86rem;
        padding: .38rem .45rem !important;
    }
}

.theme-toggle-btn {
    border: 1px solid #cfd9e5;
    background: #eef3f8;
    color: #1f2f44;
    border-radius: 10px;
    padding: .4rem .65rem;
    line-height: 1;
}

.theme-toggle-btn:hover {
    background: #e4ebf3;
    color: #142235;
}

#themeToggleBtn.theme-toggle-floating {
    position: fixed;
    left: 10px;
    top: 38%;
    transform: translateY(-50%);
    min-width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #cfd9e5;
    background: linear-gradient(160deg, #ffffff, #edf3f9);
    color: #10243e;
    box-shadow: 0 8px 18px rgba(7, 17, 33, 0.18);
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: 0 .75rem;
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

#themeToggleBtn.theme-toggle-floating:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 12px 24px rgba(7, 17, 33, 0.24);
    background: linear-gradient(160deg, #f8fbff, #e8f1fb);
}

#themeToggleBtn .theme-toggle-label {
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

html[data-theme="dark"] #themeToggleBtn.theme-toggle-floating {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(160deg, #0f1b2f, #14253e);
    color: #f3f7ff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] #themeToggleBtn.theme-toggle-floating:hover {
    background: linear-gradient(160deg, #12233a, #193050);
}

@media (max-width: 991.98px) {
    #themeToggleBtn.theme-toggle-floating {
        left: 10px;
        top: auto;
        bottom: 88px;
        transform: none;
        min-width: 42px;
        height: 42px;
        border-radius: 12px;
        padding: 0 .55rem;
        z-index: 1090;
    }

    #themeToggleBtn.theme-toggle-floating:hover {
        transform: scale(1.04);
    }

    #themeToggleBtn .theme-toggle-label {
        display: none;
    }

    .floating-wpp {
        left: 10px !important;
        right: auto !important;
        bottom: 140px !important;
        position: fixed !important;
        z-index: 1110 !important;
    }

    .floating-wpp .floating-wpp-button {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        position: relative !important;
        z-index: 1111 !important;
    }

    .floating-wpp:hover {
        bottom: 142px !important;
    }

    .floating-wpp .floating-wpp-popup.active {
        bottom: 54px;
    }

    html.exam-mode #themeToggleBtn.theme-toggle-floating,
    body.exam-mode #themeToggleBtn.theme-toggle-floating {
        display: none !important;
    }

    html.exam-mode #whatsapp.floating-wpp,
    body.exam-mode #whatsapp.floating-wpp {
        display: none !important;
    }

    html.exam-mode #whatsapp.floating-wpp:hover,
    body.exam-mode #whatsapp.floating-wpp:hover {
        display: none !important;
    }

    html.exam-mode #whatsapp.floating-wpp .floating-wpp-button,
    body.exam-mode #whatsapp.floating-wpp .floating-wpp-button {
        display: none !important;
    }
}

#languageDropdown {
    min-width: 2.1rem;
    justify-content: center;
    text-align: center;
}

.navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.dropdown-item {
    color: var(--text-main);
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: #081021 !important;
    color: #ffffff !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--surface-2);
    color: var(--text-main);
}

main.container {
    padding-top: 1.2rem !important;
}

.header .container {
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

.home-modern {
    position: relative;
    isolation: isolate;
}

.home-modern::before,
.home-modern::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    filter: blur(36px);
    opacity: .6;
}

.home-modern::before {
    width: 420px;
    height: 420px;
    top: 40px;
    right: -120px;
    background: radial-gradient(circle, rgba(76, 110, 245, 0.18) 0%, rgba(76, 110, 245, 0) 70%);
}

.home-modern::after {
    width: 360px;
    height: 360px;
    bottom: 120px;
    left: -140px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, rgba(34, 197, 94, 0) 70%);
}

.home-modern section > .container {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 1.8rem 1.4rem;
    position: relative;
    overflow: hidden;
}

.home-modern section > .container::before {
    content: "";
    position: absolute;
    top: -55px;
    left: -55px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 74, 106, 0.12) 0%, rgba(31, 74, 106, 0) 70%);
}

.home-modern section:last-child > .container {
    padding: 2rem 1.4rem;
}

.home-modern .hero-section > .home-journey-shell {
    padding: 1rem;
    border-radius: 24px;
    background:
        radial-gradient(340px 200px at 0% 0%, rgba(39, 87, 153, 0.16), transparent 70%),
        radial-gradient(300px 180px at 100% 100%, rgba(16, 185, 129, 0.12), transparent 72%),
        linear-gradient(155deg, #e8eef6 0%, #dbe4f0 100%);
    border: 1px solid #14243e;
    box-shadow: 0 18px 44px rgba(8, 16, 33, 0.2);
}

.home-journey-header {
    margin-bottom: .85rem;
}

.home-journey-kicker {
    display: inline-flex;
    padding: .3rem .72rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #173a63;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 58, 99, 0.22);
}

.home-journey-title {
    margin: .55rem 0 .4rem;
    font-size: clamp(1.75rem, 2.6vw, 2.6rem);
    font-weight: 800;
    color: #102846;
    line-height: 1.22;
}

.home-journey-subtitle {
    margin: 0;
    color: #325174;
    font-size: clamp(.95rem, 1.1vw, 1.12rem);
}

.home-journey-flow {
    position: relative;
    display: grid;
    gap: .58rem;
    padding: .35rem 0 .35rem .65rem;
}

.home-journey-flow::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    right: 18px;
    width: 2px;
    background: linear-gradient(180deg, #376399, #3d7ab1);
    opacity: .5;
}

.home-journey-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .6rem;
    align-items: start;
}

.home-journey-step-no {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #ecf5ff;
    background: linear-gradient(160deg, #12345b, #1c4b7e);
    border: 1px solid rgba(210, 229, 255, 0.3);
    box-shadow: 0 8px 16px rgba(12, 34, 64, 0.22);
    position: relative;
    z-index: 1;
}

.home-journey-step-content {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 44, 80, 0.16);
    border-radius: 12px;
    padding: .68rem .75rem;
}

.home-journey-step-content h4 {
    margin: 0 0 .2rem;
    font-size: 1rem;
    font-weight: 800;
    color: #122c4d;
}

.home-journey-step-content p {
    margin: 0;
    font-size: .9rem;
    color: #365474;
}

.home-journey-step-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .5rem;
    border-radius: 10px;
    padding: .44rem .72rem;
    font-size: .83rem;
    font-weight: 800;
    text-decoration: none;
    color: #f7fbff;
    background: linear-gradient(140deg, #104a7d, #1a5f9c);
    border: 1px solid rgba(245, 251, 255, 0.32);
    box-shadow: 0 8px 14px rgba(16, 74, 125, 0.25);
}

.home-journey-step-cta:hover {
    color: #fff;
    background: linear-gradient(140deg, #0e426f, #175488);
    text-decoration: none;
}

.home-journey-actions {
    margin-top: .8rem;
    display: flex;
    flex-wrap: wrap;
    gap: .62rem;
}

.home-journey-btn {
    border-radius: 11px;
    padding: .62rem 1.05rem;
    font-size: .97rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.home-journey-btn-primary {
    background: #113a64;
    color: #edf5ff;
    border-color: rgba(237, 245, 255, 0.25);
}

.home-journey-btn-primary:hover {
    background: #0f2f52;
    color: #fff;
}

.home-journey-btn-secondary {
    background: #ffc2c0;
    color: #331722;
    border-color: rgba(51, 23, 34, 0.24);
}

.home-journey-btn-secondary:hover {
    background: #ffb0ad;
    color: #2b1119;
}

.home-journey-media {
    height: 100%;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.home-journey-video-wrap {
    min-height: 310px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.home-journey-video {
    display: block;
    width: 100%;
    min-height: 310px;
    height: 100%;
    object-fit: cover;
}

.home-journey-video-wrap .hero-video-overlay {
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
}

.home-journey-video-wrap .hero-video-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.home-journey-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 14, 26, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.home-journey-play-indicator i {
    color: #fff;
    font-size: 1.45rem;
    margin-left: 3px;
}

.home-journey-metrics {
    margin-top: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.home-journey-metrics span {
    border-radius: 999px;
    padding: .3rem .62rem;
    font-size: .8rem;
    font-weight: 700;
    color: #e8f3ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-journey-metrics strong {
    font-weight: 800;
}

.home-modern .hero-section > .home-hero-shell.home-hero-shell-v4 {
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(150deg, #eef3fa 0%, #dde6f2 100%);
    border: 1px solid #12243f;
    box-shadow: 0 18px 42px rgba(8, 16, 33, 0.2);
}

.home-hero-v4-trustbar {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .85rem;
}

.home-hero-v4-trustbar span {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    font-size: .79rem;
    font-weight: 700;
    color: #123258;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(18, 50, 88, 0.2);
    border-radius: 999px;
    padding: .34rem .68rem;
}

.home-hero-v4-layout {
    --bs-gutter-x: .95rem;
}

.home-hero-v4-copy {
    height: 100%;
    border-radius: 18px;
    padding: clamp(1.25rem, 2.4vw, 2.1rem);
    background: linear-gradient(165deg, #0e223d 0%, #143058 55%, #122a4b 100%);
    border: 1px solid rgba(197, 218, 252, 0.24);
    box-shadow: 0 14px 30px rgba(7, 15, 29, 0.32);
    color: #edf4ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-v4-kicker {
    display: inline-flex;
    width: fit-content;
    padding: .32rem .74rem;
    border-radius: 999px;
    background: rgba(229, 237, 255, 0.12);
    border: 1px solid rgba(229, 237, 255, 0.3);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

.home-hero-v4-title {
    margin: 0 0 .65rem 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.16;
    font-weight: 800;
    color: #f5f9ff;
    max-width: 13ch;
}

.home-hero-v4-subtitle {
    margin: 0;
    font-size: clamp(1rem, 1.18vw, 1.28rem);
    line-height: 1.75;
    color: rgba(228, 238, 255, 0.92);
    max-width: 34ch;
}

.home-hero-v4-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.3rem;
}

.home-hero-v4-btn {
    border-radius: 11px;
    padding: .62rem 1.08rem;
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.home-hero-v4-btn-primary {
    background: #ffc2c0;
    color: #331722;
    border-color: rgba(51, 23, 34, 0.24);
    box-shadow: 0 8px 14px rgba(255, 194, 192, 0.25);
}

.home-hero-v4-btn-primary:hover {
    background: #ffb2af;
    color: #2b1119;
}

.home-hero-v4-btn-secondary {
    background: #72d6a3;
    color: #0f3022;
    border-color: rgba(15, 48, 34, 0.28);
    box-shadow: 0 8px 14px rgba(114, 214, 163, 0.24);
}

.home-hero-v4-btn-secondary:hover {
    background: #5ecb94;
    color: #0c281c;
}

.home-hero-v4-points {
    margin-top: 1.05rem;
    display: grid;
    gap: .45rem;
}

.home-hero-v4-points > div {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    font-size: .9rem;
    font-weight: 700;
    color: #e8f2ff;
}

.home-hero-v4-points i {
    color: #9ac0ff;
}

.home-hero-v4-media {
    height: 100%;
    border-radius: 18px;
    padding: 10px;
    background: linear-gradient(170deg, #0a1a31, #0f2748);
    border: 1px solid rgba(192, 214, 248, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(2, 8, 20, 0.34);
    display: flex;
    flex-direction: column;
}

.home-hero-v4-video-wrap {
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.home-hero-v4-video {
    display: block;
    width: 100%;
    min-height: 320px;
    height: 100%;
    object-fit: cover;
}

.home-hero-v4-stats {
    margin-top: .7rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.home-hero-v4-stats > div {
    text-align: center;
    border-radius: 10px;
    padding: .5rem .42rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #eaf3ff;
}

.home-hero-v4-stats strong {
    display: block;
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
}

.home-hero-v4-stats span {
    display: block;
    margin-top: .2rem;
    font-size: .75rem;
    font-weight: 700;
}

.home-modern .hero-section > .home-hero-shell.home-hero-shell-v3 {
    padding: 1rem;
    background:
        radial-gradient(260px 120px at 0% 0%, rgba(20, 56, 112, 0.15), transparent 70%),
        radial-gradient(280px 150px at 100% 100%, rgba(16, 185, 129, 0.14), transparent 72%),
        linear-gradient(140deg, #e9eff7 0%, #dfe8f4 100%);
    border: 1px solid #13243e;
    border-radius: 28px;
    box-shadow: 0 18px 46px rgba(8, 16, 33, 0.2);
}

.home-hero-v3-topline {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}

.home-hero-v3-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 800;
    color: #16345a;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(20, 51, 91, 0.22);
    border-radius: 999px;
    padding: .35rem .72rem;
}

.home-hero-v3-layout {
    --bs-gutter-x: .95rem;
}

.home-hero-v3-copy {
    height: 100%;
    border-radius: 20px;
    padding: clamp(1.25rem, 2.3vw, 2rem);
    background:
        radial-gradient(160px 120px at 100% 0%, rgba(255, 255, 255, 0.09), transparent 70%),
        linear-gradient(165deg, #0f2744 0%, #16375e 55%, #102948 100%);
    border: 1px solid rgba(200, 222, 255, 0.22);
    box-shadow: 0 14px 32px rgba(5, 12, 24, 0.3);
    color: #eef5ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-v3-kicker {
    display: inline-flex;
    width: fit-content;
    padding: .33rem .78rem;
    border-radius: 999px;
    background: rgba(226, 236, 255, 0.14);
    border: 1px solid rgba(226, 236, 255, 0.3);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .85rem;
}

.home-hero-v3-title {
    margin: 0 0 .7rem 0;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.15;
    font-weight: 800;
    color: #f7fbff;
    max-width: 13ch;
}

.home-hero-v3-subtitle {
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.28rem);
    color: rgba(230, 239, 255, 0.92);
    line-height: 1.78;
    max-width: 34ch;
}

.home-hero-v3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .68rem;
    margin-top: 1.35rem;
}

.home-hero-v3-btn {
    border-radius: 13px;
    padding: .64rem 1.15rem;
    font-size: 1.02rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.home-hero-v3-btn-primary {
    background: #ffc2c0;
    color: #3a1620;
    border-color: rgba(58, 22, 32, 0.25);
    box-shadow: 0 8px 16px rgba(255, 194, 192, 0.28);
}

.home-hero-v3-btn-primary:hover {
    background: #ffb1ae;
    color: #2e111a;
}

.home-hero-v3-btn-secondary {
    background: #72d6a3;
    color: #103123;
    border-color: rgba(16, 49, 35, 0.3);
    box-shadow: 0 8px 16px rgba(114, 214, 163, 0.24);
}

.home-hero-v3-btn-secondary:hover {
    background: #5fc996;
    color: #0d281c;
}

.home-hero-v3-badges {
    margin-top: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.home-hero-v3-badges span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .34rem .62rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: #eaf3ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-hero-v3-media-stage {
    height: 100%;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(168deg, #08162d, #0f2748);
    border: 1px solid rgba(185, 210, 250, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 32px rgba(2, 8, 20, 0.36);
    display: flex;
    flex-direction: column;
}

.home-hero-v3-video-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #02070f;
    min-height: 320px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
}

.home-hero-v3-video {
    display: block;
    width: 100%;
    min-height: 320px;
    height: 100%;
    object-fit: cover;
}

.home-hero-v3-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .7rem;
}

.home-hero-v3-stats > div {
    border-radius: 12px;
    padding: .52rem .45rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #eaf3ff;
}

.home-hero-v3-stats strong {
    display: block;
    line-height: 1;
    font-size: 1rem;
    font-weight: 800;
}

.home-hero-v3-stats span {
    display: block;
    margin-top: .2rem;
    font-size: .76rem;
    font-weight: 700;
}

.home-modern .hero-section > .home-hero-shell {
    border-radius: 26px;
    overflow: hidden;
}

.home-modern .hero-section > .home-hero-shell.home-hero-shell-v2 {
    padding: 1rem;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(71, 102, 178, 0.2), transparent 62%),
        radial-gradient(360px 170px at 0% 100%, rgba(16, 185, 129, 0.16), transparent 62%),
        linear-gradient(155deg, #dce4f1 0%, #edf2f9 100%);
    border: 1px solid #12233d;
    box-shadow: 0 20px 46px rgba(7, 17, 33, 0.2);
}

.home-hero-layout {
    --bs-gutter-x: .95rem;
}

.home-hero-media-card {
    background: linear-gradient(170deg, #08142a, #122646);
    border: 1px solid rgba(191, 212, 255, 0.35);
    border-radius: 18px;
    padding: 10px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 14px 30px rgba(7, 17, 33, 0.35);
    height: 100%;
    position: relative;
}

.home-hero-media-card::after {
    content: "";
    position: absolute;
    inset: -12px auto auto -12px;
    width: 120px;
    height: 120px;
    border-radius: 0 0 120px 0;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.home-hero-video-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    height: 100%;
    min-height: 330px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.home-hero-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 12px;
    border: 0;
}

.home-modern .hero-section .home-hero-copy-card {
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(165deg, #11233f 0%, #163056 52%, #1a365d 100%);
    border: 1px solid rgba(195, 215, 255, 0.25);
    box-shadow: 0 16px 32px rgba(7, 17, 33, 0.3);
    color: #eef4ff;
    padding: clamp(1.35rem, 2.6vw, 2.3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-modern .hero-section .home-hero-copy-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -48px;
    top: -52px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(167, 212, 255, 0.22) 0%, rgba(167, 212, 255, 0) 72%);
    pointer-events: none;
}

.home-modern .hero-section .home-hero-copy-card > * {
    position: relative;
    z-index: 1;
}

.home-hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .34rem .85rem;
    border-radius: 999px;
    background: rgba(224, 236, 255, 0.12);
    border: 1px solid rgba(224, 236, 255, 0.34);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: .9rem;
}

.home-hero-title {
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 1.17;
    margin: 0 0 .7rem 0;
    color: #f4f8ff;
    font-weight: 800;
    max-width: 13ch;
}

.home-hero-subtitle {
    margin: 0;
    font-size: clamp(1rem, 1.2vw, 1.28rem);
    color: rgba(233, 241, 255, 0.92);
    max-width: 33ch;
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.45rem;
}

.home-hero-btn {
    border-radius: 12px;
    padding: .64rem 1.15rem;
    font-size: 1.04rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.home-hero-btn-primary {
    background: #ffc2c0;
    color: #3a1620;
    border-color: rgba(58, 22, 32, 0.25);
    box-shadow: 0 8px 16px rgba(255, 194, 192, 0.28);
}

.home-hero-btn-primary:hover {
    background: #ffb0ad;
    color: #2f121a;
}

.home-hero-btn-secondary {
    background: #72d6a3;
    color: #113224;
    border-color: rgba(17, 50, 36, 0.3);
    box-shadow: 0 8px 16px rgba(114, 214, 163, 0.25);
}

.home-hero-btn-secondary:hover {
    background: #5cc791;
    color: #0f2d20;
}

.home-hero-metrics {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.home-hero-metric {
    min-width: 118px;
    padding: .58rem .68rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.home-hero-metric strong {
    font-size: 1rem;
    line-height: 1;
    color: #fff;
}

.home-hero-metric span {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(220, 232, 255, 0.92);
}

.brutalism-card:not([class*="bg-"]),
.card:not([class*="bg-"]) {
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--surface) !important;
}

.brutalism-card:hover,
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
}

.brutalism-card.bg-white,
.brutalism-card.bg-man-light,
.card.bg-white {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-md) !important;
    color: var(--text-main) !important;
}

.brutalism-card.bg-primary,
.card.bg-primary {
    background: linear-gradient(135deg, #1f4a6a, #16364e) !important;
    border-color: #315974 !important;
    color: #f8fbff !important;
}

.brutalism-card.bg-success,
.card.bg-success {
    background: linear-gradient(135deg, #15803d, #166534) !important;
    border-color: #2d8f55 !important;
    color: #f5fff8 !important;
}

.brutalism-card.bg-info,
.card.bg-info {
    background: linear-gradient(135deg, #0369a1, #075985) !important;
    border-color: #1f7cab !important;
    color: #f3fbff !important;
}

.brutalism-card.bg-danger,
.card.bg-danger {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    border-color: #c84848 !important;
    color: #fff6f6 !important;
}

.brutalism-card.bg-warning,
.card.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #e39a1f !important;
    color: #1f2937 !important;
}

.brutalism-card.bg-man-blue,
.card.bg-man-blue {
    background: linear-gradient(135deg, #1f2937, #334155) !important;
    border-color: #475569 !important;
    color: #f8fbff !important;
}

.brutalism-card.bg-primary *,
.card.bg-primary *,
.brutalism-card.bg-success *,
.card.bg-success *,
.brutalism-card.bg-info *,
.card.bg-info *,
.brutalism-card.bg-danger *,
.card.bg-danger *,
.brutalism-card.bg-man-blue *,
.card.bg-man-blue * {
    color: inherit !important;
}

.brutalism-card.bg-warning *,
.card.bg-warning * {
    color: inherit !important;
}

.bg-man-light {
    background: var(--surface-2) !important;
    color: var(--text-main);
}

.btn-man-blue,
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: #193f5a;
    --bs-btn-hover-border-color: #193f5a;
    --bs-btn-active-bg: #142f43;
    --bs-btn-active-border-color: #142f43;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    border-radius: 12px;
    font-weight: 700;
}

.btn-outline-primary {
    border-radius: 12px;
}

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: var(--surface) !important;
    color: var(--text-main) !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .18) !important;
}

.table {
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted) !important;
}

main h1, main h2, main h3, main h4, main h5, main h6,
main p, main li, main small, main span {
    color: inherit;
}

.table > :not(caption) > * > * {
    background: var(--surface);
    border-bottom-color: var(--border);
}

.alert {
    border-radius: 14px;
    border: 1px solid var(--border);
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 .15rem;
    border: 1px solid var(--border);
    color: var(--text-main);
    background: var(--surface);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.footer {
    background: linear-gradient(180deg, #0e1b31, #081021) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .footer {
    background: linear-gradient(180deg, #081224, #050b16) !important;
}

.footer .text-light,
.footer p,
.footer a {
    color: #d4deea !important;
}

html[data-theme="dark"] .theme-toggle-btn {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

html[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.mobile-bottom-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

.mobile-bottom-nav .nav-item {
    color: var(--text-muted);
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
}

.mobile-bottom-nav .nav-item.active::before {
    background: var(--primary);
}

html[data-theme="dark"] .mobile-bottom-nav {
    background: var(--surface);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
    .site-tools-rail {
        position: fixed;
        left: 6px;
        bottom: 86px;
        z-index: 1108;
        width: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        direction: ltr;
    }

    .site-tools-rail.is-active {
        display: flex;
    }

    .site-tools-item {
        display: grid;
        grid-template-columns: 56px auto;
        align-items: center;
        justify-content: flex-start;
        column-gap: 10px;
        min-height: 56px;
        padding: 0;
        position: relative;
        direction: ltr;
    }

    .site-tools-item-label {
        font-size: 12px;
        font-weight: 800;
        color: #173a63;
        line-height: 1;
        white-space: nowrap;
        user-select: none;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #d5e2f2;
        border-radius: 999px;
        padding: 6px 10px;
        box-shadow: 0 6px 14px rgba(12, 43, 84, 0.10);
        transform: translateX(2px);
        transition: transform .18s ease, box-shadow .2s ease;
        text-align: right;
        justify-self: start;
        grid-column: 2;
        direction: rtl;
    }

    .site-tools-item:hover .site-tools-item-label {
        transform: translateX(5px);
        box-shadow: 0 10px 20px rgba(12, 43, 84, 0.16);
    }

    .site-tools-item > :not(.site-tools-item-label) {
        grid-column: 1;
        justify-self: start;
        margin: 0 !important;
    }

    .site-tools-rail #themeToggleBtn.theme-toggle-floating,
    .site-tools-rail .ai-advisor-launcher {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: auto !important;
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 56px !important;
        border-radius: 14px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
    }

    .site-tools-rail .ai-advisor-launcher {
        font-size: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .site-tools-rail .ai-advisor-launcher i {
        margin: 0 !important;
        font-size: 18px !important;
    }

    .site-tools-rail #themeToggleBtn .theme-toggle-label {
        display: none !important;
    }

    .site-tools-rail #whatsapp.floating-wpp,
    .site-tools-rail .floating-wpp {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
    }

    .site-tools-rail #whatsapp.floating-wpp .floating-wpp-button,
    .site-tools-rail .floating-wpp .floating-wpp-button {
        width: 56px !important;
        height: 56px !important;
        border-radius: 14px !important;
        position: relative !important;
        margin: 0 !important;
    }

    .site-tools-rail #whatsapp .floating-wpp-popup {
        left: 64px !important;
        right: auto !important;
        bottom: 0 !important;
    }

    html[data-theme="dark"] .site-tools-item-label {
        color: #d7e8ff;
        background: rgba(24, 41, 67, 0.92);
        border-color: rgba(98, 129, 170, 0.45);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    }

    html.site-tools-left-dock .ai-advisor-modal {
        left: 74px !important;
        right: auto !important;
        bottom: 250px !important;
    }
}

@media (max-width: 991.98px) {
    .header {
        display: none !important;
    }

    .home-modern section > .container {
        border-radius: 16px;
        padding: 1.2rem .95rem;
    }

    .home-modern .hero-section > .home-hero-shell {
        padding: .8rem;
        border-radius: 20px;
    }

    .home-modern .hero-section > .home-journey-shell {
        padding: .75rem;
        border-radius: 18px;
    }

    .home-journey-title {
        font-size: clamp(1.45rem, 7vw, 1.95rem);
    }

    .home-journey-subtitle {
        font-size: .94rem;
    }

    .home-journey-flow {
        padding: .2rem 0;
    }

    .home-journey-flow::before {
        right: 14px;
    }

    .home-journey-step {
        grid-template-columns: 36px 1fr;
        gap: .5rem;
    }

    .home-journey-step-no {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: .92rem;
    }

    .home-journey-step-content {
        padding: .55rem .62rem;
    }

    .home-journey-step-content h4 {
        font-size: .92rem;
    }

    .home-journey-step-content p {
        font-size: .83rem;
    }

    .home-journey-step-cta {
        width: 100%;
    }

    .home-journey-btn {
        width: 100%;
    }

    .home-journey-media {
        border-radius: 14px;
        padding: 8px;
    }

    .home-journey-video-wrap,
    .home-journey-video {
        min-height: 220px;
    }

    .home-modern .hero-section > .home-hero-shell.home-hero-shell-v4 {
        padding: .75rem;
        border-radius: 18px;
    }

    .home-hero-v4-trustbar {
        margin-bottom: .6rem;
    }

    .home-hero-v4-trustbar span {
        font-size: .72rem;
        padding: .3rem .56rem;
    }

    .home-hero-v4-copy {
        padding: 1rem .9rem;
        border-radius: 14px;
    }

    .home-hero-v4-title {
        font-size: clamp(1.56rem, 7vw, 2.06rem);
        max-width: 100%;
    }

    .home-hero-v4-subtitle {
        max-width: 100%;
    }

    .home-hero-v4-btn {
        width: 100%;
    }

    .home-hero-v4-media {
        border-radius: 14px;
        padding: 8px;
    }

    .home-hero-v4-video-wrap,
    .home-hero-v4-video {
        min-height: 220px;
    }

    .home-hero-v4-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-modern .hero-section > .home-hero-shell.home-hero-shell-v2 {
        border-radius: 18px;
    }

    .home-modern .hero-section > .home-hero-shell.home-hero-shell-v3 {
        padding: .75rem;
        border-radius: 18px;
    }

    .home-hero-v3-topline {
        margin-bottom: .65rem;
    }

    .home-hero-v3-chip {
        font-size: .73rem;
        padding: .3rem .58rem;
    }

    .home-hero-v3-copy {
        padding: 1rem .9rem;
        border-radius: 14px;
    }

    .home-hero-v3-title {
        font-size: clamp(1.58rem, 7vw, 2.05rem);
        max-width: 100%;
    }

    .home-hero-v3-subtitle {
        max-width: 100%;
    }

    .home-hero-v3-btn {
        width: 100%;
    }

    .home-hero-v3-media-stage {
        border-radius: 14px;
        padding: 8px;
    }

    .home-hero-v3-video-wrap,
    .home-hero-v3-video {
        min-height: 220px;
    }

    .home-hero-v3-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-media-card {
        padding: 8px;
        border-radius: 14px;
    }

    .home-hero-video-wrap,
    .home-hero-video {
        min-height: 220px;
    }

    .home-modern .hero-section .home-hero-copy-card {
        border-radius: 14px;
        padding: 1.1rem .95rem;
    }

    .home-hero-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .home-hero-subtitle {
        max-width: 100%;
    }

    .home-hero-metrics {
        gap: .5rem;
    }

    .home-hero-metric {
        min-width: calc(50% - .3rem);
        flex: 1 1 calc(50% - .3rem);
    }

    .home-hero-btn {
        width: 100%;
    }
}

/* Header logo clarity improvements */
.site-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 auto;
    position: relative;
    width: 114px;
    min-width: 114px;
    max-width: 114px;
    height: 60px;
    margin-inline-start: 6px;
    margin-inline-end: 10px;
    padding: 2px 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-decoration: none;
}

.site-logo-link::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 8%;
    height: 84%;
    width: 1px;
    background: rgba(20, 43, 72, 0.28);
}

.navbar.bg-man-blue .site-logo-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    transform: scale(1.35) !important;
    transform-origin: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.08) saturate(1.04) !important;
}

@media (min-width: 1200px) {
    .header .navbar > .container {
        gap: 8px;
    }

    .header .navbar > .container > .navbar-collapse {
        border-inline-start: 1px solid rgba(20, 43, 72, 0.28);
        padding-inline-start: 16px;
        margin-inline-start: 4px;
    }
}

@media (max-width: 1699.98px) {
    .site-logo-link {
        width: 104px;
        min-width: 104px;
        max-width: 104px;
        height: 56px;
    }

.navbar.bg-man-blue .site-logo-image {
        transform: scale(1.3) !important;
    }
}

@media (max-width: 1199.98px) {
    .site-logo-link {
        order: 2;
        width: 92px;
        min-width: 92px;
        max-width: 92px;
        height: 50px;
        align-self: center;
        margin-inline: 0;
    }

    .site-logo-link::after {
        display: none;
    }

.navbar.bg-man-blue .site-logo-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: scale(1.22) !important;
    }

    .header .navbar > .container > .navbar-collapse {
        border-inline-start: 0;
        padding-inline-start: 0;
        margin-inline-start: 0;
    }
}
