/*
 * Nohvis Academy — Custom Theme Overrides
 * Base: EduCom Bootstrap 3 template
 * Colors: Primary #ffb606 (gold), Dark #002147 (navy), Accent #e67e22 (orange)
 * Powersports: dust, trail, helmet iconography
 */

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
  --primary: #ffb606;
  --primary-dark: #d68910;
  --navy: #002147;
  --navy-light: #1a3a5c;
  --accent: #e67e22;
  --text-dark: #2c3e50;
  --text-muted: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-dark: #0d1b2a;
  --danger: #e74c3c;
  --success: #2ecc71;
}

/* ─── Typography ─────────────────────────────────────────── */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-theme {
  background-color: var(--primary);
  color: var(--navy);
  font-weight: 700;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-theme:hover, .btn-theme:focus {
  background-color: var(--primary-dark);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-border {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-border:hover {
  background-color: var(--primary);
  color: var(--navy);
}
.btn-theme-dark {
  background-color: var(--navy);
  color: #fff;
  font-weight: 700;
  border: none;
  transition: background-color 0.2s;
}
.btn-theme-dark:hover {
  background-color: var(--navy-light);
  color: #fff;
}

/* ─── Navigation ────────────────────────────────────────── */
.bootsnav .nav > li > a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--navy) !important;
}
.bootsnav .nav > li > a:hover,
.bootsnav .nav > li.active > a {
  color: var(--primary) !important;
}
.navbar-brand img { height: 45px; }
.attr-nav > ul > li > a {
  color: var(--navy) !important;
}

/* ─── Hero/Banner ───────────────────────────────────────── */
.banner-area {
  background-color: var(--navy) !important;
}
.banner-area h2.title,
.banner-area .breadcrumb a,
.banner-area .breadcrumb li.active {
  color: #fff !important;
}
.hero-bg {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #0d2137 100%);
  overflow: hidden;
}
.hero-bg::before {
  /* Subtle tread pattern overlay */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,182,6,0.03) 0px,
    rgba(255,182,6,0.03) 2px,
    transparent 2px,
    transparent 20px
  );
  pointer-events: none;
}

