:root{
  --blue:#1E3A5F;
  --green:#4CAF93;
  --yellow:#F2C94C;

  --bg:#F2F4F7;
  --panel:#ffffff;
  --ink:#0B1020;
  --muted:#6B7280;
  --line: rgba(30,58,95,.14);

  --radius:18px;
  --shadow: 0 16px 44px rgba(30,58,95,.14);
  --shadow2: 0 10px 22px rgba(30,58,95,.10);
  --focus: 0 0 0 4px rgba(76,175,147,.26);

  --h: 72px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(30,58,95,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), #fff);
}

/* A11y */
:focus-visible{ outline:none; box-shadow: var(--focus); border-radius: 12px; }
a,button,input,select{ font-size: 16px; }
h1,h2,h3{ font-family: Montserrat, Inter, sans-serif; color: var(--blue); letter-spacing:-0.01em; }
p{ line-height:1.6; }

a{ color: inherit; }
button{ font-family: inherit; }
.iconBtn{
  width:42px; height:42px;
  border-radius: 14px;
  border: 1px solid rgba(30,58,95,.14);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow2);
  display:grid; place-items:center;
  cursor:pointer;
  transition: transform .08s ease, filter .18s ease;
}
.iconBtn:active{ transform: translateY(1px); }
.iconBtn:hover{ filter: brightness(1.02); }

/* Header / toolbar */
.header{
  position: sticky; top:0; z-index: 60;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.toolbar{
  height: var(--h);
  display:flex; align-items:center; gap:12px;
  padding: 0 16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width: 240px;
}
.brand .logo{
  width:42px; height:42px; border-radius: 16px;
  border:1px solid rgba(30,58,95,.16);
  background: rgba(30,58,95,.03);
  display:grid; place-items:center; overflow:hidden;
}
.brand .logo img{ width:100%; height:100%; object-fit:contain; padding:6px; }
.brand .text b{ display:block; font-weight:900; font-size:14px; }
.brand .text span{ display:block; font-size:12.5px; color: var(--muted); margin-top:2px; }

.search{
  flex:1;
  max-width: 720px;
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  border:1px solid rgba(30,58,95,.14);
  box-shadow: var(--shadow2);
}
.search input{
  width:100%; border:0; outline:0; font-size: 15px;
}
.search .hint{ color: var(--muted); }

.tools{
  display:flex; align-items:center; gap:10px;
}
.avatar{
  width:42px; height:42px; border-radius: 999px;
  background: rgba(76,175,147,.18);
  border: 1px solid rgba(76,175,147,.35);
  display:grid; place-items:center;
  font-weight:900; color:#0B3A2F;
}

/* Navbar com dropdown */
.navbar{
  padding: 10px 16px 12px;
  display:flex; align-items:center; gap:10px;
  border-top: 1px solid rgba(30,58,95,.08);
}
.navGroup{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.navLink{
  position: relative;
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration:none;
  font-weight: 900;
  color: var(--blue);
  background: rgba(255,255,255,.0);
}
.navLink:hover{
  background: rgba(30,58,95,.05);
  border-color: rgba(30,58,95,.12);
}
.navLink.active{
  background: rgba(76,175,147,.14);
  border-color: rgba(76,175,147,.28);
}
.chev{ font-size: 12px; color: rgba(30,58,95,.7); }

.dropdown{
  position: relative;
}
.menu{
  position:absolute;
  top: calc(100% + 8px);
  left:0;
  width: 260px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(30,58,95,.14);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display:none;
}
.menu.open{ display:block; }
.menu a{
  display:flex; flex-direction:column; gap:2px;
  padding: 10px 10px;
  border-radius: 14px;
  text-decoration:none;
  color: var(--ink);
  border: 1px solid transparent;
}
.menu a:hover{
  background: rgba(30,58,95,.05);
  border-color: rgba(30,58,95,.10);
}
.menu a b{ color: var(--blue); }
.menu a small{ color: var(--muted); font-size: 12.5px; }

.rightPills{
  margin-left:auto;
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
}
.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30,58,95,.14);
  background: rgba(242,244,247,.75);
  font-weight: 900;
  color: var(--blue);
  font-size: 12.5px;
}

/* Main layout */
.main{
  padding: 18px 16px 90px; /* espaço pro bottom nav mobile */
}
.container{
  max-width: 1180px;
  margin: 0 auto;
}

/* Sections (áreas separadas) */
.section{
  margin-top: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.section .hd{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(30,58,95,.10);
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.section .hd h2{ margin:0; font-size: 18px; }
.section .hd p{ margin:4px 0 0; color: var(--muted); font-size: 14px; }
.section .bd{ padding: 16px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .search{ display:none; }
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}

/* Course cards */
.cardCourse{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(30,58,95,.14);
  background: #fff;
  box-shadow: var(--shadow2);
  display:flex; flex-direction:column; gap:10px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(242,244,247,.8);
  border: 1px solid rgba(30,58,95,.12);
  font-weight: 900;
  color: var(--blue);
  font-size: 12.5px;
  width: fit-content;
}
.progress{
  height: 10px;
  background: rgba(30,58,95,.10);
  border-radius: 999px;
  overflow:hidden;
}
.progress > span{
  display:block;
  height:100%;
  width: 0%;
  background: rgba(76,175,147,.95);
}

/* Buttons */
.btn{
  border:0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  cursor:pointer;
  font-size: 14px;
}
.btn.primary{
  position:relative;
  color:#fff;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 12px 24px rgba(30,58,95,.14);
}
.btn.primary::before{
  content:"";
  position:absolute; inset:0;
  border-radius: 16px;
  border: 2px solid rgba(242,201,76,.95);
  pointer-events:none;
  box-shadow: 0 0 0 3px rgba(242,201,76,.18);
}
.btn.ghost{
  background: rgba(30,58,95,.06);
  border: 1px solid rgba(30,58,95,.16);
  color: var(--blue);
}

/* Mobile bottom nav */
.bottomNav{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(520px, calc(100% - 24px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(30,58,95,.14);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display:none;
  padding: 10px 10px;
  gap: 10px;
  z-index: 80;
  backdrop-filter: blur(8px);
}
.bottomNav a{
  flex:1;
  text-decoration:none;
  border-radius: 16px;
  padding: 10px 10px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  font-weight: 900;
  color: var(--blue);
  border: 1px solid transparent;
}
.bottomNav a small{ font-size: 12px; color: var(--muted); font-weight: 700; }
.bottomNav a.active{
  background: rgba(76,175,147,.14);
  border-color: rgba(76,175,147,.28);
}

@media (max-width: 760px){
  .bottomNav{ display:flex; }
  .navbar{ display:none; } /* no mobile fica no bottom nav */
}

/* Mobile drawer (menu) */
.drawerOverlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.30);
  display:none;
  z-index: 90;
}
.drawerOverlay.open{ display:block; }
.drawer{
  position:fixed;
  top:0; left:0;
  width: min(340px, 86vw);
  height: 100%;
  background: rgba(255,255,255,.96);
  border-right: 1px solid rgba(30,58,95,.14);
  box-shadow: var(--shadow);
  padding: 14px;
  transform: translateX(-105%);
  transition: transform .22s var(--ease);
  z-index: 95;
}
.drawer.open{ transform: translateX(0); }
.drawer .navLink{ width:100%; justify-content:space-between; }
.drawer .menu{ position: static; width:100%; box-shadow:none; border-radius: 16px; }

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
