@font-face {
  font-family: "AnjomanMax";
  src: url("fonts/AnjomanMax-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AnjomanMax-bold";
  src: url("fonts/AnjomanMax-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   متغیرها و تنظیمات پایه
   ========================================= */
:root {
  --gap-horizontal: 40px;
  --gap-vertical: 50px;
  --card-height: 360px;
  --primary-blue: #29358b;
  --primary-red: #c0392b;
  --bg-color: #fdfaf6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "AnjomanMax", Tahoma, sans-serif;
  background-color: var(--bg-color);
  direction: rtl;
  overflow-x: hidden;
}

/* =========================================
   باکس رنگی ثابت پایین صفحه
   ========================================= */
.fixed-background-box {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: var(--bg-color);
  z-index: 2;
}

/* =========================================
   لایه‌بندی اصلی صفحه
   ========================================= */
.page {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  min-height: 100vh;
}

/* =========================================
   سایدبار ثابت سمت چپ
   ========================================= */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 3;
  background-color: var(--bg-color);
}

.logo-container {
  margin-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo-img {
  width: 120px;
  height: auto;
}

.logo-text {
  color: var(--primary-blue) !important;
  font-size: 15px;
  margin-top: -10px;
  margin-left: 80px;
  font-weight: bold;
}

/* =========================================
   منوها
   ========================================= */
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 160px;
}

.main-nav>a,
.nav-group>a {
  text-decoration: none !important;
  color: var(--primary-blue) !important;
  font-size: 17px;
  display: grid;
  grid-template-columns: 1fr 50px;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: left;
}

.menu-left-img {
  width: 50px;
  height: auto;
  margin: 0;
  grid-column: 2;
  transform: translateY(-10px);
}

.menu_icon1 {
  position: absolute;
  right: 150px;
  top: 182px;
  width: 50px;
}

.menu_icon2 {
  position: absolute;
  right: 150px;
  top: 410px;
  width: 50px;
}

.menu_icon3 {
  position: absolute;
  right: 150px;
  top: 465px;
  width: 50px;
}

.menu_icon4 {
  position: absolute;
  right: 150px;
  top: 520px;
  width: 50px;
}

.menu_icon5 {
  position: absolute;
  right: 150px;
  top: 575px;
  width: 50px;
}

.menu_icon22 {
  position: absolute;
  right: 150px;
  top: 237px;
  width: 50px;
}

.menu_icon32 {
  position: absolute;
  right: 150px;
  top: 292px;
  width: 50px;
}

.menu_icon42 {
  position: absolute;
  right: 150px;
  top: 347px;
  width: 50px;
}

.menu_icon52 {
  position: absolute;
  right: 150px;
  top: 402px;
  width: 50px;
}

.sub-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0px;
  align-items: flex-start;
  padding-left: 0px;
  padding-right: 30px;
}

.sub-nav a {
  text-decoration: none !important;
  color: var(--primary-blue) !important;
  font-size: 13px;
  display: flex;
  align-items: center;
}

/* =========================================
   محتوای پروژه‌ها
   ========================================= */
.projects-area {
  flex-grow: 1;
  padding: 60px 60px 300px 60px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* گرید پروژه‌ها */
.projects-grid {
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: var(--gap-vertical) var(--gap-horizontal);
}

.project {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project.wide {
  grid-column: span 2;
}

.project.tall {
  grid-column: span 1;
}


.project-img {
  overflow: hidden;
  height: var(--card-height);
  width: 100%;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
  will-change: filter, transform;
  backface-visibility: hidden;
}

.project:hover img {
  filter: grayscale(0%);
  transform: scale(1.03) translateZ(0);
}

/* Skip layout/paint work for cards that are scrolled out of view.
   This is the main fix for scroll jank on the full "همه" projects page:
   the browser no longer has to keep repainting every grayscale-filtered
   thumbnail while you scroll, only the ones actually on screen. */
.project {
  content-visibility: auto;
  contain-intrinsic-size: 287px calc(var(--card-height) + 45px);
}

.project.wide {
  contain-intrinsic-size: 614px calc(var(--card-height) + 45px);
}

.project-title {
  margin-top: 15px;
  color: #1618a8 !important;
  font-size: 18px;
  font-weight: bold;
  text-align: right;
  display: flex;
  align-items: center;
}

.separator {
  display: inline-block;
  width: 2px;
  height: 20px;
  background-color: var(--primary-red);
  margin-left: 10px;
}

/* جایگذاری کارت‌ها */

.projects-grid> :nth-child(4) {
  grid-column: span 2;
}

.projects-grid> :nth-child(5) {
  grid-column: span 1;
}

.projects-grid> :nth-child(6) {
  grid-column: span 1;
}

/* =========================================
   فوتر
   ========================================= */
.fixed-footer {
  position: fixed;
  bottom: 20px;
  left: 130px;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 4;
}


.fixed-footer img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================================
   صفحه تکی پروژه
   ========================================= */
.project-detail-frame {
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  border: 1px solid var(--primary-blue);
  padding: 40px;
  background-color: var(--bg-color);
}

.project-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-detail-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--primary-blue);
}

.project-detail-text h1 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #3b3b3b;
}

.project-detail-meta p {
  margin-bottom: 5px;
}

.project-detail-description {
  margin-top: 20px;
}

/* =========================================
   Kinzhad Layout (ایزوله)
   فقط برای صفحه project-kinzhad.html
   ========================================= */
.project-detail-frame.kinzhad-layout {
  grid-template-columns: 1.2fr 1fr;
  height: calc(100vh - 140px);
  border: none;
  direction: ltr;
  gap: 40px;
  align-items: stretch;
}

.project-detail-frame.kinzhad-layout .project-detail-image {
  height: 90%;
  display: flex;
}

.project-detail-frame.kinzhad-layout .project-detail-text {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  padding-left: 8px;
  box-sizing: border-box;
}

/* عنوان صفحه Kinzhad */
.project-detail-frame.kinzhad-layout .project-detail-text h1 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary-blue);
  position: relative;
  padding-right: 18px;
}

.project-detail-frame.kinzhad-layout .project-detail-text h1::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 4px;
  height: 28px;
  background: var(--primary-red);
  border-radius: 1px;
}

.project-detail-frame.kinzhad-layout .project-detail-text-en {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  direction: ltr;
  padding-left: 8px;
  box-sizing: border-box;
  text-align: left;
}

/* عنوان صفحه Kinzhad */
.project-detail-frame.kinzhad-layout .project-detail-text-en h1 {
  font-size: 22px;
  margin-bottom: -10px;
  color: var(--primary-blue);
  position: relative;
  padding-left: 18px;
}

.project-detail-frame.kinzhad-layout .project-detail-text-en h1::before {
  content: "";
  position: absolute;
  right: 97%;
  top: 1px;
  width: 4px;
  height: 43px;
  background: var(--primary-red);
  border-radius: 1px;
}

.project-detail-frame.kinzhad-layout .project-detail-text-en h2 {
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--primary-blue);
  position: relative;
  padding-left: 18px;
  margin-bottom: 20px;
}

.project-detail-frame.kinzhad-layout .project-detail-text h2 {
  font-size: 16px;
  margin-top: -60px;
  color: var(--primary-blue);
  position: relative;
  right: 87%;
  margin-bottom: 20px;
}


/* =========================================
   Slider
   ========================================= */
.project-detail-frame.kinzhad-layout .kinzhad-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 1px solid var(--primary-blue);
  background: var(--bg-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-detail-frame.kinzhad-layout .slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: none;
  margin: auto;
  background: var(--bg-color);
}

.project-detail-frame.kinzhad-layout .slide-image.active {
  display: block;
}

/* فلش‌ها */
.project-detail-frame.kinzhad-layout .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: transparent;
  background: #f9f8f8;
  opacity: 50%;
  color: #294189;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  scale: 150%;
}

.project-detail-frame.kinzhad-layout .slider-arrow:hover {
  background: #f3f3f3;
}

.project-detail-frame.kinzhad-layout .slider-arrow-left {
  left: 15px;
}

.project-detail-frame.kinzhad-layout .slider-arrow-right {
  right: 15px;
}

.project-detail-frame.kinzhad-layout .project-detail-image {
  display: flex;
  flex-direction: column;
  height: 90%;
}

.project-detail-frame.kinzhad-layout .kinzhad-slider {
  width: 100%;
  height: calc(100% - 32px);
  min-height: 0;
}

.project-detail-frame.kinzhad-layout .project-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  color: var(--primary-blue);
  font-size: 18px;
  line-height: 1;
}

.project-detail-frame.kinzhad-layout .project-caption-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}


@media (max-width: 778px) {
  .project-detail-frame.kinzhad-layout .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: transparent;
    background: #f9f8f8;
    opacity: 50%;
    color: #294189;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    scale: 80%;
  }
}


/* =========================================
   اسکرول‌بار
   عمومی + نسخه ایزوله Kinzhad
   ========================================= */

/* حالت عمومی فعلی فایل اصلی */


