/* ==========================================================================
   Kanchanjunga public theme layer
   Loaded AFTER bootstrap.min.css and main.css on the public school + campus
   pages only (never the admin panel or the evaluation portal).
   Same blue brand colours as before; this file modernises type, menus,
   layout, responsiveness and motion. Remove the <link> to switch it off.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    --k-primary-900: #05459b;   /* deep brand blue (old header / footer)   */
    --k-primary:     #1f61b7;   /* brand blue (old navbar)                 */
    --k-primary-300: #559eff;   /* light brand blue (old dropdown / hover) */
    --k-primary-050: #eaf2ff;
    --k-accent:      #f2b705;   /* gold from the school crest              */
    --k-ink:         #14213d;
    --k-body:        #3c4860;
    --k-muted:       #6b7890;
    --k-line:        #e3e9f3;
    --k-surface:     #f4f7fc;
    --k-white:       #ffffff;

    --k-radius:      16px;
    --k-radius-sm:   10px;
    --k-shadow-sm:   0 2px 10px rgba(20, 33, 61, .06);
    --k-shadow:      0 10px 30px rgba(20, 33, 61, .10);
    --k-shadow-lg:   0 22px 50px rgba(5, 69, 155, .18);
    --k-ease:        cubic-bezier(.2, .7, .2, 1);

    --k-font-head:   "Poppins", "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
    --k-font-body:   "Inter", "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
    --k-container:   1180px;
}

/* Campus pages keep their own, slightly greyer blue */
body.site-campus {
    --k-primary-900: #28568d;
    --k-primary:     #2e62a0;
    --k-primary-300: #7fb0ea;
    --k-primary-050: #ebf2fa;
}

/* ---------- 2. Base ------------------------------------------------------- */
html { scroll-behavior: smooth; }

body.k-site {
    font-family: var(--k-font-body);
    color: var(--k-body);
    background: var(--k-white);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* main.css forces Verdana / Times with !important, so these must too */
.k-site h1, .k-site h2, .k-site h3, .k-site h4, .k-site h5, .k-site h6 {
    font-family: var(--k-font-head) !important;
    color: var(--k-ink);
    letter-spacing: -.01em;
}
.k-site p, .k-site li, .k-site td, .k-site th, .k-site label, .k-site input,
.k-site textarea, .k-site select, .k-site button, .k-site .btn {
    font-family: var(--k-font-body) !important;
}
/* CMS content carries inline Comic Sans in places */
.k-site [style*="Comic Sans"] { font-family: var(--k-font-body) !important; }

.k-site a { color: var(--k-primary); transition: color .2s var(--k-ease); }
.k-site a:hover { color: var(--k-primary-900); }
.k-site img { max-width: 100%; }
.k-site ::selection { background: var(--k-primary); color: #fff; }

.k-site :focus-visible {
    outline: 3px solid var(--k-primary-300);
    outline-offset: 2px;
    border-radius: 4px;
}

.k-container {
    width: 100%;
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 0 20px;
}

.k-skip {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--k-accent); color: var(--k-ink) !important;
    padding: 10px 16px; border-radius: 8px; font-weight: 600;
    transition: top .2s;
}
.k-skip:focus { top: 12px; }

/* ---------- 3. Buttons ---------------------------------------------------- */
.k-btn, .k-site .contact1-form-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: auto !important; min-width: 0; height: auto;
    padding: 12px 26px;
    border: 2px solid transparent; border-radius: 999px;
    font-family: var(--k-font-head) !important; font-weight: 600; font-size: 15px; line-height: 1.2;
    text-decoration: none !important; cursor: pointer;
    transition: transform .25s var(--k-ease), box-shadow .25s var(--k-ease), background .25s, color .25s, border-color .25s;
}
.k-btn:hover, .k-site .contact1-form-btn:hover { transform: translateY(-2px); box-shadow: var(--k-shadow); }
.k-btn:active, .k-site .contact1-form-btn:active { transform: translateY(0); }
.k-btn i { transition: transform .25s var(--k-ease); }
.k-btn:hover i.fa-arrow-right, .k-btn:hover i.fa-long-arrow-alt-right { transform: translateX(4px); }

