/* DialogLab 1.69.40 — Search First homepage with restored classic hero and centered search.
   Deliberately scoped to .dl39-home; existing player, course, admin CSS remains unchanged.
   Copyright/user content: uses only DialogLab's existing static imagery. */
html:has(.dl39-home),html body:has(.dl39-home){height:auto!important;min-height:100%!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;scroll-behavior:smooth}
html body:has(.dl39-home){background:#09111f!important;color:#f4f7ff!important;position:static!important;overscroll-behavior-y:auto!important;}
html body:has(.dl39-home) .aurora-bg{display:none!important}
html body:has(.dl39-home) .content-shell.home-content-shell-v16704{width:100%!important;max-width:none!important;height:auto!important;min-height:100vh!important;max-height:none!important;padding:0!important;margin:0!important;position:static!important;overflow:visible!important}
.dl39-home,.dl39-home *{box-sizing:border-box}
.dl39-home{--dl39-bg:#09111f;--dl39-panel:#111f30;--dl39-line:rgba(148,178,209,.17);--dl39-white:#f4f7ff;--dl39-muted:#9baec5;--dl39-accent:#56ded1;min-height:100vh;width:100%;max-width:100%;direction:rtl;position:relative;isolation:isolate;overflow:hidden;color:var(--dl39-white);font-family:Vazirmatn,Tahoma,sans-serif;background:radial-gradient(ellipse 60% 46% at 52% 10%,rgba(40,92,130,.13),transparent 72%),radial-gradient(ellipse 25% 25% at 90% 63%,rgba(21,137,140,.06),transparent 85%),linear-gradient(170deg,#0a1323,#09111e 75%,#07101a)}
.dl39-home a,.dl39-home button{cursor:pointer}
.dl39-home a{text-decoration:none}
.dl39-home :is(button,a,input):focus-visible{outline:3px solid #f7d479!important;outline-offset:3px!important}
.dl39-header,.dl39-main,.dl39-footer{width:min(100% - 64px,1190px);margin-inline:auto;position:relative}
.dl39-header{height:88px;display:grid;grid-template-columns:minmax(210px,1fr) auto minmax(210px,1fr);align-items:center;direction:ltr;border-bottom:1px solid var(--dl39-line);gap:20px}
.dl39-brand{justify-self:start;display:flex;gap:12px;align-items:center;color:#f7f9ff!important;direction:ltr;min-width:0}
.dl39-brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#56ded1,#2a9dbc);box-shadow:0 8px 27px rgba(36,180,189,.21);color:#061a28;flex:none}
.dl39-brand-mark svg{width:29px;height:29px}
.dl39-brand-type{display:flex;flex-direction:column;line-height:1.05}
.dl39-brand-type>b{font:800 25px/1.05 system-ui,Arial,sans-serif;letter-spacing:-.9px;color:#f4f7ff}
.dl39-brand-type>b span{color:#63e4dc}
.dl39-brand-type>small{margin-top:6px;font:700 8px/1.1 system-ui,Arial,sans-serif;letter-spacing:2.1px;color:#849bb8}
.dl39-nav{display:flex;direction:rtl;align-items:center;justify-content:center;gap:28px;white-space:nowrap}
.dl39-nav a{font-weight:750;font-size:13px;color:#a8b9d0!important;transition:color .15s}
.dl39-nav a.is-current,.dl39-nav a:hover{color:#f6fbff!important}
.dl39-nav a.is-current:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#4cddcf;box-shadow:0 0 12px #41d9d0;vertical-align:middle;margin-left:8px}
.dl39-account{justify-self:end;display:flex;align-items:center;direction:rtl;gap:15px}
.dl39-home .dl39-account button{min-height:41px!important;font-family:inherit!important;font-size:12px!important;font-weight:850!important;border:0!important;box-shadow:none!important}
.dl39-home .dl39-account .dl39-account-ghost{background:transparent!important;color:#e4ebf6!important;padding:0 8px!important}
.dl39-home .dl39-account .dl39-account-primary{border-radius:12px!important;padding:0 19px!important;color:#082329!important;background:#51ded1!important;box-shadow:0 7px 20px rgba(30,195,188,.14)!important}
.dl39-account-primary span{font-size:15px;margin-right:4px}
.dl39-main{padding-top:58px}
.dl39-hero{text-align:center;padding:0 16px 49px;max-width:1040px;margin:auto}
.dl39-kicker{font-size:11px!important;letter-spacing:0!important;font-weight:700!important;color:#62ddd4!important;margin:0 0 20px!important;line-height:2!important}
.dl39-kicker>span:last-child{font:700 9px/1.6 system-ui,sans-serif;letter-spacing:2.1px;color:#7b8ba4;margin-right:9px}
.dl39-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#4adecd;box-shadow:0 0 0 4px rgba(68,204,194,.12);margin-left:8px}
.dl39-hero h1{font-family:inherit!important;font-size:clamp(32px,4.2vw,59px)!important;line-height:1.5!important;font-weight:950!important;letter-spacing:-.8px!important;margin:0!important;color:#f4f7ff!important;text-shadow:none!important}
.dl39-hero h1 em{font-style:normal!important;background:linear-gradient(95deg,#65e1d2 10%,#88c7fa 65%,#a0abff);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.dl39-description{max-width:540px;margin:15px auto 25px!important;color:var(--dl39-muted)!important;font-size:13px!important;line-height:2.1!important}
.dl39-home .dl39-search-form{width:min(100%,746px)!important;min-height:68px!important;margin:0 auto!important;padding:8px!important;display:flex!important;align-items:center!important;gap:10px!important;direction:rtl!important;overflow:visible!important;border:1px solid rgba(132,181,233,.35)!important;border-radius:18px!important;background:#16253b!important;box-shadow:0 17px 45px rgba(0,0,0,.19)!important}
.dl39-home .dl39-search-form:focus-within{border-color:#55ded1!important;box-shadow:0 0 0 3px rgba(85,222,209,.13),0 17px 45px rgba(0,0,0,.22)!important}
.dl39-search-icon{width:30px;display:grid;place-items:center;color:#9dc3da;flex:none;margin-right:11px}
.dl39-search-icon svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.7}
.dl39-home .dl39-search-form input{background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important;min-width:0!important;flex:1 1 auto!important;min-height:44px!important;height:44px!important;padding:0 5px!important;margin:0!important;color:#f7fbff!important;font:500 13px/1.6 Vazirmatn,Tahoma,sans-serif!important;text-align:right!important;direction:rtl!important}
.dl39-home .dl39-search-form input::placeholder{opacity:1!important;color:#91a8c2!important}
.dl39-home .dl39-search-form .dl39-search-submit{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-height:49px!important;height:49px!important;width:auto!important;margin:0!important;padding:0 22px!important;border:0!important;border-radius:12px!important;white-space:nowrap!important;background:#4fddce!important;color:#06222b!important;font:850 13px/1 Vazirmatn,Tahoma,sans-serif!important;box-shadow:0 6px 20px rgba(30,197,186,.10)!important;transition:background .15s!important}
.dl39-home .dl39-search-form .dl39-search-submit:hover{background:#78efe1!important}
.dl39-search-submit span{margin-right:7px;font-size:17px;line-height:1}
.dl39-suggestions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:13px;direction:rtl}
.dl39-suggestions>span{font-size:10px;color:#899ab0;margin-left:5px}
.dl39-suggestions a{padding:6px 11px;border:1px solid rgba(150,170,203,.18);border-radius:8px;background:#17263b;color:#cbd7e7!important;font:500 11px/1.5 system-ui,Arial,sans-serif;transition:background .15s,border-color .15s}
.dl39-suggestions a:hover{background:#20344b;border-color:#52d8c9}
.dl39-suggestions a span{color:#60ddcf;margin-left:3px}
.dl39-preview{padding:34px 0 0;border-top:1px solid var(--dl39-line)}
.dl39-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
.dl39-eyebrow{font:750 9px/1.6 system-ui,Arial,sans-serif;letter-spacing:2px;color:#67ddd0}
.dl39-section-head h2{font-size:clamp(20px,2.4vw,30px)!important;line-height:1.55!important;margin:4px 0 0!important;color:#f5f8ff!important;font-weight:900!important}
.dl39-section-head h2 span{color:#66dfd3}
.dl39-section-head p{margin:4px 0 0!important;color:#9baec6!important;font-size:11px!important}
.dl39-section-link{color:#72e7da!important;font-size:12px;font-weight:850;white-space:nowrap;padding:10px 0}
.dl39-section-link span{margin-right:8px}
.dl39-scenes{display:grid;grid-template-columns:1.18fr 1fr 1fr;gap:14px;direction:rtl}
.dl39-home .dl39-scene{min-width:0;min-height:0;aspect-ratio:1.65/1;position:relative;display:block;overflow:hidden;border-radius:17px;border:1px solid rgba(101,163,193,.31);background:#101b28;box-shadow:0 13px 28px rgba(0,0,0,.16);color:#f9fbff!important;transition:border-color .2s,transform .2s}
.dl39-home .dl39-scene:hover{transform:translateY(-3px);border-color:#59d9d2}
.dl39-home .dl39-scene img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;filter:saturate(.94);transition:transform .25s}
.dl39-home .dl39-scene:hover img{transform:scale(1.04)}
.dl39-scene:after{content:"";position:absolute;inset:32% 0 0;background:linear-gradient(to bottom,transparent,rgba(2,9,19,.27) 35%,rgba(3,9,18,.91));pointer-events:none}
.dl39-scene-tag{position:absolute;z-index:1;top:11px;right:11px;border:1px solid rgba(97,219,216,.53);background:rgba(2,22,32,.7);border-radius:6px;padding:4px 7px;font:750 9px/1.4 system-ui,sans-serif;letter-spacing:.5px;color:#9af1e5}
.dl39-play{position:absolute;z-index:1;left:50%;top:46%;transform:translate(-50%,-50%);height:48px;width:48px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.67);border-radius:50%;background:rgba(4,14,27,.70);color:white;font:800 15px Arial,sans-serif;padding-left:2px}
.dl39-scene-copy{position:absolute;z-index:1;right:15px;bottom:13px;left:12px;display:grid;gap:2px;text-align:right;pointer-events:none}
.dl39-scene-copy b{font-size:12px;line-height:1.5;color:#fff}
.dl39-scene-copy small{font-size:9px;color:#bdcad8;line-height:1.6}
.dl39-preview-note{font-size:10px!important;color:#778da3!important;margin:11px 0 0!important;line-height:1.8!important}
.dl39-education{margin-top:32px;padding:19px 22px;display:flex;justify-content:space-between;align-items:center;gap:22px;background:linear-gradient(135deg,rgba(19,40,57,.95),rgba(11,30,43,.97));border:1px solid rgba(106,166,188,.22);border-radius:16px}
.dl39-education-lead{display:flex;align-items:center;gap:14px}
.dl39-education-icon{width:40px;height:40px;flex:none;border-radius:12px;background:rgba(65,199,190,.13);display:grid;place-items:center;font-size:24px;color:#65e5d7}
.dl39-education h2{font-size:14px!important;line-height:1.5!important;margin:0!important;color:#f1f6fb!important}
.dl39-education p{font-size:10px!important;color:#a1b3c7!important;margin:4px 0 0!important;line-height:1.7!important}
.dl39-education-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dl39-education-links a{font-size:11px;color:#b4c8da!important;padding:10px 13px;border:1px solid rgba(146,177,202,.19);border-radius:8px;white-space:nowrap}
.dl39-education-links a:hover{border-color:#55ded1;color:#fff!important}
.dl39-education-links .dl39-education-all{color:#9af0e4!important;border-color:rgba(89,220,211,.48)}
.dl39-my-learning{margin-top:19px;border:1px solid var(--dl39-line);border-radius:16px;overflow:hidden;background:rgba(14,34,47,.68)}
.dl39-my-learning summary{cursor:pointer;padding:16px 20px;color:#d7e8ef;font-size:13px;font-weight:800;list-style:none}
.dl39-my-learning summary::-webkit-details-marker{display:none}
.dl39-my-learning summary span{float:left;color:#58dcd0;font-size:18px}
.dl39-my-learning-inner{padding:0 18px 18px}
.dl39-my-learning .home-learning-hub-v16928{margin:8px 0}
.dl39-footer{margin-top:24px;min-height:80px;padding:14px 0;border-top:1px solid var(--dl39-line);display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8397ab;font-size:10px}
.dl39-enamad{width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:9px;border:1px solid rgba(80,188,190,.23)}
.dl39-enamad img{max-height:42px;max-width:42px;object-fit:contain}
.dl39-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:930px){
 .dl39-header,.dl39-main,.dl39-footer{width:min(100% - 38px,1190px)}
 .dl39-header{grid-template-columns:auto minmax(0,1fr) auto;gap:13px}
 .dl39-nav{gap:13px}
 .dl39-nav a{font-size:11px}
 .dl39-brand-type>b{font-size:22px}
 .dl39-education{align-items:stretch;flex-direction:column}
 .dl39-education-links{justify-content:flex-start}
}
@media(max-width:660px){
 .dl39-header,.dl39-main,.dl39-footer{width:calc(100% - 28px)}
 .dl39-header{min-height:69px;height:auto;padding:10px 0;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:8px}
 .dl39-brand-mark{width:36px;height:36px;border-radius:11px}
 .dl39-brand-mark svg{width:26px;height:26px}
 .dl39-brand-type>b{font-size:21px}
 .dl39-brand-type>small{letter-spacing:1.3px;font-size:7px}
 .dl39-nav{grid-column:1/-1;grid-row:2;justify-content:center;gap:26px;border-top:1px solid rgba(255,255,255,.055);padding:9px 0 3px}
 .dl39-nav a{font-size:11px}
 .dl39-account{grid-column:2;grid-row:1;gap:5px}
 .dl39-home .dl39-account button{min-height:35px!important;font-size:11px!important}
 .dl39-home .dl39-account .dl39-account-primary{padding:0 12px!important;border-radius:10px!important}
 .dl39-main{padding-top:33px}
 .dl39-hero{padding:0 2px 30px}
 .dl39-kicker{font-size:9px!important;margin:0 0 12px!important}
 .dl39-kicker>span:last-child{display:none}
 .dl39-hero h1{font-size:clamp(28px,8.6vw,39px)!important;line-height:1.5!important;letter-spacing:-.5px!important}
 .dl39-description{font-size:11px!important;line-height:1.9!important;margin:11px auto 20px!important;max-width:350px}
 .dl39-home .dl39-search-form{min-height:61px!important;padding:6px!important;gap:5px!important;border-radius:14px!important}
 .dl39-search-icon{width:19px;margin-right:7px}
 .dl39-search-icon svg{width:17px;height:17px}
 .dl39-home .dl39-search-form input{font-size:11px!important;height:41px!important;min-height:41px!important;padding:0!important}
 .dl39-home .dl39-search-form .dl39-search-submit{height:44px!important;min-height:44px!important;border-radius:10px!important;font-size:11px!important;padding:0 11px!important}
 .dl39-search-submit span{display:none}
 .dl39-suggestions{gap:6px;margin-top:11px}
 .dl39-suggestions>span{width:100%;text-align:center;font-size:9px}
 .dl39-suggestions a{font-size:10px;padding:5px 9px}
 .dl39-preview{padding:25px 0 0}
 .dl39-section-head{align-items:center;margin-bottom:13px}
 .dl39-eyebrow{font-size:8px;letter-spacing:1.1px}
 .dl39-section-head h2{font-size:21px!important}
 .dl39-section-head p{font-size:10px!important;line-height:1.6!important}
 .dl39-section-link{font-size:10px}
 .dl39-scenes{grid-template-columns:1fr;gap:10px}
 .dl39-home .dl39-scene{aspect-ratio:1.7/1}
 .dl39-home .dl39-scene:not(.dl39-scene-main){display:none}
 .dl39-play{height:44px;width:44px}
 .dl39-scene-copy b{font-size:12px}
 .dl39-preview-note{font-size:9px!important}
 .dl39-education{margin-top:22px;padding:15px;gap:15px}
 .dl39-education-lead{gap:9px}
 .dl39-education-icon{width:34px;height:34px}
 .dl39-education h2{font-size:12px!important}
 .dl39-education p{font-size:9px!important}
 .dl39-education-links{gap:6px}
 .dl39-education-links a{font-size:10px;padding:8px 10px}
 .dl39-footer{flex-wrap:wrap;min-height:66px;gap:5px;font-size:9px}
 .dl39-footer>span:nth-child(2){display:none}
}
@media(prefers-reduced-motion:reduce){.dl39-home *, .dl39-home *:before, .dl39-home *:after{transition:none!important;animation:none!important}}
/* v1.69.39: on the new public homepage navigation is already visible in the header;
   hide the legacy fixed bottom bar on this route only so it cannot cover the video preview. */
html body:has(.dl39-home) .mobile-app-tabbar.mobile-app-tabbar-v16630{display:none!important}

/* v1.69.40: restore approved homepage messaging and its visual hierarchy.
   Keep the new search-first preview, and do not modify any controls outside .dl39-home. */
@media (min-width:931px){
 .dl39-main{padding-top:24px}
 .dl39-hero{min-height:525px;padding:25px 16px 47px;display:flex;flex-direction:column;justify-content:center;align-items:center}
}
@media (min-width:661px) and (max-width:930px){
 .dl39-main{padding-top:26px}
 .dl39-hero{min-height:465px;padding:26px 12px 46px;display:flex;flex-direction:column;justify-content:center;align-items:center}
}
@media (min-width:661px){
 .dl39-hero h1{font-size:clamp(41px,4.3vw,64px)!important;line-height:1.30!important;letter-spacing:-.9px!important}
 .dl39-description{font-size:15px!important;line-height:2!important;margin:17px auto 27px!important;max-width:760px}
 .dl39-home .dl39-search-form{width:min(100%,840px)!important;min-height:72px!important}
}
.dl39-hero h1 em{background:linear-gradient(120deg,#f7dd91 4%,#eab34d 55%,#dfa02b 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.dl39-home .dl39-search-form{border-color:rgba(239,183,74,.77)!important;background:#102135!important;box-shadow:0 20px 48px rgba(0,0,0,.21),0 0 0 1px rgba(229,170,56,.10)!important}
.dl39-home .dl39-search-form:focus-within{border-color:#f0c268!important;box-shadow:0 0 0 3px rgba(240,194,104,.15),0 20px 48px rgba(0,0,0,.24)!important}
.dl39-search-icon{color:#f0bc52}
.dl39-kicker{color:#8ec6c7!important}
.dl39-hero .dl39-description{color:#b5c7d9!important}
@media (max-width:660px){
 .dl39-main{padding-top:20px}
 .dl39-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:20px 0 33px}
 .dl39-hero h1{font-size:clamp(28px,8.25vw,39px)!important;line-height:1.43!important;letter-spacing:-.45px!important}
 .dl39-description{font-size:11.5px!important;line-height:2!important;margin:14px auto 21px!important;max-width:355px}
 .dl39-home .dl39-search-form{width:100%!important;max-width:450px!important}
 .dl39-home .dl39-search-form input{font-size:10.5px!important}
 .dl39-home .dl39-search-form input::placeholder{font-size:10px!important}
}
@media (max-width:350px){
 .dl39-home .dl39-search-form .dl39-search-submit{font-size:10px!important;padding:0 9px!important}
 .dl39-home .dl39-search-form input::placeholder{font-size:9px!important}
}
/* Full viewport width: legacy .content-shell CSS otherwise leaves a 4vw inset
   in RTL layouts, visibly pushing the centered search bar off-axis. */
html body:has(.dl39-home) > main.content-shell.home-content-shell-v16704{
 width:100vw!important;max-width:100vw!important;
 margin-inline:0!important;
}
/* Balanced wrapping prevents one-word orphan lines in the restored copy. */
.dl39-description{text-wrap:balance}
