/* school365.ky overrides on top of legacy-public.css.
   Brand palette (carried over from legacy SPOS):
     --brand-orange:        #f36b20
     --brand-orange-hover:  #e4611a
     --brand-teal:          #2b6062
     --brand-teal-hover:    #274a4b
     --brand-bg:            #ececec
*/
:root {
    --brand-orange: #f36b20;
    --brand-orange-hover: #e4611a;
    --brand-teal: #2b6062;
    --brand-teal-hover: #274a4b;
    --brand-bg: #f5f6fa;
    --brand-soft: #fff7f0;
}

html, body {
    font-family: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11"; /* Inter — cleaner letterforms */
    letter-spacing: -0.011em; /* subtle modern tightening */
}
h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    letter-spacing: -0.022em; /* tighter headings read as more modern */
}

/* ───── Sticky footer ───────────────────────────────────────────────
   Flex column on <body> so the footer is pinned to the viewport bottom
   on short pages (login, 404, empty admin screens). <main> grows to
   fill leftover space. The navbar keeps its own `sticky-top` behaviour
   because it's outside <main>. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main {
    flex: 1 0 auto;
}
body > footer {
    flex-shrink: 0;
}

/* ───── Top brand strip ─────────────────────────────────────────── */
.brand-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-teal) 100%);
}

/* ───── Navbar / brand wordmark ─────────────────────────────────── */
.navbar { padding-top: .65rem; padding-bottom: .65rem; }
.navbar-brand { font-weight: 700; }
.brand-logo { height: 44px; width: 44px; object-fit: contain; border-radius: 6px; }
.brand-wordmark { font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-school { color: var(--brand-teal); font-weight: 700; }
.brand-365 { color: var(--brand-orange); font-weight: 800; }
.brand-ky { color: var(--brand-teal); font-weight: 700; }

/* ───── Buttons — bridge Bootstrap 5 → legacy classes ───────────── */
.btn-primary {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--brand-orange-hover) !important;
    border-color: var(--brand-orange-hover) !important;
    box-shadow: 0 4px 12px rgba(243, 107, 32, 0.25);
}
.btn-green {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
    color: #fff;
}
.btn-green:hover, .btn-green:focus, .btn-green:active {
    background-color: var(--brand-teal-hover);
    border-color: var(--brand-teal-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(43, 96, 98, 0.25);
}
.btn-outline-secondary { color: var(--brand-teal); border-color: var(--brand-teal); }
.btn-outline-secondary:hover { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }

.dropdown-toggle::after { margin-left: .4em; }
.dropdown-menu { border-radius: .5rem; border: 0; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08); }
.dropdown-item i { color: var(--brand-orange); }

/* ───── Auth card (Login / Signup / ForgotPassword / ResetPassword /
   ChangePassword) — one card design, shared shell.

   Default 520px works for single-column forms (Login, ForgotPassword,
   ResetPassword, ChangePassword). Signup pages use `.row > .col-md-6`
   for a two-column layout and add the .auth-card-wide modifier to
   open up to 760px. ─────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────────
   Auth split layout (2026-05-27): full-bleed two-column page used
   by Login / Register / ForgotPassword / ResetPassword / VerifyEmail.
   Left panel: solid brand color, school365 logo + tagline + service
   icons. Right panel: white, vertically-centered form. Inspired by
   the NCI Freight & Logistics design the user shared.
   On mobile (<768px), collapses to single column with the brand
   panel shrunk to a header band. ───────────────────────────────── */