.k-btn--primary, .k-site .contact1-form-btn {
    background: var(--k-primary); color: #fff !important; border-color: var(--k-primary);
}
.k-btn--primary:hover, .k-site .contact1-form-btn:hover { background: var(--k-primary-900); border-color: var(--k-primary-900); }
.k-btn--accent { background: var(--k-accent); color: var(--k-ink) !important; border-color: var(--k-accent); }
.k-btn--accent:hover { background: #ffc91f; }
.k-btn--ghost { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.k-btn--ghost:hover { background: #fff; color: var(--k-primary-900) !important; }
.k-btn--outline { background: transparent; color: var(--k-primary) !important; border-color: var(--k-primary); }
.k-btn--outline:hover { background: var(--k-primary); color: #fff !important; }
.k-btn--sm { padding: 8px 18px; font-size: 13.5px; }

/* "See More" buttons inside dark CMS sections read better in white */
.k-site .who-we-are .contact1-form-btn,
.k-site section.facilities ~ section.message .contact1-form-btn {
    background: #fff; color: var(--k-primary-900) !important; border-color: #fff;
}

/* ---------- 4. Top bar ---------------------------------------------------- */
.k-topbar {
    background: var(--k-primary-900);
    color: rgba(255,255,255,.85);
    font-size: 13.5px;
}
.k-topbar .k-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.k-topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.k-topbar a:hover { color: #fff; }
.k-topbar__contact { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.k-topbar__contact i { color: var(--k-accent); margin-right: 6px; }
.k-topbar__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.k-topbar__sep { width: 1px; height: 16px; background: rgba(255,255,255,.25); }

.k-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 14px; border-radius: 999px;
    background: var(--k-accent); color: var(--k-ink) !important;
    font-weight: 600; font-size: 12.5px; white-space: nowrap;
    transition: transform .2s var(--k-ease), box-shadow .2s;
}
.k-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(242,183,5,.45); color: var(--k-ink) !important; }

.k-lang { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; }
.k-lang a { padding: 3px 11px; font-weight: 600; font-size: 12.5px; line-height: 1.6; }
.k-lang a.is-active { background: #fff; color: var(--k-primary-900); }
.k-lang a:not(.is-active):hover { background: rgba(255,255,255,.15); }

/* ---------- 5. Brand row (desktop) ---------------------------------------- */
.k-brandbar { background: linear-gradient(120deg, var(--k-primary-900) 0%, var(--k-primary) 100%); position: relative; overflow: hidden; }
.k-brandbar::after {               /* soft decorative rings, purely visual */
    content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
    border: 60px solid rgba(255,255,255,.05); pointer-events: none;
}
.k-brandbar .k-container { display: flex; align-items: center; gap: 26px; padding-top: 18px; padding-bottom: 18px; position: relative; z-index: 1; }
.k-brand { display: flex; align-items: center; gap: 18px; text-decoration: none !important; min-width: 0; }
.k-brand__logo {
    width: 88px; height: 88px; flex: 0 0 auto; object-fit: contain;
    border-radius: 50%; background: #fff; padding: 3px;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    transition: transform .5s var(--k-ease);
}
.k-brand:hover .k-brand__logo { transform: rotate(-6deg) scale(1.04); }
.k-brand__name { margin: 0; color: #fff !important; font-weight: 700; font-size: 25px !important; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }
.k-brand__tag { margin: 4px 0 0; color: rgba(255,255,255,.8) !important; font-size: 13px !important; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

.k-brandbar__info { margin-left: auto; flex: 0 0 auto; }

/* Campus brand row is light, as it was */
body.site-campus .k-brandbar { background: #fff; border-bottom: 1px solid var(--k-line); }
body.site-campus .k-brandbar::after { border-color: rgba(46,98,160,.06); }
body.site-campus .k-brand__logo { border-radius: 12px; box-shadow: none; padding: 0; background: transparent; }
body.site-campus .k-brand__name { color: var(--k-primary) !important; }
body.site-campus .k-brand__tag { color: var(--k-muted) !important; }

/* ---------- 6. Main navigation -------------------------------------------- */
.k-site .navbar.k-nav {
    position: -webkit-sticky; position: sticky; top: 0; z-index: 1030;
    background: var(--k-primary) !important;
    padding: 0;
    transition: box-shadow .3s var(--k-ease), background .3s;
}
.k-nav.is-stuck { box-shadow: 0 8px 28px rgba(5, 40, 95, .28); }
.k-nav .k-container { display: flex; align-items: center; flex-wrap: wrap; }

/* compact brand: always on mobile, on desktop only once the bar is stuck */
.k-nav__brand { display: flex; align-items: center; gap: 10px; padding: 8px 0; min-width: 0; text-decoration: none !important; opacity: 1 !important; }
.k-nav__brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 2px; flex: 0 0 auto; object-fit: contain; }
body.site-campus .k-nav__brand img { border-radius: 8px; }
.k-nav__brand span { color: #fff; font-family: var(--k-font-head) !important; font-weight: 600; font-size: 14px !important; line-height: 1.25; opacity: 1; white-space: normal; }

.k-site .navbar.k-nav a { opacity: 1; font-family: var(--k-font-head); }
.k-nav .navbar-nav { text-transform: uppercase; }
.k-site .k-nav li.nav-item { padding: 0; }
.k-nav .nav-link {
    position: relative;
    color: rgba(255,255,255,.88) !important;
    font-size: 13.5px !important; font-weight: 600; letter-spacing: .06em;
    padding: 17px 15px !important;
    transition: color .2s, background .2s;
}
.k-nav .nav-link:hover, .k-nav .nav-item.show > .nav-link { color: #fff !important; }
.k-nav .nav-link::before {           /* sliding underline */
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 10px; height: 2px;
    background: var(--k-accent); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--k-ease);
}
.k-nav .nav-link:hover::before, .k-nav .nav-item.active > .nav-link::before, .k-nav .nav-item.show > .nav-link::before { transform: scaleX(1); }
.k-nav .nav-item.active > .nav-link { color: #fff !important; }
.k-nav .dropdown-toggle::after { margin-left: 6px; vertical-align: 2px; border-top-width: 4px; border-left-width: 4px; border-right-width: 4px; transition: transform .25s var(--k-ease); }
.k-nav .nav-item.show > .dropdown-toggle::after, .k-nav .dropdown:hover > .dropdown-toggle::after { transform: rotate(180deg); }

.k-nav .k-badge {
    display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
    background: var(--k-accent); color: var(--k-ink); font-size: 10px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; vertical-align: 2px; animation: k-pulse 2.4s infinite;
}

.k-site .k-nav .dropdown-menu {
    background: #fff !important;
    border: 0; border-radius: var(--k-radius-sm);
    box-shadow: var(--k-shadow-lg);
    padding: 8px; margin-top: 0; min-width: 250px;
}
.k-nav .dropdown-item {
    color: var(--k-ink) !important; font-size: 13px !important; font-weight: 600; letter-spacing: .04em;
    padding: 10px 14px; border-radius: 8px; white-space: normal;
    transition: background .2s, color .2s, padding-left .25s var(--k-ease);
}
.k-nav .dropdown-item:hover, .k-nav .dropdown-item:focus { background: var(--k-primary-050); color: var(--k-primary) !important; padding-left: 20px; }
.k-site .dropdown > .dropdown-toggle:active { pointer-events: auto; }

.k-nav__toggle {
    margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
    background: rgba(255,255,255,.12); display: grid; place-items: center;
    border: 0; padding: 0;
}
.k-nav__toggle span, .k-nav__toggle span::before, .k-nav__toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .3s var(--k-ease), opacity .2s, background .2s;
}
.k-nav__toggle span { position: relative; }
.k-nav__toggle span::before { position: absolute; top: -6px; }
.k-nav__toggle span::after  { position: absolute; top: 6px; }
.k-nav__toggle[aria-expanded="true"] span { background: transparent; }
.k-nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.k-nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 992px) {
    .k-nav__toggle { display: none; }
    .k-nav .navbar-collapse { flex-grow: 1; justify-content: center; }
    .k-nav .navbar-nav { flex-wrap: wrap; justify-content: center; }

    /* desktop: compact brand slides in only when the bar is stuck */
    .k-nav__brand { max-width: 0; overflow: hidden; opacity: 0 !important; padding: 0; transition: max-width .4s var(--k-ease), opacity .3s, margin .4s; }
    .k-nav__brand span { display: none; }
    .k-nav.is-stuck .k-nav__brand { max-width: 60px; opacity: 1 !important; margin-right: 8px; }

    /* desktop: hover dropdown with a fade + rise */
    .k-site .k-nav .dropdown > .dropdown-menu {
        display: block; visibility: hidden; opacity: 0; transform: translateY(10px);
        transition: opacity .22s var(--k-ease), transform .22s var(--k-ease), visibility .22s;
        pointer-events: none;
    }
    .k-site .k-nav .dropdown:hover > .dropdown-menu,
    .k-site .k-nav .dropdown:focus-within > .dropdown-menu,
    .k-site .k-nav .dropdown.show > .dropdown-menu {
        visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto;
    }
}

@media (max-width: 991.98px) {
    .k-nav__brand { flex: 1 1 0; }
    .k-nav__toggle { flex: 0 0 44px; margin-left: 12px; }
    .k-nav .navbar-collapse {
        flex-basis: 100%;
        margin: 0 -20px; padding: 6px 20px 16px;
        background: var(--k-primary-900);
        max-height: calc(100vh - 62px); overflow-y: auto;
    }
    .k-nav .nav-link { padding: 13px 4px !important; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px !important; }
    .k-nav .nav-link::before { display: none; }
    .k-nav .nav-item.active > .nav-link { color: var(--k-accent) !important; }
    .k-nav .dropdown-toggle::after { float: right; margin-top: 9px; }
    .k-site .dropdown:hover > .dropdown-menu { display: none; }          /* main.css opens on hover; on touch use tap */
    .k-site .dropdown.show > .dropdown-menu { display: block; }
    .k-site .k-nav .dropdown-menu { background: rgba(255,255,255,.06) !important; box-shadow: none; padding: 4px 0 4px 10px; margin: 0; border-radius: 0; }
    .k-nav .dropdown-item { color: rgba(255,255,255,.85) !important; padding: 10px 8px; }
    .k-nav .dropdown-item:hover, .k-nav .dropdown-item:focus { background: transparent; color: #fff !important; padding-left: 14px; }
}

/* ---------- 7. Notice ticker ---------------------------------------------- */
.k-ticker { background: var(--k-surface); border-bottom: 1px solid var(--k-line); }
.k-ticker .k-container { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.k-ticker__label {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    background: var(--k-primary); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px;
}
.k-ticker__label i { animation: k-ring 2.5s infinite; transform-origin: 50% 0; }
.k-site .k-ticker .marquee { flex: 1 1 auto; width: auto; min-width: 0; overflow: hidden; background: transparent; padding: 0; color: var(--k-ink); font-size: 14.5px; }
.k-site .k-ticker .marquee a { color: var(--k-ink); font-weight: 500; }
.k-site .k-ticker .marquee a:hover { color: var(--k-primary); }

/* ---------- 8. Sections (home) -------------------------------------------- */
.k-section { padding: 84px 0; position: relative; }
.k-section--tint { background: var(--k-surface); }
.k-section--brand { background: linear-gradient(135deg, var(--k-primary-900), var(--k-primary)); color: rgba(255,255,255,.88); }
.k-section--brand h2, .k-section--brand h3, .k-section--brand h4 { color: #fff; }

.k-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--k-primary); font-family: var(--k-font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
}
.k-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--k-accent); border-radius: 2px; }
.k-title { font-size: clamp(26px, 3.2vw, 38px) !important; font-weight: 700; line-height: 1.2; margin: 10px 0 14px; }
.k-lead { color: var(--k-muted); font-size: 16.5px; max-width: 680px; }
.k-section__head { margin-bottom: 44px; }
.k-section__head.text-center .k-lead { margin-left: auto; margin-right: auto; }
.k-section__head.text-center .k-eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--k-accent); border-radius: 2px; }

/* Hero */
.k-hero { position: relative; background: var(--k-ink); }
.k-site #my-slider { border-radius: 0; }
.k-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, rgba(5,32,80,.78) 0%, rgba(5,32,80,.45) 45%, rgba(5,32,80,0) 75%),
                linear-gradient(0deg, rgba(5,32,80,.55) 0%, rgba(5,32,80,0) 40%);
}
.k-hero__overlay { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; pointer-events: none; }
.k-hero__content { max-width: 640px; color: #fff; pointer-events: auto; animation: k-rise .9s var(--k-ease) both .15s; }
.k-hero__content .k-eyebrow { color: var(--k-accent); }
.k-hero__title { color: #fff !important; font-size: clamp(22px, 4.2vw, 52px) !important; font-weight: 700; line-height: 1.12; margin: 12px 0 14px; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.k-hero__text { color: rgba(255,255,255,.9); font-size: clamp(14px, 1.4vw, 19px); margin-bottom: 26px; }
.k-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.k-site #my-slider .ism-button { background-color: rgba(255,255,255,.18); backdrop-filter: blur(4px); width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; visibility: visible; opacity: 0; transition: opacity .3s, background-color .3s; }
.k-site #my-slider .ism-button-prev { left: 16px; }
.k-site #my-slider .ism-button-next { right: 16px; }
.k-site #my-slider:hover .ism-button { opacity: 1; }
.k-site #my-slider .ism-radios { bottom: 16px; z-index: 8; }
.k-site #my-slider .ism-radios label { width: 10px; height: 10px; transition: width .3s var(--k-ease), background-color .3s; }
.k-site #my-slider .ism-radios li.active label { width: 28px; background-color: var(--k-accent); }

/* Feature cards ("Welcome to ...") */
.k-features { margin-top: 0; padding-top: 40px; position: relative; z-index: 9; }
@media (min-width: 992px) {
    .k-features { margin-top: -64px; padding-top: 0; }
    .k-site.page-home #my-slider .ism-radios { bottom: 88px; }
}
.k-grid { display: grid; gap: 24px; }
.k-grid--4 { grid-template-columns: repeat(4, 1fr); }
.k-grid--3 { grid-template-columns: repeat(3, 1fr); }
.k-grid--2 { grid-template-columns: repeat(2, 1fr); }

.k-feature {
    background: #fff; border-radius: var(--k-radius); padding: 30px 24px; text-align: center;
    box-shadow: var(--k-shadow); border-bottom: 3px solid transparent;
    transition: transform .35s var(--k-ease), box-shadow .35s var(--k-ease), border-color .35s;
}
.k-feature:hover { transform: translateY(-8px); box-shadow: var(--k-shadow-lg); border-bottom-color: var(--k-accent); }
.k-feature__icon {
    width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
    background: var(--k-primary-050); color: var(--k-primary); font-size: 25px;
    transition: background .35s, color .35s, transform .45s var(--k-ease);
}
.k-feature:hover .k-feature__icon { background: var(--k-primary); color: #fff; transform: rotate(-8deg) scale(1.06); }
.k-feature h3 { font-size: 17px !important; font-weight: 600; margin: 0; }

/* Generic card */
.k-card {
    background: #fff; border-radius: var(--k-radius); overflow: hidden;
    box-shadow: var(--k-shadow-sm); border: 1px solid var(--k-line);
    transition: transform .35s var(--k-ease), box-shadow .35s var(--k-ease);
    display: flex; flex-direction: column; height: 100%;
}
.k-card:hover { transform: translateY(-6px); box-shadow: var(--k-shadow); }
.k-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--k-surface); }
.k-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--k-ease); }
.k-card:hover .k-card__media img { transform: scale(1.07); }
.k-card__body { padding: 22px 24px 26px; flex: 1 1 auto; }
.k-card__title { font-size: 18px !important; font-weight: 600; margin: 0 0 8px; }
.k-card__text { color: var(--k-muted); margin: 0; font-size: 15px; }

/* Stats */
.k-stats { background: linear-gradient(135deg, var(--k-primary-900), var(--k-primary)); position: relative; overflow: hidden; }
.k-stats::before, .k-stats::after { content: ""; position: absolute; border-radius: 50%; border: 50px solid rgba(255,255,255,.05); pointer-events: none; }
.k-stats::before { width: 360px; height: 360px; left: -140px; bottom: -200px; }
.k-stats::after  { width: 300px; height: 300px; right: -100px; top: -170px; }
.k-stat { text-align: center; color: #fff; position: relative; z-index: 1; }
.k-stat__icon { font-size: 30px; color: var(--k-accent); margin-bottom: 10px; }
.k-stat__num { font-family: var(--k-font-head); font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; line-height: 1; color: #fff; }
.k-stat__label { margin-top: 8px; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: rgba(255,255,255,.8); }

/* Adverts */
.k-adverts img { width: 100%; border-radius: var(--k-radius); box-shadow: var(--k-shadow); transition: transform .45s var(--k-ease), box-shadow .45s; }
.k-adverts img:hover { transform: scale(1.015); box-shadow: var(--k-shadow-lg); }

/* Call to action */
.k-cta {
    background: linear-gradient(120deg, var(--k-primary-900), var(--k-primary)); border-radius: 24px; color: #fff;
    padding: 46px 50px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden;
    box-shadow: var(--k-shadow-lg);
}
.k-cta::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.06); }
.k-cta > * { position: relative; z-index: 1; }
.k-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px) !important; font-weight: 700; margin: 0 0 8px; }
.k-cta p { margin: 0; color: rgba(255,255,255,.88); max-width: 640px; }
.k-cta__action { margin-left: auto; }

