/* ============================================================
   Africa College of Technical Vocational Training Technology
   Shared stylesheet - matches the homepage (index) design.
   Navy #002d5a / Gold #c49b1f / Inter font.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #002d5a;
  --primary-dark: #001e3c;
  --secondary: #c49b1f;
  --secondary-light: #dbb347;
  --light-bg: #f8fafd;
  --white: #ffffff;
  --border-light: #e2e8f0;
  --text-dark: #1e2a3a;
  --text-muted: #2f4057;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; }

/* ---------- TOP BAR ---------- */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e0;
  font-size: 0.7rem;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  border-bottom: 2px solid var(--secondary);
}
@media (min-width: 768px) {
  .top-bar { padding: 0.5rem 2rem; justify-content: space-between; font-size: 0.8rem; }
}
.top-bar a { color: #f0e6c5; margin: 0 0.2rem; font-weight: 500; white-space: nowrap; transition: color .2s; }
.top-bar a:hover { color: var(--secondary); }
.top-bar i { color: var(--secondary); margin-right: 0.2rem; }
.contact-info { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.contact-info span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ---------- HEADER / NAV ---------- */
header {
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0,45,90,0.08);
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand { display: flex; align-items: center; gap: 0.8rem; }
.logo-img { height: 64px; width: auto; }
.brand-text h1 { font-size: 1.15rem; font-weight: 800; color: var(--primary); line-height: 1; margin: 0; }
.brand-text span { font-size: 0.62rem; font-weight: 600; color: var(--secondary); letter-spacing: .5px; text-transform: uppercase; }
.navbar-nav .nav-link { color: var(--text-dark); font-weight: 600; padding: .5rem .9rem !important; transition: color .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--secondary); }
.login-btn, .register-btn, .apply-btn, .elearn-btn, .portal-btn {
  border-radius: 6px; font-weight: 600; padding: .45rem .8rem !important; font-size: .85rem;
}
.login-btn { color: var(--primary) !important; border: 1px solid var(--primary); }
.login-btn:hover { background: var(--primary); color: #fff !important; }
.register-btn, .apply-btn { background: var(--secondary); color: #fff !important; }
.register-btn:hover, .apply-btn:hover { background: var(--secondary-light); }
.elearn-btn, .portal-btn { background: var(--primary); color: #fff !important; }
.elearn-btn:hover, .portal-btn:hover { background: var(--primary-dark); }

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 3rem 1rem; text-align: center; border-bottom: 4px solid var(--secondary);
}
.page-header h1 { font-weight: 800; font-size: 2rem; }
.page-header p { color: #cbd5e0; max-width: 700px; margin: .5rem auto 0; }
.breadcrumb-bar { background: var(--light-bg); padding: .6rem 1rem; border-bottom: 1px solid var(--border-light); font-size: .85rem; }
.breadcrumb-bar a { color: var(--primary); }

/* ---------- BUTTONS ---------- */
.btn-gold { background: var(--secondary); color: #fff; border: none; padding: .7rem 1.6rem; border-radius: 8px; font-weight: 700; display: inline-block; transition: .2s; }
.btn-gold:hover { background: var(--secondary-light); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--primary); color: #fff; border: none; padding: .7rem 1.6rem; border-radius: 8px; font-weight: 700; display: inline-block; transition: .2s; }
.btn-navy:hover { background: var(--primary-dark); color: #fff; }

/* ---------- CARDS ---------- */
.feature-card { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 1.6rem; height: 100%; transition: .25s; }
.feature-card:hover { box-shadow: 0 12px 30px rgba(0,45,90,.12); transform: translateY(-4px); }
.feature-card .icon { width: 56px; height: 56px; border-radius: 12px; background: var(--light-bg); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.section { padding: 3.5rem 0; }
.section-title { font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- FOOTER ---------- */
footer { background: var(--primary-dark); color: #cbd5e0; padding: 3rem 1rem 1.5rem; margin-top: 3rem; }
.footer-title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.footer-contact-item { display: flex; gap: .6rem; margin-bottom: .6rem; }
.footer-contact-item i { color: var(--secondary); margin-top: .25rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; font-size: .9rem; }
.footer-links a { color: #cbd5e0; transition: color .2s; }
.footer-links a:hover { color: var(--secondary); }
.footer-links i { color: var(--secondary); margin-right: .4rem; font-size: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: .85rem; }

/* ---------- DASHBOARD LAYOUT (student/lecturer/admin) ---------- */
.dash-wrapper { display: flex; min-height: 100vh; background: var(--light-bg); }
.dash-sidebar {
  width: 260px; background: var(--primary-dark); color: #cbd5e0; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-sidebar .brand { padding: 1.2rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: .6rem; }
.dash-sidebar .brand img { height: 40px; }
.dash-sidebar .brand span { color: #fff; font-weight: 700; font-size: .95rem; }
.dash-sidebar .menu-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: #7b8ba3; padding: 1rem 1.2rem .3rem; }
.dash-sidebar .menu-item { display: flex; align-items: center; gap: .7rem; padding: .7rem 1.2rem; color: #cbd5e0; font-weight: 500; transition: .2s; border-left: 3px solid transparent; }
.dash-sidebar .menu-item:hover, .dash-sidebar .menu-item.active { background: rgba(196,155,31,.12); color: #fff; border-left-color: var(--secondary); }
.dash-sidebar .menu-item i { width: 20px; text-align: center; color: var(--secondary); }
.dash-main { flex: 1; min-width: 0; }
.dash-topbar { background: #fff; padding: .9rem 1.5rem; box-shadow: 0 2px 10px rgba(0,45,90,.06); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.dash-content { padding: 1.5rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.3rem; border: 1px solid var(--border-light); }
.stat-card .num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card .lbl { color: var(--text-muted); font-size: .85rem; }
.dash-menu-toggle { display: none; position: fixed; top: 10px; left: 10px; z-index: 1060; background: var(--primary); color: #fff; border: none; width: 44px; height: 44px; border-radius: 8px; font-size: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); align-items: center; justify-content: center; }
.dash-sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1045; }
@media (max-width: 768px) {
  .dash-sidebar { position: fixed; left: -280px; top: 0; z-index: 1050; transition: left .25s; box-shadow: 4px 0 20px rgba(0,0,0,.2); }
  .dash-sidebar.open { left: 0; }
  .dash-sidebar-backdrop.show { display: block; }
  .dash-menu-toggle { display: inline-flex; }
  .dash-topbar { padding-left: 64px; }
}
