/* ============================================================
   DDLShip2 — Global Shipping Academy
   Theme unified with DDLSHIP platform:
   slate-900 cards · gold accents · navbar blur surfaces · Segoe UI stack
   ============================================================ */
.academy-wrap { display: flex; min-height: 100vh; background: var(--navy-950); color: var(--slate-300); }

/* ---------- Sidebar (mirrors platform .navbar) ---------- */
.acad-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: 288px;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--slate-300);
  display: flex; flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.acad-brand {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1.2rem 1.15rem 1rem;
  border-bottom: 1px solid var(--border);
}
.acad-brand .d2-badge {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.02rem;
  box-shadow: 0 3px 12px rgba(59,130,246,0.35);
}
.acad-brand .name { font-weight: 900; font-size: 1.08rem; color: #fff; letter-spacing: 0.03em; line-height: 1.15; }
.acad-brand .sub { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--slate-400); font-weight: 700; }

/* Quick launch link to DDLSHIP (mirrors .nav-link.back-academy) */
.acad-launch {
  margin: 0.9rem 0.85rem 0.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(59,130,246,0.35);
  color: #fff;
  font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}
.acad-launch:hover { background: rgba(59,130,246,0.12); color: #fff; }
.acad-launch .launch-label { display: flex; align-items: center; gap: 0.55rem; }
.acad-launch .launch-arrow { opacity: 0.85; }

.acad-nav { padding: 0.35rem 0 0.75rem; flex: 1; }

/* Mirrors platform .nav-link */
.acad-section-btn {
  width: 100%;
  display: flex; align-items: center; gap: 0.7rem;
  background: none; border: none; text-align: left;
  padding: 0.7rem 1.15rem;
  color: var(--slate-300);
  font-size: 0.9rem; font-weight: 700;
  border-radius: 8px;
  transition: all 0.13s ease;
}
.acad-section-btn:hover { color: #fff; background: rgba(59,130,246,0.07); }
.acad-section-btn .chev { margin-left: auto; color: var(--slate-500); transition: transform 0.2s ease; display: flex; }
.acad-section-btn[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--slate-500); }
.acad-section-btn[aria-expanded="true"] { color: #fff; }

.acad-topics { display: none; padding: 0.15rem 0 0.5rem; }
.acad-topics.open { display: block; }
.acad-topic-btn {
  width: 100%;
  display: flex; align-items: center; gap: 0.6rem;
  background: none; border: none; text-align: left;
  padding: 0.48rem 1.15rem 0.48rem 2.6rem;
  color: var(--slate-400);
  font-size: 0.84rem;
  border-left: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.13s ease;
  position: relative;
}
.acad-topic-btn::before {
  content: ""; position: absolute; left: 1.9rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--slate-600);
  transition: background 0.13s ease;
}
.acad-topic-btn:hover { color: #fff; background: rgba(59,130,246,0.07); }
.acad-topic-btn.active {
  color: #fff;
  background: rgba(59,130,246,0.08);
  border-left-color: #3b82f6;
  font-weight: 600;
}
.acad-topic-btn.active::before { background: #3b82f6; }

.acad-footer {
  padding: 0.9rem 1.15rem 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ---------- Main content ---------- */
.acad-main { flex: 1; margin-left: 288px; min-width: 0; }

/* Mirrors platform .navbar */
.acad-topbar {
  display: none;
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.75rem 1rem;
  align-items: center; gap: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.acad-topbar .menu-btn { background: none; border: 1px solid var(--slate-700); border-radius: 8px; color: #fff; padding: 0.4rem; display: flex; }
.acad-topbar .tb-title { font-weight: 900; font-size: 1rem; letter-spacing: 0.03em; }
.acad-topbar .tb-sub { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--slate-400); font-weight: 700; }

.acad-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2,6,23,0.6);
}

.acad-content { padding: 2.5rem 3rem 4rem; max-width: 920px; }
.acad-content h1 { font-size: 2.1rem; line-height: 1.15; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.acad-content h1 .gold { color: #fff; }
.acad-content h2 { font-size: 1.5rem; color: #fff; margin: 2.2rem 0 0.7rem; letter-spacing: -0.01em; }
.acad-content h3 { font-size: 1.05rem; color: #fff; margin: 1.6rem 0 0.5rem; }
.acad-content p { color: var(--slate-400); margin-bottom: 0.9rem; }
.acad-content ul, .acad-content ol { color: var(--slate-400); margin-bottom: 0.9rem; }
.acad-content li { margin-bottom: 0.35rem; }
.acad-content strong { color: #ffffff; }
.acad-content li::marker { color: var(--slate-500); }

.acad-breadcrumb { font-size: 0.78rem; color: var(--slate-500); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.acad-breadcrumb .sep { color: var(--slate-600); }
.acad-breadcrumb .cur { color: #fff; font-weight: 700; }

.acad-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.acad-meta .meta-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--slate-500); }
.acad-meta .badge { text-transform: none; letter-spacing: 0; }

/* Hero card (platform hero glows on a slate-900 panel) */
.acad-hero {
  background: var(--slate-900);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3.2rem 2.6rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.2rem;
}
.acad-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(59,130,246,0.07), transparent 60%),
    radial-gradient(700px 340px at 85% 10%, rgba(59,130,246,0.06), transparent 60%);
  pointer-events: none;
}
.acad-hero .pill { margin-bottom: 1.2rem; }
.acad-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 0.9rem; max-width: 680px; }
.acad-hero h1 .gold { color: #fff; }
.acad-hero .subtitle { color: var(--slate-400); font-size: 1.08rem; max-width: 600px; margin-bottom: 1.8rem; }
.acad-hero .hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.acad-hero .hero-note { margin-top: 1.4rem; font-size: 0.78rem; color: var(--slate-500); display: flex; align-items: center; gap: 0.5rem; }

/* Lesson content */
.lesson-body { margin-top: 0.5rem; }
.lesson-body .lead { font-size: 1.06rem; color: var(--slate-400); }

/* Mirrors platform card recipes (slate-900 + var(--border)) */
.lesson-table { width: 100%; border-collapse: collapse; margin: 1.1rem 0 1.4rem; font-size: 0.88rem; background: var(--slate-900); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.lesson-table th { text-align: left; background: var(--navy-950); color: #fff; padding: 0.65rem 0.9rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; }
.lesson-table td { padding: 0.6rem 0.9rem; border-top: 1px solid var(--border); color: var(--slate-300); vertical-align: top; }
.lesson-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.lesson-table td strong { color: #ffffff; }
.table-wrap-light { overflow-x: auto; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.table-wrap-light .lesson-table { margin: 0; border-radius: 0; box-shadow: none; }

/* Mirrors platform .route-item */
.checklist { list-style: none; padding-left: 0; margin: 1rem 0 1.3rem; }
.checklist li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.85rem 1rem; margin-bottom: 0.4rem;
  background: var(--slate-900); border: 1px solid var(--border);
  border-radius: 12px; color: var(--slate-300); font-size: 0.92rem;
}
.checklist li::before {
  content: ""; flex: none;
  width: 17px; height: 17px; margin-top: 0.15rem;
  border: 2px solid #3b82f6; border-radius: 5px;
  background: rgba(59,130,246,0.08);
}
.checklist li strong { color: #ffffff; }

/* Mirrors platform .quote-result */
.callout {
  display: flex; gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  margin: 1.2rem 0;
  font-size: 0.92rem;
}
.callout .co-icon { flex: none; margin-top: 0.1rem; }
.callout-gold { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02)); border: 1px solid rgba(59,130,246,0.35); color: #bfdbfe; }
.callout-blue { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02)); border: 1px solid rgba(96,165,250,0.35); color: #bfdbfe; }
.callout-green { background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02)); border: 1px solid rgba(74,222,128,0.3); color: #bbf7d0; }
.callout-red { background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02)); border: 1px solid rgba(248,113,113,0.35); color: #fecaca; }
.callout strong { color: inherit; }

/* Mirrors platform .quote-result (gold tint) */
.keybox {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
  border: 1px solid rgba(59,130,246,0.35);
  color: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.keybox .kb-title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-200); font-weight: 800; margin-bottom: 0.5rem; }
.keybox p, .keybox li { color: var(--slate-200); }

/* Mirrors platform .route-item */
.topic-nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.topic-nav a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: var(--slate-900); border: 1px solid var(--border);
  border-radius: 12px; font-size: 0.86rem; font-weight: 600; color: var(--slate-300);
  transition: all 0.15s ease;
}
.topic-nav a:hover { border-color: #3b82f6; color: #ffffff; }
.topic-nav a .dir { color: var(--slate-500); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.topic-nav a.next { margin-left: auto; }

/* Home overview cards (route-item card + feature f-icon recipe) */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.3rem 0; }
.ov-card { background: var(--slate-900); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; transition: all 0.15s ease; }
.ov-card:hover { border-color: #3b82f6; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.ov-card .ov-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #3b82f6; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.ov-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: #ffffff; }
.ov-card p { font-size: 0.85rem; color: var(--slate-400); margin: 0; }
.ov-card .ov-topics { margin-top: 0.7rem; font-size: 0.72rem; color: var(--slate-300); font-weight: 700; }

.step-list { counter-reset: step; list-style: none; padding-left: 0; margin: 1.2rem 0; }
.step-list li {
  counter-increment: step;
  display: flex; gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--slate-900); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 0.55rem; color: var(--slate-300); font-size: 0.94rem;
}
.step-list li::before {
  content: counter(step);
  flex: none; width: 26px; height: 26px; margin-top: 0.05rem;
  background: linear-gradient(135deg, #60a5fa, #2563eb); color: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .acad-sidebar { transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: none; }
  .acad-sidebar.open { transform: translateX(0); box-shadow: 24px 0 60px rgba(0,0,0,0.5); }
  .acad-backdrop.show { display: block; }
  .acad-main { margin-left: 0; }
  .acad-topbar { display: flex; }
  .acad-content { padding: 1.8rem 1.25rem 3rem; }
  .acad-hero { padding: 2.2rem 1.4rem; }
  .acad-hero h1 { font-size: 1.9rem; }
}
