/*
Theme Name: ExamHub Test Series
Theme URI: https://example.com/
Author: ExamHub
Description: Colorful, mobile-first WooCommerce-compatible WordPress theme for competitive-exam online test series.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: examhub
License: GPL-2.0-or-later
*/

:root{
  --primary:#08bfe7;
  --primary-dark:#078ebd;
  --green:#08c875;
  --green-dark:#069d5d;
  --blue:#075fe8;
  --navy:#052b63;
  --ink:#172033;
  --muted:#68758a;
  --bg:#f4f8fb;
  --card:#fff;
  --border:#e3eaf1;
  --gold:#f7c948;
  --red:#e92767;
  --shadow:0 8px 24px rgba(24,55,88,.08);
  --radius:12px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(1180px,calc(100% - 24px));margin:auto}
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 2px 12px rgba(0,0,0,.04)}
.offer-bar{background:linear-gradient(90deg,#05bd69,#00d27a);color:#073a27;font-size:13px}
.offer-inner{min-height:38px;display:flex;align-items:center;gap:10px;justify-content:center;position:relative}
.offer-inner .offer-cta{margin-left:auto;background:#087be8;color:#fff;padding:7px 16px;border-radius:5px;font-weight:700}
.offer-close{background:transparent;border:0;color:#fff;font-size:18px;line-height:1;padding:4px 8px}
.navbar{height:62px;display:flex;align-items:center;gap:14px}
.logo{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:800;color:var(--navy);white-space:nowrap}
.logo-mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#0ac5ed,#075fe8);display:grid;place-items:center;color:#fff;font-weight:900}
.menu-toggle{border:0;background:#f1f6fa;border-radius:8px;width:40px;height:40px;color:#4e6174}
.nav-links{display:none;align-items:center;gap:18px;margin-left:10px}
.nav-links a{font-size:14px;font-weight:600;color:#3e4e62}
.nav-actions{margin-left:auto;display:flex;gap:8px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;padding:10px 15px;font-weight:700;transition:.2s;gap:7px}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--primary);color:#fff}
.btn-blue{background:#087be8;color:#fff}
.btn-green{background:var(--green);color:#fff}
.btn-outline{background:#fff;border:1px solid var(--border);color:var(--navy)}
.btn-danger{background:#fff0f4;color:#c7184f}
.btn-sm{padding:7px 10px;font-size:12px}
.hero{background:linear-gradient(110deg,#fff 0%,#f7fbff 46%,#08b9e8 46%,#0877ed 100%);min-height:430px;display:flex;align-items:center;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}
.hero-copy{padding:45px 0}
.hero h1{font-size:clamp(28px,4vw,48px);line-height:1.12;margin:0 0 12px;color:#162033}
.hero p{color:#758397;max-width:540px;margin:0 0 22px}
.hero-count{font-size:13px;margin:20px 0 9px;color:#38495e}
.search-box{display:flex;background:#fff;border:1px solid #dbe5ed;border-radius:8px;box-shadow:0 7px 18px rgba(18,55,90,.1);overflow:hidden;max-width:600px}
.search-box input{border:0;outline:0;padding:14px;width:100%}
.search-box button{border:0;background:#fff;padding:0 16px;color:#5e7082}
.hero-art{min-height:390px;display:grid;place-items:center}
.hero-art-card{width:min(430px,90%);height:270px;background:rgba(255,255,255,.93);border-radius:14px;box-shadow:0 30px 60px rgba(0,0,0,.15);transform:rotate(-3deg);padding:22px;position:relative}
.hero-art-card:before{content:"";position:absolute;right:-70px;bottom:-70px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.22)}
.chart-bars{height:130px;display:flex;align-items:end;gap:12px;padding:15px;background:#eef7ff;border-radius:10px}
.chart-bars i{display:block;width:18%;border-radius:5px 5px 0 0;background:linear-gradient(#07bfe8,#096ce8)}
.section{padding:28px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.section-title{font-size:20px;font-weight:800;margin:0}
.section-subtitle{color:var(--muted);font-size:13px}
.horizontal-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(265px,1fr);overflow-x:auto;gap:12px;padding-bottom:8px;scroll-snap-type:x mandatory}
.horizontal-scroll>*{scroll-snap-align:start}
.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.test-card,.live-card{background:var(--card);border:1px solid var(--border);border-radius:9px;padding:12px;box-shadow:var(--shadow)}
.test-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.exam-logo{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#edf5ff;border:1px solid #e3ebf2}
.enrolled{background:#fff8d8;color:#8c6b00;border-radius:20px;padding:4px 7px;font-size:10px;white-space:nowrap}
.test-card h3{font-size:14px;line-height:1.35;margin:10px 0 6px}
.meta{font-size:11px;color:#657386}
.free{color:#00a85a;font-weight:700}
.bullets{list-style:none;padding:0;margin:10px 0;min-height:92px}
.bullets li{font-size:11px;color:#5e6d7e;margin:5px 0;padding-left:12px;position:relative}
.bullets li:before{content:"•";position:absolute;left:0;color:#526477}
.more-link{color:#00a65a;font-weight:700}
.price-row{display:flex;align-items:baseline;gap:8px;margin:8px 0 10px}
.regular{text-decoration:line-through;color:#8a96a4;font-size:12px}
.sale{font-size:20px;font-weight:900;color:#075fe8}
.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.full-btn{width:100%}
.live-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tag{display:inline-block;font-size:9px;font-weight:800;padding:4px 6px;border-radius:4px;color:#fff;margin-right:5px}
.tag-live{background:#e91d64}.tag-free{background:#08bb6a}
.live-card h3{font-size:13px;margin:10px 0 12px;min-height:38px}
.live-meta{display:flex;gap:12px;flex-wrap:wrap;color:#8793a1;font-size:10px;border-top:1px solid var(--border);padding-top:10px}
.live-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.share{border:0;background:transparent;color:#08a96b;font-size:11px}
.pass-banner{background:linear-gradient(110deg,#062a62,#0065a9 55%,#03b9ca);border-radius:14px;color:#fff;padding:22px;position:relative;overflow:hidden;box-shadow:0 14px 32px rgba(0,68,130,.18)}
.pass-banner:after{content:"";position:absolute;right:-70px;top:-100px;width:260px;height:260px;border-radius:50%;border:1px solid rgba(255,255,255,.18);box-shadow:0 0 0 35px rgba(255,255,255,.04),0 0 0 70px rgba(255,255,255,.03)}
.pass-top{display:flex;justify-content:space-between;gap:18px;align-items:center;position:relative;z-index:1}
.new-tag{background:#ff9f00;color:#fff;padding:4px 9px;border-radius:4px;font-size:10px;font-weight:900;display:inline-block;margin-bottom:6px}
.pass-banner h2{font-size:22px;margin:0 0 4px}
.pass-banner p{margin:0;color:#d9efff;font-size:13px}
.pass-features{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;position:relative;z-index:1}
.pass-features span{font-size:11px;color:#dfffea}.pass-features span:before{content:"✓";background:#05d87a;color:#063d2a;border-radius:50%;display:inline-grid;place-items:center;width:15px;height:15px;margin-right:5px;font-weight:900}
.category-tools{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.category-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:7px}
.cat-btn{white-space:nowrap;border:1px solid var(--border);background:#fff;padding:8px 12px;border-radius:20px;font-size:12px;font-weight:700;color:#506175}
.cat-btn.active{background:#e4f8ff;border-color:#8ee4f5;color:#007ea4}
.category-search{margin-left:auto;min-width:260px}
.category-search input{width:100%;padding:11px 13px;border:1px solid var(--border);border-radius:8px;background:#fff;outline:none}
.footer{background:#07182e;color:#b9c7d8;margin-top:30px;padding:38px 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:25px}
.footer h3{color:#fff;font-size:15px;margin:0 0 12px}.footer p,.footer a{font-size:12px}.footer a{display:block;margin:6px 0}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:25px;padding-top:15px;font-size:11px}
.whatsapp svg{display:block}.whatsapp{position:fixed;right:18px;bottom:18px;z-index:120;width:52px;height:52px;border-radius:50%;background:#19cf72;color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(0,0,0,.22);font-weight:900;font-size:21px}
.modal-backdrop{position:fixed;inset:0;background:rgba(5,19,38,.65);z-index:300;display:none;align-items:center;justify-content:center;padding:15px}
.modal-backdrop.open{display:flex}
.modal{background:#fff;width:min(650px,100%);max-height:92vh;overflow:auto;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.modal-head{padding:16px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.modal-head h2{font-size:18px;margin:0}.modal-close{border:0;background:#f2f6f9;width:34px;height:34px;border-radius:50%}
.modal-body{padding:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-group{margin-bottom:12px}.form-group.full{grid-column:1/-1}
.form-group label{display:block;font-size:12px;font-weight:800;margin-bottom:5px;color:#45566a}
.form-group input,.form-group textarea,.form-group select{width:100%;border:1px solid #d7e1e9;border-radius:7px;padding:10px;outline:none;background:#fff}
.form-group textarea{min-height:100px;resize:vertical}
.notice{padding:10px 12px;background:#eef8ff;border:1px solid #cceeff;border-radius:7px;color:#126080;font-size:12px;margin-bottom:12px}
.single-wrap{padding:30px 0}.single-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px;box-shadow:var(--shadow)}
.single-head{display:grid;grid-template-columns:80px 1fr auto;gap:18px;align-items:center}.single-head .exam-logo{width:72px;height:72px}
.single-head h1{margin:0 0 5px;font-size:28px}.single-content{display:grid;grid-template-columns:1.5fr .7fr;gap:20px;margin-top:25px}
.price-box{border:1px solid var(--border);border-radius:12px;padding:18px;position:sticky;top:85px;height:max-content}.price-box .sale{font-size:30px}
.spec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.spec{background:#f6fafc;padding:12px;border-radius:8px}.spec b{display:block;font-size:16px}.spec small{color:#738195}
.admin-panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;margin:25px auto}
.hidden{display:none!important}
.empty-state{background:#fff;border:1px dashed #cbd8e2;padding:25px;text-align:center;border-radius:10px;color:#6c7a8a}
@media(max-width:900px){
 .products-grid{grid-template-columns:repeat(2,1fr)}
 .live-grid{grid-template-columns:repeat(2,1fr)}
 .footer-grid{grid-template-columns:1fr 1fr}
 .single-content{grid-template-columns:1fr}.price-box{position:static}
 .hero-grid{grid-template-columns:1fr}.hero{background:linear-gradient(180deg,#fff 0%,#f7fbff 55%,#08b9e8 55%,#0877ed 100%)}.hero-art{min-height:280px}
}
@media(max-width:640px){
 .container{width:min(100% - 18px,1180px)}
 .offer-inner{padding:0 5px;font-size:10px}.offer-inner .offer-cta{padding:6px 9px}.offer-close{padding:4px}
 .navbar{height:55px}.logo{font-size:16px}.logo-mark{width:30px;height:30px}.nav-actions .login-btn{display:none}
 .nav-links{position:absolute;top:55px;left:0;right:0;background:#fff;padding:12px;box-shadow:0 12px 20px rgba(0,0,0,.08);flex-direction:column;align-items:flex-start;margin:0}.nav-links.open{display:flex}
 .hero{min-height:570px}.hero-copy{padding:30px 0 5px}.hero h1{font-size:29px}.hero-art{min-height:250px}.hero-art-card{height:190px}
 .products-grid{display:grid;grid-auto-flow:column;grid-auto-columns:78%;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
 .products-grid .test-card{scroll-snap-align:start}
 .live-grid{display:grid;grid-auto-flow:column;grid-auto-columns:84%;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory}.live-card{scroll-snap-align:start}
 .pass-top{align-items:flex-start;flex-direction:column}.pass-banner h2{font-size:18px}.pass-features{gap:8px}
 .category-tools{display:block}.category-search{margin:10px 0 0;min-width:0}
 .footer-grid{grid-template-columns:1fr}
 .form-grid{grid-template-columns:1fr}.form-group.full{grid-column:auto}
 .single-head{grid-template-columns:55px 1fr}.single-head .exam-logo{width:55px;height:55px}.single-head .head-action{grid-column:1/-1}.single-head h1{font-size:21px}
 .spec-grid{grid-template-columns:1fr 1fr}
}

.cart-link{display:inline-flex;align-items:center;gap:4px;background:#f2f8fc;border:1px solid var(--border);border-radius:8px;padding:7px 9px;font-size:14px}.cart-count{min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:var(--primary);color:#fff;display:inline-grid;place-items:center;font-size:10px;font-weight:800}.woocommerce-page .woocommerce{width:min(1180px,calc(100% - 24px));margin:25px auto}.woocommerce-page .woocommerce .button,.woocommerce-page .woocommerce button.button,.woocommerce-page .woocommerce a.button{background:var(--primary);color:#fff;border-radius:8px;padding:11px 17px;border:0}.woocommerce-page .woocommerce .button:hover,.woocommerce-page .woocommerce button.button:hover,.woocommerce-page .woocommerce a.button:hover{background:var(--primary-dark);color:#fff}.woocommerce-page .woocommerce input,.woocommerce-page .woocommerce select,.woocommerce-page .woocommerce textarea{border:1px solid var(--border);border-radius:7px;padding:10px}.woocommerce-page .woocommerce form.checkout,.woocommerce-page .woocommerce form.login,.woocommerce-page .woocommerce form.register,.woocommerce-page .woocommerce .cart_totals,.woocommerce-page .woocommerce .woocommerce-cart-form{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px}@media(max-width:640px){.cart-link{padding:6px 7px}.nav-actions{gap:5px}.nav-actions .btn-blue{font-size:10px;padding:7px}}
