.viewport {
  min-height: 100vh;
  background: #f6f7ff;
  color: #454360;
  font-family: IRANSans, Tahoma, sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 875px) 275px;
  gap: 30px;
  align-items: start;
  padding: 50px 0;
}

.content { min-width: 0; }
.profileCard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 35px rgba(69,67,96,.06); }
.backLink { display: inline-flex; margin: 30px 38px 0; color: #4a63e7; font-size: 13px; text-decoration: none; }
.hero { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 34px; align-items: center; padding: 38px; }
.photoWrap { width: 210px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #f0f1fa; box-shadow: 0 0 0 10px rgba(74,99,231,.08); }
.photoWrap img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { color: #ff5959; font-size: 13px; font-weight: 700; }
.heroCopy h1 { margin: 8px 0 2px; font-size: 42px; line-height: 1.35; color: #454360; }
.heroCopy > strong { display: block; color: #4a63e7; font-size: 17px; margin-bottom: 15px; }
.heroCopy p { margin: 0; line-height: 2.05; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.primaryAction, .secondaryAction { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 22px; text-decoration: none; font-size: 13px; font-weight: 600; }
.primaryAction { color: #fff; background: #ff5959; }
.secondaryAction { color: #4a63e7; background: rgba(74,99,231,.08); }
.section { border-top: 1px solid #f0f1f7; padding: 34px 38px; }
.section h2 { margin: 0 0 16px; color: #454360; font-size: 25px; }
.section > p { margin: 0; line-height: 2.15; font-size: 15px; text-align: justify; }
.secondaryText { margin-top: 10px !important; color: #8b88a1; direction: ltr; text-align: right !important; }
.tagList { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.tagList li { padding: 10px 17px; border-radius: 18px; background: #f4f5ff; color: #4a63e7; font-size: 13px; }
.servicesGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.serviceCard { padding: 20px; border: 1px solid #eceef8; border-radius: 16px; background: #fff; }
.serviceCard h3 { margin: 0 0 9px; color: #454360; font-size: 16px; }
.serviceCard p { margin: 0; color: #7f7c96; font-size: 13px; line-height: 1.95; }
.articleList { display: grid; gap: 12px; }
.articleLink { display: block; padding: 20px; border-radius: 16px; background: #f8f8fc; text-decoration: none; }
.articleLink span { color: #ff5959; font-size: 11px; }
.articleLink strong { display: block; margin: 5px 0 7px; color: #454360; font-size: 16px; }
.articleLink p { margin: 0; color: #7f7c96; font-size: 13px; line-height: 1.9; }
.officialLinks { display: flex; flex-wrap: wrap; gap: 10px; direction: ltr; justify-content: flex-end; }
.officialLinks a { color: #4a63e7; background: #f4f5ff; border-radius: 18px; padding: 9px 15px; text-decoration: none; font-size: 12px; }
.credit { text-align: center; padding: 22px 8px 0; }
.credit a { color: #a5a3b4; font-size: 10px; text-decoration: none; }
.sidebar { position: sticky; top: 30px; min-height: 600px; border-radius: 20px; padding: 45px 30px 25px; background: #4a63e7; color: #fff; box-shadow: 0 10px 35px rgba(74,99,231,.18); }
.sidebarProfile { text-align: center; }
.sidebarProfile img { width: 118px; height: 118px; object-fit: cover; border-radius: 50%; border: 5px solid rgba(255,255,255,.18); }
.sidebarProfile h2 { margin: 16px 0 4px; color: #fff; font-size: 22px; }
.sidebarProfile p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; }
.nav { display: grid; gap: 6px; margin-top: 34px; }
.nav a { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0 15px; border-radius: 22px; color: rgba(255,255,255,.82); text-decoration: none; font-size: 13px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav svg { width: 19px; height: 19px; }
.sidebarFooter { position: absolute; right: 0; left: 0; bottom: 24px; text-align: center; color: rgba(255,255,255,.6); font-size: 10px; }
.closeMenu, .mobileHeader, .overlay { display: none; }

@media (max-width: 991px) {
  .mobileHeader { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 20px; color: #fff; background: #4a63e7; }
  .mobileHeader button, .closeMenu { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.13); }
  .mobileHeader svg, .closeMenu svg { width: 21px; }
  .shell { width: min(875px, calc(100% - 30px)); grid-template-columns: 1fr; padding: 24px 0 35px; }
  .sidebar { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(305px, 88vw); min-height: 100vh; border-radius: 0; transform: translateX(110%); transition: transform .25s ease; }
  .sidebarOpen { transform: translateX(0); }
  .closeMenu { position: absolute; top: 16px; left: 16px; }
  .overlay { display: block; position: fixed; z-index: 50; inset: 0; border: 0; background: rgba(34,34,52,.45); }
}

@media (max-width: 767px) {
  .shell { width: calc(100% - 20px); padding-top: 14px; }
  .profileCard { border-radius: 15px; }
  .backLink { margin: 22px 24px 0; }
  .hero { grid-template-columns: 1fr; justify-items: center; gap: 24px; padding: 30px 24px; text-align: center; }
  .photoWrap { width: 150px; }
  .heroCopy h1 { font-size: 34px; }
  .heroCopy p { text-align: justify; }
  .actions { justify-content: center; }
  .section { padding: 28px 24px; }
  .section h2 { font-size: 21px; }
  .servicesGrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}
