/* ============================================================
   NWSSU Alumni Portal - Forest Green theme (BIMS-style)
   ============================================================ */
:root{
  --forest:#1b5e20;      /* primary forest green */
  --forest-2:#2e7d32;
  --forest-3:#43a047;
  --leaf:#66bb6a;
  --mint:#e8f4e9;
  --mint-2:#f6faf5;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#e5eae4;
  --bg:#f4f7f3;
  --white:#fff;
  --danger:#dc2626;
  --warn:#d97706;
  --info:#2563eb;
  --radius:14px;
  --shadow:0 1px 3px rgba(16,24,40,.06),0 1px 2px rgba(16,24,40,.04);
  --shadow-lg:0 10px 30px rgba(16,24,40,.10);
  --sidebar-w:250px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Segoe UI',system-ui,-apple-system,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}
a{color:var(--forest);text-decoration:none}
img{max-width:100%}
svg{width:18px;height:18px;flex:none}

/* ---------------- Layout ---------------- */
.layout{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar-w);background:var(--white);border-right:1px solid var(--line);
  position:fixed;top:0;left:0;bottom:0;display:flex;flex-direction:column;z-index:40;overflow-y:auto}
.main{margin-left:var(--sidebar-w);flex:1;display:flex;flex-direction:column;min-width:0}
.content{padding:26px 30px;flex:1}

/* ---------------- Brand ---------------- */
.brand{display:flex;align-items:center;gap:12px;padding:18px 18px;border-bottom:1px solid var(--line)}
.brand .logo{width:44px;height:44px;border-radius:10px;background:#fff;object-fit:contain;
  flex-shrink:0;padding:2px;border:1px solid var(--line)}
.brand .b-name{font-weight:700;font-size:15px;color:var(--ink);line-height:1.1}
.brand .b-sub{font-size:11px;color:var(--muted)}

/* ---------------- Nav ---------------- */
.nav{padding:12px 12px;flex:1}
.nav-label{font-size:10.5px;font-weight:700;letter-spacing:.09em;color:#9aa4a0;
  text-transform:uppercase;padding:14px 12px 6px}
.nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;
  color:#41504a;font-weight:500;margin-bottom:2px;transition:.15s}
.nav a svg{width:18px;height:18px;stroke-width:2}
.nav a:hover{background:var(--mint-2);color:var(--forest)}
.nav a.active{background:var(--mint);color:var(--forest);font-weight:600}
.nav a .badge{margin-left:auto}

.side-foot{padding:14px;border-top:1px solid var(--line)}
.logout-link{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:10px;
  color:#b91c1c;font-weight:600;transition:.15s}
.logout-link:hover{background:#fee2e2}
.logout-link svg{width:18px;height:18px;flex-shrink:0}

/* ---------------- Topbar ---------------- */
.topbar{height:60px;background:var(--white);border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:30}
.topbar .page-title{font-weight:700;font-size:16px}
.topbar-right{display:flex;align-items:center;gap:18px}
.topbar .role-tag{font-size:12px;color:var(--muted)}
.icon-btn{position:relative;width:38px;height:38px;border-radius:10px;border:1px solid var(--line);
  background:#fff;display:grid;place-items:center;cursor:pointer;color:#41504a}
.icon-btn:hover{background:var(--mint-2)}
.icon-btn .dot{position:absolute;top:-4px;right:-4px;background:var(--danger);color:#fff;font-size:10px;
  min-width:17px;height:17px;border-radius:9px;display:grid;place-items:center;padding:0 4px}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--forest-3);color:#fff;
  display:grid;place-items:center;font-weight:700;object-fit:cover}
.hamburger{display:none;background:none;border:none;cursor:pointer}

/* ---------------- Page head ---------------- */
.page-head{margin-bottom:20px}
.page-head h1{font-size:22px;font-weight:700}
.page-head p{color:var(--muted);font-size:13px;margin-top:2px}

/* ---------------- Cards / grid ---------------- */
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-pad{padding:20px}
.card-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line)}
.card-head h3{font-size:15px;font-weight:700}
.grid{display:grid;gap:18px}
.cols-4{grid-template-columns:repeat(4,1fr)}
.cols-3{grid-template-columns:repeat(3,1fr)}
.cols-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:1100px){.cols-4{grid-template-columns:repeat(2,1fr)}.cols-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.cols-4,.cols-3,.cols-2{grid-template-columns:1fr}}

/* ---------------- Stat card ---------------- */
.stat{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow)}
.stat .ic{width:42px;height:42px;border-radius:11px;background:var(--mint);color:var(--forest);
  display:grid;place-items:center;margin-bottom:14px}
.stat .ic svg{width:22px;height:22px}
.stat .num{font-size:28px;font-weight:800;color:var(--ink)}
.stat .lbl{color:var(--muted);font-size:13px;margin-top:2px}

