/* ============================================================
   Fuzu Training College LMS - Design System & Public Styles
   Phase 1 - v0.1.0
   Brand: Navy #202358 | Gold #B69A58 | Light #F7F8FC
   ============================================================ */

:root {
  --fuzu-navy: #202358;
  --fuzu-navy-dark: #171A35;
  --fuzu-gold: #B69A58;
  --fuzu-gold-hover: #A0884A;
  --fuzu-white: #FFFFFF;
  --fuzu-light: #F7F8FC;
  --fuzu-border: #E2E6F0;
  --fuzu-text: #171A35;
  --fuzu-muted: #64748B;
  --fuzu-success: #0D9488;
  --fuzu-warning: #D97706;
  --fuzu-danger: #DC2626;
  --fuzu-radius: 12px;
  --fuzu-radius-sm: 8px;
  --fuzu-shadow: 0 4px 20px rgba(32, 35, 88, 0.08);
  --fuzu-shadow-lg: 0 10px 40px rgba(32, 35, 88, 0.12);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--fuzu-text);
  background: var(--fuzu-white);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fuzu-navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fuzu-gold); }

/* ---------- Sticky Navbar ---------- */
.fuzu-navbar {
  background: var(--fuzu-navy);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  padding: 0.6rem 0;
}

.fuzu-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.fuzu-navbar .navbar-brand img {
  height: 42px;
  width: auto;
}

.fuzu-navbar .nav-link {
  color: rgba(255,255,255,.9) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.fuzu-navbar .nav-link:hover,
.fuzu-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}

.fuzu-navbar .nav-link.active {
  color: var(--fuzu-gold) !important;
  border-bottom: 2px solid var(--fuzu-gold);
  border-radius: 0;
}

.btn-fuzu-outline {
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff !important;
  background: transparent;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.4rem 1.1rem;
  transition: all .2s;
}
.btn-fuzu-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff !important;
}

.btn-fuzu-gold {
  background: var(--fuzu-gold);
  color: #fff !important;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 1.25rem;
  transition: background .2s, transform .15s;
}
.btn-fuzu-gold:hover {
  background: var(--fuzu-gold-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.fuzu-hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, rgba(32,35,88,.92) 0%, rgba(23,26,53,.88) 100%),
              url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600&q=80') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.fuzu-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0;
}

.fuzu-hero .badge-welcome {
  display: inline-block;
  background: rgba(182,154,88,.25);
  border: 1px solid rgba(182,154,88,.5);
  color: var(--fuzu-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.fuzu-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.fuzu-hero h1 .gold { color: var(--fuzu-gold); }

.fuzu-hero .lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 520px;
  margin-bottom: 1.8rem;
}

/* Search bar in hero */
.hero-search {
  background: #fff;
  border-radius: 12px;
  padding: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 720px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.hero-search input,
.hero-search select {
  border: none;
  background: transparent;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  color: var(--fuzu-text);
  outline: none;
  min-width: 0;
}

.hero-search input { flex: 1 1 180px; }
.hero-search select {
  flex: 0 1 140px;
  border-left: 1px solid var(--fuzu-border);
  cursor: pointer;
}

.hero-search .btn-search {
  background: var(--fuzu-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.hero-search .btn-search:hover { background: var(--fuzu-gold-hover); }

/* Feature pills under hero search */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-features .feat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.95;
}
.hero-features .feat i {
  color: var(--fuzu-gold);
  font-size: 1.15rem;
}

/* ---------- Section common ---------- */
.section-pad { padding: 4rem 0; }
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--fuzu-navy);
  margin-bottom: 0.4rem;
}
.section-sub {
  color: var(--fuzu-muted);
  margin-bottom: 2.2rem;
  max-width: 560px;
}

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--fuzu-border);
  border-radius: var(--fuzu-radius);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  border-color: var(--fuzu-gold);
  box-shadow: var(--fuzu-shadow);
  transform: translateY(-3px);
  color: inherit;
}
.cat-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.35rem;
}
.cat-card h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--fuzu-text);
}