/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {

  .project-detail-frame.kinzhad-layout .project-detail-text-en h2 {
    font-size: 13px;
    margin-top: -25px;
    color: var(--primary-blue);
    position: relative;
    bottom: -2%;
    padding-left: 22px;
    margin-bottom: 20px;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text h2 {
    font-size: 16px;
    margin-top: -50px;
    color: var(--primary-blue);
    position: relative;
    right: 87%;
    margin-bottom: 20px;
  }

  .project-detail-frame.kinzhad-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .project-detail-frame.kinzhad-layout .project-detail-image {
    height: auto;
  }

  .project-detail-frame.kinzhad-layout .kinzhad-slider {
    min-height: 420px;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-left: 0;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text-en {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .project-detail-frame.kinzhad-layout .kinzhad-slider {
    min-height: 320px;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow-left {
    left: 10px;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow-right {
    right: 10px;
  }
}

/* ===== Kinzhad: prevent page scroll, allow only text scroll ===== */
body:has(.project-detail-frame.kinzhad-layout) {
  overflow: hidden;
}

body:has(.project-detail-frame.kinzhad-layout) .page {
  height: 100vh;
  overflow: hidden;
}

body:has(.project-detail-frame.kinzhad-layout) .projects-area {
  height: 100vh;
  padding: 60px 60px 150px 60px;
  /* remove the big bottom padding only on this page */
  overflow: hidden;
  align-items: center;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-frame.kinzhad-layout {
  height: calc(100vh - 120px);
  align-items: stretch;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-image,
body:has(.project-detail-frame.kinzhad-layout) .project-detail-text {
  min-height: 0;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-text {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 12px;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-image,
body:has(.project-detail-frame.kinzhad-layout) .project-detail-text-en {
  min-height: 0;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-text-en {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 12px;
}


/* ===== Kinzhad: only description scrolls ===== */
body:has(.project-detail-frame.kinzhad-layout) .project-detail-frame.kinzhad-layout .project-detail-text {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  direction: rtl;
  min-height: 0;
  padding-left: 12px;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-frame.kinzhad-layout .project-detail-text-en {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  direction: rtl;
  min-height: 0;
  padding-left: 12px;
  position: relative;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-meta {
  flex: 0 0 auto;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-description {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 20px;
  padding-left: 6px;
}

body:has(.project-detail-frame.kinzhad-layout) .project-detail-description-en {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 20px;
  padding-left: 6px;
}

/* ===== Sidebar hover video / active image ===== */

.menu-left-media {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  flex-shrink: 0;

}

.menu-left-media .menu-left-img,
.menu-left-media .menu-hover-video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
}

.menu-hover-video {
  transform: scale(0.8);
}

/* عکس پیش‌فرض فقط برای active */
.menu-static-img {
  position: absolute;
  bottom: 30px;
  left: 38px;
  width: 30px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sidebar a.active .menu-static-img {
  opacity: 1;
}

/* ویدیو فقط روی hover */
.menu-hover-video {
  opacity: 0;
  pointer-events: none;
}

.sidebar a.is-hovering .menu-hover-video {
  opacity: 1;
}

.sidebar a.is-hovering .menu-static-img {
  opacity: 0;
}

/* About page */
.about-wrap {
  width: 100%;
  max-width: 1300px;
}

.about-top-circles {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.about-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  /* وقتی عکس نیست */
}

.about-circle img {
  width: 100%;
  height: 100%;
  display: block;
}

/* مخصوص صفحه about */
body.about-page {
  height: 100vh;
  overflow: hidden;
}

body.about-page .page {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

body.about-page .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
}

body.about-page .projects-area {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 220px;
  height: calc(100vh - 120px);
  /* برای اینکه محتوا زیر فوتر نرود */
}

.about-wrap {
  width: 100%;
  max-width: 1300px;
  margin-bottom: 40px;
}

.about-top-circles {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.about-bot-circles {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.about-circle {
  width: 240px;
  height: 240px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  flex: 0 0 240px;
}

.about-circle-bot {
  width: 180px;
  height: 180px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  flex: 0 0 180px;
}


/* کلاس جدا برای عکس‌های about */
.about-circle-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: right;
}

.about-title {
  margin-bottom: 20px;
}

.space {
  height: 550px;
}



body.projects-page .fixed-footer {
  left: 133px;
}


/* =========================
   ABOUT PAGE
========================= */

body.about-page {
  height: 100vh;
  overflow: hidden;
}

body.about-page .page {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

body.about-page .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
}

body.about-page .projects-area {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 60px 80px 220px 80px;
  box-sizing: border-box;
  height: calc(100vh - 120px);
}

/* اسکرول‌بار آبی و نازک */

body.about-page .fixed-footer {
  position: fixed;
  bottom: 20px;
  left: 130px;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 4;
}


/* محتوای درباره ما */
.about-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: right;
}

.about-intro,
.about-values {
  margin-bottom: 70px;
}

.about-intro {
  padding-top: 100px;
}

.about-intro,
.about-values-en {
  margin-bottom: 70px;
  direction: ltr;
}

.about-values-en {
  width: 50%;
  margin-right: 25%;
}

.about-values {
  width: 50%;
  margin-right: 25%;
}

.about-icon {
  width: 100px;
  margin: 0 auto 10px;
  position: relative;
  left: 1%;
}

.about-icon-en {
  width: 100px;
  margin: 0 auto 10px;
  position: relative;
  left: 1%;
  padding-top: 120px;
}

.about-icon2 {
  width: 100px;
  margin: 0 auto 10px;
  position: relative;
  left: 2%;
}

.about-icon3 {
  width: 70px;
  margin: 0 auto 10px;
  margin-top: -30px;

}

.about-icon2-en {
  width: 100px;
  margin: 0 auto 10px;
  position: relative;
  left: 1%;
}

.about-icon3-en {
  width: 100px;
  right: 8%;
}

.about-icon img {
  width: 100%;
  display: block;
}

.about-icon2 img {
  width: 100%;
  display: block;
}

.about-icon3 img {
  width: 100%;
  display: block;
}

.about-icon-en img {
  width: 100%;
  display: block;
}

.about-icon2-en img {
  width: 100%;
  display: block;
}

.about-icon3-en img {
  width: 100%;
  display: block;
}

.about-content h1,
.about-content h2 {
  margin: 0 0 18px;
  color: #2d2d6f;
  font-weight: 700;
}

.about-content h1 {
  font-size: 32px;
}

.about-content h2 {
  font-size: 24px;
}

.about-content p {
  color: var(--primary-blue);
  line-height: 2.2;
  font-size: 15px;
  margin: 0 auto;
}

.about-values ul {
  list-style: none;
  padding: 0;
  margin: 25px auto 0;
  max-width: 600px;
  text-align: right;
}

.about-values-en ul {
  list-style: none;
  padding: 0;
  margin: 25px auto 0;
  max-width: 600px;
  text-align: left;
}

.about-values li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 14px;
  color: var(--primary-blue);
  line-height: 2;
  font-size: 18px;
}

.about-values li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: #d64161;
  font-size: 18px;
}

.about-values-en li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 14px;
  color: var(--primary-blue);
  line-height: 2;
}

.about-values-en li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: #d64161;
  font-size: 18px;
}

/* تیم */
.about-team {
  margin-top: 50px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
  text-align: right;
}

.team-member:nth-child(even) {
  flex-direction: row-reverse;
}

.team-member-en {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
  text-align: left;
}

.team-member-en:nth-child(even) {
  flex-direction: row-reverse;
}

.team-photo-frame {
  width: 180px;
  height: 180px;
  border: 1px solid #cfd3e6;
  padding: 10px;
  background: #fff;
  align-items: center;
}

/* عکس‌ها مربعی باشند و کراپ دایره‌ای نشوند */
.about-square-image {
  width: 220px;
  height: 300px;
  border-radius: 0;
  display: block;
  justify-self: center;
}

.about-square-image2 {
  width: 250px;
  height: 300px;
  border-radius: 0;
  display: block;
  justify-self: center;
}

.about-square-image3 {
  width: 300px;
  height: 300px;
  border-radius: 0;
  display: block;
  justify-self: center;
}

.about-square-image-en {
  width: 300px;
  height: 300px;
  border-radius: 0;
  display: block;
  justify-self: center;
}

.about-square-image2-en {
  width: 300px;
  height: 300px;
  border-radius: 0;
  display: block;
  justify-self: center;
}

.team-info h3 {
  margin: 0 0 8px;
  color: #2d2d6f;
  font-size: 22px;
}

.team-info span {
  display: inline-block;
  margin-bottom: 14px;
  color: #7b7b98;
  font-size: 14px;
}

.team-info p {
  margin: 0;
  text-align: justify;
}

/* ریسپانسیو */
@media (max-width: 992px) {
  body.about-page .projects-area {
    padding: 40px 30px 180px 30px;
  }

  .team-member,
  .team-member:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }

  .team-member-en,
  .team-member-en:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }

  .team-info p {
    text-align: center;
  }
}


/* CONTACT PAGE */
body.about-page .projects-area {
  height: calc(100vh - 120px);
}

.contact-container {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.contact-map {
  margin-bottom: 40px;
  margin-right: 40px;
  align-self: flex-start;
}

.contact-map img {
  width: 80%;
  border: 1px solid #9aa0c3;
  position: relative;

}

.contact-map1 {
  margin-bottom: 20px;
  margin-right: 200px;
  align-self: flex-end;

}

.contact-map1 img {
  width: 85%;
  border: 1px solid #9aa0c3;
  justify-content: flex-end;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-infoen {
  margin-bottom: 30px;
  position: relative;
  left: 3%;
}

.contact-row {
  display: flex;
  align-items: left;
  justify-content: left;
  gap: 10px;
  margin-bottom: 12px;
  color: #6b6b9b;
  font-size: 22px;
}

.contact-row img {
  width: 22px;
}

.contact-row-en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #6b6b9b;
  font-size: 18px;
}

.contact-row-en img {
  width: 22px;
}

.contact-row-en {
  display: flex;
  align-items: center;
}

.contact-row {
  display: flex;
  align-items: center;
}

.contact-icon-en {
  order: -1;
  margin-left: 12px;
  margin-right: 0;
}

.contact-icon-en2 {
  order: -1;
  margin-left: 12px;
  margin-right: 0;
}

.contact-icon-en3 {
  order: -1;
  margin-left: 12px;
  margin-right: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  width: 700px;
}

.contact-form input {
  height: 40px;
  border: 1px solid #9aa0c3;
  background: transparent;
  padding: 0 10px;
  font-family: inherit;
}

.contact-form textarea {
  height: 120px;
  border: 1px solid #9aa0c3;
  background: transparent;
  padding: 10px;
  resize: none;
  font-family: inherit;
}

.contact-social {
  margin-top: 20px;
  display: flex;
  justify-content: left;
  gap: 13px;
  position: relative;
  right: -13%;
  bottom: 35%;

}

.contact-social-en {
  margin-top: 20px;
  display: flex;
  justify-content: left;
  gap: 13px;
  position: relative;
  left: 68%;
  bottom: 42%;
}

.contact-social img {
  width: 60px;
  border: 0px solid #9aa0c3;
  padding: 6px;
}

.contact-social-en img {
  width: 60px;
  border: 0px solid #9aa0c3;
  padding: 6px;
}

/* CONTACT PAGE SCROLL CONTROL */

body.contact-page {
  overflow: hidden;
}

body.contact-page .projects-area {
  height: 100vh;
  overflow-y: auto;
  height: calc(100vh - 120px);
}


.contact-map {
  display: flex;
  justify-content: left;
}

.contact-form {
  display: flex;
  justify-content: center;
}

.contact-map img {
  max-width: 75%;
  height: auto;
  position: relative;
  right: 12%;
}



.contact-container {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px auto;
  width: 800px;
}


@media (min-width: 1000px) {
  .contact-row-en {
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    left: 10%;
  }

  .contact-row {
    display: flex;
    align-items: right;
    justify-content: right;
    gap: 10px;
    margin-bottom: 0px;
    margin-right: 200px;
  }
}


.contact-icon img {
  width: 33px;
  height: 38px;
  object-fit: contain;
  padding-top: 5px;
}

.contact-icon2 img {
  width: 33px;
  height: 38px;
  object-fit: contain;
  padding-top: 5px;
}

.contact-icon3 img {
  width: 33px;
  height: 38px;
  object-fit: contain;
  padding-top: 5px;
}

.contact-icon-en img {
  width: 33px;
  height: 38px;
  object-fit: contain;
  padding-top: 5px;
  position: relative;
  right: 60%;
}

.contact-icon-en2 img {
  width: 33px;
  height: 38px;
  object-fit: contain;
  padding-top: 5px;
  position: relative;
  right: 60%;
}

.contact-icon-en3 img {
  width: 33px;
  height: 38px;
  object-fit: contain;
  padding-top: 5px;
  position: relative;
  right: 60%;
}

.about-values ul {
  list-style: none;
  padding-right: 0;
  margin: 0;
}

.about-values ul li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 10px;
}

.about-values ul li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-image: url("images/Asset 5.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: scaleX(-1);
  transform: rotate(90deg)
}

.about-values-en ul {
  list-style: none;
  padding-right: 0;
  margin: 0;
}

.about-values-en ul li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 10px;
}

.about-values-en ul li::before {
  content: "";
  position: absolute;
  right: 95%;
  top: 6px;
  width: 16px;
  height: 16px;
  background-image: url("images/Asset 5.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: scaleX(-1);
  transform: rotate(90deg);
  direction: ltr;
  text-align: left;


}


/* صفحه گفتارها */

.articles-wrapper {
  width: 80%;
  display: flex;
  justify-content: flex-start;
  padding-top: 80px;
  padding-left: 120px;
  padding-right: 120px;
}

.articles-column {
  width: 500px;
}

.articles-section {
  margin-bottom: 120px;
}

.articles-title {
  font-size: 20px;
  color: #324a8a;
  margin-bottom: 10px;
}

.articles-line {
  width: 100%;
  height: 2px;
  background: #cf3a27;
  position: relative;
  margin-bottom: 25px;
}

.articles-line::after {
  content: "";
  position: absolute;
  left: 482px;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #cf3a27;
}

.articles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.articles-list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--primary-blue);
  cursor: pointer;
  transition: 0.2s;
}

.articles-list li:hover {
  color: #4a68bd;
}

body.articles-page {
  overflow: hidden;
}

body.articles-page .projects-area {
  height: 100vh;
  overflow-y: auto;
  height: calc(100vh - 120px);
}


.articles-list a {
  color: var(--primary-blue);
  /* رنگ دلخواه عنوان */
  text-decoration: none;
}

.articles-list a:hover {
  color: #3d74d9;
  /* رنگ هنگام hover */
}

.articles-list a:visited {
  color: var(--primary-blue);
}

/* صفحه مقاله */

.article-wrapper {
  width: 1300px;
  margin-right: 250px;
  margin-bottom: 120px;
}

.article-header {
  margin-bottom: 50px;
}

.article-category {
  font-size: 20px;
  color: #324a8a;
  margin-bottom: 10px;
}

.article-line {
  width: 500px;
  height: 2px;
  background: #cf3a27;
  position: relative;
  margin-bottom: 30px;
}

.article-line::after {
  content: "";
  position: absolute;
  left: 483;
  top: 8px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #cf3a27;
}

.article-title {
  font-size: 18px;
  color: #324a8a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  margin-top: 60px;
}

.article-image {
  position: absolute;
  top: 160px;
  right: 262px;
  width: 40px;
  height: 40px;
}

/* بخش متن */

.article-content-area {
  display: flex;
  gap: 40px;
}

.article-text {
  width: 800px;
  height: 350px;
  font-size: 14px;
  line-height: 2.2;
  color: #555;
  text-align: justify;
  padding-left: 120px;
}

.article-text p {
  margin-bottom: 18px;
}

body.articles-page {
  overflow: hidden;
}

body.article-page {
  overflow: hidden;
}

.article-page .projects-area {
  height: 100vh;
  overflow: hidden;
  height: calc(100vh - 120px);
}


.article-text {
  max-height: 70vh;
  overflow-y: auto;
}




/* اسکرول بار عمومی */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #e6e6e6;
}

::-webkit-scrollbar-thumb {
  background: #324a8a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1f3366;
}

::-webkit-scrollbar-button {
  display: none;
}

.sub-nav a {
  position: relative;
  display: inline-block;
}

.submenu-right-media {
  position: absolute;
  right: -20px;
  /* فاصله عکس/ویدیو از متن */
  top: 50%;
  transform: translateY(-65%);
  width: 18px;
  height: 18px;
  display: inline-block;

}

.submenu-right-media .submenu-right-img,
.submenu-right-media .submenu-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);

}



/* عکس فقط برای زیرمنوی active */
.sub-nav a.active .submenu-static-img {
  opacity: 1;
}

/* وقتی موس داخل کل زیرمنو است، آیکن آیتم active محو شود */

.sub-nav:hover>a.active .menu-img {
  opacity: 1;
}


.sub-nav a:hover .menu-img {
  opacity: 0;
}


.menu-video {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .25s ease, transform .25s ease;
}

.menu-item:hover .menu-video {
  opacity: 1;
  transform: scale(1);
}

.menu-media {
  pointer-events: none;
}

/* حالت عادی */
.submenu-static-img {
  opacity: 0;
}

a.active .submenu-static-img {
  opacity: 1;
}


/* وقتی روی آیتم منوی اصلی hover شود */
.main-nav>a:hover .menu-static-img {
  opacity: 0;
}

.main-nav>a:hover .menu-hover-video {
  opacity: 1;
}


/* زیرمنو فقط روی خودش اثر بگذارد */


/* حالت عادی */

.main-nav a .menu-static-img {
  opacity: 0;
  transition: opacity .25s ease;
}

.main-nav a.active .menu-static-img {
  opacity: 1;
}


/* ویدیو hover */

.main-nav a .menu-hover-video {
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.main-nav a:hover .menu-hover-video {
  opacity: 1;
}


/* وقتی روی آیتم منو hover می‌شود */

.main-nav>a:hover .menu-static-img {
  opacity: 0;
}


/* وقتی روی یک منوی دیگر hover شود آیکن active محو شود */

.main-nav:has(> a:hover) a.active .menu-static-img {
  opacity: 0;
}

.meta-label {
  color: #000000;
  font-weight: 600;
  margin-left: 6px;
  margin-bottom: -5px;
  font-size: 17px;
}

.project-detail-description p {
  font-size: 15px;
  line-height: 1.9;
  color: #3b3b3b;
  font-weight: 10;
}

.project-detail-description-en p {
  font-size: 12px;
  line-height: 1.9;
  color: #3b3b3b;
  font-weight: 10;
}

.project-detail-meta p {
  font-size: 15px;
  color: #000000;
}

.meta-text {
  font-size: 15px;
  color: #3b3b3b;
  font-weight: 400;
  margin-left: 6px;
}



.project-detail-meta p {
  margin: 2px 0;
}

.project-detail-meta p {
  margin: 0;
}

.project-detail-meta p {
  margin: 0;
  line-height: 1.3;
}

.project-detail-description p {
  font-size: 16px;
  line-height: 1.9;
  color: #3b3b3b;
  font-weight: 10;
  text-align: justify;
}

.project-detail-description-en p {
  font-size: 15px;
  line-height: 1.9;
  color: #3b3b3b;
  font-weight: 10;
  text-align: left;
  direction: ltr;
  text-align: justify;


}

.half-space {
  display: block;
  height: 8px;
  /* هرچقدر خواستی فاصله */
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  z-index: 9999;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: 90vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  transition: transform .3s ease, opacity .3s ease;
}

.lightbox-counter {
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
  opacity: .85;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  opacity: .85;
  transition: opacity .25s ease, transform .25s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  backdrop-filter: blur(6px);
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-arrow-left {
  left: 28px;
}

.lightbox-arrow-right {
  right: 28px;
}


.lightbox-thumbnails {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 10px 20px;
}

.lightbox-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: .45;
  transform: scale(.92);
  transition: all .25s ease;
  border: 2px solid transparent;
}

.lightbox-thumb:hover {
  opacity: .8;
  transform: scale(1);
}

.lightbox-thumb.active {
  opacity: 1;
  transform: scale(1.12);
  border-color: #d89a2b;
  box-shadow: 0 10px 25px rgba(216, 154, 43, .25);
}

.kinzhad-slider .slide-image {
  cursor: zoom-in;
}

.lightbox-progress {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, .2);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}

.lightbox-progress-bar {
  height: 100%;
  width: 0%;
  background: #d89a2b;
  transition: width .35s ease;
}

.lightbox-image {
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.lightbox-image.change {
  opacity: 0;
  transform: scale(.97);
}

.lightbox-thumbnails {
  direction: ltr;
}

.kinzhad-slider {
  direction: ltr;
}

@media (max-width: 768px) {

  /* ساختار کلی */
  .page {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
  }

  /* حذف کامل سایدبار */
  .sidebar {
    display: none !important;
    width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ناحیه پروژه‌ها باید اسکرول طبیعی صفحه را بگیرد */
  .projects-area {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 16px 40px !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* گرید موبایل */
  .projects-grid {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 16px !important;
    align-items: start !important;
  }

  /* ریست کامل جایگذاری‌های دسکتاپ */
  .projects-grid>* {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .project,
  .project.wide,
  .project.tall {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    text-decoration: none !important;
  }

  /* چون در دسکتاپ برای بعضی آیتم‌ها nth-child تعریف شده */
  .projects-grid> :nth-child(4),
  .projects-grid> :nth-child(5),
  .projects-grid> :nth-child(6) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* پروژه سوم: تمام عرض و اول */
  .projects-grid .project:nth-child(3) {
    order: -1 !important;
    grid-column: 1 / -1 !important;
  }

  /* باکس تصویر */
  .project-img {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .project-img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }

  /* عنوان */
  .project-title {
    margin-top: 8px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* فوتر fixed نباشد */
  .fixed-footer {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 32px 0 12px !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* اگر عنصر پس‌زمینه ثابت داری */
  .fixed-background-box {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {

  .page {
    display: block !important;
  }

  .sidebar {
    display: none !important;
  }

  .projects-area {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 20px 16px 40px !important;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .project,
  .project.wide,
  .project.tall {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
  }

  .projects-grid .project:nth-child(3) {
    grid-column: 1 / -1 !important;
    order: -1;
  }

  .project-img {
    height: auto !important;
  }

  .project-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  .fixed-footer {
    position: static !important;
    margin-top: 40px;
  }

}

.mobile-header {
  display: none;
}

@media (max-width:768px) {

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 18px;
  }

  .mobile-home {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2f3192;
    font-size: 18px;
  }

  .mobile-logo {
    height: 45px;
  }

  .mobile-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #2f3192;
  }

  .mobile-icon {
    height: 22px;
  }

}

.mobile-header {
  display: none;
}

@media (max-width:768px) {

  .mobile-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 18px;
  }

  /* پروژه‌ها سمت راست */
  .mobile-projects {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2f3192;
    font-size: 18px;
  }

  .projects-icon {
    height: 22px;
  }

  /* خانه وسط */
  .mobile-home {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #2f3192;
  }

  .mobile-logo {
    height: 95px;
    margin-bottom: 0px;
  }

  .home-text {
    font-size: 12px;
    margin-top: -30px;
    margin-left: 35px;
  }

}

.mobile-project-header {
  display: none;
}

@media (max-width:768px) {

  .mobile-project-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    padding: 22px 20px 10px;
    direction: rtl;
  }

  /* لوگوی خانه وسط */
  .mobile-home-link {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c6aa8;
  }

  .mobile-home-logo {
    width: 90px;
    max-width: 24vw;
    height: auto;
    display: block;
    margin: 0 auto 6px;
  }

  .mobile-home-text {
    font-size: 16px;
    line-height: 1;
    text-align: center;
  }

  /* پروژه‌ها سمت راست */
  .mobile-projects-link {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #233c97;
    font-size: 18px;
    font-weight: 600;
  }

  .mobile-projects-icon {
    width: 26px;
    height: auto;
    display: block;
  }

  /* چون در موبایل سایدبار حذف می‌شود، محتوا تمام عرض شود */
  .page {
    display: block !important;
  }

  .sidebar {
    display: none !important;
  }

  /* فاصله ابتدای محتوای پروژه */
  .project-detail-frame.kinzhad-layout {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    height: auto !important;
  }

  /* قاب تصویر اصلی مثل اسکرین‌شات */
  .project-detail-frame.kinzhad-layout .kinzhad-slider {
    min-height: auto !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border: 1.5px solid #6b6fb3;
    background: #f8f7f4;
  }

  .project-detail-frame.kinzhad-layout .slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* فلش‌های اسلایدر */
  .project-detail-frame.kinzhad-layout .slider-arrow {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #8b8b9b;
    font-size: 28px;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow-left {
    left: -6px;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow-right {
    right: -6px;
  }

  /* متن پروژه */
  .project-detail-frame.kinzhad-layout .project-detail-text {
    padding: 0 20px 0 20px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text h1 {
    font-size: 28px;
    line-height: 1.4;
    margin: 18px 0 14px;
    color: #233c97;
    padding-right: 14px;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text h1::before {
    width: 3px;
    height: 26px;
    top: 6px;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text-en {
    padding: 0 20px 0 20px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text-en h1 {
    font-size: 28px;
    line-height: 1.4;
    margin: 18px 0 14px;
    color: #233c97;
    padding-right: 14px;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text-en h1::before {
    width: 3px;
    height: 35px;
    top: 6px;
    left: 0px;
  }

  /* اگر متادیتای پروژه با چند ستون است، در موبایل جمع شود */
  .project-meta,
  .project-info,
  .project-specs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 18px;
  }

  /* پاراگراف‌ها خواناتر شوند */
  .project-detail-frame.kinzhad-layout .project-detail-text p {
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
  }

  .project-detail-frame.kinzhad-layout .project-detail-text-en p {
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
  }

  /* پس‌زمینه و فوتر */
  .fixed-background-box {
    display: none !important;
  }

  .fixed-footer {
    position: static !important;
    width: 100% !important;
    margin: 28px 0 12px !important;
    justify-content: center !important;
  }

  .fixed-footer img {
    max-width: 170px;
    width: 45%;
    height: auto;
  }
}

@media (max-width:768px) {

  /* کل صفحه اسکرول‌پذیر شود */
  html,
  body {
    height: auto !important;
    overflow-y: auto !important;
  }

  body {
    display: block !important;
    overflow-x: hidden !important;
    background: var(--bg-color);
  }

  /* صفحه و بخش اصلی دیگر محدود به ارتفاع نباشد */
  .page {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* حذف ارتفاع ثابت پروژه */
  .project-detail-frame.kinzhad-layout {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* اسلایدر هم باید رشد کند، نه محدود شود */
  .project-detail-frame.kinzhad-layout .kinzhad-slider {
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: auto;
    overflow: visible !important;
  }

  /* تصاویر در داخل اسلایدر اسکرول را محدود نکنند */
  .project-detail-frame.kinzhad-layout .slide-image {
    position: relative !important;
    display: block !important;
    height: auto !important;
    max-height: 100%;
  }

  /* بخش توضیحات و نوشته قابل اسکرول در کل صفحه */
  .project-detail-frame.kinzhad-layout .project-detail-text {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 50px !important;
    /* برای فاصله قبل از فوتر */
  }

  .project-detail-frame.kinzhad-layout .project-detail-text-en {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 50px !important;
    /* برای فاصله قبل از فوتر */
  }

  /* فوتر از حالت fixed خارج شود تا اسکرول بخورد */
  .fixed-footer {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 25px !important;
    pointer-events: auto !important;
  }

  .fixed-background-box {
    display: none !important;
  }
}

@media (max-width:768px) {

  /* ظرف اسلایدر */
  .kinzhad-slider {
    position: relative;
    width: 100%;
    height: auto !important;
    overflow: hidden !important;
  }

  /* کانتینر اسلایدها (معمولاً flex است) */
  .kinzhad-slider-track,
  .slides,
  .slider-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  /* هر اسلاید */
  .kinzhad-slide,
  .slide {
    min-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    height: auto !important;
  }

  /* خود تصویر */
  .slide-image {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh;
    object-fit: contain !important;
    display: block;
    background: #f7f6f3;
  }
}

@media (max-width:768px) {

  .slider-arrow {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(6px);
  }

  .slider-arrow svg,
  .slider-arrow i {
    font-size: 22px !important;
    color: #233c97 !important;
  }

  .slider-arrow-left {
    left: 10px !important;
  }

  .slider-arrow-right {
    right: 10px !important;
  }
}

@media (max-width:768px) {

  /* ظرف اصلی اسلایدر */
  .kinzhad-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  /* ردیف اسلایدها */
  .kinzhad-slider-track {
    display: flex !important;
    transition: transform .4s ease;
    width: 100%;
  }

  /* هر اسلاید فقط یک صفحه */
  .kinzhad-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* تصویر */
  .slide-image {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
  }

  .kinzhad-slide,
  .slide {
    min-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    height: auto !important;
  }

}

@media (max-width: 768px) {

  .project-detail-frame.kinzhad-layout {
    display: block !important;
    height: auto !important;
    min-height: unset !important;
  }

  .project-detail-frame.kinzhad-layout .project-detail-image {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .project-detail-frame.kinzhad-layout .kinzhad-slider {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    overflow: hidden !important;
    background: #f7f6f3 !important;
  }

  .project-detail-frame.kinzhad-layout .slide-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: none !important;
    margin: 0 auto !important;
    background: #f7f6f3 !important;
  }

  .project-detail-frame.kinzhad-layout .slide-image.active {
    display: block !important;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: transparent;
    color: #294189 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    z-index: 20 !important;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow-left {
    left: 10px !important;
  }

  .project-detail-frame.kinzhad-layout .slider-arrow-right {
    right: 10px !important;
  }
}

@media (max-width:768px) {

  .fixed-footer {
    position: static !important;
    width: 100% !important;
    margin-top: 0px;
  }

}

@media (max-width: 768px) {

  .fixed-footer {
    position: relative !important;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    margin-top: 40px;
  }

  .fixed-footer .footer-line {
    width: 100% !important;
  }

}

@media (max-width: 768px) {

  .fixed-footer {
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    margin: 32px 0 12px !important;
    display: block !important;
    transform: none !important;
  }

  .fixed-footer img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }

}

@media (max-width: 768px) {

  /* فقط سه آیتم بالایی بمانند */
  .about-top-circles {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 34px !important;
    margin-top: 20px !important;
    width: 100% !important;
  }

  /* آیتم‌های پایین در موبایل کلاً حذف شوند */
  .about-bot-circles {
    display: none !important;
  }

  /* خود هر آیتم بالا */
  .about-top-circles .about-circle {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
  }

  /* اندازه عکس/قاب هر نفر */
  .about-circle-image {
    width: 190px !important;
    max-width: 70vw !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* اگر روی about-wrap یا projects-area عرض/چیدمان دسکتاپ مانده */
  .about-wrap {
    width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .projects-area {
    width: 100% !important;
    padding: 0 !important;
  }

}

@media (max-width: 768px) {

  /* فاصله کل صفحه از کناره‌ها */
  body.contact-page .projects-area {
    padding: 20px 24px 40px !important;
    box-sizing: border-box;
  }

  /* wrapper صفحه تماس */
  .contact-wrapper {
    width: 100%;
    padding: 0 0px;
    box-sizing: border-box;
  }

  /* فرم تماس */
  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* نقشه */
  .contact-map img {
    width: 100% !important;
    position: relative;
    right: 0%;
  }

  /* آیکن‌های شبکه اجتماعی */

}

@media (max-width: 768px) {

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 24px;
    margin-left: 240px;
  }

  .contact-infoen {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 24px;
    margin-left: 24px;
  }

}

@media (max-width: 768px) {

  .contact-row {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    gap: 10px;
    margin-right: 500px !important;
    padding-right: 360px;
    box-sizing: border-box;
    width: 800px;
    text-align: right;
  }

  .contact-row p {
    margin: 0;
    text-align: right;
  }

}

@media (max-width: 768px) {

  .contact-row-en {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    gap: 10px;
    margin-right: 500px !important;
    padding-right: 360px;
    box-sizing: border-box;
    width: 800px;
    text-align: right;
  }

  .contact-row-en p {
    margin: 0;
    text-align: right;
  }

}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ناحیه های کلیک */
.hotspot {
  position: absolute;
  display: block;
  z-index: 5;
}


/* محل هر عنوان روی تصویر */

.projects {
  top: 46%;
  left: 45%;
  width: 115px;
  height: 85px;
}

.team {
  top: 73%;
  left: 66.5%;
  width: 100px;
  height: 75px;
}

.about {
  top: 77%;
  left: 20%;
  width: 130px;
  height: 75px;
}

.contact {
  top: 34%;
  left: 9.5%;
  width: 160px;
  height: 60px;
}

.articles {
  top: 47%;
  left: 88%;
  width: 113px;
  height: 80px;
}

.logo-container {
  text-decoration: none;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding-top: 40px;
}

.mobile-logo img {
  width: 120px;
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #2d3e8b;
  font-size: 18px;
  font-weight: 500;
}

.menu-item img {
  width: 35px;
  margin-bottom: 8px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding-top: 30px;

}

.mobile-logo img {
  width: 120px;
  margin-bottom: 40px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #2d3e8b;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 110px;
}

.menu-item img {
  width: 35px;
  margin-bottom: 8px;
}

.video-container {
  display: block;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .video-container {
    display: none;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding-top: 40px;
  }
}

body.projects-page .sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
}

body.projects-page .projects-area {
  margin-left: 250px;
}

body.projects-page .projects-area {
  margin-left: 250px;
  height: 100vh;
  overflow-y: auto;
  height: calc(100vh - 120px);
  ;
}

/* === Extra videos custom styles === */
/* کانتینر کلی دو ویدیو جدید */
.extra-videos-wrapper {
  display: flex;
  gap: 20px;
  /* فاصله بین دو ویدیو */
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  /* فاصله از ویدیو اصلی */
}

/* استایل مشترک برای هر دو ویدیوی اضافه */
.extra-videos-wrapper .extra-video {
  max-width: 100%;
  width: 300px;
  /* عرض پایه، هر وقت خواستی عوض کن */
  height: auto;
  cursor: pointer;
  /* نشانگر موس مثل لینک بشه */
  border-radius: 8px;
  /* گوشه‌ها گرد */
  overflow: hidden;
}

/* اگر برای هر کدوم استایل متفاوت می‌خوای */
.extra-videos-wrapper .extra-video-1 {
  position: absolute;
  left: 200px;
  top: 100px;
}

.extra-videos-wrapper .extra-video-2 {
  position: absolute;
  left: 300px;
  top: 100px;
}

/* در صورت نیاز برای موبایل */
@media (max-width: 768px) {
  .extra-videos-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .extra-videos-wrapper .extra-video {
    width: 90%;
  }
}

.about-title {
  font-size: 24px;
  margin-left: -210px;
  margin-top: -10px;
  color: var(--primary-blue);
  width: 300px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;

}

.about-title-en {
  font-size: 20px;
  margin-right: -200px;
  margin-top: -10px;
  color: var(--primary-blue);
  width: 300px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;

}

.about-image {
  width: 50px;
}

.about-team {
  direction: rtl;
  text-align: right;
}

.team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

.team-img {
  width: 160px;
  height: auto;
  margin: 0 auto;
}

.team-title {
  text-align: center;
  font-weight: bold;
  margin-top: 16px;
  font-size: 25px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;
}

#special-text {
  font-family: "AnjomanMax-bold";
}

.about-title2 {
  font-size: 20px;
  margin-right: -12px;
  margin-top: 6px;
  color: var(--primary-blue);
  width: 300px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;
}

.about-title3 {
  font-size: 20px;
  margin-right: -20px;
  margin-top: 6px;
  color: var(--primary-blue);
  width: 300px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;
}

.about-title2-en {
  font-size: 20px;
  margin-top: 6px;
  color: var(--primary-blue);
  width: 300px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;
  position: relative;
  left: 190%;
}

.about-title3-en {
  font-size: 20px;
  margin-left: 3px;
  margin-top: 6px;
  color: var(--primary-blue);
  width: 300px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;
  position: relative;
  left: 270%;
}

.about-title4 {
  font-size: 15px;
  margin-right: 3px;
  margin-top: 15px;
  color: var(--primary-blue);
  width: 300px;
  font-family: "AnjomanMax-bold", Tahoma, sans-serif;
}

a {
  color: inherit;
  /* رنگ رو از والد بگیر، نه آبی پیش‌فرض */
  text-decoration: none;
  /* زیرخط لینک رو بردار */
}

a:visited,
a:active,
a:hover {
  color: inherit;
  text-decoration: none;
}

.full-screen-image-wrapper {
  width: 120vw;
  height: 100vh;
  overflow: hidden;
  /* می‌تونی حذفش هم بکنی اگر عکس بیرون نزنه */
}

.spacee {
  height: 10%;
  opacity: 0%;
}

.full-screen-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* ← به‌جای cover از contain استفاده کن */
  display: block;
  background-color: transparent;
  /* یا هر رنگ پس‌زمینه‌ای که خواستی برای اطراف */
}

/* موبایل: همه پروژه‌ها یک ستون، یک اندازه */
@media (max-width: 768px) {

  /* اگر گرید داری، یک ستونش کن */
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-left: 4px;
    /* فاصله بین کارت‌ها */
  }

  /* کلاس‌های tall و wide رو در موبایل خنثی کن */
  .projects-grid .project {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* باکس تصویر با نسبت ثابت (مثلاً 3:2) */
  .project-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    /* می‌تونی 4 / 3 یا 1 / 1 هم امتحان کنی */
    overflow: hidden;
  }

  .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* برش می‌زند که همه یک اندازه دیده شوند */
    display: block;
  }
}

/* فاصله کلی از کناره‌های صفحه در موبایل */
@media (max-width: 768px) {
  .projects-area {
    padding: 0 160px 24px;
    /* بالا 0، راست و چپ 16px، پایین 24px */
    box-sizing: border-box;
  }

  /* اگر خود گرید تا لبه می‌چسبد */
  .projects-grid {
    margin: 8px 5px 0;
    /* کمی فاصله از هدر یا المان‌های بالا */
  }
}

/* رفتار صفحه گفتارها مثل پروژه‌ها در موبایل */

@media (max-width:768px) {

  body.articles-page .sidebar {
    display: none !important;
  }

  body.articles-page .page {
    display: block !important;
    width: 100% !important;
  }

}

/* ===========================
   Hero Project فقط برای موبایل
   =========================== */

@media (max-width: 768px) {

  /* بخش Hero بالای صفحه */
  .hero-project-mobile {
    display: block;
    padding: 5px;
    box-sizing: border-box;
    width: 100%;
    background-color: transparent;
    /* اگر نخواستی، حذف کن */
    margin-bottom: 8px;
  }

  .hero-project-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
  }

  .spacee {
    color: transparent;
    opacity: 100%;
  }

  .hero-project-wrapper .project {
    display: block;
    width: 100%;
    margin: 0;
  }

  .hero-project-wrapper .project-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 0px;
  }

  .hero-project-wrapper .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-project-wrapper .project-title {
    margin-top: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
  }

  /* گرید پایین همچنان بماند، فقط مطمئن شو کنار hero خوب دیده می‌شود */
  .projects-area {
    margin-top: 0;
  }

  /* اگر الان در موبایل ۱ ستون است و می‌خواهی ۲ ستون شود: */
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }

  .projects-grid .project {
    aspect-ratio: 1 / 1;
  }

  .projects-grid .project-img {
    border-radius: 0px;
  }
}

/* --- Override برای موبایل: همه کارت‌ها هم‌قد و هم‌عرض --- */
@media (max-width: 768px) {

  /* گرید دو ستونه مثل قبل، اینجا اگر قبلاً تعریف شده مشکلی نیست */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 0px;
    padding: 3px;
  }

  /* خنثی کردن tall / wide در موبایل تا هیچ کارتی دو ردیف/دو ستون نگیرد */
  .projects-grid .project.tall {
    grid-row: auto !important;
  }

  .projects-grid .project.wide {
    grid-column: auto !important;
  }

  /* اگر می‌خوای کاملاً مربعی شوند: */
  /* .projects-grid .project {
       aspect-ratio: 1 / 1;
     } */
}

@media (max-width: 768px) {
  .project-img img {
    filter: none !important;
    transform: none !important;
  }
}

/* --- Override برای موبایل: همه کارت‌ها هم‌قد و هم‌عرض --- */
@media (max-width: 768px) {

  /* گرید دو ستونه مثل قبل، اینجا اگر قبلاً تعریف شده مشکلی نیست */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 0px;
    padding: 0px;
  }

  /* خنثی کردن tall / wide در موبایل تا هیچ کارتی دو ردیف/دو ستون نگیرد */
  .projects-grid .project.tall {
    grid-row: auto !important;
  }

  .projects-grid .project.wide {
    grid-column: auto !important;
  }

  /* اگر می‌خوای کاملاً مربعی شوند: */
  /* .projects-grid .project {
       aspect-ratio: 1 / 1;
     } */
}

.about-page .about-wrap img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* --- ABOUT PAGE FIXES --- */

/* 1) وسط کردن همه تصاویر در صفحه درباره */
.about-page .about-wrap img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* در صورت نیاز برای اطمینان از مرکز بودن دایره‌ها */
.about-page .about-top-circles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* کمک در موبایل برای نشکستن چیدمان */
  gap: 40px;
}

/* 2) تنظیم ظاهر بلوک متنی اصلی (team-info) */
.about-page .team-info {
  max-width: 800px;
  /* محدود کردن عرض متن برای خوانایی */
  margin: 0 auto;
  /* وسط صفحه */
  text-align: right;
  /* راست‌چین برای متن فارسی */
  direction: rtl;
  /* اطمینان از جهت نوشتار صحیح */
  line-height: 1.8;
  /* فاصله خطوط مناسب */
}

/* 3) برای تیترها و پاراگراف‌ها داخل team-info */
.about-page .team-info h1,
.about-page .team-info h2,
.about-page .team-info h3,
.about-page .team-info p {
  text-align: right;
  direction: rtl;
}

.about-page .team-info-en {
  max-width: 800px;
  /* محدود کردن عرض متن برای خوانایی */
  margin: 0 auto;
  /* وسط صفحه */
  text-align: left;
  /* راست‌چین برای متن فارسی */
  direction: ltr;
  /* اطمینان از جهت نوشتار صحیح */
  line-height: 1.8;
  /* فاصله خطوط مناسب */
}

/* 3) برای تیترها و پاراگراف‌ها داخل team-info */
.about-page .team-info-en h1,
.about-page .team-info-en h2,
.about-page .team-info-en h3,
.about-page .team-info-en p {
  text-align: left;
  direction: ltr;
}

/* 4) جلوگیری از پخش شدن کل صفحه در تغییر اندازه */
.about-page .projects-area {
  text-align: right;
  direction: rtl;
}


@media (max-width: 768px) {
  .full-screen-image-wrapper {
    max-width: 95%;
  }



  .team-member {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 70px;
    text-align: right;
    width: 85%;
    position: relative;
    right: 5%;
  }

  .team-member-en {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 70px;
    text-align: left;
    width: 85%;
    position: relative;
    right: 5%;
  }

  .articles-wrapper {
    width: 100%;
    position: relative;
    left: 70px;
  }

  .articles-column {
    width: 100%;
  }

  .articles-section {
    width: 100%;
  }

  body.articles-page .projects-area {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .contact-row {
    width: 100%;
    padding-right: 0px;
    position: relative;
    left: 23px;
  }

}

/* --- مخصوص تب درباره: وسط کردن همه تصاویر --- */
/* --- برای جلوگیری از اسکرول در صفحه index.html --- */
.index-page {
  overflow: hidden;
  /* جلوگیری از اسکرول عمودی و افقی */
  height: 100vh;
  /* صفحه دقیقاً برابر ارتفاع پنجره مرورگر */
}

/* HERO مخصوص موبایل */
.hero-project-mobile {
  display: none;
}

/* فقط موبایل → نمایش Hero جدید */
@media (max-width: 768px) {
  .hero-project-mobile {
    display: block;
  }

  /* همچنین اگر Hero دسکتاپ داری، پنهانش کن فقط برای موبایل */
  .hero-project-desktop {
    display: none !important;
  }
}

/* تنظیم فاصله کارت‌های پروژه در موبایل */
@media (max-width: 768px) {

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    /* دو کارت در هر ردیف */
    gap: 3px;
    /* فاصله افقی و عمودی بین کارت‌ها */
  }

  .project {
    margin: 0;
    /* حذف فاصله اضافی کارت‌ها */
  }

  .project img {
    width: 100%;
    height: auto;
    display: block;
  }

}

@media (max-width: 768px) {

  .projects-area {
    padding: 20px 16px;
  }

}

.about-content-en {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.about-content-en {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.about-content-en h1,
.about-content-en h2 {
  margin: 0 0 18px;
  color: #2d2d6f;
  font-weight: 700;
}

.about-content-en h1 {
  font-size: 32px;
}

.about-content-en h2 {
  font-size: 24px;
}

.about-content-en p {
  color: var(--primary-blue);
  line-height: 2.2;
  font-size: 15px;
  margin: 0 auto;
}

.about-intro p {
  text-align: justify;
  text-justify: inter-word;
  /* این ویژگی به مرورگر می‌گوید فاصله را بین کلمات تنظیم کند */
  line-height: 1.6;
  /* (اختیاری) برای خوانایی بهتر متن، کمی فاصله بین خطوط ایجاد می‌کند */
  direction: rtl;
  /* تنظیم جهت متن به چپ‌به‌راست برای متون انگلیسی */
  text-align-last: right;
  /* اجبار خطوط ناقص و خط آخر به شروع از سمت چپ */
  width: 70%;
  font-size: 20px;
}

.about-intro-en p {
  text-align: justify;
  text-justify: inter-word;
  /* این ویژگی به مرورگر می‌گوید فاصله را بین کلمات تنظیم کند */
  line-height: 1.6;
  /* (اختیاری) برای خوانایی بهتر متن، کمی فاصله بین خطوط ایجاد می‌کند */
  direction: ltr;
  /* تنظیم جهت متن به چپ‌به‌راست برای متون انگلیسی */
  text-align-last: left;
  /* اجبار خطوط ناقص و خط آخر به شروع از سمت چپ */
  width: 70%;
  font-size: 20px;
}

.contact-row-en {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}

.top-left-social {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

.top-left-social a {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(128, 128, 160, 0.45);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.top-left-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(90, 90, 140, 0.7);
}

.top-left-social img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.lang-switch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  text-decoration: none;
}

.lang-switch__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(128, 128, 160, 0.45);
  background: rgba(255, 255, 255, 0.4);
  color: #3c4a8a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover .lang-switch__label {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(90, 90, 140, 0.7);
}

/* Social Links Styling (Top Left) */
.top-left-social {
  position: fixed;
  top: 30px;
  left: 30px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.top-left-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #3c4a8a;
  /* رنگ مشابه لوگو و خطوط شما */
  transition: all 0.3s ease;
}

.top-left-social a:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  border-color: #3c4a8a;
}

.top-left-social svg {
  width: 20px;
  height: 20px;
}

/* Language Switcher Styling (Bottom Right) */
.lang-switcher-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 4px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  text-decoration: none;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: #555;
}

/* استایل دکمه فعال (آبی) */
.lang-btn.active {
  background: #3c4a8a;
  color: white;
}

.lang-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.5);
}

/* تنظیمات کلی برای ویدیو جهت اطمینان از قرارگیری المان‌ها روی آن */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- استایل شبکه‌های اجتماعی --- */
.top-left-social {
  position: fixed;
  /* حالت پیش‌فرض برای دسکتاپ */
  top: 30px;
  left: 30px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.top-left-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #3c4a8a;
  transition: all 0.3s ease;
}

.top-left-social a:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  border-color: #3c4a8a;
}

