/* Scoped presentation fixes: services and the online-chat font only. */
body[data-theme="corporate-mahaweb"] .mws-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;
}
body[data-theme="corporate-mahaweb"] .mws-card {
  position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;
  min-width:0;padding:26px 26px 25px;border:1px solid #e5eaf0;border-radius:18px;
  background:linear-gradient(155deg,#fff 55%,#f6f8fb);text-align:center;
  box-shadow:0 8px 30px #0c233d06;overflow:hidden;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
body[data-theme="corporate-mahaweb"] .mws-card::after {
  content:"";position:absolute;inset-inline:25px;bottom:0;height:3px;
  background:linear-gradient(90deg,#b99c67,#dbc594,#b99c67);border-radius:3px 3px 0 0;
  transform:scaleX(.2);opacity:0;transition:transform .28s ease,opacity .28s ease;
}
body[data-theme="corporate-mahaweb"] .mws-art {
  position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;
  flex:0 0 220px;width:100%;height:220px;min-width:0;min-height:0;margin:0 0 24px;
  border-radius:15px;background:radial-gradient(ellipse at center,#edf3fa 0%,#f8fafc 52%,transparent 72%);
}
body[data-theme="corporate-mahaweb"] .mws-orbit {
  position:absolute;z-index:-1;width:176px;height:176px;border:1px solid #bba47736;border-radius:50%;
  transform:rotate(-18deg);pointer-events:none;
}
body[data-theme="corporate-mahaweb"] .mws-orbit::after {
  content:"";position:absolute;inset:17px;border:1px dashed #44678f20;border-radius:50%;
}
body[data-theme="corporate-mahaweb"] .mws-image {
  position:relative;display:block;flex:0 1 auto;width:210px;height:210px;max-width:100%;max-height:210px;
  min-width:0;min-height:0;object-fit:contain;object-position:center;
  filter:drop-shadow(0 13px 12px #0c233d14);transform-origin:center;
}
body[data-theme="corporate-mahaweb"] .mws-copy {width:100%;min-width:0;position:relative;}
body[data-theme="corporate-mahaweb"] .mws-copy h3 {
  margin:0;color:#142b44;font-size:19px;font-weight:700;line-height:1.85;letter-spacing:0;overflow-wrap:anywhere;
}
body[data-theme="corporate-mahaweb"] #site-content .mws-copy p {
  margin:12px 0 0;color:#5e6e81;font-size:14px;line-height:2.1;overflow-wrap:anywhere;white-space:pre-line;
}
body[data-theme="corporate-mahaweb"] .mws-link {
  display:inline-flex;align-items:center;justify-content:center;gap:14px;margin-top:auto;padding:22px 8px 2px;
  min-height:44px;color:#91713d;font-size:13px;font-weight:700;line-height:1.8;text-decoration:none;
  max-width:100%;overflow-wrap:anywhere;
}
body[data-theme="corporate-mahaweb"] .mws-link span {display:inline-block;flex:none;transition:transform .25s ease;}
body[data-theme="corporate-mahaweb"] .mws-link:focus-visible {outline:2px solid #af925f;outline-offset:4px;border-radius:5px;}
body[data-theme="corporate-mahaweb"] .mws-card:focus-within {border-color:#c6b18a;box-shadow:0 18px 42px #0c233d0e;}
body[data-theme="corporate-mahaweb"] .mws-card:focus-within::after {transform:scaleX(1);opacity:1;}
body[data-theme="corporate-mahaweb"] .mw-chat,
body[data-theme="corporate-mahaweb"] .mw-chat :where(button,input,textarea,select) {
  font-family:var(--site-font-family,Vazir,Tahoma,sans-serif);
}
@media (hover:hover) and (pointer:fine) {
  body[data-theme="corporate-mahaweb"] .mws-card:hover {transform:translateY(-7px);border-color:#c6b18a;box-shadow:0 18px 42px #0c233d12;}
  body[data-theme="corporate-mahaweb"] .mws-card:hover::after {transform:scaleX(1);opacity:1;}
  body[data-theme="corporate-mahaweb"] .mws-link:hover span {transform:translateX(-5px);}
}
@media (prefers-reduced-motion:no-preference) {
  body[data-theme="corporate-mahaweb"] .mws-image {animation:mws-float 6s ease-in-out infinite;animation-delay:calc(var(--mws-order,0) * -1.5s);}
}
@keyframes mws-float {0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@media (max-width:1050px) {
  body[data-theme="corporate-mahaweb"] .mws-grid {gap:18px;}
  body[data-theme="corporate-mahaweb"] .mws-card {padding:20px 18px 22px;}
  body[data-theme="corporate-mahaweb"] .mws-art {height:190px;flex-basis:190px;margin-bottom:20px;}
  body[data-theme="corporate-mahaweb"] .mws-image {width:180px;height:180px;max-height:180px;}
  body[data-theme="corporate-mahaweb"] .mws-copy h3 {font-size:17px;}
  body[data-theme="corporate-mahaweb"] #site-content .mws-copy p {font-size:13px;}
}
@media (max-width:800px) {
  body[data-theme="corporate-mahaweb"] .mws-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
  body[data-theme="corporate-mahaweb"] .mws-grid>.mws-card:last-child:nth-child(odd) {grid-column:1/-1;max-width:430px;width:100%;justify-self:center;}
}
@media (max-width:560px) {
  body[data-theme="corporate-mahaweb"] .mws-section.container {width:calc(100% - 32px);}
  body[data-theme="corporate-mahaweb"] .mws-grid {grid-template-columns:minmax(0,1fr);gap:20px;}
  body[data-theme="corporate-mahaweb"] .mws-card {padding:22px 24px 24px;max-width:430px;width:100%;justify-self:center;}
  body[data-theme="corporate-mahaweb"] .mws-art {height:210px;flex-basis:210px;margin-bottom:20px;}
  body[data-theme="corporate-mahaweb"] .mws-image {width:200px;height:200px;max-height:200px;}
  body[data-theme="corporate-mahaweb"] .mws-copy h3 {font-size:19px;}
  body[data-theme="corporate-mahaweb"] #site-content .mws-copy p {font-size:14px;}
}
@media (prefers-reduced-motion:reduce) {
  body[data-theme="corporate-mahaweb"] .mws-card,body[data-theme="corporate-mahaweb"] .mws-card::after,
  body[data-theme="corporate-mahaweb"] .mws-link span {transition:none;}
  body[data-theme="corporate-mahaweb"] .mws-image {animation:none;}
}
