/* OnlineVisaCenter homepage. Scoped under .ovc-home so it does not touch other pages. */
.ovc-home {
  --bg: #FFFFFF; --surface: #F5F7FA; --fg: #0F1B2D; --muted: #56637A; --line: #E3E8F0;
  --blue: #10305A; --blue-ink: #0B2344; --blue-soft: #EEF1F6;
  --orange: #F7843F; --orange-fg: #1A0E04; --orange-ink: #B8460B; --orange-soft: #FFF1E8; --orange-hover: #F26B1D;
  --btn-fg: #FFFFFF; --btn-bg: #10305A; --shadow: rgba(16,48,90,0.18);
  --art-a: #E9EDF3; --art-b: #CCD5E2;
  color-scheme: light;
}
.ovc-home[data-theme="dark"] {
  --bg: #0E1116; --surface: #171C24; --fg: #E9EDF3; --muted: #A3ADBD; --line: #2A313C;
  --blue: #8FB3E6; --blue-ink: #B5CEF0; --blue-soft: #17263D;
  --orange: #F58A4B; --orange-fg: #1A0E04; --orange-ink: #F9A777; --orange-soft: #2A1C12; --orange-hover: #F79A63;
  --btn-fg: #0E1116; --btn-bg: #8FB3E6; --shadow: rgba(143,179,230,0.2);
  --art-a: #1E2531; --art-b: #2B3442;
  color-scheme: dark;
}
.ovc-home, .ovc-home * { box-sizing: border-box; }
.ovc-home {
  margin: 0; background: var(--bg); color: var(--fg); direction: rtl;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif; font-size: 16px; line-height: 1.8;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ovc-home img { max-width: 100%; display: block; }
.ovc-home a { color: inherit; }
.ovc-home .wrap { max-width: 1180px; margin: 0 auto; }
.ovc-home :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ovc-home p { margin: 0; }
.ovc-home svg.ico { width: 32px; height: 32px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ovc-home .art { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.35; }
.ovc-home .top { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; padding-block: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.ovc-home .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; font-size: 24px; letter-spacing: 0.01em; }
.ovc-home .mark { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.ovc-home .nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.ovc-home .nav a { text-decoration: none; }
.ovc-home .nav a:hover { color: var(--blue); }
.ovc-home .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ovc-home .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; text-align: center; white-space: nowrap; background: none; color: inherit; }
.ovc-home .btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.ovc-home .btn-blue { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 6px 16px var(--shadow); }
.ovc-home .btn-outline { background: var(--bg); color: var(--blue); border-color: var(--blue); }
.ovc-home .btn-ghost { background: var(--bg); color: var(--fg); border-color: var(--line); }
.ovc-home .btn-overlay { background: rgba(255,255,255,0.92); color: var(--blue); border-color: transparent; }
.ovc-home .hero-actions .btn-blue, .ovc-home .banner .btn-blue, .ovc-home .card-form .btn-blue, .ovc-home .dpanel .btn-blue { background: var(--orange); color: var(--orange-fg); box-shadow: 0 6px 16px rgba(242,107,29,0.28); }
.ovc-home .hero-actions .btn-blue:hover, .ovc-home .banner .btn-blue:hover, .ovc-home .card-form .btn-blue:hover, .ovc-home .dpanel .btn-blue:hover { background: var(--orange-hover); }
.ovc-home .hero { padding-block: 40px 20px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.ovc-home .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--orange); color: var(--blue); margin-bottom: 14px; }
.ovc-home .welcome { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; color: var(--blue); margin: 0 0 6px; letter-spacing: 0.01em; }
.ovc-home .hero h1 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.5; font-weight: 800; margin: 0 0 14px; text-wrap: balance; }
.ovc-home .hero h1 em { font-style: normal; color: var(--orange-ink); }
.ovc-home .hero p.lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 540px; }
.ovc-home .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ovc-home .hero-notes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.ovc-home .hero-notes li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-inline-end: 8px; }
.ovc-home .card-form { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 16px 40px rgba(15,27,45,0.08); }
.ovc-home .card-form h2 { font-size: 19px; margin: 0 0 4px; }
.ovc-home .card-form .sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.ovc-home .field { display: grid; gap: 6px; margin-bottom: 12px; }
.ovc-home .field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.ovc-home .field select { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 12px; font: inherit; font-size: 15px; }
.ovc-home .card-form .btn { width: 100%; margin-top: 4px; }
.ovc-home .card-form .safe { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.ovc-home section { margin-top: 48px; }
.ovc-home .kicker { font-size: 13px; font-weight: 700; color: var(--orange-ink); letter-spacing: 0.02em; }
.ovc-home .h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin: 6px 0 8px; line-height: 1.5; text-wrap: balance; }
.ovc-home .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ovc-home .lede { color: var(--muted); margin: 0; max-width: 620px; }
.ovc-home .banner { position: relative; border-radius: 20px; overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); }
.ovc-home .banner::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 38%; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(29,91,191,0.10) 14px 15px); }
.ovc-home .banner-body { position: relative; z-index: 1; max-width: 560px; }
.ovc-home .banner h2 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; margin: 8px 0; font-weight: 800; text-wrap: balance; }
.ovc-home .banner p { margin: 0 0 14px; color: var(--muted); }
.ovc-home .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--orange); color: var(--orange-fg); }
.ovc-home .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px auto 0; width: 100%; }
.ovc-home .tcard { position: relative; height: 170px; border-radius: 16px; overflow: hidden; color: var(--fg); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; isolation: isolate; text-decoration: none; background: linear-gradient(160deg, var(--art-a), var(--art-b)); border: 1px solid var(--line); }
.ovc-home .tcard .ico { position: absolute; top: 14px; inset-inline-end: 14px; width: 32px; height: 32px; }
.ovc-home .tcard h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; line-height: 1.5; }
.ovc-home .tcard .tag { align-self: flex-start; font-size: 11px; padding: 2px 9px; margin-bottom: 4px; }
.ovc-home .tcard .img-slot { position: absolute; inset: 0; z-index: -1; }
.ovc-home .tcard:hover { border-color: var(--blue); }
.ovc-home .dest-wrap { max-width: 920px; }
.ovc-home .dest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ovc-home .dcard { position: relative; height: 270px; border-radius: 16px; overflow: hidden; color: #fff; isolation: isolate; }
.ovc-home .dart { position: absolute; inset: 0; transition: transform 700ms ease; background: linear-gradient(160deg, var(--art-a), var(--art-b)); }
.ovc-home .dart .art { opacity: 0.5; }
.ovc-home .dcard:hover .dart, .ovc-home .dcard:focus-within .dart { transform: scale(1.04); }
.ovc-home .dcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0) 75%); }
.ovc-home .flag { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,0.9); border: 1px solid var(--blue); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; color: var(--blue); }
.ovc-home .status-line { position: absolute; top: 14px; inset-inline-start: 12px; z-index: 3; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.95); color: var(--blue-ink); }
.ovc-home .dtext { position: absolute; inset-inline: 16px; bottom: 16px; z-index: 2; text-align: start; transition: bottom 450ms ease; }
.ovc-home .dtext h3 { margin: 0 0 2px; font-size: 19px; font-weight: 800; }
.ovc-home .dtext span { font-size: 12.5px; color: #E6EAF0; }
.ovc-home .dpanel { position: absolute; inset-inline: 0; bottom: -100%; z-index: 4; padding: 12px; display: grid; gap: 8px; background: rgba(255,255,255,0.96); border-top: 1px solid var(--line); transition: bottom 450ms ease; }
.ovc-home .dpanel .btn { min-height: 38px; font-size: 13px; padding: 0 12px; }
.ovc-home .dpanel .btn-blue { background: var(--orange); color: var(--orange-fg); box-shadow: none; }
.ovc-home .dcard:hover .dtext, .ovc-home .dcard:focus-within .dtext { bottom: 124px; }
.ovc-home .dcard:hover .dpanel, .ovc-home .dcard:focus-within .dpanel { bottom: 0; }
@media (hover: none){
.ovc-home .dpanel { bottom: 0; }
.ovc-home .dtext { bottom: 124px; }
}
.ovc-home .brokers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ovc-home .broker { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; background: #fff; min-height: 120px; }
.ovc-home .broker img { height: auto; max-width: 100%; }
.ovc-home .broker span { font-size: 12px; color: #10305A; font-weight: 700; }
.ovc-home .broker:hover { border-color: var(--blue); }
.ovc-home .disclaimer { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.ovc-home .split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.ovc-home .col-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.ovc-home .col-head h2 { font-size: 20px; font-weight: 800; margin: 4px 0 0; }
.ovc-home .col-head a { font-size: 13.5px; color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ovc-home .posts { display: grid; gap: 10px; }
.ovc-home .post { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; background: var(--bg); }
.ovc-home .post .thumb { height: 64px; border-radius: 10px; background: linear-gradient(135deg, var(--art-a), var(--art-b)); }
.ovc-home .post small { color: var(--orange-ink); font-weight: 700; font-size: 12px; }
.ovc-home .post h3 { margin: 0; font-size: 15px; line-height: 1.6; }
.ovc-home .post p { color: var(--muted); font-size: 13px; }
.ovc-home .post:hover { border-color: var(--blue); }
.ovc-home .faq { display: grid; gap: 8px; }
.ovc-home .faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--bg); }
.ovc-home .faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ovc-home .faq summary::-webkit-details-marker { display: none; }
.ovc-home .faq summary::after { content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; font-size: 16px; line-height: 1; }
.ovc-home .faq details[open] summary::after { content: "−"; }
.ovc-home .faq details[open] { border-color: var(--blue); }
.ovc-home .faq details p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.ovc-home .trust { border: 1px solid var(--line); border-radius: 20px; padding: 30px clamp(20px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: var(--bg); }
.ovc-home .trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; }
.ovc-home .trust ul li::before { content: "■"; color: var(--orange); font-size: 9px; margin-inline-end: 10px; vertical-align: middle; }
.ovc-home .float-wa { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,0.2); z-index: 60; }
.ovc-home .float-wa svg { width: 28px; height: 28px; }
.ovc-home .bot-launch { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.ovc-home .bot { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 80px; width: min(360px, calc(100vw - 32px)); height: 430px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.18); z-index: 61; display: flex; flex-direction: column; overflow: hidden; }
.ovc-home .bot-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ovc-home .bot-head strong { color: var(--blue); }
.ovc-home .bot-head button { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.ovc-home .bot-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.ovc-home .bot-msg { background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.ovc-home .bot-user { background: var(--blue-soft); color: var(--fg); border-radius: 14px; padding: 10px 12px; font-size: 14px; margin-inline-start: 24px; }
.ovc-home .bot-note { font-size: 12px; color: var(--muted); }
.ovc-home .bot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.ovc-home .bot-form input { flex: 1; min-width: 0; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 14px; font: inherit; font-size: 14px; }
.ovc-home footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 32px 0 22px; font-size: 14px; color: var(--muted); }
.ovc-home .foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.ovc-home footer strong { color: var(--blue); display: block; margin-bottom: 8px; font-size: 16px; }
.ovc-home footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ovc-home footer a { text-decoration: none; color: var(--fg); }
.ovc-home footer a:hover { color: var(--blue); }
.ovc-home .contact li span { color: var(--orange-ink); margin-inline-end: 6px; font-weight: 700; }
.ovc-home .copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ovc-home .theme-btn { color: var(--fg); }
@media (max-width: 1000px){
.ovc-home .hero, .ovc-home .trust, .ovc-home .split { grid-template-columns: 1fr; }
.ovc-home .dest { grid-template-columns: repeat(2, 1fr); }
.ovc-home .brokers { grid-template-columns: repeat(2, 1fr); }
.ovc-home .foot { grid-template-columns: 1fr 1fr; }
.ovc-home .nav { display: none; }
}
@media (max-width: 760px){
.ovc-home .trio { grid-template-columns: 1fr; }
.ovc-home .tcard { height: 150px; }
}
@media (max-width: 600px){
.ovc-home .dest { grid-template-columns: 1fr; }
.ovc-home .dcard { height: 240px; }
.ovc-home .hero { padding-block: 24px 10px; }
.ovc-home .foot { grid-template-columns: 1fr; }
.ovc-home .brokers { grid-template-columns: 1fr; }
.ovc-home .post { grid-template-columns: 1fr; }
.ovc-home .post .thumb { height: 100px; }
}
@media (prefers-reduced-motion: reduce){
.ovc-home, .ovc-home * { transition: none !important; animation: none !important; }
}
body:has(.ovc-home[data-theme="dark"]) { background: #0E1116; }
.ovc-home [hidden] { display: none !important; }

/* English layout: the same design, left to right. */
.ovc-home[dir="ltr"] { direction: ltr; text-align: left; }
.ovc-home[dir="ltr"] .faq summary { padding-right: 0; padding-left: 36px; }

/* Form fields (select, input, textarea) inside the preview layout. */
.ovc-home .field input,
.ovc-home .field select,
.ovc-home .field textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px;
  border: 1px solid #cfd6e0; border-radius: 10px; font: inherit;
  background: #fff; color: inherit;
}
.ovc-home .field textarea { min-height: 84px; resize: vertical; }
.ovc-home .field input:focus-visible,
.ovc-home .field select:focus-visible,
.ovc-home .field textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ovc-home[data-theme="dark"] .field input,
.ovc-home[data-theme="dark"] .field select,
.ovc-home[data-theme="dark"] .field textarea { background: #161B22; border-color: #2a313c; color: #e6e9ef; }

/* Services page. */
.ovc-home.svc-page .svc-intro { max-width: 70ch; color: #4a5567; margin: 8px 0 16px; }
.ovc-home .svc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) {
  .ovc-home .svc-grid { grid-template-columns: repeat(3, 1fr); }
}
.ovc-home .svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ovc-home .svc-tabs [role="tab"] { cursor: pointer; }
.ovc-home .svc-form { margin-top: 16px; }
.ovc-home .svc-form .field { margin-bottom: 12px; }
.ovc-home .svc-form .field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) {
  .ovc-home .svc-form .field-row { grid-template-columns: 1fr 1fr; }
}
.ovc-home .svc-result { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.8; }
.ovc-home .svc-result:empty { display: none; }
.ovc-home .svc-ok { background: #e8f6ee; color: #14532d; border: 1px solid #b7e3c7; }
.ovc-home .svc-error { background: #fdecec; color: #7a1f1f; border: 1px solid #f3b9b9; }
.ovc-home[data-theme="dark"] .svc-ok { background: #13291c; color: #bff0cf; border-color: #1f4a30; }
.ovc-home[data-theme="dark"] .svc-error { background: #2c1414; color: #ffc9c9; border-color: #5a2222; }

/* Brand logo (site-wide, loaded by the renderer on every page).
   Light logo on light backgrounds; the navy-background version is shown in dark mode. */
.brand-logo { display: block; height: 34px; width: auto; max-width: 100%; }
.brand-logo-dark { display: none; }
.ovc-home[data-theme="dark"] .brand-logo-light { display: none; }
.ovc-home[data-theme="dark"] .brand-logo-dark { display: block; }
@media (max-width: 480px) { .brand-logo { height: 28px; } }