.auth-split {
    display: flex;
    min-height: 100vh;
}
.auth-brand-panel {
    flex: 1 1 50%;
    background: linear-gradient(165deg, #0f3a3a 0%, #163a52 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.auth-brand-panel-inner {
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
}
.auth-brand-mark .brand-logo {
    /* Real logo.jpeg has a white background. Frame it intentionally as a
       circular "logo plate" so it reads as deliberate on the dark gradient
       rather than looking like a stray sticker. */
    height: 80px; width: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: .35rem;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .25),
                0 0 0 .35rem rgba(255, 255, 255, .08);
    display: block;
}
.auth-brand-mark .wordmark {
    font-size: 2rem; font-weight: 700; letter-spacing: -.5px;
    line-height: 1;
}
.auth-brand-tagline {
    font-size: 1.4rem; font-weight: 600; margin-bottom: .75rem;
}
.auth-brand-subtitle {
    font-size: .92rem; opacity: .8; line-height: 1.55;
}
.auth-brand-icons {
    display: flex; justify-content: center; gap: 2.25rem;
    margin-top: 2.5rem; opacity: .55; font-size: 1.55rem;
}
.auth-form-panel {
    flex: 1 1 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.auth-form-panel-inner {
    width: 100%; max-width: 420px;
}
.auth-form-panel-inner.wide { max-width: 620px; }
.auth-form-panel-inner h1 {
    font-size: 1.85rem; font-weight: 700;
    color: #0f172a; margin-bottom: .35rem;
}
.auth-form-panel-inner .auth-form-subtitle {
    color: #64748b; font-size: .9rem; margin-bottom: 2rem;
}
.auth-form-panel-inner .form-label {
    font-weight: 500; font-size: .85rem; color: #334155;
    margin-bottom: .35rem;
}
.auth-form-panel-inner .input-group-text {
    background: #f8fafc; border-right: 0; color: #64748b;
}
.auth-form-panel-inner .form-control,
.auth-form-panel-inner .form-select {
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    padding: .55rem .85rem;
    font-size: .95rem;
}
.auth-form-panel-inner .input-group .form-control { border-left: 0; }
.auth-form-panel-inner .form-control:focus,
.auth-form-panel-inner .form-select:focus {
    border-color: var(--brand-orange, #f36b20);
    box-shadow: 0 0 0 .2rem rgba(243, 107, 32, .15);
}
.auth-form-panel-inner .btn-primary {
    background: var(--brand-orange, #f36b20);
    border-color:  var(--brand-orange, #f36b20);
    padding: .65rem 1rem;
    font-weight: 600;
    border-radius: 999px;
    transition: transform .1s ease, box-shadow .15s ease;
}
.auth-form-panel-inner .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 .35rem .85rem rgba(243, 107, 32, .35);
}
.auth-form-panel-inner .alt-action {
    text-align: center; color: #64748b; font-size: .88rem; margin-top: 1.25rem;
}
.auth-form-panel-inner .alt-action a {
    color: var(--brand-orange, #f36b20); font-weight: 600; text-decoration: underline;
}
@media (max-width: 768px) {
    .auth-split { flex-direction: column; min-height: auto; }
    .auth-brand-panel { min-height: 220px; flex: 0 0 auto; padding: 2rem 1.5rem; }
    .auth-brand-icons { display: none; }
    .auth-form-panel { padding: 2.5rem 1.25rem; }
}

.auth-card {
    max-width: 520px;
    margin: 2.5rem auto;
    padding: 2.25rem 2.5rem;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .06);
}
.auth-card.auth-card-wide {
    max-width: 760px;
}
.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-teal);
    font-weight: 700;
}
.auth-card h6.text-uppercase {
    letter-spacing: .04em;
    color: var(--brand-teal) !important;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .35rem;
    margin-top: 1.75rem !important;
}

/* Reset the legacy underline-only .form-control rule (border: none;
   border-bottom: 2px solid #2b6062) ONLY inside auth-cards. The legacy
   look is preserved on the marketing pages (banner/contact form) where
   it was originally designed for. */
.auth-card .form-control,
.auth-card .form-select {
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 .2rem rgba(243, 107, 32, .15);
    outline: 0;
}
.auth-card label.form-label {
    font-weight: 500;
    margin-bottom: .35rem;
    color: #374151;
    font-size: .9rem;
}
.auth-card .form-text {
    color: #6b7280;
}

/* Eye-icon toggle button inside the auth-card: muted by default, brand
   teal on hover. Sits flush against the input thanks to .input-group. */
.auth-card .password-toggle {
    border-color: #d1d5db;
    color: #6b7280;
    background-color: #fff;
}
.auth-card .password-toggle:hover,
.auth-card .password-toggle:focus {
    color: var(--brand-teal);
    border-color: var(--brand-teal);
    background-color: #fff;
}

/* Primary submit button across all auth pages — full-width, slightly
   taller than default, brand orange. */
.auth-card .btn-primary {
    padding-top: .6rem;
    padding-bottom: .6rem;
    font-weight: 600;
}

/* ───── Hero / banner ───────────────────────────────────────────── */
.banner {
    background: linear-gradient(160deg, #fff 0%, var(--brand-soft) 100%);
    padding: 4rem 0 3rem;
}
.banner h1 {
    color: var(--brand-teal);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.banner .lead { color: #475569; }
.banner .details { margin-top: 1.5rem; }
.banner .details li { padding: .35rem 0; color: #334155; font-size: 1rem; }
.banner .details li i.text-warning { color: var(--brand-orange) !important; }
.banner img.img-fluid { border-radius: 1rem; box-shadow: 0 1rem 3rem rgba(43,96,98,.18); }

/* ───── CountUp band — the "proof in production" strip ──────────── */
section.CountUp {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-hover) 100%);
    color: #fff;
    padding: 3rem 0 3.25rem;
    border-top: 4px solid var(--brand-orange);
    position: relative;
    overflow: hidden;
}
/* soft glow so the band reads as a highlight, not a flat strip */
section.CountUp::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    width: 60%;
    height: 180%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(243,107,32,.16) 0%, rgba(243,107,32,0) 70%);
    pointer-events: none;
}
section.CountUp .countEyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.72);
    margin-bottom: 1.5rem;
}
section.CountUp .countItem {
    text-align: center;
    padding: .5rem 1rem;
    position: relative;
    z-index: 1;
}
/* thin dividers between stats for a dashboard-like, deliberate feel */
section.CountUp .countItem + .countItem::before {
    content: "";
    position: absolute;
    left: 0; top: 15%;
    height: 70%;
    border-left: 1px solid rgba(255,255,255,.14);
}
section.CountUp .countItem h3 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: .4rem;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
section.CountUp .countItem p {
    font-size: .82rem;
    opacity: .8;
    margin: 0;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
}
/* flagship: the order-transactions number is the headline proof point */
section.CountUp .countItem--flagship h3 {
    font-size: 3.5rem;
    color: var(--brand-orange);
    text-shadow: 0 2px 14px rgba(243,107,32,.35);
}
section.CountUp .countItem--flagship p { opacity: .95; color: #fff; }

/* ───── Feature section ─────────────────────────────────────────── */
section.feature { padding: 4rem 0; background: #fff; }
.main-heading {
    font-size: 2.5rem;
    text-align: center;
    color: var(--brand-teal);
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}
/* Override legacy inline-flex on .Featurecontent that breaks our content. */
.feature .item .Featurecontent {
    display: block !important;
    padding-right: 0 !important;
}
.feature .item { margin-bottom: 3rem; }
.feature .item .Featurecontent h3 {
    color: var(--brand-teal);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature .item .Featurecontent p {
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: .75rem;
}

/* ───── How it works cards ──────────────────────────────────────── */
section.weWorks { padding: 4rem 0; background: var(--brand-bg); }
section.weWorks .card {
    border: 0 !important;
    border-radius: .75rem !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}
section.weWorks .card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(0,0,0,.08) !important; }
section.weWorks .card-img-top { background: var(--brand-soft); padding: 1.5rem; height: 180px; object-fit: contain; }
section.weWorks .card-title { color: var(--brand-teal); font-weight: 700; margin-bottom: .75rem; }

/* ───── Pricing tier cards ──────────────────────────────────────── */
.tier-featured {
    position: relative;
    transform: translateY(-8px);
    border: 2px solid var(--brand-orange) !important;
    box-shadow: 0 1rem 2.5rem rgba(243, 107, 32, .18) !important;
}
.tier-flag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--brand-orange); color: #fff;
    font-size: .75rem; font-weight: 700; letter-spacing: .04em;
    padding: .25rem .85rem; border-radius: 99px;
    text-transform: uppercase;
}
.btn-outline-primary { color: var(--brand-orange); border-color: var(--brand-orange); }
.btn-outline-primary.active, .btn-outline-primary:hover {
    background: var(--brand-orange); border-color: var(--brand-orange); color: #fff !important;
}