/* ---------- Course cards ---------- */
.course-card {
  background: #fff;
  border: 1px solid var(--fuzu-border);
  border-radius: var(--fuzu-radius);
  overflow: hidden;
  transition: all .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  box-shadow: var(--fuzu-shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.course-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--fuzu-light);
  overflow: hidden;
}
.course-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-card .badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(32,35,88,.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.course-card .badge-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: var(--fuzu-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.course-card .badge-rating .star { color: #F59E0B; }
.course-card .body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--fuzu-navy);
  line-height: 1.35;
}
.course-card .meta {
  font-size: 0.8rem;
  color: var(--fuzu-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.course-card .meta span { display: flex; align-items: center; gap: 0.25rem; }
.course-card .price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.course-card .price {
  font-weight: 700;
  color: var(--fuzu-navy);
  font-size: 1.05rem;
}
.course-card .price .original {
  font-size: 0.8rem;
  color: var(--fuzu-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.35rem;
}
.course-card .btn-view {
  background: var(--fuzu-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.course-card .btn-view:hover { background: var(--fuzu-gold-hover); color: #fff; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--fuzu-navy);
  color: #fff;
  padding: 2.5rem 0;
}
.stats-bar .stat {
  text-align: center;
}
.stats-bar .stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fuzu-gold);
  display: block;
  line-height: 1.2;
}
.stats-bar .stat .label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Why Choose ---------- */
.why-card {
  background: #fff;
  border: 1px solid var(--fuzu-border);
  border-radius: var(--fuzu-radius);
  padding: 1.6rem 1.3rem;
  height: 100%;
  transition: box-shadow .25s;
}
.why-card:hover { box-shadow: var(--fuzu-shadow); }
.why-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.why-card h6 { font-weight: 700; margin-bottom: 0.4rem; color: var(--fuzu-navy); }
.why-card p { font-size: 0.9rem; color: var(--fuzu-muted); margin: 0; }

/* ---------- Footer ---------- */
.fuzu-footer {
  background: var(--fuzu-navy-dark);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.fuzu-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.fuzu-footer a {
  color: rgba(255,255,255,.75);
  display: block;
  margin-bottom: 0.45rem;
  transition: color .2s;
}
.fuzu-footer a:hover { color: var(--fuzu-gold); }
.fuzu-footer .brand-desc { max-width: 280px; line-height: 1.6; margin-bottom: 1rem; }
.fuzu-footer .bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Courses page specific ---------- */
.courses-hero {
  background: linear-gradient(135deg, var(--fuzu-navy) 0%, #2a2f6e 100%);
  color: #fff;
  padding: 2.8rem 0 2.2rem;
}
.courses-hero h1 { font-weight: 800; font-size: 2.2rem; margin-bottom: 0.5rem; }
.courses-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
.courses-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.courses-hero .breadcrumb-item.active { color: var(--fuzu-gold); }
.courses-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--fuzu-border);
  border-radius: var(--fuzu-radius);
  padding: 1.4rem;
  position: sticky;
  top: 80px;
}
.filter-sidebar h6 {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fuzu-navy);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-sidebar .form-check {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.filter-sidebar .form-check-label { color: var(--fuzu-text); cursor: pointer; }
.filter-sidebar hr { border-color: var(--fuzu-border); margin: 1.1rem 0; }

.results-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.results-header .count { color: var(--fuzu-muted); font-size: 0.95rem; }

/* Pagination */
.pagination .page-link {
  color: var(--fuzu-navy);
  border-radius: 8px;
  margin: 0 2px;
  border: 1px solid var(--fuzu-border);
}
.pagination .page-item.active .page-link {
  background: var(--fuzu-navy);
  border-color: var(--fuzu-navy);
  color: #fff;
}

/* ---------- Auth forms ---------- */
.auth-card {
  max-width: 460px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: var(--fuzu-radius);
  box-shadow: var(--fuzu-shadow-lg);
  padding: 2rem;
  border: 1px solid var(--fuzu-border);
}
.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fuzu-navy);
  margin-bottom: 0.3rem;
}
.auth-card .form-label { font-weight: 600; font-size: 0.9rem; }
.auth-card .form-control {
  border-radius: 8px;
  border-color: var(--fuzu-border);
  padding: 0.6rem 0.9rem;
}
.auth-card .form-control:focus {
  border-color: var(--fuzu-gold);
  box-shadow: 0 0 0 3px rgba(182,154,88,.2);
}

/* ---------- Utilities ---------- */
.bg-fuzu-light { background: var(--fuzu-light); }
.text-fuzu-navy { color: var(--fuzu-navy); }
.text-fuzu-gold { color: var(--fuzu-gold); }
.bg-fuzu-navy { background: var(--fuzu-navy); }

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .fuzu-hero { min-height: 420px; }
  .hero-search { flex-direction: column; }
  .hero-search select { border-left: none; border-top: 1px solid var(--fuzu-border); }
  .filter-sidebar { position: static; margin-bottom: 1.5rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--fuzu-gold);
  outline-offset: 2px;
}
