/*
Theme Name: AOSH Professional
Theme URI: https://aosh.us
Author: AOSH Awarding Body
Author URI: https://aosh.us
Description: Professional WordPress theme for AOSH Awarding Body — aosh.us. Clean, minimal, and corporate with full LMS support.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: aosh-pro
Tags: education, lms, certification, professional, responsive, minimal
*/

/* ─────────────────────────────────────────
   GOOGLE FONTS
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* ─────────────────────────────────────────
   CSS VARIABLES  (Logo Colors: Blue + Charcoal + White)
───────────────────────────────────────── */
:root {
  /* Primary — from logo swoosh */
  --blue:         #1565c0;
  --blue-dark:    #0d47a1;
  --blue-light:   #1e88e5;
  --blue-pale:    #e3f0fb;
  --blue-sky:     #42a5f5;   /* logo ".us" color */

  /* Neutrals */
  --charcoal:     #2d3142;   /* logo text color */
  --gray-dark:    #4a4e69;
  --gray-mid:     #8d99ae;
  --gray-light:   #edf2f4;
  --border:       #d8dee9;
  --white:        #ffffff;
  --off-white:    #f8fafc;

  /* Semantic */
  --text:         #1a1a2e;
  --text-muted:   #5a6073;
  --success:      #2e7d32;
  --success-pale: #e8f5e9;

  /* Fonts */
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-serif:   'Merriweather', Georgia, serif;

  /* Sizing */
  --max-w:        1200px;
  --header-h:     72px;
  --radius:       6px;
  --radius-md:    10px;
  --radius-lg:    16px;

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.12);

  --transition:   0.2s ease;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-muted); line-height: 1.75; }

.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
}
.section-label::before { content: '— '; }

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section  { padding: 5rem 0; }
.section--alt { background: var(--off-white); }
.section--blue {
  background: var(--blue);
  color: var(--white);
}
.section--blue h2,
.section--blue h3,
.section--blue p { color: rgba(255,255,255,.9); }
.section--charcoal {
  background: var(--charcoal);
  color: var(--white);
}
.section--charcoal h2,
.section--charcoal h3 { color: var(--white); }
.section--charcoal p  { color: rgba(255,255,255,.7); }

.text-center { text-align: center; }
.section-head {
  max-width: 600px;
  margin-bottom: 3rem;
}
.section-head.centered {
  margin-left: auto; margin-right: auto; text-align: center;
}
.section-head h2 { margin-top: .4rem; margin-bottom: .8rem; }
.section-head p  { font-size: .95rem; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .65rem 1.5rem;
  font-size: .88rem; font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21,101,192,.35);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--white);
}
.btn-white:hover {
  background: var(--blue-pale);
  transform: translateY(-1px);
}
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2rem; font-size: .95rem; }

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* Logo */
.site-logo img {
  height: 46px; width: auto;
  display: block;
}
.site-logo { display: flex; align-items: center; }

/* Nav */
.primary-nav {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 3px;
  padding: .45rem .85rem;
  font-size: .86rem; font-weight: 500;
  color: var(--gray-dark);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
  background: var(--blue-pale);
}

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .4rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: .5rem .85rem;
  font-size: .84rem; color: var(--text-muted);
  border-radius: var(--radius); transition: var(--transition);
}
.dropdown a:hover { background: var(--blue-pale); color: var(--blue); }

/* LMS Nav Item */
.nav-item--lms .nav-link {
  background: var(--blue); color: var(--white);
  border-radius: var(--radius);
  padding: .45rem 1rem;
}
.nav-item--lms .nav-link:hover {
  background: var(--blue-dark); color: var(--white);
}

/* Arrow */
.nav-arrow {
  font-size: .65rem; opacity: .5;
  transition: transform .2s; display: inline-block;
}
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .7rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 4px;
  padding: 5px; background: none; border: none; cursor: pointer;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* ─────────────────────────────────────────
   MOBILE MENU
