﻿.mafama-home {
        --g-deep: #060f2e;
        --g-navy: #0b1e4d;
        --g-mid: #132a63;
        --g-red: #d62839;
        --g-red-dark: #a91e2c;
        --g-blue: #2563eb;
        --g-orange: #e8792b;
        --g-purple: #4c3f91;
        --g-gold: #d4af37;
        --g-bg: #f5f7fc;
        --g-card: #ffffff;
        --g-text: #16213e;
        --g-muted: #5a6482;
        --g-border: #e3e7f3;
        --g-shadow: 0 18px 40px -18px rgba(11, 30, 77, .35);
        color: var(--g-text);
        background: var(--g-bg);
        font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        margin: 0 -15px;
        padding: 24px 0 0;
        overflow-x: hidden;
    }

    .mafama-home *, .mafama-home *::before, .mafama-home *::after { box-sizing: border-box; }
    .mafama-home h1, .mafama-home h2, .mafama-home h3, .mafama-home h4 { font-family: Sora, system-ui, sans-serif; color: var(--g-navy); letter-spacing: -.02em; }
    .mafama-home a { text-decoration: none; }
    .mafama-home .g-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
    .mafama-home .g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
    .mafama-home .g-btn:hover, .mafama-home .g-btn:focus { transform: translateY(-2px); text-decoration: none; }
    .mafama-home .g-btn-red { background: linear-gradient(135deg, var(--g-red), var(--g-red-dark)); color: #fff !important; box-shadow: 0 14px 26px -14px rgba(214, 40, 57, .75); }
    .mafama-home .g-btn-outline { color: var(--g-red) !important; border-color: var(--g-red); background: #fff; }
    .mafama-home .g-btn-navy { color: #fff !important; background: var(--g-navy); }
    .mafama-home .g-btn-white { color: var(--g-navy) !important; background: #fff; }
    .mafama-home .g-search { margin: 0 auto 18px; }
    .mafama-home .g-search form { display: flex; overflow: hidden; border: 2px solid var(--g-navy); border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -18px rgba(11, 30, 77, .3); }
    .mafama-home .g-search input { flex: 1; min-height: 54px; border: 0; padding: 0 20px; color: var(--g-text); font-size: 16px; font-weight: 700; outline: 0; }
    .mafama-home .g-search button { width: 66px; border: 0; color: #fff; background: var(--g-navy); font-size: 20px; }
    .mafama-home .g-info { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, .7fr); gap: 16px; margin-bottom: 24px; }
    .mafama-home .g-weather, .mafama-home .g-date { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 16px; color: #fff !important; box-shadow: var(--g-shadow); }
    .mafama-home .g-weather { padding: 18px 22px; background: linear-gradient(135deg, #0b2f86 0%, #2563eb 100%); }
    .mafama-home .g-date { padding: 18px 22px; background: linear-gradient(135deg, var(--g-red), var(--g-red-dark)); font-size: 19px; font-weight: 800; }
    .mafama-home .g-weather-main { display: flex; align-items: center; gap: 13px; }
    .mafama-home .g-weather-icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.18); color: #fff; font-size: 29px; }
    .mafama-home .g-temp { color: #fff; font-family: Sora, system-ui, sans-serif; font-size: 26px; font-weight: 800; line-height: 1; }
    .mafama-home .g-condition { margin-top: 5px; color: rgba(255,255,255,.96); font-size: 14px; font-weight: 700; }
    .mafama-home .g-weather-meta { display: grid; gap: 4px; color: rgba(255,255,255,.96); font-size: 13px; font-weight: 700; }
    .mafama-home .g-weather-meta b { color: #fff; font-weight: 800; }
    .mafama-home .g-date i { color: #fff; font-size: 28px; }
    .mafama-home .g-date span { color: #fff; font-weight: 800; }
    .mafama-home .g-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); gap: 34px; align-items: center; margin-bottom: 26px; padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 18px 42px -30px rgba(11, 30, 77, .38); }
    .mafama-home .g-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 9px 16px; color: var(--g-navy); border-radius: 999px; background: #eaf0ff; font-size: 18px; font-weight: 900; }
    .mafama-home .g-badge strong { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; border-radius: 9px; background: var(--g-navy); font-size: 18px; }
    .mafama-home .g-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; font-weight: 800; }
    .mafama-home .g-hero h1 span { color: var(--g-red); }
    .mafama-home .g-lead { max-width: 570px; margin: 15px 0 16px; color: var(--g-muted); font-size: 16px; line-height: 1.7; font-weight: 600; }
    .mafama-home .g-checks { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
    .mafama-home .g-checks li { display: flex; align-items: center; gap: 10px; color: var(--g-navy); font-size: 18px; line-height: 1.45; font-weight: 800; }
    .mafama-home .g-checks i { color: var(--g-red); }
    .mafama-home .g-note { color: var(--g-navy); font-size: 16px; line-height: 1.55; font-weight: 800; }
    .mafama-home .g-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
    .mafama-home .g-video { position: relative; min-height: 430px; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: radial-gradient(circle at 50% 38%, #1e4ed8 0%, #071434 55%, #030819 100%); box-shadow: 0 24px 55px -22px rgba(6,15,46,.75); }
    .mafama-home .g-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
    .mafama-home .g-ai-cube { position: absolute; top: 16%; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 135px; height: 135px; color: #fff; border: 2px solid rgba(125,164,255,.9); border-radius: 24px; background: linear-gradient(145deg, rgba(37,99,235,.95), rgba(6,15,46,.95)); box-shadow: 0 0 60px rgba(37,99,235,.8); font-family: Sora, system-ui, sans-serif; font-size: 52px; font-weight: 800; }
    .mafama-home .g-node { position: absolute; display: grid; place-items: center; width: 82px; height: 82px; color: #fff; border: 2px solid rgba(255,255,255,.45); border-radius: 22px; font-size: 34px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
    .mafama-home .g-node-1 { top: 15%; left: 9%; background: var(--g-red); }
    .mafama-home .g-node-2 { top: 15%; right: 9%; background: var(--g-orange); }
    .mafama-home .g-node-3 { bottom: 26%; left: 9%; background: var(--g-blue); }
    .mafama-home .g-node-4 { bottom: 26%; right: 9%; background: var(--g-purple); }
    .mafama-home .g-person { position: absolute; bottom: 0; left: 50%; width: 132px; height: 220px; transform: translateX(-50%); background: linear-gradient(180deg, #101827, #000); clip-path: polygon(38% 0, 62% 0, 77% 18%, 100% 58%, 82% 61%, 73% 100%, 27% 100%, 18% 61%, 0 58%, 23% 18%); opacity: .92; }
    .mafama-home .g-play { position: absolute; top: 52%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 84px; height: 84px; color: #fff; border: 3px solid rgba(255,255,255,.78); border-radius: 50%; background: rgba(0,0,0,.35); font-size: 30px; backdrop-filter: blur(4px); }
    .mafama-home .g-video-bar { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 13px; padding: 14px 18px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); font-weight: 700; }
    .mafama-home .g-video-tools { margin-left: auto; }
    .mafama-home .g-dim-title { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 34px auto 22px; text-align: left; }
    .mafama-home .g-dim-title .g-four { color: var(--g-red); font-family: Sora, system-ui, sans-serif; font-size: 76px; font-weight: 800; line-height: 1; }
    .mafama-home .g-dim-title h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
    .mafama-home .g-dim-title h2 span { color: var(--g-red); }
    .mafama-home .g-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; align-items: stretch; }
    .mafama-home .g-service { display: flex; flex-direction: column; overflow: hidden; height: 100%; min-height: 455px; border: 1px solid var(--g-border); border-radius: 18px; background: #fff; box-shadow: 0 14px 30px -24px rgba(11,30,77,.45); transition: transform .18s ease, box-shadow .18s ease; }
    .mafama-home .g-accent-red { --accent:#d62839; --accent-dark:#8b1420; }
    .mafama-home .g-accent-blue { --accent:#2563eb; --accent-dark:#123a86; }
    .mafama-home .g-accent-orange { --accent:#e8792b; --accent-dark:#a3510f; }
    .mafama-home .g-accent-purple { --accent:#4c3f91; --accent-dark:#241a52; }
    .mafama-home .g-accent-green { --accent:#198754; --accent-dark:#11633e; }
    .mafama-home .g-service:hover { transform: translateY(-6px); box-shadow: var(--g-shadow); }
    .mafama-home .g-service-head { position: relative; min-height: 145px; padding: 16px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
    .mafama-home .g-num { display: inline-flex; padding: 5px 11px; border-radius: 8px; background: rgba(0,0,0,.24); color: #fff !important; font-family: Sora, system-ui, sans-serif; font-size: 20px; font-weight: 800; }
    .mafama-home .g-service-icon { position: absolute; right: 18px; bottom: -31px; display: grid; place-items: center; width: 72px; height: 72px; color: #fff; border: 5px solid #fff; border-radius: 19px; background: var(--accent); font-size: 32px; box-shadow: 0 12px 22px rgba(0,0,0,.18); }
    .mafama-home .g-service-body { display: flex; flex-direction: column; gap: 13px; flex: 1; padding: 42px 18px 18px; }
    .mafama-home .g-service-body h3 { min-height: 52px; margin: 0; color: var(--accent); font-size: 19px; line-height: 1.3; text-align: center; }
    .mafama-home .g-service-title { display: grid; justify-items: center; gap: 8px; min-height: 76px; }
    .mafama-home .g-service-title h3 { min-height: 0; }
    .mafama-home .g-ai-mini { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; color: var(--g-navy); background: #eef3ff; font-size: 12px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
    .mafama-home .g-ai-mini strong { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; background: var(--g-navy); font-size: 12px; }
    .mafama-home .g-perfect { padding: 12px; border: 1px solid var(--g-border); border-radius: 12px; background: #fbfcff; }
    .mafama-home .g-perfect strong { display: block; margin-bottom: 7px; color: var(--g-text); font-size: 12px; }
    .mafama-home .g-perfect ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
    .mafama-home .g-perfect li { color: var(--g-navy); font-size: 12.5px; font-weight: 750; }
    .mafama-home .g-perfect i { margin-right: 6px; color: var(--accent); }
    .mafama-home .g-service-desc { color: var(--g-muted); font-size: 13px; line-height: 1.6; font-weight: 650; }
    .mafama-home .g-card-btn { margin-top: auto; align-self: center; padding: 10px 16px; color: var(--g-navy); border: 2px solid var(--g-border); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 800; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
    .mafama-home .g-card-btn:hover { color: #fff; border-color: var(--accent); background: var(--accent); transform: translateY(-2px); }
    .mafama-home section.g-wrap { padding: 0 !important; background: transparent !important; }
    .mafama-home .g-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 34px auto 0; padding: 0 !important; overflow: hidden; border-radius: 16px; box-shadow: var(--g-shadow); background: transparent !important; }
    .mafama-home .g-benefit { display: flex; gap: 13px; min-height: 112px; padding: 22px; color: #fff; background: var(--accent); border-right: 1px solid rgba(255,255,255,.22); }
    .mafama-home .g-benefit:last-child { border-right: 0; }
    .mafama-home .g-benefit i { font-size: 33px; }
    .mafama-home .g-benefit h4 { margin: 0 0 4px; color: #fff; font-size: 18px; }
    .mafama-home .g-benefit p { margin: 0; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.45; }
    .mafama-home .g-section-head { margin: 40px 0 22px; text-align: center; }
    .mafama-home .g-section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
    .mafama-home .g-section-head h2 span { color: var(--g-red); }
    .mafama-home .g-section-head p { margin: 7px 0 0; color: var(--g-muted); font-weight: 700; }
    .mafama-home .g-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .mafama-home .g-why-card, .mafama-home .g-testimonial { padding: 24px 20px; border: 1px solid var(--g-border); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px -24px rgba(11,30,77,.45); }
    .mafama-home .g-why-card i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 13px; color: var(--accent); border-radius: 15px; background: color-mix(in srgb, var(--accent) 12%, #fff); font-size: 26px; }
    .mafama-home .g-why-card h4 { margin: 0 0 8px; text-align: center; font-size: 16px; }
    .mafama-home .g-why-card p, .mafama-home .g-testimonial p { margin: 0; color: var(--g-muted); font-size: 13px; line-height: 1.6; font-weight: 650; }
    .mafama-home .g-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 25px 28px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--g-navy), #183c94); box-shadow: var(--g-shadow); }
    .mafama-home .g-cta h3 { flex: 1 1 calc(100% - 340px); min-width: 0; margin: 0; color: #fff; font-size: 22px; white-space: nowrap; }
    .mafama-home .g-cta-actions { display: flex; flex: 0 1 320px; flex-wrap: wrap; gap: 12px; margin-left: 16px; }
    .mafama-home .g-testimonial-shell { position: relative; }
    .mafama-home .g-testimonials { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
    .mafama-home .g-testimonials::-webkit-scrollbar { display: none; }
    .mafama-home .g-testimonial { min-height: 205px; scroll-snap-align: start; }
    .mafama-home .g-slider-controls { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
    .mafama-home .g-slider-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--g-border); border-radius: 50%; color: var(--g-navy); background: #fff; box-shadow: 0 8px 20px -16px rgba(11,30,77,.5); }
    .mafama-home .g-slider-btn:hover { color: #fff; background: var(--g-red); border-color: var(--g-red); }
    .mafama-home .g-quote { color: var(--g-red); font-family: Sora, system-ui, sans-serif; font-size: 38px; font-weight: 800; line-height: 1; }
    .mafama-home .g-person-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
    .mafama-home .g-avatar { position: relative; display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; overflow: hidden; color: #fff; border: 3px solid #fff; border-radius: 50%; background: var(--accent); box-shadow: 0 10px 22px -14px rgba(6,15,46,.55); font-weight: 800; }
    .mafama-home .g-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .mafama-home .g-avatar::before { content: "\f007"; display: none; font-family: "Font Awesome 6 Free"; font-size: 25px; font-weight: 900; }
    .mafama-home .g-avatar.is-fallback::before { display: block; }
    .mafama-home .g-person-row strong { display: block; color: var(--g-navy); }
    .mafama-home .g-person-row span { color: var(--g-muted); font-size: 12px; font-weight: 700; }
    .mafama-home .g-footer { margin: 42px auto 0; padding: 0; color: #c8d0ea; background: transparent; }
    .mafama-home .g-footer-card { width: min(1180px, calc(100% - 40px)); margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: linear-gradient(135deg, var(--g-deep), #0b1e4d); box-shadow: 0 22px 48px -28px rgba(6, 15, 46, .65); }
    .mafama-home .g-footer-grid { display: grid; grid-template-columns: 1.45fr .9fr 1.15fr .9fr 1.25fr; gap: 22px; padding: 30px 26px 24px; }
    .mafama-home .g-footer h4, .mafama-home .g-footer h5 { color: #fff; }
    .mafama-home .g-footer h4 { margin: 0 0 8px; font-size: 17px; }
    .mafama-home .g-footer h5 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
    .mafama-home .g-footer p, .mafama-home .g-footer a { color: #aab4d9; font-size: 12.5px; line-height: 1.55; }
    .mafama-home .g-footer ul { margin: 0; padding: 0; list-style: none; }
    .mafama-home .g-footer a:hover { color: #fff; }
    .mafama-home .g-socials { display: flex; gap: 8px; margin-top: 14px; }
    .mafama-home .g-socials a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #12245b; color: #fff; }
    .mafama-home .g-newsletter { display: flex; overflow: hidden; margin-top: 10px; border: 1px solid #263a72; border-radius: 11px; }
    .mafama-home .g-newsletter input { min-width: 0; flex: 1; border: 0; padding: 11px 12px; color: #fff; background: #101f4d; outline: 0; }
    .mafama-home .g-newsletter button { width: 48px; border: 0; color: #fff; background: var(--g-red); }
    .mafama-home .g-copy { width: min(1180px, calc(100% - 40px)); margin: 14px auto 0; padding: 13px 18px; border-radius: 14px; color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; background: linear-gradient(135deg, var(--g-red), var(--g-red-dark)); box-shadow: 0 16px 34px -24px rgba(214, 40, 57, .75); }

    body:has(.mafama-home) { background: var(--g-bg, #f5f7fc) !important; }
    body:has(.mafama-home) #footer,
    body.mafama-home-active #footer { display: none !important; }
    body:has(.mafama-home) #header,
    body.mafama-home-active #header { display: none !important; }
    body:has(.mafama-home) .home-modern,
    body.mafama-home-active .home-modern { display: none !important; }
    body:has(.mafama-home) #wrapper,
    body.mafama-home-active #wrapper { padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; background: #f5f7fc !important; }
    body:has(.mafama-home) #wrapper > .row.margin-top-10.margin-bottom-10 { display: none !important; }
    body.mafama-home-active #wrapper > .row.margin-top-10.margin-bottom-10 { display: none !important; }
    body:has(.mafama-home) #topBar,
    body.mafama-home-active #topBar {
        padding: 12px 0 14px !important;
        border: 0 !important;
        background: #f5f7fc !important;
        box-shadow: none !important;
    }
    body:has(.mafama-home) #topBar > .container,
    body.mafama-home-active #topBar > .container { width: min(1180px, calc(100% - 40px)) !important; max-width: 1180px !important; padding: 0 !important; }
    body:has(.mafama-home) #topBar > .container > nav:first-child,
    body.mafama-home-active #topBar > .container > nav:first-child {
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        gap: 12px !important;
        width: 100% !important;
        min-height: 42px !important;
        margin: 0 auto 10px !important;
        padding: 6px 12px !important;
        border: 1px solid #e3e7f3 !important;
        border-left: 4px solid #d62839 !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 12px 30px -26px rgba(11, 30, 77, .45) !important;
    }
    body:has(.mafama-home) #topBar > .container > nav:first-child::before,
    body.mafama-home-active #topBar > .container > nav:first-child::before {
        content: "Change Language";
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        margin: 0;
        color: #0b1e4d;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
        text-align: left;
        white-space: nowrap;
    }
    body:has(.mafama-home) #topBar > .container > nav:first-child::after,
    body.mafama-home-active #topBar > .container > nav:first-child::after {
        content: "First, Choose a Language Above";
        display: inline-flex;
        align-items: center;
        position: absolute;
        right: 14px;
        bottom: -16px;
        color: #6b7280;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
        pointer-events: none;
    }
    body:has(.mafama-home) #topBar > .container > nav:first-child > ul,
    body.mafama-home-active #topBar > .container > nav:first-child > ul {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: center;
        flex: 1 1 auto;
        gap: 5px;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    body:has(.mafama-home) #topBar > .container > nav:first-child li,
    body.mafama-home-active #topBar > .container > nav:first-child li {
        display: inline-flex;
        align-items: center;
        float: none !important;
        flex: 0 1 auto !important;
        gap: 4px;
        min-height: 25px;
        margin: 0 !important;
        padding: 4px 8px;
        border: 1px solid #dce3f2;
        border-radius: 999px;
        color: #0b1e4d;
        background: #f8faff;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        box-shadow: 0 5px 14px -12px rgba(11, 30, 77, .35);
    }
    body:has(.mafama-home) #topBar > .container > nav:first-child li:has(.language_check:checked),
    body.mafama-home-active #topBar > .container > nav:first-child li:has(.language_check:checked),
    body:has(.mafama-home) #topBar > .container > nav:first-child li.is-active-language,
    body.mafama-home-active #topBar > .container > nav:first-child li.is-active-language {
        border-color: rgba(214, 40, 57, .45);
        background: #fff6f7;
    }
    body:has(.mafama-home) #topBar .language_flags,
    body.mafama-home-active #topBar .language_flags { flex: 0 0 auto !important; width: 15px !important; height: 15px !important; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.13); }
    body:has(.mafama-home) #topBar .language_check,
    body.mafama-home-active #topBar .language_check { flex: 0 0 auto !important; width: 11px !important; height: 11px !important; margin: 0 !important; accent-color: #d62839; cursor: pointer; }
    body:has(.mafama-home) #topBar > .container > .row,
    body.mafama-home-active #topBar > .container > .row {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr) !important;
        align-items: stretch !important;
        gap: 5px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 1px solid #e3e7f3 !important;
        border-radius: 20px !important;
        background: #fff !important;
        box-shadow: 0 18px 42px -30px rgba(11, 30, 77, .5) !important;
    }
    body:has(.mafama-home) #topBar > .container > .row::before,
    body:has(.mafama-home) #topBar > .container > .row::after,
    body.mafama-home-active #topBar > .container > .row::before,
    body.mafama-home-active #topBar > .container > .row::after { display: none !important; content: none !important; }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4,
    body.mafama-home-active #topBar > .container > .row > .col-md-4 {
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:first-child,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:first-child {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 188px !important;
        padding: 26px 32px !important;
        background:
            radial-gradient(circle at 28% 38%, rgba(37,99,235,.13), transparent 34%),
            linear-gradient(135deg, #ffffff, #f5f9ff 58%, #fff8eb) !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(2),
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(2) {
        display: none !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3),
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        min-height: 188px !important;
        padding: 30px 36px !important;
        background: #fff !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3)::before,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3)::before {
        content: "";
        position: absolute;
        top: 28px;
        bottom: 28px;
        left: 0;
        width: 3px;
        border-radius: 999px;
        background: linear-gradient(180deg, #d62839, #d4af37);
    }
    body:has(.mafama-home) #topBar .top-links,
    body.mafama-home-active #topBar .top-links {
        display: grid !important;
        justify-items: center !important;
        gap: 14px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body:has(.mafama-home) #topBar .top-links > li,
    body.mafama-home-active #topBar .top-links > li {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body:has(.mafama-home) #topBar .logo,
    body.mafama-home-active #topBar .logo {
        display: grid !important;
        place-items: center !important;
        width: 180px !important;
        min-height: 92px !important;
        padding: 14px 16px !important;
        border: 1px solid #e3e7f3 !important;
        border-radius: 18px !important;
        background: rgba(255,255,255,.92) !important;
        box-shadow: 0 16px 30px -24px rgba(11,30,77,.45) !important;
    }
    body:has(.mafama-home) #topBar .logo img,
    body.mafama-home-active #topBar .logo img {
        width: auto !important;
        max-width: 150px !important;
        max-height: 70px !important;
        object-fit: contain !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:first-child .btn-info,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:first-child .btn-info {
        width: auto !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 11px 22px !important;
        border: 0 !important;
        border-radius: 999px !important;
        color: #fff !important;
        background: linear-gradient(135deg, #0b7a59, #065f46) !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        letter-spacing: .02em !important;
        text-transform: uppercase !important;
        box-shadow: 0 14px 26px -16px rgba(6,95,70,.75) !important;
        text-shadow: none !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:first-child .text-danger,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:first-child .text-danger {
        display: block !important;
        margin-top: 8px !important;
        color: #8b1420 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto !important;
        align-items: end !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 2px !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form > .col-md-12,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form > .col-md-12 {
        grid-column: 1 / -1 !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 0 4px !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form > .top-bar-col,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form > .top-bar-col {
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) p,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) p {
        margin: 0 !important;
        color: #64708a !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) p::first-line,
    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) p::first-line {
        color: #060f2e !important;
        font-size: 19px !important;
        font-weight: 900 !important;
    }
    body:has(.mafama-home) #topBar .login_btn,
    body.mafama-home-active #topBar .login_btn {
        width: 100% !important;
        min-width: 88px !important;
        min-height: 44px !important;
        padding: 0 16px !important;
        border: 2px solid #d62839 !important;
        border-radius: 12px !important;
        background: #d62839 !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        opacity: 1 !important;
        text-shadow: none !important;
        box-shadow: 0 14px 28px -18px rgba(214,40,57,.8) !important;
        transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
    }
    body:has(.mafama-home) #topBar .login_btn:hover,
    body:has(.mafama-home) #topBar .login_btn:focus,
    body.mafama-home-active #topBar .login_btn:hover,
    body.mafama-home-active #topBar .login_btn:focus {
        background: #a91e2c !important;
        border-color: #a91e2c !important;
        color: #fff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 16px 30px -16px rgba(214,40,57,.9) !important;
    }
    body:has(.mafama-home) #topBar #email,
    body:has(.mafama-home) #topBar #password,
    body.mafama-home-active #topBar #email,
    body.mafama-home-active #topBar #password {
        width: 100% !important;
        min-height: 44px !important;
        border: 1px solid #cfd6e6 !important;
        border-radius: 12px !important;
        color: #16213e !important;
        background: #fff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
    }
    body:has(.mafama-home) #topBar #email::placeholder,
    body:has(.mafama-home) #topBar #password::placeholder,
    body.mafama-home-active #topBar #email::placeholder,
    body.mafama-home-active #topBar #password::placeholder {
        color: #748199 !important;
        opacity: 1 !important;
    }
    body:has(.mafama-home) #topBar #email:focus,
    body:has(.mafama-home) #topBar #password:focus,
    body.mafama-home-active #topBar #email:focus,
    body.mafama-home-active #topBar #password:focus {
        border-color: #2563eb !important;
        box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
        outline: 0 !important;
    }
    body:has(.mafama-home) #topBar .invalid-feedback,
    body.mafama-home-active #topBar .invalid-feedback {
        display: block !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 9px 12px !important;
        border: 1px solid rgba(214,40,57,.34) !important;
        border-radius: 10px !important;
        color: #8b1420 !important;
        background: #fff1f2 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
    }

    @media (max-width: 991px) {
        body:has(.mafama-home) #topBar > .container > nav:first-child,
        body.mafama-home-active #topBar > .container > nav:first-child {
            align-items: flex-start !important;
            flex-direction: column !important;
            gap: 7px !important;
            padding: 8px 10px !important;
        }

        body:has(.mafama-home) #topBar > .container > nav:first-child > ul,
        body.mafama-home-active #topBar > .container > nav:first-child > ul {
            justify-content: flex-start !important;
            flex-wrap: wrap !important;
            overflow: visible !important;
        }

        body:has(.mafama-home) #topBar > .container > nav:first-child::after,
        body.mafama-home-active #topBar > .container > nav:first-child::after {
            position: static !important;
            right: auto !important;
            bottom: auto !important;
        }

        body:has(.mafama-home) #topBar > .container > .row,
        body.mafama-home-active #topBar > .container > .row {
            grid-template-columns: 1fr !important;
        }

        body:has(.mafama-home) #topBar > .container > .row > .col-md-4:first-child,
        body.mafama-home-active #topBar > .container > .row > .col-md-4:first-child,
        body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3),
        body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) {
            min-height: auto !important;
            padding: 24px 22px !important;
        }

        body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3)::before,
        body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3)::before {
            top: 0 !important;
            right: 24px !important;
            bottom: auto !important;
            left: 24px !important;
            width: auto !important;
            height: 3px !important;
        }
    }

    @media (max-width: 575px) {
        body:has(.mafama-home) #topBar,
        body.mafama-home-active #topBar {
            padding-top: 8px !important;
        }

        body:has(.mafama-home) #topBar > .container,
        body.mafama-home-active #topBar > .container {
            width: min(100% - 24px, 1180px) !important;
        }

        body:has(.mafama-home) #topBar > .container > nav:first-child::after,
        body.mafama-home-active #topBar > .container > nav:first-child::after {
            font-size: 10px !important;
        }

        body:has(.mafama-home) #topBar > .container > nav:first-child li,
        body.mafama-home-active #topBar > .container > nav:first-child li {
            padding: 4px 6px !important;
            font-size: 10px !important;
        }

        body:has(.mafama-home) #topBar .logo,
        body.mafama-home-active #topBar .logo {
            width: 162px !important;
            min-height: 82px !important;
        }

        body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form,
        body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form {
            grid-template-columns: 1fr !important;
        }

        body:has(.mafama-home) #topBar .login_btn,
        body.mafama-home-active #topBar .login_btn {
            width: 100% !important;
        }
    }

    @media (max-width: 1100px) {
        .mafama-home .g-hero {
            grid-template-columns: minmax(0, .95fr) minmax(300px, 1.05fr);
            gap: 22px;
            padding: 26px;
        }
        .mafama-home .g-hero h1 { font-size: clamp(30px, 3.8vw, 44px); }
        .mafama-home .g-video { min-height: 350px; }
        .mafama-home .g-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
        .mafama-home .g-service { min-height: 430px; }
        .mafama-home .g-service-body { padding: 38px 12px 14px; }
        .mafama-home .g-service-body h3 { font-size: 15px; }
        .mafama-home .g-perfect li,
        .mafama-home .g-service-desc { font-size: 11.5px; }
        .mafama-home .g-benefits, .mafama-home .g-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .mafama-home .g-testimonials { grid-auto-columns: calc((100% - 20px) / 2); }
        .mafama-home .g-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 820px) {
        .mafama-home .g-wrap { width: min(100% - 24px, 1180px); }
        .mafama-home .g-hero {
            grid-template-columns: minmax(0, .9fr) minmax(250px, 1fr);
            gap: 16px;
            padding: 18px;
        }
        .mafama-home .g-hero h1 {
            font-size: clamp(24px, 4.4vw, 34px);
            line-height: 1.08;
        }
        .mafama-home .g-lead {
            margin: 10px 0;
            font-size: 13px;
            line-height: 1.55;
        }
        .mafama-home .g-checks {
            gap: 5px;
            margin-bottom: 10px;
        }
        .mafama-home .g-checks li,
        .mafama-home .g-note {
            font-size: 14px;
        }
        .mafama-home .g-actions {
            gap: 8px;
            margin-top: 12px;
        }
        .mafama-home .g-btn {
            min-height: 38px;
            padding: 8px 12px;
            font-size: 12px;
        }
        .mafama-home .g-video {
            min-height: 285px;
        }
        .mafama-home .g-node {
            width: 56px;
            height: 56px;
            border-radius: 15px;
            font-size: 22px;
        }
        .mafama-home .g-ai-cube {
            width: 96px;
            height: 96px;
            font-size: 36px;
        }
        .mafama-home .g-play {
            width: 58px;
            height: 58px;
            font-size: 22px;
        }
        .mafama-home .g-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
        .mafama-home .g-service {
            min-height: 390px;
            border-radius: 14px;
        }
        .mafama-home .g-service-head {
            min-height: 98px;
            padding: 10px;
        }
        .mafama-home .g-num {
            padding: 3px 7px;
            font-size: 13px;
        }
        .mafama-home .g-service-icon {
            right: 10px;
            bottom: -22px;
            width: 48px;
            height: 48px;
            border-width: 3px;
            border-radius: 13px;
            font-size: 20px;
        }
        .mafama-home .g-service-body {
            gap: 8px;
            padding: 30px 8px 10px;
        }
        .mafama-home .g-service-body h3 {
            min-height: 40px;
            font-size: 12px;
            line-height: 1.25;
        }
        .mafama-home .g-perfect {
            padding: 8px;
        }
        .mafama-home .g-perfect strong {
            margin-bottom: 5px;
            font-size: 10px;
        }
        .mafama-home .g-perfect li,
        .mafama-home .g-service-desc {
            font-size: 10px;
            line-height: 1.35;
        }
        .mafama-home .g-card-btn {
            padding: 7px 8px;
            font-size: 10px;
        }
    }

    @media (max-width: 575px) {
        .mafama-home { margin-inline: -15px; padding-top: 14px; }
        .mafama-home .g-wrap { width: min(100% - 28px, 1180px); }
        .mafama-home .g-info {
            grid-template-columns: 1fr;
        }
        .mafama-home .g-service-body h3 { font-size: 19px; }
        .mafama-home .g-perfect li,
        .mafama-home .g-service-desc { font-size: 13px; }
        .mafama-home .g-search form, .mafama-home .g-cta { flex-direction: column; align-items: stretch; }
        .mafama-home .g-search button { width: 100%; min-height: 48px; }
        .mafama-home .g-weather { align-items: flex-start; flex-direction: column; }
        .mafama-home .g-hero { padding: 22px; }
        .mafama-home .g-video { min-height: 320px; }
        .mafama-home .g-node { width: 62px; height: 62px; font-size: 25px; }
        .mafama-home .g-ai-cube { width: 105px; height: 105px; font-size: 40px; }
        .mafama-home .g-benefits, .mafama-home .g-why, .mafama-home .g-footer-grid { grid-template-columns: 1fr; }
        .mafama-home .g-testimonials { grid-auto-columns: 100%; }
        .mafama-home .g-benefit { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
        .mafama-home .g-benefit:last-child { border-bottom: 0; }
        .mafama-home .g-dim-title { justify-content: flex-start; }
        .mafama-home .g-footer-grid { gap: 16px; }
    }

    /* Layout guard: isolate the home page from legacy Bootstrap/theme rules. */
    .mafama-home .g-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        width: min(1180px, calc(100% - 40px)) !important;
        max-width: 1180px !important;
        min-width: 0 !important;
    }

    .mafama-home .g-hero > * {
        min-width: 0 !important;
    }

    .mafama-home .g-services {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        grid-auto-rows: 1fr !important;
        align-items: stretch !important;
        gap: 20px !important;
        width: min(1180px, calc(100% - 40px)) !important;
        max-width: 1180px !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .mafama-home .g-service {
        flex: none !important;
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
        height: 100% !important;
    }

    @media (max-width: 1100px) {
        .mafama-home .g-services {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
    }

    @media (max-width: 575px) {
        .mafama-home .g-hero {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
            width: min(100% - 28px, 1180px) !important;
            gap: 12px !important;
        }

        .mafama-home .g-services {
            grid-template-columns: 1fr !important;
            width: min(100% - 28px, 1180px) !important;
            gap: 12px !important;
        }

        .mafama-home .g-service {
            min-width: 0 !important;
        }
    }

    /* Benefits strip guard: keep the four colored blocks merged and prevent wrap from legacy/theme rules. */
    .mafama-home .g-benefits-strip {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0 !important;
        width: min(1180px, calc(100% - 40px)) !important;
        max-width: 1180px !important;
        min-width: 0 !important;
        margin: 34px auto 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-radius: 16px !important;
        background: transparent !important;
        box-shadow: var(--g-shadow) !important;
    }

    .mafama-home .g-benefits-strip::before,
    .mafama-home .g-benefits-strip::after {
        content: none !important;
        display: none !important;
    }

    .mafama-home .g-benefits-strip .g-benefit {
        display: flex !important;
        align-items: center !important;
        gap: 13px !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 22px !important;
        box-sizing: border-box !important;
        color: #fff !important;
        background: var(--accent) !important;
        border-right: 1px solid rgba(255,255,255,.22) !important;
        border-bottom: 0 !important;
    }

    .mafama-home .g-benefits-strip .g-benefit:last-child {
        border-right: 0 !important;
    }

    .mafama-home .g-benefits-strip .g-benefit > div {
        min-width: 0 !important;
    }

    .mafama-home .g-benefits-strip .g-benefit i {
        flex: 0 0 auto !important;
        color: #fff !important;
        font-size: 33px !important;
        line-height: 1 !important;
    }

    .mafama-home .g-benefits-strip .g-benefit h4,
    .mafama-home .g-benefits-strip .g-benefit p {
        color: #fff !important;
    }

    @media (max-width: 991px) {
        .mafama-home .g-benefits-strip {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            width: min(100% - 28px, 1180px) !important;
        }

        .mafama-home .g-benefits-strip .g-benefit {
            border-bottom: 1px solid rgba(255,255,255,.22) !important;
        }

        .mafama-home .g-benefits-strip .g-benefit:nth-child(2n) {
            border-right: 0 !important;
        }

        .mafama-home .g-benefits-strip .g-benefit:nth-last-child(-n+2) {
            border-bottom: 0 !important;
        }
    }

    @media (max-width: 575px) {
        .mafama-home .g-benefits-strip {
            grid-template-columns: 1fr !important;
        }

        .mafama-home .g-benefits-strip .g-benefit {
            border-right: 0 !important;
            border-bottom: 1px solid rgba(255,255,255,.22) !important;
        }

        .mafama-home .g-benefits-strip .g-benefit:last-child {
            border-bottom: 0 !important;
        }
    }

    /* Client-approved top layout polish for the before-login home page. */
    body.mafama-home-active #topBar,
    body:has(.mafama-home) #topBar {
        padding: 14px 0 6px !important;
        background: #fff !important;
    }

    body.mafama-home-active #topBar > .container,
    body:has(.mafama-home) #topBar > .container {
        display: grid !important;
        grid-template-columns: minmax(230px, .42fr) minmax(0, 1fr) !important;
        grid-template-areas:
            "brand languages"
            "login login" !important;
        gap: 8px 22px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child,
    body:has(.mafama-home) #topBar > .container > nav:first-child {
        grid-area: languages !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child::before,
    body.mafama-home-active #topBar > .container > nav:first-child::after,
    body:has(.mafama-home) #topBar > .container > nav:first-child::before,
    body:has(.mafama-home) #topBar > .container > nav:first-child::after {
        content: none !important;
        display: none !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child > ul,
    body:has(.mafama-home) #topBar > .container > nav:first-child > ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child li,
    body:has(.mafama-home) #topBar > .container > nav:first-child li {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0 !important;
        min-height: 24px !important;
        margin: 0 !important;
        padding: 3px 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #0b1e4d !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.mafama-home-active #topBar .language_flags,
    body:has(.mafama-home) #topBar .language_flags {
        width: 18px !important;
        height: 18px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        box-shadow: 0 1px 4px rgba(0,0,0,.16) !important;
    }

    body.mafama-home-active #topBar .language_check,
    body:has(.mafama-home) #topBar .language_check {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        accent-color: #d62839 !important;
    }

    body.mafama-home-active #topBar > .container > .row,
    body:has(.mafama-home) #topBar > .container > .row {
        display: grid !important;
        grid-area: brand / brand / login / login !important;
        grid-template-columns: minmax(230px, .42fr) minmax(0, 1fr) !important;
        grid-template-areas:
            "brand blank"
            "navlogin navlogin" !important;
        gap: 8px 22px !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:first-child,
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:first-child {
        grid-area: brand !important;
        justify-content: flex-start !important;
        min-height: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    body.mafama-home-active #topBar .top-links,
    body:has(.mafama-home) #topBar .top-links {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 0 !important;
    }

    body.mafama-home-active #topBar .top-links > li:not(:first-child),
    body:has(.mafama-home) #topBar .top-links > li:not(:first-child) {
        display: none !important;
    }

    body.mafama-home-active #topBar .logo,
    body:has(.mafama-home) #topBar .logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.mafama-home-active #topBar .logo img,
    body:has(.mafama-home) #topBar .logo img {
        max-width: 270px !important;
        max-height: 96px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(2),
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(2) {
        display: none !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3),
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 44px !important;
        grid-area: navlogin !important;
        min-height: 0 !important;
        padding: 10px 18px 2px !important;
        background: transparent !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3)::before,
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3)::before {
        content: none !important;
        display: none !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form,
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form {
        display: grid !important;
        flex: 0 0 auto !important;
        grid-template-columns: 136px 136px auto auto !important;
        justify-content: end !important;
        align-items: center !important;
        gap: 8px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form > .col-md-12,
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form > .col-md-12 {
        display: none !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form > .top-bar-login-error,
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form > .top-bar-login-error {
        display: block !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 7px 10px !important;
        border: 1px solid rgba(214,40,57,.34) !important;
        border-radius: 9px !important;
        color: #8b1420 !important;
        background: #fff6f7 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.35 !important;
        text-align: left !important;
    }

    body.mafama-home-active #topBar #email,
    body.mafama-home-active #topBar #password,
    body:has(.mafama-home) #topBar #email,
    body:has(.mafama-home) #topBar #password {
        min-height: 38px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
    }

    body.mafama-home-active #topBar .login_btn,
    body:has(.mafama-home) #topBar .login_btn {
        min-width: 78px !important;
        min-height: 38px !important;
        border-radius: 9px !important;
        background: #d62839 !important;
        border-color: #d62839 !important;
        color: #fff !important;
    }

    body.mafama-home-active #topBar .top-bar-start-col,
    body:has(.mafama-home) #topBar .top-bar-start-col {
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    body.mafama-home-active #topBar .mafama-get-started-btn,
    body:has(.mafama-home) #topBar .mafama-get-started-btn {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-width: 132px !important;
        min-height: 42px !important;
        padding: 10px 17px !important;
        overflow: hidden !important;
        border: 1px solid rgba(255,255,255,.78) !important;
        border-radius: 999px !important;
        color: #fff !important;
        background: linear-gradient(135deg, #ff3347 0%, #d62839 38%, #2563eb 100%) !important;
        box-shadow: 0 0 0 3px rgba(214,40,57,.12), 0 16px 30px -13px rgba(214,40,57,.95), 0 0 26px rgba(37,99,235,.32) !important;
        font-size: 13.5px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        animation: mafamaGetStartedPulse 2.7s ease-in-out infinite !important;
        transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
    }

    body.mafama-home-active #topBar .mafama-get-started-btn::before,
    body:has(.mafama-home) #topBar .mafama-get-started-btn::before {
        content: "";
        position: absolute;
        top: -45%;
        bottom: -45%;
        left: -35%;
        width: 32px;
        background: rgba(255,255,255,.45);
        transform: rotate(24deg);
        animation: mafamaGetStartedShine 3.2s ease-in-out infinite;
    }

    body.mafama-home-active #topBar .mafama-get-started-btn i,
    body:has(.mafama-home) #topBar .mafama-get-started-btn i {
        position: relative;
        z-index: 1;
        display: inline-grid;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        color: #d62839;
        background: #fff;
        font-size: 12px;
        box-shadow: 0 6px 14px -9px rgba(6,15,46,.65);
    }

    body.mafama-home-active #topBar .mafama-get-started-btn span,
    body:has(.mafama-home) #topBar .mafama-get-started-btn span {
        position: relative;
        z-index: 1;
        color: #fff;
    }

    body.mafama-home-active #topBar .mafama-get-started-btn:hover,
    body.mafama-home-active #topBar .mafama-get-started-btn:focus,
    body:has(.mafama-home) #topBar .mafama-get-started-btn:hover,
    body:has(.mafama-home) #topBar .mafama-get-started-btn:focus {
        color: #fff !important;
        filter: saturate(1.12) brightness(1.04) !important;
        box-shadow: 0 0 0 3px rgba(37,99,235,.18), 0 18px 34px -14px rgba(214,40,57,.95), 0 0 28px rgba(37,99,235,.34) !important;
        outline: 0 !important;
        transform: translateY(-3px) !important;
    }

    body.mafama-home-active #topBar .mafama-get-started-btn:focus-visible,
    body:has(.mafama-home) #topBar .mafama-get-started-btn:focus-visible {
        box-shadow: 0 0 0 4px rgba(37,99,235,.26), 0 18px 34px -14px rgba(214,40,57,.95), 0 0 28px rgba(37,99,235,.34) !important;
    }

    @keyframes mafamaGetStartedPulse {
        0%, 100% { box-shadow: 0 0 0 3px rgba(214,40,57,.12), 0 16px 30px -13px rgba(214,40,57,.95), 0 0 26px rgba(37,99,235,.32); }
        50% { box-shadow: 0 0 0 6px rgba(37,99,235,.16), 0 20px 38px -13px rgba(214,40,57,1), 0 0 38px rgba(37,99,235,.48); }
    }

    @keyframes mafamaGetStartedShine {
        0%, 42% { left: -35%; opacity: 0; }
        52% { opacity: .85; }
        70%, 100% { left: 118%; opacity: 0; }
    }

    .mafama-packages .packages-hero {
        position: relative;
        margin-bottom: 28px;
        padding: 50px 42px !important;
        overflow: hidden;
        border-radius: 24px;
        color: #fff;
        border: 1px solid rgba(255,255,255,.24);
        background:
            radial-gradient(circle at 88% 18%, rgba(212,175,55,.58) 0, rgba(212,175,55,.2) 18%, transparent 36%),
            radial-gradient(circle at 8% 12%, rgba(214,40,57,.72) 0, rgba(214,40,57,.28) 20%, transparent 42%),
            linear-gradient(135deg, #060f2e 0%, #132a63 38%, #2563eb 72%, #4c3f91 100%) !important;
        box-shadow: 0 28px 68px -32px rgba(6,15,46,.82);
    }

    .mafama-home.mafama-packages section.g-wrap.packages-hero {
        min-height: 245px;
        padding: 50px 42px !important;
        background:
            radial-gradient(circle at 88% 18%, rgba(212,175,55,.58) 0, rgba(212,175,55,.2) 18%, transparent 36%),
            radial-gradient(circle at 8% 12%, rgba(214,40,57,.72) 0, rgba(214,40,57,.28) 20%, transparent 42%),
            linear-gradient(135deg, #060f2e 0%, #132a63 38%, #2563eb 72%, #4c3f91 100%) !important;
    }

    .mafama-packages .packages-hero::before {
        content: "";
        position: absolute;
        inset: auto -80px -130px auto;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(232,121,43,.52);
        filter: blur(2px);
    }

    .mafama-packages .packages-hero::after {
        content: "";
        position: absolute;
        inset: -90px auto auto 42%;
        width: 210px;
        height: 210px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
    }

    .mafama-packages .packages-hero .g-badge {
        position: relative;
        z-index: 1;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(255,255,255,.28);
        color: #fff;
        box-shadow: 0 14px 28px -22px rgba(0,0,0,.5);
    }

    .mafama-packages .packages-hero .g-badge strong {
        background: linear-gradient(135deg, #d62839, #e8792b);
    }

    .mafama-packages .packages-hero h1 {
        position: relative;
        z-index: 1;
        max-width: 780px;
        margin: 0;
        color: #fff;
        font-size: clamp(34px, 4vw, 56px);
        line-height: 1.05;
        text-shadow: 0 3px 18px rgba(0,0,0,.28);
    }

    .mafama-packages .packages-hero p {
        position: relative;
        z-index: 1;
        max-width: 760px;
        margin: 15px 0 0;
        color: rgba(255,255,255,.92);
        font-size: 17px;
        font-weight: 700;
        line-height: 1.7;
    }

    .mafama-packages .packages-grid {
        display: block;
        margin-top: 0;
    }

    .mafama-packages .packages-row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -11px;
        margin-left: -11px;
    }

    .mafama-packages .package-col {
        display: flex;
        margin-bottom: 22px;
        padding-right: 11px;
        padding-left: 11px;
    }

    .mafama-packages .package-card {
        --plan-accent: #2563eb;
        --plan-dark: #0b1e4d;
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 390px;
        padding: 24px;
        overflow: hidden;
        border: 1px solid var(--g-border);
        border-radius: 18px;
        background: #ffffff;
        color: var(--g-text);
        box-shadow: 0 18px 40px -28px rgba(6,15,46,.42);
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .mafama-packages .package-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 8px;
        background: linear-gradient(90deg, var(--plan-accent), var(--plan-dark));
    }

    .mafama-packages .package-card:hover {
        border-color: color-mix(in srgb, var(--plan-accent) 35%, #e3e7f3);
        box-shadow: 0 26px 56px -30px rgba(6,15,46,.62);
        transform: translateY(-7px);
    }

    .mafama-packages .plan-red { --plan-accent: #d62839; --plan-dark: #8b1420; }
    .mafama-packages .plan-blue { --plan-accent: #2563eb; --plan-dark: #123a86; }
    .mafama-packages .plan-orange { --plan-accent: #e8792b; --plan-dark: #a3510f; }
    .mafama-packages .plan-purple { --plan-accent: #4c3f91; --plan-dark: #241a52; }
    .mafama-packages .plan-gold { --plan-accent: #d4af37; --plan-dark: #8a6c12; }

    .mafama-packages .package-card-top,
    .mafama-packages .package-badges {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .mafama-packages .package-icon {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        border-radius: 15px;
        color: #fff;
        background: linear-gradient(135deg, var(--plan-accent), var(--plan-dark));
        font-size: 22px;
        box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--plan-accent) 70%, #000);
    }

    .mafama-packages .package-card h2 {
        margin: 22px 0 10px;
        color: var(--g-navy);
        font-size: 24px;
        line-height: 1.2;
    }

    .mafama-packages .package-description {
        flex: 1 1 auto;
        margin: 0 0 20px;
        color: var(--g-muted);
        font-size: 14px;
        font-weight: 650;
        line-height: 1.65;
    }

    .mafama-packages .package-price {
        display: flex;
        align-items: flex-end;
        gap: 8px;
        margin-bottom: 16px;
        color: var(--g-navy);
    }

    .mafama-packages .package-price span {
        font-family: Sora, system-ui, sans-serif;
        font-size: 42px;
        font-weight: 900;
        line-height: .95;
    }

    .mafama-packages .package-price small {
        margin-bottom: 4px;
        color: var(--g-muted);
        font-size: 15px;
        font-weight: 800;
    }

    .mafama-packages .package-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 28px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
    }

    .mafama-packages .package-badge-active {
        color: #11633e;
        background: #e9f8f1;
    }

    .mafama-packages .package-badge-paypal {
        color: #123a86;
        background: #eaf0ff;
    }

    .mafama-packages .package-badge-warning {
        color: #8a4b03;
        background: #fff3d9;
    }

    .mafama-packages .package-badge-free {
        color: #4c3f91;
        background: #f0edff;
    }

    .mafama-packages .package-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        min-height: 50px;
        margin-top: 20px;
        border: 0;
        border-radius: 12px;
        color: #fff !important;
        background: linear-gradient(135deg, var(--plan-accent), var(--plan-dark));
        box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--plan-accent) 80%, #000);
        font-weight: 900;
        text-decoration: none;
        transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }

    .mafama-packages .package-cta:hover,
    .mafama-packages .package-cta:focus {
        color: #fff !important;
        filter: brightness(1.05);
        box-shadow: 0 20px 38px -18px color-mix(in srgb, var(--plan-accent) 85%, #000);
        outline: 0;
        transform: translateY(-3px);
    }

    .mafama-packages .package-cta:focus-visible {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--plan-accent) 24%, #fff), 0 20px 38px -18px color-mix(in srgb, var(--plan-accent) 85%, #000);
    }

    .mafama-packages .package-cta.is-disabled {
        color: #7a8198 !important;
        background: #edf0f7;
        box-shadow: none;
        cursor: not-allowed;
        transform: none;
    }

    .mafama-packages .packages-empty {
        padding: 44px 24px;
        border: 1px dashed #cfd6e8;
        border-radius: 18px;
        text-align: center;
        background: #fff;
    }

    .mafama-packages .packages-empty i {
        color: var(--g-red);
        font-size: 40px;
    }

    .mafama-packages .packages-empty h2 {
        margin: 14px 0 8px;
    }

    .mafama-packages .packages-empty p {
        margin: 0;
        color: var(--g-muted);
        font-weight: 700;
    }

    body.mafama-home-active #topBar .mafama-nav-mounted,
    body:has(.mafama-home) #topBar .mafama-nav-mounted {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        margin: 0;
    }

    body.mafama-home-active #topBar .mafama-nav-mounted .mafama-nav-list,
    body:has(.mafama-home) #topBar .mafama-nav-mounted .mafama-nav-list {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 6px;
    }

    body.mafama-home-active #topBar .mafama-nav-mounted .g-nav-menu,
    body:has(.mafama-home) #topBar .mafama-nav-mounted .g-nav-menu {
        left: auto;
        right: 0;
    }

    .mafama-home .mafama-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        min-height: 44px;
        margin: 4px auto 10px;
        padding-right: 0;
    }

    .mafama-home .mafama-nav-list {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mafama-home .mafama-nav a,
    .mafama-home .mafama-nav button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 36px;
        padding: 8px 10px;
        border: 0;
        border-radius: 10px;
        color: #0b1e4d;
        background: transparent;
        font-size: 13px;
        font-weight: 850;
        line-height: 1;
        white-space: nowrap;
        transition: color .18s ease, background .18s ease, transform .18s ease;
    }

    .mafama-home .mafama-nav a:hover,
    .mafama-home .mafama-nav button:hover {
        color: #d62839;
        background: #fff4f5;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .mafama-home .mafama-nav .active a {
        color: #d62839;
        box-shadow: inset 0 -2px 0 #d62839;
    }

    .mafama-home .g-nav-dropdown {
        position: relative;
    }

    .mafama-home .g-nav-dropdown > button::after {
        content: "\f107";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 10px;
    }

    .mafama-home .g-nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        z-index: 50;
        display: grid;
        gap: 4px;
        min-width: 250px;
        margin: 0;
        padding: 10px;
        list-style: none;
        border: 1px solid #e3e7f3;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 20px 42px -24px rgba(6,15,46,.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .mafama-home .g-nav-dropdown:hover .g-nav-menu,
    .mafama-home .g-nav-dropdown:focus-within .g-nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mafama-home .g-nav-menu a {
        justify-content: flex-start;
        min-height: 34px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    /* Final mounted navigation design: applies after the home menu is moved beside login. */
    body.mafama-home-active #topBar .mafama-nav,
    body:has(.mafama-home) #topBar .mafama-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.mafama-home-active #topBar .mafama-nav-list,
    body:has(.mafama-home) #topBar .mafama-nav-list {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 4px !important;
        list-style: none !important;
        border: 1px solid #e3e7f3 !important;
        border-radius: 14px !important;
        background: rgba(255,255,255,.92) !important;
        box-shadow: 0 14px 34px -26px rgba(6,15,46,.48) !important;
    }

    body.mafama-home-active #topBar .mafama-nav-list > li,
    body:has(.mafama-home) #topBar .mafama-nav-list > li {
        position: relative !important;
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body.mafama-home-active #topBar .mafama-nav a,
    body.mafama-home-active #topBar .mafama-nav button,
    body:has(.mafama-home) #topBar .mafama-nav a,
    body:has(.mafama-home) #topBar .mafama-nav button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        min-height: 34px !important;
        padding: 8px 10px !important;
        border: 0 !important;
        border-radius: 10px !important;
        color: #0b1e4d !important;
        background: transparent !important;
        font-family: Inter, system-ui, -apple-system, sans-serif !important;
        font-size: 12.5px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease !important;
    }

    body.mafama-home-active #topBar .mafama-nav a:hover,
    body.mafama-home-active #topBar .mafama-nav button:hover,
    body.mafama-home-active #topBar .mafama-nav a:focus,
    body.mafama-home-active #topBar .mafama-nav button:focus,
    body:has(.mafama-home) #topBar .mafama-nav a:hover,
    body:has(.mafama-home) #topBar .mafama-nav button:hover,
    body:has(.mafama-home) #topBar .mafama-nav a:focus,
    body:has(.mafama-home) #topBar .mafama-nav button:focus {
        color: #d62839 !important;
        background: #fff4f5 !important;
        box-shadow: 0 8px 18px -16px rgba(214,40,57,.55) !important;
        transform: translateY(-1px) !important;
        outline: 0 !important;
    }

    body.mafama-home-active #topBar .mafama-nav .active > a,
    body:has(.mafama-home) #topBar .mafama-nav .active > a {
        color: #d62839 !important;
        background: #fff4f5 !important;
        box-shadow: inset 0 -2px 0 #d62839 !important;
    }

    body.mafama-home-active #topBar .g-nav-dropdown > button::after,
    body:has(.mafama-home) #topBar .g-nav-dropdown > button::after {
        content: "\f107" !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        font-size: 10px !important;
        line-height: 1 !important;
    }

    body.mafama-home-active #topBar .g-nav-menu,
    body:has(.mafama-home) #topBar .g-nav-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: auto !important;
        z-index: 9999 !important;
        display: grid !important;
        gap: 5px !important;
        min-width: 270px !important;
        margin: 0 !important;
        padding: 10px !important;
        list-style: none !important;
        border: 1px solid #e3e7f3 !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: 0 24px 50px -24px rgba(6,15,46,.45) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(7px) !important;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
    }

    body.mafama-home-active #topBar .g-nav-dropdown:hover .g-nav-menu,
    body.mafama-home-active #topBar .g-nav-dropdown:focus-within .g-nav-menu,
    body:has(.mafama-home) #topBar .g-nav-dropdown:hover .g-nav-menu,
    body:has(.mafama-home) #topBar .g-nav-dropdown:focus-within .g-nav-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    body.mafama-home-active #topBar .g-nav-menu a,
    body:has(.mafama-home) #topBar .g-nav-menu a {
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 36px !important;
        padding: 9px 11px !important;
        color: #0b1e4d !important;
        border-radius: 11px !important;
    }

    /* Final logo + language card layout for the before-login home page. */
    body.mafama-home-active #topBar,
    body:has(.mafama-home) #topBar {
        padding: 0 0 10px !important;
        background: #f5f7fc !important;
    }

    body.mafama-home-active #topBar > .container,
    body:has(.mafama-home) #topBar > .container {
        display: grid !important;
        grid-template-columns: 250px minmax(0, 1fr) !important;
        grid-template-areas:
            "brand languages"
            "login login" !important;
        gap: 6px 18px !important;
        align-items: start !important;
        width: min(1200px, calc(100% - 48px)) !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 0 12px !important;
        border: 1px solid #e3e7f3 !important;
        border-radius: 22px !important;
        background:
            radial-gradient(circle at 9% 20%, rgba(37,99,235,.09), transparent 27%),
            linear-gradient(135deg, #ffffff 0%, #f9fbff 100%) !important;
        box-shadow: none !important;
    }

    body.mafama-home-active #topBar > .container > .row,
    body:has(.mafama-home) #topBar > .container > .row {
        display: contents !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:first-child,
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:first-child {
        grid-area: brand !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    body.mafama-home-active #topBar .top-links,
    body:has(.mafama-home) #topBar .top-links {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        text-align: left !important;
    }

    body.mafama-home-active #topBar .top-links::before,
    body.mafama-home-active #topBar .top-links::after,
    body:has(.mafama-home) #topBar .top-links::before,
    body:has(.mafama-home) #topBar .top-links::after {
        content: none !important;
        display: none !important;
    }

    body.mafama-home-active #topBar .top-links > li:not(:first-child),
    body:has(.mafama-home) #topBar .top-links > li:not(:first-child) {
        display: none !important;
    }

    body.mafama-home-active #topBar .logo,
    body:has(.mafama-home) #topBar .logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.mafama-home-active #topBar .logo img,
    body:has(.mafama-home) #topBar .logo img {
        width: 240px !important;
        max-width: 100% !important;
        max-height: 108px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child,
    body:has(.mafama-home) #topBar > .container > nav:first-child {
        grid-area: languages !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 7px 10px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child::before,
    body.mafama-home-active #topBar > .container > nav:first-child::after,
    body:has(.mafama-home) #topBar > .container > nav:first-child::before,
    body:has(.mafama-home) #topBar > .container > nav:first-child::after {
        content: none !important;
        display: none !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child > ul,
    body:has(.mafama-home) #topBar > .container > nav:first-child > ul {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child li,
    body:has(.mafama-home) #topBar > .container > nav:first-child li {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0 !important;
        min-height: 28px !important;
        margin: 0 !important;
        padding: 4px 5px !important;
        border: 1px solid #d9e1f2 !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        box-shadow: 0 5px 14px -13px rgba(6,15,46,.42) !important;
        color: #0b1e4d !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.mafama-home-active #topBar > .container > nav:first-child li:has(.language_check:checked),
    body:has(.mafama-home) #topBar > .container > nav:first-child li:has(.language_check:checked),
    body.mafama-home-active #topBar > .container > nav:first-child li.is-active-language,
    body:has(.mafama-home) #topBar > .container > nav:first-child li.is-active-language {
        border-color: rgba(214,40,57,.38) !important;
        background: #fff6f7 !important;
    }

    body.mafama-home-active #topBar .language_check,
    body:has(.mafama-home) #topBar .language_check {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
        accent-color: #d62839 !important;
    }

    body.mafama-home-active #topBar .language_flags,
    body:has(.mafama-home) #topBar .language_flags {
        width: 16px !important;
        height: 16px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        box-shadow: 0 1px 3px rgba(6,15,46,.18) !important;
    }

    body.mafama-home-active #topBar > .container,
    body:has(.mafama-home) #topBar > .container {
        width: 100% !important;
        max-width: none !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(2),
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(2) {
        display: none !important;
    }

    body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3),
    body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) {
        grid-area: login !important;
    }

    @media (max-width: 768px) {
        body.mafama-home-active #topBar > .container,
        body:has(.mafama-home) #topBar > .container {
            grid-template-columns: 1fr !important;
            grid-template-areas: "brand" "languages" "login" !important;
            width: min(100% - 28px, 1200px) !important;
            padding: 14px !important;
        }

        body.mafama-home-active #topBar .logo img,
        body:has(.mafama-home) #topBar .logo img {
            width: 250px !important;
        }
    }

    .mafama-home .g-search {
        margin-top: 8px;
        margin-bottom: 14px;
    }

    .mafama-home .g-search form {
        border: 1px solid #d7def0;
        border-radius: 10px;
        box-shadow: 0 8px 20px -18px rgba(11,30,77,.38);
        transition: border-color .18s ease, box-shadow .18s ease;
    }

    .mafama-home .g-search form:focus-within {
        border-color: #d62839;
        box-shadow: 0 0 0 3px rgba(214,40,57,.11), 0 10px 24px -20px rgba(11,30,77,.42);
    }

    .mafama-home .g-search input {
        min-height: 42px;
        padding: 0 16px;
        font-size: 13px;
        font-weight: 750;
    }

    .mafama-home .g-search button {
        width: 50px;
        background: linear-gradient(135deg, #d62839, #a91e2c);
        transition: filter .18s ease, transform .18s ease;
    }

    .mafama-home .g-search button:hover,
    .mafama-home .g-search button:focus {
        filter: brightness(.96);
    }

    .mafama-home .g-weather {
        position: relative;
        padding: 20px 22px 18px;
        overflow: hidden;
        color: #fff !important;
        background:
            radial-gradient(circle at 12% 20%, rgba(255,255,255,.25), transparent 25%),
            linear-gradient(135deg, #0b1e4d 0%, #1452cf 54%, #2563eb 100%);
    }

    .mafama-home .g-weather * {
        color: #fff !important;
    }

    .mafama-home .g-weather-icon {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
        font-size: 34px;
        background: rgba(255,255,255,.2);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.12);
    }

    .mafama-home .g-temp {
        color: #fff !important;
        font-size: 30px;
        text-shadow: 0 1px 1px rgba(0,0,0,.18);
    }

    .mafama-home .g-condition {
        color: #fff !important;
        font-size: 16px;
        font-weight: 850;
        text-shadow: 0 1px 1px rgba(0,0,0,.18);
    }

    .mafama-home .g-weather-meta,
    .mafama-home .g-weather-meta span,
    .mafama-home .g-weather-meta b {
        color: #fff !important;
    }

    .mafama-home .g-weather-meta span {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        font-size: 16px;
        font-weight: 900;
        letter-spacing: .01em;
        line-height: 1.4;
        text-shadow: 0 1px 1px rgba(0,0,0,.16);
    }

    .mafama-home .g-weather-meta i {
        min-width: 18px;
        font-size: 18px;
        text-align: center;
    }

    .mafama-home .g-weather-meta b {
        font-weight: 950;
        letter-spacing: .01em;
    }

    .mafama-home .g-forecast-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin-top: 10px;
        color: #fff !important;
        font-size: 14px;
        font-weight: 900;
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1.5px;
        opacity: 1;
        text-shadow: 0 1px 1px rgba(0,0,0,.18);
    }

    .mafama-home .g-forecast-link:hover,
    .mafama-home .g-forecast-link:focus {
        color: #fff !important;
        text-decoration: underline;
        opacity: .88;
    }

    .mafama-home .g-date {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        padding: 20px 22px;
        background:
            radial-gradient(circle at 16% 30%, rgba(255,255,255,.2), transparent 25%),
            linear-gradient(135deg, #d62839 0%, #a91e2c 100%);
    }

    .mafama-home .g-date-icons {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        flex: 0 0 66px;
        width: 66px;
        height: 66px;
        border-radius: 16px;
        background: rgba(255,255,255,.2);
        color: #fff;
        font-size: 24px;
    }

    .mafama-home .g-date-icons i {
        color: #fff !important;
        font-size: 24px;
    }

    .mafama-home #guest-eastern-time {
        color: #fff !important;
        font-size: 18px;
        font-weight: 900;
        line-height: 1.25;
        text-shadow: 0 1px 1px rgba(0,0,0,.18);
    }

    .mafama-home .g-weather-modal {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 22px;
        background: rgba(6,15,46,.68);
        backdrop-filter: blur(4px);
    }

    .mafama-home .g-weather-modal.is-open {
        display: flex;
    }

    .mafama-home .g-weather-dialog {
        width: min(920px, 100%);
        max-height: min(86vh, 720px);
        overflow: auto;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 34px 80px -36px rgba(0,0,0,.7);
    }

    .mafama-home .g-weather-dialog-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 22px;
        color: #fff;
        background: linear-gradient(135deg, #0b1e4d, #2563eb);
    }

    .mafama-home .g-weather-dialog-head h3 {
        margin: 0;
        color: #fff;
        font-size: clamp(22px, 3vw, 28px);
        line-height: 1.2;
    }

    .mafama-home .g-weather-close {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        color: #fff;
        background: rgba(255,255,255,.16);
        font-size: 18px;
    }

    .mafama-home .g-forecast-list {
        display: grid;
        gap: 10px;
        padding: 18px;
    }

    .mafama-home .g-forecast-row {
        display: grid;
        grid-template-columns: 1.1fr 1fr 1.25fr;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border: 1px solid #e3e7f3;
        border-radius: 16px;
        background: #f8faff;
    }

    .mafama-home .g-forecast-row strong {
        color: #0b1e4d;
        font-size: 15px;
    }

    .mafama-home .g-forecast-row span {
        color: #5a6482;
        font-weight: 750;
    }

    .mafama-home .g-forecast-row span:nth-child(2) {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mafama-home .g-forecast-row i {
        color: #2563eb;
        font-size: 18px;
    }

    @media (max-width: 1100px) {
        body.mafama-home-active #topBar > .container > nav:first-child > ul,
        body:has(.mafama-home) #topBar > .container > nav:first-child > ul {
            flex-wrap: wrap !important;
        }

        .mafama-packages .packages-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .mafama-home .mafama-nav {
            justify-content: flex-start;
            margin: 6px auto 8px;
            padding-right: 0;
        }

        body.mafama-home-active #topBar .mafama-nav-mounted .mafama-nav-list,
        body:has(.mafama-home) #topBar .mafama-nav-mounted .mafama-nav-list {
            flex-wrap: wrap;
        }
    }

    @media (max-width: 768px) {
        body.mafama-home-active #topBar > .container,
        body:has(.mafama-home) #topBar > .container {
            grid-template-columns: 1fr !important;
            grid-template-areas: "brand" "languages" "login" !important;
            width: min(100% - 28px, 1200px) !important;
        }

        body.mafama-home-active #topBar > .container > nav:first-child,
        body:has(.mafama-home) #topBar > .container > nav:first-child {
            justify-content: flex-start !important;
        }

        body.mafama-home-active #topBar > .container > nav:first-child > ul,
        body:has(.mafama-home) #topBar > .container > nav:first-child > ul {
            justify-content: flex-start !important;
        }

        body.mafama-home-active #topBar > .container > .row,
        body:has(.mafama-home) #topBar > .container > .row {
            display: contents !important;
        }

        body.mafama-home-active #topBar > .container > .row > .col-md-4:first-child,
        body:has(.mafama-home) #topBar > .container > .row > .col-md-4:first-child {
            grid-area: brand !important;
        }

        body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3),
        body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) {
            grid-area: login !important;
            flex-direction: column !important;
            align-items: stretch !important;
        }

        body.mafama-home-active #topBar .logo img,
        body:has(.mafama-home) #topBar .logo img {
            max-width: 230px !important;
            max-height: 82px !important;
        }

        body.mafama-home-active #topBar > .container > .row > .col-md-4:nth-child(3) form,
        body:has(.mafama-home) #topBar > .container > .row > .col-md-4:nth-child(3) form {
            grid-template-columns: 1fr !important;
            max-width: none !important;
            margin-left: 0 !important;
        }

        .mafama-home .mafama-nav-list {
            flex-wrap: wrap;
        }

        body.mafama-home-active #topBar .mafama-nav-mounted,
        body:has(.mafama-home) #topBar .mafama-nav-mounted,
        body.mafama-home-active #topBar .mafama-nav-mounted .mafama-nav-list,
        body:has(.mafama-home) #topBar .mafama-nav-mounted .mafama-nav-list {
            justify-content: flex-start;
        }

        .mafama-home .g-forecast-row {
            grid-template-columns: 1fr;
        }

        .mafama-packages .packages-hero {
            padding: 34px 24px;
        }

        .mafama-packages .packages-grid {
            grid-template-columns: 1fr;
        }

    }

