/* ==========================================================================
   Academy shell – header, footer, page banner, pill buttons and decorations.
   Loaded on every academy page (classic and Tailwind layouts), so it is plain
   CSS that works with or without a CSS reset.
   ========================================================================== */
:root {
  --ed-violet: #543ee8; --ed-violet-d: #4330c9; --ed-violet-soft: #efecff;
  --ed-yellow: #ffcd20; --ed-yellow-d: #f2bd00;
  --ed-ink: #011c1a; --ed-text: #5f5d5d; --ed-cream: #faf9f6; --ed-card: #f5f5f5;
  --ed-coral: #d73b3e; --ed-coral-soft: #fdedeb; --ed-mint: #62c594; --ed-mint-soft: #e3f4e6; --ed-line: #e9e6df;
  --ed-display: "Albert Sans", "Poppins", system-ui, sans-serif; --ed-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.eh-top, .eh-top *, .eh-nav, .eh-nav *, .eh-drawer, .eh-drawer *, .ef, .ef *, .ed-banner, .ed-banner *, .ed-btn, .ed-btn * { box-sizing: border-box; }
.eh-top a, .eh-nav a, .eh-drawer a, .ef a, .ed-banner a, a.ed-btn { text-decoration: none; }
.eh-top button, .eh-nav button, .eh-drawer button, .ef button { font-family: inherit; cursor: pointer; }
.eh-top img, .ef img { max-width: 100%; display: block; }

/* ---------- Pill buttons with the circular arrow ---------- */
.ed-btn { position: relative; display: inline-flex; align-items: center; gap: 14px; overflow: hidden; background: var(--ed-violet); color: #fff; border: 0; border-radius: 52px; padding: 7px 7px 7px 26px; font: 500 16px/1.25 var(--ed-body); cursor: pointer; white-space: nowrap; transition: background-color .3s, color .3s, transform .2s, box-shadow .3s; box-shadow: 0 10px 24px -12px rgba(84,62,232,.75); }
.ed-btn .arw { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ed-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: transform .35s cubic-bezier(.2,.8,.2,1), background-color .3s, color .3s; }
.ed-btn:hover { background: var(--ed-ink); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(1,28,26,.6); }
.ed-btn:hover .arw { transform: rotate(-45deg); background: var(--ed-yellow); }
.ed-btn:active { transform: translateY(0) scale(.98); }
.ed-btn.yellow { background: var(--ed-yellow); color: var(--ed-ink); box-shadow: 0 10px 24px -12px rgba(255,205,32,.9); }
.ed-btn.yellow .arw { background: var(--ed-ink); color: #fff; }
.ed-btn.yellow:hover { background: #fff; color: var(--ed-ink); } .ed-btn.yellow:hover .arw { background: var(--ed-violet); color: #fff; }
.ed-btn.plain { padding: 14px 28px; justify-content: center; }
.ed-btn.sm { font-size: 14px; padding: 5px 5px 5px 20px; gap: 10px; } .ed-btn.sm .arw { width: 32px; height: 32px; font-size: 13px; } .ed-btn.sm.plain { padding: 11px 22px; }
.ed-btn.block { display: flex; width: 100%; justify-content: space-between; } .ed-btn.block.plain { justify-content: center; }
.ed-btn .ripple, .ed-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.4); transform: scale(0); animation: ed-ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ed-ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Header: top tier ---------- */
.eh-top { background: linear-gradient(90deg, #fbfaf4 0%, #fff 45%, #f1f8f1 100%); font-family: var(--ed-body); color: var(--ed-ink); position: relative; z-index: 60; }
.eh-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 26px; }
.eh-top .eh-wrap { height: 84px; }
.eh-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ed-ink); font: 800 12px/1.15 var(--ed-display); letter-spacing: .08em; text-transform: uppercase; }
.eh-brand img { height: 46px; width: auto; }
.eh-brand:hover { color: var(--ed-violet); text-decoration: none; }
.eh-search { flex: 1; max-width: 560px; display: flex; align-items: center; background: #fff; border-radius: 52px; padding: 5px 5px 5px 8px; box-shadow: 0 6px 30px -10px rgba(1,28,26,.18); border: 1px solid #f0eee8; margin: 0 0 0 14px; transition: box-shadow .3s, border-color .3s; }
.eh-search:focus-within { border-color: rgba(84,62,232,.45); box-shadow: 0 10px 34px -10px rgba(84,62,232,.35); }
.eh-search select, .eh-search input { border: 0; background: transparent; outline: 0; font: 400 14px/1.4 var(--ed-body); color: var(--ed-ink); box-shadow: none; height: 40px; margin: 0; }
.eh-search select { padding: 0 30px 0 16px; max-width: 170px; cursor: pointer; -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23011c1a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; }
.eh-search .sep { width: 1px; height: 22px; background: #d9d6cf; flex: none; margin: 0 6px; }
.eh-search input { flex: 1; min-width: 0; padding: 0 12px; }
.eh-search input:focus, .eh-search select:focus { outline: 0; box-shadow: none; }
.eh-search button { flex: none; border: 0; background: var(--ed-violet); color: #fff; border-radius: 52px; height: 42px; padding: 0 22px; font: 500 14px/1 var(--ed-body); display: inline-flex; align-items: center; gap: 8px; transition: background-color .3s, transform .2s; }
.eh-search button:hover { background: var(--ed-ink); transform: translateY(-1px); }
.eh-social { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.eh-social a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ed-ink); font-size: 15px; transition: background-color .25s, color .25s, transform .25s; }
.eh-social a:hover { background: var(--ed-violet); color: #fff; transform: translateY(-2px); }
.eh-auth { display: flex; align-items: center; gap: 10px; flex: none; }
.eh-top .eh-wrap > .eh-auth { margin-left: auto; } .eh-top .eh-wrap > .eh-social + .eh-auth { margin-left: 0; }
.eh-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 52px; padding: 12px 24px; font: 500 14px/1.2 var(--ed-body); color: #263238; transition: transform .2s, box-shadow .3s, background .3s, color .3s; white-space: nowrap; }
.eh-pill.yellow { background: var(--ed-yellow); } .eh-pill.yellow:hover { background: var(--ed-ink); color: #fff; transform: translateY(-2px); }
.eh-pill.light { background: linear-gradient(#fff 0%, #d7e1d8 100%); } .eh-pill.light:hover { background: var(--ed-violet); color: #fff; transform: translateY(-2px); }
.eh-bell { position: relative; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ed-ink); box-shadow: 0 4px 16px -6px rgba(1,28,26,.2); transition: transform .2s, color .2s; }
.eh-bell:hover { color: var(--ed-violet); transform: translateY(-2px); }
.eh-bell b { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--ed-violet); color: #fff; font: 600 10px/19px var(--ed-body); text-align: center; }
.eh-user { position: relative; }
.eh-user > button { display: flex; align-items: center; gap: 10px; border: 0; background: #fff; border-radius: 52px; padding: 4px 14px 4px 4px; box-shadow: 0 4px 16px -6px rgba(1,28,26,.2); color: var(--ed-ink); font: 500 14px/1.2 var(--ed-body); transition: box-shadow .3s; }
.eh-user > button:hover { box-shadow: 0 8px 22px -8px rgba(84,62,232,.5); }
.eh-user > button img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.eh-user > button i { font-size: 11px; transition: transform .25s; } .eh-user.open > button i { transform: rotate(180deg); }
.eh-user-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(1,28,26,.35); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 80; }
.eh-user.open .eh-user-menu { opacity: 1; visibility: visible; transform: none; }
.eh-user-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid #f0eee8; margin-bottom: 6px; }
.eh-user-menu .who strong { display: block; font: 700 15px/1.3 var(--ed-display); color: var(--ed-ink); } .eh-user-menu .who small { color: var(--ed-text); font-size: 12px; }
.eh-user-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ed-ink); font-size: 14px; transition: background-color .2s, color .2s, padding .2s; }
.eh-user-menu a i { width: 18px; text-align: center; color: var(--ed-violet); }
.eh-user-menu a:hover { background: var(--ed-violet-soft); color: var(--ed-violet); padding-left: 16px; text-decoration: none; }
.eh-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ed-ink); font-size: 22px; align-items: center; justify-content: center; box-shadow: 0 4px 16px -6px rgba(1,28,26,.2); }

/* ---------- Header: navigation tier (sticks to the top) ---------- */
.eh-nav { background: #fff; font-family: var(--ed-body); position: sticky; top: 0; z-index: 55; box-shadow: 0 1px 0 #f0eee8; transition: box-shadow .3s; }
.eh-nav.stuck { box-shadow: 0 10px 30px -14px rgba(1,28,26,.22); }
.eh-nav .eh-wrap { height: 62px; }
.eh-menu { display: flex; align-items: center; gap: 4px; margin: 0 0 0 -14px; padding: 0; list-style: none; }
.eh-menu a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font: 500 16px/1.2 var(--ed-body); color: var(--ed-ink); transition: color .25s; }
.eh-menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ed-violet); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.eh-menu a:hover, .eh-menu a.active { color: var(--ed-violet); text-decoration: none; } .eh-menu a:hover::after, .eh-menu a.active::after { transform: scaleX(1); }
.eh-contact { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ed-ink); }
.eh-contact a { color: var(--ed-ink); transition: color .25s; } .eh-contact a:hover { color: var(--ed-violet); text-decoration: none; }
.eh-contact .dot { width: 5px; height: 5px; border-radius: 50%; background: #c9c6bf; }
.eh-contact i { color: var(--ed-violet); margin-right: 6px; }

/* ---------- Mobile drawer ---------- */
.eh-scrim { position: fixed; inset: 0; background: rgba(1,28,26,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90; }
.eh-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; z-index: 95; transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); padding: 22px 22px 30px; overflow-y: auto; font-family: var(--ed-body); display: flex; flex-direction: column; gap: 18px; }
body.eh-open .eh-scrim { opacity: 1; visibility: visible; } body.eh-open .eh-drawer { transform: none; } body.eh-open { overflow: hidden; }
.eh-drawer .top { display: flex; align-items: center; justify-content: space-between; }
.eh-drawer .close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ed-card); font-size: 18px; color: var(--ed-ink); }
.eh-drawer form { display: flex; background: var(--ed-card); border-radius: 52px; padding: 4px; margin: 0; }
.eh-drawer form input, .eh-drawer form input:focus { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font: 400 14px/1 var(--ed-body); outline: 0; box-shadow: none; }
.eh-drawer form button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ed-violet); color: #fff; }
.eh-drawer nav { display: flex; flex-direction: column; }
.eh-drawer nav a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #f0eee8; color: var(--ed-ink); font: 500 16px/1.2 var(--ed-body); }
.eh-drawer nav a i { color: var(--ed-violet); width: 20px; text-align: center; } .eh-drawer nav a:hover { color: var(--ed-violet); }
.eh-drawer .acts { display: flex; gap: 10px; margin-top: auto; } .eh-drawer .acts .eh-pill { flex: 1; justify-content: center; }

