/* KSSE learner portal. Desktop layout is preserved. */
.ksse-mobile-account,
.ksse-mobile-customer { display:none; }
@media (max-width:1023px) {
    .ksse-top { position:relative; inset:auto; background:#fff; box-shadow:none; }
    .ksse-top-spacer { display:none; }
    .ksse-top-util .ksse-top-inner { display:flex; min-height:76px; height:auto; padding:14px; gap:8px; justify-content:space-between; }
    .ksse-top-util .ksse-top-brand { min-width:0; width:clamp(120px,42vw,190px); flex:0 1 auto; transform:none; justify-content:flex-start; }
    .ksse-top-brand img { width:100%; height:auto; }
    .ksse-top-brand .ksse-top-logo-color { opacity:1; }
    .ksse-top-brand .ksse-top-logo-white,
    .ksse-top-actions { display:none; }
    .ksse-mobile-account { display:flex; align-items:center; justify-content:flex-end; gap:2px; flex:0 0 auto; }
    .ksse-mobile-account a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:5px; border-radius:8px; color:#334155; font-size:12px; line-height:1.3; font-weight:700; white-space:nowrap; }
    .ksse-mobile-account a:first-child { color:#15549b; }
    .ksse-mobile-account a:focus-visible,
    .ksse-top-nav-row > a:focus-visible,
    .ksse-mobile-customer a:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
    .ksse-top-nav { overflow:visible; border-top:1px solid #e4eaf3; background:#f5f8fc; }
    .ksse-top-inner.ksse-top-nav-row { display:grid; width:100%; min-width:0; max-width:none; height:auto; grid-template-columns:repeat(4,minmax(0,1fr)); padding:10px 14px; gap:7px; }
    .ksse-top-nav-row > a { display:flex; width:auto; min-width:0; height:auto; min-height:48px; padding:8px 3px; border:1px solid #e1e8f2; border-radius:9px; background:#fff; color:#243a55; font-size:14px; line-height:1.4; font-weight:700; text-align:center; white-space:normal; word-break:keep-all; overflow-wrap:anywhere; }
    .ksse-top-nav-row > a:last-child { grid-column:span 2; }
    .ksse-top-nav-row > a::before,
    .ksse-top-nav-row > a::after { display:none; }
    .ksse-top-nav-row > a.is-active { color:#fff; border-color:#164f89; background:#164f89; }
    .ksse-top .ksse-top-mega { display:none; }
    .ksse-homepage { background:#f4f7fb; }
    .ksse-homepage .ksse-home-visual { display:block; height:auto; min-height:0; padding:20px 14px 18px; background:#f4f7fb; overflow:visible; }
    .ksse-homepage .ksse-home-visual::before,
    .ksse-homepage .ksse-home-visual::after,
    .ksse-homepage .ksse-home-bg-video,
    .ksse-homepage .ksse-main-slider { display:none; }
    .ksse-homepage .ksse-home-visual-inner { display:block; width:100%; max-width:680px; min-height:0; margin:0 auto; }
    .ksse-homepage .ksse-home-shortcuts { display:block; height:auto; padding:0; background:none; }
    .ksse-homepage .ksse-shortcut-inner { display:grid; width:100%; height:auto; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:1fr; gap:12px; }
    .ksse-homepage .ksse-shortcut-card { display:flex; aspect-ratio:auto; min-height:116px; padding:16px 8px; gap:10px; border:1px solid #dce6f2; border-radius:16px; background:#fff; box-shadow:0 3px 12px rgba(21,53,88,.04); backdrop-filter:none; color:#173653; transform:none; animation:none; }
    .ksse-homepage .ksse-shortcut-card:hover { transform:none; }
    .ksse-homepage .ksse-shortcut-card::before { display:none; }
    .ksse-homepage .ksse-shortcut-icon { display:flex; align-items:center; justify-content:center; width:42px; height:42px; flex-basis:42px; border-radius:12px; background:#eaf2fc; color:#205fa3; font-size:25px; box-shadow:none; filter:none; }
    .ksse-homepage .ksse-shortcut-card:nth-child(2) .ksse-shortcut-icon { color:#137553; background:#e8f6ef; }
    .ksse-homepage .ksse-shortcut-card:nth-child(3) .ksse-shortcut-icon { color:#805b16; background:#fff5df; }
    .ksse-homepage .ksse-shortcut-card:nth-child(4) .ksse-shortcut-icon { color:#315db0; background:#edf2ff; }
    .ksse-homepage .ksse-shortcut-card:nth-child(7) .ksse-shortcut-icon { color:#12734f; background:#e8f6ef; }
    .ksse-homepage .ksse-shortcut-text { gap:0; }
    .ksse-homepage .ksse-shortcut-text strong { min-height:0; color:#173653; font-size:18px; line-height:1.4; font-weight:800; letter-spacing:-.03em; text-shadow:none; word-break:keep-all; overflow-wrap:anywhere; }
    .ksse-homepage .ksse-shortcut-text em { display:none; }
    .ksse-homepage .ksse-shortcut-card:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
    .ksse-homepage > section:not(.ksse-home-visual):not(.ksse-mobile-customer),
    .ksse-homepage > .ksse-floating-quick { display:none; }
    .ksse-mobile-customer { display:block; width:calc(100% - 28px); max-width:680px; margin:0 auto 24px; padding:22px 20px; border:1px solid #dce6f2; border-radius:16px; background:#fff; color:#243a55; box-sizing:border-box; }
    .ksse-mobile-customer h2 { margin:0 0 8px; font-size:20px; line-height:1.4; color:#173653; }
    .ksse-mobile-customer .ksse-mobile-phone { display:inline-flex; align-items:center; min-height:44px; color:#1456a0; font-size:30px; line-height:1.3; font-weight:800; text-decoration:none; letter-spacing:-.03em; }
    .ksse-mobile-customer p { margin:8px 0 18px; color:#56667a; font-size:15px; line-height:1.8; }
    .ksse-mobile-help-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .ksse-mobile-help-links a { display:flex; align-items:center; justify-content:center; min-height:48px; border:1px solid #cfdced; border-radius:10px; background:#f7faff; color:#224c7b; font-size:16px; font-weight:700; text-decoration:none; }
    .ksse-homepage .ksse-site-footer { padding:18px 14px; }
    .ksse-homepage .ksse-footer-inner { padding:0; }
    .ksse-homepage .ksse-footer-summary { display:none; }
    .ksse-homepage .ksse-footer-legal { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 16px; padding:0 0 12px; margin:0; }
    .ksse-homepage .ksse-footer-legal a { min-height:36px; display:flex; align-items:center; font-size:13px; }
    .ksse-homepage .ksse-footer-legal a:not([href$="/terms.php"]):not([href$="/privacy_policy.php"]):not([href$="/refund_policy.php"]) { display:none; }
    .ksse-homepage .ksse-footer-meta { padding:0; margin:0; text-align:center; font-size:11px; }
}
@media (max-width:359px) {
    .ksse-top-util .ksse-top-inner { padding:12px; gap:4px; }
    .ksse-mobile-account a { padding:4px; font-size:11.5px; }
    .ksse-top-inner.ksse-top-nav-row { padding:8px 12px; gap:5px; }
    .ksse-top-nav-row > a { font-size:13px; }
    .ksse-homepage .ksse-shortcut-text strong { font-size:17px; }
}