/* =========================
   Learnlio Global Styles
   (single source of truth)
   ========================= */

:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;   /* blue */
  --primary-2: #1d4ed8; /* darker blue */
  --shadow: 0 10px 30px rgba(17,24,39,0.08);
  --radius: 16px;
  --container: 1060px;
}

/* Reset-ish */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Links */
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

/* Layout container */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   Header / Navbar (the “nice” design)
   ========================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(246,248,251,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 180px;
}

.brand img{
  height: 34px;         /* ✅ locks logo size */
  max-height: 34px;     /* ✅ prevents huge logo */
  width:auto;
  display:block;
}

.brand .brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand .brand-text strong{
  font-size: 14px;
  letter-spacing: 0.2px;
}
.brand .brand-text span{
  font-size: 12px;
  color: var(--muted);
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav-link{
  padding: 10px 12px;
  border-radius: 12px;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.nav-link:hover{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.18);
}

.nav-link.active{
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.22);
}

/* CTA button */
.nav-cta{
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: 0;
}
.nav-cta:hover{ background: var(--primary-2); }

/* Mobile menu button */
.menu-btn{
  display:none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

/* Mobile behaviour */
@media (max-width: 820px){
  .menu-btn{ display:inline-flex; align-items:center; gap:8px; }

  .nav-links{
    display:none;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    justify-content:flex-start;
  }

  .nav-links.open{ display:flex; }
}

/* =========================
   Page shell
   ========================= */
.page{
  padding: 22px 0 42px;
}

.page-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin: 10px 0 18px;
}

.page-title h1{
  font-size: 26px;
  margin:0;
}

.page-title p{
  margin:6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Card */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Buttons (general) */
.btn{
  appearance:none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor:pointer;
  background: var(--primary);
  color: #fff;
}
.btn:hover{ background: var(--primary-2); }

.btn.secondary{
  background: #fff;
  color: #111827;
  border: 1px solid var(--border);
}
.btn.secondary:hover{
  background: rgba(17,24,39,0.03);
}

/* Inputs */
.input{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 15px;
}
.input:focus{
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* Helpful spacing */
.stack-12 > * + *{ margin-top:12px; }
.stack-16 > * + *{ margin-top:16px; }
