.edu-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edu-hero {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 45%, #0e7490 100%);
  color: #f0f9ff;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.25);
}

.edu-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
}

.edu-hero p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.7;
}

.edu-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.edu-quick-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.edu-quick-card:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15);
  transform: translateY(-2px);
}

.edu-quick-card strong {
  display: block;
  font-size: 0.95rem;
}

.edu-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.edu-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid #bae6fd;
}

.edu-chip:hover {
  background: #bae6fd;
}

.edu-window-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

.edu-window-item {
  background: #fff;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
}

.edu-window-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.edu-window-item a {
  font-size: 0.85rem;
  color: #0284c7;
  text-decoration: none;
}

.edu-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.edu-resource-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.edu-resource-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.edu-resource-card .edu-meta {
  font-size: 0.82rem;
  color: #64748b;
}

.edu-resource-card .edu-desc {
  font-size: 0.88rem;
  color: #334155;
  flex: 1;
  line-height: 1.6;
}

.edu-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.edu-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.edu-badge-official {
  background: #dcfce7;
  color: #166534;
}

.edu-badge-featured {
  background: #fef3c7;
  color: #92400e;
}

.edu-badge-recheck {
  background: #fee2e2;
  color: #991b1b;
}

.edu-badge-l10n {
  background: #ede9fe;
  color: #5b21b6;
}

.edu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.edu-btn {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #fff;
}

.edu-btn-primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

.edu-btn-primary:hover {
  background: #0369a1;
}

.edu-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.edu-filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.edu-filter-bar input,
.edu-filter-bar select {
  min-width: 140px;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.edu-detail-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.edu-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.edu-detail-grid dt {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

.edu-detail-grid dd {
  margin: 0.15rem 0 0.75rem;
  font-weight: 500;
}

.edu-path-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: edu-step;
}

.edu-path-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  counter-increment: edu-step;
}

.edu-path-step::before {
  content: counter(edu-step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.edu-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.edu-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.edu-admin-table th,
.edu-admin-table td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.65rem;
  text-align: right;
}

.edu-admin-table th {
  background: #f1f5f9;
}

.edu-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.edu-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
}

.edu-form-grid input,
.edu-form-grid select,
.edu-form-grid textarea {
  padding: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.edu-form-grid textarea {
  min-height: 80px;
}

.edu-gap-list {
  display: grid;
  gap: 0.75rem;
}

.edu-gap-item {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1rem;
}

.edu-gap-item h3 {
  margin: 0 0 0.35rem;
  color: #92400e;
}

.edu-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.edu-nav-links a {
  color: #0284c7;
  text-decoration: none;
  font-size: 0.9rem;
}

.ai-edu-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.ai-edu-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.ai-edu-summary-card strong {
  display: block;
  font-size: 1.35rem;
  color: #0284c7;
}

.edu-path-window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.edu-tree {
  position: relative;
  max-width: 720px;
  margin: 2rem auto 3rem;
  padding: 0 1rem 2rem;
}

.edu-tree-spine {
  position: absolute;
  top: 4rem;
  bottom: 2rem;
  right: 50%;
  width: 3px;
  margin-right: -1.5px;
  background: linear-gradient(180deg, #0284c7, #0ea5e9, #94a3b8);
  border-radius: 4px;
  z-index: 0;
}

.edu-tree-node-root {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.edu-tree-audience-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #0c4a6e;
}

.edu-tree-stage {
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.edu-tree-connector {
  height: 1rem;
}

.edu-tree-stage-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
  max-width: 520px;
  margin: 0 auto;
}

.edu-path-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.edu-tree-resource-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.edu-tree-resource-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.edu-tree-resource-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.edu-tree-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0;
}

.edu-tree-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
}

.edu-stage-toggle {
  margin-top: 0.5rem;
  cursor: pointer;
}

.edu-resource-detail-panel {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

@media (max-width: 640px) {
  .edu-tree {
    max-width: 100%;
    padding: 0 0.5rem 1.5rem;
  }
  .edu-tree-spine {
    right: 1rem;
    margin-right: 0;
  }
  .edu-tree-stage-card {
    margin-right: 2rem;
    margin-left: 0;
  }
}
