/* Engineers Academy — shared design system */
:root{
  --bg:#1c1d1f; --bg-2:#232528; --line:rgba(255,255,255,.09);
  --text:#f2f2f0; --muted:#a4a8ab; --teal:#7dded0; --teal-ink:#0f2622;
  --font:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;
  --pad:clamp(20px,5vw,72px); --max:1240px; --section:clamp(88px,13vw,180px);
  --sidebar:230px; --ease:cubic-bezier(.65,0,.2,1); --ease-out:cubic-bezier(.2,.7,.2,1);
  --t-fast:.25s; --t-reveal:.9s; --brand-mark:38px; --brand-word:160px;
}
@media(max-width:900px){.hero h1{white-space:normal}}
@media (max-width:1100px){:root{--sidebar:210px}}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
html.intro-on{overflow:hidden}
body{background:var(--bg);color:var(--text);font:400 1rem/1.7 var(--font);overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit}
:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
main{overflow:clip}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
.page-main{margin-left:var(--sidebar);min-height:100vh}

/* Intro layering: keep the same brand logo visible above the veil while it travels. */
.intro-on .sidebar{z-index:110}
.intro-on .sidebar .side-nav,.intro-on .sidebar .sidebar-contact,.intro-on .sidebar .sidebar-contact-link{opacity:0;pointer-events:none}
.intro-on .mobile-header{z-index:110 !important}
.intro-on .mobile-header .menu-btn,
.intro-on .mobile-header .mobile-header-account,
.intro-on .mobile-header .mobile-header-lang{opacity:0 !important;pointer-events:none !important}

/* Intro veil */
.veil{position:fixed;inset:0;background:var(--bg);z-index:100;display:none}
.intro-on .veil{display:block}

/* Desktop sidebar */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:80;background:#17181a;border-right:1px solid var(--line)}
.sidebar-inner{height:100%;display:flex;flex-direction:column;padding:34px 22px 28px}
.brand{position:relative;z-index:120;display:flex;flex-direction:column;align-items:center;gap:13px;width:100%}
.brand .mark{height:68px;width:auto;will-change:transform;transform-origin:center}
.brand .word{width:min(100%,190px);height:auto;will-change:transform;transform-origin:center}
.side-nav{display:flex;flex:none;min-height:auto;overflow:visible;flex-direction:column;gap:4px;margin-top:28px;padding-right:3px}
.side-nav a{position:relative;color:var(--muted);padding:10px 0;font-size:.88rem;letter-spacing:.03em;transition:color var(--t-fast)}
.side-nav a::before{content:"";position:absolute;left:-22px;top:50%;width:3px;height:20px;background:var(--teal);transform:translateY(-50%) scaleY(0);transform-origin:center;transition:transform .3s var(--ease-out)}
.side-nav a:hover,.side-nav a.on{color:var(--text)}
.side-nav a.on::before,.side-nav a:hover::before{transform:translateY(-50%) scaleY(1)}
.sidebar-account-link{margin-top:auto;padding-top:18px;color:var(--muted);font-size:.84rem;letter-spacing:.03em;transition:color var(--t-fast)}
.sidebar-account-link:hover{color:var(--teal)}
.sidebar-contact-link{flex-shrink:0;margin-top:10px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:.84rem;letter-spacing:.03em;transition:color var(--t-fast)}
.sidebar-contact-link:hover{color:var(--teal)}
.sidebar-contact{margin-top:auto;padding-top:20px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:1px;color:var(--text)}
.sidebar-contact span{font-size:.82rem;color:var(--teal)}
.sidebar-contact small{font-size:.76rem;color:var(--muted)}

.mobile-header,.mobile-menu{display:none}

/* Type */
h1,h2{font-weight:300;letter-spacing:-.015em;line-height:1.12}
h1{font-size:clamp(2.4rem,6vw,5.2rem)}
h2{font-size:clamp(1.9rem,3.8vw,3.1rem)}
p.lead{color:var(--muted);font-size:clamp(1rem,1.3vw,1.15rem);max-width:48ch}
.label{color:var(--teal);font-size:.88rem;font-weight:400;margin-bottom:20px;display:block}
.eyebrow{display:block;color:var(--teal);font-size:.82rem;letter-spacing:.16em;text-transform:uppercase;margin-bottom:20px}
.btn{display:inline-block;padding:15px 30px;font-size:.95rem;font-weight:500;border:1px solid var(--teal);transition:background var(--t-fast),color var(--t-fast),border-color var(--t-fast)}
.btn.primary{background:var(--teal);color:var(--teal-ink)}
.btn.primary:hover{background:#a2ebe0;border-color:#a2ebe0}
.btn.ghost{border-color:var(--line);color:var(--text)}
.btn.ghost:hover{border-color:var(--teal);color:var(--teal)}
.actions{display:flex;gap:14px;flex-wrap:wrap}

/* Home hero */
.hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;padding:70px 0 clamp(250px,22vw,310px);overflow:hidden;background:linear-gradient(180deg,#17181a 0%,#1e2a2b 58%,#33403f 78%,#1c1d1f 100%)}
.hero .media-img{position:absolute;inset:0;background:var(--img) center/cover no-repeat}
.hero > svg{position:absolute;right:max(3vw,0px);bottom:0;height:88%;width:auto;max-width:70%;opacity:.95}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(28,29,31,.88) 0%,rgba(28,29,31,.45) 55%,rgba(28,29,31,.1) 100%),linear-gradient(0deg,var(--bg) 0%,transparent 30%)}
.hero-content{position:relative;z-index:2;width:100%;transform:translateY(-145px)}
.hero h1{max-width:none;margin-bottom:26px;white-space:nowrap}
.hero p.lead{margin-bottom:40px;max-width:760px;width:100%;line-height:1.65}
.hero-content>*{opacity:1;transition:opacity 1.1s var(--ease-out),transform 1.1s var(--ease-out)}
.intro-on .hero-content>*{opacity:0;transform:translateY(14px)}
.hero-content>*:nth-child(2){transition-delay:.12s}.hero-content>*:nth-child(3){transition-delay:.24s}.hero-content>*:nth-child(4){transition-delay:.36s}

