/* Englivision platform pages: home, auth, header, footer, themes */

/* Header */
.ev-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--ev-header-bg);
  border-bottom: 1px solid var(--ev-line);
}
.ev-header__inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ev-header__brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  min-width: 0;
}
.ev-header__brand img,
.ev-header__logo {
  width: auto;
  height: 58px;
  max-width: min(220px, 46vw);
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ev-line);
  flex: 0 0 auto;
  display: block;
}
html[data-theme="dark"] .ev-header__logo {
  background: #fff;
  border-color: rgba(148,183,210,.2);
}
.ev-header__nav {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.ev-header__nav a:not(.ev-btn) {
  text-decoration: none; color: var(--ev-navy); font-weight: 800;
  padding: 10px 14px; border-radius: 999px;
}
.ev-header__nav a:not(.ev-btn):hover {
  background: rgba(15,157,138,.1); color: var(--ev-teal);
}
.ev-header__theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 4px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: var(--ev-surface-soft);
  border: 1px solid var(--ev-line);
}
.ev-header__themeLabel {
  font-size: .78rem;
  font-weight: 800;
  color: var(--ev-muted);
  white-space: nowrap;
}
html[data-theme="dark"] .ev-header__theme {
  background: rgba(19, 42, 64, 0.8);
  border-color: rgba(45, 212, 191, 0.28);
}

/* Hero — full bleed */
.ev-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid; align-items: end;
  overflow: hidden;
  color: #fff;
}
.ev-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  animation: evKenBurns 18s ease-in-out infinite alternate;
}
.ev-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,37,64,.9) 0%, rgba(10,37,64,.66) 48%, rgba(10,37,64,.3) 100%),
    linear-gradient(180deg, rgba(10,37,64,.2) 0%, rgba(10,37,64,.58) 100%);
}
html[data-theme="dark"] .ev-hero__shade {
  background:
    linear-gradient(90deg, rgba(4,13,22,.94) 0%, rgba(7,19,31,.78) 50%, rgba(7,19,31,.42) 100%),
    linear-gradient(180deg, rgba(4,13,22,.25) 0%, rgba(4,13,22,.7) 100%);
}
.ev-hero__content {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  max-width: 720px;
}
.ev-hero h1,
.ev-hero h2,
.ev-hero h3,
.ev-hero .ev-hero__brand,
body.englivision-platform .ev-hero__brand,
body.ev-platform .ev-hero__brand {
  font-family: var(--ev-font-en);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: #ffffff !important;
  text-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.ev-hero .ev-kicker {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22);
}
.ev-hero__lead,
.ev-hero p {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.85;
  max-width: 38ch;
  color: rgba(255,255,255,.94) !important;
}
.ev-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ev-hero__chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none;
}
.ev-hero__chips li {
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 800; font-size: .9rem;
}
@keyframes evKenBurns {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .ev-hero__bg { animation: none; }
}

