/* Light public education shell — scoped edu-public-* and edu-*-premium only */

.edu-public-page {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 40%, #eef2f7 100%);
  color: #0f172a;
  line-height: 1.7;
  min-height: 100vh;
}

.edu-public-topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.55rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.edu-public-topbar-inner {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.edu-public-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
}

.edu-public-topnav {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-inline: auto;
}

.edu-public-topnav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.edu-public-topnav a:hover,
.edu-public-topnav a:focus-visible {
  color: #0284c7;
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.edu-public-login {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  white-space: nowrap;
}

.edu-public-main {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.25rem auto 2rem;
}

.edu-public-main .edu-wrap-public {
  gap: 1.75rem;
}

.edu-public-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

.edu-public-footer a {
  color: #0284c7;
  text-decoration: none;
}

.edu-nav-manage-hint {
  color: #64748b !important;
  font-size: 0.85rem;
  text-decoration: none;
}

.edu-nav-manage-hint small {
  font-size: 0.75rem;
}

/* Premium hero */
.edu-hero-premium {
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.edu-hero-premium-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
}

.edu-hero-eyebrow {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}

.edu-hero-lead {
  font-size: 1.02rem;
  margin: 0.5rem 0;
  opacity: 0.95;
}

.edu-hero-micro {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0 0 1rem;
}

.edu-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.edu-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  color: #f0f9ff;
}

.edu-stat-pill strong {
  font-weight: 800;
}

.edu-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.edu-hero-illustration {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Path selector premium */
.edu-path-window-premium {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.edu-path-window-premium .edu-window-item {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.edu-path-window-premium .edu-window-item:hover {
  border-color: #7dd3fc;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}

.edu-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.edu-chip-row-icons .edu-chip-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.edu-path-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edu-path-link {
  display: block;
  padding: 0.35rem 0;
  color: #0284c7;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px dashed #e2e8f0;
}

.edu-path-link:hover {
  color: #0369a1;
}

.edu-path-selector-anchor {
  scroll-margin-top: 5rem;
}

/* Premium resource cards */
.edu-resource-card-premium,
.edu-path-card-premium {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.edu-resource-card-premium:hover,
.edu-path-card-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.12);
  border-color: #7dd3fc;
}

.edu-resource-thumb {
  height: 88px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.edu-resource-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-resource-thumb-fallback {
  font-size: 2rem;
  opacity: 0.85;
}

.edu-publisher-badge,
.edu-level-badge {
  font-weight: 600;
}

.edu-badge-rec {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.edu-filter-bar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.edu-gap-list .edu-gap-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

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

@media (max-width: 900px) {
  .edu-hero-premium-grid {
    grid-template-columns: 1fr;
  }
  .edu-hero-visual {
    order: -1;
  }
  .edu-public-topnav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .edu-path-window-grid {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }
  .edu-path-window-premium .edu-window-item {
    min-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .edu-hero-cta-row .edu-btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .edu-public-brand span {
    font-size: 0.8rem;
  }
  .edu-public-login {
    width: 100%;
    text-align: center;
  }
}
