
:root{
  --ink:#0f172a;
  --muted:#64748b;
  --line:#dbe5f2;
  --bg:#f4f7fb;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --navy:#123064;
  --soft:#eef5ff;
  --red:#b91c1c;
  --green:#15803d;
  --white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
}
a{text-decoration:none;color:inherit}
button,input{font:inherit}

.bb-top{
  min-height:82px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px max(24px,calc((100vw - 1500px)/2));
  position:sticky;
  top:0;
  z-index:30;
}
.bb-brand{display:flex;align-items:center;gap:12px;min-width:0}
.bb-brand img{width:54px;height:54px;object-fit:contain;flex:0 0 auto}
.bb-brand div{min-width:0}
.bb-brand span{display:block;font-size:24px;font-weight:950;letter-spacing:.01em;white-space:nowrap}
.bb-brand span b{color:var(--blue)}
.bb-brand small{display:block;font-weight:800;color:var(--muted);margin-top:3px}
.bb-topnav{display:flex;gap:8px;align-items:center;font-weight:800;color:#41516a}
.bb-topnav a{padding:10px 12px;border-radius:10px;white-space:nowrap}
.bb-topnav a:hover{background:#f1f5f9}
.bb-topnav .bb-real{background:#fee2e2;color:#991b1b}
.bb-topnav .bb-portal{background:#eaf2ff;color:var(--blue2)}
.bb-menu-btn{display:none;border:0;background:#eaf2ff;color:#155eef;border-radius:10px;padding:10px 13px;font-weight:900;cursor:pointer}

.bb-mobile-nav{
  display:none;
  position:sticky;
  top:78px;
  z-index:25;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:10px 12px;
  overflow-x:auto;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.bb-mobile-nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:7px;
  padding:10px 12px;
  border-radius:10px;
  background:#f8fafc;
  font-weight:850;
  color:#475569;
}
.bb-mobile-nav a.active{background:#eaf2ff;color:#155eef}

.bb-shell{
  width:min(1500px,calc(100% - 34px));
  margin:30px auto 60px;
  display:grid;
  grid-template-columns:285px minmax(0,1fr);
  gap:26px;
  align-items:start;
}
.bb-sidebar{
  position:sticky;
  top:112px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:17px;
  box-shadow:0 14px 34px rgba(20,45,80,.06);
}
.bb-course{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:19px;
  font-weight:950;
  padding:12px;
}
#module-nav{display:grid;gap:6px;margin-top:6px}
#module-nav a{
  display:flex;
  gap:11px;
  align-items:center;
  padding:13px 14px;
  border-radius:12px;
  font-weight:850;
  color:#43536b;
}
#module-nav a:hover{background:#f3f7fc}
#module-nav a.active{background:#eaf2ff;color:#155eef}

.bb-main{min-width:0}
.bb-hero{
  border:1px solid #cfe0fa;
  border-radius:24px;
  background:linear-gradient(135deg,#f9fbff,#eaf2ff);
  padding:30px 34px;
  margin-bottom:22px;
}
.bb-kicker{
  font-size:12px;
  font-weight:950;
  letter-spacing:.11em;
  color:#155eef;
  text-transform:uppercase;
}
.bb-hero h1{font-size:40px;line-height:1.07;margin:8px 0 10px}
.bb-hero p{font-size:16px;line-height:1.55;color:var(--muted);margin:0;max-width:900px}

.bb-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px;
  margin-bottom:22px;
}
.bb-panel h2{margin:0 0 8px;font-size:26px}
.bb-panel .lead{margin:0 0 18px;color:var(--muted);line-height:1.55}

.bb-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.bb-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  background:#fff;
  display:flex;
  flex-direction:column;
  min-height:180px;
}
.bb-card:hover{
  border-color:#b6cdf3;
  box-shadow:0 9px 24px rgba(37,99,235,.07);
}
.bb-card .tag{
  align-self:flex-start;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
  background:#eaf2ff;
  color:#155eef;
  padding:5px 7px;
  border-radius:999px;
}
.bb-card h3{font-size:17px;margin:11px 0 8px;line-height:1.3}
.bb-card p{font-size:13.5px;color:var(--muted);line-height:1.5;margin:0 0 14px;flex:1}
.bb-card .go{color:#155eef;font-weight:900;font-size:13px}

.bb-resource-card{
  border:1px solid var(--line);
  border-radius:15px;
  padding:15px;
  background:#fff;
  min-width:0;
}
.bb-resource-card h3{
  font-size:15px;
  margin:8px 0 12px;
  overflow-wrap:anywhere;
}
.bb-resource-card .type{font-size:10px;font-weight:950;color:#155eef}
.bb-resource-card a.btn,.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#123064;
  color:#fff;
  border-radius:10px;
  padding:10px 13px;
  font-weight:900;
  font-size:13px;
  min-height:42px;
}
.bb-resource-card audio{width:100%;margin-top:8px}
.bb-youtube img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:10px;
  background:#e5e7eb;
}
.bb-actions{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0 2px}
.btn.primary{background:#2563eb}
.btn.danger{background:#b91c1c}
.btn.light{background:#eef5ff;color:#155eef}

.bb-empty{
  border:1px dashed #b8c9df;
  border-radius:16px;
  padding:22px;
  background:#f8fafc;
  color:#64748b;
  line-height:1.6;
}
.bb-empty strong{display:block;color:#0f172a;font-size:18px;margin-bottom:7px}

.bb-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.bb-stat{border:1px solid var(--line);border-radius:14px;padding:18px;background:#fff}
.bb-stat strong{display:block;font-size:28px}
.bb-stat span{font-size:12px;color:var(--muted)}
.bb-progress{
  height:13px;
  background:#e5e7eb;
  border-radius:99px;
  overflow:hidden;
  margin:18px 0 5px;
}
.bb-progress>span{display:block;height:100%;background:linear-gradient(90deg,#155eef,#22c55e);border-radius:99px}
.bb-note{
  margin-top:18px;
  border-left:5px solid #f59e0b;
  background:#fff8e8;
  border-radius:12px;
  padding:14px 15px;
  color:#664814;
}
.bb-note b{color:#92400e}

@media(max-width:1100px){
  .bb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bb-shell{grid-template-columns:230px minmax(0,1fr)}
  .bb-topnav a{padding:9px 9px}
}

@media(max-width:820px){
  .bb-top{
    min-height:70px;
    padding:9px 12px;
  }
  .bb-brand img{width:44px;height:44px}
  .bb-brand span{font-size:19px}
  .bb-brand small{font-size:11px}
  .bb-topnav{display:none}
  .bb-menu-btn{display:inline-flex;align-items:center}
  .bb-mobile-nav{display:block}
  .bb-mobile-nav[hidden]{display:none}
  .bb-shell{
    display:block;
    width:min(100% - 18px,760px);
    margin:14px auto 40px;
  }
  .bb-sidebar{display:none}
  .bb-hero{
    border-radius:18px;
    padding:22px 19px;
    margin-bottom:16px;
  }
  .bb-kicker{font-size:10px}
  .bb-hero h1{font-size:31px}
  .bb-hero p{font-size:14px}
  .bb-panel{
    padding:18px 14px;
    border-radius:17px;
  }
  .bb-panel h2{font-size:22px}
  .bb-grid{grid-template-columns:1fr}
  .bb-card{min-height:0}
  .bb-resource-card{padding:14px}
  .bb-actions{display:grid;grid-template-columns:1fr}
  .bb-actions .btn,.bb-actions a{width:100%}
  .bb-stats{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:460px){
  .bb-brand small{display:none}
  .bb-brand span{font-size:17px}
  .bb-brand img{width:40px;height:40px}
  .bb-menu-btn{padding:9px 10px;font-size:13px}
  .bb-mobile-nav{top:64px;padding:8px}
  .bb-mobile-nav a{padding:9px 10px;font-size:13px}
  .bb-shell{width:calc(100% - 12px)}
  .bb-hero{padding:18px 15px}
  .bb-hero h1{font-size:27px}
  .bb-panel{padding:15px 11px}
  .bb-stats{grid-template-columns:1fr 1fr}
  .bb-stat{padding:14px}
  .bb-stat strong{font-size:23px}
}