/* ---------------- Tables ---------------- */
.table-wrap{overflow-x:auto}
table.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
table.tbl thead th{background:var(--mint-2);color:#42544c;text-align:left;font-weight:700;
  font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;padding:12px 16px;border-bottom:1px solid var(--line)}
table.tbl tbody td{padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
table.tbl tbody tr:hover{background:var(--mint-2)}
table.tbl tbody tr:last-child td{border-bottom:none}

/* ---------------- Badges ---------------- */
.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;font-size:11.5px;font-weight:600}
.badge.green{background:var(--mint);color:var(--forest-2)}
.badge.gray{background:#eef0ee;color:#5b6b63}
.badge.amber{background:#fef3c7;color:#b45309}
.badge.red{background:#fee2e2;color:#b91c1c}
.badge.blue{background:#dbeafe;color:#1d4ed8}

/* ---------------- Buttons ---------------- */
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:10px;font-weight:600;
  font-size:13.5px;border:1px solid transparent;cursor:pointer;transition:.15s;background:#fff;color:var(--ink)}
.btn svg{width:16px;height:16px}
.btn-primary{background:var(--forest);color:#fff}
.btn-primary:hover{background:var(--forest-2)}
.btn-ghost{border-color:var(--line);background:#fff;color:#42544c}
.btn-ghost:hover{background:var(--mint-2)}
.btn-danger{background:var(--danger);color:#fff}
.btn-sm{padding:6px 12px;font-size:12.5px}
.btn-block{width:100%;justify-content:center}
.btn-link{background:none;border:none;color:var(--forest);cursor:pointer;font-weight:600}

/* ---------------- Forms ---------------- */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}}
.field label,.form-label{display:block;font-weight:600;font-size:13px;margin-bottom:6px;color:#374151}
.field .req{color:var(--danger)}
.field .hint{font-size:11.5px;color:var(--muted);margin-top:5px}
.input,select.input,textarea.input{width:100%;padding:11px 13px;border:1px solid #d5ddd3;border-radius:10px;
  font-size:14px;font-family:inherit;background:#fff;transition:.15s;color:var(--ink)}
.input:focus,select.input:focus,textarea.input:focus{outline:none;border-color:var(--forest-3);
  box-shadow:0 0 0 3px rgba(67,160,71,.15)}
textarea.input{resize:vertical;min-height:90px}
.full{grid-column:1/-1}

/* ---------------- Alerts ---------------- */
.alert{padding:12px 16px;border-radius:10px;font-size:13.5px;margin-bottom:16px;display:flex;gap:10px;align-items:flex-start}
.alert svg{width:18px;height:18px;flex-shrink:0;margin-top:1px}
.alert.success{background:var(--mint);color:var(--forest-2);border:1px solid #b7dfbb}
.alert.error{background:#fee2e2;color:#b91c1c;border:1px solid #fbcaca}
.alert.info{background:#dbeafe;color:#1d4ed8;border:1px solid #bcd4fb}

/* ---------------- Auth pages ---------------- */
.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}
@media(max-width:900px){.auth-wrap{grid-template-columns:1fr}}
.auth-hero{background:linear-gradient(150deg,var(--forest),var(--forest-2) 55%,var(--forest-3));
  color:#fff;padding:56px 54px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.auth-hero:after{content:"";position:absolute;right:-80px;bottom:-80px;width:280px;height:280px;
  border-radius:50%;background:rgba(255,255,255,.07)}
.auth-hero .logo-lg{width:92px;height:92px;border-radius:50%;background:#fff;object-fit:contain;
  padding:6px;margin-bottom:20px;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.auth-hero .hero-campus{font-size:12px;letter-spacing:.18em;font-weight:700;opacity:.85;margin-bottom:14px}
.auth-hero h1{font-size:30px;line-height:1.2;margin-bottom:14px}
.auth-hero p{opacity:.9;font-size:15px;max-width:420px}
.auth-hero ul{margin-top:26px;list-style:none;display:grid;gap:12px}
.auth-hero li{display:flex;gap:11px;align-items:center;opacity:.95}
.auth-hero li svg{width:20px;height:20px;flex-shrink:0}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:var(--white)}
.auth-card{width:100%;max-width:420px}
.auth-card h2{font-size:24px;font-weight:700;margin-bottom:6px}
.auth-card .sub{color:var(--muted);margin-bottom:24px;font-size:14px}
.auth-card .field{margin-bottom:16px}

/* stepper */
.stepper{display:flex;align-items:center;gap:8px;margin-bottom:26px}
.stepper .step{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);font-weight:600}
.stepper .num{width:26px;height:26px;border-radius:50%;background:#eef0ee;color:#8a968f;
  display:grid;place-items:center;font-size:12px}
.stepper .step.active .num{background:var(--forest);color:#fff}
.stepper .step.done .num{background:var(--forest-3);color:#fff}
.stepper .line{flex:1;height:2px;background:var(--line)}

/* OTP inputs */
.otp-row{display:flex;gap:10px;justify-content:center;margin:8px 0 4px}
.otp-row input{width:52px;height:58px;text-align:center;font-size:24px;font-weight:700;
  border:1px solid #d5ddd3;border-radius:12px}
.otp-row input:focus{outline:none;border-color:var(--forest-3);box-shadow:0 0 0 3px rgba(67,160,71,.15)}

/* ---------------- Notifications dropdown ---------------- */
.dropdown{position:relative}
.dropdown-menu{position:absolute;right:0;top:48px;width:330px;background:#fff;border:1px solid var(--line);
  border-radius:12px;box-shadow:var(--shadow-lg);display:none;z-index:60;overflow:hidden}
.dropdown-menu.open{display:block}
.dropdown-menu .dm-head{padding:12px 16px;border-bottom:1px solid var(--line);font-weight:700}
.notif-item{padding:12px 16px;border-bottom:1px solid var(--line);display:flex;gap:10px}
.notif-item.unread{background:var(--mint-2)}
.notif-item .ni-title{font-weight:600;font-size:13px}
.notif-item .ni-msg{font-size:12.5px;color:var(--muted)}
.notif-item .ni-time{font-size:11px;color:#9aa4a0;margin-top:3px}

/* ---------------- Misc ---------------- */
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}
.gap-10{gap:10px}.gap-16{gap:16px}.mt-16{margin-top:16px}.mb-16{margin-bottom:16px}.mb-20{margin-bottom:20px}
.text-muted{color:var(--muted)}.text-right{text-align:right}.text-center{text-align:center}
.w-full{width:100%}.mt-24{margin-top:24px}
.pill-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.pill-tabs a{padding:8px 16px;border-radius:20px;background:#fff;border:1px solid var(--line);
  font-weight:600;font-size:13px;color:#42544c}
.pill-tabs a.active{background:var(--forest);color:#fff;border-color:var(--forest)}
.empty{text-align:center;padding:46px 20px;color:var(--muted)}
.empty svg{width:44px;height:44px;margin-bottom:12px;opacity:.5}

.profile-head{display:flex;gap:22px;align-items:center}
.profile-head .avatar-lg{width:88px;height:88px;border-radius:20px;background:var(--forest-3);color:#fff;
  display:grid;place-items:center;font-size:32px;font-weight:800;object-fit:cover}
.kv{display:grid;grid-template-columns:150px 1fr;gap:8px 16px;font-size:14px}
.kv .k{color:var(--muted)}

/* progress bars (analytics) */
.bar{height:9px;background:#eef0ee;border-radius:6px;overflow:hidden}
.bar > span{display:block;height:100%;background:var(--forest-3);border-radius:6px}
.legend-row{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:6px}

/* responsive sidebar */
@media(max-width:900px){
  .sidebar{transform:translateX(-100%);transition:.25s}
  .sidebar.open{transform:translateX(0)}
  .main{margin-left:0}
  .hamburger{display:block}
  .content{padding:18px}
}
.overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:35}
.overlay.open{display:block}

/* ---- Job image carousel ---- */
.job-carousel{position:relative;overflow:hidden;border-radius:16px;background:#0d1b12}
.job-carousel-track{display:flex;transition:transform .35s ease}
.job-carousel-slide{flex:0 0 100%;width:100%;height:360px;object-fit:contain;display:block}
.job-carousel-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;
  display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;
  background:rgba(255,255,255,.85);color:var(--forest);border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.job-carousel-btn:hover{background:#fff}
.job-carousel-btn.prev{left:12px}
.job-carousel-btn.next{right:12px}
.job-carousel-btn svg{width:22px;height:22px}
.job-carousel-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;gap:7px;justify-content:center}
.job-carousel-dots span{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:.2s}
.job-carousel-dots span.active{background:#fff;transform:scale(1.15)}
@media(max-width:640px){.job-carousel-slide{height:220px}}

/* ---- Image lightbox ---- */
img.zoomable{cursor:zoom-in}
.img-lightbox{display:none;position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.85);
  align-items:center;justify-content:center;padding:30px;cursor:zoom-out}
.img-lightbox.open{display:flex}
.img-lightbox img{max-width:95%;max-height:95%;object-fit:contain;border-radius:8px;box-shadow:0 8px 40px rgba(0,0,0,.5)}
.img-lightbox-close{position:absolute;top:16px;right:26px;color:#fff;font-size:44px;line-height:1;cursor:pointer;font-weight:300}

/* ---- No-image placeholder (keeps cards aligned) ---- */
.no-image{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:#f1f5f1;border:1px dashed #cfe0cf;border-radius:12px;color:#9aa79a}
.no-image svg{width:34px;height:34px}
.no-image span{font-size:13px}

/* ---- Job cards: equal height, action row pinned to bottom ---- */
.job-card{display:flex;flex-direction:column;height:100%}
.job-card .job-actions{margin-top:auto}
