/* Afghan Digital video guide - homepage hero button, video band and dialog (2026-11-19, template; no video link is connected here).
   Everything is namespaced adv-: nothing outside these classes is styled. Flat colours, no gradients / blur / floating decoration, radius 8-16. */
.adv-band,.adv-modal{--adv-ink:#0f2441;--adv-blue:#1e3a6e;--adv-navy:#1a365d;--adv-pale:#e8eef6;--adv-line:#d9dfec;--adv-mid:#475569}

/* video band: ONE poster directly under the hero, above the tracking banner (2026-11-20, owner: no hero button, no second «Watch video» button, no duplicate text - the WHOLE poster is the control that opens the dialog) */
.adv-band{background:#fff;border-bottom:1px solid #e2e5ef;color:var(--adv-ink)}
.adv-band-in{box-sizing:border-box;max-width:980px;margin:0 auto;padding:40px 24px}
.adv-poster{position:relative;display:block;box-sizing:border-box;width:100%;aspect-ratio:16/9;margin:0;padding:0;border:0;border-radius:16px;overflow:hidden;background:var(--adv-navy);color:#fff;font:inherit;text-align:start;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;box-shadow:0 6px 22px rgba(15,36,65,.16)}
@supports not (aspect-ratio:16/9){.adv-poster{height:0;padding-top:56.25%}}
.adv-poster:focus-visible{outline:3px solid var(--adv-blue);outline-offset:3px}
.adv-seal{position:absolute;top:16px;left:16px;box-sizing:border-box;width:52px;height:52px;border:2px solid rgba(255,255,255,.4);border-radius:50%;overflow:hidden;background:#fff}
html[dir=rtl] .adv-seal{left:auto;right:16px}
.adv-seal img{display:block;width:100%;height:100%;object-fit:cover}
.adv-play{position:absolute;top:50%;left:50%;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;background:#fff;color:var(--adv-ink);display:flex;align-items:center;justify-content:center}
.adv-play svg{display:block;width:34px;height:34px;margin-left:5px}
.adv-play{transition:transform .2s}
.adv-poster:hover .adv-play{transform:scale(1.06)}
.adv-cap{position:absolute;left:0;right:0;bottom:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;padding:14px 18px;background:rgba(10,22,40,.74);color:#fff}
.adv-cap-title{flex:1 1 auto;min-width:0;font-size:1.05em;font-weight:700;line-height:1.4}
.adv-chips{flex:0 0 auto;display:flex;gap:8px}
.adv-chips span{padding:3px 12px;border:1px solid rgba(255,255,255,.55);border-radius:999px;color:#fff;font-size:.82em;line-height:1.6}

/* dialog */
.adv-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10050;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:16px;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:rgba(10,22,40,.72);overscroll-behavior:contain}
.adv-modal[hidden],.adv-modal [hidden]{display:none!important}
.adv-box{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:100%;max-width:880px;max-height:100%;overflow:auto;border-radius:14px;background:#fff;color:var(--adv-ink);outline:0;animation:advIn .18s ease-out}
.adv-hd,.adv-tabs,.adv-panel,.adv-ft{flex:0 0 auto}
.adv-hd{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 20px;border-bottom:1px solid var(--adv-line)}
html[dir=rtl] .adv-hd{padding:14px 20px 14px 14px}
.adv-hd h2{flex:1 1 auto;min-width:0;margin:0;padding:0;color:var(--adv-ink);font-family:inherit;font-size:1.12em;font-weight:700;line-height:1.45}
.adv-x{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--adv-line);border-radius:10px;background:#fff;color:var(--adv-ink);cursor:pointer;-webkit-appearance:none;appearance:none}
.adv-x:hover{background:var(--adv-pale)}
.adv-x:focus-visible,.adv-tab:focus-visible,.adv-ft a:focus-visible{outline:3px solid var(--adv-blue);outline-offset:2px}
.adv-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:14px 20px 0}
.adv-tabs-label{color:var(--adv-mid);font-size:.88em}
.adv-tablist{display:flex;gap:8px}
.adv-tab{box-sizing:border-box;min-width:44px;min-height:44px;margin:0;padding:0 22px;border:1px solid #c3cde0;border-radius:10px;background:#fff;color:var(--adv-ink);font:inherit;font-size:1.02em;font-weight:600;cursor:pointer;-webkit-appearance:none;appearance:none}
.adv-tab[lang=fa],.adv-tab[lang=ps]{font-family:Vazirmatn,Tahoma,"Noto Sans Arabic",sans-serif}
.adv-tab[aria-selected=true]{border-color:var(--adv-blue);background:var(--adv-blue);color:#fff}
.adv-panel{padding:14px 20px 16px}
.adv-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:var(--adv-navy)}
@supports not (aspect-ratio:16/9){.adv-stage{height:0;padding-top:56.25%}}
.adv-stage iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.adv-soon{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;text-align:center}
.adv-soon .adv-seal{position:static;width:72px;height:72px}
.adv-soon-word{font-size:1.35em;font-weight:700;line-height:1.4}
.adv-ft{padding:0 20px 18px;color:var(--adv-mid);font-size:.84em;line-height:1.7}
.adv-ft p{margin:4px 0}
.adv-ft a{color:var(--adv-blue);text-decoration:underline}
html.adv-lock,html.adv-lock body{overflow:hidden!important}
html.adv-lock{scrollbar-gutter:stable}
@keyframes advIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

@media(max-width:900px){
  .adv-band-in{padding:34px 20px}
}
@media(max-width:600px){
  .adv-band-in{padding:24px 16px}
  .adv-poster{aspect-ratio:16/10;border-radius:14px}
  .adv-play{width:64px;height:64px;margin:-32px 0 0 -32px}
  .adv-play svg{width:26px;height:26px;margin-left:4px}
  .adv-seal{top:12px;left:12px;width:44px;height:44px}
  html[dir=rtl] .adv-seal{left:auto;right:12px}
  .adv-cap{padding:10px 12px}
  .adv-cap-title{font-size:.98em}
  .adv-modal{padding:8px;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .adv-hd{padding:10px 8px 10px 14px}
  html[dir=rtl] .adv-hd{padding:10px 14px 10px 8px}
  .adv-hd h2{font-size:1em}
  .adv-tabs{padding:12px 14px 0}
  .adv-panel{padding:12px 14px 14px}
  .adv-ft{padding:0 14px 14px}
  .adv-soon .adv-seal{width:56px;height:56px}
}
@media(max-width:480px){
  .adv-poster{aspect-ratio:4/3}
}
@media(max-width:360px){
  .adv-poster{aspect-ratio:1/1}
  .adv-play{width:58px;height:58px;margin:-29px 0 0 -29px}
  .adv-play svg{width:24px;height:24px}
}
@media(max-height:520px) and (orientation:landscape){
  .adv-modal{padding:6px}
  .adv-hd{padding-top:6px;padding-bottom:6px}
  .adv-tabs{padding-top:8px}
  .adv-panel{padding-top:8px;padding-bottom:10px}
  .adv-stage{max-width:calc((100vh - 150px) * 16 / 9);margin-left:auto;margin-right:auto}
}
@media(prefers-reduced-motion:reduce){
  .adv-box{animation:none}
  .adv-play{transition:none}
  .adv-poster:hover .adv-play{transform:none}
}

/* 2026-11-20 (owner: the video is hard to find, «just a blue page»): a hero button into the same dialog, and the band as a card — title, one sentence, two clear language buttons, the poster as a play tile.
   Flat colours, gold only as a 2px rule, no gradients / blur. */
.adv-hero-btn{display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;min-height:48px;margin:0;padding:12px 24px;border:2px solid #fff;border-radius:10px;background:transparent;color:#fff;font:inherit;font-size:.95em;font-weight:700;line-height:1.4;cursor:pointer;-webkit-appearance:none;appearance:none;transition:background .2s,color .2s}
.adv-hero-btn svg{flex:0 0 auto;display:block;width:18px;height:18px}
.adv-hero-btn:hover{background:#fff;color:#1b2b75}
.adv-hero-btn:focus-visible{outline:3px solid #5064ba;outline-offset:3px}
.adv-band-v2{background:#f4f6fb}
.adv-band-v2 .adv-band-in{padding:30px 24px}
.adv-card{display:flex;align-items:center;gap:24px;box-sizing:border-box;padding:20px;border:1px solid #d9dfec;border-top:2px solid #fca120;border-radius:16px;background:#fff}
.adv-card .adv-poster{flex:0 0 280px;width:280px;aspect-ratio:16/9;border-radius:12px;background:#1b2b75}
.adv-card .adv-cap{display:none}
.adv-side{flex:1 1 auto;min-width:0}
.adv-h{margin:0 0 6px;padding:0;font-size:1.25em;font-weight:700;line-height:1.45;color:#1b2b75}
.adv-lead{margin:0 0 14px;color:#475569;line-height:1.75}
.adv-langs{display:flex;flex-wrap:wrap;gap:10px}
.adv-lbtn{display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;min-height:48px;margin:0;padding:0 26px;border:0;border-radius:10px;background:#1b2b75;color:#fff;font:inherit;font-size:1.05em;font-weight:700;cursor:pointer;-webkit-appearance:none;appearance:none}
.adv-lbtn svg{flex:0 0 auto;display:block;width:16px;height:16px}
.adv-lbtn:hover{background:#142263}
.adv-lbtn:focus-visible{outline:3px solid #5064ba;outline-offset:3px}
.adv-lbtn[lang=fa],.adv-lbtn[lang=ps]{font-family:'MoFA Bahij Mitra',Vazirmatn,Tahoma,sans-serif}
@media(max-width:700px){
  .adv-card{flex-direction:column;align-items:stretch;gap:16px;padding:16px}
  .adv-card .adv-poster{flex:0 0 auto;width:100%;aspect-ratio:16/7}
  .adv-lbtn{flex:1 1 140px;justify-content:center}
}
@media(max-width:600px){
  .adv-band-v2 .adv-band-in{padding:20px 14px}
  .adv-hero-btn{width:100%;justify-content:center}
}

/* 2026-11-21 (owner: «the moment a person enters the website his eyes must meet the video; ONE tidy place, not several mentions; a picture first, then play»):
   the video strip directly under the header, above the hero. Poster = consulate seal + title + play, flat colours, gold only as a 2px rule, motion = one soft ring (opacity / transform). */
.adv-top{background:#fff;border-top:2px solid #fca120;border-bottom:1px solid #e2e5ef;color:#0f2441}
.adv-top-in{box-sizing:border-box;max-width:1100px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;gap:22px}
.adv-top-poster{position:relative;flex:0 0 232px;width:232px;aspect-ratio:16/9;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:12px;overflow:hidden;background:#1b2b75;color:#fff;font:inherit;text-align:start;cursor:pointer;-webkit-appearance:none;appearance:none}
@supports not (aspect-ratio:16/9){.adv-top-poster{height:0;padding-top:130px}}
.adv-top-poster:focus-visible{outline:3px solid #5064ba;outline-offset:3px}
.adv-top-seal{position:absolute;top:10px;left:10px;box-sizing:border-box;width:40px;height:40px;border:2px solid rgba(255,255,255,.45);border-radius:50%;overflow:hidden;background:#fff}
html[dir=rtl] .adv-top-seal{left:auto;right:10px}
.adv-top-seal img{display:block;width:100%;height:100%;object-fit:cover}
.adv-top-play{position:absolute;top:44%;left:50%;width:58px;height:58px;margin:-29px 0 0 -29px;border-radius:50%;background:#fff;color:#1b2b75;display:flex;align-items:center;justify-content:center}
.adv-top-play svg{display:block;width:24px;height:24px;margin-left:4px}
.adv-top-play::after{content:"";position:absolute;top:-7px;right:-7px;bottom:-7px;left:-7px;border:2px solid rgba(255,255,255,.75);border-radius:50%;animation:advPulse 2.2s ease-out infinite}
@keyframes advPulse{0%{transform:scale(.88);opacity:.9}100%{transform:scale(1.3);opacity:0}}
.adv-top-cap{position:absolute;left:0;right:0;bottom:0;padding:7px 12px;background:rgba(10,22,40,.7);color:#fff;font-size:.78em;font-weight:700;line-height:1.35}
.adv-top-text{flex:1 1 auto;min-width:0}
.adv-top-h{margin:0 0 4px;padding:0;font-size:1.3em;font-weight:700;line-height:1.4;color:#1b2b75}
.adv-top-lead{margin:0 0 10px;color:#475569;line-height:1.65}
.adv-top-langs{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:700px){
  .adv-top-in{gap:12px;padding:10px 12px}
  .adv-top-poster{flex:0 0 118px;width:118px;border-radius:10px}
  .adv-top-seal{top:6px;left:6px;width:26px;height:26px;border-width:1px}
  html[dir=rtl] .adv-top-seal{left:auto;right:6px}
  .adv-top-play{top:50%;width:38px;height:38px;margin:-19px 0 0 -19px}
  .adv-top-play svg{width:16px;height:16px;margin-left:3px}
  .adv-top-cap{display:none}
  .adv-top-h{font-size:1.02em;margin-bottom:6px}
  .adv-top-lead{display:none}
  .adv-top-langs{gap:8px}
  .adv-top-langs .adv-lbtn{flex:1 1 0;min-height:42px;padding:0 12px;font-size:.95em;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.adv-top-play::after{animation:none;opacity:0}}

/* 2026-11-21 owner: the explanatory lines under the video (privacy note, «open it on YouTube») are removed */
.adv-ft{display:none!important}

/* Owner: compact guide immediately below the two hero actions. */
.hp-hero-text .adv-top{margin-top:22px;border:1px solid #ffffff30;border-radius:16px;background:#ffffff0d;color:#fff;max-width:620px}
.hp-hero-text .adv-top-in{padding:16px;gap:16px}.hp-hero-text .adv-top-poster{flex-basis:120px;width:120px}.hp-hero-text .adv-top-cap{display:none}.hp-hero-text .adv-top-h{color:#fff;font-size:1.06rem;margin:0 0 12px}.hp-hero-text .adv-top-langs{justify-content:center}.hp-hero-text .adv-lbtn{background:#fff;color:#17375b;min-height:44px}.hp-hero-text .adv-top-play{width:42px;height:42px;margin:-21px 0 0 -21px;top:50%}.hp-hero-text .adv-top-play::after{animation:none}.hp-hero-text .adv-top-seal{display:none}
@media(max-width:480px){.hp-hero-text .adv-top-in{padding:12px;gap:10px}.hp-hero-text .adv-top-poster{flex-basis:86px;width:86px}.hp-hero-text .adv-top-h{font-size:1rem;text-align:center}.hp-hero-text .adv-top{margin-inline:auto}}
