.ep-smart-filter-shell{--epf-blue:#2563eb;--epf-purple:#7c3aed;--epf-green:#16a34a;--epf-text:#0f172a;--epf-muted:#475569;width:100%;box-sizing:border-box;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;position:relative;z-index:35}.ep-smart-filter-shell *{box-sizing:border-box}.ep-smart-filter{display:flex;align-items:center;gap:16px;width:min(1440px,calc(100% - 28px));margin:12px auto;padding:14px 16px;border:1px solid #dbeafe;border-radius:22px;background:#fff;box-shadow:0 14px 35px rgba(30,64,175,.09);color:var(--epf-text)}.ep-smart-bg-gradient .ep-smart-filter{background:linear-gradient(135deg,#f8fbff,#fff 55%,#f5f3ff)}.ep-smart-bg-blue .ep-smart-filter{background:#eff6ff}.ep-smart-bg-white .ep-smart-filter{background:#fff}.ep-smart-filter-intro{flex:0 0 230px;display:grid;gap:5px}.ep-smart-filter-intro strong{font-size:13px;letter-spacing:.07em;color:#1d4ed8}.ep-smart-filter-intro span{font-size:14px;line-height:1.35;color:#334155;font-weight:700}.ep-smart-filter-form{display:flex;align-items:flex-end;gap:10px;flex:1;min-width:0;position:relative}.ep-smart-filter-form>label{display:grid;gap:5px;flex:1 1 130px;min-width:105px}.ep-smart-filter-form label span{font-size:11px;font-weight:800;color:var(--epf-muted)}.ep-smart-filter select,.ep-smart-filter input{width:100%;max-width:100%;height:42px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:var(--epf-text);padding:0 10px;font-size:13px;min-width:0;outline:none}.ep-smart-filter select:focus,.ep-smart-filter input:focus,.ep-smart-filter button:focus-visible{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.16)}.ep-smart-filter select:disabled{opacity:.65;cursor:progress}.ep-smart-submit,.ep-smart-advanced-toggle,.ep-smart-filter-mobile-trigger{height:42px;border:0;border-radius:12px;padding:0 15px;font-weight:850;white-space:nowrap;cursor:pointer}.ep-smart-submit{background:linear-gradient(135deg,var(--epf-blue),var(--epf-purple));color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.22)}.ep-smart-submit:disabled{opacity:.68;cursor:progress}.ep-smart-advanced-toggle{background:#eef2ff;color:#3730a3}.ep-smart-advanced-toggle[aria-expanded="true"] span{display:inline-block;transform:rotate(180deg)}.ep-smart-advanced{position:absolute;top:calc(100% + 10px);right:0;width:min(1000px,calc(100vw - 40px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #dbeafe;border-radius:18px;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.16);z-index:8}.ep-smart-advanced[hidden]{display:none}.ep-smart-status{position:absolute;left:0;top:calc(100% + 4px);font-size:12px;color:var(--epf-muted);max-width:100%}.ep-smart-filter-close,.ep-smart-filter-mobile-trigger,.ep-smart-filter-backdrop{display:none}.ep-smart-filter-shell.is-sticky{position:sticky;top:0;z-index:900}.admin-bar .ep-smart-filter-shell.is-sticky{top:32px}.ep-smart-filter-shell.is-loading .ep-smart-filter{cursor:progress}.ep-smart-result-message{padding:12px 15px;border-radius:12px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}.ep-smart-results{width:min(1240px,calc(100% - 28px));margin:24px auto;padding:20px}.ep-smart-results-header>span{display:inline-block;color:#1d4ed8;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.ep-smart-results-header h1{margin:.35rem 0}.ep-smart-results .ep-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.ep-smart-results .ep-course-card{position:relative;background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:20px;box-shadow:0 10px 28px rgba(15,23,42,.07)}.ep-smart-results .ep-course-card small{display:block;padding-right:76px;color:#64748b}.ep-smart-results .ep-course-card h2{margin:10px 0 8px;font-size:20px;line-height:1.3}.ep-smart-results .ep-course-card h2 a{color:#0f172a;text-decoration:none}.ep-smart-results .ep-course-card p{color:#475569}.ep-smart-access{position:absolute;right:16px;top:16px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.ep-smart-access.is-free{background:#dcfce7;color:#166534}.ep-smart-access.is-premium{background:#ede9fe;color:#6d28d9}.ep-smart-course-link{display:inline-flex;margin-top:8px;font-weight:800;color:#1d4ed8;text-decoration:none}.ep-smart-filter-shell.hide-desktop{display:none}
html[data-theme="dark"] .ep-smart-filter,body[data-ai-study-theme="dark"] .ep-smart-filter,html[data-theme="dark"] .ep-smart-advanced,body[data-ai-study-theme="dark"] .ep-smart-advanced,html[data-theme="dark"] .ep-smart-results .ep-course-card,body[data-ai-study-theme="dark"] .ep-smart-results .ep-course-card{background:#0f1b2d;color:#e5e7eb;border-color:#334155}html[data-theme="dark"] .ep-smart-filter-intro span,body[data-ai-study-theme="dark"] .ep-smart-filter-intro span,html[data-theme="dark"] .ep-smart-filter label span,body[data-ai-study-theme="dark"] .ep-smart-filter label span,html[data-theme="dark"] .ep-smart-results .ep-course-card p,body[data-ai-study-theme="dark"] .ep-smart-results .ep-course-card p{color:#cbd5e1}html[data-theme="dark"] .ep-smart-filter select,html[data-theme="dark"] .ep-smart-filter input,body[data-ai-study-theme="dark"] .ep-smart-filter select,body[data-ai-study-theme="dark"] .ep-smart-filter input{background:#111827;color:#f8fafc;border-color:#475569}html[data-theme="dark"] .ep-smart-results .ep-course-card h2 a,body[data-ai-study-theme="dark"] .ep-smart-results .ep-course-card h2 a{color:#f8fafc}
@media(max-width:1180px){.ep-smart-filter{align-items:stretch}.ep-smart-filter-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.ep-smart-submit,.ep-smart-advanced-toggle{width:100%}.ep-smart-filter-intro{flex-basis:190px}.ep-smart-advanced{grid-template-columns:repeat(3,minmax(0,1fr))}.ep-smart-status{position:static;grid-column:1/-1}.ep-smart-results .ep-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){.admin-bar .ep-smart-filter-shell.is-sticky{top:46px}}
@media(max-width:760px){html.ep-filter-open{overflow:hidden}.ep-smart-filter-shell.hide-desktop{display:block}.ep-smart-filter-shell.hide-mobile{display:none}.ep-smart-filter-mobile-trigger{display:flex;align-items:center;justify-content:center;margin:10px auto;width:calc(100% - 24px);background:linear-gradient(135deg,var(--epf-blue),var(--epf-purple));color:#fff}.ep-smart-filter-backdrop{position:fixed;inset:0;border:0;background:rgba(15,23,42,.55);z-index:999998}.ep-smart-filter-shell.is-open .ep-smart-filter-backdrop{display:block}.ep-smart-filter{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-height:min(88dvh,760px);margin:0;padding:16px 14px 20px;border-radius:24px 24px 0 0;display:block;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;transform:translateY(105%);transition:transform .24s ease;z-index:999999}.ep-smart-filter-shell.is-open .ep-smart-filter{transform:translateY(0)}.ep-smart-filter-close{display:grid;place-items:center;position:sticky;top:0;margin:0 0 -36px auto;width:36px;height:36px;border:1px solid #cbd5e1;border-radius:50%;background:#fff;color:#0f172a;font-size:24px;line-height:1;z-index:10}.ep-smart-filter-intro{padding-right:46px;margin-bottom:14px;min-height:38px}.ep-smart-filter-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.ep-smart-filter-form>label{min-width:0}.ep-smart-submit{grid-column:1/-1}.ep-smart-advanced{position:static;transform:none;width:100%;max-width:100%;grid-column:1/-1;grid-template-columns:1fr 1fr;box-shadow:none;margin-top:3px}.ep-smart-status{position:static;grid-column:1/-1;min-height:18px}.ep-smart-filter-shell.is-sticky{position:relative;top:auto}.ep-smart-results{width:calc(100% - 16px);padding:10px}.ep-smart-results .ep-course-grid{grid-template-columns:1fr}}
@media(max-width:460px){.ep-smart-filter-form,.ep-smart-advanced{grid-template-columns:1fr}.ep-smart-submit,.ep-smart-advanced-toggle,.ep-smart-status{grid-column:1}.ep-smart-filter select,.ep-smart-filter input{height:44px}.ep-smart-filter{max-height:92dvh}.ep-smart-filter-mobile-trigger{font-size:13px}}
@media(prefers-reduced-motion:reduce){.ep-smart-filter{transition:none}}


/* Stable release accessibility hardening. */
:where(.ai-study-app,.ep-course-experience,.ep-course-showcase,.ep-home-course-showcase,.ep-smart-filter,.ep-quiz-player,.ep-course-module-bridge) :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #2563eb;outline-offset:3px;box-shadow:0 0 0 2px #fff}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media (prefers-reduced-motion: reduce){html:focus-within{scroll-behavior:auto!important}:where(.ai-study-app,.ep-course-experience,.ep-course-showcase,.ep-home-course-showcase,.ep-smart-filter,.ep-quiz-player,.ep-course-module-bridge),:where(.ai-study-app,.ep-course-experience,.ep-course-showcase,.ep-home-course-showcase,.ep-smart-filter,.ep-quiz-player,.ep-course-module-bridge) *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* V67.12.0 — Advanced drawer must stay above the site/theme header.
   The existing JavaScript adds .has-advanced-open only while the drawer is open,
   so the high stacking layer is temporary and does not affect normal page layout. */
.ep-smart-filter-shell.has-advanced-open{
    z-index:90000!important;
    overflow:visible!important;
}
.ep-smart-filter-shell.has-advanced-open .ep-smart-filter,
.ep-smart-filter-shell.has-advanced-open .ep-smart-filter-form{
    overflow:visible!important;
}
.ep-smart-filter-shell.has-advanced-open .ep-smart-advanced{
    z-index:90002!important;
    visibility:visible!important;
}
@media(max-width:760px){
    .ep-smart-filter-shell.has-advanced-open{z-index:999999!important}
    .ep-smart-filter-shell.has-advanced-open .ep-smart-filter{z-index:1000000!important}
    .ep-smart-filter-shell.has-advanced-open .ep-smart-advanced{z-index:auto!important}
}


/* V67.26.0 — Keep Smart Course Match inside the real site content container.
   Desktop/tablet placement is constrained without changing the mobile bottom sheet. */
@media (min-width:761px){
    .ep-smart-filter-shell{
        max-width:100%!important;
        overflow:visible!important;
    }
    .ep-smart-filter{
        width:min(1200px,calc(100% - 32px))!important;
        max-width:1200px!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    .ep-smart-filter-form,
    .ep-smart-filter-form > label{
        max-width:100%!important;
        min-width:0!important;
    }
    .ep-smart-advanced{
        max-width:min(100%,1000px)!important;
    }
}


/* V67.26.1 — Logged-out header filter must use the same site container as the
   public Astra/Easy Padhai header. Constrain the shell itself so older theme or
   optimisation rules cannot stretch the inner panel back to viewport width. */
@media (min-width:761px){
    .ep-smart-filter-shell.is-guest{
        width:min(1200px,calc(100% - 32px))!important;
        max-width:1200px!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    .ep-smart-filter-shell.is-guest > .ep-smart-filter{
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
    }
    .ep-smart-filter-shell.is-guest .ep-smart-advanced{
        max-width:min(100%,1000px)!important;
    }
}
@media (max-width:760px){
    .ep-smart-filter-shell.is-guest{
        width:100%!important;
        max-width:none!important;
        margin:0!important;
    }
}

/* V1.71.4 — Keep the automatic filter aligned with the 1200px homepage
   container in both authenticated states. The state-specific selector also
   wins over older theme/optimisation CSS without affecting the mobile sheet. */
@media (min-width:761px){
    .ep-smart-filter-shell.is-guest,
    .ep-smart-filter-shell.is-authenticated{
        width:min(1200px,calc(100% - 32px))!important;
        max-width:1200px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        overflow:visible!important;
    }
    .ep-smart-filter-shell.is-guest > .ep-smart-filter,
    .ep-smart-filter-shell.is-authenticated > .ep-smart-filter{
        width:100%!important;
        max-width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
    }
}