.top-left-social svg {
  width: 20px;
  height: 20px;
}

/* --- تنظیمات مخصوص موبایل (صفحه‌های کوچک‌تر از 768 پیکسل) --- */
@media (max-width: 768px) {
  .top-left-social {
    position: relative;
    /* خروج از حالت استیکی */
    top: auto;
    left: auto;
    margin: 40px auto 20px;
    /* ایجاد فاصله از محتوای بالا و پایین */
    justify-content: center;
    /* وسط‌چین کردن در ردیف افقی */
    width: 100%;
    padding-bottom: 20px;
  }

  .top-left-social a {
    width: 45px;
    /* کمی بزرگتر برای لمس راحت‌تر با انگشت */
    height: 45px;
    background: rgba(255, 255, 255, 0.5);
    /* وضوح بیشتر در موبایل */
  }
}

/* --- استایل دکمه زبان (بدون تغییر طبق خواسته شما) --- */
.lang-switcher-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 4px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  text-decoration: none;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: #555;
}

.lang-btn.active {
  background: #3c4a8a;
  color: white;
}

/* --- استایل شبکه‌های اجتماعی (دسکتاپ) --- */
.top-left-social {
  position: fixed;
  top: 30px;
  left: 30px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.top-left-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #3c4a8a;
  transition: all 0.3s ease;
}