/* Grades */
.ev-grades { padding: 72px 0 40px; }
.ev-grades__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.ev-grade {
  display: grid; gap: 0;
  text-decoration: none; color: inherit;
  background: var(--ev-surface); border: 1px solid var(--ev-line);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--ev-shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ev-grade:hover {
  transform: translateY(-6px);
  box-shadow: var(--ev-shadow);
  border-color: rgba(15,157,138,.35);
}
.ev-grade__media { aspect-ratio: 16/11; background: linear-gradient(135deg, #0a2540, #0f9d8a); }
.ev-grade__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-grade__body { padding: 16px 18px 18px; }
.ev-grade__body h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 900; color: var(--ev-navy); }
.ev-grade__body span { color: var(--ev-teal); font-weight: 800; font-size: .92rem; }

/* Teachers */
.ev-teachers { padding: 40px 0 80px; }
.ev-teachers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.ev-teacher {
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  border-radius: 28px;
  padding: 22px 18px 20px;
  text-align: center;
  box-shadow: var(--ev-shadow-soft);
  transition: transform .22s ease, border-color .22s ease;
}
.ev-teacher:hover { transform: translateY(-5px); border-color: rgba(15,157,138,.35); }
.ev-teacher__photo {
  width: 112px; height: 112px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid rgba(15,157,138,.25);
  background: linear-gradient(145deg, #0a2540, #14b8a6);
}
.ev-teacher__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-teacher__photo span {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: #fff; font-family: var(--ev-font-en); font-weight: 800; font-size: 1.8rem;
}
.ev-teacher h3 {
  margin: 0 0 8px; font-size: 1.15rem; font-weight: 900; color: var(--ev-navy);
}
.ev-teacher__bio {
  margin: 0;
  color: var(--ev-muted);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.7;
}
.ev-teacher__grades {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px;
}
.ev-teacher__grades span {
  padding: 6px 10px; border-radius: 999px;
  background: rgba(15,157,138,.1); color: var(--ev-teal);
  font-size: .8rem; font-weight: 800;
}
html[data-theme="dark"] .ev-teacher__grades span {
  background: rgba(45,212,191,.12);
}

/* CTA */
.ev-cta { padding: 0 0 80px; }
.ev-cta__box {
  border-radius: 32px;
  padding: 42px 28px;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(56,189,248,.28), transparent 50%),
    linear-gradient(135deg, #071b2e 0%, #0a2540 42%, #0f6f66 100%);
  color: #fff !important;
  text-align: center;
  box-shadow: var(--ev-shadow);
}
html[data-theme="dark"] .ev-cta__box {
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(45,212,191,.2), transparent 50%),
    linear-gradient(135deg, #040d16 0%, #0a1f33 45%, #0b4f4a 100%);
}
body.englivision-platform .ev-cta__box h2,
body.ev-platform .ev-cta__box h2,
.ev-cta__box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #ffffff !important;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
}
body.englivision-platform .ev-cta__box p,
body.ev-platform .ev-cta__box p,
.ev-cta__box p {
  margin: 0 0 22px;
  font-weight: 700;
  color: rgba(255,255,255,.94) !important;
  opacity: 1;
}
.ev-cta__box .ev-kicker {
  background: rgba(255,255,255,.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.28);
}
.ev-cta__box .ev-btn--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #14b8a6, #0f9d8a);
  box-shadow: 0 14px 32px rgba(15,157,138,.45);
}

/* Auth */
.ev-auth {
  width: min(1100px, calc(100% - 24px));
  margin: 28px auto 60px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 640px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--ev-surface);
  border: 1px solid var(--ev-line);
  box-shadow: var(--ev-shadow);
}
.ev-auth__panel { padding: 42px 36px; display: grid; align-content: center; gap: 18px; }
.ev-auth__title {
  margin: 0; font-family: var(--ev-font-en); font-size: 2rem; font-weight: 800; color: var(--ev-navy);
}
.ev-auth__sub { margin: 0; color: var(--ev-muted); font-weight: 700; }
.ev-auth__form { display: grid; gap: 14px; }
.ev-auth__form .field { display: grid; gap: 6px; }
.ev-auth__form .label { font-weight: 800; color: var(--ev-navy); }
.ev-auth__form .input {
  min-height: 48px; border-radius: 14px; border: 1px solid var(--ev-line);
  padding: 0 14px; font: inherit; background: var(--ev-surface-soft); color: var(--ev-ink);
}
.ev-auth__form .input:focus {
  outline: 2px solid rgba(15,157,138,.35);
  border-color: rgba(15,157,138,.45);
}
.ev-auth__submit {
  min-height: 50px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--ev-teal), #0b7f71);
  color: #fff; font: inherit; font-weight: 900; cursor: pointer;
}
.ev-auth__meta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.ev-auth__meta a, .ev-auth__meta button {
  background: none; border: 0; color: var(--ev-teal); font: inherit; font-weight: 800;
  cursor: pointer; text-decoration: none; padding: 0;
}
.ev-auth__wall { position: relative; min-height: 100%; background: #0a2540; }
.ev-auth__wallImg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-auth__notice {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.2);
  color: var(--ev-ink);
}
.ev-auth__notice--ok { background: rgba(15,157,138,.1); border-color: rgba(15,157,138,.25); }
.ev-auth__notice--info { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.28); }

/* ========== Professional Footer ========== */
.ev-end {
  position: relative;
  margin-top: 24px;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(20,184,166,.18), transparent 55%),
    radial-gradient(600px 240px at 100% 100%, rgba(56,189,248,.12), transparent 50%),
    var(--ev-footer-bg);
  color: #fff;
  overflow: hidden;
}
.ev-end::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #0f9d8a, #38bdf8, #0f9d8a);
}
.ev-end__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 28px;
  position: relative;
  z-index: 1;
}
.ev-end__top {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ev-end__brand {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.ev-end__mark {
  width: 140px;
  height: 140px;
  border-radius: 22px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.ev-end__line {
  margin: 0;
  color: var(--ev-footer-text);
  font-size: .95rem;
  line-height: 1.85;
  max-width: 34ch;
  font-weight: 600;
}
.ev-end__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ev-end__label {
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ev-teal-2);
}
.ev-end__links,
.ev-end__phones {
  display: grid;
  gap: 10px;
}
.ev-end__links a,
.ev-end__phones a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: color .2s ease, transform .2s ease;
}
.ev-end__links a:hover,
.ev-end__phones a:hover {
  color: #fff;
  transform: translateX(-3px);
}
.ev-end__phone {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: plaintext;
}
.ev-end__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ev-end__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.ev-end__social:hover {
  transform: translateY(-2px);
  background: rgba(15,157,138,.22);
  border-color: rgba(45,212,191,.4);
}
.ev-end__social img {
  width: 26px; height: 26px; object-fit: contain; border-radius: 8px; background: #fff;
}
.ev-end__socialSvg {
  width: 18px; height: 18px; display: grid; place-items: center;
}
.ev-end__socialSvg svg { width: 18px; height: 18px; display: block; }
.ev-end__empty {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.7;
}
.ev-end__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  color: rgba(255,255,255,.55);
  font-size: .86rem;
  font-weight: 600;
}
.ev-end__legal strong { color: rgba(255,255,255,.82); font-weight: 800; }

@media (max-width: 900px) {
  .ev-hero { min-height: 78vh; }
  .ev-hero__content { margin-bottom: 48px; }
  .ev-auth { grid-template-columns: 1fr; }
  .ev-auth__wall { min-height: 240px; order: -1; }
  .ev-header__logo { height: 50px; }
  .ev-header__themeLabel { display: none; }
  .ev-end__mark { width: 112px; height: 112px; }
  .ev-header__nav a:not(.ev-btn) { padding: 8px 10px; font-size: .9rem; }
  .ev-end__top { grid-template-columns: 1fr; gap: 28px; }
  .ev-end__cols { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .ev-header__nav a:not(.ev-btn):not(.ev-header__ctaMobile) { display: none; }
  .ev-header__inner { min-height: 68px; }
}