/* ───── Trial banner across the top of authenticated areas ──────── */
.trial-banner {
    background: var(--brand-soft);
    border-bottom: 1px solid #f8d4ba;
    padding: .65rem 0;
    font-size: .9rem;
}
.trial-banner .trial-pill {
    background: var(--brand-orange); color: #fff;
    padding: .15rem .65rem; border-radius: 99px; font-weight: 600;
    font-size: .8rem; margin-right: .5rem;
}
.trial-banner .trial-warn { color: #92400e; font-weight: 600; }
.trial-banner a { color: var(--brand-orange); font-weight: 600; text-decoration: none; }
.trial-banner a:hover { text-decoration: underline; }

/* ───── Hero badge ──────────────────────────────────────────────── */
.banner .badge.bg-warning { background: var(--brand-orange) !important; color: #fff !important; font-weight: 600; letter-spacing: .02em; }

/* ───── Cookie consent banner ───────────────────────────────────── */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -.5rem 1.5rem rgba(0,0,0,.06);
    font-size: .9rem;
}

/* ───── Footer ──────────────────────────────────────────────────── */
footer.bg-white { border-color: #e5e7eb !important; }

/* ───── Validation messages ─────────────────────────────────────── */
.field-validation-error, .text-danger { color: #dc3545; font-size: .875rem; }

/* ───── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 991.98px) {
    .banner { padding: 2.5rem 0 2rem; }
    .banner h1 { font-size: 1.875rem; }
    .banner .lead { font-size: 1rem; }
    .main-heading { font-size: 2rem; margin-bottom: 2rem; }
    section.feature, section.weWorks { padding: 2.5rem 0; }
    section.feature .item { margin-bottom: 2rem; }
    section.CountUp { padding: 2.25rem 0; }
    section.CountUp .countItem { padding: 1rem .25rem; min-width: 50%; }
    section.CountUp .countItem h3 { font-size: 2rem; }
    section.CountUp .countItem--flagship h3 { font-size: 2.4rem; }
    /* stats wrap to 2-up on small screens — vertical dividers no longer line up */
    section.CountUp .countItem + .countItem::before { display: none; }
}
@media (max-width: 575.98px) {
    .banner h1 { font-size: 1.625rem; }
    section.CountUp .countItem h3 { font-size: 1.7rem; }
    section.CountUp .countItem--flagship h3 { font-size: 2rem; }
    section.CountUp .countItem p { font-size: .72rem; }
    .brand-logo { height: 36px; width: 36px; }
    .brand-wordmark { font-size: 1rem; }
    section.weWorks .card-img-top { height: 140px; padding: 1rem; }
    .dropdown-menu { min-width: 13rem; }
}

/* ── Full-bleed console content (platform-wide) ─────────────────────────────
   Every console shell (_ConsoleShell → vendor/ministry/school/teacher/parent,
   and _AdminLayout) marks its outer wrapper with `.console-shell` and puts the
   page body in a <main> column. Individual pages wrap their content in a
   Bootstrap `.container` — several also hard-code an inline max-width (960px,
   1000px, 1300px) — which capped the width and left big empty side margins on
   wide screens. Force any container inside a console <main> to fill the column;
   the small px padding on <main> stays the only side gutter. `!important` beats
   the pages' inline max-width so no per-page edits are needed. Scoped to
   `.console-shell` so the public marketing/_Layout stays centred. */
.console-shell main .container,
.console-shell main .container-sm,
.console-shell main .container-md,
.console-shell main .container-lg,
.console-shell main .container-xl,
.console-shell main .container-xxl { max-width: 100% !important; }

/* A Bootstrap .table-responsive scrolls horizontally via overflow-x:auto, which
   also computes overflow-y to auto — so a row-action dropdown that opens past the
   (often short) table gets clipped. While a dropdown inside it is open, let the
   container overflow so the menu shows in full; it reverts to scroll when closed.
   :has() is supported in all current evergreen browsers used for the console. */
.table-responsive:has(.dropdown-menu.show) { overflow: visible; }