.top-left-social a:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  border-color: #3c4a8a;
}

.top-left-social svg {
  width: 20px;
  height: 20px;
}

/* --- تنظیمات مخصوص موبایل --- */
@media (max-width: 768px) {

  /* بدنه رو مجبور می‌کنیم حداقل ارتفاع رو داشته باشه تا محتوا تهش جا بگیره */
  body.index-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
  }

  /* کانتینر ویدیو رو جوری تنظیم می‌کنیم که فضای اصلی رو بگیره */
  .video-container {
    flex: 1 0 auto;
    position: relative;
    min-height: 100vh;
    /* ویدیو کل صفحه اول رو بگیره */
  }

  .top-left-social {
    position: static;
    /* کاملاً از حالت شناور خارج میشه */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0 60px 0;
    /* فاصله از بالای ویدیو و پایین صفحه */
    background: #fdfdfd;
    /* یا هر رنگی که بک‌گراند سایتت هست */
    margin: 0;
    z-index: 10;
  }

  .top-left-social a {
    width: 46px;
    height: 46px;
    background: rgba(60, 74, 138, 0.1);
    /* کمی رنگی‌تر برای موبایل */
    border-color: rgba(60, 74, 138, 0.2);
  }
}

/* --- دکمه زبان (بدون تغییر) --- */
.lang-switcher-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 4px;
  z-index: 1000;
}