/* ---------- Page banner (inner pages) ---------- */
.ed-banner { position: relative; overflow: hidden; font-family: var(--ed-body); text-align: center; padding: 74px 20px 78px; background: radial-gradient(52% 130% at 88% 45%, #dcf1e0 0%, rgba(220,241,224,0) 62%), radial-gradient(40% 120% at 0% 60%, #f3efdc 0%, rgba(243,239,220,0) 70%), var(--ed-cream); }
.ed-banner h1 { margin: 0; font: 700 clamp(30px, 4vw, 44px)/1.15 var(--ed-display); letter-spacing: -.02em; color: var(--ed-ink); position: relative; }
.ed-crumbs { margin-top: 14px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ed-text); display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; }
.ed-crumbs a { color: var(--ed-coral); font-weight: 500; } .ed-crumbs a:hover { color: var(--ed-violet); text-decoration: none; }
.ed-banner p.lead { max-width: 640px; margin: 14px auto 0; color: var(--ed-text); font-size: 16px; line-height: 1.7; position: relative; }

/* ---------- Decorations ---------- */
.ed-deco { position: absolute; pointer-events: none; }
.ed-dots { width: 92px; height: 92px; background-image: radial-gradient(var(--ed-mint) 2.2px, transparent 2.6px); background-size: 18px 18px; }
.ed-dots.violet { background-image: radial-gradient(rgba(255,255,255,.35) 2.2px, transparent 2.6px); }
@keyframes ed-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ed-float-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }
@keyframes ed-spin { to { transform: rotate(360deg); } }
@keyframes ed-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }
.ed-float { animation: ed-float 6s ease-in-out infinite; } .ed-float-slow { animation: ed-float 9s ease-in-out infinite; } .ed-float-x { animation: ed-float-x 7s ease-in-out infinite; } .ed-spin { animation: ed-spin 22s linear infinite; } .ed-twinkle { animation: ed-twinkle 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ed-float, .ed-float-slow, .ed-float-x, .ed-spin, .ed-twinkle { animation: none; } }

