.viewport {
  min-height: 100vh;
  background: #f6f7ff;
  color: #343434;
  direction: rtl;
  padding: 25px 15px 40px;
}

.siteShell {
  width: min(1170px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 875px) 265px;
  gap: 30px;
  align-items: start;
  direction: ltr;
}

.content,
.sidebar { direction: rtl; }

.content { min-width: 0; }

.sectionCard {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(74, 99, 231, .1);
}

.padded { padding: 80px 50px; }

.sectionTitle {
  color: #343434;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
}

.sectionTitle::after {
  content: '';
  display: block;
  width: 30px;
  height: 5px;
  margin-top: 14px;
  border-radius: 25px;
  background: #ff5959;
}

.sectionIntro {
  max-width: 720px;
  color: #777;
  line-height: 2;
  margin: 42px 0 0;
  font-size: 15px;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-color: #4a63e7;
  background-image: var(--hero-image);
  background-position: left bottom;
  background-size: auto 100%;
  background-repeat: no-repeat;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(74, 99, 231, .18) 0%, rgba(74, 99, 231, .72) 45%, #4a63e7 78%);
}

.heroCopy {
  position: relative;
  z-index: 1;
  width: min(590px, 75%);
  padding: 70px 50px;
  color: #fff;
}

.heroCopy h1 {
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(44px, 5vw, 62px);
  line-height: 1.35;
  font-weight: 700;
}

.heroCopy h1 span {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-right: 7px;
  background: #ff5959;
}

.heroCopy strong {
  display: block;
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: 700;
}

.heroCopy p {
  max-width: 560px;
  margin: 0;
  line-height: 2.05;
  font-size: 16px;
}

.aboutGrid {
  display: grid;
  grid-template-columns: minmax(250px, 42%) 1fr;
  gap: 45px;
  align-items: center;
  margin-top: 45px;
  direction: ltr;
}

.aboutImageWrap,
.aboutCopy { direction: rtl; }

.aboutImageWrap {
  overflow: hidden;
  border-radius: 16px;
  min-height: 440px;
  background: #eef0ff;
}

.aboutImage {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center top;
}

.aboutCopy h2 {
  color: #343434;
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 700;
}

.aboutCopy p {
  color: #777;
  line-height: 2.15;
  margin: 0 0 20px;
  text-align: justify;
}

.aboutSecondary {
  direction: ltr;
  text-align: left !important;
  color: #4a63e7 !important;
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
}

.bannerSection { padding: 0; }

.bannerSection a { display: block; }

.bannerImage {
  display: block;
  width: 100%;
  height: auto;
  min-height: 150px;
  object-fit: cover;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 42px;
  margin-top: 48px;
}

.skillMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: #343434;
  font-size: 14px;
}

.skillMeta strong { font-weight: 600; }
.skillMeta span { color: #777; }

.skillTrack {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #efefef;
}

.skillTrack span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff5959;
  transition: width 1.25s cubic-bezier(.22, 1, .36, 1);
}

.statsSection {
  padding: 54px 40px;
  background: #4a63e7;
  color: #fff;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.statItem {
  min-width: 0;
  text-align: center;
}

.statIcon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  color: #fff;
}

.statIcon svg,
.statIcon img { width: 100%; height: 100%; object-fit: contain; }

.statItem strong {
  display: block;
  color: #fff;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 700;
}

.statItem span {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.8;
}

.servicesGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.serviceCard {
  min-height: 255px;
  padding: 30px 20px;
  border: 1px solid #efefef;
  border-radius: 10px;
  color: #777;
  text-decoration: none;
  text-align: center;
  transition: .3s ease;
}

.serviceCard:hover {
  color: #fff;
  border-color: #ff5959;
  background: #ff5959;
  box-shadow: 0 6px 15px rgba(0, 0, 0, .15);
  transform: translateY(-4px);
}

.serviceIcon {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  color: #4a63e7;
  transition: color .3s ease;
}

