
:root{
    --sp-mobile-footer-height: 74px;

    --sp-sidebar-left: 12px;
    --sp-sidebar-top: 95px;
    --sp-sidebar-width: 260px;
    --sp-sidebar-padding: 16px;
    --sp-sidebar-gap: 14px;

    --sp-content-max-width: 1400px;

    --sp-sidebar-space: calc(
        var(--sp-sidebar-left) +
        var(--sp-sidebar-width) +
        var(--sp-sidebar-gap)
    );
}

*,
*::before,
*::after{
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.sp-exam-layout{
    width: 100%;
    background: #ffffff;
}

/* ==========================================
   LEFT SIDEBAR
========================================== */

.sp-filter-sidebar{
    position: fixed;
    left: var(--sp-sidebar-left);
    top: var(--sp-sidebar-top);

    width: var(--sp-sidebar-width);
    height: calc(100vh - 115px);
    max-height: calc(100vh - 115px);
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: var(--sp-sidebar-padding);

    background: #ffffff;

    border: 1px solid #94a3b8;
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(15,23,42,.08);

    z-index: 100;
}

.sp-filter-sidebar::-webkit-scrollbar{
    width: 8px;
}

.sp-filter-sidebar::-webkit-scrollbar-thumb{
    background: #94a3b8;
    border-radius: 999px;
}

.sp-filter-sidebar::-webkit-scrollbar-track{
    background: transparent;
}

.sp-filter-sidebar .sp-filter-btn{
    width: 100%;
    padding: 15px 18px;

    background: #ffffff;
    color: #334155;

    border: 1px solid #94a3b8;
    border-radius: 14px;

    text-align: left;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .12s ease;
}

.sp-filter-sidebar .sp-filter-btn.active{
    background: #eff6ff;

    color: #1d4ed8 !important;

    border: 2px solid #60a5fa;

    box-shadow: none;
}

.sp-filter-sidebar .sp-filter-btn.active *{
    color: #1d4ed8 !important;
}

.sp-filter-sidebar .sp-filter-btn:active{
    transform: scale(.985);
}

.sp-filter-sidebar .sp-filter-btn:focus-visible{
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ==========================================
   CONTENT
========================================== */

.sp-exam-layout,
.sp-exam-content{
    min-height: unset;
}

.sp-exam-content{
    width: 100%;
    padding: 70px 14px 14px;
}

.has-sidebar .sp-exam-content{
    margin-left: var(--sp-sidebar-space);
    width: calc(100% - var(--sp-sidebar-space));
    padding: 32px 14px 14px 0;
}

.sp-exam-content > *{
    width: 100%;
    max-width: var(--sp-content-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   GRID Header
========================================== */

.sp-page-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;

    margin:0 0 24px;

    padding:0 4px 14px;

    border-bottom:2px solid #e2e8f0;
}

.sp-page-header-left{
    flex:1;
    min-width:0;
}

.sp-page-title{
    font-size:34px;
    font-weight:900;
    color:#0f172a;
    line-height:1.1;
}

.sp-page-subtitle{
    margin-top:6px;

    font-size:15px;
    color:#64748b;
}

.sp-page-meta{
    margin-top:10px;

    display:inline-flex;
    align-items:center;
    gap:8px;

    font-size:13px;
    font-weight:600;

    color:#2563eb;

    background:#eff6ff;

    padding:6px 12px;

    border-radius:999px;
}

.sp-page-header-logo{
    width:90px;
    height:90px;

    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;
}

.sp-page-header-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
}


















/* ==========================================
   MOBILE
========================================== */

@media (max-width:768px){

    .sp-page-header{
        gap:14px;

        padding:0 2px 12px;

        margin-bottom:18px;
    }

    .sp-page-title{
        font-size:26px;
    }

    .sp-page-subtitle{
        font-size:13px;
    }

    .sp-page-meta{
        font-size:12px;
        padding:5px 10px;
    }

    .sp-page-header-logo{
        width:58px;
        height:58px;
    }
}







/* ==========================================
   GRID
========================================== */



.sp-test-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;

    width: 100%;
    max-width: var(--sp-content-max-width);
    margin: 0 auto;
    padding: 0;

    align-items: stretch;
}




.sp-folder-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;

    min-height:110px;
    padding:18px 20px;

    border-radius:16px;

    background:linear-gradient(
        135deg,
        #eef2ff,
        #ffffff
    );

    border:1px solid #dbeafe;

    text-decoration:none;

    box-shadow:0 8px 22px rgba(0,0,0,.08);

    transition:all .25s ease;
}

.sp-folder-title{
    font-size:20px;
    font-weight:800;
    color:#1e3a8a;
}

.sp-folder-subtitle{
    margin-top:5px;

    font-size:13px;
    color:#475569;
}