/* ---------- 9. CMS sections on the home pages ----------------------------- */
/* These come from the database with inline colours, so they are themed by
   class. Content and markup stay exactly as the editor saved them. */
.k-site.page-home main > section.n1ed--fake-container,
.k-site.page-home main > div > section.n1ed--fake-container,
.k-site.page-home main > section.who-we-are {
    padding: 84px 20px !important; box-shadow: none !important; margin: 0 !important;
}
.k-site.page-home section.n1ed--fake-container > .row,
.k-site.page-home section.who-we-are > .row { max-width: var(--k-container); margin: 0 auto !important; align-items: center; }
.k-site.page-home section.n1ed--fake-container > .row > [class*="col-"] { padding: 14px 20px; }

.k-site.page-home section.n1ed--fake-container h4,
.k-site.page-home section.who-we-are h4 {
    font-size: clamp(24px, 2.8vw, 34px) !important; font-weight: 700; position: relative; padding-bottom: 16px; margin-bottom: 8px;
}
.k-site.page-home section.n1ed--fake-container h4::after,
.k-site.page-home section.who-we-are h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--k-accent); }

.k-site.page-home section.n1ed--fake-container img,
.k-site.page-home section.who-we-are img {
    border-radius: var(--k-radius); box-shadow: var(--k-shadow-lg); height: auto;
    transition: transform .6s var(--k-ease);
}
.k-site.page-home section.n1ed--fake-container img:hover { transform: scale(1.02); }
.k-site.page-home section.n1ed--fake-container p { font-size: 16px; line-height: 1.8; }

