/* Shared public appearance: official blue/gold identities, with an explicit dark palette. */
html{color-scheme:light}
.theme-toggle{display:inline-grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid #dce5f0;border-radius:12px;background:#fff;color:#082b5c;cursor:pointer;transition:background .25s,color .25s,border-color .25s,box-shadow .25s}
.theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s}
.theme-toggle:hover{background:#edf5ff;border-color:#d9ad2b;box-shadow:0 0 0 3px #d9ad2b20}
.theme-toggle:hover svg{transform:rotate(-18deg)}
.theme-toggle:focus-visible,.partner-logo:focus-visible{outline:3px solid #d9ad2b;outline-offset:4px}
.theme-sun{display:none}
.inner-nav>.theme-toggle,.news-nav>.theme-toggle{margin-inline-start:auto}

/* Physical LTR movement stays identical in Persian and English. Each twin covers a full viewport. */
.client-home .partners{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#edf3fb 0,transparent 65%),#fff}
.partner-marquee{clear:both;direction:ltr;border:0;padding-block:6px;mix-blend-mode:multiply}
.partner-marquee>.partner-track{direction:ltr;display:flex;width:max-content;gap:0;margin:0;padding:18px 0 28px;animation:partnerGlide var(--partner-duration,40s) linear infinite;will-change:transform;mix-blend-mode:multiply}
.partner-group{direction:ltr;display:flex;gap:0;padding:0;align-items:center;flex:0 0 auto}
.partner-logo{display:grid;place-items:center;flex:0 0 200px;width:200px;height:144px;padding:12px;border:0;border-radius:0;background:transparent;box-shadow:none}
.partner-logo img{display:block;width:120px;height:112px;object-fit:contain;mix-blend-mode:multiply;transition:transform .3s}
.partner-logo:hover img{transform:translateY(-4px) scale(1.04)}
.partner-marquee:hover>.partner-track,.partner-marquee:focus-within>.partner-track{animation-play-state:running}
@keyframes partnerGlide{to{transform:translateX(calc(-1 * var(--partner-distance,600px)))}}
.client-home .header-brand img{width:140px;height:69px;flex-shrink:0}

/* Reveal on entry, fine hover feedback; no artificial movement on every scroll. */
.motion-ready.motion-arrived{animation:surfaceArrive .7s cubic-bezier(.2,.75,.25,1) var(--motion-delay,0ms) both}
@keyframes surfaceArrive{from{opacity:0;translate:0 22px}to{opacity:1;translate:0 0}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .client-home .stat-grid article,.client-home .about-card{transition:translate .3s,box-shadow .3s,border-color .3s}
  .client-home .stat-grid article:hover,.client-home .about-card:hover{translate:0 -5px;box-shadow:0 22px 40px #082b5c15;border-color:#d9ad2b}
  .service-grid article:hover .svc-gold{filter:drop-shadow(0 0 9px #d9ad2b99)}
  .media-news-card img,.archive-card img{transition:scale .65s cubic-bezier(.2,.75,.25,1)}
  .media-news-card:hover img,.archive-card:hover img{scale:1.045}
  .client-assistant:before{animation:assistantGridDrift 26s linear infinite}
}
@keyframes assistantGridDrift{to{background-position:0 0,38px 38px,-38px 38px}}

html[data-theme=dark]{color-scheme:dark;--ink:#e7eef9;--muted:#a8b8cd;--line:#2a3c54;--bg:#081321;--blue:#8bb8ff;--blue-dark:#d7e7ff;--blue-soft:#182c47;--gold:#dfbb57;--gold-dark:#edcd78;--shadow:0 18px 50px #0004;--client-navy:#deebff;--client-blue:#8bb8ff;--client-blue-soft:#1c304c;--client-gold:#dfbb57;--client-gold-dark:#edcd78;--client-ink:#e7eef9;--client-muted:#a8b8cd;--client-line:#2a3c54;--client-surface:#111f31;--client-shadow:0 22px 58px #0004;--premium-navy:#deebff;--premium-blue:#8bb8ff}
html[data-theme=dark] body,html[data-theme=dark] body.client-home{background:#081321;color:#dbe6f5}
html[data-theme=dark] :is(.topbar,.inner-nav,.news-nav,.brand-masthead){background:rgba(12,25,42,.96);border-color:#2a3c54}
html[data-theme=dark] :is(.topbar nav a,.inner-nav a,.news-nav a){color:#c9d9ed}
html[data-theme=dark] :is(.topbar nav.open,.language-menu>div,.site-search){background:#111f31;border-color:#2a3c54}
html[data-theme=dark] :is(.search-toggle,.language-menu>button,.theme-toggle){background:#16273e;color:#d7e7ff;border-color:#354a65}
html[data-theme=dark] .theme-sun{display:block}html[data-theme=dark] .theme-moon{display:none}
/* Transparent light identities on dark surfaces, never a white tray behind a white logo. */
html[data-theme=dark] :is(.header-brand img,.brand-masthead img,.footer-official-brand img){background:transparent;border-radius:0;padding:0;filter:grayscale(1) invert(1) brightness(1.8);mix-blend-mode:screen;opacity:1}
html[data-theme=dark] .client-home .topbar .menu{background:#16273e;color:#d7e7ff;border-color:#354a65}
html[data-theme=dark] :is(.about-overview,.partners,.services,.inner-hero,.news-hero):not(.client-hero){background:linear-gradient(180deg,#0b1829,#101f33)}
html[data-theme=dark] :is(.card,.stat-grid article,.media-console,.media-news-card,.media-video-item,.media-archive,.about-card,.service-grid article,.archive-card,.side-card,.official-milestones article,.official-video-grid a,.faq-list details,.contact-info article,.contact-form,.news-tools,.empty,.related a,#article){background:#111f31;border-color:#2a3c54;color:#dbe6f5}
html[data-theme=dark] :is(.about-card p,.service-copy p,.service-rich-content,.service-rich-content p,#article .lead,.official-article p,.contact-info p){color:#b8c7da}
html[data-theme=dark] :is(.service-copy h3,.service-grid h3,.archive-card h2,.official-article h2,.official-article h3,.service-rich-content h2,.service-rich-content h3,.service-rich-content h4,.official-video-grid b){color:#d7e7ff}
html[data-theme=dark] .service-art{background:radial-gradient(ellipse at 80% 0,#dfbb5718,transparent 70%),#172940;background-image:linear-gradient(#8bb8ff07 1px,transparent 1px),linear-gradient(90deg,#8bb8ff07 1px,transparent 1px);background-size:28px 28px}
html[data-theme=dark] :is(.service-category,.about-card>a,.service-link b){background:#23354b;color:#edcd78}
html[data-theme=dark] :is(.stat-grid span,.stat-grid i,.header-brand small,.media-news-card small,.archive-card small){color:#a8b8cd}
html[data-theme=dark] .client-home .milestone-card{background:linear-gradient(150deg,#152f50,#0c1d33);border-color:#314b6b}
html[data-theme=dark] :is(.milestone-scroll article,.milestone-scroll article.active){background:#142a43;border-color:#385572}
html[data-theme=dark] .client-home .milestone-scroll time{background:#1b3554;color:#edcd78}
html[data-theme=dark] :is(.milestone-scroll b,.milestone-scroll p){color:#c4d5e9}
html[data-theme=dark] .partner-logo img{filter:grayscale(1) invert(1) brightness(1.8);mix-blend-mode:screen}
html[data-theme=dark] .partner-marquee>.partner-track{mix-blend-mode:screen}
html[data-theme=dark] .partner-marquee{mix-blend-mode:screen}
html[data-theme=dark] :is(input,textarea,select,.filter-tabs button,.faq-layout aside button,.quick button){background:#172940;color:#e2ecfa;border-color:#354a65}
html[data-theme=dark] :is(.news-tools button,.site-language-toggle){background:#172940;color:#d7e7ff;border-color:#354a65}
html[data-theme=dark] :is(.filter-tabs button.active,.faq-layout aside button.active){background:#1d58b1;color:#fff;border-color:#628bc2}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a7b8cf}
html[data-theme=dark] :is(.site-search-results a,.popular-item){border-color:#2e435d;color:#dbe6f5}
html[data-theme=dark] :is(.chat,.client-assistant .chat,.messages,.quick){background:#111f31!important;color:#dbe6f5}
html[data-theme=dark] :is(.chat-head,.assistant-form,.assistant-note){background:#16273e!important;border-color:#2e435d!important}
html[data-theme=dark] .client-home .messages .chat-message p{background:#1c304c;color:#dbe6f5}
html[data-theme=dark] .client-home .messages .user-message p{background:#235cac;color:#fff}
html[data-theme=dark] .client-home .assistant-form input{background:#0d1c30}
html[data-theme=dark] .assistant-form button{background:#1c5ebc!important;color:#fff}
html[data-theme=dark] .assistant-widget-close{background:#233d5b;color:#e2ecfa}
html[data-theme=dark] :is(.primary,.mobile-apply){background:#1d58b1;color:#fff}
html[data-theme=dark] .popular-item>i{background:#1c304c;color:#8bb8ff}
html[data-theme=dark] .service-rich-content blockquote{background:#2a2d29;color:#edcd78}
html[data-theme=dark] footer{background:#060e1b;border-color:#2a3c54}
/* Official footer links: preserve supplied URLs, with language-aware labels. */
footer .footer-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 60px;margin-top:30px;padding-block:28px;border-top:1px solid rgba(181,202,232,.22)}
footer .footer-resource-group{min-width:0}
footer .footer-resource-group h3{margin:0 0 14px;color:#f0cc64;font-size:15px}
footer .footer-resource-group ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
footer .footer-resource-group a{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:8px 0;color:#c5d0df;font-size:13px;line-height:1.8;border-radius:4px;overflow-wrap:anywhere}
footer .footer-resource-group a:hover{color:#fff}
footer .footer-resource-group a:focus-visible{outline:2px solid #f0cc64;outline-offset:5px;color:#fff}
footer .footer-resource-arrow{flex:none;color:#d9ad2b;font:18px Arial,sans-serif}
@media(max-width:700px){footer .footer-resources{grid-template-columns:1fr;gap:26px;padding-block:24px}footer .footer-resource-group a{min-height:44px}}
html[data-theme=dark] .client-lightbox{background:#111f31;color:#e2ecfa}
@media(min-width:701px) and (max-width:1120px){.client-home .header-brand img{width:118px;height:58px}}
@media(max-width:700px){
  .theme-toggle{flex-basis:36px;width:36px;height:36px;border-radius:10px}
  .theme-toggle svg{width:19px;height:19px}
  .partner-logo{flex-basis:150px;width:150px;height:124px;padding:10px}
  .partner-logo img{width:100px;height:100px}
  .client-home .header-brand img{width:88px;height:44px}
  .client-home .partner-marquee{margin-inline:0}
}
@media(max-width:370px){.client-home .header-brand img{width:78px;height:39px}}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .partner-marquee{overflow-x:auto;mask-image:none}.partner-group[aria-hidden=true]{display:none}
  .partner-group [aria-hidden=true]{display:none}
}