───────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  flex-direction: column; gap: .2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: .75rem 1rem;
  font-size: .95rem; font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--gray-light);
}
.mobile-menu a:hover { background: var(--blue-pale); color: var(--blue); }
.mobile-menu .m-lms {
  background: var(--blue); color: var(--white) !important;
  border-radius: var(--radius); margin-top: .5rem; text-align: center;
}
.mobile-menu .m-lms:hover { background: var(--blue-dark) !important; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 60%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid rgba(21,101,192,.2);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  animation: blink 2s infinite;
}
.hero h1 { margin-bottom: 1.2rem; color: var(--charcoal); }
.hero h1 span { color: var(--blue); }
.hero-text { font-size: 1rem; max-width: 480px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hstat-num {
  font-size: 1.7rem; font-weight: 700; color: var(--blue);
  line-height: 1;
}
.hstat-label { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }

/* Hero Right — Visual Card */
.hero-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hv-header {
  background: var(--blue);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: .8rem;
}
.hv-dots { display: flex; gap: 5px; }
.hv-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.hv-title {
  font-size: .8rem; color: rgba(255,255,255,.85);
  font-weight: 500;
}
.hv-body { padding: 1.5rem; }
.hv-cert-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .7rem;
  transition: var(--transition);
}
.hv-cert-row:hover { border-color: var(--blue); background: var(--blue-pale); }
.hv-cert-info { display: flex; align-items: center; gap: .7rem; }
.hv-cert-icon {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.hv-cert-name { font-size: .84rem; font-weight: 600; color: var(--charcoal); }
.hv-cert-code { font-size: .72rem; color: var(--text-muted); }
.hv-cert-badge {
  font-size: .7rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 20px;
  background: var(--success-pale); color: var(--success);
}
.hv-cert-badge.pending {
  background: #fff8e1; color: #f57f17;
}

/* ─────────────────────────────────────────
   TOP BAR STRIP (Accreditation)
───────────────────────────────────────── */
.topbar {
  background: var(--charcoal);
  padding: .45rem 0;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.topbar-items {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.topbar-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .76rem; color: rgba(255,255,255,.7);
}
.topbar-item a { color: rgba(255,255,255,.85); }
.topbar-item a:hover { color: var(--white); }
.topbar-badges { display: flex; gap: .5rem; }
.topbar-badge {
  font-size: .68rem; font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15);
}

/* ─────────────────────────────────────────
   STATS BAND
───────────────────────────────────────── */
.stats-band {
  background: var(--blue);
  padding: 3rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1rem;
}
.stat-box { text-align: center; }
.stat-box + .stat-box {
  border-left: 1px solid rgba(255,255,255,.15);
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .78rem; color: rgba(255,255,255,.7);
  margin-top: .3rem; text-transform: uppercase; letter-spacing: .05em;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-img-box {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--blue-pale);
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-img-box img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder {
  text-align: center; color: var(--blue);
  padding: 2rem;
}
.about-placeholder .ph-icon { font-size: 3rem; opacity: .5; }
.about-placeholder p { font-size: .85rem; margin-top: .5rem; color: var(--blue); }

.about-points { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .8rem; }
.about-point {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .9rem 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}
.about-point:hover { background: var(--blue-pale); }
.ap-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.ap-content h4 { font-size: .9rem; margin-bottom: .15rem; }
.ap-content p  { font-size: .82rem; }

/* ─────────────────────────────────────────
   COURSES / CERT CARDS
───────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.course-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cc-top {
  padding: 1.4rem 1.4rem 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.cc-icon {
  width: 44px; height: 44px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.cc-level {
  font-size: .7rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.lev-6 { background: #e8eaf6; color: #3949ab; }
.lev-5 { background: #e3f2fd; color: #1565c0; }
.lev-4 { background: #e0f2f1; color: #00695c; }
.lev-3 { background: #f3e5f5; color: #6a1b9a; }
.lev-2 { background: #fce4ec; color: #ad1457; }

.cc-body { padding: 1rem 1.4rem; flex: 1; }
.cc-body h3 { font-size: .95rem; margin-bottom: .4rem; }
.cc-body p  { font-size: .82rem; line-height: 1.65; }
.cc-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--gray-light);
  display: flex; justify-content: space-between; align-items: center;
}
.cc-meta { display: flex; gap: 1rem; }
.cc-meta span { font-size: .74rem; color: var(--gray-mid); }
.cc-link {
  font-size: .8rem; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 3px;
}
.cc-link:hover { color: var(--blue-dark); }

/* ─────────────────────────────────────────
   WHY CHOOSE
───────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.why-icon {
  width: 50px; height: 50px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.2rem;
}
.why-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.why-card p  { font-size: .84rem; }

/* ─────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────── */
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow-md); }
.stars { color: #f59e0b; font-size: .9rem; margin-bottom: .9rem; }
.testi-text { font-size: .88rem; line-height: 1.75; margin-bottom: 1.2rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .7rem; }
.testi-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.testi-name { font-size: .88rem; font-weight: 600; color: var(--charcoal); }
.testi-role { font-size: .76rem; color: var(--text-muted); }

/* ─────────────────────────────────────────
   CTA BAND
───────────────────────────────────────── */
.cta-band {
  background: var(--charcoal);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: .8rem; }
.cta-band p  { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }

/* ─────────────────────────────────────────
   LMS PAGE
───────────────────────────────────────── */
.lms-hero {
  background: var(--blue);
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  text-align: center;
}
.lms-hero h1 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.lms-hero p  { color: rgba(255,255,255,.8); max-width: 560px; margin: .8rem auto 1.8rem; }
.lms-hero-btns { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }

/* LMS Tab Nav */
.lms-tab-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--header-h);
  z-index: 200; box-shadow: var(--shadow-xs);
}
.lms-tabs {
  display: flex; overflow-x: auto;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  gap: 0; -ms-overflow-style: none; scrollbar-width: none;
}
.lms-tabs::-webkit-scrollbar { display: none; }
.lms-tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: .9rem 1.1rem;
  font-size: .84rem; font-weight: 500;
  color: var(--text-muted);
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.lms-tab-btn:hover { color: var(--blue); }
.lms-tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}
.tab-icon { font-size: .95rem; }