/* dark blue: Who we are, and the second message block (principal) */
.k-site.page-home section.who-we-are,
.k-site.page-home section.facilities ~ section.message {
    background: linear-gradient(135deg, var(--k-primary-900), var(--k-primary)) !important; color: rgba(255,255,255,.9) !important;
}
.k-site.page-home section.who-we-are h4, .k-site.page-home section.who-we-are h5,
.k-site.page-home section.facilities ~ section.message h4,
.k-site.page-home section.facilities ~ section.message strong { color: #fff !important; }

/* light: why choose us, first message block (chairman), guardians */
.k-site.page-home section.why-choose-us { background: #fff !important; color: var(--k-body) !important; }
.k-site.page-home section.message { background: var(--k-surface) !important; color: var(--k-body) !important; }
.k-site.page-home section.message strong { color: var(--k-ink); font-family: var(--k-font-head); font-size: 17px; }
.k-site.page-home section.message .text-center img { max-width: 300px; width: 100%; }
.k-site.page-home section.guardian { background: var(--k-surface) !important; }

.k-site.page-home section.why-choose-us ul { list-style: none; padding: 0; margin-left: 0 !important; }
.k-site.page-home section.why-choose-us li {
    position: relative; padding: 9px 0 9px 36px; margin: 0 !important; border-bottom: 1px dashed var(--k-line);
    transition: transform .25s var(--k-ease), color .25s;
}
.k-site.page-home section.why-choose-us li:hover { transform: translateX(6px); color: var(--k-primary); }
.k-site.page-home section.why-choose-us li::before {
    content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 11px;
    position: absolute; left: 0; top: 12px; width: 23px; height: 23px; border-radius: 50%;
    display: grid; place-items: center; background: var(--k-primary-050); color: var(--k-primary);
}

.k-checks { list-style: none; padding: 0; margin: 0; }
.k-checks li { position: relative; padding: 7px 0 7px 34px; transition: transform .25s var(--k-ease); }
.k-checks li:hover { transform: translateX(6px); }
.k-checks li::before {
    content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px;
    position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; background: var(--k-accent); color: var(--k-ink);
}

/* testimonials */
.k-site.page-home section.guardian p[style] {
    background: #fff; border-radius: var(--k-radius); padding: 22px 24px 22px 58px; position: relative;
    color: var(--k-body) !important; font-weight: 500 !important; font-style: italic;
    box-shadow: var(--k-shadow-sm); border-left: 4px solid var(--k-primary);
    transition: transform .3s var(--k-ease), box-shadow .3s;
}
.k-site.page-home section.guardian p[style]:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); }
.k-site.page-home section.guardian p[style]::before {
    content: "\f10d"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-style: normal;
    position: absolute; left: 20px; top: 20px; color: var(--k-primary-300); font-size: 22px;
}
.k-site.page-home section.guardian p[style] span { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--k-primary) !important; }