.serviceIcon svg,
.serviceIcon img { width: 100%; height: 100%; object-fit: contain; }
.serviceCard:hover .serviceIcon { color: #fff; }

.serviceCard h3 {
  color: #343434;
  margin: 0 0 15px;
  font-size: 18px;
  transition: color .3s ease;
}

.serviceCard:hover h3 { color: #fff; }
.serviceCard p { margin: 0; font-size: 14px; line-height: 2; }

.collaboratorsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.collaboratorCard {
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.collaboratorPhoto {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: #f1f2fc;
}

.collaboratorPhoto img { width: 100%; height: 100%; object-fit: cover; }

.collaboratorCard h3 {
  margin: 20px 0 7px;
  color: #343434;
  font-size: 18px;
}

.collaboratorCard span,
.collaboratorCard p { color: #777; font-size: 13px; line-height: 1.8; }

.timeline {
  position: relative;
  padding: 70px 0 20px;
}

.timelineLine {
  position: absolute;
  top: 40px;
  bottom: 0;
  right: calc(20% + 2px);
  width: 1px;
  background: #ff5959;
}

.timelineLine::before,
.timelineLine::after {
  content: '';
  position: absolute;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5959;
}

.timelineLine::before { top: 0; }
.timelineLine::after { bottom: 0; }

.timelineEntry {
  position: relative;
  display: grid;
  grid-template-columns: 20% 1fr;
  min-height: 150px;
}

.timelinePeriod {
  position: relative;
  padding: 5px 0 0 28px;
  color: #777;
  font-size: 13px;
  text-align: right;
}

.timelinePeriod::after {
  content: '';
  position: absolute;
  top: 8px;
  left: -8px;
  z-index: 1;
  width: 8px;
  height: 8px;
  padding: 4.5px;
  border: 1px solid #ff5959;
  border-radius: 50%;
  background: #fff;
  box-sizing: content-box;
}

.timelineBody { padding: 0 55px 50px 0; }

.timelineBody h3 {
  margin: 0 0 15px;
  color: #343434;
  font-size: 20px;
  font-weight: 700;
}

.timelineBody p { margin: 0; color: #777; line-height: 2.05; font-size: 14px; }

.sectionHeaderRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.moreLabel { color: #ff5959; font-size: 14px; padding-top: 10px; text-decoration: none; }

.articlesGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 48px;
}

.articleCard { min-width: 0; }

.articleThumb {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.55;
  border-radius: 10px;
  background: #4a63e7;
}

.articleThumb img { width: 100%; height: 100%; object-fit: cover; }

.architecturePlaceholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #536be9, #334bc6);
}

.architecturePlaceholder::before {
  content: '';
  position: absolute;
  inset: 20% 10% 0;
  clip-path: polygon(50% 0, 100% 42%, 88% 42%, 88% 100%, 12% 100%, 12% 42%, 0 42%);
  background: rgba(255,255,255,.92);
}

.architecturePlaceholder span:nth-child(1) {
  position: absolute;
  z-index: 1;
  right: 25%;
  bottom: 0;
  width: 16%;
  height: 42%;
  background: #4a63e7;
}

.architecturePlaceholder span:nth-child(2),
.architecturePlaceholder span:nth-child(3) {
  position: absolute;
  z-index: 1;
  bottom: 22%;
  width: 13%;
  height: 18%;
  background: #ff5959;
}
.architecturePlaceholder span:nth-child(2) { right: 48%; }
.architecturePlaceholder span:nth-child(3) { right: 66%; }

.articleCategory {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #ff5959;
  color: #fff;
  font-size: 12px;
}

.articleCard h3 {
  margin: 20px 0 10px;
  font-size: 17px;
  line-height: 1.8;
}

.articleCard h3 a { color: #343434; text-decoration: none; }
.articleCard p { margin: 0; color: #777; line-height: 1.9; font-size: 13px; }

.articleMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #999;
  font-size: 11px;
}

.contactGrid {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 45px;
}

.contactItems { display: grid; gap: 22px; }

.contactItem {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.contactIcon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: #ff5959;
}

.contactIcon svg,
.contactIcon img { width: 100%; height: 100%; object-fit: contain; }

.contactItem h3 { margin: 0 0 5px; color: #343434; font-size: 15px; }
.contactItem span { display: block; color: #777; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.contactImage { width: 100%; height: auto; max-height: 480px; object-fit: contain; }

.sidebar {
  position: sticky;
  top: 25px;
  height: calc(100vh - 50px);
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 35px 25px;
  border-radius: 20px;
  background: #4a63e7;
  color: #fff;
  box-shadow: 0 6px 15px rgba(74, 99, 231, .28);
}

.sidebarProfile { text-align: center; }

.sidebarProfile img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, .16);
}

.sidebarProfile h2 { margin: 18px 0 7px; color: #fff; font-size: 23px; }
.sidebarProfile p { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; }

.sidebarNav {
  display: grid;
  gap: 2px;
  margin-top: 42px;
}

.sidebarNav button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.83);
  cursor: pointer;
  text-align: right;
  transition: .2s ease;
}

.sidebarNav button:hover { color: #fff; transform: translateX(-3px); }
.sidebarNav svg { width: 19px; height: 19px; }
.sidebarNav span { font-size: 13px; }

.sidebarFooter {
  margin-top: auto;
  padding-top: 28px;
  color: rgba(255,255,255,.66);
  text-align: center;
  font-size: 11px;
}

.closeMenu { display: none; }
.mobileHeader { display: none; }
.overlay { display: none; }

.creditFooter {
  padding: 2px 10px 0;
  text-align: center;
  font-size: 10px;
  color: #a0a3b3;
}

.creditFooter a { color: inherit; text-decoration: none; }
.creditFooter a:hover { color: #777; }

.returnTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ff5959;
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 89, 89, .3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s ease;
}

.returnTop svg { width: 22px; height: 22px; }
.returnTopVisible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 1100px) {
  .siteShell { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
  .padded { padding: 65px 40px; }
}

@media (max-width: 991px) {
  .viewport { padding-top: 78px; }
  .siteShell { display: block; }
  .mobileHeader {
    position: fixed;
    top: 15px;
    right: 15px;
    left: 15px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: #4a63e7;
    color: #fff;
    box-shadow: 0 6px 15px rgba(74, 99, 231, .22);
  }
  .mobileHeader strong { font-size: 14px; }
  .mobileHeader button,
  .closeMenu {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
  }
  .mobileHeader svg,
  .closeMenu svg { width: 21px; height: 21px; }
  .sidebar {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 60;
    width: min(315px, calc(100vw - 30px));
    height: calc(100vh - 30px);
    min-height: 0;
    transform: translateX(calc(100% + 30px));
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  }
  .sidebarOpen { transform: translateX(0); }
  .closeMenu { position: absolute; top: 16px; left: 16px; }
  .overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    border: 0;
    background: rgba(19, 23, 45, .48);
    backdrop-filter: blur(3px);
  }
}

@media (max-width: 767px) {
  .viewport { padding-right: 10px; padding-left: 10px; }
  .sectionCard { border-radius: 16px; margin-bottom: 20px; }
  .padded { padding: 52px 28px; }
  .sectionTitle { font-size: 26px; }
  .sectionIntro { margin-top: 34px; }
  .hero { min-height: 620px; align-items: flex-start; background-size: auto 66%; background-position: center bottom; }
  .heroOverlay { background: linear-gradient(180deg, #4a63e7 0%, rgba(74,99,231,.96) 44%, rgba(74,99,231,.16) 100%); }
  .heroCopy { width: 100%; padding: 54px 28px; text-align: center; }
  .heroCopy h1 { font-size: 43px; line-height: 1.4; margin-bottom: 18px; }
  .heroCopy h1 span { display: none; }
  .heroCopy strong { font-size: 18px; }
  .heroCopy p { font-size: 14px; }
  .aboutGrid { grid-template-columns: 1fr; gap: 34px; }
  .aboutImageWrap { min-height: 410px; }
  .aboutCopy h2 { font-size: 29px; }
  .skillsGrid { grid-template-columns: 1fr; gap: 28px; }
  .statsGrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 38px 20px; }
  .servicesGrid { grid-template-columns: 1fr; }
  .serviceCard { min-height: 0; }
  .collaboratorsGrid { grid-template-columns: 1fr; gap: 35px; }
  .timelineLine { right: 24%; }
  .timelineEntry { grid-template-columns: 24% 1fr; }
  .timelinePeriod { padding-left: 22px; font-size: 11px; }
  .timelinePeriod::after { left: -8px; }
  .timelineBody { padding-right: 35px; }
  .articlesGrid { grid-template-columns: 1fr; }
  .contactGrid { grid-template-columns: 1fr; }
  .contactImage { display: none; }
  .bannerImage { min-height: 110px; }
}

@media (max-width: 420px) {
  .padded { padding: 46px 22px; }
  .heroCopy h1 { font-size: 37px; }
  .statsSection { padding: 45px 20px; }
  .statItem strong { font-size: 30px; }
  .timeline { padding-top: 55px; }
  .timelineLine { right: calc(26% + 2px); }
  .timelineEntry { grid-template-columns: 26% 1fr; }
  .timelineBody { padding-right: 28px; }
  .timelineBody h3 { font-size: 18px; }
}

/*
 * Mobile overlay hotfix — 2026-08-05
 * The page-specific mobile rule sets .overlay to display:block.
 * This explicit hidden-state rule keeps the overlay invisible until the menu is opened.
 */
@media (max-width: 991px) {
  button.overlay[data-overlay][hidden],
  .overlay[data-overlay][hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  button.overlay[data-overlay]:not([hidden]),
  .overlay[data-overlay]:not([hidden]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