/* ─── Course Cards ──────────────────────────────────────── */
.courses-items .item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.courses-items .item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}
.courses-items .item .thumb {
  position: relative;
  overflow: hidden;
}
.courses-items .item .thumb img {
  transition: transform 0.4s;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.courses-items .item:hover .thumb img {
  transform: scale(1.05);
}
.courses-items .item .info h4 a {
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}
.courses-items .item .info h4 a:hover { color: var(--primary); text-decoration: none; }

/* Badge: difficulty */
.badge-beginner { background: #27ae60; }
.badge-intermediate { background: #e67e22; }
.badge-advanced { background: #e74c3c; }
.badge-pro { background: var(--navy); }

/* Course category pill */
.course-category-pill {
  display: inline-block;
  background: rgba(255,182,6,0.15);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* ─── Pricing ───────────────────────────────────────────── */
.pricing-item {
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  margin-bottom: 30px;
}
.pricing-item.active {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(255,182,6,0.2);
}
.pricing-item .top { padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.pricing-item h4 { color: var(--navy); font-size: 20px; font-weight: 700; }
.pricing-item .price h2 { font-size: 48px; color: var(--primary); font-weight: 800; margin: 10px 0 0; }
.pricing-item .price h2 sup { font-size: 24px; vertical-align: top; margin-top: 14px; }
.pricing-item .price span { color: var(--text-muted); font-size: 14px; }
.pricing-item .bottom ul { list-style: none; padding: 0; margin-bottom: 20px; text-align: left; }
.pricing-item .bottom ul li { padding: 6px 0; color: #555; }
.pricing-item .bottom ul li i.fas.fa-check { color: var(--success); margin-right: 8px; }

/* ─── Lesson Player ──────────────────────────────────────── */
.lesson-player-wrap { background: #0a0a0a; min-height: 60vh; }
.lesson-sidebar { background: #1a1a2e; color: #e0e0e0; min-height: 100vh; }
.lesson-sidebar .module-title {
  background: var(--navy);
  color: #fff;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lesson-sidebar .lesson-link {
  display: flex;
  align-items: center;
  padding: 10px 15px 10px 25px;
  color: #ccc;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  gap: 8px;
}
.lesson-sidebar .lesson-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.lesson-sidebar .lesson-link.active { background: rgba(255,182,6,0.1); color: var(--primary); font-weight: 700; }
.lesson-sidebar .lesson-link .check-icon { color: var(--success); font-size: 12px; flex-shrink: 0; }
.lesson-sidebar .lesson-link .lock-icon { color: #555; font-size: 12px; flex-shrink: 0; }

/* Progress bar */
.progress-bar-academy {
  background-color: var(--primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ─── Certificate ────────────────────────────────────────── */
.cert-wrapper {
  border: 4px solid var(--primary);
}

/* ─── Dashboard ─────────────────────────────────────────── */
.enrollment-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  background: #fff;
  margin-bottom: 24px;
}
.enrollment-card .ec-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.enrollment-card .ec-body { padding: 16px; }
.enrollment-card .ec-body h4 { font-size: 15px; color: var(--navy); margin: 0 0 6px; }
.enrollment-progress-bar {
  background: #e9ecef;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.enrollment-progress-bar .fill {
  background: var(--primary);
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}

/* ─── Stats Banner ──────────────────────────────────────── */
.fun-factor-area,
.fact-area {
  background: var(--navy) !important;
}
.fun-factor-area .item h2,
.fact-area .item h2 { color: var(--primary); }
.fun-factor-area .item p,
.fact-area .item p { color: rgba(255,255,255,0.8); }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--navy) !important;
  color: rgba(255,255,255,0.75);
}
footer h4 { color: var(--primary) !important; }
footer a { color: rgba(255,255,255,0.6) !important; }
footer a:hover { color: var(--primary) !important; text-decoration: none; }
.footer-bottom {
  background: rgba(0,0,0,0.3) !important;
  border-top: 1px solid rgba(255,182,6,0.2);
  color: rgba(255,255,255,0.5);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,182,6,0.15);
}
.form-control { border-radius: 4px; }

/* ─── Callout boxes (in lesson content) ──────────────────── */
.callout-box {
  border-radius: 4px;
  margin: 16px 0;
}
.callout-box.safety { border-left: 4px solid var(--danger); background: #fff5f5; }
.callout-box.tip { border-left: 4px solid var(--primary); background: #fffbef; }
.callout-box.info { border-left: 4px solid #3498db; background: #eaf4ff; }

/* ─── Tabs ───────────────────────────────────────────────── */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--navy);
  border-bottom-color: var(--primary);
  border-top: 3px solid var(--primary);
}
.nav-tabs > li > a:hover {
  color: var(--primary);
  border-color: transparent;
}

/* ─── Category cards ─────────────────────────────────────── */
.category-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.2s;
  display: block;
  color: var(--navy);
  text-decoration: none !important;
}
.category-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  color: var(--navy);
}
.category-card .cat-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 12px;
}
.category-card h4 { font-size: 15px; margin: 0 0 6px; }
.category-card p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ─── Video.js overrides ────────────────────────────────── */
.video-js .vjs-big-play-button {
  background: rgba(255,182,6,0.85) !important;
  border-color: var(--primary) !important;
}
.video-js .vjs-big-play-button:hover { background: var(--primary) !important; }
.video-js .vjs-play-progress { background: var(--primary) !important; }
.video-js .vjs-volume-level { background: var(--primary) !important; }

/* ─── Alerts ─────────────────────────────────────────────── */
.alert-theme {
  background: rgba(255,182,6,0.12);
  border: 1px solid var(--primary);
  color: var(--navy);
  border-radius: 6px;
}

/* ─── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 767px) {
  .lesson-sidebar { min-height: auto; margin-bottom: 20px; }
  .pricing-item { margin-bottom: 20px; }
}