.lang-btn {
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
  color: #555;
}

.lang-btn.active {
  background: #3c4a8a;
  color: white;
}

/* =========================
   MOBILE: FOOTER SOCIAL ICONS
   (Add/Replace this at end of style.css)
========================= */

@media (max-width: 768px) {
  .top-left-social {
    /* غیرفعال کردن حالت چسبنده در موبایل */
    position: static !important;

    /* چیدمان در انتهای صفحه */
    display: flex;
    justify-content: center;
    align-items: center;

    /* فاصله از محتوای بالای صفحه */
    margin: 40px auto;
    padding-bottom: 20px;

    /* حذف ویژگی‌های فیکس */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    /* استایل ظاهری */
    background: transparent !important;
    backdrop-filter: none !important;
  }

  /* بزرگتر کردن آیکن‌ها برای لمس راحت‌تر در موبایل */
  .top-left-social a {
    width: 48px;
    height: 48px;
    margin: 0 10px;
  }
}

/* =========================================
   FORCE FOOTER POSITIONING (MOBILE ONLY)
   Paste this at the very end of style.css
========================================= */

@media (max-width: 768px) {

  /* 1. مجبور کردن بدنه به رفتار Flexbox برای اینکه فوتر را به پایین هل دهد */
  body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    margin: 0 !important;
  }

  /* 2. آیکن‌های اجتماعی */
  .top-left-social {
    position: static !important;
    /* خروج از حالت شناور */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    /* این خط جادویی است: margin-top: auto، المان را به پایین‌ترین نقطه هل می‌دهد */
    margin-top: auto !important;

    /* تنظیمات ظاهری */
    padding: 40px 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    width: 100% !important;
  }

  /* 3. تنظیم اندازه آیکن‌ها برای موبایل */
  .top-left-social a {
    width: 48px !important;
    height: 48px !important;
    margin: 0 10px !important;
  }
}

