/* AIM Healthcare public website and client portal */
:root {
    --brand: #0b6e7f; --brand-dark: #08505d; --brand-soft: #e6f4f6; --brand-2: #19b5c9;
    --ink: #13293a; --muted: #607080; --line: #e6ecf1; --bg-alt: #f4f8fa;
    --radius: 1rem;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-link-color: var(--brand); --bs-link-color-rgb: 11,110,127; --bs-link-hover-color: var(--brand-dark);
}
body { color: var(--ink); background: #fff; font-size: .97rem; overflow-x: clip; }
main { overflow-x: clip; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
.min-w-0 { min-width: 0; }

/* buttons */
.btn { border-radius: .7rem; font-weight: 600; }
.btn-brand { background: var(--brand); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(11,110,127,.25); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-brand-soft { background: var(--brand-soft); color: var(--brand-dark); border: 0; }
.btn-brand-soft:hover { background: #d3ecf0; color: var(--brand-dark); }
.form-control, .form-select { border-radius: .65rem; border-color: #d8e2e9; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(11,110,127,.15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.input-group-text { background: #f6f9fb; border-color: #d8e2e9; color: var(--muted); border-radius: .65rem; }
.form-label { font-weight: 600; font-size: .85rem; color: #34475a; }
.input-validation-error { border-color: #e4606d !important; }
.validation-summary-valid { display: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(16,24,40,.05); }
.site-header .navbar { padding: .85rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--ink); line-height: 1.05; }
.navbar-brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.brand-logo { height: 2.75rem; width: auto; display: block; }
@media (max-width: 575.98px) { .brand-logo { height: 2.2rem; } }
.brand-mark { width: 2.4rem; height: 2.4rem; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center;
              background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.navbar-toggler { border: 0; font-size: 1.6rem; color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }
.navbar .nav-link { font-weight: 600; color: #3a4d5e; padding: .5rem .9rem !important; border-radius: .6rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); background: var(--brand-soft); }
.dropdown-menu { border-radius: .8rem; padding: .4rem; }
.dropdown-item { border-radius: .5rem; font-weight: 500; }
@media (max-width: 991.98px) { .nav-actions { padding: .75rem 0; } }

/* utilities */
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 2000; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; color: #fff; }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1040; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--brand-2), #7c5cff); }
.grad-text { background: linear-gradient(90deg, #7fe3f1, #a5f3c4 50%, #7fe3f1); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; color: #fff; font-size: 1.1rem;
          background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 10px 24px rgba(11,110,127,.35); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.float-y { animation: floatY 5s ease-in-out infinite; }

/* buttons */
.btn-glow { position: relative; color: #06303a; background: linear-gradient(135deg, #7fe3f1, #a5f3c4); border: 0; box-shadow: 0 10px 30px rgba(127,227,241,.35); overflow: hidden; }
.btn-glow:hover, .btn-glow:focus { color: #06303a; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(127,227,241,.5); }
.btn-glass { color: #fff; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-glass:hover, .btn-glass:focus { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.btn-glow, .btn-glass, .btn-brand, .btn-brand-soft { transition: transform .2s, box-shadow .2s, background .2s; }
.btn-brand:hover { transform: translateY(-2px); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out infinite; }

/* hero */
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #bfe9f0;
           background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .32rem .8rem; border-radius: 2rem; }
.eyebrow.dark { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #5ef0a5; box-shadow: 0 0 0 0 rgba(94,240,165,.7); animation: ping 2s infinite; }
.hero-home { position: relative; overflow: hidden; color: #fff; padding: 6rem 0 8.5rem; background: linear-gradient(125deg, #071e28 0%, #0a4452 45%, #0b6e7f 100%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero-home .b1 { width: 32rem; height: 32rem; background: #19b5c9; top: -10rem; right: -6rem; }
.hero-home .b2 { width: 24rem; height: 24rem; background: #3e7bfa; bottom: -10rem; left: -6rem; opacity: .35; animation-duration: 22s; }
.hero-home .b3 { width: 18rem; height: 18rem; background: #3ee0a5; top: 30%; left: 40%; opacity: .22; animation-duration: 26s; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
             background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.plus { position: absolute; width: 14px; height: 14px; opacity: .35; animation: floatY 7s ease-in-out infinite; }
.plus::before, .plus::after { content: ""; position: absolute; background: #7fe3f1; border-radius: 2px; }
.plus::before { left: 5px; top: 0; width: 4px; height: 14px; } .plus::after { top: 5px; left: 0; width: 14px; height: 4px; }
.p1 { top: 9%; left: 3%; } .p2 { top: 90%; left: 44%; animation-delay: -2s; transform: scale(.7); } .p3 { top: 12%; left: 52%; animation-delay: -4s; }
.p4 { top: 82%; right: 8%; animation-delay: -1s; } .p5 { top: 45%; right: 46%; animation-delay: -3s; transform: scale(.6); }
.hero-home h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.06; margin: 1.2rem 0 1.1rem; }
.hero-home .lead { color: #d2eaef; font-size: 1.16rem; max-width: 36rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 2.2rem 0 0; padding: 0; list-style: none; color: #bfe0e6; font-size: .88rem; font-weight: 500; }
.hero-trust i { color: #7fe3f1; margin-right: .4rem; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; fill: #fff; }
.hero-visual { position: relative; height: 520px; }
.ring-svg { position: absolute; inset: -30px -10px auto auto; width: 520px; height: 520px; }
.ring { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.5; transform-origin: 260px 260px; }
.ring.r1 { stroke-dasharray: 4 10; animation: spin 60s linear infinite; }
.ring.r2 { stroke-dasharray: 120 40; animation: spin 40s linear infinite reverse; }
.ring.r3 { stroke-width: 2.5; stroke-dasharray: 260 600; animation: spin 14s linear infinite; }
.hero-panel { position: absolute; top: 70px; left: 50%; width: 360px; margin-left: -170px; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 1.25rem; padding: 1.2rem;
              box-shadow: 0 40px 80px rgba(0,0,0,.35); animation: floatY 7s ease-in-out infinite; }
.hp-head { display: flex; align-items: center; color: var(--muted); margin-bottom: .75rem; }
.hp-head .dot { width: .6rem; height: .6rem; border-radius: 50%; background: #e0e6eb; margin-right: .3rem; }
.hp-head .dot:nth-child(1) { background: #ff8a8a; } .hp-head .dot:nth-child(2) { background: #ffd36e; } .hp-head .dot:nth-child(3) { background: #6ee7a8; }
.hp-row { display: flex; align-items: center; gap: .8rem; padding: .75rem; border-radius: .8rem; background: #f6f9fb; margin-bottom: .55rem; }
.hp-row > i { width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.hp-row > div { flex: 1; } .hp-row b { font-size: .88rem; } .hp-row small { font-weight: 700; color: var(--brand); }
.hp-foot { font-size: .8rem; color: #1a8a5b; background: #e3f5ec; border-radius: .7rem; padding: .55rem .8rem; }
.bar { height: .45rem; border-radius: 1rem; background: #e3eaef; overflow: hidden; margin-top: .35rem; }
.bar span { display: block; height: 100%; border-radius: 1rem; width: var(--w, 0); background: linear-gradient(90deg, var(--brand-2), var(--brand)); animation: grow 1.6s cubic-bezier(.2,.8,.2,1) .6s both; }
.float-card { position: absolute; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 1rem; padding: .8rem 1rem; box-shadow: 0 20px 40px rgba(0,0,0,.28); display: flex; align-items: center; gap: .6rem; }
.float-card b { display: block; font-size: .85rem; } .float-card small { display: block; font-size: .72rem; color: var(--muted); }
.fc-icon { width: 2.2rem; height: 2.2rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.fc-icon.red { background: #ffe8ec; color: #e0435e; } .fc-icon.green { background: #e3f5ec; color: #1a8a5b; }
.fc-pulse { flex-direction: column; align-items: stretch; left: -10px; bottom: 0; z-index: 2; width: 220px; animation: floatY 6s ease-in-out -2s infinite; }
.ecg { width: 100%; height: 40px; }
.ecg path { fill: none; stroke: #e0435e; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: ecg 2.6s linear infinite; }
.fc-badge { right: 0; top: 10px; animation: floatY 5.5s ease-in-out -1s infinite; }
.fc-chip { right: 10px; bottom: 50px; font-size: .8rem; font-weight: 600; padding: .55rem .9rem; border-radius: 2rem; color: var(--brand-dark); animation: floatY 6.5s ease-in-out -3s infinite; }
.fc-chip i { color: var(--brand); }
.anim-up { animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both; }

/* standards strip */
.standards { padding: 1.2rem 0 .5rem; }
.standards-label { text-align: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.std { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; border-radius: 2rem; border: 1px solid var(--line); background: #fff; font-weight: 700; color: #3a4d5e; white-space: nowrap; }
.std i { color: var(--brand); }

/* stats */
.stats-band { padding: 2.5rem 0 0; }
.stats-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; padding: 1.6rem; border-radius: 1.4rem; background: #fff;
              border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(16,24,40,.07); }
.stat-item { display: flex; align-items: center; gap: .9rem; padding: .4rem .6rem; }
.stat-ic { width: 3.1rem; height: 3.1rem; border-radius: 1rem; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 1.35rem;
           display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 10px 20px rgba(11,110,127,.25); }
.stat-item b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat-label { display: block; font-size: .82rem; color: var(--muted); margin-top: .25rem; }

/* page hero */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 4rem 0 5rem; background: linear-gradient(125deg, #071e28 0%, #0a4452 55%, #0b6e7f 100%); }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero .b1 { width: 22rem; height: 22rem; background: #19b5c9; top: -9rem; right: 5%; }
.page-hero .b2 { width: 16rem; height: 16rem; background: #3e7bfa; bottom: -9rem; left: 10%; opacity: .3; animation-duration: 24s; }
.hero-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px); background-size: 22px 22px;
             -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero .lead { color: #cfe7ec; max-width: 46rem; }
.page-hero .hero-wave { height: 60px; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .82rem; color: #a9cdd5; }
.crumbs li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .6rem; margin: 0 .5rem; vertical-align: middle; }
.crumbs a { color: #cfe7ec; text-decoration: none; } .crumbs a:hover { color: #fff; }
.hero-icon { width: 3.6rem; height: 3.6rem; border-radius: 1rem; background: linear-gradient(135deg, #7fe3f1, var(--brand-2)); color: #06303a; font-size: 1.7rem;
             display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); flex-shrink: 0; }
.page-hero.slim { padding: 2.5rem 0 1.75rem; }

/* sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .9rem 0 .5rem; }
.section-head p { color: var(--muted); }
.svc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; padding: 1.6rem; border-radius: 1.2rem; background: #fff; border: 1px solid var(--line);
            color: inherit; text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand-2), #7c5cff); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(11,110,127,.14); border-color: #cfe6ea; color: inherit; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-glow { position: absolute; width: 12rem; height: 12rem; right: -5rem; top: -5rem; border-radius: 50%; background: radial-gradient(circle, rgba(25,181,201,.18), transparent 70%); transition: transform .4s; }
.svc-card:hover .svc-glow { transform: scale(1.6); }
.svc-card h3 { font-size: 1.07rem; font-weight: 700; margin: 1.1rem 0 .45rem; letter-spacing: -.01em; }
.svc-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.svc-more { color: var(--brand); font-weight: 600; font-size: .88rem; }
.svc-more i { transition: transform .2s; display: inline-block; } .svc-card:hover .svc-more i { transform: translateX(4px); }
.svc-icon { position: relative; width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: var(--brand-soft); color: var(--brand); font-size: 1.45rem;
            display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .25s, color .25s, transform .25s; }
.svc-card:hover .svc-icon { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc-icon.sm { width: 2.5rem; height: 2.5rem; font-size: 1.15rem; border-radius: .75rem; }
.svc-icon.xs { width: 2rem; height: 2rem; font-size: .95rem; border-radius: .6rem; }

/* why us */
.orbit { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit-core { position: absolute; inset: 35%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; z-index: 2;
              background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 0 0 14px rgba(25,181,201,.12), 0 0 0 30px rgba(25,181,201,.06), 0 24px 48px rgba(11,110,127,.35); }
.orbit-ring { position: absolute; border-radius: 50%; border: 1.5px dashed #bfdfe5; animation: spin 40s linear infinite; }
.orbit-ring.o1 { inset: 18%; } .orbit-ring.o2 { inset: 2%; animation-duration: 60s; animation-direction: reverse; }
.orbit-ring span { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.orbit-ring span i { position: absolute; top: -1.6rem; left: 50%; margin-left: -1.6rem; width: 3.2rem; height: 3.2rem; display: flex; align-items: center; justify-content: center;
                     border-radius: 1rem; background: #fff; color: var(--brand); font-size: 1.3rem; box-shadow: 0 10px 24px rgba(16,24,40,.12);
                     rotate: calc(-1 * var(--a)); animation: spin 40s linear infinite reverse; }
.orbit-ring.o2 span i { animation: spin 60s linear infinite; }
.orbit-glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(25,181,201,.25), transparent 70%); filter: blur(20px); animation: pulse 4s ease-in-out infinite; }
.feature-list { display: grid; gap: 1rem; }
.feature { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 1rem; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateX(6px); box-shadow: 0 14px 30px rgba(16,24,40,.07); }
.f-ic { width: 2.8rem; height: 2.8rem; border-radius: .9rem; background: var(--brand-soft); color: var(--brand); font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .2rem; letter-spacing: 0; } .feature p { margin: 0; color: var(--muted); font-size: .9rem; }

/* timeline */
.timeline { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.timeline.compact { grid-template-columns: repeat(3, 1fr); margin-top: 1.2rem; }
.timeline::before { content: ""; position: absolute; top: 1.9rem; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-2), #7c5cff);
                    transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.timeline::after { content: ""; position: absolute; top: 1.9rem; left: 12%; right: 12%; height: 3px; background: var(--line); z-index: -1; }
.timeline li { position: relative; text-align: center; padding: 0 .5rem; counter-increment: step; }
.t-ic { position: relative; z-index: 1; width: 3.8rem; height: 3.8rem; margin: 0 auto 1rem; border-radius: 50%; background: #fff; border: 3px solid var(--brand-soft); color: var(--brand);
        font-size: 1.45rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(11,110,127,.15); transition: background .3s, color .3s; }
.t-ic::after { content: counter(step); position: absolute; top: -.35rem; right: -.35rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800;
               display: flex; align-items: center; justify-content: center; }
.timeline li h3 { font-size: 1.05rem; margin-bottom: .35rem; } .timeline li p { color: var(--muted); font-size: .9rem; margin: 0; }
.js .timeline li { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; transition-delay: calc(var(--d, 0ms) + 300ms); }
.js .timeline.in li, .no-js .timeline li { opacity: 1; transform: none; }
.timeline.in::before, .no-js .timeline::before { transform: scaleX(1); }
.timeline.in .t-ic { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-color: #fff; transition-delay: calc(var(--d, 0ms) + 500ms); }
@media (max-width: 767.98px) {
    .timeline, .timeline.compact { grid-template-columns: 1fr; gap: 1.2rem; }
    .timeline::before, .timeline::after { top: 0; bottom: 0; left: 1.9rem; right: auto; width: 3px; height: auto; transform-origin: top; }
    .timeline::before { transform: scaleY(0); } .timeline.in::before { transform: scaleY(1); }
    .timeline li { display: grid; grid-template-columns: 3.8rem 1fr; column-gap: 1rem; text-align: left; padding: 0; }
    .timeline li .t-ic { grid-row: span 2; margin: 0; } .timeline li h3 { margin-top: .5rem; }
}

/* testimonials */
.testimonials { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #071e28, #0a4452); }
.testimonials::before { content: ""; position: absolute; width: 30rem; height: 30rem; border-radius: 50%; background: #19b5c9; filter: blur(90px); opacity: .25; top: -12rem; left: -8rem; }
.testimonials .section-head h2 { color: #fff; }
.tst-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 3rem) / 3)); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
             scrollbar-width: none; padding: .5rem .25rem 1rem; outline: none; }
.tst-track::-webkit-scrollbar { display: none; }
.tst-card { scroll-snap-align: start; margin: 0; padding: 1.8rem; border-radius: 1.3rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px);
            display: flex; flex-direction: column; transition: transform .25s, background .25s; }
.tst-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); }
.tst-q { font-size: 2.6rem; line-height: 1; color: #7fe3f1; }
.tst-stars { color: #ffd36e; font-size: .85rem; margin: .4rem 0 .8rem; letter-spacing: .1rem; }
.tst-card blockquote { flex: 1; font-size: 1.02rem; line-height: 1.65; color: #e2f2f5; margin: 0 0 1.4rem; }
.tst-card figcaption { display: flex; align-items: center; gap: .8rem; }
.tst-card figcaption b { display: block; font-size: .92rem; } .tst-card figcaption small { color: #a9cdd5; font-size: .8rem; }
.tst-av { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: linear-gradient(135deg, #7fe3f1, #a5f3c4); color: #06303a; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tst-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.2rem; }
.tst-dots button { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: 1rem; background: rgba(255,255,255,.3); transition: width .3s, background .3s; }
.tst-dots button.on { width: 1.8rem; background: #7fe3f1; }
@media (max-width: 991.98px) { .tst-track { grid-auto-columns: minmax(280px, 85%); } }

/* content */
.cms-body { font-size: 1.03rem; line-height: 1.8; color: #2c3e50; }
.cms-body.narrow { max-width: 50rem; margin: 0 auto; }
.cms-body h2 { font-size: 1.65rem; margin: 2.2rem 0 .8rem; } .cms-body h3 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.cms-body img { max-width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 16px 36px rgba(16,24,40,.1); }
.cms-body a { font-weight: 600; text-underline-offset: 3px; }
.cms-body blockquote { border-left: 4px solid var(--brand-2); background: var(--bg-alt); padding: 1rem 1.25rem; border-radius: 0 .8rem .8rem 0; }
.cms-body ul li, .ticks li { margin-bottom: .35rem; }
.ticks { list-style: none; padding: 0; } .ticks li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--brand); margin-right: .55rem; }
.mini-feature { height: 100%; padding: 1.2rem; border-radius: 1rem; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.mini-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(16,24,40,.07); }
.mini-feature i { font-size: 1.5rem; color: var(--brand); display: block; margin-bottom: .6rem; }
.mini-feature b { display: block; font-size: .95rem; } .mini-feature span { font-size: .85rem; color: var(--muted); }
.side-cta { position: sticky; top: 6rem; overflow: hidden; background: linear-gradient(160deg, #fff, var(--bg-alt)); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.8rem;
            box-shadow: 0 20px 44px rgba(16,24,40,.07); }
.side-cta-ic { width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; }
.cta-band { position: relative; overflow: hidden; color: #fff; padding: 4rem 0; background: linear-gradient(120deg, #08505d, #0b6e7f, #138a9c, #08505d); background-size: 300% 300%; animation: gradientMove 14s ease infinite; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3rem; } .cta-band p { color: #cfe7ec; }
.cta-shapes span { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); animation: floatY 8s ease-in-out infinite; }
.cta-shapes span:nth-child(1) { width: 10rem; height: 10rem; top: -4rem; left: 8%; }
.cta-shapes span:nth-child(2) { width: 6rem; height: 6rem; bottom: -2rem; left: 45%; animation-delay: -3s; }
.cta-shapes span:nth-child(3) { width: 14rem; height: 14rem; top: -5rem; right: -3rem; animation-delay: -5s; background: rgba(255,255,255,.05); }
.big-icon { width: 4.5rem; height: 4.5rem; border-radius: 1.2rem; margin: 0 auto; background: var(--brand-soft); color: var(--brand); font-size: 2.1rem; display: flex; align-items: center; justify-content: center; }
.big-icon.warn { background: #fdf3e1; color: #c27f08; }

/* footer */
.site-footer { position: relative; background: #071e28; color: #a9c3cb; padding: 5rem 0 1.5rem; font-size: .9rem; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; color: #fff; }
.footer-h { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; letter-spacing: 0; }
.site-footer a { color: #a9c3cb; text-decoration: none; transition: color .15s, padding .15s; } .site-footer a:hover { color: #fff; }
.site-footer nav li a:hover { padding-left: .25rem; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff !important; font-weight: 800; font-size: 1.1rem; }
.footer-brand img { height: 3rem; width: auto; background: #fff; border-radius: .8rem; padding: .4rem .75rem; box-sizing: content-box; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; } .footer-contact i { color: #7fe3f1; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--brand); }
.footer-cta { padding: 1.2rem; border-radius: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.footer-cta i { font-size: 1.6rem; color: #7fe3f1; } .footer-cta p { color: #fff; font-weight: 600; margin: .4rem 0 .8rem; }
.footer-cta .btn { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .8rem; color: #7d99a2; }

/* scroll reveal: hidden only when JS is running, so content is always reachable */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.js [data-reveal="left"] { transform: translateX(-40px); } .js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-4rem, 3rem) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { width: 0; } }
@keyframes ecg { 0% { stroke-dashoffset: 320; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -320; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(94,240,165,.7); } 80%, 100% { box-shadow: 0 0 0 .55rem rgba(94,240,165,0); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }
@keyframes pulse { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes gradientMove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* auth */
.auth-wrap { display: flex; min-height: calc(100vh - 74px); }
.auth-side { flex: 0 0 40%; color: #fff; padding: 3rem; align-items: center;
             background: radial-gradient(circle at 80% 10%, rgba(25,181,201,.45), transparent 45%), linear-gradient(150deg, #0a2733, #0b6e7f); }
.auth-side h2 { font-size: 2rem; line-height: 1.15; }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; }
.auth-points li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; color: #d2eaef; }
.auth-points i { width: 2.2rem; height: 2.2rem; border-radius: .7rem; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem; background: var(--bg-alt); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 1.25rem; padding: 2.25rem; box-shadow: 0 20px 50px rgba(16,24,40,.08); border: 1px solid var(--line); }
.auth-card.wide { max-width: 680px; }
.auth-card h1 { font-size: 1.6rem; }
.form-step { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 700; margin: 1.6rem 0 .9rem; letter-spacing: 0; }
.form-step span { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }

/* portal */
.portal-hero { color: #fff; padding: 2.5rem 0 2rem; background: radial-gradient(circle at 85% 10%, rgba(25,181,201,.45), transparent 40%), linear-gradient(125deg, #0a2733, #0b6e7f); }
.portal-hero h1 { font-size: 2rem; } .portal-hero p { color: #cfe7ec; }
.p-stat { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: .9rem; padding: .9rem 1rem; height: 100%; }
.p-stat > i { font-size: 1.3rem; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; }
.p-stat b { display: block; font-size: 1.3rem; line-height: 1.1; } .p-stat span { font-size: .78rem; color: #cfe7ec; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.p-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.p-card-head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .55rem; letter-spacing: 0; }
.p-card-head h2 > i { color: var(--brand); }
.p-empty { text-align: center; padding: 1.75rem 1rem; color: var(--muted); }
.p-empty > i { font-size: 2rem; color: #b9d3d9; }
.my-svc { display: flex; gap: .8rem; align-items: center; padding: .9rem; border: 1px solid var(--line); border-radius: .85rem; height: 100%; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: 2rem; background: #eef2f6; color: #4a5a6a; white-space: nowrap; }
.tag.ok { background: #e3f5ec; color: #1a8a5b; } .tag.bad { background: #fce8ec; color: #c93a55; } .tag.warn { background: #fdf3e1; color: #b57405; }
.tag.new { background: #efeafb; color: #6a4bc9; } .tag.info { background: #e3f6f8; color: #0b8798; }
.proj { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid #f0f3f6; } .proj:first-of-type { border-top: 0; padding-top: 0; }
.avatar-lg { width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.suggest { display: flex; align-items: center; gap: .7rem; padding: .55rem .4rem; border-radius: .6rem; color: inherit; text-decoration: none; font-size: .9rem; font-weight: 500; }
.suggest:hover { background: var(--brand-soft); color: var(--brand-dark); }
.suggest > .bi-plus-lg { color: var(--brand); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; border-bottom-width: 1px; }
.step-no { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.pick { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: .9rem; cursor: pointer; height: 100%; transition: border-color .15s, background .15s, box-shadow .15s; }
.pick:hover { border-color: #bfe0e6; }
.pick.on { border-color: var(--brand); background: #f3fafb; box-shadow: 0 0 0 .2rem rgba(11,110,127,.08); }
.pick .form-check-input { width: 1.2em; height: 1.2em; margin: 0; flex-shrink: 0; }
.pick b { display: block; font-size: .92rem; } .pick small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; margin-top: .15rem; }
.pick-extra { margin-top: .5rem; }
.sticky-lg { position: sticky; top: 6rem; }
@media (max-width: 991.98px) { .sticky-lg, .side-cta { position: static; } .section { padding: 3.5rem 0; } .hero-home { padding: 3.5rem 0 6rem; } .page-hero { padding: 3rem 0 4rem; } }

/* motion: respect the visitor's system setting */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js .timeline li { opacity: 1; transform: none; }
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .ecg path { stroke-dashoffset: 0; }
    .std[aria-hidden] { display: none; }
}

/* ---- contact details ---- */
.top-bar { background: #071e28; color: rgba(255,255,255,.8); font-size: .8rem; padding: .4rem 0; }
.top-bar a { color: rgba(255,255,255,.85); text-decoration: none; }
.top-bar a:hover, .top-bar a:focus { color: #fff; }
.contact-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.5rem;
                transition: transform .25s ease, box-shadow .25s ease; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(11,110,127,.14); }
.contact-card h2 { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .4rem; }
.contact-card address { color: var(--muted); margin-bottom: .6rem; }
.contact-card a { font-weight: 600; text-decoration: none; }
.contact-icon { width: 3rem; height: 3rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center;
                background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .contact-card, .contact-card:hover { transition: none; transform: none; } }