/* an empty banner-notice block would otherwise render as a blank coloured band */
.k-site section.notice-announcement:not(:has(img, p, a, h1, h2, h3, h4, h5, iframe, video)) { display: none !important; }
.k-site.page-home section.notice-announcement { background: var(--k-surface) !important; color: var(--k-body) !important; }

/* ---------- 10. Inner pages ----------------------------------------------- */
.k-pagehero {
    background: linear-gradient(120deg, var(--k-primary-900), var(--k-primary)); color: #fff; position: relative; overflow: hidden;
    padding: 54px 0 58px;
}
.k-pagehero::before, .k-pagehero::after { content: ""; position: absolute; border-radius: 50%; border: 46px solid rgba(255,255,255,.05); pointer-events: none; }
.k-pagehero::before { width: 300px; height: 300px; right: -90px; top: -150px; }
.k-pagehero::after  { width: 220px; height: 220px; left: 38%; bottom: -170px; }
.k-pagehero__title { color: #fff !important; font-size: clamp(26px, 3.6vw, 40px) !important; font-weight: 700; margin: 0 0 8px; animation: k-rise .7s var(--k-ease) both; }
.k-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); animation: k-rise .7s var(--k-ease) both .08s; }
.k-crumbs a { color: #fff; }
.k-crumbs a:hover { color: var(--k-accent); }
.k-crumbs span + span::before, .k-crumbs a + span::before { content: "/"; margin-right: 8px; opacity: .6; }

.k-page { padding: 56px 0 80px; }

/* Older inner views that were not individually rebuilt still get the new
   page frame: their single <section class="shadow-lg bg-light"> becomes a
   centred white sheet. */
.k-site:not(.page-home) main > section.shadow-lg {
    max-width: var(--k-container); width: calc(100% - 40px);
    margin: 48px auto 72px !important; padding: 36px 40px !important;
    background: #fff !important; border: 1px solid var(--k-line);
    border-radius: var(--k-radius); box-shadow: var(--k-shadow) !important;
}
.k-site:not(.page-home) main > section.shadow-lg > h4:first-child {
    font-size: 28px !important; font-weight: 700; padding-bottom: 14px; margin-bottom: 22px; position: relative;
}
.k-site:not(.page-home) main > section.shadow-lg > h4:first-child::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--k-accent); }
.k-site:not(.page-home) main > section.shadow-lg > h4.text-center:first-child::after { left: 50%; transform: translateX(-50%); }
.k-site:not(.page-home) main > section.shadow-lg img { border-radius: var(--k-radius-sm); height: auto; }