/* ---------- Footer ---------- */
.ef { position: relative; overflow: hidden; background: var(--ed-cream); font-family: var(--ed-body); color: var(--ed-text); font-size: 15px; line-height: 1.75; margin-top: 90px; }
.ef-main { max-width: 1320px; margin: 0 auto; padding: 84px 24px 70px; display: grid; grid-template-columns: 1.5fr .8fr 1.25fr 1.3fr; gap: 44px; position: relative; }
.ef h4 { margin: 0 0 24px; font: 700 20px/1.2 var(--ed-display); letter-spacing: -.01em; color: var(--ed-ink); }
.ef p { margin: 0; }
.ef .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ed-ink); font: 800 12px/1.15 var(--ed-display); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.ef .brand img { height: 50px; width: auto; }
.ef .social { display: flex; gap: 6px; margin-top: 24px; }
.ef .social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ed-ink); box-shadow: 0 4px 14px -6px rgba(1,28,26,.2); transition: background-color .25s, color .25s, transform .25s; }
.ef .social a:hover { background: var(--ed-violet); color: #fff; transform: translateY(-3px); }
.ef ul { list-style: none; margin: 0; padding: 0; }
.ef ul li { margin-bottom: 12px; }
.ef ul a { color: var(--ed-text); transition: color .25s, padding .25s; display: inline-block; } .ef ul a:hover { color: var(--ed-violet); padding-left: 6px; text-decoration: none; }
.ef .contact { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.ef .contact i { font-size: 24px; color: var(--ed-violet); line-height: 1.3; }
.ef .contact small { display: block; font-size: 14px; color: var(--ed-text); }
.ef .contact a, .ef .contact span { color: var(--ed-ink); font-size: 17px; line-height: 1.45; display: block; word-break: break-word; } .ef .contact a:hover { color: var(--ed-violet); text-decoration: none; }
.ef .sub input { width: 100%; height: 54px; border-radius: 52px; border: 1px solid #ece9e2; background: #fff; padding: 0 24px; font: 400 14px/1 var(--ed-body); color: var(--ed-ink); outline: 0; margin: 18px 0 14px; box-shadow: none; transition: border-color .3s, box-shadow .3s; }
.ef .sub input:focus { border-color: var(--ed-violet); box-shadow: 0 0 0 4px rgba(84,62,232,.12); }
.ef .sub .msg { font-size: 13.5px; margin-top: 12px; min-height: 20px; } .ef .sub .msg.ok { color: #15803d; } .ef .sub .msg.bad { color: var(--ed-coral); }
.ef-bottom { background: #f2f1ed; text-align: center; padding: 22px 20px; font-size: 14px; color: var(--ed-text); position: relative; }
.ef-bottom strong { color: var(--ed-ink); font-weight: 600; }
.ef-bottom .credit a { color: var(--ed-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; } .ef-bottom .credit a:hover { color: var(--ed-violet); border-color: var(--ed-violet); }
.ef-bottom .credit { display: inline-block; margin-left: 10px; padding-left: 12px; border-left: 1px solid #d8d5cd; }
@media (max-width: 640px) { .ef-bottom .credit { display: block; margin: 6px 0 0; padding: 0; border: 0; } }

/* ---------- Back to top with scroll progress ---------- */
.ed-totop { position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; z-index: 70; display: flex; align-items: center; justify-content: center; color: var(--ed-violet); font-size: 18px; box-shadow: 0 10px 30px -10px rgba(1,28,26,.35); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s, visibility .3s, background-color .3s, color .3s; }
.ed-totop.show { opacity: 1; visibility: visible; transform: none; }
.ed-totop:hover { background: var(--ed-violet); color: #fff; }
.ed-totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ed-totop circle { fill: none; stroke: var(--ed-violet); stroke-width: 2.5; stroke-linecap: round; }
body.player-mode .ed-totop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .eh-social { display: none; } .eh-top .eh-wrap > .eh-social + .eh-auth { margin-left: auto; } .eh-contact .mail, .eh-contact .dot { display: none; } .ef-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .eh-top { position: sticky; top: 0; box-shadow: 0 8px 24px -16px rgba(1,28,26,.3); }
  .eh-top .eh-wrap { height: 70px; gap: 12px; padding: 0 16px; }
  .eh-search, .eh-nav, .eh-auth .eh-pill.light, .eh-user > button span, .eh-user > button i { display: none; }
  .eh-user > button { padding: 4px; }
  .eh-user-menu { right: -56px; width: min(260px, 78vw); }
  .eh-burger { display: inline-flex; }
  .eh-pill { padding: 10px 18px; }
  .eh-brand img { height: 40px; }
  .ed-banner { padding: 52px 16px 56px; }
}
@media (max-width: 640px) { .ef-main { grid-template-columns: 1fr; gap: 34px; padding: 56px 20px 46px; } .ef { margin-top: 60px; } .eh-brand span { display: none; } .ed-totop { right: 16px; bottom: 16px; } }

/* Course player keeps only a slim top tier */
body.player-mode .eh-top { position: static; box-shadow: 0 1px 0 var(--ed-line); }
body.player-mode .eh-top .eh-wrap { height: 68px; max-width: none; }
body.player-mode .eh-nav { display: none; }
