/* EduCore public marketplace homepage — shared desktop/mobile chrome */

body.ec-page {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: #f7f5ff;
  color: #0f172a;
  overflow-x: hidden;
  padding-top: 108px;
}
html.is-iframed body.ec-page {
  padding-top: 0;
}

.ec-skip {
  position: absolute;
  left: -9999px;
}
.ec-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100010;
  background: #fff;
  padding: 0.5rem 1rem;
}

/* Secondary EduCore nav sits under injected #navbar */
.ec-subnav {
  position: sticky;
  top: 108px;
  z-index: 99990;
  background: #fff;
  border-bottom: 1px solid #ede9fe;
  box-shadow: 0 1px 0 rgba(124, 58, 237, 0.06);
}
.ec-subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ec-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.ec-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.ec-brand-name {
  font-weight: 800;
  color: #1e1b4b;
  font-size: 1.05rem;
  line-height: 1.1;
}
.ec-brand-sub {
  display: block;
  font-size: 0.68rem;
  color: #7c3aed;
  font-weight: 600;
}
.ec-subnav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.ec-subnav-links a {
  display: block;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ec-subnav-links a:hover,
.ec-subnav-links a[aria-current="page"] {
  color: #6d28d9;
  border-bottom-color: #7c3aed;
}
.ec-subnav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.ec-loc-select,
.ec-mode-select {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  max-width: 9.5rem;
}
.ec-subnav-auth {
  display: flex;
  gap: 0.4rem;
}
.ec-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.ec-btn-primary {
  background: #6d28d9;
  color: #fff;
}
.ec-btn-primary:hover {
  background: #5b21b6;
}
.ec-btn-ghost {
  background: #fff;
  color: #5b21b6;
  border: 1.5px solid #ddd6fe;
}
.ec-btn-dark {
  background: #1e1b4b;
  color: #fff;
}
.ec-menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.3rem;
  color: #4c1d95;
}

.ec-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ec-hero {
  padding: 2.2rem 1.25rem 1.5rem;
}
.ec-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.ec-kicker {
  display: inline-flex;
  gap: 0.45rem;
  color: #7c3aed;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}
.ec-hero h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 0.9rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.ec-lead {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 1.35rem;
}
.ec-search {
  display: flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.08);
}
.ec-search select,
.ec-search input {
  border: 0;
  background: transparent;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}
.ec-search select {
  border-right: 1px solid #e2e8f0;
  font-weight: 600;
  color: #334155;
}
.ec-search input {
  flex: 1;
  min-width: 0;
}
.ec-search button {
  margin: 0.25rem;
  width: 46px;
  border: 0;
  border-radius: 999px;
  background: #6d28d9;
  color: #fff;
  cursor: pointer;
}
.ec-popular {
  margin: 0.85rem 0 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}
.ec-popular a {
  color: #6d28d9;
  text-decoration: none;
  font-weight: 600;
  margin-right: 0.55rem;
}
.ec-hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ec-hero-visual {
  position: relative;
  min-height: 360px;
}
.ec-hero-photo {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(76, 29, 149, 0.18);
  background: #ddd6fe;
}
.ec-hero-photo img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.ec-blob {
  position: absolute;
  right: -8%;
  top: 8%;
  width: 58%;
  height: 70%;
  background: #c4b5fd;
  border-radius: 40% 60% 55% 45%;
  z-index: -1;
}
.ec-float {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.ec-float small {
  display: block;
  font-weight: 500;
  color: #64748b;
}
.ec-float-1 {
  left: 0;
  top: 18%;
}
.ec-float-2 {
  right: 6%;
  top: 8%;
}
.ec-float-3 {
  right: 4%;
  bottom: 12%;
}
.ec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.ec-services {
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  margin: 0.5rem auto 2rem;
  max-width: 1280px;
}
.ec-service {
  padding: 1.1rem 0.9rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #f1f5f9;
}
.ec-service:last-child {
  border-right: 0;
}
.ec-service i {
  color: #7c3aed;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.ec-service strong {
  display: block;
  font-size: 0.9rem;
}
.ec-service span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.ec-section {
  padding: 1.6rem 0 0.4rem;
}
.ec-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ec-section h2 {
  margin: 0;
  font-size: 1.45rem;
}
.ec-section-head a {
  color: #6d28d9;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
.ec-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.ec-cat {
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 16px;
  padding: 0.9rem;
  text-decoration: none;
  color: inherit;
  min-height: 92px;
}
.ec-cat i {
  color: #7c3aed;
  margin-bottom: 0.35rem;
}
.ec-cat strong {
  display: block;
  font-size: 0.88rem;
}
.ec-cat span {
  font-size: 0.75rem;
  color: #64748b;
}

.ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ec-card {
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.ec-card img,
.ec-card-thumb {
  height: 132px;
  width: 100%;
  object-fit: cover;
  background: #ddd6fe;
  display: grid;
  place-items: center;
  color: #6d28d9;
  font-weight: 800;
}
.ec-card-body {
  padding: 0.9rem 1rem 1.05rem;
}
.ec-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.ec-meta {
  color: #64748b;
  font-size: 0.8rem;
}
.ec-price {
  color: #6d28d9;
  font-weight: 800;
  margin-top: 0.45rem;
}
.ec-demo {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.3rem;
}
.ec-empty {
  background: #fff;
  border: 1px dashed #ddd6fe;
  border-radius: 16px;
  padding: 1.25rem;
  color: #64748b;
}

.ec-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.ec-promo {
  background: linear-gradient(135deg, #ede9fe, #f5f3ff);
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}
.ec-promo h3 {
  margin: 0;
  font-size: 1.3rem;
}

.ec-footer {
  margin-top: 3rem;
  background: #0b1220;
  color: #cbd5e1;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.ec-footer a {
  color: #c4b5fd;
}

@media (max-width: 1024px) {
  .ec-cats {
    grid-template-columns: repeat(3, 1fr);
  }
  .ec-services {
    grid-template-columns: repeat(3, 1fr);
  }
  .ec-hero-grid,
  .ec-split,
  .ec-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .ec-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }
  .ec-subnav-links,
  .ec-subnav-tools {
    display: none;
  }
  .ec-subnav.is-open .ec-subnav-links,
  .ec-subnav.is-open .ec-subnav-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .ec-subnav.is-open .ec-subnav-inner {
    flex-wrap: wrap;
  }
  .ec-cats,
  .ec-services {
    grid-template-columns: 1fr 1fr;
  }
  .ec-float {
    position: static;
    margin-top: 0.6rem;
  }
  .ec-hero-visual {
    min-height: 0;
  }
  .ec-blob {
    display: none;
  }
}
