:root {
  --navy: #0A2342;
  --royal: #1F5CA8;
  --accent: #C9A227;
  --success: #1E8A6E;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1B2430;
  --border: #E3E8EF;
}

* { font-family: 'General Sans', 'Segoe UI', sans-serif; }
body { background: var(--bg); color: var(--text); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--navy); }
a { text-decoration: none; }

/* ---------- Sticky top bar (ticker + header pinned together) ---------- */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: box-shadow .25s ease;
}
.site-topbar.is-scrolled { box-shadow: 0 6px 20px rgba(11, 31, 58, 0.12); }
.site-topbar.is-scrolled .site-header { box-shadow: none; }
html { scroll-behavior: smooth; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--royal); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
  z-index: 1050;
}
.back-to-top:hover { background: var(--accent); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- News Ticker ---------- */
.news-ticker-bar { background: var(--navy); color: #fff; display: flex; align-items: center; font-size: 0.85rem; overflow: hidden; }
.news-ticker-label { background: var(--accent); padding: 6px 16px; white-space: nowrap; font-weight: 600; flex-shrink: 0; }
.news-ticker-track { overflow: hidden; flex: 1; padding: 6px 0; }
.news-ticker-content { display: inline-flex; white-space: nowrap; animation: ticker-scroll 30s linear infinite; }
.news-ticker-item { padding: 0 40px; color: #fff; }
.news-ticker-item a { color: #fff; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(11,31,58,0.06); position: relative; z-index: 1030; }
.navbar-brand { display: flex; align-items: center; gap: 8px; }
.navbar-brand img { height: 42px; }
.brand-text { font-weight: 800; color: var(--navy); font-size: 1.2rem; }
.main-nav .nav-link { color: var(--navy); font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.main-nav .nav-link:hover { color: var(--royal); background: #f2f6fd; }
.header-actions { gap: 14px; }
.header-search { position: relative; }
.header-search input { border-radius: 24px; padding: 10px 42px 10px 16px; border: 1px solid #dde5f0; background: #f7f9fc; }
.header-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--royal); width: 32px; height: 32px; border-radius: 50%; }
.icon-btn { position: relative; color: #243b55; font-size: 1.05rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.icon-btn:hover { background: #f2f6fd; color: var(--royal); }
.badge-count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .65rem; font-weight: 700; line-height: 16px; text-align: center; }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); border-radius: 8px; font-weight: 600; padding: 10px 22px; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-radius: 8px; font-weight: 600; padding: 10px 22px; border: none; }
.btn-accent:hover { background: #B08D1E; color: #fff; }

/* ---------- Cards ---------- */
.card, .kit-card, .course-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.section-pad { padding: 70px 0; }
.price-old { text-decoration: line-through; color: #999; font-size: 0.9rem; }
.price-new { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.kit-card { transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.kit-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(11,31,58,0.12); }
.kit-card img { height: 210px; object-fit: cover; width: 100%; }
.kit-card .body { padding: 16px; }
.hero-section { background: linear-gradient(120deg, var(--navy), var(--royal)); color: #fff; padding: 90px 0; }
.hero-section h1 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dbe3f0; }
.site-footer h5, .site-footer h6 { color: #fff; }
.text-muted-light { color: #b7c3da; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #b7c3da; }
.footer-links a:hover { color: var(--accent); }
.social-icons a { color: #fff; margin-right: 10px; font-size: 1.1rem; }
.newsletter-form { display: flex; gap: 6px; }
.footer-bottom { background: #081527; font-size: 0.85rem; color: #93a2bd; }

/* ---------- Admin ---------- */
.admin-body { background: #0E1526; }
.admin-sidebar { background: #101A30; min-height: 100vh; color: #cfd8ea; }
.admin-sidebar .brand { color: #fff; font-weight: 800; padding: 20px; font-size: 1.2rem; }
.admin-sidebar a { color: #a9b6d1; display: block; padding: 10px 20px; border-radius: 8px; margin: 2px 10px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--royal); color: #fff; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 24px; }
.admin-content { padding: 24px; }
.stat-card { border-radius: 14px; padding: 20px; color: #fff; }
.stat-card.navy { background: var(--navy); }
.stat-card.royal { background: var(--royal); }
.stat-card.accent { background: var(--accent); }
.stat-card.success { background: var(--success); }