
:root{
  --bg:#f7fbfc;
  --surface:#ffffff;
  --surface-2:#eff6f8;
  --text:#0d2f4a;
  --muted:#607586;
  --line:#d8e6ea;
  --gold:#c79a3e;
  --gold-2:#b98523;
  --aqua:#d6f4f6;
  --aqua-2:#0aa0b8;
  --green:#18b56e;
  --shadow:0 10px 30px rgba(8,37,56,.08);
  --radius:20px;
  --header-h:74px;
}
html{scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Vazirmatn,Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.7}
body.en{font-family:Inter,"Segoe UI",Arial,sans-serif}
body.dark{--bg:#071521;--surface:#0c2231;--surface-2:#102838;--text:#eff6fb;--muted:#a8bfcd;--line:#1a3b50;--gold:#cda24a;--gold-2:#b88424;--aqua:#103a43;--aqua-2:#61dce8;--shadow:0 14px 34px rgba(0,0,0,.34)}
a{text-decoration:none;color:inherit}img{max-width:100%;display:block}button,input,textarea{font:inherit}
.container{width:min(1220px,calc(100% - 28px));margin-inline:auto}
.header{position:sticky;top:0;z-index:100;background:rgba(247,251,252,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
body.dark .header{background:rgba(7,21,33,.94)}
.navbar{height:var(--header-h);display:flex;align-items:center;gap:18px}
.brand{display:flex;align-items:center;gap:10px;min-width:max-content}
.brand img{width:56px;height:56px;object-fit:contain}
.brand strong{display:block;font-size:15px;line-height:1.3}.brand small{display:block;font-size:14px;color:var(--text);font-weight:800;line-height:1.55}
.brand .brand-subline{font-size:9px;line-height:1.35;opacity:.92;margin-top:1px}
.nav-area{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:1}
.nav-links{display:flex;align-items:center;gap:22px;justify-content:flex-start;flex:1}
[dir="rtl"] .nav-links{justify-content:flex-start;text-align:right}
.nav-links a{font-size:14px;font-weight:700;color:var(--muted);padding:8px 0;position:relative}.nav-links a:hover,.nav-links a.active{color:var(--text)}
.nav-links a:not(.cta-link):after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;background:var(--gold);transform:scaleX(0);transition:.25s}.nav-links a:hover:after,.nav-links a.active:after{transform:scaleX(1)}
.cta-link{padding:12px 28px;min-width:210px;justify-content:center;border-radius:14px;color:#fff!important;background:linear-gradient(120deg,var(--gold) 0%,#d1a84f 20%,#f1d38f 40%,var(--gold) 60%,#b98523 80%,var(--gold) 100%);background-size:250% 100%;animation:goldWave 3.2s linear infinite;box-shadow:0 8px 20px rgba(185,133,35,.22)}
@keyframes goldWave{0%{background-position:0 50%}100%{background-position:200% 50%}}
.controls{display:flex;align-items:center;gap:14px}
.lang-switch{display:flex;align-items:center;gap:14px;color:var(--text);font-size:14px}
.lang-switch button{border:0;background:transparent;padding:0;cursor:pointer;color:var(--muted)}
.lang-switch button.active{color:var(--gold);position:relative}.lang-switch button.active:after{content:"";position:absolute;inset-inline:0;bottom:-8px;height:2px;background:var(--gold)}
.lang-sep{width:1px;height:18px;background:#b6bec4}
.toggle-wrap{display:flex;align-items:center;gap:8px}
.theme-switch{width:48px;height:28px;border-radius:999px;border:0;background:#163d58;position:relative;cursor:pointer;padding:0}
.theme-switch .knob{position:absolute;top:4px;inset-inline-start:4px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.25s}
body.dark .theme-switch{background:#d2a246}body.dark .theme-switch .knob{transform:translateX(20px)}
.theme-icon{font-size:18px;color:var(--muted)}
.menu-btn{display:none;border:1px solid var(--line);background:var(--surface);color:var(--text);width:40px;height:40px;border-radius:12px;cursor:pointer}
.section{padding:26px 0}.compact-section{padding:18px 0}
.hero{padding:14px 0 18px}.slider{position:relative;overflow:hidden;border-radius:28px;border:1px solid var(--line);box-shadow:var(--shadow);background:var(--surface)}
.slide{display:none;position:relative}.slide.active{display:block}.slide img{width:100%;height:350px;object-fit:cover}
.slide-overlay{position:absolute;inset:0;background:linear-gradient(270deg,rgba(247,251,252,.94) 0%,rgba(247,251,252,.83) 32%,rgba(247,251,252,.25) 65%,rgba(247,251,252,0) 100%)}
body.dark .slide-overlay{background:linear-gradient(270deg,rgba(7,21,33,.94) 0%,rgba(7,21,33,.84) 32%,rgba(7,21,33,.28) 65%,rgba(7,21,33,0) 100%)}
.slide-content{position:absolute;top:50%;transform:translateY(-50%);right:44px;left:auto;max-width:520px;text-align:right;direction:rtl}.slide-content h1{margin:0 0 10px;font-size:42px;line-height:1.2;font-weight:900}.slide-content p{margin:0 0 16px;font-size:18px;color:var(--muted);line-height:1.85}.slide-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:16px;padding:14px 20px;font-size:16px;font-weight:800;cursor:pointer;transition:.2s}.btn-primary{background:linear-gradient(90deg,var(--gold),var(--gold-2));border:1px solid var(--gold-2);color:#fff}.btn-secondary{background:var(--surface);border:1px solid var(--line);color:var(--text)}
.slider-controls{position:absolute;inset-inline:18px;bottom:18px;display:flex;align-items:center;justify-content:space-between}.slider-arrows{display:flex;gap:8px}.slider-arrow{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(13,47,74,.35);color:#fff;display:grid;place-items:center;font-size:22px;cursor:pointer}.slider-dots{display:flex;gap:8px}.slider-dots button{width:10px;height:10px;border-radius:50%;border:0;background:rgba(255,255,255,.55);cursor:pointer}.slider-dots button.active{width:32px;border-radius:999px;background:linear-gradient(90deg,var(--gold),var(--aqua-2))}
.strip-card{background:linear-gradient(180deg,var(--surface),var(--surface-2));border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:12px 14px}
.strip-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.strip-head h2{margin:0;font-size:20px;line-height:1.35}.strip-head span{font-size:11px;font-weight:800;color:var(--gold)}.strip-mini{color:var(--muted);font-size:13px}
.why-mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mini-card{background:linear-gradient(90deg,var(--aqua),var(--surface));border:1px solid var(--line);border-radius:14px;padding:8px 10px;display:flex;align-items:center;gap:8px}.mini-icon{width:28px;height:28px;border-radius:10px;background:#fff;color:var(--gold);display:grid;place-items:center;font-weight:900;flex:0 0 auto}.mini-card strong{display:block;font-size:13px;line-height:1.3}.mini-card small{display:block;font-size:11px;color:var(--muted);line-height:1.45}
.tracking-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.tracking-strip h2{margin:0 0 2px;font-size:22px}.tracking-strip .lead{margin:0;color:var(--muted);font-size:14px}.track-actions{display:flex;gap:10px;flex-wrap:wrap}.steps-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.step-chip{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px 12px}.step-no{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(90deg,var(--gold),var(--aqua-2));color:#fff;font-weight:900;font-size:13px}.step-chip strong{display:block;font-size:14px}.step-chip small{display:block;font-size:12px;color:var(--muted)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}.section-head span{font-size:12px;font-weight:800;color:var(--gold)}.section-head h2{margin:0;font-size:34px;line-height:1.35}.section-head p{margin:0;max-width:620px;color:var(--muted);font-size:15px}
.blog-grid,.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}.card img{width:100%;height:220px;object-fit:cover}.blog-copy{padding:16px}.meta{font-size:12px;font-weight:800;color:var(--gold);margin-bottom:8px}.blog-copy h3{margin:0 0 8px;font-size:15px;line-height:1.45}.blog-copy p{margin:0;color:var(--muted);font-size:10.5px}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:18px}
.address-ribbon{background:none;color:var(--gold);border-radius:0;padding:0;font-weight:900;line-height:1.6;margin:0 0 14px;font-size:18px}.contact-info-list{display:grid;gap:8px}.contact-info-item{padding:8px 0;border-bottom:1px solid var(--line)}.contact-info-item:last-child{border-bottom:0}.contact-info-item small{display:block;font-size:12px;color:var(--muted)}.contact-info-item strong{display:block;font-size:17px}.contact-map{margin-top:14px;border-radius:18px;overflow:hidden;border:1px solid var(--line)}.contact-map iframe{width:100%;height:320px;border:0;display:block}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{grid-column:1/-1}.input,.file-wrap{width:100%;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:16px;padding:14px 16px;outline:none;font-size:15px}.input:focus{border-color:var(--gold)}textarea.input{min-height:136px;resize:vertical}.file-note{font-size:12px;color:var(--muted);margin-top:4px}.checkbox-row{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.actions-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.btn-email{background:#186449;color:#fff;border:1px solid #186449}.btn-wa{background:var(--gold);color:#111b23;border:1px solid var(--gold)}
.page-hero{padding:22px 0}.page-hero .panel{padding:24px}.page-hero h1{margin:0 0 8px;font-size:44px}.page-hero p{margin:0;color:var(--muted);font-size:16px}

.why-title-only{margin:0 0 10px;font-size:28px;line-height:1.2;font-weight:900;color:var(--text)}

.why-strip{background:linear-gradient(180deg,#2d4f73,#375a7f);border-color:#3f678f}
.why-strip .why-title-only{color:#fff}
.why-strip .mini-card{background:rgba(255,255,255,.95);border-color:rgba(255,255,255,.22)}
.why-strip .mini-card small{color:#4b6170}
.contact-row-inline{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.contact-row-inline .contact-info-item{border-bottom:0;padding-top:0}
@media(max-width:640px){.contact-row-inline{grid-template-columns:1fr}}


.footer{
  margin-top:18px;
  background:#0b2638;
  color:#d7e2e9;
  border-top:1px solid rgba(255,255,255,.08)
}
.footer-main{
  display:grid;
  grid-template-columns:1.25fr .8fr .9fr .95fr;
  gap:34px;
  padding:30px 0 24px
}
.footer-brand{
  display:flex;
  align-items:flex-start;
  gap:12px
}
.footer-brand img{
  width:64px;
  height:64px;
  object-fit:contain;
  flex:0 0 auto
}
.footer-brand strong{
  display:block;
  color:#fff;
  font-size:16px;
  line-height:1.35;
  margin-bottom:5px
}
.footer-brand p{
  margin:0;
  color:#9fb4c1;
  font-size:13px;
  line-height:1.8
}
.footer-col h4{
  margin:0 0 12px;
  color:#fff;
  font-size:14px;
  font-weight:800
}
.footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px
}
.footer-col li,
.footer-col a{
  color:#a9bdc9;
  font-size:13px;
  line-height:1.65
}
.footer-col a:hover{color:#fff}
.footer-contact-line{
  display:flex;
  align-items:flex-start;
  gap:8px
}
.footer-contact-line .dot{
  color:var(--gold);
  line-height:1.5
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  padding:12px 0
}
.footer-bottom-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px;
  color:#9fb4c1;
  font-size:12px
}
.footer-bottom-row .designer{
  justify-self:start;
  display:flex;
  align-items:center;
  gap:9px
}
.footer-bottom-row .designer a{
  color:#9fb4c1;
  text-decoration:none
}
.footer-bottom-row .designer a:hover{color:#fff}
.footer-bottom-row .rights{
  justify-self:center;
  text-align:center;
  white-space:nowrap
}
.negaran-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border:1.7px solid #9fb4c1;
  border-radius:7px;
  color:#9fb4c1;
  font-size:16px;
  font-weight:900;
  line-height:1
}
.footer-bottom-row .end-spacer{justify-self:end}
@media(max-width:900px){
  .footer-main{grid-template-columns:1fr 1fr;gap:24px}
  .footer-bottom-row{grid-template-columns:1fr}
  .footer-bottom-row .designer,
  .footer-bottom-row .rights,
  .footer-bottom-row .end-spacer{justify-self:center}
  .footer-bottom-row .rights{white-space:normal}
}
@media(max-width:560px){
  .footer-main{grid-template-columns:1fr;gap:20px;padding:24px 0 18px}
}

.why-strip .strip-head{
  justify-content:center;
  text-align:center
}
.why-strip .strip-head>div{
  width:100%;
  text-align:center
}
.why-title-only{
  width:100%;
  text-align:center
}

/* فرم تماس: 30٪ فشرده‌تر و فونت کوچک‌تر */
.contact-form .input,
.form-grid .input{
  padding:9px 12px;
  font-size:12px;
  line-height:1.35;
  border-radius:13px
}
.contact-form textarea.input,
.form-grid textarea.input{
  min-height:95px
}
.form-grid .file-wrap{
  padding:8px 10px;
  font-size:12px
}
.form-grid .file-note,
.form-grid .checkbox-row{
  font-size:11px
}

@media(max-width:920px){
  .slide-content{
    right:24px;
    left:auto
  }
}
@media(max-width:640px){
  .slide-content{
    right:18px;
    left:auto
  }
}


/* تیترهای اصلی سه بخش: 50٪ بزرگ‌تر و بولد */
.section-kicker-large{
  display:block !important;
  font-size:18px !important;
  font-weight:900 !important;
  line-height:1.35 !important;
  color:var(--gold) !important;
  margin:0 0 4px !important
}
.tracking-strip .section-kicker-large{
  font-size:19px !important
}


/* اصلاح بخش تماس */
.contact-grid{
  align-items:stretch !important;
}
.contact-grid > .panel{
  height:100%;
}
.contact-map iframe{
  height:224px !important; /* حدود 30٪ کوچک‌تر از 320px */
}
.contact-grid > .panel:first-child{
  display:flex;
  flex-direction:column;
}
.contact-grid > .panel:first-child .contact-map{
  margin-top:auto;
}

/* اصلاح عملکرد دکمه شناور واتساپ */
.whatsapp-float{
  pointer-events:auto !important;
  cursor:pointer !important;
  z-index:9999 !important
}
.whatsapp-float *{
  pointer-events:none
}

/* فوتر: طراحی نگاران در سمت چپ واقعی */
.footer-bottom-row{
  direction:ltr
}
.footer-bottom-row .designer{
  justify-self:start !important;
  text-align:left !important;
  direction:rtl;
  display:flex;
  align-items:center;
  gap:10px
}
.footer-bottom-row .designer a{
  text-align:left !important;
  text-decoration:none !important
}
.footer-bottom-row .designer img{
  width:112px;
  height:auto;
  opacity:.98;
  flex:0 0 auto
}
.footer-bottom-row .rights{
  direction:rtl
}
@media(max-width:900px){
  .footer-bottom-row .designer{
    justify-self:center !important;
    text-align:center !important
  }
}


/* v11 overrides */
:root{--gold:#a87928;--gold-2:#8f651d;--header-h:72px}
.header{top:0;padding-top:0}
.topbar{background:#0f2234;color:#d9e4ea;border-bottom:1px solid rgba(255,255,255,.08)}
.topbar-inner{min-height:36px;display:flex;justify-content:flex-start;direction:ltr}
.topbar-contact{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}
.topbar-contact a{color:#d9e4ea}
.topbar-sep{opacity:.5}
.navbar{height:72px}
.slide-content h1{font-size:34px}
.slide-content p{font-size:17px}
.section-kicker-large{font-size:22px !important;font-weight:900 !important;color:var(--gold-2) !important}
.tracking-strip .section-kicker-large{font-size:22px !important}
.cta-link{font-weight:900 !important}
.btn-wa,.btn-email{font-weight:800;background-size:240% 100%;animation:waveButton 3.2s linear infinite;color:#fff}
.btn-wa{background-image:linear-gradient(120deg,#20b95f 0%,#25D366 20%,#5ae38c 40%,#25D366 60%,#169a49 80%,#25D366 100%);border:1px solid #1aa651}
.btn-email{background-image:linear-gradient(120deg,#127a57 0%,#16986b 25%,#32bb8a 48%,#16986b 70%,#0f6e4f 100%);border:1px solid #127a57}
@keyframes waveButton{0%{background-position:0 50%}100%{background-position:220% 50%}}
.whatsapp-float{position:fixed;left:18px;bottom:18px;display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;background:#25D366;color:#fff !important;box-shadow:0 18px 34px rgba(0,0,0,.18);z-index:9999 !important;pointer-events:auto !important;cursor:pointer !important;line-height:1.1}
.whatsapp-float:hover{transform:translateY(-1px)}
.whatsapp-float .wa-round{display:grid;place-items:center;width:24px;height:24px;color:#fff}
.whatsapp-float .wa-round svg{width:24px;height:24px;fill:currentColor}
.whatsapp-float span:last-child{font-size:14px;font-weight:800}
.whatsapp-float *{pointer-events:none}
.why-strip{margin-top:4px}
.why-strip .strip-head{margin-bottom:10px}
.footer-main{display:none !important}
.footer{background:#0b2638;color:#d7e2e9}
.footer-bottom{padding:16px 0}
.footer-bottom-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;direction:ltr;color:#b9cbd6;font-size:12px}
.footer-bottom-row .designer{justify-self:start !important;display:flex;align-items:center;gap:10px;direction:rtl;text-align:left}
.footer-bottom-row .designer a{color:#b9cbd6;text-decoration:none !important;white-space:nowrap}
.footer-bottom-row .designer img{width:auto;height:64px;display:block}
.footer-bottom-row .rights{justify-self:center;text-align:center;white-space:nowrap;color:#b9cbd6;direction:rtl}
.footer-bottom-row .end-spacer{display:block}
@media(max-width:900px){.footer-bottom-row{grid-template-columns:1fr}.footer-bottom-row .designer,.footer-bottom-row .rights,.footer-bottom-row .end-spacer{justify-self:center}.footer-bottom-row .rights{white-space:normal}.topbar-inner{justify-content:center}.footer-bottom-row .designer img{height:54px}}
@media(max-width:640px){.whatsapp-float{left:12px;bottom:12px;padding:11px 14px}.slide-content h1{font-size:28px}.slide-content p{font-size:14px}}


/* v13 */
.whatsapp-float{
  left:auto !important;
  right:18px !important;
}
@media(max-width:640px){
  .whatsapp-float{left:auto !important;right:12px !important}
}
.btn-email{
  background-image:linear-gradient(120deg,#8f651d 0%,#b98523 20%,#d1a84f 40%,#b98523 60%,#8f651d 82%,#b98523 100%) !important;
  border-color:#8f651d !important;
  color:#fff !important;
}
.footer-bottom-row .designer img{
  height:26px !important;
  width:auto !important;
  object-fit:contain;
  filter:none !important;
}
.analysis-ticker{
  width:100%;
  background:linear-gradient(90deg,#2d4f73,#385f88,#2d4f73);
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(0,0,0,.08);
  overflow:hidden;
  margin:0 0 8px;
}
.ticker-viewport{overflow:hidden;white-space:nowrap}
.ticker-track{
  display:inline-flex;
  align-items:center;
  gap:24px;
  min-width:max-content;
  padding:10px 0;
  animation:tickerMove 34s linear infinite;
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.ticker-track b{color:#d7b257;font-weight:900}
@keyframes tickerMove{
  from{transform:translateX(0)}
  to{transform:translateX(50%)}
}
[dir="ltr"] .ticker-track{animation-direction:reverse}
.why-strip{padding:10px 12px}
.why-inline{
  display:grid;
  grid-template-columns:1.08fr repeat(4,1fr);
  gap:8px;
  align-items:stretch;
}
.why-inline-title{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 14px;
  text-align:right;
}
.why-inline-title h2{
  margin:0;
  color:#fff;
  font-size:23px;
  font-weight:900;
  line-height:1.35;
  white-space:nowrap;
}
.why-inline .mini-card{height:100%}
@media(max-width:960px){
  .why-inline{grid-template-columns:1fr 1fr}
  .why-inline-title{grid-column:1/-1;justify-content:center;text-align:center;padding:4px 0}
}
@media(max-width:600px){
  .why-inline{grid-template-columns:1fr}
  .why-inline-title{grid-column:auto}
}


/* v14: blog pages, gallery lightbox and dark-mode control */
.theme-switch{direction:ltr !important;position:relative !important;overflow:hidden}
.theme-switch .knob{left:4px !important;right:auto !important;inset-inline-start:auto !important;transform:none !important}
body.dark .theme-switch .knob{transform:translateX(20px) !important}
body.dark .theme-switch{background:#b98523 !important}
body.dark .theme-icon{color:#d7b257 !important}
.meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--gold-2)}
.article-date{margin-inline-start:auto;font-variant-numeric:tabular-nums;color:var(--gold-2);font-size:11px;font-weight:800;direction:ltr}
.blog-all-grid{grid-template-columns:repeat(3,1fr)}
.article-container{max-width:940px}
.article-detail{padding:0 0 24px;overflow:hidden}
.article-hero-image{width:100%;height:390px;object-fit:cover}
.article-detail-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 26px 8px;color:var(--gold-2);font-size:13px;font-weight:900;direction:rtl}
.article-detail h1{margin:0 26px 14px;font-size:34px;line-height:1.45}
.article-detail p{margin:0 26px 14px;color:var(--muted);font-size:15px;line-height:2.05}
.article-detail .article-lead{font-size:17px;color:var(--text);font-weight:600}
.article-back{margin:8px 26px 0;width:auto}
.gallery-card{cursor:zoom-in;transition:.2s}
.gallery-card:hover{transform:translateY(-2px)}
.gallery-lightbox{position:fixed;inset:0;background:rgba(2,12,21,.91);z-index:12000;display:none;align-items:center;justify-content:center;padding:28px}
.gallery-lightbox.open{display:flex}
body.lightbox-open{overflow:hidden}
.lightbox-dialog{width:min(1100px,calc(100vw - 120px));display:flex;flex-direction:column;gap:14px;align-items:center}
.lightbox-main{max-width:100%;max-height:72vh;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.35);object-fit:contain;background:#071521}
.lightbox-thumbs{width:100%;display:flex;justify-content:center;gap:8px;overflow-x:auto;padding:4px 2px}
.lightbox-thumb{border:2px solid transparent;background:transparent;padding:0;border-radius:10px;overflow:hidden;cursor:pointer;opacity:.7;flex:0 0 92px}
.lightbox-thumb.active{border-color:#b98523;opacity:1}
.lightbox-thumb img{width:92px;height:58px;object-fit:cover}
.lightbox-close,.lightbox-nav{position:absolute;border:0;background:rgba(255,255,255,.13);color:#fff;backdrop-filter:blur(8px);cursor:pointer;display:grid;place-items:center}
.lightbox-close{top:18px;right:18px;width:44px;height:44px;border-radius:50%;font-size:30px}
.lightbox-nav{top:50%;transform:translateY(-50%);width:48px;height:64px;border-radius:16px;font-size:34px}
.lightbox-nav.prev{left:18px}.lightbox-nav.next{right:18px}
@media(max-width:900px){.blog-all-grid{grid-template-columns:1fr 1fr}.article-hero-image{height:320px}.lightbox-dialog{width:min(100%,calc(100vw - 50px))}.lightbox-nav{width:38px;height:54px}.lightbox-nav.prev{left:6px}.lightbox-nav.next{right:6px}}
@media(max-width:640px){.blog-all-grid{grid-template-columns:1fr}.article-detail h1{font-size:26px}.article-detail h1,.article-detail p,.article-detail-meta{margin-left:18px;margin-right:18px}.article-hero-image{height:230px}.lightbox-dialog{width:100%}.gallery-lightbox{padding:18px 8px}.lightbox-main{max-height:68vh}.lightbox-thumb{flex-basis:74px}.lightbox-thumb img{width:74px;height:48px}}


/* عرض نوار متحرک دقیقاً هم‌اندازه اسلایدر */
.analysis-ticker{
  width:min(1220px, calc(100% - 28px)) !important;
  margin:0 auto 8px !important;
  border-radius:14px;
}

@media(max-width:640px){
  .analysis-ticker{
    width:calc(100% - 20px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}


/* بخش چرا آزمایشگاه کیمیا: ۲ کادر بالا و ۳ کادر پایین */
.why-inline{
  display:grid !important;
  grid-template-columns:190px 1fr !important;
  align-items:center !important;
  gap:14px !important;
}
.why-inline-title{
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.why-layout{
  display:grid;
  gap:8px;
  min-width:0;
}
.why-row{
  display:grid;
  gap:8px;
}
.why-row-top{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.why-row-bottom{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.why-layout .mini-card{
  min-width:0;
}
.why-layout .mini-icon{
  flex:0 0 auto;
}
@media(max-width:900px){
  .why-inline{
    grid-template-columns:1fr !important;
  }
  .why-inline-title{
    min-height:auto;
    justify-content:flex-start;
    text-align:right;
  }
}
@media(max-width:640px){
  .why-row-top,
  .why-row-bottom{
    grid-template-columns:1fr;
  }
}


/* اصلاح نهایی کلید Dark / Light */
.toggle-wrap{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  direction:ltr !important;
}

.theme-switch{
  width:42px !important;
  height:22px !important;
  min-width:42px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  outline:0 !important;
  border-radius:999px !important;
  background:#173c56 !important;
  box-shadow:none !important;
  position:relative !important;
  overflow:hidden !important;
  cursor:pointer !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

.theme-switch .knob{
  position:absolute !important;
  width:16px !important;
  height:16px !important;
  top:3px !important;
  left:3px !important;
  right:auto !important;
  border-radius:50% !important;
  background:#fff !important;
  border:0 !important;
  box-shadow:0 1px 3px rgba(0,0,0,.22) !important;
  transform:translateX(0) !important;
  transition:transform .22s ease !important;
}

body.dark .theme-switch{
  background:#b98523 !important;
}

body.dark .theme-switch .knob{
  transform:translateX(20px) !important;
}

.theme-icon{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:18px !important;
  height:18px !important;
  font-size:17px !important;
  line-height:1 !important;
  color:var(--muted) !important;
  margin:0 !important;
}

body.dark .theme-icon{
  color:#d5a640 !important;
}

@media(max-width:640px){
  .theme-switch{
    width:40px !important;
    min-width:40px !important;
    height:22px !important;
  }
  .theme-switch .knob{
    width:16px !important;
    height:16px !important;
    top:3px !important;
    left:3px !important;
  }
  body.dark .theme-switch .knob{
    transform:translateX(18px) !important;
  }
}


/* چیدمان دقیق چرا آزمایشگاه کیمیا:
   سطر اول: عنوان + دو کادر
   سطر دوم: سه کادر */
.why-exact-layout{
  display:grid !important;
  grid-template-columns:190px minmax(0,1fr) !important;
  grid-template-areas:
    "title top"
    "bottom bottom" !important;
  gap:10px 12px !important;
  align-items:stretch !important;
}

.why-exact-layout .why-inline-title{
  grid-area:title !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  min-width:0;
}

.why-exact-layout .why-inline-title h2{
  margin:0 !important;
  font-size:23px !important;
  line-height:1.35 !important;
  color:#fff !important;
  font-weight:900 !important;
}

.why-top-cards{
  grid-area:top;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-width:0;
}

.why-bottom-cards{
  grid-area:bottom;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  min-width:0;
}

.why-exact-layout .mini-card{
  min-width:0;
  height:100%;
}

@media(max-width:900px){
  .why-exact-layout{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "title"
      "top"
      "bottom" !important;
  }
  .why-exact-layout .why-inline-title{
    justify-content:flex-start !important;
    text-align:right !important;
    padding:4px 2px;
  }
}

@media(max-width:640px){
  .why-top-cards,
  .why-bottom-cards{
    grid-template-columns:1fr;
  }
}


/* اصلاح چیدمان چرا آزمایشگاه کیمیا:
   دو کادر بالا هم‌اندازه کادرهای پایین و چسبیده به سمت چپ،
   عنوان از سمت راست */
.why-exact-layout{
  grid-template-columns:190px 1fr !important;
  grid-template-areas:
    "title top"
    "bottom bottom" !important;
}

/* عنوان در سمت راست */
.why-exact-layout .why-inline-title{
  grid-area:title !important;
  justify-content:flex-start !important;
  text-align:right !important;
  padding-inline-start:0 !important;
  padding-inline-end:8px !important;
}

/* دو کادر بالا: هر کدام دقیقاً یک‌سوم عرض ردیف پایین */
.why-top-cards{
  grid-area:top;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  direction:ltr !important;
}

/* دو کادر از سمت چپ شروع شوند */
.why-top-cards .mini-card:nth-child(1){
  grid-column:1 !important;
}
.why-top-cards .mini-card:nth-child(2){
  grid-column:2 !important;
}

/* محتوای داخل کارت‌ها فارسی و راست‌چین بماند */
.why-top-cards .mini-card,
.why-bottom-cards .mini-card{
  direction:rtl !important;
  text-align:right !important;
}

/* سه کادر پایین همان عرض پایه */
.why-bottom-cards{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
}

@media(max-width:900px){
  .why-exact-layout{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "title"
      "top"
      "bottom" !important;
  }
  .why-top-cards{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .why-top-cards .mini-card:nth-child(1),
  .why-top-cards .mini-card:nth-child(2){
    grid-column:auto !important;
  }
}

@media(max-width:640px){
  .why-top-cards,
  .why-bottom-cards{
    grid-template-columns:1fr !important;
  }
}


/* v22: عرض هر ۵ کادر دقیقاً برابر */
.why-exact-layout{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-areas:
    "top top title"
    "bottom bottom bottom" !important;
  gap:8px !important;
  align-items:stretch !important;
}

/* عنوان در یک ستون هم‌عرض با هر کارت و در سمت راست */
.why-exact-layout .why-inline-title{
  grid-area:title !important;
  width:100% !important;
  min-width:0 !important;
  justify-content:flex-start !important;
  text-align:right !important;
  padding:0 8px !important;
}

/* دو کارت بالا مجموعاً دو ستون؛ هر کارت دقیقاً یک ستون */
.why-top-cards{
  grid-area:top !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
  width:100% !important;
  direction:ltr !important;
}

/* سه کارت پایین؛ هر کدام دقیقاً یک‌سوم عرض */
.why-bottom-cards{
  grid-area:bottom !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  width:100% !important;
}

.why-top-cards .mini-card,
.why-bottom-cards .mini-card{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  direction:rtl !important;
  text-align:right !important;
}

@media(max-width:900px){
  .why-exact-layout{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "title"
      "top"
      "bottom" !important;
  }
  .why-top-cards{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .why-bottom-cards{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:640px){
  .why-top-cards,
  .why-bottom-cards{
    grid-template-columns:1fr !important;
  }
}


/* v23: ترتیب سطر اول از راست به چپ:
   عنوان در سمت راست، سپس دو کادر در سمت چپ */
.why-exact-layout{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-areas:
    "top top title"
    "bottom bottom bottom" !important;
  gap:8px !important;
  direction:ltr !important;
}

/* عنوان در ستون راست */
.why-exact-layout .why-inline-title{
  grid-area:title !important;
  direction:rtl !important;
  text-align:right !important;
  justify-content:flex-start !important;
  align-items:center !important;
  padding:0 12px !important;
  width:100% !important;
}

.why-exact-layout .why-inline-title h2{
  width:100% !important;
  margin:0 !important;
  text-align:right !important;
}

/* دو کادر سطر اول در دو ستون سمت چپ */
.why-top-cards{
  grid-area:top !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:8px !important;
  direction:ltr !important;
  width:100% !important;
}

.why-top-cards .mini-card{
  direction:rtl !important;
  text-align:right !important;
  width:100% !important;
}

/* سه کادر ردیف دوم */
.why-bottom-cards{
  grid-area:bottom !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  direction:rtl !important;
  width:100% !important;
}

@media(max-width:900px){
  .why-exact-layout{
    grid-template-columns:1fr !important;
    grid-template-areas:
      "title"
      "top"
      "bottom" !important;
  }
  .why-exact-layout .why-inline-title{
    text-align:right !important;
  }
}

@media(max-width:640px){
  .why-top-cards,
  .why-bottom-cards{
    grid-template-columns:1fr !important;
  }
}


/* v24: اصلاح رنگ تیترهای بخش «چرا آزمایشگاه کیمیا» در دارک مود */
body.dark .why-exact-layout .why-inline-title h2{
  color:#ffffff !important;
}

/* تیترهای داخل ۵ کادر در دارک مود مثل حالت لایت باقی بمانند */
body.dark .why-exact-layout .mini-card strong{
  color:#0d2f4a !important;
}

/* توضیحات داخل کارت‌ها نیز کنتراست مشابه حالت لایت داشته باشند */
body.dark .why-exact-layout .mini-card small{
  color:#4b6170 !important;
}
