@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

 :root{
  --navy:#17312d;
  --navy-2:#22473f;
  --green:#4f7d70;
  --green-2:#3c665b;
  --gold:#c6a76a;
  --gold-2:#e6d5aa;
  --bg:#f4f7f5;
  --card:#fff;
  --text:#25332f;
  --muted:#6c7772;
  --border:#dfe7e2;
  --danger:#b4233d;
  --success:#4f7d70;
  --head:'Poppins',sans-serif;
  --body:'Inter',system-ui,sans-serif;
  --font-head:var(--head);
  --font-body:var(--body);
  --shadow:0 12px 35px rgba(23,49,45,.08);
  --shadow-lg:0 22px 60px rgba(23,49,45,.14);
  --radius:18px;
  --radius-sm:11px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(180deg,#f8faf9 0%,var(--bg) 100%);color:var(--text);font-family:var(--body);line-height:1.65;-webkit-font-smoothing:antialiased}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 90% 5%,rgba(198,167,106,.08),transparent 25%),radial-gradient(circle at 5% 20%,rgba(79,125,112,.05),transparent 28%);z-index:-1}
.container{width:min(1160px,calc(100% - 32px));margin:auto}
a{color:var(--green);text-decoration:none;transition:.2s}
a:hover{color:var(--green-2)}
h1,h2,h3,h4{font-family:var(--head);color:var(--navy);line-height:1.2;margin:0 0 12px}
h1{font-size:clamp(2rem,4vw,3.1rem);letter-spacing:-.035em}
h2{font-size:clamp(1.6rem,3vw,2.25rem)}
h3{font-size:1.2rem}
p{margin:0 0 14px}
.muted{color:var(--muted)}
::selection{background:var(--gold-2);color:var(--navy)}
img{max-width:100%;height:auto;display:block}

/* Public header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(11,31,58,.98);backdrop-filter:blur(14px);box-shadow:0 5px 24px rgba(0,0,0,.12);border-bottom:1px solid rgba(198,167,106,.20)}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-family:var(--head);font-weight:700;font-size:1.1rem}
.brand:hover{color:#fff}
.brand-copy{line-height:1.1}
.brand small{display:block;color:#e6d5aa;font:700 .53rem var(--body);letter-spacing:.13em;margin-top:5px}
.brand-badge{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,var(--gold),#9d814e);color:var(--navy);box-shadow:0 5px 16px rgba(198,167,106,.25);flex:none}
.brand-badge svg{width:23px;height:23px}
.site-nav{display:flex;align-items:center;gap:3px}
.site-nav a{color:#eef3f7;padding:10px 12px;border-radius:9px;font-size:.92rem;font-weight:700;white-space:nowrap}
.site-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.btn-nav{background:var(--gold)!important;color:var(--navy)!important;padding-inline:18px!important}
.nav-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);font-size:.78rem;font-weight:800}
.nav-toggle{display:none}
.nav-burger{display:none}

/* Layout */
main{min-height:70vh}
.hero{padding:72px 0 50px}
.grid-2,.grid-3{display:grid;gap:22px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:rgba(255,255,255,.96);border:1px solid var(--border);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow)}
.card-hover{transition:transform .2s,box-shadow .2s,border-color .2s}
.card-hover:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:rgba(212,175,55,.45)}
.section-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--green);font-size:.74rem;font-weight:800;letter-spacing:.14em;margin-bottom:10px;text-transform:uppercase}
.section-kicker:before{content:"";width:25px;height:2px;background:var(--gold);border-radius:5px}
.num{font-family:var(--head);font-weight:800}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 17px;border:1px solid transparent;border-radius:11px;font-weight:800;font-size:.92rem;cursor:pointer;transition:.2s;box-shadow:0 4px 12px rgba(23,49,45,.06);font-family:inherit}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,#5f8f80,var(--green-2));color:#fff}
.btn-primary:hover{color:#fff;box-shadow:0 8px 20px rgba(79,125,112,.22)}
.btn-outline{background:#fff;border-color:var(--border);color:var(--navy)}
.btn-outline:hover{border-color:var(--gold);color:var(--green)}
.btn-gold{background:linear-gradient(135deg,#f1d05a,#c6a76a);color:var(--navy)}
.btn-gold:hover{color:var(--navy);box-shadow:0 8px 20px rgba(198,167,106,.25)}
.btn-danger{background:#fff0f2;border-color:#f2c4cc;color:#a01d35}
.btn-danger:hover{background:#ffe3e8;color:#8b1730}
.btn-block{width:100%}
.btn-sm{min-height:36px;padding:7px 12px;font-size:.82rem}

/* Forms */
.field{margin-bottom:18px}
.field label{display:block;font-size:.85rem;font-weight:800;color:var(--navy);margin-bottom:7px}
input,select,textarea{width:100%;border:1px solid #d7e0da;background:#fff;border-radius:11px;padding:12px 13px;font:inherit;color:var(--text);outline:none;transition:.2s}
input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(79,125,112,.09)}
textarea{min-height:120px;resize:vertical}
input[type="checkbox"]{width:auto;accent-color:var(--green)}

/* Alerts / badges */
.flash{margin:18px 0;padding:12px 15px;border-radius:11px;border:1px solid transparent;font-size:.9rem}
.flash-error{background:#fff0f2;border-color:#f2c4cc;color:#8e1c30}
.flash-success{background:#eaf7ef;border-color:#bfe2ca;color:#145b38}
.flash-warning{background:#fff8e6;border-color:#edd99b;color:#795d10}
.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:800}
.badge-green{background:#e8f5ed;color:var(--green)}
.badge-gold{background:#fff7db;color:#806316}
.badge-red{background:#fff0f2;color:#a01d35}

/* Tables */
.table-wrap{width:100%;overflow-x:auto}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--border);font-size:.9rem;vertical-align:middle}
th{color:var(--navy);font-weight:800;background:#f7faf8}
tr:last-child td{border-bottom:0}
.empty-cell{text-align:center;color:var(--muted);padding:30px!important}
.table-subtext{display:block;color:var(--muted);font-size:.75rem;margin-top:2px}

/* Pricing */
.pricing-hero{text-align:center;padding:18px 0 42px;max-width:900px;margin:0 auto}
.pricing-hero h1{font-size:clamp(1.8rem,3.2vw,2.3rem);margin-bottom:25px}
.pricing-hero p{font-size:1.02rem;color:#66736d;line-height:1.7}
.pricing-grid{padding-bottom:10px}
.service-logo-wrap{min-height:130px;display:flex;align-items:center;justify-content:center}
.service-card{padding:34px 34px 28px;text-align:center;display:flex;flex-direction:column;min-height:560px}
.service-card h3{font-size:1.2rem;margin-top:18px}
.service-card .muted{min-height:58px}
.service-logo-img{width:112px;height:112px;display:grid;place-items:center;margin:0 auto;border-radius:50%;background:linear-gradient(145deg,#fff,#f5f8f6);color:var(--navy);border:1px solid #edf1ee;box-shadow:0 14px 30px rgba(23,49,45,.08)}
.service-logo-img svg{width:65px;height:65px}
.service-card .service-price{font-size:2rem;font-weight:800;color:var(--navy);font-family:var(--head);margin:12px 0 18px}
.service-card .service-actions{margin-top:auto;display:grid;gap:9px}

/* Auth / login */
.auth-page{min-height:calc(100vh - 145px);display:flex;align-items:flex-start;justify-content:center;padding:38px 16px 70px}
.auth-card{width:min(100%,550px);padding:44px 40px 38px;text-align:left;border-radius:18px;box-shadow:0 18px 50px rgba(23,49,45,.10)}
.auth-card h1{text-align:center;font-size:1.9rem;margin-bottom:9px}
.auth-icon{width:70px;height:70px;border-radius:17px;background:var(--navy);color:#e6d5aa;display:grid;place-items:center;margin:0 auto 27px;box-shadow:0 10px 22px rgba(23,49,45,.14)}
.auth-icon svg{width:34px;height:34px}
.auth-subtitle{text-align:center;color:#66736d;margin:0 0 30px;font-size:1rem}
.auth-form .field{margin-bottom:24px}

.auth-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 23px;font-size:.92rem}
.remember-label{display:flex;align-items:center;gap:8px;color:var(--navy);font-weight:600}
.remember-label input{margin:0}
.auth-options a{color:#6d7872}
.auth-options a:hover{color:var(--green)}
.auth-submit{min-height:55px;font-size:1rem;border-radius:12px;box-shadow:0 10px 24px rgba(79,125,112,.18)}
.auth-register{text-align:center;margin:20px 0 0;color:var(--muted)}
.auth-register a{font-weight:700;color:var(--green)}
.auth-card-compact{max-width:520px}

/* Footer */
.site-footer{margin-top:60px;background:var(--navy);color:#9daebe;padding:48px 0 24px}
.site-footer a{color:#dce5ec}
.site-footer a:hover{color:#e6d5aa}
.footer-grid{display:grid;grid-template-columns:1.65fr 1fr 1fr 1.25fr;gap:42px}
.footer-brand{max-width:330px}
.footer-logo-row{display:flex;align-items:center;gap:12px;color:#f3f6f8;font-family:var(--head);font-size:1.2rem;margin-bottom:16px}
.footer-logo{width:46px;height:46px;border-radius:12px;background:linear-gradient(145deg,#f0d05a,#c6a76a);color:var(--navy);display:grid;place-items:center;box-shadow:0 8px 20px rgba(198,167,106,.18)}
.footer-logo svg{width:25px;height:25px}
.footer-brand p{color:#9daebe;line-height:1.7}
.footer-column h4{color:#fff;font-size:.9rem;letter-spacing:.04em;margin:5px 0 20px}
.footer-column>a{display:block;margin-bottom:11px;color:#cbd6df}
.footer-contact>a{margin-bottom:14px}
.newsletter-title{margin-top:23px!important;margin-bottom:10px!important}
.footer-social{display:flex;gap:12px;margin-top:22px}
.footer-social a{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.07);color:#cbd6df}
.footer-social a:hover{background:rgba(198,167,106,.18);color:#e6d5aa}
.footer-social svg{width:18px;height:18px}
.newsletter-form{display:flex;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);border-radius:11px;overflow:hidden}
.newsletter-form input{border:0;border-radius:0;background:transparent;color:#fff;min-width:0}
.newsletter-form input::placeholder{color:#8d9cab}
.newsletter-form input:focus{box-shadow:none}
.newsletter-form .btn{border-radius:0;border:0;min-height:52px}
.footer-bottom{margin-top:30px;padding-top:24px;border-top:1px solid rgba(255,255,255,.10);display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:.86rem;color:#9daebe}
.footer-bottom-links{display:flex;gap:24px}

/* Utilities */
hr{border:0;border-top:1px solid var(--border);margin:22px 0}
.text-center{text-align:center}.w-100{width:100%}
.empty-state{text-align:center;padding:45px 20px;color:var(--muted)}
.progress{height:9px;background:#e7ede9;border-radius:999px;overflow:hidden}
.progress>span,.progress-fill{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--gold));border-radius:inherit}

/* Existing dashboard / exam components */
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.stat-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.stat-card .num{font-size:1.8rem;color:var(--navy)}
.stat-card .label{font-size:.82rem;color:var(--muted);font-weight:600}
.exam-shell{max-width:920px;margin:35px auto}
.question-card{padding:28px}
.option{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--border);border-radius:12px;margin:10px 0;background:#fff;cursor:pointer}
.option:hover{border-color:var(--gold);background:#fffdf6}
.option input{width:auto;margin-top:5px}
.exam-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}
.exam-toolbar,.exam-top{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.timer{font-weight:800;color:var(--navy)}
.qnav{display:flex;gap:6px;flex-wrap:wrap}
.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:#eef4f0;color:var(--green);font-size:.76rem;font-weight:800}
.score-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:110px;height:110px;background:#fff;border:8px solid #e8f1eb;font-family:var(--head);font-weight:800;font-size:1.5rem;color:var(--navy)}
.review-item{padding:14px;border:1px solid var(--border);border-radius:12px;margin:10px 0;background:#fff}

/* Admin */
.admin-body{background:#f3f6f4}
.admin-header{background:var(--navy);color:#fff;box-shadow:0 4px 18px rgba(23,49,45,.14);position:sticky;top:0;z-index:100}
.admin-header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.admin-brand{display:flex;align-items:center;gap:10px;color:#fff;font-family:var(--head);font-weight:800;font-size:1.1rem}
.admin-brand:hover{color:#fff}
.admin-brand small{display:block;color:#e6d5aa;font:700 .52rem var(--body);letter-spacing:.14em;margin-top:3px}
.admin-user{display:flex;align-items:center;gap:12px}
.admin-user-name{font-size:.85rem;color:#d8e1e8}
.admin-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:25px;align-items:start;padding-top:25px;padding-bottom:50px}
.admin-sidebar{position:sticky;top:96px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px;box-shadow:var(--shadow)}
.admin-sidebar-title{font-size:.66rem;font-weight:800;letter-spacing:.12em;color:#93a097;padding:8px 10px 12px}
.admin-sidebar nav{display:grid;gap:5px}
.admin-sidebar a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;color:#4e5b54;font-weight:700;font-size:.88rem}
.admin-sidebar a svg{width:18px;height:18px;color:#7c8982;flex:none}
.admin-sidebar a:hover{background:#f0f5f2;color:var(--green)}
.admin-sidebar a.active{background:#eaf5ee;color:var(--green)}
.admin-sidebar a.active svg{color:var(--green)}
.admin-main{min-width:0}
.admin-nav-toggle,.admin-nav-burger{display:none}
.admin-page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:4px 0 24px}
.admin-page-heading h1{margin-bottom:5px}
.heading-count{font-size:.9rem;vertical-align:middle;padding:5px 10px;border-radius:999px;background:#e8f2ec;color:var(--green);letter-spacing:0}
.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.admin-stat-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:19px;box-shadow:var(--shadow)}
.admin-stat-icon{width:45px;height:45px;border-radius:12px;display:grid;place-items:center;background:#eef6f1;color:var(--green);flex:none}
.admin-stat-icon svg{width:22px;height:22px}
.admin-stat-card .num{font-size:1.5rem;color:var(--navy)}
.admin-stat-card .label{font-size:.76rem;color:var(--muted);font-weight:700}
.admin-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.admin-table-card{padding:20px}
.card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.card-heading h3{margin-bottom:3px}
.card-heading p{font-size:.78rem}
.admin-actions-card{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.admin-actions{display:flex;flex-wrap:wrap;gap:9px}
.admin-filter-bar{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(250px,1.5fr) auto;align-items:end;gap:12px;margin-bottom:18px;padding:17px}
.filter-field{margin:0}
.filter-field label{display:block;font-size:.74rem;font-weight:800;color:var(--navy);margin:0 0 5px}
.filter-search{min-width:0}
.filter-button{height:45px}
.sms-filter-bar{grid-template-columns:minmax(130px,.7fr) minmax(180px,1fr) minmax(220px,1.5fr) minmax(140px,.8fr) minmax(140px,.8fr) auto auto}
.sms-log-table th,.sms-log-table td{vertical-align:top}
.sms-message-cell{min-width:280px;max-width:430px;white-space:normal}
.sms-response-cell{min-width:190px;max-width:280px;white-space:normal}
.sms-message-cell div,.sms-response-cell div{overflow-wrap:anywhere}
.sms-log-info-card{margin-top:18px}
.filter-button-wrap{min-width:0}
.actions-cell{white-space:nowrap}
.question-preview{max-width:420px}
.pagination{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}
.admin-form-card{max-width:900px}
.form-section-title{font-family:var(--head);font-weight:800;color:var(--navy);padding-bottom:10px;margin:4px 0 18px;border-bottom:1px solid var(--border)}
.check-row{display:flex;align-items:center;gap:8px;font-weight:600;color:#425149}
.check-row input{margin:0}
.form-actions{display:flex;gap:9px;margin-top:22px}
.import-card{max-width:900px}
.upload-panel{border:1.5px dashed #cbd8d0;border-radius:15px;padding:34px;text-align:center;background:#fbfcfb}
.upload-panel h3{margin-top:12px}
.upload-panel .muted{max-width:650px;margin:0 auto 22px}
.upload-icon{width:58px;height:58px;margin:0 auto;border-radius:16px;background:#eaf5ee;color:var(--green);display:grid;place-items:center}
.upload-icon svg{width:28px;height:28px}
.status-pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:999px;font-size:.7rem;font-weight:800}
.status-success{background:#e7f5ec;color:#167044}
.status-sent{background:#e7f5ec;color:#167044}
.status-pending{background:#fff6dc;color:#7a6112}
.status-failed{background:#ffedf0;color:#a11e37}
.status-muted{background:#eef1ef;color:#6c7771}
.no-print{display:inline-flex}

/* Responsive */
@media(max-width:1180px){
  .sms-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1020px){
  .site-nav a{padding-inline:8px}
  .footer-grid{grid-template-columns:1.5fr 1fr 1fr}
  .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .grid-3{grid-template-columns:1fr 1fr}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .admin-layout{grid-template-columns:1fr}
  .admin-sidebar{position:static}
  .admin-sidebar nav{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:720px){
  .container{width:min(100% - 24px,1160px)}
  .grid-2,.grid-3,.footer-grid{grid-template-columns:1fr}
  .hero{padding:45px 0 30px}
  .header-inner{min-height:66px}
  .nav-burger{display:flex;width:42px;height:42px;flex-direction:column;justify-content:center;gap:5px;align-items:center;cursor:pointer}
  .nav-burger span{width:32px;height:4px;background:#fff;border-radius:3px}
  .site-nav{display:none;position:absolute;left:12px;right:12px;top:66px;background:var(--navy);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:10px;box-shadow:var(--shadow-lg);flex-direction:column;align-items:stretch}
  .site-nav a{display:block;padding:12px}
  .nav-toggle:checked~.site-nav{display:flex}
  .nav-avatar{display:none}
  .brand small{display:none}
  .brand-badge{width:39px;height:39px}
  .card{padding:20px}
  .auth-card{padding:32px 22px 28px}
  .auth-icon{width:62px;height:62px;margin-bottom:22px}
  .auth-card h1{font-size:1.65rem}
  .auth-subtitle{font-size:.92rem;margin-bottom:24px}
  .auth-options{font-size:.84rem}
  .service-card{min-height:0;padding:28px 22px}
  .service-card .muted{min-height:0}
  .service-logo-img{width:92px;height:92px}
  .service-logo-img svg{width:52px;height:52px}
  .footer-grid{gap:30px}
  .footer-brand{max-width:none}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .footer-bottom-links{gap:15px;flex-wrap:wrap}
  .newsletter-form input{min-width:0}
  .stat-grid{grid-template-columns:1fr}
  .exam-actions{flex-direction:column;align-items:stretch}
  .admin-header-inner{min-height:64px}
  .admin-user-name{display:none}
  .admin-layout{padding-top:12px}
  .admin-nav-toggle{display:none}
  .admin-nav-burger{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 13px;font-weight:800;color:var(--navy);cursor:pointer;box-shadow:var(--shadow)}
  .admin-nav-burger span{font-size:.84rem}
  .admin-sidebar{display:none}
  .admin-nav-toggle:checked~.admin-sidebar{display:block}
  .admin-sidebar nav{grid-template-columns:1fr}
  .admin-page-heading{align-items:flex-start;flex-direction:column}
  .admin-page-heading>.btn{width:100%}
  .admin-stat-grid{grid-template-columns:1fr}
  .admin-content-grid{grid-template-columns:1fr}
  .admin-actions-card{flex-direction:column;align-items:flex-start}
  .admin-actions .btn{flex:1}
  .admin-filter-bar{grid-template-columns:1fr}
  .filter-button{width:100%}
  .admin-table-card{padding:14px}
  .responsive-table thead{display:none}
  .responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;width:100%}
  .responsive-table tr{border:1px solid var(--border);border-radius:12px;margin-bottom:10px;padding:8px;background:#fff}
  .responsive-table tr:last-child{border-bottom:1px solid var(--border)}
  .responsive-table td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;padding:9px 6px;border-bottom:1px solid #eef1ef;white-space:normal}
  .responsive-table td:last-child{border-bottom:0}
  .responsive-table td:before{content:attr(data-label);font-size:.72rem;font-weight:800;color:#7c8881;text-transform:uppercase}
  .actions-cell{display:flex!important;flex-wrap:wrap;gap:7px}
  .actions-cell:before{width:92px}
  .actions-cell .btn{flex:0 0 auto}
  .question-preview{max-width:none}
  .upload-panel{padding:24px 16px}
}
@media(max-width:420px){
  .auth-options{align-items:flex-start}
  .auth-options a{white-space:nowrap}
  .footer-bottom-links{display:grid;gap:7px}
}

/* =========================================================
   CBTPrep reference UI refresh — dashboard / practice / exam / result
   ========================================================= */
.dashboard-page,.practice-page,.result-page{max-width:920px;margin:0 auto}
.dashboard-page{padding:28px 0 10px}
.dashboard-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.dashboard-welcome h1{font-size:1.35rem;margin-bottom:5px;letter-spacing:-.02em}
.dashboard-welcome p{font-size:.88rem;margin:0}
.dashboard-start-btn{min-width:126px}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}
.dashboard-stat-card{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:19px 12px;text-align:center}
.dashboard-stat-card strong{display:block;font:800 1.45rem var(--head);color:var(--green-2);line-height:1.1;margin-bottom:8px}
.dashboard-stat-card span{display:block;color:var(--muted);font-size:.73rem}
.dashboard-progress{padding:22px;margin-bottom:28px}
.dashboard-progress h3{font-size:1rem;margin-bottom:11px}
.dashboard-progress-track{height:7px;background:#e3e9e5;border-radius:999px;overflow:hidden;margin-bottom:8px}
.dashboard-progress-track span{display:block;height:100%;background:var(--green);border-radius:999px}
.dashboard-progress p{font-size:.73rem;margin:0}
.dashboard-services h3,.dashboard-recent h3{font-size:1rem;margin-bottom:16px}
.dashboard-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:34px}
.dashboard-service-card{padding:19px 18px 18px;min-height:223px;display:flex;flex-direction:column}
.dashboard-service-logo{height:62px;display:grid;place-items:center;margin-bottom:8px}
.dashboard-service-logo .service-logo-img{width:58px;height:58px;border:0;box-shadow:none;background:transparent}
.dashboard-service-logo .service-logo-img svg{width:48px;height:48px}
.dashboard-service-card h4{font:800 .96rem var(--head);color:var(--navy);margin:0 0 13px}
.service-status{display:block;border-radius:999px;padding:5px 9px;font-size:.68rem;font-weight:800;text-align:center;line-height:1.2}
.service-status-active{background:#eaf6ef;color:#197345}
.service-status-free{background:#fff4d6;color:#876914}
.service-status-used{background:#fde8ed;color:#b21f42}
.dashboard-service-actions{display:flex;gap:8px;margin-top:auto;padding-top:12px}
.dashboard-service-actions .btn{flex:0 0 auto;min-width:70px}
.dashboard-recent{padding-bottom:48px}
.dashboard-recent-card{padding:0;overflow:hidden}
.dashboard-table th{background:var(--navy);color:#fff;border-bottom:0;font-size:.68rem;padding:11px 12px}
.dashboard-table td{font-size:.76rem;padding:11px 12px}
.dashboard-table td a{font-weight:700}

.practice-page{padding:34px 0 55px}
.practice-heading{margin-bottom:62px}
.practice-heading h1{font-size:1.45rem;margin-bottom:20px}
.practice-heading p{font-size:.88rem}
.practice-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.practice-card{min-height:400px;padding:32px 27px 28px;text-align:center;display:flex;flex-direction:column;align-items:stretch}
.practice-logo{height:108px;display:grid;place-items:center;margin-bottom:18px}
.practice-logo .service-logo-img{width:100px;height:100px;background:transparent;border:0;box-shadow:none}
.practice-logo .service-logo-img svg{width:67px;height:67px}
.practice-card h2{font-size:1rem;margin-bottom:13px}
.practice-card .service-status{margin-bottom:12px}
.practice-description{font-size:.79rem;line-height:1.55;color:var(--muted);margin:0 0 15px}
.practice-main-btn{margin-top:auto;min-height:48px}

.exam-page{padding:28px 0 72px}
.exam-ui-card{max-width:1040px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow-lg);padding:27px 28px 25px}
.exam-top-v2{margin-bottom:16px}
.exam-top-v2 h1{font-size:1.05rem;margin-bottom:2px}
.exam-top-v2 p{font-size:.83rem;margin:0}
.exam-tools{display:flex;align-items:center;gap:9px}
.exam-tool-btn{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--border);background:#fff;color:#68756e;border-radius:9px;cursor:pointer}
.exam-tool-btn svg{width:18px;height:18px}
.exam-timer{height:42px;min-width:100px;padding:0 13px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;background:var(--navy);color:#e6d5aa;font:800 .98rem var(--head)}
.exam-timer svg{width:16px;height:16px}
.exam-progress-track{height:7px;background:#e2e8e4;border-radius:999px;overflow:hidden;margin-bottom:20px}
.exam-progress-track span{display:block;height:100%;background:var(--green);border-radius:999px;transition:width .2s ease}
.exam-question-area{min-height:325px}
.exam-question-area .pill{margin-bottom:12px}
.exam-question-area h2{font-size:1.12rem;margin-bottom:37px;min-height:32px}
.exam-options{display:grid;gap:9px}
.option-row{display:flex;align-items:center;gap:13px;min-height:47px;padding:11px 16px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--navy);font-size:.84rem;font-weight:600;cursor:pointer;transition:.18s}
.option-row:hover{border-color:#a8c5b5;background:#fbfdfc}
.option-row.selected{border-color:#5a8a7a;background:#eef8f2;box-shadow:inset 0 0 0 1px rgba(79,125,112,.15)}
.option-row input{width:15px;height:15px;margin:0;accent-color:#4f7d70;flex:none}
.qnav{gap:7px;margin:15px 0 17px}
.qnav-btn{width:36px;height:36px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--navy);font-weight:800;font-size:.76rem;cursor:pointer}
.qnav-btn:hover{border-color:var(--green);color:var(--green)}
.qnav-btn.answered{background:var(--green);border-color:var(--green);color:#fff}
.qnav-btn.marked{box-shadow:inset 0 -3px 0 var(--gold)}
.qnav-btn.current{outline:2px solid var(--navy);outline-offset:1px}
.exam-actions-v2{align-items:center}
.exam-left-actions{display:flex;gap:8px;flex-wrap:wrap}
.exam-actions-v2 .btn{min-height:44px}
.exam-prev{border-color:var(--green);color:var(--green)}
.exam-review{border-color:var(--gold);color:#866814}
.exam-skip{color:#69756f}
.exam-submit{min-width:105px}
.dark-exam .exam-ui-card{background:#173b35;color:#e8eef3}
.dark-exam .exam-ui-card h1,.dark-exam .exam-ui-card h2,.dark-exam .exam-ui-card p{color:inherit}
.dark-exam .option-row,.dark-exam .exam-tool-btn,.dark-exam .qnav-btn{background:#1e4a42;color:#edf3f7;border-color:#315d54}
.dark-exam .exam-progress-track{background:#2b5a51}

.result-page{padding:34px 0 55px}
.result-hero{text-align:center;margin-bottom:26px}
.result-service{font-size:.82rem;margin-bottom:10px}
.result-score{display:inline-flex;align-items:center;justify-content:center;padding:7px 15px;border-radius:999px;font:800 1rem var(--head)}
.result-pass{background:#dff3e6;color:#137141}
.result-fail{background:#fde7ec;color:#ad1f42}
.result-message{font-size:.72rem;margin:10px 0 0}
.result-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.result-stat-card{background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);padding:17px 10px;text-align:center}
.result-stat-card strong{display:block;font:800 1.25rem var(--head);color:var(--green-2);margin-bottom:5px}
.result-stat-card span{font-size:.68rem;color:var(--muted)}
.result-time{text-align:center;font-size:.72rem;margin-bottom:22px}
.result-review-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px}
.result-review-head h3{font-size:1rem;margin:0}
.result-review{display:grid;gap:7px}
.review-item{padding:12px 13px;margin:0;border-radius:8px;border-left:3px solid #6d9b8d;box-shadow:0 2px 8px rgba(23,49,45,.04)}
.review-item.incorrect{border-left-color:#d83a5b}
.review-item.unanswered{border-left-color:#b0b8b4}
.review-question{font-size:.73rem;margin:0 0 8px;color:var(--navy)}
.review-answer{font-size:.67rem;line-height:1.65;color:#758079;margin:0 0 5px}
.review-explanation{font-size:.67rem;line-height:1.55;color:#8a948f;margin:0}
.result-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:24px}

@media(max-width:900px){
  .dashboard-service-grid,.practice-service-grid{grid-template-columns:1fr 1fr}
  .dashboard-page,.practice-page,.result-page{max-width:760px}
  .exam-ui-card{margin:0 8px}
}
@media(max-width:720px){
  .dashboard-page,.practice-page,.result-page{width:100%;padding-left:0;padding-right:0}
  .dashboard-welcome{align-items:flex-start;flex-direction:column}
  .dashboard-start-btn{width:100%}
  .dashboard-stats{grid-template-columns:repeat(2,1fr)}
  .dashboard-service-grid,.practice-service-grid{grid-template-columns:1fr}
  .dashboard-service-card{min-height:0}
  .practice-heading{margin-bottom:30px}
  .practice-page{padding-top:26px}
  .practice-card{min-height:0;padding:27px 22px}
  .exam-page{padding:12px 0 30px}
  .exam-ui-card{margin:0;border-radius:13px;padding:18px 15px 17px}
  .exam-top-v2{align-items:flex-start}
  .exam-tools{width:100%;justify-content:flex-end}
  .exam-question-area{min-height:0}
  .exam-question-area h2{font-size:1rem;margin-bottom:22px}
  .option-row{min-height:49px;font-size:.82rem;padding:11px 12px}
  .qnav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}
  .qnav-btn{flex:0 0 35px}
  .exam-actions-v2{align-items:stretch;flex-direction:column}
  .exam-left-actions{display:grid;grid-template-columns:1fr 1fr 1fr}
  .exam-left-actions .btn{padding-inline:8px;font-size:.76rem}
  .exam-actions-v2>div:last-child,.exam-next,.exam-submit{width:100%}
  .result-stats{grid-template-columns:repeat(2,1fr)}
  .result-review-head{align-items:flex-start;flex-direction:column}
  .result-review-head .btn{width:100%}
  .result-actions .btn{width:100%}
  .dashboard-table thead{display:none}
  .dashboard-table,.dashboard-table tbody,.dashboard-table tr,.dashboard-table td{display:block;width:100%}
  .dashboard-table tr{padding:7px 0;border-bottom:1px solid var(--border)}
  .dashboard-table tr:last-child{border-bottom:0}
  .dashboard-table td{display:grid;grid-template-columns:105px 1fr;gap:8px;border:0;padding:7px 12px;font-size:.76rem}
  .dashboard-table td:before{content:attr(data-label);font-size:.64rem;font-weight:800;color:#7a8780;text-transform:uppercase}
}
@media(max-width:420px){
  .dashboard-stats{gap:9px}
  .dashboard-stat-card{padding:15px 8px}
  .dashboard-stat-card strong{font-size:1.25rem}
  .dashboard-service-actions{flex-direction:column}
  .dashboard-service-actions .btn{width:100%}
  .exam-left-actions{grid-template-columns:1fr}
}


/* =========================================================
   CBTPrep UI FIX PACK — responsive desktop/mobile
   ========================================================= */

/* Prevent accidental horizontal overflow on narrow devices */
html,body{max-width:100%;overflow-x:hidden}
main{width:100%}
.container{width:min(1160px,calc(100% - 32px));max-width:100%}

/* Header: stable desktop layout + clean mobile menu */
.site-header{width:100%}
.header-inner{position:relative}
.site-nav{min-width:0}
.site-nav a{display:inline-flex;align-items:center;justify-content:center}
.nav-burger{flex:0 0 auto}

/* Home/index */
.home-page{padding:0 0 45px}
.home-hero{padding:62px 0 42px}
.home-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:28px;align-items:stretch}
.home-copy{display:flex;flex-direction:column;justify-content:center}
.home-copy h1{font-size:clamp(2.25rem,5vw,4rem);line-height:1.05;margin:10px 0 18px}
.home-copy h1 span{color:var(--gold)}
.home-copy p{max-width:680px;font-size:1.08rem;color:var(--muted)}
.home-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.home-stats-card{background:linear-gradient(145deg,var(--navy),#29544b);border:0;border-radius:18px;color:#fff;padding:30px;display:flex;align-items:center}
.home-stats-grid{width:100%;display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.home-stat strong{display:block;font:800 2rem var(--head);color:#e6d5aa}
.home-stat span{color:#d8e1e8;font-size:.86rem}
.home-services{padding:25px 0 40px}
.home-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}
.home-service-card{min-height:210px;display:flex;flex-direction:column}
.home-service-card p{font-size:.86rem}
.home-service-card .btn{margin-top:auto;align-self:flex-start}

/* Practice page: reference-card proportions */
.practice-page{width:100%;max-width:1160px}
.practice-heading{max-width:760px}
.practice-service-grid{align-items:stretch}
.practice-card{width:100%;min-width:0}
.practice-logo{flex:0 0 auto}
.practice-description{max-width:460px;margin-left:auto;margin-right:auto}

/* Exam page: desktop and mobile containment */
.exam-page{width:100%}
.exam-ui-card{width:100%;max-width:1040px;overflow:hidden}
.exam-top-v2{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.exam-question-area{width:100%}
.exam-options{width:100%}
.option-row{width:100%;min-width:0}
.qnav{max-width:100%;overflow-x:auto}
.exam-actions-v2{display:flex;justify-content:space-between}
.exam-left-actions{min-width:0}

/* Submit confirmation modal */
.mp-modal-backdrop{
  position:fixed;inset:0;z-index:10000;
  display:none;align-items:center;justify-content:center;
  padding:18px;background:rgba(5,18,34,.62);
  backdrop-filter:blur(4px)
}
.mp-modal-backdrop.is-open{display:flex}
.mp-modal{
  width:min(100%,460px);background:#fff;border-radius:18px;
  box-shadow:0 25px 80px rgba(0,0,0,.28);padding:28px;
  border:1px solid #e3e9e5;animation:mpModalIn .16s ease-out
}
.mp-modal-icon{
  width:52px;height:52px;border-radius:15px;display:grid;place-items:center;
  background:#fff4d6;color:#866814;margin-bottom:16px;font-size:25px
}
.mp-modal h3{font-size:1.25rem;margin-bottom:8px}
.mp-modal p{color:var(--muted);font-size:.9rem;margin-bottom:20px}
.mp-modal-actions{display:flex;justify-content:flex-end;gap:10px}
@keyframes mpModalIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}

/* Result page */
.result-page{width:100%;max-width:920px}
.result-review{width:100%}
.review-item{overflow-wrap:anywhere}

/* Footer remains four columns on desktop, stacks cleanly on mobile */
.site-footer{width:100%}
.footer-grid{min-width:0}
.footer-column,.footer-brand,.footer-contact{min-width:0}

/* Better touch targets */
button,.btn,a{touch-action:manipulation}

/* Tablet */
@media(max-width:1020px){
  .container{width:min(960px,calc(100% - 28px))}
  .site-nav a{padding:9px 8px;font-size:.82rem}
  .home-hero-grid{grid-template-columns:1fr}
  .home-stats-card{min-height:180px}
  .practice-service-grid{gap:16px}
  .exam-ui-card{max-width:100%}
}

/* Mobile */
@media(max-width:720px){
  html,body{font-size:15px}
  .container{width:calc(100% - 24px);margin-left:auto;margin-right:auto}
  .site-header{position:sticky;top:0}
  .header-inner{min-height:68px}
  .brand{max-width:calc(100% - 54px)}
  .brand-copy{font-size:1rem}
  .brand-badge{width:42px;height:42px}
  .brand small{display:block;font-size:.47rem;letter-spacing:.08em}
  .nav-burger{display:flex!important}
  .site-nav{
    left:0;right:0;top:68px;width:100%;
    border-radius:0 0 14px 14px;
    padding:10px;background:var(--navy);
    max-height:calc(100vh - 68px);overflow-y:auto
  }
  .site-nav a{width:100%;justify-content:flex-start;padding:13px 14px;font-size:.92rem}
  .site-nav .btn-nav{justify-content:center}

  .home-hero{padding:38px 0 25px}
  .home-copy h1{font-size:clamp(2rem,10vw,3rem)}
  .home-copy p{font-size:.96rem}
  .home-actions{display:grid;grid-template-columns:1fr}
  .home-actions .btn{width:100%}
  .home-stats-card{padding:22px}
  .home-stats-grid{gap:16px}
  .home-stat strong{font-size:1.55rem}
  .home-stat span{font-size:.75rem}
  .home-service-grid{grid-template-columns:1fr;gap:14px}
  .home-service-card{min-height:190px}

  .practice-page{padding:28px 0 40px}
  .practice-heading{margin-bottom:30px}
  .practice-heading h1{font-size:1.55rem;margin-bottom:12px}
  .practice-heading p{font-size:.92rem}
  .practice-service-grid{grid-template-columns:1fr!important;gap:16px}
  .practice-card{
    min-height:0!important;padding:28px 22px!important;
    border-radius:18px;width:100%
  }
  .practice-logo{height:105px;margin-bottom:15px}
  .practice-logo .service-logo-img{width:92px;height:92px}
  .practice-card h2{font-size:1.08rem}
  .practice-main-btn{width:100%;min-height:50px}

  .exam-page{padding:12px 0 28px}
  .exam-ui-card{
    margin:0!important;padding:17px 14px!important;
    border-radius:14px;box-shadow:0 10px 30px rgba(23,49,45,.10)
  }
  .exam-top-v2{display:flex;flex-direction:column;gap:12px}
  .exam-top-v2 h1{font-size:1.05rem}
  .exam-tools{width:100%;justify-content:flex-end}
  .exam-timer{min-width:88px}
  .exam-question-area h2{font-size:1rem;line-height:1.4;margin-bottom:20px}
  .option-row{min-height:52px;padding:12px 12px;font-size:.84rem}
  .qnav{
    width:100%;padding:2px 1px 6px;margin:14px 0;
    scrollbar-width:thin
  }
  .qnav-btn{width:35px;height:35px;flex:0 0 35px}
  .exam-actions-v2{display:flex!important;flex-direction:column!important;gap:10px}
  .exam-left-actions{
    width:100%;display:grid!important;
    grid-template-columns:1fr 1fr 1fr;gap:7px
  }
  .exam-left-actions .btn{width:100%;min-width:0;padding:9px 6px;font-size:.74rem}
  .exam-actions-v2>div:last-child{width:100%}
  .exam-next,.exam-submit{width:100%!important;min-height:50px}

  .mp-modal{padding:22px;border-radius:16px}
  .mp-modal-actions{display:grid;grid-template-columns:1fr 1fr}
  .mp-modal-actions .btn{width:100%}

  .result-page{padding:28px 0 42px}
  .result-hero{margin-bottom:22px}
  .result-score{font-size:.96rem}
  .result-message{font-size:.78rem}
  .result-stats{grid-template-columns:1fr 1fr;gap:10px}
  .result-stat-card{padding:18px 8px;min-height:105px;display:flex;flex-direction:column;justify-content:center}
  .result-review-head{gap:9px}
  .result-review-head .btn{width:100%}
  .review-item{padding:14px 12px}

  .site-footer{margin-top:35px;padding:38px 0 20px}
  .footer-grid{grid-template-columns:1fr!important;gap:28px}
  .footer-brand{max-width:none}
  .footer-bottom{align-items:flex-start;gap:12px}
  .footer-bottom-links{width:100%;justify-content:flex-start}
}

/* Very small phones */
@media(max-width:420px){
  .container{width:calc(100% - 18px)}
  .brand-copy{font-size:.94rem}
  .brand small{font-size:.43rem}
  .practice-card{padding:25px 16px!important}
  .exam-ui-card{padding:15px 11px!important}
  .exam-left-actions{grid-template-columns:1fr!important}
  .result-stats{gap:8px}
  .result-stat-card strong{font-size:1.2rem}
  .newsletter-form{width:100%}
}

/* Multi-exam service grouping */
.practice-group{margin-top:2.5rem}
.practice-group-heading{margin:0 0 1rem;padding-bottom:.8rem;border-bottom:1px solid rgba(15,39,70,.12)}
.practice-group-heading h2{margin:.15rem 0 0;font-size:1.35rem;color:#24453f}
.practice-card .muted{margin:.45rem 0 1rem}
@media (max-width:900px){.practice-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.practice-service-grid{grid-template-columns:1fr}.practice-group-heading h2{font-size:1.15rem}}


/* =========================================================
   Multi-exam CBT refresh
   - Header scrolls naturally with the page (not sticky/fixed)
   - Larger touch targets and mobile-first sizing
   - Clear trial / premium status messaging
   - Real service subject chips on the public home page
   ========================================================= */
.site-header{
  position:relative!important;
  top:auto!important;
  backdrop-filter:none!important;
  box-shadow:0 4px 18px rgba(0,0,0,.10);
}
.header-inner{min-height:78px}
.brand{font-size:1.18rem}
.brand-badge{width:48px;height:48px}
.site-nav a{font-size:.96rem;padding:11px 13px}
.home-hero{padding:70px 0 52px}
.home-copy h1{font-size:clamp(2.8rem,5.5vw,5rem);max-width:780px}
.home-copy p{font-size:1.12rem;line-height:1.75}
.home-service-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.home-service-card{min-height:300px;padding:28px}
.home-service-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.home-question-count{font-size:.75rem;color:var(--muted);font-weight:700}
.home-service-card h3{font-size:1.18rem}
.home-service-card p{font-size:.92rem;line-height:1.7}
.home-subjects{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 20px}
.home-subjects span{
  display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;
  background:#eef6f1;color:var(--green-2);font-size:.72rem;font-weight:700
}
.trial-notice{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;
  padding:16px 18px;border-radius:14px;margin:18px 0 24px;
  border:1px solid var(--border);box-shadow:0 5px 18px rgba(11,31,58,.05)
}
.trial-notice strong{color:var(--navy)}
.trial-notice span{color:var(--muted)}
.trial-notice-free{background:#fff8df;border-color:#ead58c}
.trial-notice-used{background:#fff0f3;border-color:#f2c5cf}
.trial-notice-premium{background:#eef8f2;border-color:#b9dcc7}
.trial-notice .btn{margin-left:auto}
.practice-card .service-status{font-size:.75rem;padding:7px 11px}
.practice-description{font-size:.88rem}
.dashboard-service-card{min-height:250px}
.dashboard-service-card .service-status{font-size:.72rem}
.exam-ui-card{max-width:1120px;padding:32px}
.exam-question-area h2{font-size:1.32rem;line-height:1.5}
.option-row{padding:16px 18px;font-size:1rem}
.exam-actions-v2 .btn{min-height:48px}
@media(max-width:1020px){
  .home-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-copy h1{font-size:clamp(2.5rem,7vw,4.2rem)}
}
@media(max-width:720px){
  .header-inner{min-height:70px}
  .site-header{position:relative!important}
  .brand-badge{width:44px;height:44px}
  .brand-copy{font-size:1rem}
  .site-nav{
    top:70px!important;
    left:0!important;right:0!important;
    border-radius:0 0 16px 16px!important;
  }
  .home-hero{padding:44px 0 30px}
  .home-hero-grid{grid-template-columns:1fr}
  .home-copy h1{font-size:clamp(2.3rem,11vw,3.6rem)}
  .home-copy p{font-size:1rem;line-height:1.65}
  .home-service-grid{grid-template-columns:1fr!important;gap:16px}
  .home-service-card{min-height:0;padding:24px 20px}
  .home-service-meta{align-items:flex-start;flex-direction:column}
  .home-service-card .btn{width:100%;margin-top:auto}
  .trial-notice{align-items:flex-start;flex-direction:column}
  .trial-notice .btn{width:100%;margin-left:0}
  .dashboard-service-card{min-height:0}
  .exam-ui-card{padding:20px 15px!important}
  .exam-question-area h2{font-size:1.08rem;line-height:1.5}
  .option-row{font-size:.95rem;min-height:56px}
}
@media(max-width:420px){
  .brand-copy{font-size:.92rem}
  .home-service-card{padding:21px 16px}
  .home-subjects span{font-size:.68rem}
}


/* =========================================================
   CBTPrep.ng public homepage refresh
   ========================================================= */
.home-page{overflow:hidden}
.home-hero{padding:52px 0 0;background:linear-gradient(135deg,#f7faf8 0%,#eef5f1 100%)}
.home-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:38px;align-items:center}
.home-copy{padding:24px 0 58px}
.home-copy h1{font-size:clamp(2.5rem,6vw,4.65rem);max-width:760px;margin:0 0 18px;letter-spacing:-.055em}
.home-copy h1 span{color:var(--gold)}
.home-copy>p{max-width:760px;color:#6c7772;font-size:1.12rem;line-height:1.75;margin-bottom:28px}
.home-actions{display:flex;gap:12px;flex-wrap:wrap}
.home-actions .btn{min-height:52px;padding-inline:23px}

.home-stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:42px 30px;width:100%}
.home-stat strong{display:block;color:#f4d45b;font:800 clamp(2rem,4vw,2.65rem) var(--head);line-height:1;margin-bottom:12px}
.home-stat span{color:#d8e1e8;font-size:1rem;font-weight:600}
.home-features{padding:72px 0 78px;background:#fff}
.home-section-heading{text-align:center;max-width:900px;margin:0 auto 42px}
.home-section-heading h2{font-size:clamp(2rem,4vw,2.65rem);margin-bottom:14px}
.home-section-heading p{color:#64736c;font-size:1.05rem}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.feature-card{background:#fff;border:1px solid #e7ece9;border-radius:17px;padding:38px 32px;min-height:260px;box-shadow:0 8px 25px rgba(23,49,45,.06);transition:.2s}
.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:#d5e1da}
.feature-icon{width:64px;height:64px;border-radius:15px;background:#e6f3eb;color:var(--green-2);display:grid;place-items:center;font-size:2rem;line-height:1;margin-bottom:25px;font-weight:500}
.feature-card h3{font-size:1.18rem;margin-bottom:10px}
.feature-card p{color:#63746d;font-size:1rem;line-height:1.7}
.home-testimonials{padding:78px 0;background:#f3f6f4}
.testimonial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.testimonial-card{background:#fff;border-radius:17px;padding:38px 34px;min-height:280px;box-shadow:0 8px 25px rgba(23,49,45,.06);display:flex;flex-direction:column}
.testimonial-card p{font-size:1rem;line-height:1.8;color:#1b2420;margin-bottom:25px}
.testimonial-card span{margin-top:auto;color:#61716b;font-size:.95rem}
.testimonial-note{text-align:center;color:#8a958f;font-size:.75rem;margin:25px auto 0;max-width:760px}
.home-services{padding:74px 0 80px}
.home-services> .container > h2{font-size:clamp(2rem,4vw,2.75rem);margin-bottom:8px}
.home-services-intro{color:#6b7771;margin-bottom:34px}
.home-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.home-service-card{min-height:370px;padding:25px 24px;display:flex;flex-direction:column}
.home-service-card h3{font-size:1.18rem;margin:15px 0 8px}
.home-service-card .muted{line-height:1.65}
.home-service-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:30px}
.home-question-count{font-size:.72rem;color:#78837e;font-weight:700;white-space:nowrap}
.home-subjects{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 20px}
.home-subjects span{font-size:.67rem;font-weight:800;color:var(--green-2);background:#edf7f1;border-radius:999px;padding:5px 8px}
.home-service-card .btn{margin-top:auto;align-self:flex-start}
.home-faq{padding:0 0 65px}
.faq-card{padding:35px 36px}
.faq-list details{border-top:1px solid var(--border);padding:16px 0}
.faq-list details:last-child{border-bottom:1px solid var(--border)}
.faq-list summary{cursor:pointer;font-weight:800;color:var(--navy);list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary:after{content:'+';float:right;color:var(--green);font-size:1.25rem}
.faq-list details[open] summary:after{content:'−'}
.faq-list p{color:#68756f;margin:10px 0 0}

/* Pricing grouping and real image/logo assets */
.pricing-group{padding:8px 0 42px}
.pricing-group-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:20px}
.pricing-group-heading h2{margin:0}
.pricing-group-heading>p{max-width:500px;color:#6b7771;margin:0 0 5px}
.pricing-group .pricing-grid{padding:0}
.service-logo-img{object-fit:contain;background:transparent;border:0;box-shadow:none;border-radius:0;width:128px;height:128px}
.service-logo-wrap{min-height:150px}
.service-body-label{justify-content:center;margin-bottom:0}
.service-card h3{font-size:1.28rem}

@media (max-width: 960px){
  .home-hero-grid{grid-template-columns:1fr}
  .home-copy{text-align:center;padding-bottom:35px}
  .home-copy>p{margin-left:auto;margin-right:auto}
  .home-actions{justify-content:center}
  .home-stats-card{min-height:0;margin-bottom:20px}
  .feature-grid,.testimonial-grid,.home-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 700px){
  .home-hero{padding-top:30px}
  .home-copy h1{font-size:clamp(2.35rem,12vw,3.5rem)}
  .home-copy>p{font-size:1rem}
  .home-stats-card{padding:30px 22px;border-radius:20px}
  .home-stats-grid{gap:28px 16px}
  .home-stat strong{font-size:1.8rem}
  .home-stat span{font-size:.84rem}
  .feature-grid,.testimonial-grid,.home-service-grid{grid-template-columns:1fr}
  .feature-card{min-height:0;padding:28px 25px}
  .testimonial-card{min-height:0;padding:30px 25px}
  .pricing-group-heading{display:block}
  .pricing-group-heading>p{margin-top:8px}
  .pricing-group{padding-bottom:25px}
}
@media (max-width: 480px){
  .home-stats-grid{grid-template-columns:1fr}
  .home-stat{text-align:center}
  .home-actions .btn{width:100%}
  .faq-card{padding:26px 20px}
}

/* =========================================================
   FINAL RESPONSIVE UI POLISH
   CBTPrep.ng — desktop + tablet + mobile
   ========================================================= */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
body { min-width:0; }
main { width:100%; }
.container { max-width:1160px; width:calc(100% - 48px); }

/* Header: clean, spacious and never causes horizontal overflow */
.site-header { position:relative !important; top:auto !important; width:100%; }
.header-inner { min-height:78px; padding:10px 0; }
.brand { min-width:0; flex:0 1 auto; }
.brand-copy { white-space:nowrap; }
.site-nav { flex:0 1 auto; min-width:0; }
.site-nav a { display:inline-flex; align-items:center; justify-content:center; gap:4px; }

/* Homepage hero statistics — match the supplied reference */
.home-hero { padding:52px 0 0; }
.home-hero-grid { grid-template-columns:minmax(0,1.18fr) minmax(370px,.82fr); gap:42px; }
.home-copy { padding:28px 0 64px; }
.home-copy h1 { font-size:clamp(2.7rem,5.5vw,4.6rem); max-width:760px; }
.home-copy > p { max-width:760px; font-size:1.08rem; }
.home-stats-card { min-height:330px; padding:30px; border-radius:25px; }
.hero-stats { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.hero-stat-card { min-height:155px; padding:26px 12px; border:1px solid rgba(255,255,255,.18); border-radius:22px; background:rgba(255,255,255,.055); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; transition:transform .2s ease, background .2s ease, border-color .2s ease; }
.hero-stat-card:hover { transform:translateY(-3px); background:rgba(255,255,255,.09); border-color:rgba(241,215,122,.55); }
.hero-stat-number { color:#f4d45b; font:800 clamp(1.8rem,2.2vw,2.35rem)/1 var(--head); margin-bottom:13px; letter-spacing:-.025em; }
.hero-stat-label { color:rgba(255,255,255,.78); font-size:.88rem; line-height:1.45; letter-spacing:.08em; font-weight:800; }

/* Features: generous cards like the supplied good desktop reference */
.home-features { padding:70px 0 78px; background:#fff; }
.home-section-heading { margin-bottom:40px; }
.home-section-heading h2 { font-size:clamp(2rem,3.7vw,2.65rem); }
.feature-grid { gap:28px; }
.feature-card { min-height:262px; padding:38px 32px; border-radius:17px; }
.feature-icon { width:64px; height:64px; margin-bottom:24px; border-radius:15px; }

/* Testimonials: same visual weight and spacing as reference */
.home-testimonials { padding:76px 0 82px; background:#f3f6f4; }
.testimonial-grid { gap:28px; }
.testimonial-card { min-height:300px; padding:38px 34px; border-radius:17px; }
.testimonial-card p { font-size:1rem; line-height:1.8; }

/* Service cards */
.home-services { padding:70px 0 82px; }
.home-service-grid { gap:22px; }
.home-service-card { min-height:360px; border-radius:17px; padding:26px 24px; }

/* Dashboard — match the good desktop/mobile reference */
.dashboard-page { width:100%; max-width:1160px; margin:0 auto; padding:34px 0 65px; }
.dashboard-welcome { display:flex; justify-content:space-between; align-items:flex-end; gap:22px; margin-bottom:28px; }
.dashboard-welcome h1 { font-size:clamp(1.7rem,3vw,2.2rem); margin-bottom:5px; }
.dashboard-welcome p { font-size:1rem; }
.dashboard-start-btn { min-width:170px; min-height:54px; }
.dashboard-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:26px; }
.dashboard-stat-card { min-width:0; min-height:132px; padding:22px 16px; border:1px solid #e5ebe7; border-radius:16px; background:#fff; box-shadow:0 7px 22px rgba(11,31,58,.055); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.dashboard-stat-card strong { color:var(--green-2); font:800 clamp(1.65rem,3vw,2.15rem)/1 var(--head); }
.dashboard-stat-card span { color:#64736d; margin-top:12px; font-size:.92rem; }
.dashboard-progress { padding:28px 34px; margin-bottom:45px; border-radius:18px; }
.dashboard-progress h3 { font-size:1.35rem; margin-bottom:16px; }
.dashboard-progress-track { height:10px; background:#e2e8e4; border-radius:99px; overflow:hidden; }
.dashboard-progress-track span { display:block; height:100%; background:linear-gradient(90deg,#5b8b7b,#187348); border-radius:inherit; }
.dashboard-progress p { margin-top:10px; font-size:.95rem; }
.dashboard-services > h3, .dashboard-recent > h3 { font-size:1.3rem; margin-bottom:22px; }
.dashboard-service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.dashboard-service-card { min-width:0; min-height:330px; padding:30px 24px; border-radius:17px; display:flex; flex-direction:column; }
.dashboard-service-logo { height:100px; display:flex; align-items:center; justify-content:center; margin-bottom:15px; }
.dashboard-service-logo svg { width:92px; height:92px; }
.dashboard-service-card h4 { font-size:1.15rem; margin:0 0 16px; }
.service-status { display:block; width:100%; border-radius:99px; padding:7px 13px; font-size:.74rem; font-weight:800; text-align:center; margin-bottom:18px; }
.service-status-free { background:#fff3d4; color:#8a6a13; }
.service-status-used { background:#fde8ed; color:#b4123f; }
.service-status-active { background:#e7f4ec; color:#3c665b; }
.dashboard-service-actions { display:flex; gap:10px; margin-top:auto; }
.dashboard-service-actions .btn { flex:0 1 auto; min-width:0; }
.dashboard-recent { margin-top:48px; }
.dashboard-recent-card { padding:0; overflow:hidden; }

/* Practice / pricing grids */
.practice-page { max-width:1160px; margin:0 auto; padding:38px 0 70px; }
.practice-service-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.practice-card { min-width:0; min-height:360px; border-radius:17px; padding:30px 25px; }
.pricing-group .grid-3 { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.service-card { min-width:0; }

/* Exam interface */
.exam-page { max-width:1160px; margin:0 auto; padding:30px 0 55px; }
.exam-ui-card { border-radius:18px; }

/* Auth pages */

/* Tablet */
@media (max-width:1020px){
  .container { width:calc(100% - 36px); }
  .site-nav a { padding:10px 8px; font-size:.84rem; }
  .dashboard-page, .practice-page, .exam-page { width:calc(100% - 36px); }
  .home-hero-grid { grid-template-columns:1fr; }
  .home-copy { text-align:center; padding-bottom:38px; }
  .home-copy > p { margin-left:auto; margin-right:auto; }
  .home-actions { justify-content:center; }
  .home-stats-card { min-height:230px; }
  .feature-grid, .testimonial-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-service-grid, .practice-service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pricing-group .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Mobile — no clipped text, no sideways scrolling, no oversized cards */
@media (max-width:720px){
  .container { width:calc(100% - 28px); }
  .header-inner { min-height:68px; padding:19px 0; }
  .brand-copy { font-size:1rem; }
  .brand-badge { width:44px; height:44px; }
  .nav-burger { display:flex !important; width:44px; height:44px; }
  .site-nav { position:absolute; top:68px; left:0; right:0; width:100%; padding:10px 14px 14px; border-radius:0 0 16px 16px; box-shadow:0 18px 30px rgba(0,0,0,.18); }
  .site-nav a { display:flex; width:100%; min-height:46px; padding:12px 13px; }

  .home-hero { padding:34px 0 0; }
  .home-copy { padding:8px 0 28px; }
  .home-copy h1 { font-size:clamp(2.15rem,10vw,3.15rem); line-height:1.06; }
  .home-copy > p { font-size:.96rem; line-height:1.65; }
  .home-actions { display:grid; grid-template-columns:1fr; width:100%; }
  .home-actions .btn { width:100%; }
  .home-stats-card { min-height:0; padding:20px 16px; border-radius:20px; }
  .hero-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
  .hero-stat-card { min-height:130px; padding:17px 5px; border-radius:16px; }
  .hero-stat-number { font-size:clamp(1.35rem,6vw,1.8rem); margin-bottom:9px; }
  .hero-stat-label { font-size:.58rem; line-height:1.35; letter-spacing:.045em; }

  .home-features { padding:54px 0 60px; }
  .home-section-heading { margin-bottom:30px; }
  .home-section-heading h2 { font-size:clamp(1.7rem,8vw,2.2rem); }
  .home-section-heading p { font-size:.94rem; }
  .feature-grid, .testimonial-grid, .home-service-grid { grid-template-columns:1fr; gap:16px; }
  .feature-card { padding:28px 24px; min-height:0; }
  .feature-icon { width:56px; height:56px; margin-bottom:20px; }
  .feature-card p { font-size:.92rem; }
  .home-testimonials { padding:56px 0 62px; }
  .testimonial-card { min-height:0; padding:28px 24px; }
  .testimonial-card p { font-size:.92rem; line-height:1.7; }
  .home-services { padding:56px 0 65px; }
  .home-service-card { min-height:0; padding:24px 20px; }

  .dashboard-page { width:calc(100% - 28px); padding:28px 0 55px; }
  .dashboard-welcome { display:flex; flex-direction:column; align-items:stretch; gap:18px; margin-bottom:22px; }
  .dashboard-welcome h1 { font-size:1.55rem; line-height:1.25; overflow-wrap:anywhere; }
  .dashboard-start-btn { width:100%; }
  .dashboard-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .dashboard-stat-card { min-height:112px; padding:18px 8px; border-radius:15px; }
  .dashboard-stat-card strong { font-size:1.65rem; }
  .dashboard-stat-card span { font-size:.8rem; margin-top:9px; }
  .dashboard-progress { padding:24px 18px; margin-bottom:40px; }
  .dashboard-progress h3 { font-size:1.2rem; }
  .dashboard-progress p { font-size:.82rem; line-height:1.55; }
  .dashboard-service-grid { grid-template-columns:1fr; gap:16px; }
  .dashboard-service-card { min-height:0; padding:28px 20px; }
  .dashboard-service-logo { height:92px; }
  .dashboard-service-card h4 { font-size:1.1rem; }
  .dashboard-service-actions { width:100%; }
  .dashboard-service-actions .btn { flex:1; }
  .dashboard-recent { margin-top:40px; }
  .dashboard-recent-card { overflow-x:auto; }

  .practice-page, .exam-page { width:calc(100% - 28px); padding-top:28px; }
  .practice-service-grid { grid-template-columns:1fr; gap:16px; }
  .practice-card { min-height:0; padding:26px 20px; }
  .pricing-group .grid-3 { grid-template-columns:1fr; }
  .service-card { min-height:520px; padding:28px 22px; }
  .service-logo-img { width:105px; height:105px; }

  .auth-card { padding:34px 22px 30px; }
}

@media (max-width:420px){
  .container, .dashboard-page, .practice-page, .exam-page { width:calc(100% - 20px); }
  .brand-copy { font-size:.92rem; }
  .brand small { font-size:.43rem; }
  .hero-stat-card { min-height:116px; }
  .hero-stat-number { font-size:1.25rem; }
  .hero-stat-label { font-size:.53rem; }
  .dashboard-stats { gap:9px; }
  .dashboard-stat-card { min-height:105px; }
}

/* Examination body image logos — replace files in assets/img/exam-bodies/ with official images. */
.practice-group-heading{display:flex;align-items:center;gap:16px}.practice-body-image-wrap{width:76px;height:76px;flex:0 0 76px;display:grid;place-items:center;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 8px 22px rgba(11,31,58,.07);overflow:hidden}.practice-body-image{width:62px;height:62px;object-fit:contain;display:block}@media(max-width:720px){.practice-group-heading{align-items:flex-start;gap:12px}.practice-body-image-wrap{width:62px;height:62px;flex-basis:62px;border-radius:14px}.practice-body-image{width:50px;height:50px}}


/* =========================================================
   CBTPrep.ng — Mobile Bottom Navigation v3
   Keeps the existing header dimensions.
   On phones/tablets the header nav is replaced by a
   premium icon + title bottom navigation.
   ========================================================= */

@media (max-width: 720px) {

  /* Keep the existing header width/height exactly stable. */
  .site-header {
    width: 100%;
    height: 70px;
    min-height: 70px;
    position: relative !important;
    top: auto !important;
  }

  .header-inner {
    width: 100%;
    min-height: 70px !important;
    height: 70px;
    padding: 0 12px;
  }

  /* Remove the hamburger/drop-down navigation trigger. */
  .nav-burger,
  .nav-toggle {
    display: none !important;
  }

  /*
   * Mobile navigation:
   * fixed to the bottom, like the supplied reference image,
   * but with CBTPrep's navy/green/gold visual language.
   */
  .site-nav {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    top: auto !important;

    width: auto !important;
    height: 68px;
    min-height: 68px;

    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-around !important;
    gap: 3px !important;

    padding: 5px !important;
    margin: 0 !important;

    background: rgba(255,255,255,.97) !important;
    border: 1px solid rgba(11,31,58,.09) !important;
    border-radius: 20px !important;

    box-shadow:
      0 8px 30px rgba(11,31,58,.15),
      0 2px 7px rgba(11,31,58,.07) !important;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 9999;
    overflow: visible !important;
  }

  /* Give the page enough room so content is never hidden behind nav. */
  body {
    padding-bottom: 94px !important;
  }

  /*
   * Five primary links.
   * Dashboard is used instead of Pricing when the user is logged in;
   * all secondary/admin/logout controls remain accessible elsewhere.
   */
  .site-nav a {
    position: relative;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 58px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;

    padding: 5px 2px !important;
    margin: 0 !important;

    border-radius: 15px !important;
    background: transparent !important;
    color: #66716c !important;

    font-size: .62rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -.01em;

    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;

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

  /* Existing SVG/icon remains the visual representation of each URL. */
  .site-nav a svg {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px;
    stroke-width: 1.8;
    transition: transform .2s ease;
  }

  /*
   * Use the title text already supplied by the header when available.
   * This makes the navigation self-explanatory instead of icon-only.
   */
  .site-nav a span {
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .60rem;
    line-height: 1.1;
  }

  /* Hide controls that should not occupy the five bottom-nav slots. */
  .site-nav .nav-avatar,
  .site-nav .nav-item-admin,
  .site-nav .nav-logout,
  .site-nav .nav-register {
    display: none !important;
  }

  /*
   * Logged-in primary navigation:
   * Home | Pricing | Dashboard | Practice | Profile
   */
  .site-nav .nav-item-home,
  .site-nav .nav-item-pricing,
  .site-nav .nav-item-dashboard,
  .site-nav .nav-item-practice,
  .site-nav .nav-item-profile {
    display: flex !important;
  }

  /*
   * Active item:
   * a small raised icon tile + green title, inspired by the
   * supplied reference but styled specifically for CBTPrep.
   */
  .site-nav a.active {
    color: var(--green-2) !important;
    background: linear-gradient(
      180deg,
      rgba(35,139,87,.10),
      rgba(35,139,87,.045)
    ) !important;
    box-shadow: inset 0 0 0 1px rgba(35,139,87,.08);
    transform: translateY(-3px);
  }

  .site-nav a.active::before {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
    background: linear-gradient(145deg, var(--navy), var(--navy-2));
    box-shadow: 0 7px 16px rgba(11,31,58,.18);
    z-index: 0;
  }

  .site-nav a.active::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,.10);
  }

  .site-nav a.active svg {
    position: relative;
    z-index: 1;
    color: #fff !important;
    transform: translateY(-1px);
  }

  .site-nav a.active span {
    position: relative;
    z-index: 1;
    margin-top: 7px;
    color: var(--green-2);
    font-weight: 800;
  }

  /* Elegant touch feedback. */
  .site-nav a:not(.active):active {
    transform: scale(.93);
    background: #f3f7f5 !important;
  }

  .site-nav a:not(.active):hover {
    color: var(--navy) !important;
    background: #f6f9f7 !important;
  }

  .site-nav a:not(.active):hover svg {
    transform: translateY(-1px);
  }

  /* Logged-out users: Home | Pricing | Login | Register | Contact */
  .site-nav .nav-item-login {
    display: flex !important;
  }

  .site-nav a[href*="contact.php"] {
    display: flex !important;
  }

  /* Register becomes a compact outlined icon item. */
  .site-nav .nav-register {
    display: flex !important;
    color: #66716c !important;
    background: transparent !important;
  }

  .site-nav .nav-register::before {
    content: "+";
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1.7px solid currentColor;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
  }

  .site-nav .nav-register span {
    display: block !important;
  }

  /*
   * If the current header has not yet been given the semantic
   * nav-item-* classes, these URL selectors keep the design working.
   */
  .site-nav a[href*="index.php"],
  .site-nav a[href$="/"] {
    display: flex !important;
  }

  /* Prevent an unexpected sixth/seventh item from squeezing the bar. */
  .site-nav > a:nth-child(n+6) {
    display: none !important;
  }
}

/* Small phones */
@media (max-width: 390px) {
  .site-nav {
    left: 7px !important;
    right: 7px !important;
    height: 65px;
    min-height: 65px;
    border-radius: 18px !important;
  }

  .site-nav a {
    height: 55px !important;
    font-size: .57rem !important;
  }

  .site-nav a svg {
    width: 20px !important;
    height: 20px !important;
  }

  .site-nav a span {
    font-size: .56rem;
  }

  .site-nav a.active::before {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  body {
    padding-bottom: 89px !important;
  }
}


/* =========================================================
   CBTPrep.ng — DEFINITIVE HEADER FIX
   Uses FIXED positioning instead of sticky.
   This is intentional: fixed positioning is not affected by
   ancestor overflow/scroll-container issues that can prevent
   position:sticky from working.
   ========================================================= */

/* Public header */
.site-header,
header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  z-index: 50000 !important;
  margin: 0 !important;
  transform: none !important;
}

/* Prevent the fixed header from covering the first content. */
.site-header + main {
  padding-top: 72px !important;
}

/* If a page's main already has top spacing, do not remove it. */
.site-header + main > :first-child {
  scroll-margin-top: 82px;
}

/* Desktop header inner */
.site-header .header-inner {
  height: 72px !important;
  min-height: 72px !important;
}

/* Mobile */
@media (max-width: 720px) {
  .site-header,
  header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    z-index: 50000 !important;
  }

  .site-header .header-inner {
    height: 68px !important;
    min-height: 68px !important;
  }

  .site-header + main {
    padding-top: 68px !important;
  }

  /* The existing mobile bottom navigation stays above page content
     but below the header's stacking level. */
  .site-nav {
    z-index: 49999 !important;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .site-header,
  header.site-header {
    height: 68px !important;
    min-height: 68px !important;
  }

  .site-header .header-inner {
    height: 68px !important;
    min-height: 68px !important;
  }

  .site-header + main {
    padding-top: 68px !important;
  }
}

/* =========================================================
   CBTPrep CALM TEAL + SAND THEME
   A restrained, professional palette replacing the old navy/gold look.
   ========================================================= */
body{
  background:
    radial-gradient(circle at 88% 4%, rgba(198,167,106,.08), transparent 24%),
    linear-gradient(180deg,#f8faf8 0%,#f2f6f3 100%);
}
body:before{display:none}

.site-header,
header.site-header{
  background:rgba(23,49,45,.97) !important;
  border-bottom:1px solid rgba(230,213,170,.20) !important;
  box-shadow:0 8px 28px rgba(23,49,45,.12) !important;
}
.site-nav a{color:#edf3f0}
.site-nav a:hover{background:rgba(255,255,255,.075);color:#fff}
.site-nav a.active{background:rgba(230,213,170,.12);color:#f3e8cf}
.btn-nav{
  background:#d5bd84 !important;
  color:#17312d !important;
  box-shadow:0 5px 16px rgba(198,167,106,.18) !important;
}
.btn-nav:hover{background:#e0cb99 !important;color:#17312d !important}
.nav-avatar{color:#17312d}
.nav-burger span{background:#e8eee9}

h1,h2,h3,h4{color:var(--navy)}
.section-kicker{color:#4f7d70}
.section-kicker:before{background:#c6a76a}
a{color:#4f7d70}
a:hover{color:#3c665b}
::selection{background:#e6d5aa;color:#17312d}

.card,
.dashboard-stat-card,
.result-stat-card,
.home-service-card,
.practice-card,
.exam-ui-card{
  border-color:#dfe7e2;
  box-shadow:0 10px 30px rgba(23,49,45,.065);
}
.card-hover:hover{border-color:rgba(198,167,106,.45)}

.btn-primary{
  background:linear-gradient(135deg,#5d8c7e,#3f6c60);
  color:#fff;
  box-shadow:0 7px 18px rgba(79,125,112,.14);
}
.btn-primary:hover{color:#fff;box-shadow:0 10px 24px rgba(79,125,112,.20)}
.btn-outline{color:#29463f}
.btn-outline:hover{border-color:#c6a76a;color:#3c665b;background:#fcfdfc}
.btn-gold{
  background:linear-gradient(135deg,#dfca98,#c6a76a);
  color:#17312d;
}
.btn-gold:hover{color:#17312d;box-shadow:0 8px 20px rgba(198,167,106,.20)}

input,select,textarea{border-color:#d6e1db;background:#fff}
input:focus,select:focus,textarea:focus{
  border-color:#5a8a7a;
  box-shadow:0 0 0 4px rgba(79,125,112,.10);
}
input[type="checkbox"]{accent-color:#4f7d70}

.flash-success{background:#edf5f1;border-color:#c8ddd5;color:#2f6658}
.flash-warning{background:#faf5e9;border-color:#e4d5b2;color:#76613a}
.badge-green{background:#edf5f1;color:#3c665b}
.badge-gold{background:#f7f0df;color:#806b3e}

.table-wrap table th{background:#f3f7f4}
th{color:#29463f}

.home-stats-card{
  background:linear-gradient(145deg,#173b35,#29544b) !important;
}
.home-stat strong{color:#e6d5aa}
.home-stat span{color:#dce6e1}

.exam-timer{background:#21473f;color:#e6d5aa}
.exam-progress-track span{background:#5b8b7b}
.option-row.selected{border-color:#5a8a7a;background:#eef5f2;box-shadow:inset 0 0 0 1px rgba(79,125,112,.13)}
.option-row input{accent-color:#4f7d70}
.qnav-btn.answered{background:#4f7d70;border-color:#4f7d70}
.qnav-btn.marked{box-shadow:inset 0 -3px 0 #c6a76a}
.qnav-btn.current{outline-color:#3c665b}

.dark-exam .exam-ui-card{background:#173b35;color:#e8f0ec}
.dark-exam .option-row,
.dark-exam .exam-tool-btn,
.dark-exam .qnav-btn{background:#1e4a42;color:#edf4f1;border-color:#315d54}
.dark-exam .exam-progress-track{background:#2b5a51}

.site-footer{
  background:#17312d !important;
  color:#aebdb7;
  border-top:1px solid rgba(230,213,170,.12);
}
.site-footer a{color:#d8e2dd}
.site-footer a:hover{color:#e6d5aa}
.footer-logo{background:linear-gradient(145deg,#d5bd84,#b99b5f);color:#17312d}
.footer-social a{background:rgba(255,255,255,.065);color:#cbd8d2}
.footer-social a:hover{background:rgba(230,213,170,.14);color:#e6d5aa}

/* Password controls: stable on reset-password.php, login.php and register.php.
   The button is positioned inside the field without shifting the input text. */
.password-field{
  position:relative !important;
  width:100% !important;
  display:block !important;
}
.password-field > input{
  width:100% !important;
  padding-right:58px !important;
}
.password-field > .pw-toggle,
.password-field > .pw-toggle-login,
.password-field > .pw-toggle-register{
  position:absolute !important;
  top:50% !important;
  right:8px !important;
  transform:translateY(-50%) !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid #d8e2dd !important;
  border-radius:10px !important;
  background:#f7faf8 !important;
  color:#4b7065 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:0 !important;
  font-size:0 !important;
  cursor:pointer !important;
  box-shadow:none !important;
  z-index:3 !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}
.password-field > .pw-toggle:hover,
.password-field > .pw-toggle-login:hover,
.password-field > .pw-toggle-register:hover{
  background:#eef5f2 !important;
  border-color:#b8cec5 !important;
  color:#3c665b !important;
}
.password-field > .pw-toggle:focus-visible,
.password-field > .pw-toggle-login:focus-visible,
.password-field > .pw-toggle-register:focus-visible{
  outline:2px solid #c6a76a !important;
  outline-offset:2px !important;
}
.password-field > .pw-toggle:active,
.password-field > .pw-toggle-login:active,
.password-field > .pw-toggle-register:active{
  transform:translateY(-50%) scale(.96) !important;
}
.password-field > .pw-toggle svg,
.password-field > .pw-toggle-login svg,
.password-field > .pw-toggle-register svg{
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  min-height:20px !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
  pointer-events:none !important;
}
.password-field > .pw-toggle svg *{pointer-events:none !important}

@media(max-width:480px){
  .password-field > input{padding-right:56px !important}
  .password-field > .pw-toggle,
  .password-field > .pw-toggle-login,
  .password-field > .pw-toggle-register{
    right:6px !important;
    width:39px !important;
    height:39px !important;
    min-width:39px !important;
  }
}


/* ---------- FOOTER LAYOUT ---------- */

.site-footer .footer-grid{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:120px;
}

.site-footer .footer-brand{
    flex:1;
    max-width:560px;
}

.site-footer .footer-contact{
    width:360px;
    margin-left:auto;
}

.site-footer .footer-contact h4{
    margin-bottom:20px;
}

.site-footer .footer-contact a{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    text-decoration:none;
}

.site-footer .newsletter-form{
    margin-top:12px;
}

/* ---------- FOOTER BOTTOM ---------- */

.site-footer .footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid rgba(255,255,255,.12);
    padding-top:24px;
    margin-top:40px;
    gap:20px;
}

.site-footer .footer-links{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.site-footer .footer-links a{
    text-decoration:none;
    color:#fff;
    white-space:nowrap;
}

.site-footer .footer-links span{
    color:rgba(255,255,255,.45);
}

/* Mobile */
@media (max-width:900px){

    .site-footer .footer-grid{
        flex-direction:column;
        gap:40px;
    }

    .site-footer .footer-contact{
        width:100%;
        margin-left:0;
    }

    .site-footer .footer-bottom{
        flex-direction:column;
        align-items:flex-start;
    }

}
/* SMS monitoring */
.sms-config-card{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;padding:16px 18px}
.sms-config-card p{margin-top:4px;font-size:.78rem}
.sms-config-status{font-size:.76rem;font-weight:800;padding:7px 11px;border-radius:999px;white-space:nowrap}
.sms-config-status.is-ready{background:#e7f5ec;color:#167044}
.sms-config-status.is-warning{background:#fff3d8;color:#7a5b0b}
.sms-response-details{margin-top:7px}
.sms-response-details summary{cursor:pointer;font-size:.72rem;font-weight:800;color:var(--green)}
.sms-response-details pre{max-width:340px;max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7f6;border:1px solid var(--border);border-radius:8px;padding:8px;font-size:.68rem}
@media(max-width:720px){.sms-config-card{align-items:flex-start;flex-direction:column}.sms-config-status{white-space:normal}}
