*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f5f8;color:#222}a{text-decoration:none;color:#145ea8}.brand{display:flex;align-items:center;gap:14px}.brand-mark{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#f7931e 50%,#198754 50%);color:#fff;font-weight:900;font-size:18px}.brand h1{margin:0;font-size:24px;color:#173d7a}.brand p{margin:3px 0;color:#666}.compact .brand-mark{width:44px;height:44px;font-size:14px}.landing{display:grid;place-items:center;min-height:100vh;background:linear-gradient(135deg,#eef4fb,#fff)}.landing-card{width:min(950px,94%);background:#fff;border-radius:18px;padding:45px;box-shadow:0 15px 50px #173d7a18}.hero{padding:45px 0}.hero h2{font-size:38px;margin:0 0 12px;color:#173d7a}.hero p{font-size:18px;line-height:1.6;color:#555}.actions{display:flex;gap:12px;flex-wrap:wrap}.btn{border:1px solid #cbd3dc;background:#fff;color:#263746;border-radius:5px;padding:12px 20px;cursor:pointer;display:inline-block;font-weight:700}.btn.primary{background:#2878bd;color:#fff;border-color:#2878bd}.btn.review{background:#f0a028;color:#fff;border-color:#f0a028}.btn.submit{background:#27a35a;color:#fff;border-color:#27a35a}.btn.danger-outline{color:#b23b3b}.btn.full{width:100%}.btn.small{padding:7px 10px;font-size:12px}.center{min-height:100vh;display:grid;place-items:center}.login-card,.result-card{background:#fff;width:min(520px,94%);padding:35px;border-radius:14px;box-shadow:0 10px 35px #0002}.login-card form{margin:25px 0}.login-card label,.panel label{display:block;font-weight:700;margin:13px 0 6px}input,textarea,select{width:100%;padding:11px;border:1px solid #cfd6dd;border-radius:5px;background:#fff;font-size:15px}input:focus,textarea:focus,select:focus{outline:2px solid #2878bd33;border-color:#2878bd}.alert,.notice{padding:12px;border-radius:5px;margin:12px 0}.alert{background:#fff0f0;color:#a33}.notice{background:#eaf8ee;color:#176b34}.muted{color:#777;font-size:13px}.admit{border:2px solid #173d7a;padding:20px;margin-top:20px}.admit h2{text-align:center;color:#173d7a}.topbar{height:88px;background:#fff;display:flex;align-items:center;padding:10px 28px;gap:30px;border-bottom:1px solid #ddd}.topbar .candidate-box{margin-left:auto;display:flex;flex-direction:column;text-align:right}.candidate-box span{color:#777;font-size:12px}.timer{background:#f2f5f8;padding:12px 18px;border-radius:4px}.timer strong{color:#1478bd}.subjectbar{min-height:60px;background:#f7931e;color:#fff;display:flex;align-items:center;gap:25px;padding:10px 40px;font-weight:700;flex-wrap:wrap}.exam-grid{display:grid;grid-template-columns:1fr 400px;gap:18px;max-width:1500px;margin:20px auto;padding:0 20px}.question-panel,.palette{background:#fff;border:1px solid #ddd}.question-head{display:flex;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #ddd;font-size:18px}.question-text{padding:30px 25px;font-size:18px;line-height:1.6;min-height:170px}.options{padding:0 25px}.option{display:flex;gap:12px;padding:16px;border:1px solid #ddd;margin:10px 0;border-radius:5px;cursor:pointer}.option input{width:auto}.controls{display:flex;flex-wrap:wrap;gap:10px;padding:20px 25px;border-top:1px solid #ddd}.bottom-nav{padding:15px 25px;background:#f7f7f7;display:flex;gap:10px}.palette{padding:20px}.legend{display:grid;gap:8px;font-size:12px;margin-bottom:18px}.dot{display:inline-block;width:18px;height:18px;border-radius:3px;vertical-align:middle;margin-right:6px}.dot.not,.pbtn.not{background:#eee}.dot.ans,.pbtn.answered{background:#20a94b;color:#fff}.dot.rev,.pbtn.review{background:#6c2ca6;color:#fff}.palette-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.pbtn{display:grid;place-items:center;height:40px;border:1px solid #ccc;border-radius:4px;color:#333;font-weight:700}.pbtn.current{outline:3px solid #f7931e}.logout{display:block;text-align:center;margin-top:20px}.success-icon{margin:auto;width:65px;height:65px;border-radius:50%;background:#25a35a;color:#fff;display:grid;place-items:center;font-size:38px}.result-card{text-align:center}.score{font-size:26px;margin:25px}.score strong{font-size:50px;color:#1977b8}.adminbar{background:#173d7a;color:#fff;padding:15px 30px;display:flex;align-items:center;justify-content:space-between}.adminbar h2{margin:0}.adminbar nav{display:flex;gap:16px;flex-wrap:wrap}.adminbar a{color:#fff}.admin-wrap{max-width:1250px;margin:30px auto;padding:0 20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:30px}.stats div{background:#fff;padding:22px;border-radius:8px;box-shadow:0 2px 10px #0001}.stats b{display:block;font-size:30px;color:#173d7a}.stats span{color:#777}.admin-wrap table{width:100%;border-collapse:collapse;background:#fff}.admin-wrap th,.admin-wrap td{padding:12px;border:1px solid #ddd;text-align:left}.admin-wrap th{background:#edf2f7}.admin-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:25px}.panel{background:#fff;padding:20px;border-radius:8px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toolbar{background:#fff;padding:15px;margin-bottom:20px}.toolbar select{max-width:550px}.qitem{background:#fff;padding:15px;border:1px solid #ddd;margin-bottom:8px;border-radius:5px}.qmeta{display:block;color:#777;font-size:12px;margin-top:7px}.link-danger{background:none;border:0;color:#b22;cursor:pointer}@media(max-width:900px){.exam-grid,.admin-grid{grid-template-columns:1fr}.topbar{height:auto;flex-wrap:wrap}.timer{margin-left:auto}.stats{grid-template-columns:1fr}.adminbar{flex-direction:column;gap:12px}.subjectbar{padding:10px 15px}.two{grid-template-columns:1fr}}@media print{body{background:#fff}.login-card{box-shadow:none}.login-card>form,.login-card>a{display:none}}
.approval-icon{margin:auto;width:70px;height:70px;border-radius:50%;background:#fff3cd;display:grid;place-items:center;font-size:38px}.approval-box{padding:16px;margin:18px 0;background:#fff3cd;color:#755b00;border:1px solid #ffe08a;border-radius:7px;line-height:1.6}.status-badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.status-badge.ok{background:#e8f7ed;color:#176b34}.status-badge.no{background:#fdeaea;color:#a33}.status-badge.wait{background:#fff3cd;color:#755b00}

/* HCIT logo sizing: balanced for each portal area */
.site-logo{width:82px;height:82px;object-fit:cover;border-radius:50%;flex:0 0 82px;display:block}.brand.compact .site-logo{width:70px;height:70px;flex-basis:70px}.page-logo{width:118px;height:118px;object-fit:cover;border-radius:50%;display:block;margin:0 auto 16px}.admin-title{display:flex;align-items:center;gap:12px}.admin-title img{width:52px;height:52px;object-fit:cover;border-radius:50%;flex:0 0 52px}
@media(max-width:600px){.site-logo{width:68px;height:68px;flex-basis:68px}.brand.compact .site-logo{width:60px;height:60px;flex-basis:60px}.page-logo{width:96px;height:96px}.admin-title img{width:44px;height:44px;flex-basis:44px}.brand h1{font-size:20px}}

/* ===== HCIT Professional Portal Design ===== */
:root{--hcit-navy:#0b2f56;--hcit-blue:#1769aa;--hcit-green:#0b6b3a;--hcit-gold:#e5b83b;--hcit-bg:#eef4f8;--hcit-text:#172435;--hcit-muted:#6b7788;--hcit-line:#dbe4ec;--hcit-shadow:0 18px 55px rgba(11,47,86,.14)}
body{background:linear-gradient(135deg,#edf4f8 0%,#f9fbfd 50%,#eef6f1 100%);color:var(--hcit-text)}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:30px 16px;position:relative;overflow-x:hidden}
.auth-page:before,.auth-page:after{content:"";position:fixed;border-radius:50%;filter:blur(1px);pointer-events:none;z-index:-1}
.auth-page:before{width:420px;height:420px;left:-180px;top:-170px;background:rgba(11,107,58,.09)}
.auth-page:after{width:480px;height:480px;right:-210px;bottom:-230px;background:rgba(23,105,170,.10)}
.login-card,.result-card{border:1px solid rgba(219,228,236,.9);box-shadow:var(--hcit-shadow)}
.login-card.auth-card{width:min(480px,100%);padding:0;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.97)}
.auth-head{padding:28px 30px 22px;text-align:center;background:linear-gradient(145deg,#ffffff,#f6fafc);border-bottom:1px solid var(--hcit-line)}
.auth-head .site-logo{width:92px;height:92px;flex-basis:92px;margin:0 auto 13px;border:4px solid #fff;box-shadow:0 6px 22px rgba(11,47,86,.16)}
.auth-head h1{margin:0;color:var(--hcit-navy);font-size:25px;line-height:1.2}
.auth-head p{margin:7px 0 0;color:var(--hcit-muted);font-size:14px}
.auth-badge{display:inline-block;margin-top:11px;padding:6px 11px;border-radius:999px;background:#edf7f1;color:var(--hcit-green);font-size:11px;font-weight:800;letter-spacing:.35px;text-transform:uppercase}
.auth-body{padding:24px 30px 28px}
.auth-body form{margin:0}
.auth-body label{font-size:13px;color:#334155;margin:15px 0 7px}
.auth-body input,.auth-body select,.auth-body textarea{border:1px solid var(--hcit-line);border-radius:10px;padding:13px 14px;background:#fbfdff;transition:.2s ease}
.auth-body input:focus,.auth-body select:focus,.auth-body textarea:focus{background:#fff;border-color:var(--hcit-blue);outline:3px solid rgba(23,105,170,.10);box-shadow:none}
.auth-body .btn.full{margin-top:20px;padding:13px 18px;border-radius:10px;font-size:15px}
.auth-links{display:flex;justify-content:center;gap:8px 16px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid #edf1f5;font-size:13px}
.auth-links a{font-weight:700;color:var(--hcit-blue)}
.auth-note{margin:16px 0 0;text-align:center;color:var(--hcit-muted);font-size:12px}
.btn{border-radius:9px;transition:.18s ease;box-shadow:0 2px 0 rgba(15,23,42,.03)}
.btn:hover{transform:translateY(-1px);filter:brightness(.98)}
.btn.primary{background:linear-gradient(135deg,var(--hcit-blue),#10558b);border-color:#10558b;box-shadow:0 8px 20px rgba(23,105,170,.20)}
.alert,.notice,.approval-box{border-radius:10px;line-height:1.5}
.alert{border:1px solid #ffd4d4}.notice{border:1px solid #cfead8}

/* Landing panel */
.landing-card{border:1px solid rgba(219,228,236,.9);box-shadow:var(--hcit-shadow);border-radius:24px}
.landing-card .hero h2{color:var(--hcit-navy)}

/* Admin panel */
.adminbar{min-height:78px;background:linear-gradient(135deg,#082947,#0d4774);box-shadow:0 5px 22px rgba(8,41,71,.18);padding:12px 30px;gap:24px;position:sticky;top:0;z-index:50}
.admin-title img{border:2px solid rgba(255,255,255,.85);box-shadow:0 3px 12px rgba(0,0,0,.18)}
.admin-title h2{font-size:19px}
.adminbar nav{gap:7px}
.adminbar nav a{padding:8px 11px;border-radius:8px;font-size:13px;font-weight:700;color:#eef7ff}
.adminbar nav a:hover{background:rgba(255,255,255,.12)}
.admin-wrap{max-width:1320px;margin:28px auto;padding:0 22px}
.stats{gap:18px}.stats div{border:1px solid var(--hcit-line);border-radius:14px;padding:23px;box-shadow:0 8px 24px rgba(15,45,75,.06);position:relative;overflow:hidden}
.stats div:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--hcit-green),var(--hcit-gold))}
.stats b{color:var(--hcit-navy);font-size:32px}.stats span{font-weight:700;font-size:13px}
.panel,.toolbar{border:1px solid var(--hcit-line);border-radius:14px;box-shadow:0 8px 25px rgba(15,45,75,.05)}
.panel{padding:24px}.toolbar{padding:18px}
.admin-wrap table{border-radius:12px;overflow:hidden;box-shadow:0 7px 22px rgba(15,45,75,.05);border:1px solid var(--hcit-line)}
.admin-wrap th{background:#edf4f8;color:var(--hcit-navy);font-size:12px;text-transform:uppercase;letter-spacing:.25px}
.admin-wrap th,.admin-wrap td{padding:13px 12px;border-color:#e4ebf1}
.admin-wrap tr:hover td{background:#fbfdff}
.qitem{border-radius:10px;border-color:var(--hcit-line);box-shadow:0 3px 12px rgba(15,45,75,.04)}

/* Result / approval cards */
.result-card{border-radius:22px;padding:34px}.result-card .page-logo{box-shadow:0 7px 24px rgba(11,47,86,.15);border:4px solid #fff}

@media(max-width:700px){.auth-page{padding:18px 12px}.login-card.auth-card{border-radius:17px}.auth-head{padding:23px 20px 18px}.auth-head .site-logo{width:82px;height:82px;flex-basis:82px}.auth-head h1{font-size:21px}.auth-body{padding:20px}.adminbar{position:relative;padding:13px 15px}.adminbar nav{justify-content:center}.admin-wrap{padding:0 12px}.panel{padding:17px}.admin-wrap{overflow-x:auto}.admin-wrap table{min-width:720px}}

/* FINAL HOME LOGO HARD LIMIT - prevents oversized cached/global image rules */
.landing-card .brand .home-logo{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;min-width:72px!important;min-height:72px!important;object-fit:contain!important;display:block!important;flex:0 0 72px!important;border-radius:50%!important;}
@media(max-width:600px){.landing-card .brand .home-logo{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;min-width:58px!important;min-height:58px!important;flex-basis:58px!important}.landing-card{padding:24px!important}}

/* FINAL HCIT LOGO SIZE - SMALL ON ALL PAGES */
.site-logo,.auth-head .site-logo{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important;flex:0 0 54px!important;object-fit:contain!important;border-radius:50%!important}
.landing-card .brand .home-logo{width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;max-width:54px!important;max-height:54px!important;flex:0 0 54px!important;object-fit:contain!important}
.page-logo{width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-width:60px!important;max-height:60px!important;object-fit:contain!important}
.admin-title img{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;flex:0 0 36px!important;object-fit:contain!important}
.header-brand img{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;flex:0 0 36px!important;object-fit:contain!important}
.exam-brand img{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;flex:0 0 32px!important;object-fit:contain!important}
@media(max-width:600px){.site-logo,.auth-head .site-logo,.landing-card .brand .home-logo{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important;flex-basis:46px!important}.page-logo{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important}}

/* ===== FINAL HCIT LOGO CONTROL — covers every portal screen ===== */
img[src*="hcit-logo.png"]{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  max-width:44px!important;
  max-height:44px!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  border-radius:50%!important;
  flex:0 0 44px!important;
}
/* Login / registration / admit card */
.auth-head img[src*="hcit-logo.png"]{
  width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;
  max-width:50px!important;max-height:50px!important;flex:0 0 50px!important;margin:0 auto 10px!important;
}
/* Home */
.landing-card img[src*="hcit-logo.png"]{
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  max-width:48px!important;max-height:48px!important;flex:0 0 48px!important;
}
/* Result / submitted / approval pending */
.result-card img[src*="hcit-logo.png"]{
  width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important;
  max-width:54px!important;max-height:54px!important;flex:0 0 54px!important;margin:0 auto 12px!important;
}
/* Admin panel header */
.adminbar img[src*="hcit-logo.png"]{
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  max-width:34px!important;max-height:34px!important;flex:0 0 34px!important;
}
/* Candidate subject header */
.header-brand img[src*="hcit-logo.png"]{
  width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
  max-width:32px!important;max-height:32px!important;flex:0 0 32px!important;
}
/* Live exam header */
.exam-brand img[src*="hcit-logo.png"]{
  width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  max-width:30px!important;max-height:30px!important;flex:0 0 30px!important;
}
@media(max-width:600px){
  .auth-head img[src*="hcit-logo.png"]{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important;flex-basis:46px!important}
  .landing-card img[src*="hcit-logo.png"]{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;flex-basis:42px!important}
  .result-card img[src*="hcit-logo.png"]{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;flex-basis:48px!important}
  .adminbar img[src*="hcit-logo.png"]{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;flex-basis:30px!important}
  .header-brand img[src*="hcit-logo.png"]{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;max-width:28px!important;max-height:28px!important;flex-basis:28px!important}
  .exam-brand img[src*="hcit-logo.png"]{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;max-width:26px!important;max-height:26px!important;flex-basis:26px!important}
}