@media (max-width: 768px) {
  .top-left-social {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;
    margin-top: 40px !important;
    margin-bottom: 30px !important;
    padding: 0 !important;

    background: transparent !important;
    backdrop-filter: none !important;
    z-index: auto !important;
  }

  .top-left-social a {
    width: 44px !important;
    height: 44px !important;
  }

  body.index-page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
  }
}

/* hide animation for language switcher */
.lang-switcher-container.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* اختصاصی برای جابه‌جایی ویدیوهای منوی اصلی بدون تغییر جای عکس */
.menu-left-media .menu-hover-video {
  position: absolute !important;
  /* جدا کردن از جریان والد */
  top: -38px !important;
  /* هر چقدر دوست داری ببرش بالا (منفی یعنی رو به بالا) */
  right: -42px !important;
  /* جابه‌جایی به چپ و راست */
  width: 80px !important;
  /* اگه می‌خوای سایزش هم بزرگتر از اون باکس ۵۰ پیکسلی بشه */
  height: auto !important;
  transform: none !important;
  /* حذف اسکیل ۰.۸ قبلی برای کنترل دقیق‌تر */
  max-width: none !important;
  /* اجازه عبور از مرز والد */
  scale: 0.45;
}

/* اختصاصی برای جابه‌جایی ویدیوهای ساب‌منو */

/* برای اینکه ویدیو از مرز کانتینر بیرون بزنه و غیب نشه */
.menu-left-media,
.submenu-right-media {
  overflow: visible !important;
}

/* ۱. وقتی نشانگر روی کل نوار کناری (sidebar) است، آیکون تب فعال را مخفی کن */
.sidebar:has(a:hover) a.active .menu-left-media img,
.sidebar:has(a:hover) a.active .menu-left-media video {
  opacity: 0 !important;
}

/* ۲. اگر مرورگر از :has پشتیبانی نمی‌کرد (راه حل جایگزین با استفاده از کلاس هوشمند) */
/* اسکریپت تو وقتی روی منو می‌روی باید یک کلاس به کانتینر کل بدهد، اما اگر نمی‌دهد از این استفاده کن: */
.sidebar a.is-hovering .menu-hover-video {
  opacity: 1 !important;
  z-index: -1;
}

/* ۳. اطمینان از اینکه وقتی هاور برداشته شد، تب فعال دوباره آیکونش برگردد */
.sidebar a.active:not(:hover) .menu-left-media img {
  transition: opacity 0.2s ease;
}

/* ۱. مخفی کردن عکس تب فعال فقط وقتی موس روی خودشه یا بقیه منوها */
.sidebar a.active.is-hovering .menu-left-img,
.sidebar:hover a.active .menu-left-img {
  opacity: 0 !important;
  transition: opacity 0.1s ease-in-out;
  /* سریع‌تر غیب شود */
}

/* ۲. نمایش ویدیو روی هر تبی (حتی فعال) وقتی موس روی آن است */
.sidebar a.is-hovering .menu-hover-video {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: -1 !important;
}

/* ۳. حذف تاخیر ترنزیشن برای ویدیو که حس سریع‌تری بدهد */
.menu-hover-video {
  transition: opacity 0.1s ease-in-out !important;
}

/* جلوگیری از مخفی شدن عکس تب فعال هنگام hover */
.sidebar a.active.is-hovering .menu-static-img {
  opacity: 1 !important;
}