.sp-folder-card:nth-child(5n+1){
    background:linear-gradient(135deg,#dbeafe,#eff6ff);
}

.sp-folder-card:nth-child(5n+2){
    background:linear-gradient(135deg,#dcfce7,#f0fdf4);
}

.sp-folder-card:nth-child(5n+3){
    background:linear-gradient(135deg,#fce7f3,#fdf2f8);
}

.sp-folder-card:nth-child(5n+4){
    background:linear-gradient(135deg,#fef3c7,#fffbeb);
}

.sp-folder-card:nth-child(5n){
    background:linear-gradient(135deg,#ede9fe,#f5f3ff);
}


















.sp-test-card{
    position: relative;
    width: 100%;
    min-width: 0;

    background:
        linear-gradient(
            180deg,
            rgba(147,51,234,0.10) 0%,
            rgba(34,197,94,0.03) 45%,
            rgba(255,255,255,.98) 100%
        ),
        #ffffff;

    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card-free{
    border-color:#bbf7d0;   /* soft green */
}

.card-buy{
    border-color:#fde68a;   /* soft amber */
}

.card-active{
    border-color:#bfdbfe;   /* soft blue */
}

.card-expired{
    border-color:#fecaca;   /* soft red */
}

.card-renew{
    border-color:#ddd6fe;   /* soft purple */
}

.sp-test-card,
.sp-test-card *{
    user-select: none;
}

.card-free{
    background: linear-gradient(180deg, rgba(34,197,94,0.10), rgba(255,255,255,0.98)), #ffffff;
}
.card-buy{
    background: linear-gradient(180deg, rgba(245,158,11,0.12), rgba(255,255,255,0.98)), #ffffff;
}
.card-renew{
    background: linear-gradient(180deg, rgba(147,51,234,0.12), rgba(255,255,255,0.98)), #ffffff;
}
.card-active{
    background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(255,255,255,0.98)), #ffffff;
}
.card-expired{
    background: linear-gradient(180deg, rgba(239,68,68,0.10), rgba(255,255,255,0.98)), #ffffff;
    opacity: .88;
}

.sp-card-title{
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.sp-card-meta{
    font-size: 14px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.sp-card-badges{
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sp-badge{
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.sp-badge.free{
    background: #dcfce7;
    color: #166534;
}
.sp-badge.paid{
    background: #fee2e2;
    color: #991b1b;
}
.sp-badge.attempt{
    background: #f1f5f9;
    color: #334155;
}

.sp-card-btn{

    margin-top: auto;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sp-card-btn.renew-btn{
    background: linear-gradient(135deg,#7c3aed,#9333ea);
}
.sp-card-btn.start-paid{
    background: linear-gradient(135deg,#22c55e,#16a34a);
}

.sp-star-btn{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.sp-star-btn .star-icon{
    font-size: 20px;
    color: #9ca3af;
    transition: color .15s ease;
}

.sp-star-btn.active{
    border-color: #facc15;
    box-shadow: 0 0 0 6px rgba(250,204,21,.22);
}

.sp-star-btn.active .star-icon{
    color: #facc15;
}

.sp-star-btn:active{
    transform: scale(.92);
}

@keyframes star-pop{
    0%{transform:scale(1);}
    40%{transform:scale(1.35);}
    70%{transform:scale(.9);}
    100%{transform:scale(1);}
}

.sp-star-btn.react{
    animation: star-pop .35s ease;
}

.sp-empty-message{
    width: 100%;
    max-width: var(--sp-content-max-width);
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

.sp-empty-message::before{
    content: "☆";
    display: block;
    font-size: 36px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.sp-highlight-test{
    border: 3px solid #facc15;
    box-shadow: 0 0 0 6px rgba(250,204,21,.22);
    animation: spHighlight .8s ease;
}

@keyframes spHighlight{
    0%{transform:scale(.96)}
    50%{transform:scale(1.02)}
    100%{transform:scale(1)}
}

.sp-mobile-footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #f3f4f6 0%, #eef0f4 100%);
    border-top: 1px solid #dbe0e6;
    box-shadow: 0 -4px 12px rgba(15,23,42,.08);
    z-index: 9999;
}

.sp-mobile-footer .sp-filter-btn{
    flex: 1;
    padding: 8px 0;
    min-height: 40px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.sp-mobile-footer .sp-filter-btn.active{
    background: rgba(250,204,21,.18);
    color: #1f2937 !important;
    border-color: #facc15;
    box-shadow: 0 2px 6px rgba(250,204,21,.35);
}

.sp-mobile-footer .sp-filter-btn:active{
    transform: scale(.95);
}
















.sp-folder-count{
    font-size:14px;
    font-weight:600;
    color:#64748b;
}





















#sp-mobile-sheet-backdrop{
    position: fixed;
    inset: 0;

    background: rgba(15,23,42,.32);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: none;

    z-index: 9998;
}

#sp-mobile-more-menu{
    position: fixed;

    left: 12px;
    right: 12px;

    bottom: calc(var(--sp-mobile-footer-height) + 8px);

    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 18px;

    padding: 10px 14px calc(18px + env(safe-area-inset-bottom));

    max-height: min(65vh, 500px);

    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-y;

    display: flex;
    flex-direction: column;
    gap: 8px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: none;

    z-index: 10000;

    box-shadow: 0 -16px 40px rgba(15,23,42,.18);
}

#sp-mobile-more-menu.open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#sp-mobile-sheet-backdrop.open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sp-mobile-sheet-handle{
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 0 auto 6px;
}

.sp-mobile-sheet-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 8px;
}

.sp-mobile-sheet-title{
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

#sp-mobile-sheet-close{
    width: 40px;
    height: 40px;

    border: 1px solid #cbd5e1;
    border-radius: 999px;

    background: #fff;
    color: #334155;

    font-size: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

#sp-mobile-sheet-close:active{
    transform: scale(.96);
}

#sp-mobile-more-menu .sp-filter-btn{
    width: 100%;

    padding: 12px 16px;

    background: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 14px;

    text-align: left;

    font-size: 15px;
    font-weight: 600;

    color: #334155;
}

#sp-mobile-more-menu .sp-filter-btn.active{
    background: #eff6ff;
    color: #2563eb !important;
    border-color: #93c5fd;
}

#sp-mobile-more-menu::-webkit-scrollbar{
    width: 4px;
}

#sp-mobile-more-menu::-webkit-scrollbar-thumb{
    background: #cbd5e1;
    border-radius: 999px;
}

#sp-mobile-more-menu::-webkit-scrollbar-track{
    background: transparent;
}









@media (min-width: 769px){
    .sp-mobile-footer{
        display: none;
    }
}

@media (max-width: 1024px){
    :root{
        --sp-sidebar-left: 10px;
        --sp-sidebar-width: 240px;
        --sp-sidebar-gap: 12px;
    }
}

@media (max-width: 768px){

    .sp-filter-sidebar{
        display:none;
    }

.sp-exam-content,
.has-sidebar .sp-exam-content{
    width:100%;
    margin-left:0;
    padding:30px 28px calc(
        var(--sp-mobile-footer-height) + 24px + env(safe-area-inset-bottom)
    );
}

    .sp-exam-content > *{
        max-width:100%;
    }

    .sp-test-grid{
        grid-template-columns:1fr;
        gap:14px;
        margin:0 auto;
        padding:0;
    }

    .sp-folder-card{
        min-height:72px;
        padding:12px 14px;
        border-radius:12px;
    }

    .sp-folder-title{
        font-size:16px;
        margin-bottom:3px;
        line-height:1.2;
    }

    .sp-folder-subtitle{
        font-size:11px;
        line-height:1.3;

        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
}








/* =========================================================
   MODERN PBS MOCK TEST REDESIGN — 2026
   Visual layer only. Existing functional selectors preserved.
========================================================= */

:root{
  --pbs-modern-bg:#f6f8fc;
  --pbs-modern-surface:#ffffff;
  --pbs-modern-border:#e4e9f2;
  --pbs-modern-text:#0f172a;
  --pbs-modern-muted:#64748b;
  --pbs-modern-blue:#2563eb;
}

/* Main page */
.sp-exam-layout{
  width:100%;
  max-width:1480px;
  margin:0 auto;
  box-sizing:border-box;
}

.sp-exam-content{
  min-width:0;
}

/* Modern hero */
.sp-page-header{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:230px;
  margin:0 0 30px;
  padding:38px 42px;
  border-radius:24px;
  border:1px solid rgba(148,163,184,.22);
  background:
    radial-gradient(circle at 92% 18%,rgba(59,130,246,.22),transparent 28%),
    radial-gradient(circle at 76% 100%,rgba(124,58,237,.15),transparent 34%),
    linear-gradient(135deg,#0f172a 0%,#172554 56%,#111827 100%);
  box-shadow:0 18px 50px rgba(15,23,42,.10);
}

.sp-page-header::before,
.sp-page-header::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  z-index:-1;
}

.sp-page-header::before{
  width:210px;
  height:210px;
  right:-62px;
  top:-88px;
  border:1px solid rgba(255,255,255,.13);
  box-shadow:
    0 0 0 28px rgba(255,255,255,.025),
    0 0 0 58px rgba(255,255,255,.018);
}

.sp-page-header::after{
  width:105px;
  height:105px;
  right:150px;
  bottom:-70px;
  border:1px solid rgba(96,165,250,.18);
}

.sp-page-header-left{
  position:relative;
  z-index:3;
  max-width:700px;
}

.sp-page-title{
  color:#fff !important;
  font-size:clamp(30px,4vw,48px) !important;
  line-height:1.08 !important;
  font-weight:850 !important;
  letter-spacing:-.035em;
}

.sp-page-subtitle{
  color:#cbd5e1 !important;
  max-width:620px;
  font-size:15px !important;
  line-height:1.7 !important;
  margin-top:12px !important;
}

.sp-page-header-logo{
  position:absolute;
  right:42px;
  top:50%;
  transform:translateY(-50%);
  width:116px;
  height:116px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 12px 35px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
  z-index:3;
}

.sp-page-header-logo img{
  width:72px;
  height:72px;
  object-fit:contain;
}

/* Filter sidebar */
.sp-filter-sidebar{
  border:1px solid var(--pbs-modern-border);
  border-radius:20px;
  background:rgba(255,255,255,.82);
  box-shadow:0 12px 35px rgba(15,23,42,.06);
  padding:10px;
  backdrop-filter:blur(10px);
}

.sp-filter-btn{
  border-radius:12px !important;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease !important;
}

/* Folder/category cards */
.sp-folder-card{
  position:relative;
  min-height:145px;
  padding:23px !important;
  border-radius:20px !important;
  border:1px solid var(--pbs-modern-border) !important;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%) !important;
  box-shadow:0 8px 25px rgba(15,23,42,.045) !important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease !important;
}

.sp-folder-card::after{
  content:"";
  position:absolute;
  width:74px;
  height:74px;
  right:-25px;
  bottom:-30px;
  border-radius:50%;
  border:1px solid rgba(59,130,246,.10);
  pointer-events:none;
}

.sp-folder-title{
  font-size:20px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  color:#0f172a !important;
}

.sp-folder-subtitle{
  font-size:13px !important;
  line-height:1.5 !important;
  color:#64748b !important;
}

/* Test cards */
.sp-test-card{
  border-radius:18px !important;
  border:1px solid var(--pbs-modern-border) !important;
  box-shadow:0 7px 24px rgba(15,23,42,.045) !important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease !important;
}

/* Dark mode */
html.dark-mode .sp-filter-sidebar,
body.dark-mode .sp-filter-sidebar,
html.dark .sp-filter-sidebar,
body.dark .sp-filter-sidebar{
  background:rgba(15,23,42,.82);
  border-color:#263247;
}

html.dark-mode .sp-folder-card,
body.dark-mode .sp-folder-card,
html.dark .sp-folder-card,
body.dark .sp-folder-card{
  background:linear-gradient(180deg,#111827 0%,#0f172a 100%) !important;
  border-color:#263247 !important;
  box-shadow:0 10px 28px rgba(0,0,0,.22) !important;
}

html.dark-mode .sp-folder-title,
body.dark-mode .sp-folder-title,
html.dark .sp-folder-title,
body.dark .sp-folder-title{
  color:#f8fafc !important;
}

html.dark-mode .sp-folder-subtitle,
body.dark-mode .sp-folder-subtitle,
html.dark .sp-folder-subtitle,
body.dark .sp-folder-subtitle{
  color:#94a3b8 !important;
}

html.dark-mode .sp-test-card,
body.dark-mode .sp-test-card,
html.dark .sp-test-card,
body.dark .sp-test-card{
  border-color:#263247 !important;
  box-shadow:0 10px 28px rgba(0,0,0,.22) !important;
}

/* Mobile */
@media(max-width:900px){
  .sp-page-header{
    min-height:215px;
    padding:30px 26px;
  }
  .sp-page-header-logo{
    right:24px;
    width:92px;
    height:92px;
  }
  .sp-page-header-logo img{
    width:58px;
    height:58px;
  }
}

@media(max-width:600px){
  .sp-page-header{
    min-height:190px;
    padding:25px 20px;
    border-radius:20px;
    margin-bottom:22px;
  }
  .sp-page-title{
    max-width:70%;
    font-size:30px !important;
  }
  .sp-page-subtitle{
    max-width:70%;
    font-size:13px !important;
  }
  .sp-page-header-logo{
    right:13px;
    width:76px;
    height:76px;
  }
  .sp-page-header-logo img{
    width:48px;
    height:48px;
  }
  .sp-folder-card{
    min-height:130px;
    padding:20px !important;
    border-radius:17px !important;
  }
  .sp-folder-title{
    font-size:18px !important;
  }
}


/* =========================================================
   PBS EXAM LIST — FINAL THEME LAYER v5
   Light mode = light/bright
   Dark mode  = dark
========================================================= */

:root{
  --pbs-bg:#f4f7fb;
  --pbs-surface:#ffffff;
  --pbs-border:#dfe6f0;
  --pbs-text:#0f172a;
  --pbs-muted:#64748b;
}

/* ---------- LIGHT MODE ---------- */

body:has(.sp-exam-layout){
    background:var(--pbs-bg) !important;
}

body:has(.sp-exam-layout) .elementor-widget-container,
body:has(.sp-exam-layout) .elementor-element,
body:has(.sp-exam-layout) .elementor-section,
body:has(.sp-exam-layout) .elementor-container,
body:has(.sp-exam-layout) .site-main,
body:has(.sp-exam-layout) .entry-content{
    background:transparent !important;
}

.sp-exam-layout{
    width:100% !important;
    max-width:none !important;
    min-height:calc(100vh - 80px) !important;
    padding:34px 0 70px !important;
    background:var(--pbs-bg) !important;
    color:var(--pbs-text) !important;
}

.sp-exam-content{
    background:transparent !important;
    color:var(--pbs-text) !important;
}

/* HERO */
.sp-page-header{
    position:relative !important;
    isolation:isolate !important;
    overflow:hidden !important;
    min-height:250px !important;
    margin:0 0 28px !important;
    padding:48px 48px !important;
    border:1px solid rgba(59,130,246,.16) !important;
    border-radius:26px !important;
    background:
      radial-gradient(circle at 90% 20%,rgba(96,165,250,.28),transparent 27%),
      radial-gradient(circle at 72% 100%,rgba(129,140,248,.20),transparent 32%),
      linear-gradient(135deg,#eaf3ff 0%,#dbeafe 48%,#eef2ff 100%) !important;
    box-shadow:0 16px 40px rgba(30,64,175,.10) !important;
}

.sp-page-header::before,
.sp-page-header::after{
    content:"" !important;
    position:absolute !important;
    border-radius:50% !important;
    pointer-events:none !important;
    z-index:-1 !important;
}

.sp-page-header::before{
    width:220px;
    height:220px;
    right:-70px;
    top:-100px;
    border:1px solid rgba(37,99,235,.12);
    box-shadow:
      0 0 0 28px rgba(37,99,235,.035),
      0 0 0 58px rgba(37,99,235,.025);
}

.sp-page-header::after{
    width:120px;
    height:120px;
    right:145px;
    bottom:-78px;
    border:1px solid rgba(59,130,246,.12);
}

.sp-page-header-left{
    position:relative !important;
    z-index:2 !important;
}

.sp-page-title{
    color:#0f172a !important;
    font-size:clamp(32px,4vw,52px) !important;
    line-height:1.06 !important;
    font-weight:900 !important;
    letter-spacing:-1.7px !important;
}

.sp-page-subtitle{
    color:#475569 !important;
    font-size:15px !important;
    line-height:1.6 !important;
    margin-top:12px !important;
}

.sp-page-meta{
    color:#1d4ed8 !important;
    background:rgba(255,255,255,.72) !important;
    border:1px solid rgba(59,130,246,.14) !important;
}

.sp-page-header-logo{
    z-index:3 !important;
    background:rgba(255,255,255,.62) !important;
    border:1px solid rgba(59,130,246,.16) !important;
    box-shadow:0 12px 32px rgba(30,64,175,.10) !important;
}

.sp-folder-card::before{
    content:"" !important;
    display:none !important;
}

.sp-folder-card::after{
    width:120px !important;
    height:120px !important;
    right:-45px !important;
    bottom:-60px !important;
    border:1px solid rgba(59,130,246,.10) !important;
    background:transparent !important;
    pointer-events:none !important;
}

.sp-folder-card:nth-child(5n+1){
    background:linear-gradient(145deg,#ecfdf5 0%,#f8fafc 65%,#ffffff 100%) !important;
    border-top:3px solid #22c55e !important;
}
.sp-folder-card:nth-child(5n+2){
    background:linear-gradient(145deg,#fff7ed 0%,#f8fafc 65%,#ffffff 100%) !important;
    border-top:3px solid #f59e0b !important;
}
.sp-folder-card:nth-child(5n+3){
    background:linear-gradient(145deg,#eff6ff 0%,#f8fafc 65%,#ffffff 100%) !important;
    border-top:3px solid #3b82f6 !important;
}
.sp-folder-card:nth-child(5n+4){
    background:linear-gradient(145deg,#f5f3ff 0%,#f8fafc 65%,#ffffff 100%) !important;
    border-top:3px solid #a855f7 !important;
}
.sp-folder-card:nth-child(5n){
    background:linear-gradient(145deg,#eef2ff 0%,#f8fafc 65%,#ffffff 100%) !important;
    border-top:3px solid #6366f1 !important;
}

.sp-folder-title{
    position:relative !important;
    z-index:2 !important;
    margin:0 !important;
    color:#0f172a !important;
    font-size:21px !important;
    line-height:1.25 !important;
    font-weight:850 !important;
}

.sp-folder-count{
    color:#64748b !important;
    font-size:13px !important;
    font-weight:600 !important;
}

.sp-folder-subtitle{
    position:relative !important;
    z-index:2 !important;
    margin-top:8px !important;
    color:#64748b !important;
    font-size:13px !important;
    line-height:1.45 !important;
}

/* TEST CARDS */
.sp-test-card{
    background:#fff !important;
    border-color:#dfe6f0 !important;
    box-shadow:0 8px 25px rgba(15,23,42,.07) !important;
}

/* SIDEBAR */
.sp-filter-sidebar{
    background:rgba(255,255,255,.92) !important;
    border-color:#dfe6f0 !important;
    box-shadow:0 12px 32px rgba(15,23,42,.07) !important;
}

.sp-filter-sidebar .sp-filter-btn{
    background:#fff !important;
    color:#334155 !important;
    border-color:#dbe3ee !important;
}

/* ---------- DARK MODE ONLY ---------- */

html.dark-mode body:has(.sp-exam-layout),
body.dark-mode:has(.sp-exam-layout),
html.dark body:has(.sp-exam-layout),
body.dark:has(.sp-exam-layout){
    background:#020617 !important;
}

html.dark-mode .sp-exam-layout,
body.dark-mode .sp-exam-layout,
html.dark .sp-exam-layout,
body.dark .sp-exam-layout{
    background:#020617 !important;
    color:#e5e7eb !important;
}

html.dark-mode .sp-exam-content,
body.dark-mode .sp-exam-content,
html.dark .sp-exam-content,
body.dark .sp-exam-content{
    background:transparent !important;
    color:#e5e7eb !important;
}

html.dark-mode .sp-page-header,
body.dark-mode .sp-page-header,
html.dark .sp-page-header,
body.dark .sp-page-header{
    border-color:rgba(148,163,184,.18) !important;
    background:
      radial-gradient(circle at 88% 18%,rgba(59,130,246,.22),transparent 28%),
      radial-gradient(circle at 70% 100%,rgba(99,102,241,.16),transparent 30%),
      linear-gradient(135deg,#0b1428 0%,#101d3c 55%,#17295a 100%) !important;
    box-shadow:0 20px 55px rgba(0,0,0,.25) !important;
}

html.dark-mode .sp-page-title,
body.dark-mode .sp-page-title,
html.dark .sp-page-title,
body.dark .sp-page-title{
    color:#f8fafc !important;
}

html.dark-mode .sp-page-subtitle,
body.dark-mode .sp-page-subtitle,
html.dark .sp-page-subtitle,
body.dark .sp-page-subtitle{
    color:#b9c5da !important;
}

html.dark-mode .sp-page-meta,
body.dark-mode .sp-page-meta,
html.dark .sp-page-meta,
body.dark .sp-page-meta{
    color:#dbeafe !important;
    background:rgba(255,255,255,.08) !important;
    border-color:rgba(255,255,255,.12) !important;
}

html.dark-mode .sp-page-header-logo,
body.dark-mode .sp-page-header-logo,
html.dark .sp-page-header-logo,
body.dark .sp-page-header-logo{
    background:rgba(255,255,255,.07) !important;
    border-color:rgba(255,255,255,.15) !important;
    box-shadow:0 12px 35px rgba(0,0,0,.18) !important;
}

html.dark-mode .sp-folder-card,
body.dark-mode .sp-folder-card,
html.dark .sp-folder-card,
body.dark .sp-folder-card{
    color:#f8fafc !important;
    border-color:#263247 !important;
    box-shadow:0 12px 34px rgba(0,0,0,.24) !important;
}

html.dark-mode .sp-folder-card:nth-child(5n+1),
body.dark-mode .sp-folder-card:nth-child(5n+1),
html.dark .sp-folder-card:nth-child(5n+1),
body.dark .sp-folder-card:nth-child(5n+1){
    background:linear-gradient(145deg,#062f2a 0%,#071f24 55%,#0f172a 100%) !important;
}
html.dark-mode .sp-folder-card:nth-child(5n+2),
body.dark-mode .sp-folder-card:nth-child(5n+2),
html.dark .sp-folder-card:nth-child(5n+2),
body.dark .sp-folder-card:nth-child(5n+2){
    background:linear-gradient(145deg,#321d0c 0%,#211822 55%,#0f172a 100%) !important;
}
html.dark-mode .sp-folder-card:nth-child(5n+3),
body.dark-mode .sp-folder-card:nth-child(5n+3),
html.dark .sp-folder-card:nth-child(5n+3),
body.dark .sp-folder-card:nth-child(5n+3){
    background:linear-gradient(145deg,#102c58 0%,#101d3c 55%,#0f172a 100%) !important;
}
html.dark-mode .sp-folder-card:nth-child(5n+4),
body.dark-mode .sp-folder-card:nth-child(5n+4),
html.dark .sp-folder-card:nth-child(5n+4),
body.dark .sp-folder-card:nth-child(5n+4){
    background:linear-gradient(145deg,#34200d 0%,#241827 55%,#0f172a 100%) !important;
}
html.dark-mode .sp-folder-card:nth-child(5n),
body.dark-mode .sp-folder-card:nth-child(5n),
html.dark .sp-folder-card:nth-child(5n),
body.dark .sp-folder-card:nth-child(5n){
    background:linear-gradient(145deg,#20204c 0%,#171a35 55%,#0f172a 100%) !important;
}

html.dark-mode .sp-folder-title,
body.dark-mode .sp-folder-title,
html.dark .sp-folder-title,
body.dark .sp-folder-title{
    color:#f8fafc !important;
}

html.dark-mode .sp-folder-count,
body.dark-mode .sp-folder-count,
html.dark .sp-folder-count,
body.dark .sp-folder-count,
html.dark-mode .sp-folder-subtitle,
body.dark-mode .sp-folder-subtitle,
html.dark .sp-folder-subtitle,
body.dark .sp-folder-subtitle{
    color:#a9b6ca !important;
}

html.dark-mode .sp-test-card,
body.dark-mode .sp-test-card,
html.dark .sp-test-card,
body.dark .sp-test-card{
    background:#111827 !important;
    border-color:#263247 !important;
    box-shadow:0 10px 28px rgba(0,0,0,.22) !important;
}

html.dark-mode .sp-filter-sidebar,
body.dark-mode .sp-filter-sidebar,
html.dark .sp-filter-sidebar,
body.dark .sp-filter-sidebar{
    background:rgba(15,23,42,.92) !important;
    border-color:#263247 !important;
    box-shadow:0 15px 40px rgba(0,0,0,.28) !important;
}

html.dark-mode .sp-filter-sidebar .sp-filter-btn,
body.dark-mode .sp-filter-sidebar .sp-filter-btn,
html.dark .sp-filter-sidebar .sp-filter-btn,
body.dark .sp-filter-sidebar .sp-filter-btn{
    background:#111827 !important;
    color:#cbd5e1 !important;
    border-color:#263247 !important;
}

/* MOBILE */
@media(max-width:768px){
    .sp-exam-layout{padding:18px 0 45px !important;}
    .sp-exam-content,
    .has-sidebar .sp-exam-content{padding:20px 14px 100px !important;}
    .sp-page-header{
        min-height:220px !important;
        padding:32px 24px !important;
        border-radius:22px !important;
    }
    .sp-page-title{font-size:32px !important;max-width:70% !important;}
    .sp-page-subtitle{max-width:70% !important;}
    .sp-page-header-logo{right:20px !important;width:78px !important;height:78px !important;}
    .sp-page-header-logo img{width:50px !important;height:50px !important;}
    .sp-folder-card{min-height:145px !important;padding:24px 20px !important;}
}

/* =========================================================
   FINAL HEADER → CONTENT SPACING FIX
   ---------------------------------------------------------
   Removes the large blank area below the Elementor/site
   header while keeping a small, clean gap before the hero.
========================================================= */

.sp-exam-layout{
    margin-top:0 !important;
    padding-top:0 !important;
}

.sp-exam-content{
    padding-top:18px !important;
}

.has-sidebar .sp-exam-content{
    padding-top:18px !important;
}

/* Keep the same clean spacing on mobile */
@media (max-width:768px){

    .sp-exam-layout{
        margin-top:0 !important;
        padding-top:0 !important;
    }

    .sp-exam-content,
    .has-sidebar .sp-exam-content{
        padding-top:14px !important;
    }
}


/* =========================================================
   PBS — FINAL THIN MODERN HERO OVERRIDE
   Keep this block at the VERY END of the stylesheet.
========================================================= */

.sp-page-header{
    position:relative !important;
    isolation:isolate !important;
    overflow:hidden !important;

    min-height:170px !important;
    margin:0 0 22px !important;
    padding:28px 34px !important;

    display:flex !important;
    align-items:center !important;

    border-radius:22px !important;
    border:1px solid rgba(59,130,246,.18) !important;

    background:
        radial-gradient(
            circle at 88% 25%,
            rgba(96,165,250,.28),
            transparent 25%
        ),
        radial-gradient(
            circle at 72% 100%,
            rgba(129,140,248,.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #eef6ff 0%,
            #e3efff 48%,
            #eef2ff 100%
        ) !important;

    box-shadow:
        0 12px 32px rgba(30,64,175,.08) !important;
}

.sp-page-header::before{
    content:"" !important;
    position:absolute !important;

    width:190px !important;
    height:190px !important;

    right:-65px !important;
    top:-105px !important;

    border-radius:50% !important;
    border:1px solid rgba(37,99,235,.10) !important;

    box-shadow:
        0 0 0 25px rgba(37,99,235,.025),
        0 0 0 52px rgba(37,99,235,.018) !important;

    pointer-events:none !important;
    z-index:-1 !important;
}

.sp-page-header::after{
    content:"" !important;
    position:absolute !important;

    width:90px !important;
    height:90px !important;

    right:145px !important;
    bottom:-62px !important;

    border-radius:50% !important;
    border:1px solid rgba(59,130,246,.10) !important;

    pointer-events:none !important;
    z-index:-1 !important;
}

.sp-page-header-left{
    position:relative !important;
    z-index:3 !important;
    max-width:760px !important;
}

.sp-page-title{
    margin:0 !important;
    color:#0f172a !important;

    font-size:clamp(30px,3.5vw,42px) !important;
    line-height:1.05 !important;
    font-weight:900 !important;
    letter-spacing:-1.4px !important;
}

.sp-page-subtitle{
    margin-top:8px !important;

    color:#526581 !important;
    font-size:14px !important;
    line-height:1.5 !important;
}

.sp-page-meta{
    margin-top:10px !important;
    padding:5px 11px !important;

    border-radius:999px !important;

    font-size:12px !important;
    font-weight:700 !important;

    color:#1d4ed8 !important;
    background:rgba(255,255,255,.72) !important;

    border:1px solid rgba(59,130,246,.15) !important;
}

.sp-page-header-logo{
    position:absolute !important;

    right:34px !important;
    top:50% !important;

    transform:translateY(-50%) !important;

    width:88px !important;
    height:88px !important;

    border-radius:50% !important;

    display:grid !important;
    place-items:center !important;

    background:rgba(255,255,255,.72) !important;

    border:1px solid rgba(59,130,246,.14) !important;

    box-shadow:
        0 10px 28px rgba(30,64,175,.10) !important;

    backdrop-filter:blur(8px) !important;

    z-index:4 !important;
}

.sp-page-header-logo img{
    width:62px !important;
    height:62px !important;
    object-fit:contain !important;
}

/* =========================================================
   MOBILE HERO
========================================================= */

@media(max-width:768px){

    .sp-page-header{
        min-height:145px !important;

        padding:24px 20px !important;

        margin-bottom:18px !important;

        border-radius:18px !important;
    }

    .sp-page-title{
        font-size:28px !important;

        max-width:72% !important;

        letter-spacing:-.8px !important;
    }

    .sp-page-subtitle{
        font-size:13px !important;

        max-width:72% !important;

        margin-top:6px !important;
    }

    .sp-page-meta{
        font-size:11px !important;

        margin-top:8px !important;

        padding:4px 9px !important;
    }

    .sp-page-header-logo{
        width:68px !important;
        height:68px !important;

        right:16px !important;
    }

    .sp-page-header-logo img{
        width:48px !important;
        height:48px !important;
    }

    .sp-folder-card,
    .sp-folder-card:hover,
    .sp-folder-card:focus,
    .sp-folder-card:active{
        min-height:135px !important;

        padding:20px !important;

        border-radius:17px !important;
    }
}

/* =========================================================
   DARK MODE HERO
========================================================= */

html.dark-mode .sp-page-header,
body.dark-mode .sp-page-header,
html.dark .sp-page-header,
body.dark .sp-page-header{

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(59,130,246,.24),
            transparent 25%
        ),
        radial-gradient(
            circle at 72% 100%,
            rgba(99,102,241,.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0b1428 0%,
            #101d3c 52%,
            #17295a 100%
        ) !important;

    border-color:
        rgba(148,163,184,.16) !important;

    box-shadow:
        0 16px 40px rgba(0,0,0,.24) !important;
}

html.dark-mode .sp-page-title,
body.dark-mode .sp-page-title,
html.dark .sp-page-title,
body.dark .sp-page-title{
    color:#f8fafc !important;
}

html.dark-mode .sp-page-subtitle,
body.dark-mode .sp-page-subtitle,
html.dark .sp-page-subtitle,
body.dark .sp-page-subtitle{
    color:#b9c5da !important;
}

html.dark-mode .sp-page-meta,
body.dark-mode .sp-page-meta,
html.dark .sp-page-meta,
body.dark .sp-page-meta{
    color:#dbeafe !important;

    background:rgba(255,255,255,.08) !important;

    border-color:
        rgba(255,255,255,.12) !important;
}

html.dark-mode .sp-page-header-logo,
body.dark-mode .sp-page-header-logo,
html.dark .sp-page-header-logo,
body.dark .sp-page-header-logo{
    background:rgba(255,255,255,.07) !important;

    border-color:
        rgba(255,255,255,.14) !important;

    box-shadow:
        0 10px 30px rgba(0,0,0,.22) !important;
}


/* =========================================================
   CONFIG-DRIVEN MODE SWITCH CARD
   Topic Wise / Full Length
========================================================= */

.sp-mode-card{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    gap:7px !important;
    cursor:default !important;
}

.sp-mode-switch{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    margin-top:13px !important;
    width:100% !important;
}

.sp-mode-option{
    min-height:38px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;

    padding:8px 12px !important;

    border-radius:10px !important;

    border:1px solid #dbe3ef !important;

    background:#f8fafc !important;

    color:#334155 !important;

    text-decoration:none !important;

    font-size:12px !important;
    font-weight:800 !important;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

.sp-mode-icon{
    font-size:14px !important;
    line-height:1 !important;
}

html.dark-mode .sp-mode-option,
body.dark-mode .sp-mode-option,
html.dark .sp-mode-option,
body.dark .sp-mode-option{
    background:#182338 !important;
    border-color:#334155 !important;
    color:#cbd5e1 !important;
}

@media(max-width:768px){

    .sp-mode-switch{
        gap:7px !important;
        margin-top:11px !important;
    }

    .sp-mode-option{
        min-height:36px !important;
        padding:7px 8px !important;
        font-size:11px !important;
    }

    .sp-mode-icon{
        font-size:13px !important;
    }
}

/* =========================================================
   PBS CLEAN CATEGORY UI v5
   Category cards: icon -> title -> test count -> subtitle -> CTA
========================================================= */
:root{
  --pbs-bg:#f5f7fb;
  --pbs-text:#101828;
  --pbs-muted:#667085;
  --pbs-border:#e7eaf0;
  --pbs-purple:#6941c6;
}

body:has(.sp-exam-layout){
  background:var(--pbs-bg) !important;
}

.sp-exam-layout{
  width:100% !important;
  max-width:1500px !important;
  margin:0 auto !important;
  padding:0 28px 50px !important;
}

.sp-exam-content,
.has-sidebar .sp-exam-content{
  width:100% !important;
  margin-left:0 !important;
  padding:32px 0 50px !important;
}

.sp-exam-content > *{
  max-width:none !important;
}

/* Hero */
.sp-page-header{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  min-height:280px !important;
  margin:0 0 32px !important;
  padding:48px 52px !important;
  overflow:hidden !important;
  border:1px solid #e8ecf4 !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:0 12px 35px rgba(16,24,40,.06) !important;
}

.sp-page-header::before{
  content:"" !important;
  position:absolute !important;
  width:240px !important;
  height:240px !important;
  right:-70px !important;
  top:-120px !important;
  border-radius:50% !important;
  border:1px solid #e8e4ff !important;
  box-shadow:0 0 0 28px rgba(105,65,198,.025),0 0 0 58px rgba(105,65,198,.018) !important;
}

.sp-page-header::after{
  content:"" !important;
  position:absolute !important;
  width:95px !important;
  height:95px !important;
  right:180px !important;
  bottom:-58px !important;
  border-radius:50% !important;
  border:1px solid #ece9ff !important;
}

.sp-page-header-left{position:relative !important;z-index:2 !important;}

.sp-page-title{
  color:#101828 !important;
  font-size:clamp(34px,4vw,54px) !important;
  font-weight:800 !important;
  letter-spacing:-.035em !important;
  line-height:1.08 !important;
}

.sp-page-subtitle{
  color:#667085 !important;
  font-size:16px !important;
  line-height:1.7 !important;
  margin-top:12px !important;
}

.sp-page-header-logo{
  position:absolute !important;
  right:70px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:145px !important;
  height:145px !important;
  border-radius:50% !important;
  background:#f6f3ff !important;
  border:1px solid #ebe7ff !important;
  box-shadow:none !important;
  z-index:2 !important;
}

.sp-page-header-logo img{width:100px !important;height:100px !important;object-fit:contain !important;}

/* Category grid */
.sp-test-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:24px !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  align-items:stretch !important;
}

.sp-folder-card::before,
.sp-folder-card::after{display:none !important;}

.sp-folder-icon{
  width:92px !important;
  height:92px !important;
  flex:0 0 92px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 auto 20px !important;
  border-radius:50% !important;
  background:#f2edff !important;
  font-size:44px !important;
  line-height:1 !important;
  box-shadow:none !important;
}

.sp-folder-card:nth-child(3n+1) .sp-folder-icon{background:#e8f9ef !important;}
.sp-folder-card:nth-child(3n+2) .sp-folder-icon{background:#f1eaff !important;}
.sp-folder-card:nth-child(3n) .sp-folder-icon{background:#fff1e5 !important;}
.sp-folder-card:nth-child(4n) .sp-folder-icon{background:#ffeaf4 !important;}
.sp-folder-card:nth-child(5n) .sp-folder-icon{background:#e7f8fa !important;}

.sp-folder-title{
  display:block !important;
  margin:0 !important;
  color:#101828 !important;
  font-size:25px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  text-align:center !important;
  letter-spacing:-.02em !important;
}

.sp-folder-count{
  display:block !important;
  margin-top:10px !important;
  color:#6941c6 !important;
  font-size:15px !important;
  font-weight:800 !important;
  text-align:center !important;
}

.sp-folder-card:nth-child(3n+1) .sp-folder-count{color:#16a34a !important;}
.sp-folder-card:nth-child(3n) .sp-folder-count{color:#f97316 !important;}
.sp-folder-card:nth-child(4n) .sp-folder-count{color:#ec4899 !important;}
.sp-folder-card:nth-child(5n) .sp-folder-count{color:#0891b2 !important;}

.sp-folder-subtitle{
  display:block !important;
  margin:12px 0 22px !important;
  color:#667085 !important;
  font-size:15px !important;
  line-height:1.5 !important;
  text-align:center !important;
  min-height:23px !important;
}

.sp-folder-action{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:13px !important;
  min-width:175px !important;
  margin-top:auto !important;
  padding:13px 22px !important;
  border-radius:12px !important;
  background:#6941c6 !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:1 !important;
  box-shadow:none !important;
}

.sp-folder-card:nth-child(3n+1) .sp-folder-action{background:#16a34a !important;}
.sp-folder-card:nth-child(3n) .sp-folder-action{background:#f97316 !important;}
.sp-folder-card:nth-child(4n) .sp-folder-action{background:#ec4899 !important;}
.sp-folder-card:nth-child(5n) .sp-folder-action{background:#0891b2 !important;}

.sp-folder-action span{
  font-size:22px !important;
  line-height:.8 !important;
  font-weight:500 !important;
}

/* Remove the old decorative mini line completely */
.sp-folder-card .sp-folder-title::after,
.sp-folder-card .sp-folder-subtitle::before{display:none !important;content:none !important;}

/* Mode cards stay functional but use the same clean surface */
.sp-mode-card{
  align-items:flex-start !important;
  justify-content:flex-start !important;
}
.sp-mode-card .sp-folder-icon{display:none !important;}
.sp-mode-card .sp-folder-title,
.sp-mode-card .sp-folder-subtitle{text-align:left !important;width:100% !important;}

/* Sidebar pages */
.has-sidebar .sp-filter-sidebar{
  position:fixed !important;
  left:18px !important;
  top:105px !important;
  width:230px !important;
  height:calc(100vh - 125px) !important;
  border:1px solid #e7eaf0 !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 10px 28px rgba(16,24,40,.06) !important;
}
.has-sidebar .sp-exam-content{margin-left:265px !important;width:calc(100% - 265px) !important;}

/* Existing test cards also get the cleaner look */
.sp-test-card{
  border:1px solid #e7eaf0 !important;
  border-radius:20px !important;
  background:#fff !important;
  box-shadow:0 10px 28px rgba(16,24,40,.055) !important;
}

@media(max-width:1050px){
  .sp-test-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .sp-page-header-logo{right:35px !important;}
}

@media(max-width:768px){
  .sp-exam-layout{padding:0 14px 90px !important;}
  .sp-exam-content,.has-sidebar .sp-exam-content{padding:18px 0 100px !important;margin-left:0 !important;width:100% !important;}
  .sp-page-header{min-height:245px !important;padding:32px 24px !important;margin-bottom:22px !important;border-radius:20px !important;}
  .sp-page-title{font-size:32px !important;max-width:72% !important;}
  .sp-page-subtitle{font-size:14px !important;max-width:70% !important;}
  .sp-page-header-logo{right:18px !important;width:86px !important;height:86px !important;}
  .sp-page-header-logo img{width:58px !important;height:58px !important;}
  .sp-test-grid{grid-template-columns:1fr !important;gap:16px !important;}
  a.sp-folder-card{min-height:315px !important;padding:25px 20px 22px !important;}
  .sp-folder-icon{width:82px !important;height:82px !important;flex-basis:82px !important;font-size:38px !important;margin-bottom:17px !important;}
  .sp-folder-title{font-size:23px !important;}
  .sp-folder-subtitle{font-size:14px !important;}
  .has-sidebar .sp-filter-sidebar{display:none !important;}
}

/* =========================================================
   PBS MOCK TESTS — COMPACT CARDS + ILLUSTRATED HERO
   v6.0.0
========================================================= */

.sp-exam-layout{
    max-width:1180px !important;
}

.sp-exam-content{
    width:100%;
}

/* Hero */
.sp-page-header{
    min-height:245px !important;
    margin:0 0 26px !important;
    padding:26px 34px !important;
    border-radius:24px !important;
    border:1px solid #e5e7eb !important;
    background:
        radial-gradient(circle at 88% 20%, rgba(124,58,237,.10), transparent 28%),
        linear-gradient(135deg,#ffffff 0%,#f8faff 58%,#f7f3ff 100%) !important;
    box-shadow:0 14px 40px rgba(15,23,42,.07) !important;
    display:flex !important;
    align-items:center !important;
    gap:24px !important;
}

.sp-page-header-visual{
    flex:0 0 42%;
    height:205px;
    display:flex;
    align-items:center;
    justify-content:center;
    order:1;
}

.sp-page-header-visual img{
    display:block;
    width:min(100%,390px);
    height:205px;
    object-fit:contain;
}

.sp-page-header-left{
    flex:1 1 auto;
    min-width:0;
    order:2;
}

.sp-page-badge{
    display:inline-flex;
    align-items:center;
    padding:7px 12px;
    margin-bottom:10px;
    border-radius:999px;
    background:#ede9fe;
    color:#6d28d9;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
}

.sp-page-title{
    color:#0f172a !important;
    font-size:clamp(31px,4vw,46px) !important;
    line-height:1.04 !important;
    font-weight:850 !important;
    letter-spacing:-.04em;
}

.sp-page-subtitle{
    color:#64748b !important;
    max-width:560px;
    font-size:14px !important;
    line-height:1.65 !important;
    margin-top:11px !important;
}

.sp-page-header-points{
    display:flex;
    flex-wrap:wrap;
    gap:8px 16px;
    margin-top:14px;
    color:#475569;
    font-size:11px;
    font-weight:700;
}

.sp-page-header-points span::first-letter{
    color:#16a34a;
}

/* Compact exam cards */
#spTestGrid{
    width:100%;
    max-width:1040px;
    margin:0 auto !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:18px !important;
    align-items:stretch;
}

.sp-folder-card{
    min-height:205px !important;
    padding:18px 16px 16px !important;
    border-radius:18px !important;
    border:1px solid #e2e8f0 !important;
    background:#fff !important;
    box-shadow:0 7px 22px rgba(15,23,42,.055) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    text-align:center !important;
    justify-content:flex-start !important;
}

.sp-folder-card::after{
    display:none !important;
}

.sp-folder-icon{
    width:56px !important;
    height:56px !important;
    min-width:56px;
    display:grid !important;
    place-items:center !important;
    margin:0 0 10px !important;
    border-radius:50% !important;
    background:#f1f5f9 !important;
    font-size:30px !important;
    line-height:1 !important;
}

.sp-folder-title{
    font-size:18px !important;
    line-height:1.2 !important;
    font-weight:850 !important;
    color:#0f172a !important;
    margin:0 !important;
}

.sp-folder-count{
    margin-top:7px !important;
    font-size:12px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
    color:#2563eb !important;
}

.sp-folder-subtitle{
    margin-top:9px !important;
    font-size:12px !important;
    line-height:1.35 !important;
    color:#64748b !important;
    white-space:normal !important;
}

.sp-folder-action{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    margin-top:auto !important;
    min-width:128px !important;
    padding:9px 14px !important;
    border-radius:9px !important;
    background:#4f46e5 !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:800 !important;
    box-shadow:0 6px 14px rgba(79,70,229,.18) !important;
}

.sp-folder-action span{
    font-size:16px !important;
    line-height:1 !important;
}

/* Individual accents without changing the data */
.sp-folder-card:nth-child(1){border-top:3px solid #6366f1 !important;}
.sp-folder-card:nth-child(2){border-top:3px solid #f97316 !important;}
.sp-folder-card:nth-child(3){border-top:3px solid #ec4899 !important;}
.sp-folder-card:nth-child(4){border-top:3px solid #06b6d4 !important;}
.sp-folder-card:nth-child(5){border-top:3px solid #f59e0b !important;}
.sp-folder-card:nth-child(1) .sp-folder-action{background:#5b3fc5 !important;}
.sp-folder-card:nth-child(2) .sp-folder-action{background:#f97316 !important;}
.sp-folder-card:nth-child(3) .sp-folder-action{background:#ec4899 !important;}
.sp-folder-card:nth-child(4) .sp-folder-action{background:#0891b2 !important;}
.sp-folder-card:nth-child(5) .sp-folder-action{background:#f97316 !important;}

/* Mobile */
@media (max-width:900px){
    .sp-page-header{
        min-height:225px !important;
        padding:22px 24px !important;
    }

    .sp-page-header-visual{
        flex-basis:38%;
        height:180px;
    }

    .sp-page-header-visual img{
        height:180px;
    }

    #spTestGrid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        max-width:720px;
    }
}

@media (max-width:768px){
    .sp-exam-content,
    .has-sidebar .sp-exam-content{
        padding:18px 16px calc(var(--sp-mobile-footer-height) + 20px + env(safe-area-inset-bottom)) !important;
    }

    .sp-page-header{
        min-height:unset !important;
        padding:18px !important;
        margin-bottom:18px !important;
        border-radius:20px !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:4px !important;
    }

    .sp-page-header-visual{
        order:1;
        width:100%;
        height:150px;
        flex:none;
    }

    .sp-page-header-visual img{
        width:100%;
        height:150px;
    }

    .sp-page-header-left{
        order:2;
        text-align:left;
    }

    .sp-page-badge{
        font-size:9px;
        padding:6px 10px;
        margin-bottom:8px;
    }

    .sp-page-title{
        font-size:30px !important;
    }

    .sp-page-subtitle{
        max-width:none;
        font-size:12px !important;
        line-height:1.55 !important;
    }

    .sp-page-header-points{
        gap:7px 12px;
        font-size:10px;
    }

    #spTestGrid{
        grid-template-columns:1fr !important;
        gap:12px !important;
        width:100%;
    }

    .sp-folder-card{
        min-height:175px !important;
        padding:15px 14px !important;
        border-radius:16px !important;
    }

    .sp-folder-icon{
        width:50px !important;
        height:50px !important;
        min-width:50px;
        font-size:27px !important;
        margin-bottom:8px !important;
    }

    .sp-folder-title{
        font-size:17px !important;
    }

    .sp-folder-count{
        margin-top:6px !important;
        font-size:11px !important;
    }

    .sp-folder-subtitle{
        font-size:11px !important;
        margin-top:7px !important;
    }

    .sp-folder-action{
        min-width:122px !important;
        padding:8px 13px !important;
        font-size:10px !important;
    }
}

@media (max-width:390px){
    .sp-page-header{
        padding:15px !important;
    }
    .sp-page-header-visual,
    .sp-page-header-visual img{
        height:125px;
    }
    .sp-page-title{
        font-size:26px !important;
    }
    .sp-page-header-points span:nth-child(3){
        display:none;
    }
}

/* =========================================================
   PBS MOCK TESTS — BALANCED UI PASS v6.1
   Final overrides: spacing, alignment, hover/focus states.
========================================================= */
:root{
  --pbs-bg:#f6f8fc;
  --pbs-surface:#ffffff;
  --pbs-text:#0f172a;
  --pbs-muted:#64748b;
  --pbs-border:#e5e7eb;
  --pbs-shadow:0 8px 24px rgba(15,23,42,.055);
  --pbs-shadow-hover:0 18px 42px rgba(15,23,42,.105);
  --pbs-ease:cubic-bezier(.2,.75,.25,1);
}

.sp-exam-layout{
  max-width:1180px !important;
  margin:0 auto !important;
  padding-left:18px !important;
  padding-right:18px !important;
  background:var(--pbs-bg) !important;
}

.sp-exam-content,
.has-sidebar .sp-exam-content{
  background:transparent !important;
}

/* Balanced hero */
.sp-page-header{
  min-height:260px !important;
  margin:28px 0 24px !important;
  padding:28px 36px !important;
  border:1px solid #e6e9f0 !important;
  border-radius:24px !important;
  background:
    radial-gradient(circle at 88% 8%,rgba(124,58,237,.13),transparent 30%),
    linear-gradient(135deg,#fff 0%,#f9fbff 58%,#f7f2ff 100%) !important;
  box-shadow:0 12px 34px rgba(15,23,42,.065) !important;
  overflow:hidden !important;
  gap:34px !important;
}

.sp-page-header-visual{
  flex:0 0 42% !important;
  max-width:430px !important;
  height:205px !important;
}

.sp-page-header-visual img{
  width:100% !important;
  max-width:400px !important;
  height:205px !important;
  object-fit:contain !important;
  transition:transform .35s var(--pbs-ease) !important;
}

.sp-page-header-left{
  flex:1 1 0 !important;
  min-width:0 !important;
}

.sp-page-badge{
  margin-bottom:11px !important;
  padding:7px 12px !important;
  font-size:10px !important;
  letter-spacing:.08em !important;
  background:#eee9ff !important;
  color:#6d28d9 !important;
}

.sp-page-title{
  max-width:620px !important;
  font-size:clamp(34px,4vw,48px) !important;
  line-height:1.06 !important;
  letter-spacing:-.042em !important;
  color:#0b1730 !important;
}

.sp-page-subtitle{
  max-width:610px !important;
  margin-top:12px !important;
  font-size:14px !important;
  line-height:1.65 !important;
  color:#64748b !important;
}

.sp-page-header-points{
  margin-top:15px !important;
  gap:8px 18px !important;
  font-size:11px !important;
}

.sp-page-header-points span{
  transition:transform .2s ease,color .2s ease !important;
}

/* Root/category grid */
#spTestGrid{
  width:100% !important;
  max-width:1040px !important;
  margin:0 auto !important;
  padding:0 0 34px !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:20px !important;
  align-items:stretch !important;
}

/* Category cards */
a.sp-folder-card,
a.sp-folder-card:visited{
  position:relative !important;
  min-width:0 !important;
  min-height:222px !important;
  padding:20px 18px 17px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:center !important;
  overflow:hidden !important;
  border:1px solid #e3e8f0 !important;
  border-top:3px solid #6366f1 !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%) !important;
  color:var(--pbs-text) !important;
  text-decoration:none !important;
  box-shadow:var(--pbs-shadow) !important;
  transform:translateY(0) !important;
  transition:
    transform .24s var(--pbs-ease),
    box-shadow .24s var(--pbs-ease),
    border-color .24s ease,
    background .24s ease !important;
  will-change:transform,box-shadow !important;
}

a.sp-folder-card::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(135deg,rgba(99,102,241,.055),transparent 46%) !important;
  opacity:0 !important;
  transition:opacity .24s ease !important;
  pointer-events:none !important;
}

a.sp-folder-card:focus-visible{
  outline:none !important;
  transform:translateY(-3px) !important;
  border-color:#818cf8 !important;
  box-shadow:0 0 0 4px rgba(99,102,241,.13),var(--pbs-shadow-hover) !important;
}

a.sp-folder-card:active{
  transform:translateY(-1px) scale(.992) !important;
}

/* Accent rails */
a.sp-folder-card:nth-child(1){border-top-color:#ff7a00 !important;}
a.sp-folder-card:nth-child(2){border-top-color:#ec4899 !important;}
a.sp-folder-card:nth-child(3){border-top-color:#06a6c7 !important;}
a.sp-folder-card:nth-child(4){border-top-color:#2563eb !important;}
a.sp-folder-card:nth-child(5){border-top-color:#22c55e !important;}

.sp-folder-icon{
  position:relative !important;
  z-index:1 !important;
  width:58px !important;
  height:58px !important;
  min-width:58px !important;
  margin:0 0 11px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  font-size:29px !important;
  background:#f1f5f9 !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8) !important;
  transition:transform .24s var(--pbs-ease),box-shadow .24s ease !important;
}

.sp-folder-card:nth-child(1) .sp-folder-icon{background:#f1e9ff !important;}
.sp-folder-card:nth-child(2) .sp-folder-icon{background:#fff0e4 !important;}
.sp-folder-card:nth-child(3) .sp-folder-icon{background:#ffeaf4 !important;}
.sp-folder-card:nth-child(4) .sp-folder-icon{background:#e9f0ff !important;}
.sp-folder-card:nth-child(5) .sp-folder-icon{background:#e9fbf1 !important;}

.sp-folder-title{
  position:relative !important;
  z-index:1 !important;
  font-size:18px !important;
  line-height:1.2 !important;
  font-weight:850 !important;
  letter-spacing:-.018em !important;
  color:#0f172a !important;
}

.sp-folder-count{
  position:relative !important;
  z-index:1 !important;
  margin-top:7px !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
}

.sp-folder-subtitle{
  position:relative !important;
  z-index:1 !important;
  min-height:32px !important;
  margin-top:8px !important;
  max-width:250px !important;
  font-size:12px !important;
  line-height:1.4 !important;
  color:#64748b !important;
}

.sp-folder-action{
  position:relative !important;
  z-index:1 !important;
  min-width:126px !important;
  margin-top:auto !important;
  padding:9px 14px !important;
  border-radius:9px !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.005em !important;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease !important;
}

.sp-folder-action span{
  transition:transform .2s ease !important;
}

/* Empty state */
.sp-empty-message{
  grid-column:1/-1 !important;
  margin:4px 0 20px !important;
  padding:28px !important;
  border:1px dashed #cbd5e1 !important;
  border-radius:16px !important;
  background:#fff !important;
  color:#64748b !important;
  text-align:center !important;
}

/* Sidebar: cleaner and less visually heavy */
.has-sidebar .sp-filter-sidebar{
  top:88px !important;
  left:18px !important;
  width:224px !important;
  height:calc(100vh - 108px) !important;
  padding:12px !important;
  gap:7px !important;
  border:1px solid #e4e8ef !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.96) !important;
  box-shadow:0 12px 30px rgba(15,23,42,.07) !important;
  backdrop-filter:blur(10px) !important;
}

.has-sidebar .sp-exam-content{
  margin-left:252px !important;
  width:calc(100% - 252px) !important;
}

.sp-filter-sidebar .sp-filter-btn{
  padding:11px 13px !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  font-size:13px !important;
  color:#475569 !important;
  background:transparent !important;
}

.sp-filter-sidebar .sp-filter-btn.active{
  color:#3730a3 !important;
  background:#eef2ff !important;
  border-color:#c7d2fe !important;
  box-shadow:none !important;
}

.sp-filter-sidebar hr{
  width:100% !important;
  margin:4px 0 !important;
  border:0 !important;
  border-top:1px solid #eef1f5 !important;
}

/* Existing test cards */
.sp-test-card{
  border:1px solid #e3e8f0 !important;
  border-radius:18px !important;
  box-shadow:var(--pbs-shadow) !important;
  transition:transform .24s var(--pbs-ease),box-shadow .24s var(--pbs-ease),border-color .24s ease !important;
}

@media (max-width:1050px){
  #spTestGrid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .sp-page-header{gap:24px !important;}
}

@media (max-width:768px){
  .sp-exam-layout{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .sp-exam-content,
  .has-sidebar .sp-exam-content{
    margin-left:0 !important;
    width:100% !important;
    padding-left:4px !important;
    padding-right:4px !important;
  }

  .sp-page-header{
    margin:14px 0 18px !important;
    padding:18px !important;
    border-radius:20px !important;
  }

  .sp-page-header-visual,
  .sp-page-header-visual img{
    height:138px !important;
  }

  .sp-page-title{font-size:30px !important;}
  .sp-page-subtitle{font-size:12px !important;}

  #spTestGrid{
    grid-template-columns:1fr !important;
    gap:13px !important;
    padding-bottom:24px !important;
  }

  a.sp-folder-card{
    min-height:182px !important;
    padding:16px 14px 14px !important;
    border-radius:16px !important;
  }

  .sp-folder-icon{
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    font-size:27px !important;
    margin-bottom:8px !important;
  }

  .sp-folder-title{font-size:17px !important;}
  .sp-folder-count{font-size:11px !important;}
  .sp-folder-subtitle{font-size:11px !important;min-height:28px !important;}
  .sp-folder-action{min-width:120px !important;padding:8px 12px !important;font-size:10px !important;}

  .has-sidebar .sp-filter-sidebar{display:none !important;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}

/* =========================================================
   FINAL UX POLISH v6.3
   - Perfect circular emoji/icon holder
   - No lift/animation on cards
   - Only the Start Tests button gets hover motion
   - Cards get only a very subtle visual change on hover
========================================================= */

/* Keep the emoji holder perfectly circular even inside flex layouts */
a.sp-folder-card .sp-folder-icon,
.sp-folder-card .sp-folder-icon{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    max-width:58px !important;
    min-height:58px !important;
    max-height:58px !important;
    flex:0 0 58px !important;
    aspect-ratio:1 / 1 !important;
    border-radius:50% !important;
    box-sizing:border-box !important;
    display:grid !important;
    place-items:center !important;
    align-self:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
    transform:none !important;
    transition:none !important;
}

/* Only the actual Start Tests button reacts to hover */
a.sp-folder-card .sp-folder-action{
    cursor:pointer !important;
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

/* Keyboard users get the same button treatment without moving the card */
a.sp-folder-card .sp-folder-action:focus-visible{
    outline:3px solid rgba(59,130,246,.22) !important;
    outline-offset:3px !important;
}

@media (max-width:600px){
    a.sp-folder-card .sp-folder-icon,
    .sp-folder-card .sp-folder-icon{
        width:58px !important;
        height:58px !important;
        min-width:58px !important;
        max-width:58px !important;
        min-height:58px !important;
        max-height:58px !important;
        flex-basis:58px !important;
    }
}

/* =========================================================
   STANDARD CARD HOVER v6.3
   - No card movement
   - No shadow jump
   - Very subtle border/background change only
   - Button keeps its own hover effect
========================================================= */
.sp-folder-card,
.sp-test-card{
    transform:none !important;
    transition:background-color .15s ease, border-color .15s ease !important;
}

/* =========================================================
   HOVER EFFECT OFF v6.4
   Keep the UI static on mouse hover.
========================================================= */
.sp-folder-card,
.sp-test-card,
.sp-folder-card .sp-folder-action{
    transition:none !important;
}

/* Preserve keyboard accessibility without hover animation */
.sp-folder-card .sp-folder-action:focus-visible{
    outline:3px solid rgba(59,130,246,.22) !important;
    outline-offset:3px !important;
}