/* Prose (CMS bodies: about pages, notice bodies) */
.k-prose { font-size: 16.5px; line-height: 1.85; color: var(--k-body); }
.k-prose img { border-radius: var(--k-radius-sm); height: auto; margin: 10px 0; }
.k-prose h1, .k-prose h2, .k-prose h3, .k-prose h4 { margin-top: 1.6em; }
.k-prose table { width: 100%; }
.k-prose > section { padding: 0 !important; box-shadow: none !important; background: transparent !important; color: inherit !important; }

/* Notices */
.k-notice {
    display: flex; gap: 20px; align-items: flex-start; height: 100%;
    background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius); padding: 22px;
    transition: transform .3s var(--k-ease), box-shadow .3s var(--k-ease), border-color .3s;
    text-decoration: none !important; color: inherit !important;
}
.k-notice:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); border-color: var(--k-primary-300); }
.k-notice__date {
    flex: 0 0 74px; text-align: center; border-radius: 14px; overflow: hidden; background: var(--k-primary-050); color: var(--k-primary);
    font-family: var(--k-font-head); transition: background .3s, color .3s;
}
.k-notice:hover .k-notice__date { background: var(--k-primary); color: #fff; }
.k-notice__day { display: block; font-size: 26px; font-weight: 700; line-height: 1; padding: 12px 4px 4px; }
.k-notice__month { display: block; font-size: 12px; font-weight: 600; padding: 0 4px 10px; }
.k-notice__text { margin: 0 0 10px; color: var(--k-body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.k-notice__more { font-weight: 600; font-size: 14px; color: var(--k-primary); display: inline-flex; align-items: center; gap: 6px; }
.k-notice__more i { transition: transform .25s var(--k-ease); }
.k-notice:hover .k-notice__more i { transform: translateX(5px); }

.k-article { background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius); box-shadow: var(--k-shadow-sm); padding: 40px 44px; }
.k-article__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--k-primary); background: var(--k-primary-050); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.k-article__title { font-size: clamp(22px, 2.6vw, 30px) !important; font-weight: 700; margin-bottom: 22px; }

/* Gallery */
.k-album { position: relative; display: block; border-radius: var(--k-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--k-surface); box-shadow: var(--k-shadow-sm); }
.k-album img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--k-ease); }
.k-album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,32,80,.85) 0%, rgba(5,32,80,0) 55%); transition: opacity .4s; }
.k-album__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.k-album__caption strong { font-family: var(--k-font-head); font-weight: 600; font-size: 16px; line-height: 1.3; }
.k-album__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); transform: translateY(8px); opacity: 0; transition: transform .35s var(--k-ease), opacity .35s, background .3s; }
.k-album:hover img { transform: scale(1.1); }
.k-album:hover .k-album__icon { transform: translateY(0); opacity: 1; background: var(--k-accent); color: var(--k-ink); }
.k-album--video .k-album__play { position: absolute; z-index: 2; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--k-primary); font-size: 20px; padding-left: 4px; transition: transform .35s var(--k-ease), background .3s, color .3s; box-shadow: 0 8px 26px rgba(0,0,0,.3); }
.k-album--video:hover .k-album__play { transform: translate(-50%, -50%) scale(1.12); background: var(--k-accent); color: var(--k-ink); }