/* اگر نمی‌خواهی ویدیو روی تب فعال نمایش داده شود */
.sidebar a.active.is-hovering .menu-hover-video {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* حالت عادی hover برای بقیه تب‌ها همچنان برقرار بماند */
.sidebar a.is-hovering .menu-static-img {
  opacity: 0;
}

.sidebar a.is-hovering .menu-hover-video {
  opacity: 1;
}

/* --- اصلاح رفتار هاور برای تب‌های فعال (Active Tabs) --- */

/* ۱. وقتی تب فعال است و موس روی آن می‌رود (hover): عکس مخفی نشود */
.sidebar a.active.is-hovering .menu-static-img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ۲. اگر نمی‌خواهی ویدیو روی تب فعال نمایش داده شود (چون عکس سر جایش است)، ویدیو را مخفی نگه دار */
.sidebar a.active.is-hovering .menu-hover-video {
  opacity: 0 !important;
  visibility: hidden !important;
}

.menu-item,
.menu-item:visited,
.menu-item:hover,
.menu-item:active {
  color: #323232;
  /* یا هر رنگی که برای بقیه آیتم‌ها داری */
  text-decoration: none;
}

.menu-item span {
  color: inherit;
}

@media (max-width: 768px) {
  body.about-page .projects-area {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* اصلاح فاصله از لبه‌ها برای تمام صفحات About */
@media (max-width: 768px) {

  .about-page .projects-area,
  .about-page .content-wrapper,
  /* اگر کلاس محتوای اصلی چیز دیگری است اینجا اضافه کن */
  .about-page .container {
    padding-inline: 20px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  body.contact-page .projects-area {
    padding: 20px 16px 40px !important;
    box-sizing: border-box;
  }

  .contact-wrapper,
  .contact-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .contact-info {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
    align-items: stretch !important;
    box-sizing: border-box;
    position: relative;
    right: 5%;
  }

  .contact-infoen {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
    align-items: stretch !important;
    box-sizing: border-box;
  }

  .contact-row,
  .contact-row-en {
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    box-sizing: border-box;
    direction: rtl;
  }

  .contact-row p,
  .contact-row-en p {
    margin: 0 !important;
    text-align: start !important;
    overflow-wrap: anywhere;
    direction: ltr;
  }

  .contact-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .contact-map img {
    width: 100% !important;
    height: auto !important;
  }

  .contact-icon-en2 img {
    width: 33px;
    height: 38px;
    object-fit: contain;
    padding-top: 5px;
    position: relative;
    right: 140%;
  }

  .contact-icon-en2 {
    order: -1;
    margin-left: 12px;
    margin-right: 0;
  }

  .contact-icon-en img {
    width: 33px;
    height: 38px;
    object-fit: contain;
    padding-top: 5px;
    position: relative;
    right: 140%;
  }

  .contact-icon-en {
    order: -1;
    margin-left: 12px;
    margin-right: 0;
  }

  .contact-icon-en3 img {
    width: 33px;
    height: 38px;
    object-fit: contain;
    padding-top: 5px;
    position: relative;
    right: 140%;
  }

  .contact-icon-en3 {
    order: -1;
    margin-left: 12px;
    margin-right: 0;
  }

  .contact-icon2 img {
    width: 33px;
    height: 38px;
    object-fit: contain;
    padding-top: 5px;
    position: relative;
    right: -65%;
  }

  .contact-icon2 {
    order: -1;
    margin-left: 12px;
    margin-right: 0;
  }

  .contact-icon img {
    width: 33px;
    height: 38px;
    object-fit: contain;
    padding-top: 5px;
    position: relative;
    right: -65%;
  }

  .contact-icon {
    order: -1;
    margin-left: 12px;
    margin-right: 0;
  }

  .contact-icon3 img {
    width: 33px;
    height: 38px;
    object-fit: contain;
    padding-top: 5px;
    position: relative;
    right: -65%;
  }

  .contact-icon3 {
    order: -1;
    margin-left: 12px;
    margin-right: 0;
  }

  .contact-social-en {
    margin: 20px 0 0 0 !important;
    justify-content: center !important;
    position: relative;
    left: 0%;
    top: 0%
  }

  .contact-social {
    margin: 20px 0 0 0 !important;
    justify-content: center !important;
    position: relative;
    right: 0% !important;
    top: 0%
  }
}

/* ─── اصلاح نهایی موبایل صفحه تماس: وسط‌چین کردن نقشه و هم‌راستا کردن آیکون‌ها دقیقاً زیر لبه نقشه ─── */
@media (max-width: 768px) {

  body.contact-page .contact-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* نقشه: عرض کامل و وسط‌چین با فاصله یکسان از دو طرف */
  body.contact-page .contact-map1 {
    width: 100% !important;
    margin: 0 auto 24px auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  body.contact-page .contact-map1 img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  body.contact-page .contact-map {
    width: 100% !important;
    margin: 0 auto 24px auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  body.contact-page .contact-map img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* بلوک اطلاعات تماس دقیقاً هم‌عرض نقشه تا لبه‌ها زیر هم قرار بگیرند */
  body.contact-page .contact-details {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
  }
}

/* ─── بلوک ترکیبی اطلاعات تماس: یک آیکون واحد در یک انتها + متن‌های چسبیده به انتهای دیگر ─── */
/* در نسخه فارسی (rtl) آیکون در انتهای راست قرار می‌گیرد و متن‌ها به چپ می‌چسبند، در نسخه انگلیسی برعکس */
.contact-details {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 0 auto 30px;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
}

.contact-details-icon {
  flex-shrink: 0;
  width: auto;
  height: 100px;
  object-fit: contain;
  align-self: center;
}

.contact-details-text,
.contact-details-text-en {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #6b6b9b;
  font-size: 18px;
}

.contact-details-text {
  text-align: left;
}

.contact-details-text-en {
  text-align: right;
}

.contact-details-text a,
.contact-details-text-en a {
  color: #6b6b9b;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-details-phones {
  margin: 0;
}

@media (max-width: 768px) {
  .contact-details {
    gap: 12px;
    max-width: 100%;
  }

  .contact-details-icon {
    height: 78px;
  }

  .contact-details-text,
  .contact-details-text-en {
    font-size: 15px;
  }
}

/* ایجاد فاصله بین منو و شبکه‌های اجتماعی در موبایل */


/* ─── استایل موبایل ─── */
@media (max-width: 768px) {

  /* ۱) وسط‌چین کردن تصویر «تماس با ما» */
  .mobile-projects {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 16px 0;
  }

  /* ۲) ستون کردن و راست‌چین کردن آیکون‌ها + توضیحات */
  .contact-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
  }

  .contact-icons .icon-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
  }

  .contact-icons .icon {
    width: 24px;
    height: auto;
  }

  .contact-icons .icon-text {
    text-align: right;
    color: #333;
    font-size: 16px;
  }


}

/* --- Desktop Contact Layout Adjustment --- */
/* --- Desktop Contact Layout Adjustment --- */
@media screen and (min-width: 1024px) {

  /* کانتینر اصلی که متن ها و شبکه های اجتماعی را در بر می گیرد */
  .contact-content-wrapper {
    display: flex;
    flex-direction: row-reverse;
    /* برای اینکه شبکه های اجتماعی سمت چپ متن ها قرار بگیرند */
    justify-content: flex-end;
    /* تنظیم فاصله و تراز */
    gap: 80px;
    /* فاصله بین بلوک متن و بلوک شبکه های اجتماعی */
    align-items: flex-start;
    margin-top: 30px;
    margin-right: 130px;
    /* فاصله از سایدبار */
  }

  /* بلوک اطلاعات متنی (آدرس، شماره، ایمیل) */
  .contact-text-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* بلوک آیکون های شبکه های اجتماعی */
}

.lightbox-image.is-zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

.lightbox-image {
  transform-origin: center center;
  will-change: transform;
}

/* --- Team Section New Styles --- */
.team-section {
  padding: 50px 0;
  direction: rtl;
}

.team-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.team-card {
  width: 22%;
  min-width: 200px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.team-photo-wrapper {
  margin-bottom: 15px;
}

.team-photo-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-meta h3 {
  font-size: 1.1rem;
  color: #002d5b;
  margin-bottom: 5px;
}

.team-section {
  width: 100%;
  direction: rtl;
  padding: 50px 0;
}

.team-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  /* برای هم‌تراز شدن باکس‌ها */
  gap: 10px;
  margin-bottom: 20px;
}

.member-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.member-photo4 {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
  margin-left: 40px;
}

.member-photo1 {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
}

.member-photo2 {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
}

.member-photo3 {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
}


.member-photo1 img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-photo2 img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-photo3 img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-photo4 img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-photo4-en {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
  margin-left: 100 10px;
}

.member-photo1-en {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
  margin-left: 20px;
}

.member-photo2-en {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
  margin-left: 20px;
}

.member-photo3-en {
  width: 100%;
  height: 100%;
  margin: 0 auto 15px;
}


.member-photo1-en img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-photo2-en img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-photo3-en img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-photo4-en img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.member-meta {
  flex-grow: 1;
  /* باعث می‌شود بخش متن تمام فضای خالی را بگیرد */
  margin-bottom: 15px;
}

.member-meta h3 {
  font-size: 15px;
  color: #1f3f8f;
  margin: 0;
}

.member-meta span {
  font-size: 12px;
  color: #777;
  display: block;
  margin-top: 5px;
}

/* تراز کردن فلش‌ها در یک خط */
.arrow-wrapper {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #1f3f8f;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.custom-arrow.active {
  transform: rotate(180deg);
}

/* پنل توضیحات تمام‌عرض */
.full-width-details {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  background: transparent;
  /* کادر و بک‌گراند ندارد */
}

.full-width-details.open {
  max-height: 500px;
  /* فضای کافی برای متن */
  padding-top: 20px;
}

#team-details-content {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

@media (max-width: 768px) {
  .team-grid {
    flex-wrap: wrap;
  }

  .member-box {
    min-width: 45%;
    margin-bottom: 20px;
  }
}


.team-meta span {
  font-size: 0.85rem;
  color: #666;
}

.team-toggle-btn {
  cursor: pointer;
  font-size: 1.2rem;
  color: #002d5b;
  margin-top: 10px;
  transition: transform 0.4s;
}

.team-card.active .team-toggle-btn {
  transform: rotate(180deg);
}

.team-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  background: #f9f9f9;
  border-radius: 8px;
  margin-top: 10px;
}

.team-card.active .team-details {
  max-height: 1000px;
  transition: max-height 1s ease-in-out;
  padding: 15px;
}

.details-content {
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.6;
}

.edu-section h4 {
  color: #002d5b;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .team-card {
    width: 45%;
  }
}

@media (max-width: 576px) {
  .team-card {
    width: 100%;
  }
}

/* کل ردیف تیم */
.team-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  /* اجبار به ماندن در یک خط */
  width: 100%;
}

.member-box {
  flex: 1;
  /* هر باکس سهم مساوی می‌گیرد */
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
  /* جلوگیری از سرریز شدن محتوا */
}

/* تراز کردن فلش‌ها در یک خط صاف */
.member-meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 80px;
  /* یک حداقل ارتفاع برای هم‌تراز شدن فلش‌ها */
}

.member-meta h3 {
  font-size: 15px;
  color: #1f3f8f;
  margin-bottom: 5px;
}

.member-meta span {
  font-size: 12px;
  color: #777;
}

/* استایل پنل توضیحات برای تمام‌عرض شدن */
.full-width-details {
  position: relative;
  width: 100vw;
  /* عرض کل پنجره مرورگر */
  margin-right: calc(-50vw + 50%);
  /* تکنیک برای وسط‌چین کردن المان عریض در والد محدود */
  margin-left: calc(-50vw + 50%);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.3s;
  background-color: #f9f9f9;
  /* یک رنگ ملایم برای تمایز بخش توضیحات */
}

.full-width-details.open {
  max-height: 500px;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* محتوای داخل پنل که دوباره محدود به عرض سایت شود تا متن پخش نشود */
#team-details-content {
  max-width: 1100px;
  /* یا هر عرضی که کانتینر اصلی سایتت دارد */
  margin: 0 auto;
  padding: 0 20px;
  font-size: 15px;
  line-height: 2;
  color: #333;
  text-align: center;
}

/* فلش‌ها */
.arrow-wrapper {
  margin-top: auto;
  /* چسباندن به پایین‌ترین نقطه ممکن در باکس */
  padding-top: 10px;
}

.custom-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #1f3f8f;
  cursor: pointer;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.custom-arrow.active {
  transform: rotate(180deg);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .team-grid {
    flex-wrap: wrap;
    /* در موبایل ۲ تا ۲ تا بشوند */
  }

  .member-box {
    flex: 1 1 45%;
    margin-bottom: 30px;
  }

  .full-width-details {
    width: 100%;
    margin: 0;
  }
}

.team-container {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

body.about-page .about-content {
  max-width: none !important;
  width: 100% !important;
}

body.about-page .about-content-en {
  max-width: none !important;
  width: 100% !important;
}

body.about-page .team-container {
  width: calc(100% + 160px) !important;
  margin-left: -80px !important;
  margin-right: -80px !important;
}

body.about-page .team-grid-wrapper {
  width: 100% !important;
}

/* ۱. شکستن محدودیت عرض والد فقط و فقط برای بخش تیم */
body.about-page .team-container {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 40px 0 !important;
  box-sizing: border-box !important;
}

/* ۲. تنظیم حداکثر عرض محتوای داخل بخش تیم (مثلاً تا ۱۲۰۰ پیکسل باز شود) */
body.about-page .team-grid-wrapper {
  max-width: 1200px !important;
  /* عریض‌تر از ۹۰۰ پیکسل قبلی */
  margin: 30px auto 0 !important;
  padding: 0 40px !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  /* برای هم‌راستا شدن فلش‌ها */
  flex-wrap: nowrap !important;
  /* تضمین ۴ تا در یک ردیف */
}

/* ۳. وادار کردن فلش‌ها به قرارگیری در یک خط افقی تراز */
body.about-page .member-card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.about-page .member-info {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 40px !important;
  /* ارتفاع ثابت برای تراز شدن فلش زیر این بخش */
}

body.about-page .toggle-arrow {
  margin-top: auto !important;
  /* چسباندن فلش به پایین‌ترین نقطه کارت برای تراز شدن */
}

/* ۴. پنل توضیحات تمام‌عرض */
body.about-page .details-panel {
  width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background-color: #fcfcfc !important;
  /* پس‌زمینه ملایم برای تفکیک */
}

body.about-page .details-panel-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px 20px !important;
  box-sizing: border-box !important;
}