/* Home hero community — integrated clean style */
.hero-community{position:absolute;left:clamp(52px,5vw,80px);bottom:62px;z-index:3;display:flex;align-items:center;gap:30px;width:auto;}
.community-stat{display:flex;align-items:center;gap:13px;min-width:205px;}
.community-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#7dded0;border:1px solid rgba(125,222,208,.45);background:rgba(125,222,208,.055);flex:0 0 42px;}
.community-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.community-copy{display:flex;flex-direction:column;min-width:0;}
.community-label{font-size:.66rem;letter-spacing:1.7px;text-transform:uppercase;color:#7dded0;font-weight:600;order:1;}
.community-stat strong{font-size:1.85rem;line-height:1.05;margin:4px 0 3px;color:#f4f7f7;font-weight:500;order:2;}
.community-stat small{font-size:.67rem;line-height:1.35;color:#94a5a7;order:3;white-space:nowrap;}
.community-divider{width:1px;height:58px;background:linear-gradient(180deg,transparent,rgba(125,222,208,.65),transparent);flex:0 0 1px;}
@media(max-width:900px){.hero-community{left:5vw;bottom:35px;gap:20px}.community-stat{min-width:170px}.community-stat small{font-size:.61rem;white-space:normal}.community-icon{width:38px;height:38px;flex-basis:38px}.community-icon svg{width:20px;height:20px}}
@media(max-width:600px){.hero-community{left:5vw;right:5vw;bottom:28px;gap:12px;justify-content:flex-start}.community-stat{min-width:0;flex:1;gap:9px}.community-divider{height:46px}.community-stat strong{font-size:1.45rem}.community-stat small{display:none}.community-icon{width:34px;height:34px;flex-basis:34px}.community-icon svg{width:18px;height:18px}}

/* Home overview */
.section{padding:var(--section) 0}
.home-overview{background:var(--bg-2)}
.head{max-width:700px}
.head h2{margin-bottom:22px}
.section-links{display:grid;grid-template-columns:repeat(7,1fr);border-top:1px solid var(--line);margin-top:72px}
.section-links a{min-height:160px;padding:24px 18px 20px 0;border-right:1px solid var(--line);display:flex;flex-direction:column;transition:background var(--t-fast),padding var(--t-fast)}
.section-links a:first-child{padding-left:0}
.section-links a:last-child{border-right:0}
.section-links a:hover{background:rgba(255,255,255,.025);padding-left:10px}
.section-links span{font-size:.76rem;color:#6f7477;margin-bottom:auto}
.section-links strong{font-size:1rem;font-weight:400}
.section-links small{color:var(--teal);font-size:.76rem;margin-top:8px}

/* Inner pages */
.inner-hero{min-height:78vh;display:flex;align-items:center}
.inner-hero .split{width:100%}
.inner-simple{min-height:80vh;padding-top:clamp(140px,15vw,220px)}
.inner-simple .head{max-width:720px}
.plain-list{margin-top:76px;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr)}
.plain-list>div{padding:25px 25px 20px 0;border-right:1px solid var(--line)}
.plain-list>div:last-child{border-right:0}
.plain-list span{display:block;color:var(--teal);font-size:.8rem;margin-bottom:30px}
.plain-list p{color:var(--muted);max-width:28ch}
.content-block{border-top:1px solid var(--line)}
.narrow{max-width:850px}
.content-block h2{margin-bottom:22px}
.inner-full{position:relative;min-height:78vh;display:flex;align-items:center;overflow:hidden}
.inner-full-bg{position:absolute;inset:0;background:linear-gradient(120deg,#20272a,#2c3a39 55%,#1d2022)}
.inner-full::after{content:"";position:absolute;inset:0;background:rgba(20,21,23,.55)}
.inner-full .wrap{position:relative;z-index:1;width:100%}
.inner-full .text{max-width:620px}
.light{color:#cfd3d4!important}

/* Split media */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,7vw,120px);align-items:center}
.split.flip .text{order:2}
.text h2,.text h1{margin-bottom:22px}
.text p.lead{margin-bottom:0}
.media{position:relative;overflow:hidden;background:var(--img,linear-gradient(160deg,#2a3234,#1f2325 60%,#2b3532));aspect-ratio:4/5}
.media.wide{aspect-ratio:3/2}
.media .ph{position:absolute;inset:0;width:100%;height:100%}
.ph{background:var(--img) center/cover no-repeat;display:flex;align-items:flex-end;padding:18px;color:rgba(255,255,255,.28);font-size:.78rem}
.alt{background:var(--bg-2)}

/* Reveals */
.rv{opacity:0;transform:translateY(12px);transition:opacity var(--t-reveal) var(--ease-out),transform var(--t-reveal) var(--ease-out)}
.rv.in{opacity:1;transform:none}
.media.rv,.inner-full.rv{transform:scale(1.02);transition:opacity var(--t-reveal) var(--ease-out),transform 1.4s var(--ease-out)}
.media.rv.in,.inner-full.rv.in{transform:none}

/* Footer / Contact */
.footer{margin-left:var(--sidebar);border-top:1px solid var(--line);padding:clamp(72px,10vw,130px) 0 34px;background:#17181a}
.contact-heading{max-width:650px}
.contact-heading h2{margin-bottom:20px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);margin-top:64px}
.contact-item{padding:26px 28px 28px 0;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:6px;transition:color var(--t-fast)}
.contact-item:last-child{border-right:0;padding-left:28px}
.contact-item:hover .contact-value{color:var(--teal)}
.contact-label{color:var(--teal);font-size:.8rem}
.contact-value{color:var(--text);font-size:1.05rem;transition:color var(--t-fast)}
.footer-bottom{border-top:1px solid var(--line);margin-top:64px;padding-top:22px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;color:#7b8184;font-size:.8rem}
.footer-contact-link{color:var(--muted);transition:color var(--t-fast)}
.footer-contact-link:hover{color:var(--teal)}
.footer-brand-name{color:var(--teal);margin-left:0}

@media (max-width:820px){
  :root{--pad:24px}
  .sidebar{display:none}
  .page-main{margin-left:0}
  .footer{margin-left:0}
  .mobile-header{position:fixed;display:flex;align-items:center;justify-content:space-between;top:0;left:0;right:0;height:70px;padding:0 var(--pad);z-index:90;background:rgba(23,24,26,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}
  .mobile-brand{position:relative;z-index:120;display:flex;align-items:center;gap:9px}
  .mobile-brand .mark{height:48px;width:auto}
  .mobile-brand .word{width:168px;height:auto}
  .menu-btn{display:flex;flex-direction:column;justify-content:center;align-items:center;background:none;border:0;color:var(--text);width:44px;height:44px;cursor:pointer;gap:0;padding:0}
  .menu-btn span{display:block;width:22px;height:2px;background:currentColor;border-radius:2px;transition:transform .3s,opacity .3s;flex-shrink:0}
  .menu-btn span:nth-child(1){margin-bottom:5px}
  .menu-btn span:nth-child(2){margin-bottom:5px}
  .menu-btn span:nth-child(3){margin-bottom:0}
  .menu-open .menu-btn span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-open .menu-btn span:nth-child(2){opacity:0;transform:scaleX(0)}
  .menu-open .menu-btn span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .mobile-menu{position:fixed;display:flex;flex-direction:column;inset:70px 0 0 0;background:var(--bg);z-index:85;padding:24px var(--pad);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .3s,visibility .3s,transform .3s}
  .mobile-menu nav{display:flex;flex-direction:column}
  .mobile-menu nav a{padding:17px 0;border-bottom:1px solid var(--line);color:var(--text);font-size:1.2rem}
  .mobile-menu nav a.on{color:var(--teal)}
  .mobile-account-link{margin-top:22px;padding:17px 0;color:var(--teal);border-top:1px solid var(--line);font-size:1rem}
.mobile-contact{margin-top:auto;padding:18px 0;border-top:1px solid var(--line);color:var(--teal)}
  .menu-open .mobile-menu{opacity:1;visibility:visible;transform:none}
  .hero{min-height:100svh;padding-top:100px}
  .hero svg{max-width:100%;height:62%;right:-18%;opacity:.7}
  .hero-content{transform:translateY(-120px)}
  .hero::after{background:linear-gradient(0deg,rgba(28,29,31,.92) 0%,rgba(28,29,31,.5) 60%,rgba(28,29,31,.25) 100%)}
  .section-links{grid-template-columns:1fr}
  .section-links a,.section-links a:first-child{border-right:0;border-bottom:1px solid var(--line);min-height:90px;padding:18px 0}
  .section-links a:last-child{border-bottom:0}
  .section-links a:hover{padding-left:8px}
  .split{grid-template-columns:1fr;gap:36px}
  .split.flip .text{order:0}
  .media{aspect-ratio:4/3}
  .inner-hero{min-height:auto;padding-top:120px}
  .inner-simple{min-height:auto;padding-top:130px}
  .plain-list{grid-template-columns:1fr;margin-top:56px}
  .plain-list>div,.plain-list>div:last-child{border-right:0;border-bottom:1px solid var(--line);padding:22px 0}
  .plain-list>div:last-child{border-bottom:0}
  .inner-full{min-height:75vh;padding-top:100px}
  .contact-grid{grid-template-columns:1fr}
  .contact-item,.contact-item:last-child{border-right:0;border-bottom:1px solid var(--line);padding:24px 0}
  .contact-item:last-child{border-bottom:0}
  .footer-bottom{flex-direction:row;align-items:center}.footer-brand-name{margin-left:auto}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
  .rv{opacity:1;transform:none}
}

.about-strip{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:64px}
.about-strip>div{padding:28px 30px 32px 0;border-right:1px solid var(--line)}
.about-strip>div+div{padding-left:30px}
.about-strip>div:last-child{border-right:0}
.about-strip span{display:block;color:var(--teal);font-size:.78rem;margin-bottom:22px}
.about-strip strong{display:block;font-size:1.08rem;font-weight:400;margin-bottom:8px}
.about-strip p{color:var(--muted);font-size:.88rem;line-height:1.65;max-width:30ch}
.section-map-head{margin-top:clamp(80px,10vw,130px);max-width:720px}
.contact-page-hero{min-height:70vh;display:flex;align-items:center}
.contact-page-hero .text{max-width:820px}
.contact-details{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}
.contact-details a{padding:34px 30px 34px 0;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.contact-details a:last-child{border-right:0;padding-left:30px}
.contact-details .contact-label{color:var(--teal);font-size:.8rem}
.contact-details .contact-value{font-size:clamp(1.15rem,2vw,1.55rem)}
@media (max-width:820px){
  .about-strip{grid-template-columns:1fr;margin-top:48px}
  .about-strip>div,.about-strip>div+div,.about-strip>div:last-child{padding:22px 0;border-right:0;border-bottom:1px solid var(--line)}
  .about-strip>div:last-child{border-bottom:0}
  .contact-page-hero{min-height:auto;padding-top:130px;padding-bottom:80px}
  .contact-details{grid-template-columns:1fr}
  .contact-details a,.contact-details a:last-child{border-right:0;border-bottom:1px solid var(--line);padding:24px 0}
  .contact-details a:last-child{border-bottom:0}
}

body{transition:opacity .18s ease}body.page-leaving{opacity:.72}


/* Authentication + account pages — V7 */
.auth-page{min-height:100vh;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:40px var(--pad)}
.auth-shell{width:min(560px,100%)}
.auth-shell.wide-auth{width:min(1100px,100%)}
.auth-brand{display:flex;align-items:center;justify-content:center;gap:11px;margin-bottom:42px}
.auth-brand img:first-child{height:48px;width:auto}.auth-brand img:last-child{width:190px;height:auto}
.auth-card,.account-card{border:1px solid var(--line);background:#17181a;padding:clamp(30px,5vw,56px)}
.auth-card h1,.account-card h1{margin-bottom:18px}.auth-heading-label{display:block;margin-bottom:14px;letter-spacing:.14em;font-size:.72rem}
.auth-form{display:grid;gap:18px;margin-top:34px}
.auth-form label{display:grid;gap:8px;color:var(--muted);font-size:.84rem}
.auth-form input{width:100%;border:1px solid var(--line);background:#111214;color:var(--text);padding:14px 15px;font:inherit;outline:none;transition:border-color var(--t-fast),background var(--t-fast)}
.auth-form input:focus{border-color:var(--teal);background:#151718}
.auth-form .btn{margin-top:8px;cursor:pointer}.auth-form button:disabled{opacity:.55;cursor:wait}
.auth-status{min-height:24px;margin-top:16px;color:var(--muted);font-size:.84rem}.auth-status.error{color:#e9aaa0}.auth-status.success{color:var(--teal)}
.auth-switch{margin-top:24px;color:var(--muted);font-size:.86rem}.auth-switch a,.back-link{color:var(--teal)}
.back-link{display:inline-block;margin-top:24px;font-size:.84rem}.account-top{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:48px}.account-top .auth-brand{margin:0;justify-content:flex-start}.account-top .auth-brand img:first-child{height:42px}.account-top .auth-brand img:last-child{width:170px}
.account-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:44px}.account-grid>div{padding:24px 24px 26px 0;border-right:1px solid var(--line)}.account-grid>div+div{padding-left:24px}.account-grid>div:last-child{border-right:0}.account-grid span{display:block;color:var(--muted);font-size:.78rem;margin-bottom:12px}.account-grid strong{font-weight:400;color:var(--text)}
.admin-page{min-height:100vh;background:var(--bg);padding:clamp(34px,6vw,80px) var(--pad)}.admin-shell{max-width:1240px;margin:0 auto}.admin-top{display:flex;justify-content:space-between;align-items:flex-end;gap:40px}.admin-top h1{margin-bottom:12px}.admin-actions{display:flex;gap:12px;flex-wrap:wrap}.admin-actions .btn{cursor:pointer}
.admin-stats{display:grid;grid-template-columns:repeat(6,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:64px}.admin-stats>div{padding:24px 20px 28px 0;border-right:1px solid var(--line)}.admin-stats>div+div{padding-left:20px}.admin-stats>div:last-child{border-right:0}.admin-stats span{display:block;color:var(--muted);font-size:.78rem;margin-bottom:14px}.admin-stats strong{font-size:2rem;font-weight:300;color:var(--teal)}
.admin-placeholder{padding:clamp(70px,10vw,130px) 0;max-width:760px}.admin-placeholder h2{margin-bottom:20px}
[data-supabase-required]{display:block;margin-top:18px}
@media (max-width:820px){.auth-page{padding:24px}.auth-brand{margin-bottom:28px}.auth-brand img:first-child{height:42px}.auth-brand img:last-child{width:170px}.account-top{align-items:flex-start;flex-direction:column}.account-top .auth-brand{margin:0}.account-grid{grid-template-columns:1fr 1fr}.account-grid>div:nth-child(2n){border-right:0}.account-grid>div:nth-child(n+3){border-top:1px solid var(--line)}.account-grid>div+div{padding-left:18px}.account-grid>div:nth-child(odd){padding-left:0}.admin-page{padding:28px 24px}.admin-top{align-items:flex-start;flex-direction:column}.admin-stats{grid-template-columns:1fr 1fr}.admin-stats>div:nth-child(2n){border-right:0}.admin-stats>div:nth-child(n+3){border-top:1px solid var(--line)}.admin-stats>div+div{padding-left:16px}.admin-stats>div:nth-child(odd){padding-left:0}}

/* V7.4 login heading refinement */
.auth-shell{width:min(760px,100%)}
.auth-card h1{
  font-size:clamp(2.65rem,5vw,4.1rem);
  line-height:1.02;
  letter-spacing:-0.035em;
  max-width:none;
  text-align:center;
  color:var(--text);
}
.auth-heading-label{
  text-transform:none;
  letter-spacing:.06em;
  font-size:.82rem;
  color:var(--teal);
}
.auth-card > .lead{
  text-align:center;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}
.auth-form{margin-top:38px}



/* Password visibility control */
.password-field { position: relative; display: flex; align-items: center; }
.password-field input { width: 100%; padding-right: 3rem; }
.password-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border: 0; background: transparent; color: rgba(242,244,243,.55); cursor: pointer; display: grid; place-items: center; padding: 0; font-size: .9rem; }
.password-toggle:hover { color: #48D6D0; }
.password-toggle.is-visible { color: #48D6D0; }


/* V7.7 — always-visible white password eye */
.password-field { position: relative; display: block; }
.password-field input { padding-right: 3.2rem; }
.password-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; padding: 0; border: 0; background: transparent;
  color: #fff; opacity: .9; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.password-toggle:hover, .password-toggle:focus-visible, .password-toggle.is-visible { color: #fff; opacity: 1; }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle:focus-visible { outline: 1px solid rgba(255,255,255,.45); outline-offset: 2px; border-radius: 50%; }


/* V7.8 — authentication spacing + persistent white eye */
.auth-card h1{
  line-height:1.22;
  letter-spacing:-0.035em;
}
.password-field{position:relative!important;display:block!important;}
.password-field input{padding-right:3.5rem!important;}
.password-toggle{
  appearance:none!important; -webkit-appearance:none!important;
  position:absolute!important; right:.65rem!important; top:50%!important;
  transform:translateY(-50%)!important;
  width:2.35rem!important; height:2.35rem!important;
  margin:0!important; padding:0!important;
  border:0!important; outline:0;
  background:transparent!important;
  color:#fff!important; opacity:1!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  cursor:pointer!important; z-index:20!important;
  box-shadow:none!important;
}
.password-toggle svg{
  display:block!important; visibility:visible!important; opacity:1!important;
  width:23px!important; height:23px!important;
  fill:none!important; stroke:#fff!important;
  stroke-width:1.9!important; stroke-linecap:round!important; stroke-linejoin:round!important;
}
.password-toggle:hover svg,.password-toggle:focus-visible svg,.password-toggle.is-visible svg{
  stroke:#fff!important;
}
.password-toggle:focus-visible{outline:1px solid rgba(255,255,255,.55)!important;outline-offset:2px;border-radius:50%;}


/* V7.9 — fixed password eye: always visible, always white */
.auth-form .password-field { position: relative !important; display: block !important; width: 100% !important; }
.auth-form .password-field > input { width: 100% !important; padding-right: 58px !important; box-sizing: border-box !important; }
.auth-form .password-field > .password-toggle {
  position: absolute !important; right: 10px !important; top: 50% !important;
  transform: translateY(-50%) !important; width: 38px !important; height: 38px !important;
  min-width: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border: 0 !important; border-radius: 50% !important; background: transparent !important;
  color: #fff !important; opacity: 1 !important; visibility: visible !important;
  z-index: 999 !important; cursor: pointer !important; box-shadow: none !important;
}
.auth-form .password-field > .password-toggle:hover,
.auth-form .password-field > .password-toggle:focus,
.auth-form .password-field > .password-toggle:active,
.auth-form .password-field > .password-toggle.is-visible { color: #fff !important; opacity: 1 !important; visibility: visible !important; background: transparent !important; }
.auth-form .password-field > .password-toggle .eye-icon {
  display: block !important; width: 24px !important; height: 24px !important;
  visibility: visible !important; opacity: 1 !important; overflow: visible !important;
  fill: none !important; stroke: #fff !important; stroke-width: 1.9 !important;
  stroke-linecap: round !important; stroke-linejoin: round !important;
}
.auth-form .password-field > .password-toggle .eye-icon path,
.auth-form .password-field > .password-toggle .eye-icon circle {
  fill: none !important; stroke: #fff !important; opacity: 1 !important; visibility: visible !important;
}
/* slightly more vertical breathing room in the login title */
.auth-card h1 br { content: ''; }
.auth-card h1 { line-height: 1.34 !important; }


/* V8.0 — stable authentication controls */
.auth-card h1 {
  line-height: 1.35 !important;
}
.auth-card h1 br {
  display: block;
  content: "";
  margin-bottom: .38em;
}
.auth-form .password-field {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.auth-form .password-field > input {
  width: 100% !important;
  padding-right: 58px !important;
}
.auth-form .password-field > .password-toggle {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 50 !important;
}
.auth-form .password-toggle .eye-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.auth-form .password-toggle .eye-icon path,
.auth-form .password-toggle .eye-icon circle {
  fill: none !important;
  stroke: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* V8.3 — native browser password eye is disabled; only the academy eye is used */
.auth-form input[type="password"]::-ms-reveal,
.auth-form input[type="password"]::-ms-clear,
.auth-form input[type="text"]::-ms-clear { display:none !important; }
.auth-form .password-toggle { color:var(--teal) !important; opacity:1 !important; visibility:visible !important; }
.auth-form .password-toggle:hover,
.auth-form .password-toggle:focus,
.auth-form .password-toggle:active { color:var(--teal) !important; opacity:1 !important; }
.auth-form .password-toggle .eye-icon { stroke:var(--teal) !important; color:var(--teal) !important; }
.auth-form .password-toggle.is-visible .eye-icon { stroke:var(--teal) !important; }

/* V8.3 account page refinement */
.account-top .btn.ghost{
  appearance:none;
  -webkit-appearance:none;
  background:transparent !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:0;
  box-shadow:none;
  cursor:pointer;
  white-space:nowrap;
}
.account-top .btn.ghost:hover{
  background:transparent !important;
  color:var(--teal) !important;
  border-color:var(--teal) !important;
}
.account-card h1{
  font-size:clamp(2.35rem,4.2vw,3.75rem);
  line-height:1.08;
  letter-spacing:-0.035em;
  max-width:18ch;
}
.account-role{
  margin-top:10px;
  color:var(--teal);
  font-size:.9rem;
  letter-spacing:.04em;
}
@media (max-width:820px){
  .account-card h1{font-size:clamp(2rem,8vw,3rem);max-width:100%;}
  .account-top .btn.ghost{align-self:flex-start;}
}


/* V8.3 ACCOUNT FINAL REFINEMENT */
.account-top .account-signout{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  color:var(--teal)!important;
  font:inherit!important;
  font-size:.9rem!important;
  font-weight:400!important;
  padding:0!important;
  margin:0!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
.account-top .account-signout:hover,.account-top .account-signout:focus,.account-top .account-signout:active{
  color:var(--teal)!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.account-card h1{
  font-size:clamp(2rem,3.25vw,3.05rem)!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
  max-width:none!important;
  white-space:nowrap!important;
}
@media (max-width:820px){
  .account-card h1{font-size:clamp(1.65rem,7vw,2.5rem)!important;white-space:nowrap!important;max-width:none!important;}
}


/* V8.3 PROFILE HEADER */
.site-account{position:fixed;top:28px;right:34px;z-index:80;}
.site-account-link{display:inline-flex;align-items:center;gap:9px;color:var(--teal);text-decoration:none;font-size:.84rem;letter-spacing:.03em;padding:7px 0;}
.site-account-link:hover{color:var(--text);}
.site-account-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;font-size:13px;line-height:1;}
.mobile-account-link.is-account{color:var(--teal);}
.profile-details{margin-top:34px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;}
.profile-detail{padding:18px 0;border-bottom:1px solid var(--line);}
.profile-detail:nth-child(odd){padding-right:28px;}
.profile-detail:nth-child(even){padding-left:28px;border-left:1px solid var(--line);}
.profile-detail span{display:block;color:var(--muted);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px;}
.profile-detail strong{font-size:.95rem;font-weight:400;color:var(--text);word-break:break-word;}
@media (max-width:820px){.site-account{display:none !important}.site-account-link{font-size:.78rem}.profile-details{grid-template-columns:1fr}.profile-detail:nth-child(odd){padding-right:0}.profile-detail:nth-child(even){padding-left:0;border-left:0}}

/* V8.3 PROFILE/LOGIN TOP-RIGHT */
.site-account{position:fixed;top:28px;right:34px;z-index:80;}
.site-account-link{display:inline-flex;align-items:center;gap:9px;color:var(--teal);text-decoration:none;font-size:.84rem;letter-spacing:.03em;padding:7px 0;}
.site-account-link:hover{color:var(--text);}
.site-account-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;color:var(--teal);}
.site-account-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
@media (max-width:820px){.site-account{display:none !important}.site-account-link{font-size:.78rem}.site-account-icon{width:21px;height:21px}}

/* Knowledge */
.knowledge-main{background:var(--bg)}
.knowledge-hero{padding-top:clamp(70px,9vw,120px);padding-bottom:clamp(55px,8vw,100px)}
.knowledge-head{display:flex;justify-content:space-between;gap:40px;align-items:flex-start;margin-bottom:56px}
.knowledge-head h1{font-size:clamp(1.8rem,3vw,2.8rem);margin:.12em 0 .18em}.knowledge-head .lead{max-width:680px;line-height:1.7}.library-title{font-size:clamp(1.8rem,3vw,2.8rem)!important}
.knowledge-admin-toolbar{flex:none}

.knowledge-empty{border:1px solid var(--line);background:#202225;min-height:360px;display:flex;align-items:center;justify-content:center;text-align:center;padding:60px 30px}
.knowledge-empty-inner{max-width:680px}
.knowledge-empty h2{margin:.18em 0 .25em;font-size:clamp(1.8rem,3vw,2.8rem);font-weight:400}
.knowledge-empty .lead{margin:0 auto 28px}
.knowledge-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.knowledge-category{min-height:170px;background:#202225;padding:26px 26px 22px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;transition:background .25s ease,color .25s ease,transform .25s ease}
.knowledge-category:hover,.knowledge-category.active{background:#25282a}
.knowledge-category::after{content:"";position:absolute;left:26px;right:26px;bottom:0;height:2px;background:var(--teal);transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.knowledge-category:hover::after,.knowledge-category.active::after{transform:scaleX(1)}
.knowledge-category span{color:var(--teal);font-size:.75rem;letter-spacing:.12em;margin-bottom:auto}
.knowledge-category strong{font-size:1.18rem;font-weight:400;letter-spacing:-.01em}
.knowledge-category small{color:var(--muted);margin-top:4px;font-size:.78rem}
.knowledge-feed{border-top:1px solid var(--line);padding-top:clamp(75px,10vw,130px)}
.knowledge-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:50px}
.knowledge-section-head h2{margin:.14em 0 .2em}
.knowledge-posts{display:flex;flex-direction:column;gap:28px;max-width:1050px}
.knowledge-post{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr);background:#202225;border:1px solid var(--line);min-height:300px}
.knowledge-post.text-only{display:block;max-width:820px;min-height:0}
.post-media{padding:14px}
.post-media .ph{height:100%;min-height:270px;display:grid;place-items:center;background:#17191b;border:1px solid var(--line);color:#70777a;font-size:.78rem;letter-spacing:.04em}
.post-body{padding:34px 38px;display:flex;flex-direction:column;align-items:flex-start}
.post-kicker{color:var(--teal);font-size:.75rem;letter-spacing:.12em;text-transform:uppercase}
.post-body h3{font-size:clamp(1.45rem,2.5vw,2.1rem);font-weight:400;line-height:1.2;margin:10px 0 14px}
.post-body p{color:var(--muted);max-width:62ch}
.admin-post-actions{display:flex;gap:18px;margin-top:28px;padding-top:16px;border-top:1px solid var(--line);width:100%}
.admin-post-actions button{background:none;border:0;color:var(--teal);padding:0;cursor:pointer;font-size:.8rem}
.admin-post-actions button:last-child{color:#b8b8b8}
.admin-only[hidden]{display:none!important}
@media(max-width:900px){.knowledge-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-post{grid-template-columns:1fr}.post-media .ph{min-height:220px}.knowledge-head,.knowledge-section-head{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.knowledge-categories{grid-template-columns:1fr}.knowledge-category{min-height:145px}.post-body{padding:26px}.knowledge-posts{gap:18px}}

/* Knowledge v8.4 — live Supabase library + admin editor */
.knowledge-status{min-height:22px;margin:-24px 0 18px;color:var(--teal);font-size:.82rem}.knowledge-status.error{color:#d7a4a4}
.knowledge-category{border:0;text-align:left;color:var(--text);cursor:pointer;font:inherit}.knowledge-category small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.category-admin-actions{display:flex;gap:12px;margin-top:16px;font-style:normal}.category-admin-actions b{font-size:.72rem;font-weight:400;color:var(--teal);cursor:pointer}.category-admin-actions b:last-child{color:#b8b8b8}
.post-content{white-space:normal;color:var(--muted);line-height:1.9;max-width:72ch}
.post-gallery{padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:#202225;align-content:start}.post-gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#17191b;border:1px solid var(--line)}
.knowledge-post.text-only .post-body{max-width:900px}.post-empty{min-height:250px}
.knowledge-modal[hidden]{display:none}.knowledge-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px}.knowledge-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}.knowledge-modal-card{position:relative;width:min(680px,100%);max-height:min(88vh,900px);overflow:auto;background:#17191b;border:1px solid var(--line);padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.35)}.knowledge-post-modal-card{width:min(780px,100%)}.knowledge-modal-card h2{font-size:clamp(1.7rem,4vw,2.5rem);font-weight:400;margin:.25em 0 .8em}.knowledge-modal-close{position:absolute;right:20px;top:15px;background:none;border:0;color:var(--muted);font-size:28px;cursor:pointer}.knowledge-modal-card form{display:grid;gap:18px}.knowledge-modal-card label{display:grid;gap:8px;color:var(--muted);font-size:.78rem;letter-spacing:.05em}.knowledge-modal-card input,.knowledge-modal-card textarea,.knowledge-modal-card select{width:100%;box-sizing:border-box;background:#202225;border:1px solid var(--line);color:var(--text);padding:13px 14px;border-radius:0;font:inherit;outline:none}.knowledge-modal-card input:focus,.knowledge-modal-card textarea:focus,.knowledge-modal-card select:focus{border-color:var(--teal)}.knowledge-modal-card textarea{resize:vertical;line-height:1.7}.knowledge-modal-card input[type=file]{padding:10px}.knowledge-modal-card small{color:var(--muted);font-size:.72rem;letter-spacing:0}.form-optional{font-size:.68rem;color:#70777a;letter-spacing:0}.knowledge-form-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:8px}.check-row{display:flex!important;grid-template:none!important;align-items:center;gap:10px!important}.check-row input{width:auto!important;accent-color:var(--teal)}.existing-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.existing-image{position:relative}.existing-image img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--line)}.existing-image button{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;background:rgba(0,0,0,.75);color:#fff;cursor:pointer;font-size:18px}.modal-open{overflow:hidden}
@media(max-width:700px){.knowledge-modal{padding:12px}.knowledge-modal-card{padding:26px 20px}.post-gallery{grid-template-columns:1fr}.existing-images{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-form-actions{flex-direction:column-reverse}.knowledge-form-actions .btn{width:100%}}

/* Engineering Library category ordering controls */
.knowledge-category{position:relative}
.category-admin-actions{align-items:center;flex-wrap:wrap}
.category-admin-actions button{border:1px solid var(--line);background:#202225;color:var(--teal);min-width:28px;height:26px;padding:0 7px;cursor:pointer;font:inherit;line-height:1}
.category-admin-actions button:disabled{opacity:.28;cursor:not-allowed}
.category-admin-actions b{font-size:.72rem;font-weight:400;color:var(--teal);cursor:pointer}
.category-admin-actions b:last-child{color:#b8b8b8}

.category-form-status{min-height:1.2em;margin:0;color:var(--teal);font-size:.82rem;line-height:1.5}.category-form-status:not(:empty){padding:8px 10px;border-left:2px solid var(--teal);background:rgba(72,214,208,.06)}


/* v8.5.2: avoid an empty grid area when the library has a single category */
.knowledge-categories:has(> .knowledge-category:only-child){grid-template-columns:minmax(0,1fr)}


/* v8.5.3: Engineering Library sections displayed as full-width horizontal rows */
.knowledge-categories{display:flex;flex-direction:column;gap:1px;background:var(--line);}
.knowledge-category{width:100%;box-sizing:border-box;min-height:104px;padding:20px 26px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:24px;row-gap:3px;align-content:center;justify-content:initial;}
.knowledge-category>span{grid-column:1;grid-row:1;margin:0 0 3px;}
.knowledge-category>strong{grid-column:1;grid-row:2;min-width:0;}
.knowledge-category>small{grid-column:1;grid-row:3;min-width:0;white-space:normal;overflow-wrap:anywhere;}
.knowledge-category>.category-admin-actions{grid-column:2;grid-row:1 / span 3;align-self:center;margin:0;justify-content:flex-end;}
.knowledge-category::after{left:26px;right:26px;}
@media(max-width:600px){.knowledge-category{min-height:96px;padding:18px;column-gap:12px}.knowledge-category>.category-admin-actions{gap:8px}.knowledge-category::after{left:18px;right:18px}}


/* V8.5.4 — Engineering Library category navigation */
.knowledge-categories{display:flex;flex-direction:column;gap:12px;background:transparent;border:0}
.knowledge-category{
  width:100%;min-height:112px;display:grid;grid-template-columns:92px minmax(0,1fr) auto;
  grid-template-rows:auto auto;align-items:center;column-gap:20px;row-gap:0;
  padding:14px 20px;background:#202426;border:1px solid rgba(255,255,255,.075);
  border-radius:12px;text-align:left;color:var(--text);position:relative;transition:background .22s ease,border-color .22s ease,transform .22s ease;
}
.knowledge-category:hover{background:#252c2d;border-color:rgba(125,222,208,.32);transform:translateY(-1px)}
.knowledge-category::after{display:none}
.category-cover,.category-cover-placeholder{grid-column:1;grid-row:1 / span 2;width:92px;height:82px;border-radius:8px;object-fit:cover;background:#293433;display:flex;align-items:center;justify-content:center}
.category-cover-placeholder span{font-size:1.15rem;letter-spacing:.16em;color:var(--teal);font-weight:500}
.category-open{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.category-kicker{font-size:.66rem;letter-spacing:.13em;color:var(--teal);font-weight:500}
.knowledge-category .category-open strong{font-size:1.12rem;line-height:1.35;font-weight:500;letter-spacing:-.015em;color:var(--text)}
.knowledge-category .category-open small{font-size:.78rem;line-height:1.5;color:var(--muted);white-space:normal;overflow-wrap:anywhere}
.category-description-placeholder{opacity:.78}
.category-chevron{grid-column:3;grid-row:1;align-self:center;color:var(--teal);font-size:1.8rem;line-height:1;padding:0 5px}
.category-admin-actions{grid-column:3;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:7px;margin:0}
.category-admin-actions button{font:500 .7rem/1.2 var(--font);padding:5px 7px;border:1px solid rgba(255,255,255,.1);background:#1b2021;color:var(--muted);cursor:pointer;border-radius:5px}
.category-admin-actions button:hover:not(:disabled){border-color:var(--teal);color:var(--teal)}
.category-admin-actions button:disabled{opacity:.28;cursor:default}
.category-admin-actions button.category-delete:hover{border-color:#c77f7f;color:#dca0a0}
.knowledge-feed{padding-top:42px;border-top:0}
.knowledge-section-head{align-items:flex-start;margin-bottom:38px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.knowledge-section-title{min-width:0}
.knowledge-back-btn{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--teal);font:500 .82rem var(--font);padding:0;margin-bottom:26px;cursor:pointer}
.knowledge-back-btn:hover{color:#b0f0e7}
.knowledge-section-head h2{font-size:clamp(1.8rem,3.3vw,2.7rem);font-weight:400;letter-spacing:-.025em}
.knowledge-post-toolbar{flex:none;padding-top:38px}
.category-image-preview:empty{display:none}
.category-image-existing{display:flex;align-items:center;gap:12px}
.category-image-existing img{width:110px;height:80px;object-fit:cover;border-radius:6px}
.category-image-existing button{border:1px solid var(--line);background:#202225;color:var(--muted);padding:8px 12px;cursor:pointer;font-size:.78rem}
@media(max-width:820px){
 .knowledge-category{grid-template-columns:72px minmax(0,1fr) auto;column-gap:14px;padding:13px 14px}
 .category-cover,.category-cover-placeholder{width:72px;height:68px}
}
@media(max-width:600px){
 .knowledge-category{grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto auto;padding:13px;column-gap:12px;row-gap:8px}
 .category-cover,.category-cover-placeholder{grid-column:1;grid-row:1 / span 2;width:58px;height:58px}
 .category-open{grid-column:2;grid-row:1 / span 2}
 .category-chevron{display:none}
 .category-admin-actions{grid-column:1 / -1;grid-row:3;justify-content:flex-end;padding-top:6px;border-top:1px solid rgba(255,255,255,.06)}
 .knowledge-section-head{gap:14px}
 .knowledge-post-toolbar{padding-top:0;width:100%}
}

/* V8.5.5 — simplify category cards and support optional image in admin form */
.knowledge-category{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:16px}
.category-cover,.category-cover-placeholder{display:none}
.category-open{grid-column:1;grid-row:1 / span 2}
.category-kicker{display:none!important}
.category-chevron{grid-column:2;grid-row:1 / span 2;align-self:center}
.category-admin-actions{grid-column:2;grid-row:2}
.category-image-preview:empty{display:none}
#categoryImage{display:block;width:100%;margin-top:8px}
.category-image-existing{display:flex;align-items:center;gap:12px;margin-top:10px}
.category-image-existing img{width:140px;height:96px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.category-image-existing button{border:1px solid var(--line);background:#202225;color:var(--muted);padding:8px 12px;cursor:pointer;border-radius:6px}
@media(max-width:600px){.knowledge-category{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}.category-open{grid-column:1;grid-row:1}.category-chevron{display:none}.category-admin-actions{grid-column:1;grid-row:3}}

/* V8.5.6 — optional section image visible on cards; remove decorative green underline */
.knowledge-category::after,.knowledge-category:hover::after,.knowledge-category.active::after{display:none!important;content:none!important;transform:none!important}
.knowledge-category{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto;column-gap:16px}
.knowledge-category.has-image{grid-template-columns:92px minmax(0,1fr) auto!important}
.knowledge-category .category-cover{display:block;grid-column:1;grid-row:1 / span 2;width:92px;height:82px;object-fit:cover;border-radius:8px;align-self:center}
.knowledge-category .category-open{grid-column:1;grid-row:1 / span 2;border:0!important;box-shadow:none!important;text-decoration:none!important;min-width:0}
.knowledge-category.has-image .category-open{grid-column:2;grid-row:1 / span 2}
.knowledge-category .category-open::after{display:none!important;content:none!important}
.knowledge-category .category-admin-actions{grid-column:2;grid-row:2}
.knowledge-category.has-image .category-admin-actions{grid-column:3;grid-row:1 / span 2;align-self:center}
.knowledge-category .category-chevron{grid-column:2;grid-row:1;align-self:center}
.knowledge-category.has-image .category-chevron{grid-column:3;grid-row:1}
@media(max-width:600px){
 .knowledge-category.has-image{grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:auto auto auto}
 .knowledge-category.has-image .category-cover{grid-column:1;grid-row:1 / span 2;width:64px;height:64px}
 .knowledge-category.has-image .category-open{grid-column:2;grid-row:1 / span 2}
 .knowledge-category.has-image .category-chevron{display:none}
 .knowledge-category.has-image .category-admin-actions{grid-column:1 / -1;grid-row:3;justify-content:flex-end}
}

/* V8.5.8 — hide the redundant Engineering Hub empty-state panel */
#knowledgeEmpty{display:none!important}

/* V8.5.9 — social-style engineering post layout and readable editor */
.knowledge-post,.knowledge-post.text-only,.knowledge-post.has-media{
  display:block;width:100%;max-width:900px;min-height:0;margin:0 auto;
  background:#202225;border:1px solid rgba(255,255,255,.09);border-radius:14px;overflow:hidden;
  box-shadow:0 8px 28px rgba(0,0,0,.14)
}
.knowledge-post .post-body{display:flex;flex-direction:column;gap:16px;padding:clamp(20px,3vw,30px)}
.post-author{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.08)}
.post-author-mark{width:42px;height:42px;display:block;object-fit:contain;flex:0 0 42px;border-radius:0;background:transparent;border:0;color:inherit;font-weight:700;letter-spacing:normal;font-size:inherit}
.post-author>div{display:flex;flex-direction:column;gap:3px}
.post-author strong{font-size:.9rem;font-weight:600;color:#f1f3f4}
.post-author small{font-size:.75rem;color:var(--muted)}
.knowledge-post .post-title{font-size:clamp(1.15rem,2vw,1.45rem);line-height:1.4;font-weight:600;letter-spacing:-.01em;margin:0;color:#f4f5f6}
.knowledge-post .post-content{font-size:1.05rem;line-height:1.85;letter-spacing:.005em;color:#d8dce0;overflow-wrap:anywhere}
.post-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px}
.post-gallery.single-image{grid-template-columns:minmax(0,1fr)}
.post-image-frame{margin:0;min-width:0;min-height:0;background:#151719;border:1px solid rgba(255,255,255,.06);border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.post-image-frame img{display:block;width:100%;max-height:520px;object-fit:contain}
.post-gallery:not(.single-image) .post-image-frame img{height:260px;object-fit:cover}
.knowledge-post .admin-post-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.knowledge-post .admin-post-actions button{padding:8px 14px;border-radius:7px}
.knowledge-posts{gap:22px}
#postContent{min-height:250px;font-size:1.05rem;line-height:1.8;padding:16px;resize:vertical}
.knowledge-post-modal-card{width:min(760px,calc(100vw - 32px));max-height:90vh;overflow-y:auto}
#postTitle{font-size:1rem;padding:13px 15px}
#knowledgeFeed{scroll-margin-top:24px}
@media(max-width:640px){
 .knowledge-post .post-body{padding:18px}
 .knowledge-post .post-content{font-size:1rem;line-height:1.75}
 .post-gallery{grid-template-columns:minmax(0,1fr)}
 .post-gallery:not(.single-image) .post-image-frame img{height:auto;max-height:420px;object-fit:contain}
 #postContent{min-height:210px}
}

/* V8.6.0 — inline image editor and publish progress */
.post-editor-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:-6px;padding:12px 14px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(255,255,255,.025)}
.post-editor-tools small{color:var(--muted);font-size:.82rem;line-height:1.5}
.post-upload-status{padding:10px 13px;border-left:3px solid var(--teal);background:rgba(112,220,205,.08);color:var(--teal);font-size:.9rem;line-height:1.5}
.publish-spinner{display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ea-publish-spin .7s linear infinite}
@keyframes ea-publish-spin{to{transform:rotate(360deg)}}
.inline-post-image{margin:18px auto;width:100%;max-width:760px}
.inline-post-image img{display:block;width:100%;max-height:560px;object-fit:contain;background:#151719}
.knowledge-post .post-content{white-space:normal}
@media(max-width:640px){.post-editor-tools{align-items:flex-start;flex-direction:column}.inline-post-image img{max-height:420px}}

/* V8.6.1 image cropper */
.image-crop-modal[hidden]{display:none!important}.image-crop-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:16px}.image-crop-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(5px)}.image-crop-card{position:relative;z-index:1;width:min(720px,100%);max-height:94vh;overflow:auto;background:#1c1f21;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:22px;box-shadow:0 24px 80px rgba(0,0,0,.55)}.image-crop-head{display:flex;justify-content:space-between;align-items:center}.image-crop-head h2{margin:5px 0 0}.image-crop-head button{font-size:28px;color:#dce3e4;background:transparent;border:0;cursor:pointer}.crop-hint{color:#aab5bb;font-size:.9rem}.crop-stage-wrap{width:100%;display:flex;justify-content:center;overflow:hidden}.crop-stage{position:relative;max-width:100%;overflow:hidden;background:#101214;touch-action:none;cursor:grab;border:1px solid rgba(121,223,208,.55);border-radius:8px}.crop-stage:active{cursor:grabbing}.crop-stage img{position:absolute;max-width:none;user-select:none;-webkit-user-drag:none;pointer-events:none}.crop-controls{display:flex;gap:22px;align-items:end;flex-wrap:wrap;margin-top:18px}.crop-controls label{display:flex;flex-direction:column;gap:8px;color:#dbe2e4;font-size:.88rem}.crop-controls select{background:#25292c;color:#fff;border:1px solid #454c50;padding:10px;border-radius:7px}.crop-zoom-label{flex:1;min-width:180px}.crop-zoom-label input{width:100%;accent-color:#7bdccc}.image-crop-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}@media(max-width:520px){.image-crop-card{padding:16px}.crop-stage{max-width:100%}.image-crop-actions button{flex:1}}

/* V8.6.2 — inline expandable section feeds */
.knowledge-categories{display:flex!important;flex-direction:column;gap:12px;background:transparent!important;border:0!important}
.knowledge-category{width:100%;min-height:112px;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.knowledge-feed{grid-column:1 / -1;width:100%;margin:0 0 10px;padding:26px clamp(16px,3vw,30px);border:1px solid var(--line);border-radius:13px;background:#1d2022;scroll-margin-top:20px}
.knowledge-feed[hidden]{display:none!important}
.knowledge-section-head{margin-bottom:28px}
.knowledge-section-head .knowledge-back-btn{margin-bottom:14px}
@media(max-width:640px){
 .knowledge-category{min-height:92px;padding:18px}
 .knowledge-feed{padding:18px 14px}
}

/* V8.6.3 — touch-first, phone-style image cropper */
.crop-stage{touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:contain}
.crop-hint:after{content:" Pinch with two fingers to zoom on touch screens.";display:inline;color:#aab5bb}
@media(max-width:600px){
 .image-crop-modal{padding:8px;align-items:center}
 .image-crop-card{width:100%;max-height:94dvh;padding:14px;border-radius:14px}
 .crop-stage-wrap{max-height:56dvh}
 .crop-stage{max-width:100%;max-height:56dvh}
 .crop-controls{gap:14px}
 .crop-zoom-label{min-width:100%;width:100%}
 .crop-zoom-label input{height:30px}
 .image-crop-actions{position:sticky;bottom:-14px;background:#1c1f21;padding:12px 0 2px}
}

/* V8.6.4 freeform crop selection and admin post drag ordering */
.crop-stage{overflow:hidden;position:relative;touch-action:none;cursor:crosshair;background:#111}
.crop-stage:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.52);z-index:2;pointer-events:none}
.crop-selection{position:absolute;z-index:3;box-sizing:border-box;border:2px solid #7bdccc;box-shadow:0 0 0 9999px rgba(0,0,0,.48);cursor:move;touch-action:none}
.crop-selection:after{content:"";position:absolute;inset:33.333%;border:1px solid rgba(255,255,255,.55);pointer-events:none}
.crop-selection [data-handle]{position:absolute;display:block;width:12px;height:12px;background:#fff;border:2px solid #65d6c4;border-radius:2px;z-index:4}
.crop-selection [data-handle="nw"]{left:-7px;top:-7px;cursor:nwse-resize}.crop-selection [data-handle="n"]{left:calc(50% - 6px);top:-7px;cursor:ns-resize}.crop-selection [data-handle="ne"]{right:-7px;top:-7px;cursor:nesw-resize}.crop-selection [data-handle="e"]{right:-7px;top:calc(50% - 6px);cursor:ew-resize}.crop-selection [data-handle="se"]{right:-7px;bottom:-7px;cursor:nwse-resize}.crop-selection [data-handle="s"]{left:calc(50% - 6px);bottom:-7px;cursor:ns-resize}.crop-selection [data-handle="sw"]{left:-7px;bottom:-7px;cursor:nesw-resize}.crop-selection [data-handle="w"]{left:-7px;top:calc(50% - 6px);cursor:ew-resize}
.knowledge-post[draggable="true"]{cursor:grab}.knowledge-post.is-dragging{opacity:.42}.knowledge-post.drag-over{outline:2px dashed var(--teal);outline-offset:3px}

/* V8.6.5 — preserve complete section artwork in cards and editor preview */
.knowledge-category .category-cover{
  object-fit:contain!important;
  object-position:center!important;
  background:#20292a!important;
  padding:3px;
  box-sizing:border-box;
}
.category-image-existing img{
  object-fit:contain!important;
  object-position:center!important;
  background:#20292a!important;
  padding:3px;
  box-sizing:border-box;
}

/* V8.6.6 — image fills its frame without awkward letterboxing */
.knowledge-category .category-cover,
.category-image-existing img{
  object-fit:cover!important;
  object-position:center!important;
  background:transparent!important;
  padding:0!important;
}

/* V8.6.7 — unify section image frame proportions in list and editor */
.knowledge-category .category-cover,
.category-image-existing img{
  width:112px!important;
  height:84px!important;
  aspect-ratio:4 / 3!important;
  object-fit:cover!important;
  object-position:center!important;
  padding:0!important;
  box-sizing:border-box!important;
  border-radius:8px;
}
@media(max-width:820px){
 .knowledge-category .category-cover{width:96px!important;height:72px!important;aspect-ratio:4 / 3!important}
}
@media(max-width:600px){
 .knowledge-category.has-image .category-cover{width:64px!important;height:48px!important;aspect-ratio:4 / 3!important}
 .category-image-existing img{width:112px!important;height:84px!important;aspect-ratio:4 / 3!important}
}

/* V8.6.8 — identical responsive image frame for category card and editor preview */
.knowledge-category.has-image .category-cover,
.category-image-existing img{
  width:92px!important;
  height:82px!important;
  min-width:92px!important;
  max-width:92px!important;
  min-height:82px!important;
  max-height:82px!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
  padding:0!important;
  box-sizing:border-box!important;
  border-radius:8px!important;
  flex:0 0 92px!important;
}
@media(max-width:820px){
 .knowledge-category.has-image .category-cover,
 .category-image-existing img{
  width:72px!important;height:68px!important;
  min-width:72px!important;max-width:72px!important;
  min-height:68px!important;max-height:68px!important;
  flex-basis:72px!important;
 }
}
@media(max-width:600px){
 .knowledge-category.has-image .category-cover,
 .category-image-existing img{
  width:58px!important;height:58px!important;
  min-width:58px!important;max-width:58px!important;
  min-height:58px!important;max-height:58px!important;
  flex-basis:58px!important;
 }
}


/* V8.6.9 — one source of truth for section image frame dimensions */
.knowledge-category.has-image .category-cover,
.category-image-existing img{
  display:block!important;
  width:92px!important;height:82px!important;
  min-width:92px!important;max-width:92px!important;
  min-height:82px!important;max-height:82px!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;object-position:center!important;
  padding:0!important;box-sizing:border-box!important;
  border-radius:8px!important;flex:0 0 92px!important;
}
@media(max-width:820px){
 .knowledge-category.has-image .category-cover,
 .category-image-existing img{
  width:72px!important;height:68px!important;
  min-width:72px!important;max-width:72px!important;
  min-height:68px!important;max-height:68px!important;
  flex-basis:72px!important;
 }
}
@media(max-width:600px){
 .knowledge-category.has-image .category-cover,
 .category-image-existing img{
  width:64px!important;height:64px!important;
  min-width:64px!important;max-width:64px!important;
  min-height:64px!important;max-height:64px!important;
  flex-basis:64px!important;
 }
}

/* V8.7.0 — unified image presentation across library cards, editors and posts */
.knowledge-category.has-image .category-cover,
.category-image-existing img{
  display:block!important;
  width:120px!important;
  height:76px!important;
  min-width:120px!important;
  max-width:120px!important;
  min-height:76px!important;
  max-height:76px!important;
  aspect-ratio:15/9!important;
  object-fit:cover!important;
  object-position:center!important;
  padding:0!important;
  margin:0!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:8px!important;
  box-sizing:border-box!important;
  flex:0 0 120px!important;
}
.knowledge-category.has-image{grid-template-columns:120px minmax(0,1fr) auto!important}
.category-image-existing{align-items:center!important;gap:12px!important}
.post-image-frame{
  width:100%;
  aspect-ratio:16/9;
  min-height:0!important;
  height:auto!important;
  overflow:hidden;
  background:#151719;
}
.post-image-frame img,
.inline-post-image img,
.post-gallery:not(.single-image) .post-image-frame img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  aspect-ratio:16/9!important;
  object-fit:cover!important;
  object-position:center!important;
}
.inline-post-image{width:100%;max-width:760px;aspect-ratio:16/9;overflow:hidden}
@media(max-width:820px){
 .knowledge-category.has-image{grid-template-columns:96px minmax(0,1fr) auto!important}
 .knowledge-category.has-image .category-cover,
 .category-image-existing img{
  width:96px!important;height:61px!important;min-width:96px!important;max-width:96px!important;
  min-height:61px!important;max-height:61px!important;aspect-ratio:15/9!important;flex-basis:96px!important;
 }
}
@media(max-width:600px){
 .knowledge-category.has-image{grid-template-columns:76px minmax(0,1fr)!important}
 .knowledge-category.has-image .category-cover,
 .category-image-existing img{
  width:76px!important;height:49px!important;min-width:76px!important;max-width:76px!important;
  min-height:49px!important;max-height:49px!important;aspect-ratio:15/9!important;flex-basis:76px!important;
 }
 .inline-post-image{max-width:100%}
}


/* V8.7.2 — balanced section thumbnails; show full image without cropping */
.knowledge-category.has-image{
  grid-template-columns:112px minmax(0,1fr) auto!important;
}
.knowledge-category.has-image .category-cover,
.category-image-existing img{
  display:block!important;
  width:112px!important;height:72px!important;
  min-width:112px!important;max-width:112px!important;
  min-height:72px!important;max-height:72px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;object-position:center!important;
  background:transparent!important;
  padding:0!important;margin:0!important;
  box-sizing:border-box!important;border-radius:8px!important;
  flex:0 0 112px!important;
}
@media(max-width:820px){
  .knowledge-category.has-image{grid-template-columns:88px minmax(0,1fr) auto!important}
  .knowledge-category.has-image .category-cover,
  .category-image-existing img{
    width:88px!important;height:56px!important;
    min-width:88px!important;max-width:88px!important;
    min-height:56px!important;max-height:56px!important;
    flex-basis:88px!important;
  }
}
@media(max-width:600px){
  .knowledge-category.has-image{grid-template-columns:72px minmax(0,1fr)!important}
  .knowledge-category.has-image .category-cover,
  .category-image-existing img{
    width:72px!important;height:54px!important;
    min-width:72px!important;max-width:72px!important;
    min-height:54px!important;max-height:54px!important;
    flex-basis:72px!important;
  }
}

/* V8.7.3 — remove dark letterbox behind contained section images */
.knowledge-category.has-image .category-cover,
.category-image-existing,
.category-image-existing img{
  background-color:transparent!important;
}

/* V8.7.4 — fill the thumbnail frame to eliminate unused dark space */
.knowledge-category.has-image .category-cover,
.category-image-existing{
  overflow:hidden!important;
  background:transparent!important;
  padding:0!important;
  border:0!important;
  box-sizing:border-box!important;
}
.knowledge-category.has-image .category-cover img,
.knowledge-category.has-image img.category-cover,
.category-image-existing img{
  object-fit:cover!important;
  object-position:center!important;
  background:transparent!important;
  padding:0!important;
  border:0!important;
}

/* V8.7.17 — Academic Test Zone + Certifications */
.coming-soon-badge{display:inline-flex;align-items:center;padding:10px 16px;border:1px solid rgba(0,137,176,.35);border-radius:999px;color:#0089b0;font-weight:600;letter-spacing:.04em;text-transform:uppercase;margin-top:18px;background:rgba(0,137,176,.06)}
.academic-zone-mark,.certificate-icon{min-height:260px;border:1px solid rgba(255,255,255,.08);border-radius:22px;display:grid;place-items:center;font-size:42px;font-weight:600;letter-spacing:.08em;color:#0089b0;background:linear-gradient(145deg,rgba(0,137,176,.12),rgba(255,255,255,.02))}
.academic-feature-grid{margin-top:28px}
.cert-lookup-card,.cert-admin-card{margin-top:20px;padding:28px;border:1px solid rgba(255,255,255,.08);border-radius:20px;background:rgba(255,255,255,.025)}
.cert-lookup-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-top:18px}
.cert-lookup-form input{width:100%;min-height:52px;padding:0 16px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:#111416;color:inherit;font:inherit;box-sizing:border-box}
.cert-admin-upload{white-space:nowrap;border:1px solid rgba(0,196,168,.45);color:var(--teal);background:rgba(0,196,168,.06)}
.cert-admin-upload:hover{background:rgba(0,196,168,.12)}
.certificate-result{margin-top:20px;padding:22px;border-radius:16px;border:1px solid rgba(0,137,176,.25);background:rgba(0,137,176,.06)}
.certificate-result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.certificate-result-grid div{padding:14px;border-radius:12px;background:rgba(255,255,255,.035)}.certificate-result-grid span{display:block;font-size:12px;opacity:.65;margin-bottom:6px}.certificate-result-grid strong{display:block;font-size:15px}
.cert-admin-card{margin-top:28px}.cert-admin-head{margin-bottom:18px}.file-drop{display:flex;flex-direction:column;gap:7px;padding:22px;border:1px dashed rgba(255,255,255,.2);border-radius:14px;cursor:pointer}.file-drop span{font-weight:600}.file-drop small{opacity:.65}.file-drop input{margin-top:6px}
.certificate-preview{margin-top:18px;padding:16px;border-radius:12px;background:rgba(255,255,255,.035)}.certificate-preview ul{margin:10px 0 0 18px}
@media(max-width:700px){.cert-lookup-form{grid-template-columns:1fr}.certificate-result-grid{grid-template-columns:1fr}.academic-zone-mark,.certificate-icon{min-height:180px}}

/* V8.7.18 — FAQs */
.faq-list{display:grid;gap:12px;max-width:900px;margin:0 auto}
.faq-item{border:1px solid var(--line);background:rgba(255,255,255,.018);transition:border-color var(--t-fast),background var(--t-fast)}
.faq-item[open]{border-color:rgba(0,137,176,.35);background:rgba(0,137,176,.035)}
.faq-item summary{list-style:none;cursor:pointer;padding:22px 24px;font-size:1.02rem;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:20px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';font-size:1.35rem;color:var(--teal);font-weight:300}
.faq-item[open] summary::after{content:'−'}
.faq-answer{padding:0 24px 24px;color:var(--muted);line-height:1.85;font-size:.95rem}
@media(max-width:700px){.faq-item summary{padding:18px}.faq-answer{padding:0 18px 18px}}

.cert-lookup-card-hero{margin-top:28px;padding:22px}.cert-lookup-card-hero h2{margin:0}.cert-lookup-card-hero .cert-lookup-form{margin-top:14px}.cert-lookup-card-hero .certificate-result{margin-top:16px}
@media(max-width:700px){.cert-lookup-card-hero{padding:18px}}

/* V8.7.22 — sidebar navigation is fully visible; no internal section scrolling */
@media (min-width: 1101px){
  .sidebar{overflow:visible !important;}
  .sidebar-inner{height:100%;overflow:visible !important;}
  .side-nav{display:flex !important;flex:none !important;min-height:auto !important;height:auto !important;max-height:none !important;overflow:visible !important;gap:0 !important;}
  .side-nav a{padding-top:9px !important;padding-bottom:9px !important;}
  .sidebar-contact-link{flex-shrink:0 !important;}
}

/* V8.7.23 — refined sidebar spacing: clear separation between sections and contact */
@media (min-width: 1101px){
  /* V8.8.1 FAQ refinement — reclaim sidebar language-switcher space
     and redistribute it as clearer spacing between navigation sections. */
  .side-nav{gap:10px !important;}
  .side-nav a{padding-top:9px !important;padding-bottom:9px !important;}
  .sidebar-contact-link{margin-top:16px !important;}
}

/* V8.7.24 — use the space below the logo so Contact remains visible */
@media (min-width: 1101px){
  .side-nav{
    margin-top:28px !important;
    gap:4px !important;
    overflow:visible !important;
  }
  .side-nav a{
    padding-top:9px !important;
    padding-bottom:9px !important;
  }
  .sidebar-contact-link{
    margin-top:10px !important;
  }
}

/* V8.7.25 — simple certificate ID field + compact admin upload button */
.cert-lookup-card-hero .cert-lookup-form{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.cert-lookup-card-hero .cert-admin-upload{min-height:52px;padding:0 18px;border-radius:10px;font-size:.88rem;white-space:nowrap}
@media(max-width:700px){.cert-lookup-card-hero .cert-lookup-form{grid-template-columns:1fr}.cert-lookup-card-hero .cert-admin-upload{width:100%}}

/* V8.7.28 — Certifications: one field + one admin-only upload button */
.certifications-clean{
  width:min(900px, 100%) !important;
  margin:0 auto !important;
}
.certifications-clean .cert-lookup-card{
  width:100% !important;
  box-sizing:border-box !important;
  margin-top:30px !important;
  padding:24px !important;
}
.certifications-clean .cert-lookup-form{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  margin:0 !important;
}
.certifications-clean #certificateId{
  width:100% !important;
  min-height:58px !important;
  box-sizing:border-box !important;
  padding:0 20px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background:#111416 !important;
  color:inherit !important;
  font:inherit !important;
}
.certifications-clean .cert-admin-upload{
  min-height:58px !important;
  padding:0 22px !important;
  border-radius:12px !important;
  white-space:nowrap !important;
  border:1px solid rgba(0,196,168,.45) !important;
  color:var(--teal) !important;
  background:rgba(0,196,168,.06) !important;
}
@media(max-width:700px){
  .certifications-clean .cert-lookup-form{
    grid-template-columns:1fr !important;
  }
  .certifications-clean .cert-admin-upload{
    width:100% !important;
  }
}

/* V8.7.29 — clean Certifications layout */
.certifications-clean{
  width:min(1000px, 100%) !important;
  margin:0 auto !important;
  text-align:center !important;
}
.certifications-clean .label{
  display:block !important;
  text-align:center !important;
}
.certifications-clean h1{
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.certifications-clean .lead{
  max-width:760px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
}
.certifications-clean .cert-lookup-clean{
  width:100% !important;
  margin:34px auto 0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.certifications-clean .cert-lookup-form{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  width:100% !important;
}
.certifications-clean #certificateId{
  flex:1 1 auto !important;
  width:100% !important;
  max-width:none !important;
  min-height:64px !important;
  box-sizing:border-box !important;
  padding:0 24px !important;
  border-radius:12px !important;
  font-size:1.05rem !important;
}
.certifications-clean .cert-admin-upload{
  flex:0 0 auto !important;
  min-height:64px !important;
  padding:0 24px !important;
  border-radius:12px !important;
  white-space:nowrap !important;
}
@media(max-width:700px){
  .certifications-clean .cert-lookup-form{
    flex-direction:column !important;
  }
  .certifications-clean .cert-admin-upload{
    width:100% !important;
  }
}

/* V8.7.30 — refined Certification Verification label */
.certifications-clean .label{
  display:block !important;
  text-align:center !important;
  font-size:1.15rem !important;
  font-weight:600 !important;
  letter-spacing:.03em !important;
  margin:0 auto 12px !important;
  transform:translateY(-8px) !important;
}

/* V8.7.32 — Academic Test Zone: match the clean Certifications heading layout */
.academic-zone-clean{
  width:min(1000px, 100%) !important;
  margin:0 auto !important;
  text-align:center !important;
}
.academic-zone-clean .label{
  display:block !important;
  text-align:center !important;
  font-size:1.15rem !important;
  font-weight:600 !important;
  letter-spacing:.03em !important;
  margin:0 auto 12px !important;
  transform:translateY(-8px) !important;
}
.academic-zone-clean h1{
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.academic-zone-clean .lead{
  max-width:760px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
}
.academic-zone-description{
  max-width:820px !important;
  margin:18px auto 0 !important;
  text-align:center !important;
  color:var(--muted) !important;
  line-height:1.85 !important;
  font-size:.96rem !important;
}
.academic-zone-clean .coming-soon-badge{
  margin-top:24px !important;
}

/* V8.7.33 — Academic Test Zone: update title and left-align explanatory text */
.academic-zone-clean .lead,
.academic-zone-description{
  max-width:820px !important;
  margin-left:0 !important;
  margin-right:0 !important;
  text-align:left !important;
}

/* V8.7.34 — Academic Trainers: clean public directory + admin management */
.trainers-main{min-height:calc(100vh - 20px)}
.trainers-hero{padding-top:92px!important;padding-bottom:90px!important}
.trainers-head{display:block;margin-bottom:42px}
.trainers-heading{max-width:100%}
.trainers-heading .label{display:block;font-size:1.15rem;font-weight:600;letter-spacing:.03em;margin-bottom:12px;transform:translateY(-8px)}
.trainers-heading h1{margin:0 0 20px;font-size:clamp(2.35rem,4.5vw,4.15rem);line-height:1.08;letter-spacing:-.035em;white-space:nowrap}
.trainers-heading .lead{max-width:900px;margin:0;line-height:1.8}
.trainers-admin-toolbar{display:flex;justify-content:flex-end;align-items:center;margin-top:22px}
.trainers-admin-toolbar .btn{white-space:nowrap}
.trainers-status{min-height:24px;margin:0 0 18px;color:var(--muted);font-size:.9rem}
.trainers-status.error,.trainer-form-status.error{color:#ff8f8f}
.trainers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:8px}
.trainer-card{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.09);background:#121719;border-radius:20px;box-shadow:0 22px 55px rgba(0,0,0,.24);transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease}
.trainer-card::before{content:'';position:absolute;inset:0 0 auto;height:3px;background:var(--teal);opacity:.9;z-index:2}
.trainer-card:hover{transform:translateY(-7px);border-color:rgba(40,193,218,.38);box-shadow:0 30px 70px rgba(0,0,0,.34)}
.trainer-card[draggable="true"]{cursor:grab}
.trainer-card.dragging{opacity:.45;transform:scale(.98)}
.trainer-photo{height:320px;overflow:hidden;background:#e8ecee;display:flex;align-items:center;justify-content:center;position:relative}
.trainer-photo::after{content:'';position:absolute;inset:auto 0 0;height:26%;background:linear-gradient(transparent,rgba(10,14,15,.18));pointer-events:none}
.trainer-photo img{width:100%;height:100%;object-fit:cover;display:block}
.trainer-photo-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:transparent;position:relative;background:linear-gradient(180deg,#f0f3f4,#dde3e5)}
.trainer-photo-placeholder::before{content:'';position:absolute;top:25%;width:76px;height:76px;border-radius:50%;background:#c6ced1;box-shadow:0 0 0 10px rgba(255,255,255,.28)}
.trainer-photo-placeholder::after{content:'';position:absolute;bottom:0;width:165px;height:120px;border-radius:100px 100px 0 0;background:#c2c9cc}
.trainer-body{padding:19px 20px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px}
.trainer-body h2{margin:0;color:var(--text);font-size:1.12rem;line-height:1.25;letter-spacing:-.015em}
.trainer-details-btn{flex:0 0 auto;border:1px solid rgba(42,195,218,.38);background:rgba(42,195,218,.06);color:var(--teal);border-radius:999px;padding:8px 13px;font:inherit;font-size:.74rem;cursor:pointer;transition:.2s ease}
.trainer-details-btn:hover{background:rgba(42,195,218,.14);border-color:rgba(42,195,218,.7);transform:translateY(-1px)}
.trainer-admin-controls{display:flex;gap:7px;flex-wrap:wrap;padding:0 18px 18px}
.trainer-admin-controls button{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035);color:var(--muted);border-radius:9px;padding:7px 10px;font:inherit;font-size:.76rem;cursor:pointer}
.trainer-admin-controls button:hover{border-color:rgba(42,195,218,.35);color:var(--text)}
.trainer-admin-controls button:disabled{opacity:.35;cursor:not-allowed}
.trainer-admin-controls .danger:hover{border-color:rgba(255,100,100,.4);color:#ff9b9b}
.trainer-modal[hidden]{display:none!important}
.trainer-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px}
.trainer-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(6px)}
.trainer-modal-card{position:relative;width:min(620px,100%);max-height:min(90vh,800px);overflow:auto;padding:30px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#171b1d;box-shadow:0 35px 90px rgba(0,0,0,.5)}
.trainer-modal-card .label{color:var(--teal)}
.trainer-modal-card h2{margin:8px 0 24px;font-size:1.7rem}
.trainer-modal-close{position:absolute;right:17px;top:13px;border:0;background:none;color:var(--muted);font-size:28px;cursor:pointer}
.trainer-modal-card form{display:grid;gap:16px}
.trainer-modal-card form[hidden]{display:none!important}
.trainer-modal-card label{display:grid;gap:7px;color:var(--muted);font-size:.84rem}
.trainer-modal-card input,.trainer-modal-card textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:#101416;color:var(--text);padding:12px 13px;font:inherit;outline:none}
.trainer-modal-card textarea{resize:vertical;line-height:1.65}
.trainer-modal-card input:focus,.trainer-modal-card textarea:focus{border-color:rgba(41,194,219,.5)}
.trainer-modal-card small{color:#7f9095;font-size:.72rem}
.trainer-image-preview{min-height:0;color:var(--muted);font-size:.8rem}
.trainer-image-preview img{display:block;width:90px;height:90px;object-fit:cover;border-radius:10px;border:1px solid rgba(255,255,255,.1)}
.trainer-form-status{min-height:20px;margin:0;color:var(--muted);font-size:.82rem}
.trainer-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
.trainer-details-view{display:grid;grid-template-columns:180px 1fr;gap:24px;align-items:start}
.trainer-details-photo{height:220px;border-radius:14px;overflow:hidden;background:#e8ecee}
.trainer-details-photo img{width:100%;height:100%;object-fit:cover;display:block}
.trainer-details-placeholder{width:100%;height:100%;position:relative;background:linear-gradient(180deg,#f0f3f4,#dde3e5)}
.trainer-details-placeholder::before{content:'';position:absolute;top:22%;left:50%;transform:translateX(-50%);width:58px;height:58px;border-radius:50%;background:#c6ced1}
.trainer-details-placeholder::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:125px;height:95px;border-radius:80px 80px 0 0;background:#c2c9cc}
.trainer-details-copy p{margin:0;color:var(--muted);line-height:1.8;font-size:.92rem}
@media(max-width:760px){.trainers-admin-toolbar{justify-content:flex-start}.trainers-grid{grid-template-columns:1fr}.trainer-photo{height:320px}.trainers-hero{padding-top:58px!important}.trainer-details-view{grid-template-columns:1fr}.trainer-details-photo{height:280px}}
/* V8.7.44 — Design 8: centered circular portrait, wave background, centered identity/actions */
.trainers-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:8px;
}
.trainer-card{
  min-height:365px;
  border:1px solid rgba(40,193,218,.38);
  border-radius:18px;
  background:
    radial-gradient(120% 80% at 0% 100%,rgba(0,173,195,.28),transparent 52%),
    radial-gradient(90% 70% at 100% 0%,rgba(20,85,150,.25),transparent 58%),
    linear-gradient(145deg,#0b2029 0%,#0b151c 55%,#071016 100%);
  box-shadow:0 20px 55px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.03);
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.trainer-card::before{
  height:1px;
  background:linear-gradient(90deg,transparent,var(--teal),#1689d2,transparent);
  opacity:.95;
}
.trainer-card::after{
  content:'';
  position:absolute;
  width:150%;
  height:58%;
  left:-25%;
  bottom:-27%;
  border-radius:50%;
  border-top:1px solid rgba(40,193,218,.18);
  background:linear-gradient(160deg,rgba(18,178,190,.22),rgba(9,45,68,.08) 55%,transparent 70%);
  transform:rotate(-8deg);
  pointer-events:none;
}
.trainer-card:hover{
  transform:translateY(-6px);
  border-color:rgba(42,195,218,.72);
  box-shadow:0 28px 65px rgba(0,0,0,.38),0 0 28px rgba(24,169,200,.08);
}
.trainer-photo{
  height:235px;
  background:transparent;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  z-index:1;
}
.trainer-photo::after{display:none}
.trainer-photo img{
  width:142px;
  height:142px;
  object-fit:cover;
  border-radius:50%;
  display:block;
  border:4px solid rgba(225,250,255,.95);
  box-shadow:0 0 0 4px rgba(31,190,215,.34),0 12px 32px rgba(0,0,0,.35);
}
.trainer-photo-placeholder{
  width:142px;
  height:142px;
  border-radius:50%;
  overflow:hidden;
  color:transparent;
  background:linear-gradient(180deg,#eef2f3,#d7dee1);
  border:4px solid rgba(225,250,255,.95);
  box-shadow:0 0 0 4px rgba(31,190,215,.34),0 12px 32px rgba(0,0,0,.35);
}
.trainer-photo-placeholder::before{
  top:24%;
  width:46px;
  height:46px;
  box-shadow:none;
  background:#c4ccd0;
}
.trainer-photo-placeholder::after{
  bottom:-1px;
  width:102px;
  height:74px;
  background:#bdc6ca;
}
.trainer-body{
  position:relative;
  z-index:2;
  min-height:110px;
  padding:2px 20px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:15px;
  text-align:center;
}
.trainer-body h2{
  margin:0;
  color:#f4f8f9;
  font-size:1.15rem;
  line-height:1.25;
  letter-spacing:-.015em;
}
.trainer-details-btn{
  padding:9px 20px;
  border:1px solid rgba(42,195,218,.62);
  background:rgba(16,150,185,.07);
  color:#31c7df;
  border-radius:999px;
  font-size:.78rem;
  transition:.22s ease;
}
.trainer-details-btn:hover{
  background:rgba(35,193,218,.14);
  border-color:#31c7df;
  box-shadow:0 0 18px rgba(31,190,215,.12);
  transform:translateY(-1px);
}
.trainer-admin-controls{position:relative;z-index:3}

@media(max-width:760px){
  .trainers-grid{grid-template-columns:1fr}
  .trainer-photo{height:225px}
}

/* V8.7.55 — Our Team position badge refinement */
.team-main{min-height:calc(100vh - 20px)}
.team-hero{padding-top:92px!important;padding-bottom:90px!important}
.team-head{display:block;margin-bottom:42px}
.team-heading{max-width:100%}
.team-heading .label{display:block;font-size:1.15rem;font-weight:600;letter-spacing:.03em;margin-bottom:12px;transform:translateY(-8px)}
.team-heading h1{margin:0 0 18px;font-size:clamp(2.35rem,4.5vw,4.15rem);line-height:1.08;letter-spacing:-.035em;white-space:nowrap}
.team-heading .lead{max-width:820px;margin:0;line-height:1.8}
.team-admin-toolbar{display:flex;justify-content:flex-end;align-items:center;margin-top:22px}.team-admin-toolbar .btn{white-space:nowrap}
.team-status{min-height:24px;margin:0 0 18px;color:var(--muted);font-size:.9rem}.team-status.error,.team-form-status.error{color:#ff8f8f}
/* Always three cards per row, including small screens. */
.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:8px}
.team-card{position:relative;min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,#151b1e 0%,#101416 100%);border-radius:22px;padding:28px 18px 24px;text-align:center;box-shadow:0 22px 55px rgba(0,0,0,.24);transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease}
.team-card::before{content:'';position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--teal),transparent);opacity:.9}.team-card:hover{transform:translateY(-6px);border-color:rgba(40,193,218,.4);box-shadow:0 30px 70px rgba(0,0,0,.34)}.team-card[draggable=true]{cursor:grab}.team-card.dragging{opacity:.45;transform:scale(.98)}
/* Design 9: circular profile photo with a layered teal ring. */
.team-photo{width:clamp(108px,9vw,156px);height:clamp(108px,9vw,156px);margin:4px auto 22px;padding:5px;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,rgba(43,202,225,.95),rgba(22,86,105,.7));box-shadow:0 0 0 1px rgba(255,255,255,.08),0 12px 32px rgba(0,0,0,.28)}
.team-photo img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;border:2px solid #101416;background:#dce3e5}.team-photo-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;position:relative;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 28%,#e8edef 0 22%,#cbd4d7 23% 100%)}.team-photo-placeholder::before{content:'';position:absolute;top:20%;width:31%;aspect-ratio:1;border-radius:50%;background:#aeb9bd}.team-photo-placeholder::after{content:'';position:absolute;bottom:-2%;width:64%;height:48%;border-radius:55% 55% 0 0;background:#9da9ad}.team-photo-placeholder span{position:relative;z-index:2;margin-top:88px;font-size:.55rem;letter-spacing:.12em;color:#536268;opacity:.7}
.team-card-body{padding:0 8px;margin-top:4px}.team-card-body h2{margin:0 0 11px;color:var(--text);font-size:clamp(.92rem,1.35vw,1.16rem);font-weight:700;line-height:1.28;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;word-break:normal;text-wrap:balance}.team-card-body p{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:0;padding:7px 24px;border:1px solid var(--teal);border-radius:999px;background:rgba(125,222,208,.055);color:var(--teal);font-size:clamp(.86rem,1.05vw,1rem);font-weight:500;line-height:1.25;letter-spacing:.01em;max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:inset 0 0 0 1px rgba(125,222,208,.05)}
.team-card-body::after{display:none}
.team-admin-controls{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;padding:20px 4px 0}.team-admin-controls button{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035);color:var(--muted);border-radius:9px;padding:6px 9px;font:inherit;font-size:.7rem;cursor:pointer}.team-admin-controls button:hover{border-color:rgba(42,195,218,.35);color:var(--text)}.team-admin-controls button:disabled{opacity:.35;cursor:not-allowed}.team-admin-controls .danger:hover{border-color:rgba(255,100,100,.4);color:#ff9b9b}
.team-modal[hidden]{display:none!important}.team-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px}.team-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(6px)}.team-modal-card{position:relative;width:min(620px,100%);max-height:min(90vh,800px);overflow:auto;padding:30px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#171b1d;box-shadow:0 35px 90px rgba(0,0,0,.5)}.team-modal-card .label{color:var(--teal)}.team-modal-card h2{margin:8px 0 24px;font-size:1.7rem}.team-modal-close{position:absolute;right:17px;top:13px;border:0;background:none;color:var(--muted);font-size:28px;cursor:pointer}.team-modal-card form[hidden]{display:none!important}.team-modal-card form{display:grid;gap:16px}.team-modal-card label{display:grid;gap:7px;color:var(--muted);font-size:.84rem}.team-modal-card input{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:#101416;color:var(--text);padding:12px 13px;font:inherit;outline:none}.team-modal-card input:focus{border-color:rgba(41,194,219,.5)}.team-modal-card small{color:#7f9095;font-size:.72rem}.team-image-preview{min-height:0;color:var(--muted);font-size:.8rem}.team-image-preview img{display:block;width:90px;height:90px;object-fit:cover;border-radius:10px;border:1px solid rgba(255,255,255,.1)}.team-modal-card textarea{width:100%;box-sizing:border-box;min-height:145px;resize:vertical;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:#101416;color:var(--text);padding:12px 13px;font:inherit;line-height:1.7;outline:none}.team-modal-card textarea:focus{border-color:rgba(41,194,219,.5)}
.team-details-btn{display:inline-flex;align-items:center;justify-content:center;margin-top:16px;padding:9px 15px;border:1px solid rgba(40,193,218,.45);border-radius:10px;background:rgba(40,193,218,.08);color:var(--teal);font:inherit;font-size:.78rem;cursor:pointer;transition:background .2s,border-color .2s}.team-details-btn:hover{background:rgba(40,193,218,.16);border-color:var(--teal)}
.team-details-view{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start}.team-details-photo{height:220px;border-radius:14px;overflow:hidden;background:#e8ecee}.team-details-photo img{width:100%;height:100%;object-fit:cover;display:block}.team-details-photo .team-photo-placeholder{width:100%;height:100%;border-radius:0}.team-details-copy{min-width:0}.team-details-position{display:inline-flex;margin-bottom:14px;padding:7px 13px;border:1px solid var(--teal);border-radius:999px;color:var(--teal);background:rgba(125,222,208,.055);font-size:.82rem}.team-details-copy p{margin:0;color:var(--muted);line-height:1.85;font-size:.92rem;overflow-wrap:anywhere}.team-details-empty{opacity:.7;font-style:italic}
.team-form-status{min-height:20px;margin:0;color:var(--muted);font-size:.82rem}.team-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
@media(max-width:760px){.team-details-view{grid-template-columns:1fr}.team-details-photo{height:280px;max-width:280px;width:100%;margin:auto}.team-admin-toolbar{justify-content:flex-start}.team-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.team-card{padding:18px 7px 16px;border-radius:15px}.team-photo{width:clamp(66px,20vw,105px);height:clamp(66px,20vw,105px);margin-bottom:13px;padding:3px}.team-card-body{padding:0 2px;margin-top:3px}.team-card-body h2{font-size:clamp(.66rem,2.7vw,.86rem);font-weight:700;margin-bottom:8px;white-space:normal;line-height:1.28;overflow-wrap:normal;word-break:normal;text-wrap:balance}.team-card-body p{font-size:clamp(.64rem,2.2vw,.78rem);font-weight:500;padding:6px 13px;border-radius:999px;min-height:0;border-color:var(--teal);background:rgba(125,222,208,.055);color:var(--teal);box-shadow:inset 0 0 0 1px rgba(125,222,208,.05)} .team-position-pill{width:auto!important;max-width:100%;margin-left:auto!important;margin-right:auto!important}.team-admin-controls{gap:3px;padding-top:12px}.team-admin-controls button{padding:4px 5px;font-size:.55rem}.team-heading h1{white-space:normal}}

/* V8.7.57 — Our Team Design 5: wider pill badge, larger readable position */


/* V8.7.63 — Our Team position pill: JS-driven marquee for reliable auto-scroll */
.team-position-pill{display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle;width:max-content;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;white-space:nowrap;position:relative;margin-left:auto!important;margin-right:auto!important;padding-left:18px!important;padding-right:18px!important}
.team-position-pill span{display:block;flex:0 0 auto;width:max-content;max-width:none;white-space:nowrap;transform:translate3d(0,0,0);will-change:transform}
.team-position-pill.is-marquee{justify-content:flex-start}
.team-position-pill.is-marquee span{will-change:transform}
@media(max-width:760px){.team-position-pill{padding-left:13px!important;padding-right:13px!important}}

/* V8.7.64 — Our Team row-based layout controls */
/* V8.7.65 — Restore previous fixed card size while keeping row-based centering */
.team-grid{display:flex!important;flex-direction:column!important;gap:38px!important;margin-top:8px!important}
.team-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:28px;width:100%}
.team-row .team-card{flex:0 0 calc((100% - 56px) / 3);width:calc((100% - 56px) / 3);box-sizing:border-box}
.team-form-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.team-layout-help{display:block;color:#7f9095;font-size:.72rem;line-height:1.5;margin-top:-8px}
@media(max-width:760px){.team-grid{gap:22px!important}.team-row{gap:10px}.team-row .team-card{flex-basis:calc((100% - 20px) / 3);width:calc((100% - 20px) / 3)}.team-form-two{gap:8px}}


/* V8.7.66 — Certifications verification button + strict admin-only upload UI */
.certifications-clean .cert-verify-btn{
  flex:0 0 auto !important;
  min-height:64px !important;
  padding:0 24px !important;
  border-radius:12px !important;
  white-space:nowrap !important;
  border:1px solid rgba(0,196,168,.45) !important;
  color:#111416 !important;
  background:var(--teal) !important;
  cursor:pointer !important;
  font-weight:600 !important;
}
.certifications-clean .cert-verify-btn:hover{
  filter:brightness(1.05);
}
.certifications-clean .cert-admin-upload[hidden]{display:none !important;}
@media(max-width:700px){
  .certifications-clean .cert-verify-btn,
  .certifications-clean .cert-admin-upload{
    width:100% !important;
  }
}

/* Courses & Workshops — Tabs & Layout */
.courses-hero {
  padding-top: clamp(60px, 8vw, 110px);
}
.program-tabs-wrap {
  margin-top: 48px;
  border-bottom: 1px solid var(--line);
}
.program-tabs {
  display: flex;
  gap: 8px;
  position: relative;
  margin-bottom: -1px;
}
.program-tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  padding: 14px 28px;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color var(--t-fast), background var(--t-fast);
  border-bottom: 2px solid transparent;
}
.program-tab-btn:hover {
  color: var(--text);
}
.program-tab-btn.active {
  color: var(--teal);
  font-weight: 500;
  border-bottom-color: var(--teal);
}
.program-tab-pane {
  display: none;
}
.program-tab-pane.active {
  display: block;
}
.programs-placeholder-box {
  margin-top: 48px;
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.programs-placeholder-box h2 {
  margin-bottom: 16px;
}
.programs-placeholder-box .lead {
  margin-bottom: 24px;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

/* Delivery Filter Bar */
.program-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.delivery-filters {
  display: inline-flex;
  gap: 8px;
  background: #17181a;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.delivery-filter-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.delivery-filter-btn:hover {
  color: var(--text);
}
.delivery-filter-btn.active {
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 500;
}

/* Admin Toolbar */
.courses-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.courses-admin-toolbar .btn {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Skeleton Loading Cards */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.program-card.skeleton {
  pointer-events: none;
}
.skeleton-media {
  height: 180px;
  background: linear-gradient(90deg, #1e2224 25%, #262b2e 50%, #1e2224 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}
.skeleton-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1e2224 25%, #262b2e 50%, #1e2224 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  width: 70%;
}
.skeleton-line.wide  { width: 90%; height: 16px; }
.skeleton-line.narrow { width: 45%; }

/* Program Card */
.program-card {
  background: #17191b;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.program-card:hover {
  border-color: rgba(125, 222, 208, 0.4);
  transform: translateY(-3px);
}
.program-card-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #202225;
  overflow: hidden;
}
.program-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.program-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b2322 0%, #17191b 100%);
  color: var(--teal);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.program-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}
.program-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.program-badge.delivery {
  background: rgba(23, 25, 27, 0.88);
  border: 1px solid rgba(125, 222, 208, 0.5);
  color: var(--teal);
}
.program-badge.level {
  background: rgba(23, 25, 27, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
}
.program-badge.featured {
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 600;
}
.program-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program-card-title {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 14px;
}
.program-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}
.meta-item .meta-label {
  color: #7b8184;
  margin-right: 4px;
}
.program-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.program-card-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--teal);
}
.program-card-price.free {
  color: #7dded0;
  font-size: 1.15rem;
}
.program-view-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Admin Card Controls */
.program-admin-controls {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 8px;
}
.btn-admin-action {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.78rem;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--t-fast);
}
.btn-admin-action:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-admin-action.danger:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* Empty State */
.program-empty-state {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: 4px;
}
.program-empty-state .lead {
  margin: 0 auto;
}
.program-empty-hint {
  color: var(--teal);
  font-size: 0.88rem;
  margin-top: 12px;
}

/* Program Modal */
.program-modal[hidden] {
  display: none;
}
.program-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 24px;
}
.program-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.program-modal-card {
  position: relative;
  width: min(800px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  background: #17191b;
  border: 1px solid var(--line);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}
.program-modal-card h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 300;
  margin: 0.2em 0 0.8em;
}
.program-modal-close {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}
.program-modal-close:hover {
  color: var(--text);
}
.program-modal-card form {
  display: grid;
  gap: 18px;
}
.program-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.program-form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
.program-modal-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.program-modal-card input,
.program-modal-card textarea,
.program-modal-card select {
  width: 100%;
  box-sizing: border-box;
  background: #202225;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--t-fast);
}
.program-modal-card input:focus,
.program-modal-card textarea:focus,
.program-modal-card select:focus {
  border-color: var(--teal);
}
.program-modal-card textarea {
  resize: vertical;
  line-height: 1.6;
}
.program-modal-card input[type="file"] {
  padding: 10px;
}
.program-modal-card small {
  color: var(--muted);
  font-size: 0.72rem;
}
.program-form-group {
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 14px;
}
.program-form-group-title {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.program-image-preview {
  margin-top: 8px;
}
.program-image-preview img {
  max-width: 200px;
  max-height: 120px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.instructor-avatar-svg {
  width: 64px;
  height: 64px;
  display: block;
}

@media (max-width: 720px) {
  .program-modal {
    padding: 12px;
  }
  .program-modal-card {
    padding: 24px 18px;
  }
  .program-form-row,
  .program-form-row.three-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .delivery-filters {
    width: 100%;
    justify-content: stretch;
  }
  .delivery-filter-btn {
    flex: 1;
    text-align: center;
  }
}

/* Course Details Page */
.course-detail-hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: 30px;
}
.course-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
  transition: color var(--t-fast);
}
.course-back-btn:hover {
  color: var(--teal);
}
.course-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.detail-main-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 40px;
  align-items: start;
}
.detail-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.detail-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.detail-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-enroll-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-price-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-price-val {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--teal);
}
.whatsapp-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
}
.whatsapp-icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.detail-instructor-card {
  padding: 30px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-instructor-header {
  display: flex;
  align-items: center;
  gap: 18px;
}
.detail-instructor-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(125, 222, 208, 0.4);
  flex-shrink: 0;
  background: #24282b;
}
.detail-instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-instructor-info h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}
.detail-instructor-spec {
  color: var(--teal);
  font-size: 0.85rem;
}
.detail-instructor-bio {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.detail-curriculum-section {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.detail-curriculum-body {
  margin-top: 24px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-line;
}
@media (max-width: 900px) {
  .detail-main-grid {
    grid-template-columns: 1fr;
  }
}




/* V8.8.1 — FAQ design preview + admin-only management button */
.faq-main{min-height:calc(100vh - 20px)}
.faq-hero{padding-top:92px!important;padding-bottom:100px!important}
.faq-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:42px}
.faq-heading{max-width:900px}
.faq-heading .label{display:block;font-size:1.08rem;font-weight:600;letter-spacing:.03em;margin-bottom:12px;color:var(--teal)}
.faq-heading h1{margin:0 0 18px;font-size:clamp(2.7rem,5vw,4.4rem);line-height:1.05;letter-spacing:-.035em}
.faq-heading .lead{max-width:820px;margin:0;line-height:1.8}
.faq-admin-toolbar{flex:0 0 auto;margin-bottom:3px}
.faq-admin-toolbar .btn{white-space:nowrap}
.faq-status{min-height:22px;margin:0 0 16px;color:var(--muted);font-size:.86rem}.faq-status.error{color:#ff8f8f}
.faq-list{display:grid;gap:14px;max-width:980px;margin:0 auto}
.faq-item{overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.012));box-shadow:0 18px 45px rgba(0,0,0,.16);transition:border-color .25s ease,transform .25s ease,background .25s ease}
.faq-item:hover{border-color:rgba(42,195,218,.28);transform:translateY(-2px)}
.faq-item:has(.faq-answer-wrap:not([hidden])){border-color:rgba(42,195,218,.38);background:linear-gradient(180deg,rgba(42,195,218,.055),rgba(255,255,255,.012))}
.faq-question-row{display:flex;align-items:center;gap:10px}
.faq-question{flex:1;min-width:0;border:0;background:none;color:var(--text);display:grid;grid-template-columns:52px 1fr 34px;align-items:center;gap:15px;text-align:left;padding:21px 23px;cursor:pointer;font:inherit}
.faq-number{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(42,195,218,.32);border-radius:11px;color:var(--teal);font-size:.72rem;letter-spacing:.08em}
.faq-question-text{font-size:1.02rem;font-weight:500;line-height:1.5}
.faq-toggle{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(42,195,218,.32);border-radius:50%;color:var(--teal);font-size:1.05rem;font-weight:400;line-height:1;transition:transform .2s ease}
.faq-order-controls{display:flex;align-items:center;gap:6px;padding-right:16px;flex:0 0 auto}
.faq-order-btn{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(42,195,218,.28);border-radius:50%;background:rgba(42,195,218,.025);color:var(--teal);font:inherit;font-size:1rem;line-height:1;cursor:pointer;transition:background .2s ease,border-color .2s ease,opacity .2s ease}
.faq-order-btn:hover:not(:disabled){background:rgba(42,195,218,.1);border-color:rgba(42,195,218,.5)}
.faq-order-btn:disabled{opacity:.22;cursor:not-allowed}
.faq-answer-wrap{border-top:1px solid rgba(255,255,255,.07)}
.faq-answer{padding:19px 72px 23px;color:var(--muted);line-height:1.85;font-size:.93rem;max-width:820px}
.faq-modal[hidden]{display:none!important}.faq-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px}.faq-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(6px)}.faq-modal-card{position:relative;width:min(620px,100%);max-height:90vh;overflow:auto;padding:30px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#171b1d;box-shadow:0 35px 90px rgba(0,0,0,.5)}.faq-modal-card .label{color:var(--teal)}.faq-modal-card h2{margin:8px 0 24px;font-size:1.7rem}.faq-modal-close{position:absolute;right:17px;top:13px;border:0;background:none;color:var(--muted);font-size:28px;cursor:pointer}.faq-modal-card form{display:grid;gap:16px}.faq-modal-card label{display:grid;gap:7px;color:var(--muted);font-size:.84rem}.faq-modal-card input,.faq-modal-card textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:#101416;color:var(--text);padding:12px 13px;font:inherit;outline:none;resize:vertical}.faq-modal-card input:focus,.faq-modal-card textarea:focus{border-color:rgba(41,194,219,.5)}.faq-form-note{margin:0;color:#7f9095;font-size:.76rem;line-height:1.5}.faq-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
@media(max-width:760px){.faq-head{display:block}.faq-admin-toolbar{margin-top:24px}.faq-question{grid-template-columns:40px 1fr 30px;gap:10px;padding:17px 14px}.faq-number{width:34px;height:34px}.faq-question-text{font-size:.88rem}.faq-order-controls{padding-right:10px;gap:4px}.faq-order-btn{width:27px;height:27px;font-size:.9rem}.faq-answer{padding:16px 14px 20px;font-size:.86rem}.faq-hero{padding-top:70px!important}}

/* FAQ admin management — V8.8.1 */
.faq-admin-actions{display:flex;align-items:center;gap:7px;padding-right:16px;flex:0 0 auto}
.faq-action-btn{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(42,195,218,.28);border-radius:50%;background:rgba(42,195,218,.025);color:var(--teal);font:inherit;font-size:1rem;line-height:1;cursor:pointer;transition:background .2s ease,border-color .2s ease,opacity .2s ease}
.faq-action-btn:hover{background:rgba(42,195,218,.1);border-color:rgba(42,195,218,.5)}
.faq-delete-btn{font-size:1.15rem}
.faq-action-btn:disabled{opacity:.22;cursor:not-allowed}
@media(max-width:760px){.faq-admin-actions{padding-right:10px;gap:4px}.faq-action-btn{width:27px;height:27px;font-size:.9rem}}


/* V8.8.1 FAQ sidebar spacing — keep Contact visible while using freed space between sections */
@media (min-width:1101px){
  .side-nav{gap:8px !important;}
  .side-nav a{padding-top:8px !important;padding-bottom:8px !important;}
  .sidebar-contact-link{margin-top:2px !important;padding-top:14px !important;}
}

/* V8.8.1 — keep Contact pinned at the bottom while using the free sidebar space for navigation */
@media (min-width:1101px){
  .sidebar-inner{height:100%;display:flex;flex-direction:column;}
  .side-nav{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    gap:10px !important;
    margin-top:28px !important;
    margin-bottom:0 !important;
    justify-content:flex-start !important;
  }
  .side-nav a{padding-top:9px !important;padding-bottom:9px !important;}
  .sidebar-contact-link{
    margin-top:auto !important;
    flex-shrink:0 !important;
    padding-top:8px !important;
    padding-bottom:4px !important;
  }
}

/* Contact design preview: isolated to contact page */
.ea-contact-section{padding-top:92px!important;padding-bottom:110px!important;min-height:calc(100vh - 100px)}
.ea-contact-heading{max-width:820px;margin-bottom:48px}.ea-contact-heading .label{display:block;font-size:1.08rem;font-weight:600;letter-spacing:.03em;margin-bottom:12px;color:var(--teal)}
.ea-contact-heading h1{margin:0 0 18px;font-size:clamp(2.7rem,5vw,4.4rem);line-height:1.05;letter-spacing:-.035em}.ea-contact-heading .lead{max-width:760px;margin:0;line-height:1.8}
.ea-contact-subtitle{font-size:1.12rem;font-weight:500;color:#e6eeee;margin:0 0 18px}.ea-contact-direct{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ea-contact-card,.ea-social-card{border:1px solid rgba(132,172,185,.18);border-radius:16px;background:linear-gradient(135deg,rgba(255,255,255,.032),rgba(255,255,255,.01));text-decoration:none;color:inherit;transition:border-color .2s,transform .2s,background .2s}.ea-contact-card:hover,.ea-social-card:hover{border-color:rgba(104,217,209,.65);transform:translateY(-2px);background:rgba(110,220,211,.045)}
.ea-contact-card{display:flex;align-items:center;gap:18px;padding:24px;min-height:122px}.ea-contact-icon,.ea-social-icon{display:grid;place-items:center;flex-shrink:0;width:49px;height:49px;border-radius:13px;background:rgba(98,215,211,.085);border:1px solid rgba(67,196,202,.32);color:var(--teal);font-size:1.5rem}.ea-contact-card-body{display:flex;flex-direction:column;gap:7px;min-width:0}.ea-contact-name{font-size:.88rem;color:var(--teal)}.ea-contact-value{font-size:1rem;color:#f2f5f5;overflow-wrap:anywhere}.ea-contact-arrow{margin-left:auto;color:var(--teal);font-size:1.15rem}.ea-social-heading{margin-top:44px}.ea-contact-social{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.ea-social-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:13px;padding:22px 18px;min-height:176px}.ea-social-name{font-size:1rem;color:#f1f5f5}.ea-social-handle{font-size:.78rem;color:#9daeb6;overflow-wrap:anywhere}.ea-social-arrow{position:absolute;right:17px;top:22px;color:var(--teal)}.ea-icon-facebook{font-weight:700;font-family:Arial,sans-serif}.ea-icon-linkedin{font-size:1rem;font-weight:700;font-family:Arial,sans-serif}.ea-icon-youtube{font-size:1.05rem}.ea-contact-note{font-size:.78rem;color:#879da8;margin:22px 0 0}
@media(max-width:900px){.ea-contact-social{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.ea-contact-section{padding-top:70px!important}.ea-contact-direct{grid-template-columns:1fr}.ea-contact-social{grid-template-columns:repeat(2,minmax(0,1fr))}.ea-contact-card{padding:19px}.ea-social-card{padding:18px 14px;min-height:160px}}

/* Contact icon refinement — phone and Instagram */
.ea-contact-icon svg,.ea-social-icon svg{width:24px;height:24px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ea-icon-phone svg{width:25px;height:25px;stroke-width:1.8}
.ea-icon-instagram{border-radius:13px!important}
.ea-icon-instagram svg{width:24px;height:24px}
.ea-icon-instagram .ea-instagram-dot{fill:currentColor;stroke:none}

/* Phone icon final redesign */
.ea-icon-phone{display:grid!important;place-items:center!important;transform:none!important}
.ea-icon-phone svg{display:block!important;width:22px!important;height:22px!important;fill:currentColor!important;stroke:none!important;transform:none!important;rotate:0deg!important}
.ea-icon-phone svg path{transform:none!important}


.home-overview{padding-top:32px!important;}
/* Home About Us: full-width editorial layout */
.home-overview .about-us-full{max-width:none;width:100%;}
.home-overview .about-us-full h2{color:#fff;margin:0 0 24px;font-size:clamp(2rem,3.2vw,3.2rem);font-weight:400;letter-spacing:-.035em;}
.home-overview .about-us-full .lead{max-width:none;width:100%;margin:0;line-height:1.85;}


/* Home featured-program admin controls */
.home-programs-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.home-featured-modal[hidden]{display:none!important}
.home-featured-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px}
.home-featured-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(5px)}
.home-featured-modal-panel{position:relative;z-index:1;width:min(760px,100%);max-height:min(84vh,850px);overflow:auto;background:#202427;border:1px solid rgba(125,222,208,.32);border-radius:18px;padding:30px;box-shadow:0 25px 80px rgba(0,0,0,.45)}
.home-featured-modal-panel h2{margin:8px 42px 8px 0;color:#f5f7f7;font-size:clamp(22px,3vw,30px)}
.home-featured-modal-panel>.lead{margin-bottom:22px;max-width:100%}
.home-featured-modal-close{position:absolute;top:14px;right:16px;width:36px;height:36px;border:1px solid #3a4547;border-radius:50%;background:transparent;color:#fff;font-size:24px;cursor:pointer}
.home-featured-selection-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.home-featured-selection-group{border:1px solid #343d3f;border-radius:12px;padding:14px;min-width:0}
.home-featured-selection-group h3{margin:0 0 12px;color:#7dded0;font-size:17px}
.home-featured-selection-group h3 small{color:#a9b5b7;font-size:12px;font-weight:400}
.home-featured-option{display:flex;align-items:center;gap:9px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07);cursor:pointer;min-width:0}
.home-featured-option input{accent-color:#7dded0;flex:0 0 auto;width:16px;height:16px}
.home-featured-option span{flex:1;min-width:0;overflow-wrap:anywhere;color:#f2f5f5;font-size:14px}
.home-featured-option small{font-size:10px;color:#7dded0;text-transform:uppercase}
.home-featured-no-items{color:#a9b5b7;font-size:13px}
.home-featured-selection-status{min-height:20px;margin:12px 0;color:#7dded0;font-size:13px}
.home-featured-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.home-featured-modal-open{overflow:hidden}
@media(max-width:640px){.home-featured-selection-list{grid-template-columns:1fr}.home-featured-modal-panel{padding:22px 16px}.home-programs-actions{align-items:stretch}.home-programs-actions .btn{white-space:nowrap}}

/* Fix Cancel button contrast in Home Featured admin modal */
.home-featured-modal-actions .btn.ghost{background:transparent!important;background-color:transparent!important;color:#f5f7f7!important;border:1px solid #3a4547!important;box-shadow:none!important;}
.home-featured-modal-actions .btn.ghost:hover{background:rgba(125,222,208,.08)!important;border-color:#7dded0!important;color:#7dded0!important;}


/* V8.8.27: hard override + cache-busted stylesheet for Home Featured Cancel button */
.home-featured-modal-actions > button[data-close-home-featured] {
  -webkit-appearance: none !important; appearance: none !important;
  background: transparent !important; background-color: transparent !important;
  color: #f5f7f7 !important; border: 1px solid #465255 !important;
  box-shadow: none !important; text-shadow: none !important;
  opacity: 1 !important; filter: none !important;
}
.home-featured-modal-actions > button[data-close-home-featured]:hover,
.home-featured-modal-actions > button[data-close-home-featured]:focus-visible {
  background: rgba(125, 222, 208, .08) !important;
  background-color: rgba(125, 222, 208, .08) !important;
  color: #7dded0 !important; border-color: #7dded0 !important;
}


/* V8.8.45 — public Engineering Library preview and clear section arrows */
.knowledge-category .category-chevron{display:flex!important;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid rgba(70,203,215,.32);border-radius:50%;font-size:1.35rem;font-weight:500;line-height:1;color:var(--teal);transition:transform .22s ease,background .22s ease}
.knowledge-category:has(+ .knowledge-feed:not([hidden])) .category-chevron{transform:rotate(180deg);background:rgba(70,203,215,.08)}
.post-preview-visible{white-space:normal}
.post-preview-locked{position:relative;max-height:360px;overflow:hidden;margin-top:2px;border-radius:8px}
.post-preview-blurred{filter:blur(5px);opacity:.58;user-select:none;pointer-events:none;min-height:180px}
.post-preview-gate{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:22px;background:linear-gradient(180deg,rgba(27,29,31,.25),rgba(27,29,31,.94) 28%,rgba(27,29,31,.98));backdrop-filter:blur(1px)}
.post-preview-gate strong{font-size:1.12rem;color:#f4f5f6}
.post-preview-gate p{max-width:36ch;margin:0;color:var(--muted);font-size:.92rem}
.post-preview-gate .btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin-top:4px}
.post-preview-signin{font-size:.84rem;color:var(--teal);text-decoration:none}
.post-content-full{white-space:normal;color:#d8dce0;line-height:1.85;overflow-wrap:anywhere}
@media(max-width:600px){.post-preview-locked{max-height:320px}.post-preview-gate{padding:14px}.knowledge-category .category-chevron{width:28px;height:28px}}


/* V8.8.48 — make the section arrow a real, well-aligned open control */
.knowledge-category{align-items:center!important;row-gap:12px!important}
.knowledge-category.has-image{grid-template-columns:112px minmax(0,1fr) 38px!important;grid-template-rows:auto auto!important}
.knowledge-category:not(.has-image){grid-template-columns:minmax(0,1fr) 38px!important;grid-template-rows:auto auto!important}
.knowledge-category .category-cover{grid-column:1!important;grid-row:1!important;align-self:center!important}
.knowledge-category .category-open{grid-column:2!important;grid-row:1!important;align-self:stretch!important;min-height:64px!important;padding:6px 0!important}
.knowledge-category:not(.has-image) .category-open{grid-column:1!important}
.knowledge-category .category-chevron{grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;margin:0!important;border:1px solid rgba(70,203,215,.28)!important;border-radius:50%!important;background:rgba(70,203,215,.045)!important;color:var(--teal)!important;cursor:pointer!important;font:inherit!important;line-height:1!important;transition:background .18s ease,border-color .18s ease,transform .18s ease!important}
.knowledge-category:not(.has-image) .category-chevron{grid-column:2!important}
.knowledge-category .category-chevron span{font-size:1.5rem!important;line-height:1!important;letter-spacing:0!important;margin:0!important;color:inherit!important}
.knowledge-category .category-chevron:hover,.knowledge-category .category-chevron:focus-visible{background:rgba(70,203,215,.13)!important;border-color:rgba(70,203,215,.7)!important;outline:none!important;transform:translateX(2px)!important}
.knowledge-category .category-admin-actions,.knowledge-category.has-image .category-admin-actions{grid-column:1 / -1!important;grid-row:2!important;align-self:center!important;justify-content:flex-end!important;padding-top:10px!important;margin:0!important;border-top:1px solid rgba(255,255,255,.07)!important}
.knowledge-category:not(.has-image) .category-admin-actions{grid-column:1 / -1!important;grid-row:2!important}
@media(max-width:820px){.knowledge-category.has-image{grid-template-columns:88px minmax(0,1fr) 34px!important}.knowledge-category .category-cover{width:88px!important;height:56px!important;min-width:88px!important;max-width:88px!important;min-height:56px!important;max-height:56px!important}.knowledge-category .category-chevron{width:30px!important;height:30px!important;min-width:30px!important}}
@media(max-width:600px){.knowledge-category.has-image{grid-template-columns:72px minmax(0,1fr) 30px!important;grid-template-rows:auto auto!important}.knowledge-category .category-cover{grid-column:1!important;grid-row:1!important;width:72px!important;height:54px!important;min-width:72px!important;max-width:72px!important;min-height:54px!important;max-height:54px!important}.knowledge-category .category-open,.knowledge-category.has-image .category-open{grid-column:2!important;grid-row:1!important;min-height:54px!important}.knowledge-category:not(.has-image) .category-open{grid-column:1!important}.knowledge-category .category-chevron,.knowledge-category.has-image .category-chevron{display:inline-flex!important;grid-column:3!important;grid-row:1!important;width:28px!important;height:28px!important;min-width:28px!important}.knowledge-category:not(.has-image) .category-chevron{grid-column:2!important}.knowledge-category .category-admin-actions,.knowledge-category.has-image .category-admin-actions{grid-column:1 / -1!important;grid-row:2!important;flex-wrap:wrap;gap:7px!important}}


/* Course discounts */
.program-badge.discount { background:#d94b52; color:#fff; border:1px solid rgba(255,255,255,.16); font-weight:700; }
.program-price-stack { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.program-price-original, .detail-price-original { color:var(--muted); text-decoration:line-through; font-size:.86rem; opacity:.8; }
.program-card-price.discounted, .detail-price-discounted { color:#7dded0; font-size:1.25rem; font-weight:600; }
.detail-price-original { display:block; margin-bottom:3px; }
.detail-price-discounted { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.detail-discount-badge { display:inline-block; padding:3px 8px; border-radius:4px; background:#d94b52; color:#fff; font-size:.72rem; font-weight:700; }
.discount-toggle-label { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.discount-toggle-label input { width:18px; height:18px; accent-color:var(--teal); }
.discount-help { display:block; color:var(--muted); font-size:.8rem; line-height:1.5; margin-top:8px; }
.discount-fields-row { align-items:end; }

/* Super Admin shortcut on the Home hero, above Visitors / Members */
.home-admin-permissions{align-self:flex-end;display:flex;align-items:center;gap:12px;min-width:245px;margin:0 0 18px auto;padding:11px 15px;border:1px solid rgba(125,222,208,.42);border-radius:12px;background:rgba(15,25,26,.76);color:#eaf7f5;box-shadow:0 8px 26px rgba(0,0,0,.18);backdrop-filter:blur(8px);transition:background .2s,border-color .2s,transform .2s;}
.home-admin-permissions:hover{background:rgba(28,53,53,.92);border-color:#7dded0;transform:translateY(-2px)}
.home-admin-permissions-icon{width:35px;height:35px;display:grid;place-items:center;flex:0 0 35px;border-radius:9px;background:rgba(125,222,208,.12);color:#7dded0;font-size:20px}
.home-admin-permissions>span:nth-child(2){display:flex;flex-direction:column;line-height:1.35}
.home-admin-permissions strong{font-size:.88rem;font-weight:600;letter-spacing:.2px}
.home-admin-permissions small{font-size:.7rem;color:#9fb7b5;margin-top:3px}
.home-admin-permissions-arrow{margin-left:7px;color:#7dded0;font-size:1.2rem}
.hero-community{flex-direction:column;align-items:stretch;gap:0}
.hero-community>.community-stat,.hero-community>.community-divider{align-self:flex-start}
@media(max-width:900px){.home-admin-permissions{min-width:220px;margin-bottom:12px;padding:9px 12px}.hero-community{align-items:flex-start}}
@media(max-width:600px){.hero-community{align-items:stretch}.home-admin-permissions{align-self:flex-end;min-width:0;margin-bottom:12px;gap:8px;padding:8px 10px}.home-admin-permissions-icon{width:30px;height:30px;flex-basis:30px}.home-admin-permissions strong{font-size:.78rem}.home-admin-permissions small{font-size:.64rem}.home-admin-permissions-arrow{margin-left:2px}}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsiveness Fixes (V8.8.96)
   ========================================================================== */
/* Desktop Top Controls — strictly isolated to screens > 820px */
@media (min-width: 821px) {
  /* Hide mobile-header-account on desktop — uses site-top-controls instead */
  .mobile-header-account {
    display: none !important;
  }
  .site-top-controls {
    position: fixed !important;
    top: 28px !important;
    right: 36px !important;
    left: auto !important;
    z-index: 100 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 16px !important;
  }
  html[dir="rtl"] .site-top-controls {
    right: auto !important;
    left: 36px !important;
  }
  .site-top-controls .site-account {
    position: static !important;
    display: inline-flex !important;
  }
}

@media (max-width: 820px) {
  /* 1. Mobile Header — Spacious, balanced, never clips hamburger button */
  .mobile-header {
    height: 64px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    z-index: 95 !important;
  }
  
  /* Fix logo direction in both LTR & RTL so the flame/gear mark is always before the name */
  .mobile-brand {
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 1 auto !important;
  }
  .mobile-brand .mark {
    height: 34px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }
  .mobile-brand .word {
    width: auto !important;
    max-width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 1 !important;
  }

  /* Mobile Header Sign-In / Account icon button */
  .mobile-header-account {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    color: var(--teal) !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(125,222,208,0.35) !important;
    background: rgba(125,222,208,0.06) !important;
    transition: background 0.22s, border-color 0.22s, color 0.22s !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .mobile-header-account:hover,
  .mobile-header-account:focus-visible {
    background: rgba(125,222,208,0.16) !important;
    border-color: var(--teal) !important;
  }
  .mobile-header-account .mha-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }
  /* Remove auto margin from language switcher since account button now takes the auto space */
  .mobile-header-lang {
    margin-inline-start: 8px !important;
  }


  .mobile-header-lang .lang-switch-wrap {
    transform: scale(0.86) !important;
    transform-origin: center center !important;
  }

  /* Hamburger Menu Button — always visible, never squeezed */
  .menu-btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    gap: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
  }
  .menu-btn span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: currentColor !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s, opacity 0.3s !important;
  }
  .menu-btn span:nth-child(1) { margin-bottom: 5px !important; }
  .menu-btn span:nth-child(2) { margin-bottom: 5px !important; }
  .menu-btn span:nth-child(3) { margin-bottom: 0 !important; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }

  /* 2. Hide desktop top controls on mobile screen */
  .site-top-controls {
    display: none !important;
  }

  /* 3. Mobile Menu links & Account / Contact */
  .mobile-menu {
    overflow-y: auto !important;
    padding: 24px var(--pad) 48px !important;
  }
  .mobile-menu nav a {
    font-size: 1.05rem !important;
    padding: 14px 0 !important;
    color: var(--text) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--line) !important;
    display: flex !important;
    align-items: center !important;
    transition: color var(--t-fast) !important;
  }
  .mobile-menu nav a:hover,
  .mobile-menu nav a.on {
    color: var(--teal) !important;
  }
  .mobile-account-link {
    font-size: 1.05rem !important;
    padding: 14px 0 !important;
    color: var(--text) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--line) !important;
    border-top: none !important;
    font-weight: 400 !important;
    display: flex !important;
    align-items: center !important;
    transition: color var(--t-fast) !important;
  }
  .mobile-account-link:hover {
    color: var(--teal) !important;
  }
  .mobile-contact-nav-link {
    color: var(--text) !important;
    font-weight: 400 !important;
  }
  .mobile-contact-nav-link:hover {
    color: var(--teal) !important;
  }

  /* Language Switcher in Mobile Menu */
  .mobile-menu-lang {
    margin-top: 24px !important;
    padding-top: 18px !important;
    padding-bottom: 12px !important;
    border-top: 1px solid var(--line) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .mobile-menu-lang span {
    flex-shrink: 0 !important;
  }
  .mobile-menu-lang .lang-switch-wrap {
    flex-shrink: 0 !important;
    transform: none !important;
  }

  /* 4. Home Hero text & clipping fix */
  .hero {
    min-height: 100svh !important;
    padding-top: 76px !important;
    padding-bottom: 220px !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero-content {
    transform: none !important;
    padding-top: 20px !important;
  }
  .hero .eyebrow {
    display: block !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    color: var(--teal) !important;
    margin-bottom: 12px !important;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.85rem) !important;
    white-space: normal !important;
    line-height: 1.18 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    margin-bottom: 16px !important;
  }
  .hero p.lead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 26px !important;
  }
  .hero .actions {
    gap: 10px !important;
  }
  .hero .actions .btn {
    padding: 12px 20px !important;
    font-size: 0.88rem !important;
  }

  /* 5. Headings text truncation / clipping across all pages */
  .trainers-heading h1,
  .team-heading h1,
  .courses-hero h1,
  .cert-heading h1,
  .knowledge-head h1,
  .section h1,
  .ea-contact-heading h1 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    font-size: clamp(1.8rem, 6.5vw, 2.7rem) !important;
    line-height: 1.2 !important;
  }
  .trainers-heading .label,
  .team-heading .label,
  .courses-hero .label {
    transform: none !important;
    margin-bottom: 8px !important;
    font-size: 0.95rem !important;
  }

  /* 6. Academic Trainers: 2 cards per row on mobile */
  .trainers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 18px !important;
  }
  .trainer-card {
    min-height: auto !important;
    border-radius: 14px !important;
    padding-bottom: 14px !important;
  }
  .trainer-photo {
    height: 135px !important;
  }
  .trainer-photo img,
  .trainer-photo-placeholder {
    width: 82px !important;
    height: 82px !important;
    border-width: 2.5px !important;
  }
  .trainer-body {
    min-height: auto !important;
    padding: 0 8px 6px !important;
    gap: 10px !important;
  }
  .trainer-body h2 {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }
  .trainer-details-btn {
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
  }

  /* 7. Our Team: Balanced 2 or 3 cards per row without awkward vertical stretching */
  .team-grid {
    gap: 16px !important;
  }
  .team-row {
    gap: 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .team-row .team-card {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    width: calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
    padding: 16px 8px 14px !important;
    border-radius: 14px !important;
  }
  .team-photo {
    width: 78px !important;
    height: 78px !important;
    margin-bottom: 10px !important;
  }
  .team-card-body h2 {
    font-size: 0.84rem !important;
    margin-bottom: 6px !important;
  }
  .team-card-body p {
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
  }
  .team-details-btn {
    margin-top: 10px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }

  /* 8. Courses & Workshops layout fixes */
  .courses-hero {
    padding-top: 86px !important;
  }
  .program-tabs-wrap {
    margin-top: 24px !important;
  }
  .program-tabs {
    gap: 4px !important;
  }
  .program-tab-btn {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }
  .programs-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 20px !important;
  }
}

@media (max-width: 480px) {
  /* Extra tiny screens fine-tuning */
  .mobile-brand .word {
    max-width: 100px !important;
  }
  .mobile-brand .mark {
    height: 30px !important;
  }
  .hero h1 {
    font-size: 1.9rem !important;
  }
  .trainers-heading h1,
  .team-heading h1 {
    font-size: 1.7rem !important;
  }
}

