/* Educator courses page */
.courses-hero { position: relative; min-height: 760px; padding-top: var(--header-height); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: #031122; }
.courses-hero-image { position: absolute; z-index: -4; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.courses-hero-overlay { position: absolute; z-index: -3; inset: 0; background: linear-gradient(90deg, rgba(2,10,22,.98) 0%, rgba(4,25,49,.92) 46%, rgba(3,22,44,.55) 76%, rgba(2,12,28,.45) 100%), linear-gradient(180deg, rgba(2,10,22,.25), rgba(2,10,22,.84)); }
.courses-hero-grid { position: absolute; z-index: -2; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 82%); }
.courses-hero-inner { padding-top: 90px; padding-bottom: 82px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 11px; color: #8de4ff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: #65d9ff; box-shadow: 0 0 14px #65d9ff; }
.courses-hero h1 { max-width: 780px; margin-top: 20px; color: #fff; font-size: 5rem; letter-spacing: 0; }
.hero-summary { max-width: 700px; margin-top: 24px; color: #c2d5e1; font-size: 1.06rem; }
.courses-hero .hero-actions { margin-top: 31px; }
.hero-proof { margin-top: 43px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-proof span { min-height: 48px; padding: 10px 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(255,255,255,.06); color: #acc3d1; font-size: .7rem; backdrop-filter: blur(10px); }
.hero-proof strong { color: #fff; font-family: var(--font-heading); font-size: .85rem; }
.hero-enter { opacity: 0; transform: translateY(24px); animation: educatorHeroEnter .8s cubic-bezier(.22,.7,.2,1) forwards; animation-delay: var(--delay); }

.catalog-section { padding: 104px 0 112px; background: #f5f9fc; }
.catalog-heading { margin-bottom: 42px; display: grid; grid-template-columns: 1.1fr .7fr; align-items: end; gap: 78px; }
.catalog-heading h2 { max-width: 700px; margin-top: 13px; font-size: 3.65rem; letter-spacing: 0; }
.catalog-heading > p { color: #5e7689; font-size: .88rem; }
.course-toolbar { margin-bottom: 30px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #d9e5ec; border-radius: 8px; background: rgba(255,255,255,.92); box-shadow: 0 12px 35px rgba(13,57,86,.06); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tab { min-height: 42px; padding: 0 17px; border: 0; border-radius: 5px; background: transparent; color: #526d81; font-size: .7rem; font-weight: 800; transition: background .2s, color .2s, box-shadow .2s; }
.filter-tab:hover { background: #eaf5fa; color: #075d99; }
.filter-tab.is-active { background: var(--navy-900); color: #fff; box-shadow: 0 8px 20px rgba(4,30,55,.18); }
.course-count { padding-right: 10px; color: #708697; font-size: .7rem; white-space: nowrap; }
.course-count strong { color: var(--blue-600); font-family: var(--font-heading); font-size: 1rem; }
.course-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.catalog-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(9,66,102,.12); border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(13,57,86,.08); transition: transform .32s, box-shadow .32s, border-color .32s; }
.catalog-card:hover { transform: translateY(-7px); border-color: rgba(3,115,187,.3); box-shadow: 0 26px 64px rgba(13,57,86,.15); }
.catalog-card.is-hidden { display: none; }
.catalog-media { position: relative; aspect-ratio: 4 / 4.15; overflow: hidden; display: block; background: #e9f1f5; }
.catalog-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,12,26,0) 55%, rgba(2,12,26,.5)); pointer-events: none; }
.catalog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.7,.2,1); }
.catalog-card:hover .catalog-media img { transform: scale(1.035); }
.course-tag { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 8px 10px; border-radius: 4px; background: rgba(2,16,31,.86); color: #fff; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(8px); }
.media-arrow { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(2,16,31,.7); color: #fff; font-size: 1rem; transition: background .2s, transform .2s; }
.catalog-media:hover .media-arrow { transform: translate(2px,-2px); background: var(--blue-600); }
.catalog-body { flex: 1; padding: 23px; display: flex; flex-direction: column; }
.course-facts { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #668095; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.course-facts strong { padding: 5px 8px; border-radius: 4px; background: #e8f6fc; color: #086da9; font-size: .64rem; white-space: nowrap; }
.catalog-body h3 { margin-top: 14px; color: #0a2137; font-size: 1.28rem; line-height: 1.25; letter-spacing: 0; }
.catalog-body > p { margin-top: 13px; color: #627b8e; font-size: .78rem; }
.catalog-actions { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.catalog-actions a { min-height: 42px; display: inline-flex; align-items: center; font-size: .67rem; font-weight: 800; }
.details-link { color: #536f83; text-decoration: underline; text-decoration-color: #bfd0db; text-underline-offset: 4px; }
.details-link:hover { color: var(--blue-600); }
.enroll-link { padding: 0 13px; gap: 7px; border-radius: 5px; background: var(--navy-900); color: #fff; transition: background .2s, transform .2s; }
.enroll-link:hover { transform: translateY(-2px); background: var(--blue-700); }
.enroll-link span { color: #67ddff; }

.course-cta { padding: 76px 0; background: #04101f; }
.course-cta-inner { padding: 48px 54px; display: flex; align-items: center; justify-content: space-between; gap: 56px; border: 1px solid rgba(101,217,255,.18); border-radius: 8px; background: linear-gradient(105deg, #071c34, #0a365f 72%, #075c8a); box-shadow: 0 25px 70px rgba(0,0,0,.2); }
.course-cta-inner h2 { max-width: 650px; margin-top: 11px; font-size: 2.65rem; letter-spacing: 0; }
.course-cta-inner p { max-width: 680px; margin-top: 14px; color: #b2c9d7; font-size: .85rem; }
.course-cta-inner .button { flex: 0 0 auto; }

@keyframes educatorHeroEnter { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1020px) {
  .courses-hero { min-height: 700px; }
  .courses-hero h1 { font-size: 4.25rem; }
  .catalog-heading { grid-template-columns: 1fr; gap: 20px; }
  .catalog-heading h2 { font-size: 3.15rem; }
  .course-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-cta-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
}

@media (max-width: 680px) {
  .courses-hero { min-height: 720px; }
  .courses-hero-image { object-position: 63% center; }
  .courses-hero-overlay { background: linear-gradient(90deg, rgba(2,10,22,.97), rgba(4,25,49,.84) 72%, rgba(2,12,28,.64)), linear-gradient(180deg, rgba(2,10,22,.25), rgba(2,10,22,.86)); }
  .courses-hero-inner { padding-top: 60px; padding-bottom: 56px; }
  .courses-hero h1 { font-size: 3rem; }
  .hero-summary { font-size: .9rem; }
  .courses-hero .hero-actions { flex-direction: column; }
  .courses-hero .hero-actions .button { width: 100%; }
  .hero-proof { margin-top: 30px; display: grid; grid-template-columns: 1fr; }
  .hero-proof span { width: 100%; }
  .catalog-section { padding: 76px 0; }
  .catalog-heading h2 { font-size: 2.25rem; }
  .course-toolbar { align-items: stretch; flex-direction: column; }
  .filter-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-tab { width: 100%; padding-inline: 10px; }
  .course-count { padding: 0 4px 3px; text-align: center; }
  .course-catalog { grid-template-columns: 1fr; }
  .catalog-media { aspect-ratio: 4 / 4.4; }
  .course-cta { padding: 56px 0; }
  .course-cta-inner { padding: 34px 24px; }
  .course-cta-inner h2 { font-size: 2rem; }
  .course-cta-inner .button { width: 100%; }
}

@media (max-width: 390px) {
  .catalog-actions { align-items: stretch; flex-direction: column; }
  .catalog-actions a { justify-content: center; }
}