/* LMS Panels */
.lms-panel-area { padding: 3rem 0; min-height: 60vh; }
.lms-panel { display: none; }
.lms-panel.active { display: block; }

/* Course Cards in LMS */
.lms-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.lms-course-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.lms-course-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lcc-thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--blue), var(--blue-sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  position: relative;
}
.lcc-level-tag {
  position: absolute; top: .6rem; right: .6rem;
  font-size: .68rem; font-weight: 600;
  background: rgba(255,255,255,.2); color: var(--white);
  padding: .15rem .5rem; border-radius: 20px;
  backdrop-filter: blur(6px);
}
.lcc-body { padding: 1.1rem; flex: 1; }
.lcc-body h3 { font-size: .9rem; margin-bottom: .35rem; color: var(--charcoal); }
.lcc-body p  { font-size: .8rem; line-height: 1.6; }
.lcc-meta {
  display: flex; gap: .8rem; margin: .7rem 0;
  font-size: .74rem; color: var(--gray-mid);
}
.lcc-footer {
  padding: .8rem 1.1rem;
  border-top: 1px solid var(--gray-light);
}
.enroll-btn {
  display: block; text-align: center;
  padding: .55rem;
  background: var(--blue); color: var(--white);
  border-radius: var(--radius);
  font-size: .82rem; font-weight: 600;
  transition: var(--transition);
}
.enroll-btn:hover { background: var(--blue-dark); color: var(--white); }

/* Progress Panel */
.progress-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.prog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.prog-title { font-size: .95rem; font-weight: 600; color: var(--charcoal); }
.prog-pct { font-size: .82rem; font-weight: 600; color: var(--blue); }
.prog-bar-bg {
  height: 8px; background: var(--gray-light);
  border-radius: 4px; overflow: hidden; margin-bottom: .6rem;
}
.prog-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-sky));
  transition: width 1.2s ease;
}
.prog-meta { display: flex; gap: 1.2rem; font-size: .76rem; color: var(--text-muted); }

/* Dashboard Quick Stats */
.dash-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1rem; margin-bottom: 2rem;
}
.dash-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}
.ds-num { font-size: 1.8rem; font-weight: 700; color: var(--blue); line-height: 1; }
.ds-label { font-size: .76rem; color: var(--text-muted); margin-top: .3rem; }