/* Contact */
.k-contact { display: grid; grid-template-columns: 5fr 7fr; border-radius: 24px; overflow: hidden; box-shadow: var(--k-shadow); background: #fff; }
.k-contact__info { background: linear-gradient(150deg, var(--k-primary-900), var(--k-primary)); color: #fff; padding: 46px 40px; position: relative; overflow: hidden; }
.k-contact__info::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; border: 44px solid rgba(255,255,255,.06); }
.k-contact__info h2 { color: #fff; font-size: 26px !important; font-weight: 700; }
.k-contact__info p { color: rgba(255,255,255,.85); }
.k-contact__list { list-style: none; padding: 0; margin: 28px 0 0; position: relative; z-index: 1; }
.k-contact__list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.k-contact__list i { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--k-accent); }
.k-contact__list a, .k-contact__list span { color: #fff !important; }
.k-contact__list small { display: block; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.k-contact__form { padding: 46px 44px; }
.k-contact__form h2 { font-size: 26px !important; font-weight: 700; margin-bottom: 22px; }

.k-field { margin-bottom: 16px; }
.k-site .k-input, .k-site .k-contact__form .input1 {
    display: block; width: 100%; height: 52px; padding: 0 18px;
    background: var(--k-surface); border: 1.5px solid var(--k-line); border-radius: 12px;
    font-size: 15px; color: var(--k-ink); font-weight: 500;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.k-site textarea.k-input, .k-site .k-contact__form textarea.input1 { height: auto; min-height: 140px; padding: 14px 18px; resize: vertical; }
.k-site .k-input:focus, .k-site .k-contact__form .input1:focus { background: #fff; border-color: var(--k-primary); box-shadow: 0 0 0 4px rgba(31,97,183,.12); outline: none; }
.k-site .k-contact__form .wrap-input1 { margin-bottom: 16px; }
.k-site .k-contact__form .shadow-input1 { display: none; }
.k-site .k-contact__form .contact1-form-btn { border: 0; padding: 14px 34px; }

/* App page */
.k-app { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.k-app__qr { background: #fff; border: 1px solid var(--k-line); border-radius: 24px; box-shadow: var(--k-shadow); padding: 34px; text-align: center; }
.k-app__qr img { width: 220px; max-width: 100%; border-radius: 12px; }

/* Curriculum (BBS) */
.k-year { background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius); padding: 26px 26px 18px; height: 100%; transition: transform .3s var(--k-ease), box-shadow .3s, border-color .3s; }
.k-year:hover { transform: translateY(-5px); box-shadow: var(--k-shadow); border-color: var(--k-primary-300); }
.k-year__tag { display: inline-block; background: var(--k-primary); color: #fff; font-family: var(--k-font-head); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.k-year ol { padding-left: 20px; margin: 0; }
.k-year li { padding: 6px 0; border-bottom: 1px dashed var(--k-line); }
.k-year li:last-child { border-bottom: 0; }

/* Result menu tiles */
.k-tile {
    display: flex; align-items: center; gap: 18px; padding: 28px; height: 100%;
    background: #fff; border: 1px solid var(--k-line); border-radius: var(--k-radius);
    text-decoration: none !important; color: var(--k-ink) !important;
    transition: transform .3s var(--k-ease), box-shadow .3s, border-color .3s;
}
.k-tile:hover { transform: translateY(-5px); box-shadow: var(--k-shadow); border-color: var(--k-primary-300); }
.k-tile__icon { flex: 0 0 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--k-primary-050); color: var(--k-primary); font-size: 22px; transition: background .3s, color .3s; }
.k-tile:hover .k-tile__icon { background: var(--k-primary); color: #fff; }
.k-tile strong { font-family: var(--k-font-head); font-size: 17px; font-weight: 600; display: block; }
.k-tile small { color: var(--k-muted); }
.k-tile__arrow { margin-left: auto; color: var(--k-primary); transition: transform .3s var(--k-ease); }
.k-tile:hover .k-tile__arrow { transform: translateX(6px); }

/* Vacancy accordion + bootstrap bits used on public pages */
.k-site #accordion .container { max-width: 100%; padding: 0; margin-bottom: 14px; }
.k-site #accordion .card { border: 1px solid var(--k-line); border-radius: var(--k-radius) !important; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.k-site #accordion .card:hover { box-shadow: var(--k-shadow); border-color: var(--k-primary-300); }
.k-site #accordion .card-header { background: #fff; border: 0; padding: 18px 22px; }
.k-site #accordion .card-header strong { font-family: var(--k-font-head); font-size: 16.5px; color: var(--k-ink); }
.k-site #accordion .card-header .btn { border-radius: 999px; padding: 6px 18px; font-weight: 600; background: var(--k-primary) !important; transition: transform .2s, background .2s; }
.k-site #accordion .card-header .btn:hover { background: var(--k-primary-900) !important; transform: translateY(-1px); }
.k-site #accordion .card-body { background: var(--k-surface); }

.k-site .pagination .page-link { border: 0; margin: 0 3px; border-radius: 10px !important; color: var(--k-primary); font-weight: 600; min-width: 40px; text-align: center; }
.k-site .pagination .page-item.active .page-link { background: var(--k-primary); color: #fff; }
.k-site .alert { border: 0; border-radius: var(--k-radius-sm); }

/* Modals (home page popups) */
.k-site .modal-content { border: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--k-shadow-lg); }
.k-site .modal-header { background: linear-gradient(120deg, var(--k-primary-900), var(--k-primary)); border: 0; padding: 18px 24px; }
.k-site .modal-header .modal-title { color: #fff !important; font-family: var(--k-font-head) !important; font-size: 18px; }
.k-site .modal-header .close { color: #fff; opacity: .9; text-shadow: none; }
.k-site .modal-footer { border: 0; padding-top: 0; }
.k-site .modal .btn { border-radius: 999px; padding: 9px 22px; font-weight: 600; }
.k-site .modal.show .modal-dialog { animation: k-pop .4s var(--k-ease) both; }

/* ---------- 11. Footer ---------------------------------------------------- */
.k-site .footer.k-footer { background: #062a5e; color: rgba(255,255,255,.75); position: relative; font-size: 15px; }
body.site-campus.k-site .footer.k-footer { background: #1d3f68; }
.k-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--k-accent), var(--k-primary-300), var(--k-accent)); }
.k-footer__main { padding: 64px 0 46px; }
.k-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.k-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.k-footer__brand img { width: 58px; height: 58px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }
body.site-campus .k-footer__brand img { border-radius: 10px; }
.k-footer__brand strong { color: #fff; font-family: var(--k-font-head); font-size: 16px; line-height: 1.3; text-transform: uppercase; letter-spacing: .02em; }
.k-footer p { color: rgba(255,255,255,.7) !important; font-size: 14.5px; line-height: 1.8; }
.k-footer h4 { color: #fff !important; font-size: 16px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.k-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--k-accent); }
.k-footer__links { list-style: none; padding: 0; margin: 0; }
.k-footer__links li { margin-bottom: 11px; }
.k-site .k-footer__links a { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .25s var(--k-ease); }
.k-site .k-footer__links a::before { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; color: var(--k-accent); }
.k-site .k-footer__links a:hover { color: #fff; transform: translateX(5px); }
.k-footer__contact { list-style: none; padding: 0; margin: 0; }
.k-footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.k-footer__contact i { color: var(--k-accent); margin-top: 5px; width: 16px; text-align: center; }
.k-site .k-footer__contact a { color: rgba(255,255,255,.8); }
.k-site .k-footer__contact a:hover { color: #fff; }
.k-social { display: flex; gap: 10px; margin-top: 20px; }
.k-site .k-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: transform .3s var(--k-ease), background .3s, color .3s; }
.k-site .k-social a:hover { transform: translateY(-4px); background: var(--k-accent); color: var(--k-ink); }
.k-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13.5px; text-align: center; }
.k-footer__bottom p { margin: 0; font-size: 13.5px; }
.k-site .k-footer__bottom a { color: #fff; }

.k-totop {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--k-primary); color: #fff; box-shadow: var(--k-shadow-lg); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .3s, transform .3s var(--k-ease), visibility .3s, background .2s;
}
.k-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.k-totop:hover { background: var(--k-primary-900); transform: translateY(-3px); }

/* ---------- 12. Motion ---------------------------------------------------- */
@keyframes k-rise  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes k-pop   { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes k-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,183,5,.6); } 50% { box-shadow: 0 0 0 7px rgba(242,183,5,0); } }
@keyframes k-ring  { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-12deg); } }

/* scroll reveal: theme.js adds .k-reveal, then .is-in when the element scrolls
   into view. Without JS nothing is hidden. */
.k-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--k-ease), transform .8s var(--k-ease); transition-delay: var(--k-delay, 0ms); will-change: opacity, transform; }
.k-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .k-site *, .k-site *::before, .k-site *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .k-reveal { opacity: 1; transform: none; }
}

/* ---------- 13. Responsive ------------------------------------------------ */
@media (max-width: 1199.98px) {
    .k-nav .nav-link { padding-left: 11px !important; padding-right: 11px !important; font-size: 12.5px !important; }
    .k-nav .nav-link::before { left: 11px; right: 11px; }
}

@media (max-width: 991.98px) {
    .k-section { padding: 64px 0; }
    .k-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .k-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .k-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .k-contact, .k-app { grid-template-columns: 1fr; }
    .k-site.page-home main > section.n1ed--fake-container,
    .k-site.page-home main > div > section.n1ed--fake-container,
    .k-site.page-home main > section.who-we-are { padding: 60px 8px !important; }
    .k-site.page-home section.n1ed--fake-container > .row > [class*="col-"] + [class*="col-"] { margin-top: 18px; }
}

@media (max-width: 767.98px) {
    /* main.css zeroes every .row margin on small screens; keep gutters sane */
    .k-hero__text, .k-hero__actions { display: none; }
    .k-hero::after { background: linear-gradient(0deg, rgba(5,32,80,.75) 0%, rgba(5,32,80,0) 70%); }
    .k-hero__overlay { align-items: flex-end; padding-bottom: 34px; }
    .k-cta { padding: 34px 26px; border-radius: 20px; }
    .k-cta__action { margin-left: 0; }
    .k-article { padding: 26px 22px; }
    .k-contact__info, .k-contact__form { padding: 34px 24px; }
    .k-site:not(.page-home) main > section.shadow-lg { padding: 24px 18px !important; margin: 28px auto 48px !important; width: calc(100% - 24px); }
    .k-pagehero { padding: 38px 0 42px; }
    .k-page { padding: 38px 0 56px; }
}

@media (max-width: 575.98px) {
    .k-container { padding: 0 16px; }
    .k-nav .navbar-collapse { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .k-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .k-grid--3, .k-grid--2 { grid-template-columns: 1fr; }
    .k-feature { padding: 22px 12px; }
    .k-feature__icon { width: 54px; height: 54px; font-size: 21px; border-radius: 16px; }
    .k-feature h3 { font-size: 14.5px !important; }
    .k-footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .k-footer__main { padding: 48px 0 30px; }
    .k-topbar { font-size: 12.5px; }
    .k-topbar .k-container { gap: 8px; }
    .k-topbar__actions { gap: 9px; }
    .k-topbar__phone span { display: none; }
    .k-pill { padding: 4px 11px; font-size: 12px; }
    .k-pill .k-pill__ne { display: none; }
    .k-notice { flex-direction: column; gap: 14px; }
    .k-notice__date { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; padding: 6px 14px; }
    .k-notice__day { font-size: 18px; padding: 0; }
    .k-notice__month { padding: 0; }
    .k-hero__overlay { padding-bottom: 28px; }
    .k-hero .k-eyebrow { font-size: 10.5px; letter-spacing: .12em; }
    .k-totop { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