/* ۵. سازگاری با موبایل (در صفحه کوچک زیر هم قرار بگیرند) */
@media (max-width: 768px) {
  body.about-page .team-grid-wrapper {
    flex-wrap: wrap !important;
  }

  body.about-page .member-card {
    flex: 1 1 45% !important;
    margin-bottom: 25px !important;
  }

  body.about-page .team-container {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  .about-intro,
  .about-values {
    max-width: 100%;
    position: relative;
    right: 9%;
  }

  .about-icon {
    position: relative;
    left: 4%;
  }

  .about-title {
    position: relative;
    left: 5%;
  }

  .about-intro,
  .about-values-en {
    max-width: 100%;
    position: relative;
    right: 0%;
  }

}

.team-section .custom-arrow {
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  height: 10px;
}

.team-section .member-box {
  position: relative !important;
}

.team-section .member-photo,
.team-section .member-photo img {
  pointer-events: none !important;
}

/* ===== Team section spacing fix ===== */
.team-section .member-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
}

.team-section .member-meta {
  min-height: 0 !important;
  /* حذف فضای خالی اضافی */
  margin-bottom: 0 !important;
  /* حذف فاصله اضافه زیر متن */
  flex-grow: 0 !important;
}

.team-section .arrow-wrapper {
  margin-top: 0 !important;
  /* چسباندن فلش به بخش بالایی */
  padding-top: 0 !important;
  /* حذف padding اضافی */
  height: 24px !important;
  /* کاهش ارتفاع کانتینر فلش */
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-section .custom-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #1f3f8f;
  /* همان primary blue */
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* استایل متن پنل بازشونده اعضای تیم */
#team-details-content {
  color: #1f1f1f;
  /* رنگ متن */
  font-size: 16px;
  /* سایز کلی متن */
  line-height: 1.9;
  /* فاصله بین خطوط */
  font-weight: 400;
}

/* عنوان داخل پنل */
#team-details-content h3 {
  color: #1f3f8f;
  /* آبی اصلی */
  font-size: 24px;
  /* سایز عنوان */
  font-weight: 700;
  margin-bottom: 12px;
}

/* پاراگراف‌های داخل پنل */
#team-details-content p {
  color: var(--primary-blue);
  font-size: 20px;
  line-height: 1.9;
  margin-bottom: 10px;
}

/* اگر span یا متن‌های ریز هم داخلش داری */
#team-details-content span,
#team-details-content li {
  color: #444;
  font-size: 15px;
  line-height: 1.8;
}

/* استایل کلی محفظه توضیحات */
#team-details-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* فاصله بین ردیف‌های تحصیلی */
  text-align: right;
  direction: rtl;
  padding: 20px;
}

/* هر ردیف تحصیلی */
.edu-item {
  display: flex;
  flex-direction: column;
  /* رشته بالا، دانشگاه پایین */
  margin-bottom: 12px;
}

/* استایل رشته/مقطع (فونت تیره و ضخیم) */
.edu-degree {
  font-family: 'IRANSans', sans-serif;
  /* یا هر فونتی که استفاده می‌کنی */
  font-weight: 700;
  font-size: 15px;
  color: #1f3f8f;
  /* همان آبی اصلی */
  margin-bottom: 2px;
}

/* استایل دانشگاه و سال (فونت نازک و خاکستری) */
.edu-university {
  font-family: 'IRANSans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: #666666;
  /* رنگ خاکستری مشابه عکس */
}

/* استایل‌های اختصاصی بخش تحصیلات */
.edu-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
  text-align: right;
  direction: rtl;
}

.edu-item {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.edu-degree {
  font-weight: bold;
  color: #1f3f8f;
  /* سرمه‌ای اصلی */
  font-size: 15px;
  margin-bottom: 2px;
}

.edu-university {
  font-weight: 300;
  color: #666;
  /* خاکستری */
  font-size: 13px;
}

/* افکت باز شدن نرم پنل */
#team-details-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

#team-details-panel.open {
  max-height: 1000px;
  /* یک عدد بزرگ برای جا شدن تمام متن‌ها */
}

/* کانتینر کل بخش توضیحات */
.edu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* وسط‌چین کردن تیتر */
  text-align: right;
  direction: rtl;
  width: 100%;
}

/* تیتر "تحصیلات" */
.edu-title {
  color: #1f3f8f;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
  text-align: center;
  width: 100%;
}

/* برای اینکه متن‌های زیر تیتر دوباره راست‌چین شوند */
.edu-wrapper .edu-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* راست‌چین کردن محتوا نسبت به کانتینر RTL */
  margin-bottom: 15px;
}

.edu-degree {
  font-weight: bold;
  color: #1f3f8f;
  font-size: 44px;
  margin-bottom: 3px;
}

.edu-university {
  font-weight: 300;
  color: #a10a0a;
  font-size: 33px;
}

/* Fix team education typography */
#team-details-content .edu-title {
  font-size: 24px;
  font-weight: 800;
  color: #1f3f8f;
  text-align: center;
  margin-bottom: 18px;
}

#team-details-content .edu-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: right;
  direction: rtl;
  width: 100%;
}

#team-details-content .edu-item {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  margin-bottom: 12px;
  width: 100%;
}

#team-details-content .edu-degree {
  font-size: 20px !important;
  font-weight: 700;
  color: #1f3f8f;
  margin-bottom: 2px;
  font-family: "AnjomanMax", Tahoma, sans-serif;
}

#team-details-content .edu-university {
  font-size: 18px !important;
  font-weight: 500;
  color: #666;
  font-family: "AnjomanMax", Tahoma, sans-serif;
}

/* ================================
   Expand ourteam image width
   ================================ */

.projects-area {
  overflow-x: visible;
}

.full-screen-image-wrapper {
  width: 100vw !important;
  max-width: none !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
}

.full-screen-image-wrapper img {
  width: 80% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  justify-self: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox-image.is-zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

@media (min-width: 1000px) {

  /* اندازه ریسپانسیو عنوان تحصیلات */
  #team-details-content .edu-title {
    font-size: clamp(12px, 2vw, 30px);
  }

  /* خود آیتم تحصیلات */
  #team-details-content .edu-item {
    width: 100%;
    font-size: clamp(14px, 1.2vw, 20px);
    line-height: 1.6;
  }

  /* مدرک تحصیلی */
  #team-details-content .edu-item .edu-degree {
    font-size: clamp(16px, 1.4vw, 22px) !important;
  }

  /* نام دانشگاه */
  #team-details-content .edu-item .edu-university {
    font-size: clamp(13px, 1vw, 18px) !important;
  }

  #team-details-content .edu-degree {
    font-size: clamp(12px, 1.4vw, 18px) !important;
  }

  #team-details-content .edu-university {
    font-size: clamp(10px, 1vw, 15px) !important;
  }
}

/* =========================================
   About Page — Image Zoom Inspector
   بخش بازرسی تصویر با بزرگ‌نمایی (انتهای صفحه درباره ما)
   ========================================= */
.image-zoom-section {
  margin-top: 90px;
  padding-top: 50px;
  border-top: 1px solid #dcdcec;
}

.zoom-viewer-header {
  text-align: right;
  margin-bottom: 25px;
}

.zoom-viewer-title {
  color: #2d2d6f;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 12px;
}

.zoom-viewer-desc {
  color: var(--primary-blue);
  line-height: 2.1;
  font-size: 15px;
  margin: 0;
  max-width: 700px;
  margin-right: 0;
  margin-left: auto;
}

.zoom-viewer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.zoom-viewer-main {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  background: #fff;
  border: 1px solid #dcdcec;
  border-radius: 14px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(41, 53, 139, 0.08);
}

/* قاب اصلی تصویر: قابل اسکرول برای پیمایش در حالت بزرگ‌نمایی */
.zoom-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 460px;
  overflow: auto;
  direction: ltr;
  /* اسکرول‌بار عمودی را به سمت راست قاب سُر می‌دهد */
  background: #f2f2f8;
  border-radius: 10px;
  border: 1px solid #e3e3ef;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) #e3e3ef;
}

.zoom-viewport.is-panning {
  cursor: grabbing;
  scroll-behavior: auto;
}

.zoom-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.zoom-viewport::-webkit-scrollbar-track {
  background: #e3e3ef;
  border-radius: 10px;
}

.zoom-viewport::-webkit-scrollbar-thumb {
  background-color: var(--primary-blue);
  border-radius: 10px;
  border: 2px solid #e3e3ef;
}

.zoom-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* لغزندهٔ عمودی بزرگ‌نمایی */
.zoom-slider-wrap {
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background: #f2f2f8;
  border: 1px solid #e3e3ef;
  border-radius: 10px;
}

.zoom-slider-icon {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* قاب دورِ لغزنده: مسیر تزئینیِ همیشه‌وسط‌چین شده مستقل از رفتار مرورگرها */
.zoom-slider-track {
  position: relative;
  flex: 1;
  width: 22px;
  margin: 14px 0;
  min-height: 160px;
}

.zoom-slider-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--primary-blue), #c9cdf0);
  border-radius: 6px;
  pointer-events: none;
}

.zoom-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

/* ریل واقعی input نامرئی است؛ مسیر تزئینی بالا نمایش داده می‌شود */
.zoom-slider::-webkit-slider-runnable-track {
  width: 22px;
  background: transparent;
}

.zoom-slider::-moz-range-track {
  width: 22px;
  background: transparent;
}

.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.zoom-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* نمای کلی / مینی‌مپ */
.zoom-minimap-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.zoom-minimap-label {
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}

.zoom-minimap {
  position: relative;
  width: 100%;
  aspect-ratio: 7780 / 4511;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e3e3ef;
  background: #f2f2f8;
  cursor: pointer;
}

.zoom-minimap-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-minimap-rect {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 30%;
  border: 2px solid var(--primary-red);
  background: rgba(192, 57, 43, 0.12);
  box-sizing: border-box;
  pointer-events: none;
}

@media (max-width: 992px) {
  .zoom-viewport {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .image-zoom-section {
    margin-top: 60px;
    padding-top: 35px;
  }

  .zoom-viewer-desc {
    margin-left: 0;
  }

  .zoom-viewer-main {
    padding: 10px;
    gap: 10px;
  }

  .zoom-viewport {
    height: 300px;
  }

  .zoom-slider-wrap {
    flex: 0 0 44px;
    padding: 8px 0;
  }

  .zoom-slider {
    min-height: 0;
  }

  .zoom-minimap-wrap {
    max-width: 100%;
    align-items: stretch;
  }
}