/* Exam Table */
.exam-table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.exam-table th {
  background: var(--off-white);
  padding: .85rem 1rem;
  font-size: .78rem; text-align: left;
  font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.exam-table td {
  padding: .9rem 1rem;
  font-size: .85rem; color: var(--text);
  border-bottom: 1px solid var(--gray-light);
}
.exam-table tr:last-child td { border-bottom: none; }
.exam-table tr:hover td { background: var(--blue-pale); }
.status-pill {
  display: inline-block; padding: .2rem .65rem;
  border-radius: 20px; font-size: .72rem; font-weight: 600;
}
.pill-scheduled { background: #e3f2fd; color: #1565c0; }
.pill-passed    { background: #e8f5e9; color: #2e7d32; }
.pill-pending   { background: #fff8e1; color: #f57f17; }
.pill-upcoming  { background: #fce4ec; color: #c62828; }

/* Certificate Card */
.cert-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.2rem;
}
.cert-card-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .8rem;
  transition: var(--transition);
}
.cert-card-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.cert-card-top { display: flex; align-items: center; gap: .8rem; }
.cert-icon-wrap {
  width: 46px; height: 46px;
  background: var(--blue-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.cert-card-name { font-size: .95rem; font-weight: 600; color: var(--charcoal); }
.cert-card-id   { font-size: .75rem; color: var(--text-muted); font-family: monospace; }
.cert-card-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-muted); }
.cert-card-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .76rem; font-weight: 600;
  padding: .2rem .7rem; border-radius: 20px;
}
.cert-active { background: var(--success-pale); color: var(--success); }
.cert-card-actions { display: flex; gap: .6rem; }
.cert-action-btn {
  flex: 1; text-align: center; padding: .5rem;
  border-radius: var(--radius); font-size: .78rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: var(--transition);
}
.cert-action-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.cert-action-btn.primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.cert-action-btn.primary:hover { background: var(--blue-dark); }

/* Verify Box */
.verify-box {
  max-width: 500px; margin: 2rem auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.verify-box h3 { margin-bottom: .5rem; }
.verify-box p  { font-size: .87rem; margin-bottom: 1.5rem; }
.form-field { margin-bottom: 1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--charcoal); margin-bottom: .35rem; }
.form-input {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .88rem; color: var(--text);
  transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }

/* Resources */
.resources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 1.2rem;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
  display: flex; align-items: flex-start; gap: 1rem;
}
.resource-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.resource-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--blue-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.resource-title { font-size: .9rem; font-weight: 600; color: var(--charcoal); margin-bottom: .3rem; }
.resource-desc  { font-size: .8rem; line-height: 1.55; }
.resource-tag {
  display: inline-block; margin-top: .5rem;
  font-size: .7rem; font-weight: 600;
  padding: .15rem .55rem; border-radius: 20px;
  background: var(--blue-pale); color: var(--blue);
}

/* Login Box */
.lms-login-wrap { max-width: 400px; margin: 0 auto; }
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo img { height: 42px; margin: 0 auto; }
.login-card h3 { font-size: 1.1rem; text-align: center; margin-bottom: .4rem; }
.login-card .sub { text-align: center; font-size: .84rem; margin-bottom: 1.8rem; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer-logo img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-about { font-size: .85rem; line-height: 1.75; max-width: 270px; }
.footer-accreds { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.footer-accred {
  font-size: .68rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: 3px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
}
.footer-col h4 {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--white);
  margin-bottom: 1rem; font-family: var(--font-body);
}
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a {
  font-size: .84rem; color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-socials { display: flex; gap: .5rem; margin-top: 1rem; }
.fsoc {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: rgba(255,255,255,.6);
  transition: var(--transition); border: 1px solid rgba(255,255,255,.1);
  font-weight: 700;
}
.fsoc:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .8rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom-links { display: flex; gap: 1.2rem; }
.footer-bottom-links a { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* ─────────────────────────────────────────
   SEARCH BAR
───────────────────────────────────────── */
.search-row {
  display: flex; gap: 1rem; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.search-input-wrap {
  display: flex; gap: .6rem; flex: 1; max-width: 380px;
}
.search-input-wrap input {
  flex: 1; padding: .6rem .9rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .85rem; color: var(--text);
}
.search-input-wrap input:focus { outline: none; border-color: var(--blue); }
.filter-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-tab {
  padding: .4rem .9rem; border-radius: 20px;
  font-size: .78rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: var(--transition); background: var(--white);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.info-box {
  background: var(--blue-pale);
  border: 1px solid rgba(21,101,192,.2);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex; gap: .8rem; align-items: flex-start;
  margin: 1.5rem 0;
}
.info-box .info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.info-box p { font-size: .84rem; color: var(--blue-dark); }

.empty-state {
  text-align: center; padding: 3rem;
  color: var(--text-muted);
}
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: .8rem; opacity: .4; }
.empty-state h4 { font-size: 1rem; margin-bottom: .4rem; color: var(--charcoal); }
.empty-state p  { font-size: .85rem; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Back to top */
#btt {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 500;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: var(--transition); border: none; cursor: pointer;
}
#btt.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#btt:hover { background: var(--blue-dark); }

/* Animations */
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: .3; }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-box { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-box + .stat-box { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .primary-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  .why-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar-badges { display: none; }
  .hero { padding-top: calc(var(--header-h) + 3rem); }
  .exam-table { font-size: .8rem; }
  .exam-table th, .exam-table td { padding: .65rem .7rem; }
  .cert-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .lms-courses-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
}
