/* ================== ROOT & GLOBAL THEME ================== */

:root {
  --mh-main-color: #1a2e8a;   /* رنگ اصلی برند */
  --mh-main-dark: #141f5f;    /* نسخه تیره‌تر برای هاور */
  --mh-topbar-dark: #414141;
  --mh-header-light: #f4f2ed;
  --mh-header-bg: #ffffff;
  --mh-cta-bg: #1a2e8a;       /* CTA هم با رنگ اصلی */
  --mh-cta-text: #ffffff;
  --mh-accent: #f46f5c;       /* رنگ گرم مکمل */
  --mh-body-bg: #f7f8fb;
  --mh-body-text: #333333;
}

/* بدنه عمومی */

body.with-topbar {
  padding-top: 0;
  background: var(--mh-body-bg);
  color: var(--mh-body-text);
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* لینک‌های عمومی */

a {
  color: var(--mh-main-color);
  text-decoration: none;
}

a:hover {
  color: var(--mh-accent);
  text-decoration: underline;
}

/* هدینگ‌ها کمی هماهنگ‌تر */

h1, h2, h3, h4, h5, h6 {
  color: #222222;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ================== BOOTSTRAP OVERRIDES (Primary یکدست) ================== */

/* Primary Buttons */

.btn-primary {
  background-color: var(--mh-main-color);
  border-color: var(--mh-main-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--mh-main-dark);
  border-color: var(--mh-main-dark);
}

/* Outline Primary */

.btn-outline-primary {
  color: var(--mh-main-color);
  border-color: var(--mh-main-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #ffffff;
  background-color: var(--mh-main-color);
  border-color: var(--mh-main-color);
}

/* text-primary و bg-primary کل سایت */

.text-primary {
  color: var(--mh-main-color) !important;
}

.bg-primary {
  background-color: var(--mh-main-color) !important;
}

/* Focus حالت input ها */

.form-control:focus,
.form-select:focus {
  border-color: var(--mh-main-color);
  box-shadow: 0 0 0 0.15rem rgba(26, 46, 138, 0.25);
}

/* Pagination */

.page-link {
  color: var(--mh-main-color);
}

.page-link:hover {
  color: var(--mh-main-dark);
}

.page-item.active .page-link {
  background-color: var(--mh-main-color);
  border-color: var(--mh-main-color);
}


/* ================== TOP BAR ================== */

.mh-top-header {
  position: relative;
  z-index: 20;
  background: var(--mh-header-light); /* سمت راست روشن */
  color: #ffffff;
  font-size: 13px;
  overflow: hidden; /* برای برش مورب */
}

/* ارتفاع بیشتر برای تاپ‌بار */
.mh-top-bar {
  padding: 10px 0;
  min-height: 46px;
}

/* قسمت تیره با برش مورب سمت چپ */
.mh-top-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 70%;
  background: var(--mh-main-color);

  transform-origin: 100% 0;
  transform: skewX(-12deg);
}

.mh-top-bar .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}

/* سمت چپ: ایمیل / تلفن روی بخش تیره */
.mh-top-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mh-top-left .mh-top-item {
  color: #ffffff;
  opacity: 0.95;
}

.mh-top-left .mh-top-item i {
  color: var(--mh-accent);
  font-size: 13px;
}

/* سمت راست: سوشال‌ها روی زمینه روشن */

.mh-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mh-top-right .social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mh-top-right .social-links a {
  color: #777777;
  font-size: 15px;
  transition: all 0.15s ease;
}

.mh-top-right .social-links a:hover {
  color: var(--mh-main-color);
  transform: translateY(-1px);
}


/* ================== HEADER / NAV ================== */

.mh-main-header {
  background: var(--mh-header-bg);
  border-bottom: 1px solid #f1f1f1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  min-height: 80px;
}

.mh-main-header .container-fluid {
  padding: 0 60px;
}

.logo-container-en {
  flex: 0 0 auto;
}

.mh-logo-link {
  text-decoration: none;
}

.mh-logo-img {
  height: 60px;
  width: auto;
}

/* NAV BASE */

.mh-nav {
  flex: 1 1 auto;
}

.mh-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* لینک‌های منو */

.mh-nav-link {
  position: relative;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #666666;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mh-nav-link:hover {
  color: var(--mh-main-color);
}

/* لینک فعال + خط زیرش */

.mh-nav-link.active {
  color: var(--mh-main-color);
}

.mh-nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: var(--mh-main-color);
}

/* دراپ‌داون‌ها */

/* ============ DROPDOWN BEHAVIOR (Desktop + Mobile) ============ */

/* به طور پیش‌فرض همه‌ی زیرمنوها بسته باشند */
.navmenu .mh-dropdown-menu {
  display: none;
}

/* وقتی در موبایل کلاس dropdown-active از JS اضافه شد → باز شود */
.navmenu .mh-dropdown-menu.dropdown-active {
  display: block;
}

.mh-dropdown-menu {
  border-radius: 0;
  border: none;
  min-width: 190px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  list-style: none;
}

.mh-dropdown-menu li {
  color: var(--mh-main-color);
  transition: all 1s !important;
  padding: 3px 0;

}

.mh-dropdown-menu li:hover {
  letter-spacing: 1px;

}

/* در دسکتاپ: با hover روی li باز شود */
@media (min-width: 992px) {
  .mh-nav-item-dropdown {
    position: relative;
  }

  .mh-nav-item-dropdown > .mh-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    display: none;         /* بسته در حالت عادی */
    z-index: 999;
  }

  .mh-nav-item-dropdown:hover > .mh-dropdown-menu {
    display: block;        /* روی hover باز شود */
  }
}



/* دکمه لاگین گرد کوچک سمت راست */

.mh-nav-login {
  margin-left: 12px;
}

.mh-nav-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f3f3;
  text-decoration: none;
}

/* CTA: Become Member */

.mh-nav-cta {
  margin-left: auto;
  position: relative;
}

.mh-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--mh-cta-bg);
  color: var(--mh-cta-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
}


/* ================== آیکن همبرگر ================== */

.mobile-nav-toggle {
  font-size: 26px;
  cursor: pointer;
  line-height: 0;
  color: #333333;
}


/* ================== LANG SWITCHER ================== */

.langs {
  position: fixed;
  right: 30px;
  top: 8px;
  z-index: 99;
}

.langs .btn-primary-dark {
  background: var(--mh-main-color);
  border: none;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 12px;
}

.langs .btn-primary-dark:hover {
  background: var(--mh-main-dark);
}


/* ================== DESKTOP (>= 992px) ================== */

@media (min-width: 992px) {
  #navmenu {
    display: flex !important;
    align-items: center;
  }

  .mh-nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .mh-main-header .container-fluid {
    padding: 0 60px;
  }
}


/* ================== MOBILE NAV (< 992px) ================== */

@media (max-width: 991.98px) {
  .mh-main-header .container-fluid {
    padding: 0 16px;
  }

  .mh-logo-img {
    height: 40px;
  }

  #navmenu {
    display: block;
    position: relative;
    text-align: right;
  }

  #navmenu .mobile-nav-toggle {
    display: inline-block;
    padding: 12px 0;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    color: #333333;
    z-index: 10000;
  }

  body.mobile-nav-active #navmenu .mobile-nav-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    color: #ffffff;
  }

  #navmenu .mh-nav-list {
    display: none;
  }

  body.mobile-nav-active #navmenu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    text-align: initial;
  }

  body.mobile-nav-active #navmenu .mh-nav-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    margin: 80px 16px 16px;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  #navmenu .mh-nav-link {
    font-size: 15px;
    color: #333333;
  }

  #navmenu .mh-nav-link.active::after {
    bottom: -6px;
  }

  #navmenu .mh-dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 4px;
    padding: 0 0 0 10px;
  }

  #navmenu .mh-dropdown-link {
    padding: 6px 0;
  }

  .mh-nav-cta {
    padding-right: 0;
    margin-left: 0;
  }

  .mh-nav-cta .mh-cta-btn {
    padding: 10px 18px;
    font-size: 12px;
  }

  .mh-nav-cta .mh-cta-btn::after {
    display: none;
  }

  /* تاپ‌بار در موبایل یک‌دست تیره */
  .mh-top-header {
    background: var(--mh-topbar-dark);
  }

  .mh-top-header::before {
    display: none;
  }

  .mh-top-bar .container {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .mh-top-left,
  .mh-top-right {
    justify-content: center;
  }

  .mh-top-right .social-links a {
    color: #ffffff;
  }

  .langs {
    right: 10px;
    top: 5px;
  }
}

/* موبایل خیلی کوچک */

@media (max-width: 575.98px) {
  .mh-top-left .mh-top-item.d-none.d-md-inline {
    display: none !important;
  }
}


/* ================== FOOTER ================== */

.mh-footer {
  background: #222222;
  color: #f5f5f5;
  font-size: 14px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

/* نوار بالایی فوتر */

.mh-footer-top {
  padding: 40px 0 28px;
  border-top: 0;
  position: relative;
}

.mh-footer-top::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mh-main-color), var(--mh-accent));
}

/* متن و لوگو سمت چپ */

.mh-footer-about {
  max-width: 540px;
}

.mh-footer-logo span.mh-footer-brand {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.mh-footer-text {
  color: #cccccc;
  line-height: 1.7;
}

/* سوشال‌های فوتر */

.mh-footer-social {
  gap: 8px;
}

.mh-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f5f5;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mh-footer-social-link:hover {
  background: var(--mh-main-color);
  color: #ffffff;
  border-color: var(--mh-main-color);
}

/* Contact ستون راست */

.mh-footer-contact {
  color: #e0e0e0;
}

.mh-footer-title {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.mh-footer-contact-line {
  margin-bottom: 4px;
  color: #c2c2c2;
}

.mh-footer-contact-line i {
  color: var(--mh-main-color);
}

/* نوار پایینی فوتر */

.mh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  background: #1a1a1a;
}

.mh-footer-copy {
  color: #b8b8b8;
  font-size: 13px;
}

.mh-footer-copy strong {
  color: #ffffff;
}

.mh-footer-credits {
  color: #b8b8b8;
  font-size: 13px;
}

.mh-footer-dev-link {
  color: var(--mh-main-color);
  font-weight: 500;
  text-decoration: none;
}

.mh-footer-dev-link:hover {
  text-decoration: underline;
  color: var(--mh-accent);
}

/* Footer Responsive */

@media (max-width: 991.98px) {
  .mh-footer-top {
    padding: 32px 0 22px;
  }

  .mh-footer-about {
    text-align: center;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .mh-footer-logo {
    justify-content: center;
  }

  .mh-footer-social {
    justify-content: center;
  }

  .mh-footer-contact {
    text-align: center !important;
  }

  .mh-footer-bottom {
    text-align: center;
  }

  .mh-footer-bottom .container {
    gap: 6px;
  }
}


/* ================== Scroll-top ================== */

#scroll-top.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  background: var(--mh-main-color);
  border-radius: 999px;
  z-index: 20;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

#scroll-top.scroll-top i {
  font-size: 20px;
  color: #ffffff;
}

#scroll-top.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* ================== Vision / Mission / History ================== */

.vision-mission-section {
  background: #f8f8f8;
  padding: 60px 0;
}

/* کارت عمومی دو طرف */

/* لیست Mission / Vision / Values به جای سلایدر */
/* کارت عمومی */

.vm-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  height: 100%;
  overflow: hidden;
}

/* نوار رنگی بالای کارت */

.vm-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mh-main-color), var(--mh-accent));
}

/* پِل بالای کارت */

.vm-pill-label,
.vm-pill-label-alt {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--mh-main-color);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.vm-pill-label-alt {
  background: rgba(244, 111, 92, 0.08);
}

/* لیست Mission / Vision / Values */

.vm-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.vm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vm-item:hover {
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}

.vm-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(54, 80, 146, 0.08); /* نزدیک به mh-main-color */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vm-item-icon img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.vm-item-icon-vision {
  background: rgba(34, 212, 123, 0.10); /* accent */
}

.vm-item-icon-values {
  background: rgba(244, 111, 92, 0.10); /* گرم برای values */
}

.vm-item-title {
  font-size: 15px;
  font-weight: 700;
}

/* متن عمومی */

.vm-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

/* History کارت */

.vm-history {
  position: relative;
}



.vm-history-title {
  font-size: 20px;
}

/* سلایدر پایین */

.vm-slider-card {
  margin-top: 8px;
}

.vm-slider-image {
  border-radius: 16px;
  max-height: 340px;
  width: 100%;
  object-fit: cover;
}

/* کنترل‌های کاروسل */

#visionMissionCarousel .vm-control {
  width: 38px;
  height: 38px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  opacity: 1;
}

#visionMissionCarousel .carousel-control-prev {
  left: -10px;
}

#visionMissionCarousel .carousel-control-next {
  right: -10px;
}

#visionMissionCarousel .carousel-control-prev-icon,
#visionMissionCarousel .carousel-control-next-icon {
  filter: invert(1);
}

/* رنگ‌های هدینگ‌ها */

.vision-mission-section .text-primary {
  color: var(--mh-main-color) !important;
}

/* Responsive */

@media (max-width: 991.98px) {
  .vision-mission-section {
    padding: 40px 0 44px;
  }

  .vm-card {
    border-radius: 14px;
    padding: 18px 16px 18px;
  }

  .vm-history::before {
    inset-block: 18px 18px;
  }

  .vm-slider-image {
    max-height: 260px;
  }
}

@media (max-width: 575.98px) {
  .vm-item {
    padding: 8px 8px;
  }

  .vm-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .vm-text {
    font-size: 13px;
  }

  .vm-slider-image {
    max-height: 220px;
  }

  #visionMissionCarousel .vm-control {
    width: 34px;
    height: 34px;
  }

  #visionMissionCarousel .carousel-control-prev {
    left: 0;
  }

  #visionMissionCarousel .carousel-control-next {
    right: 0;
  }
}



/* ====== Mission / Vision / Values cards in one row ====== */

.vm-card-mvv {
  display: flex;
  flex-direction: column;
}

.vm-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vm-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vm-card-icon img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.vm-card-icon-mission {
  background: rgba(54, 80, 146, 0.12); /* main color light */
}

.vm-card-icon-vision {
  background: rgba(34, 212, 123, 0.12); /* accent light */
}

.vm-card-icon-values {
  background: rgba(244, 111, 92, 0.12); /* warm for values */
}

.vm-card-title {
  font-size: 16px;
  font-weight: 700;
}

/* ریسپانسیو برای سه کارت */

@media (max-width: 991.98px) {
  .vm-card-title {
    font-size: 15px;
  }
}

@media (max-width: 575.98px) {
  .vm-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .vm-card-title {
    font-size: 14px;
  }

  .row.g-4.mb-3 > [class*="col-"] {
    /* فاصله عمودی بیشتر روی موبایل */
    margin-bottom: 4px;
  }
}


/* =============== HOME FEATURE SECTION =============== */

.home-feature-section {
  background: #f5f6fb;
  padding-block: 60px;
}

/* رَپِر اصلی هر بلاک: فلکس برای برابر شدن ارتفاع‌ها */
.home-feature-wrapper {
  display: flex;
  gap: 28px;
  align-items: stretch;        /* مهم: هر دو کارت دقیقاً هم‌ارتفاع می‌شوند */
}

/* برای تنوع: یکی متن چپ/عکس راست، یکی برعکس */
.home-feature-left {
  flex-direction: row;
}
.home-feature-right {
  flex-direction: row-reverse;
}

/* کارت عمومی (هم متن، هم عکس) */
.home-feature-card {
  flex: 1 1 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(7, 16, 56, 0.12);
  overflow: hidden;
  position: relative;
}

/* کارت متن */
.home-feature-text {
  padding: 26px 32px 24px;
  display: flex;
  flex-direction: column;
}

/* خط گرادیانی بالای کارت متن */
.home-feature-text::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mh-main-color), var(--mh-accent));
}

/* پِل شماره */
.hf-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 46, 138, 0.06);
  color: #1a2e8a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hf-pill span {
  font-family: "Montserrat", sans-serif;
}

/* عنوان و متن */
.hf-title {
  font-size: 22px;
  font-weight: 700;
  color: #10163a;
}

.hf-text {
  font-size: 14px;
  line-height: 1.9;
  color: #4a4f65;
}

/* لینک Read more */
.hf-link {
  margin-top: auto;            /* لینک همیشه می‌رود پایین کارت، دیزاین تمیزتر */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hf-link::after {
  content: "›";
  font-size: 15px;
}

.hf-link:hover {
  text-decoration: underline;
}

/* کارت تصویر: هم‌ارتفاع با کارت متن، ولی خود عکس مکس‌ویت 300px */
.home-feature-image {
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center ;
  background: #ffffff;
}

.hf-image {
  width: 100%;
  height: 100%;
  max-height: 300px; 
  object-fit: cover;
  display: block;
  border-radius: 0;   /* اگر گوشه‌های عکس را هم می‌خواهی گرد باشد، این را بردار */
}

/* ===== کمی تنوع رنگ بر اساس ایندکس (اختیاری) ===== */

.hf-color-1 .home-feature-text::before {
  background: linear-gradient(90deg, #1a2e8a, #f46f5c);
}

.hf-color-2 .home-feature-text::before {
  background: linear-gradient(90deg, #f46f5c, #ffb347);
}

.hf-color-3 .home-feature-text::before {
  background: linear-gradient(90deg, #1a2e8a, #27ae60);
}

/* می‌توانی برای ۴،۵... هم اضافه کنی */

/* =============== Responsive =============== */

@media (max-width: 991.98px) {
  .home-feature-section {
    padding-block: 40px;
  }

  .home-feature-wrapper {
    flex-direction: column;   /* زیر هم */
    align-items: flex-start;  /* 👈 دیگر کشیده نشوند */
  }

  /* در موبایل ارتفاع کارت‌ها آزاد باشد */
  .home-feature-card {
    flex: 0 0 auto;           /* 👈 دیگر مجبور به هم‌ارتفاع شدن نیستند */
    border-radius: 18px;
  }

  .home-feature-text {
    padding: 22px 20px 20px;
  }

  .hf-title {
    font-size: 20px;
  }

  /* تصویر در موبایل هم ارتفاع طبیعی داشته باشد */
  .home-feature-image {
    align-items: center;
  }

  .hf-image {
    height: auto;             /* 👈 مهم برای این‌که متن بریده نشود */
  }
}


@media (max-width: 575.98px) {
  .hf-text {
    font-size: 13px;
  }
}


/* ===== Page hero / title ===== */

.mh-page-hero {
  margin-top: 90px;
  padding: 40px 0 24px;
  background: linear-gradient(
      135deg,
      rgba(26, 46, 138, 0.06),
      rgba(244, 111, 92, 0.04)
  );
}

.mh-page-hero-inner {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 32px;
}

.mh-page-hero-text {
  flex: 1 1 auto;
}

.mh-page-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(26, 46, 138, 0.06);
  color: #1a2e8a;
  margin-bottom: 10px;
}

.mh-page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.mh-page-intro {
  font-size: 14px;
  line-height: 1.8;
  color: #555555;
}

/* تصویر سمت راست هدر */
.mh-page-hero-media {
  flex: 0 0 auto;
}

.mh-page-hero-image-wrap {
  max-width: 300px;
}

.mh-page-hero-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ===== Breadcrumbs زیر هدر ===== */

.mh-breadcrumbs .breadcrumb {
  font-size: 13px;
  margin-top: 10px;
}

.mh-breadcrumbs .breadcrumb a {
  color: var(--mh-accent);
  text-decoration: none;
}

.mh-breadcrumbs .breadcrumb a:hover {
  text-decoration: underline;
}

.mh-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
}

/* ===== Grid of contents ===== */

.mh-page-contents-section {
  padding: 32px 0 60px;
  background: #fafafa;
}

/* لینک کلی کارت */
.mh-content-card-link {
  text-decoration: none;
  color: inherit;
}

/* خود کارت */
.mh-content-card {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease;
}

.mh-content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(26, 46, 138, 0.3);
}

/* تصویر کارت – با نسبت ثابت */
.mh-content-card-img-wrap {
  position: relative;
}

.mh-content-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.mh-content-card-img--placeholder {
  width: 100%;
  height: 210px;
  background: #f3f3f3;
  color: #999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* بدنه کارت */
.mh-content-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* چیپ بالای عنوان */
.mh-content-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(26, 46, 138, 0.06);
  color: #1a2e8a;
}

/* عنوان کارت */
.mh-content-title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0;
  color: #222222;
}

/* خلاصه متن */
.mh-content-excerpt {
  font-size: 13px;
  color: #666666;
  margin-bottom: 4px;
}

/* لینک read more */
.mh-content-readmore {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mh-accent);
}

/* ===== Pagination ===== */

.mh-pagination-wrapper {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.mh-pagination {
  list-style: none;
  display: flex;
  gap: 6px;
  padding-left: 0;
}

.mh-pagination li a,
.mh-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e1e1e1;
  font-size: 13px;
  text-decoration: none;
  color: #555555;
  background: #ffffff;
}

.mh-pagination li a:hover {
  border-color: var(--mh-main-color);
  color: var(--mh-main-color);
}

.mh-pagination li.active span {
  background: var(--mh-main-color);
  color: #ffffff;
  border-color: var(--mh-main-color);
}

.mh-pagination li.disabled span {
  opacity: 0.45;
  cursor: default;
}

/* ===== Responsive ===== */

@media (max-width: 991.98px) {
  .mh-page-hero {
    margin-top: 80px;
    padding-top: 26px;
  }

  .mh-page-hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding: 22px 18px;
  }

  .mh-page-hero-image-wrap {
    max-width: 260px;
  }

  .mh-page-title {
    font-size: 24px;
  }
}

@media (max-width: 575.98px) {
  .mh-content-card-img,
  .mh-content-card-img--placeholder {
    height: 190px;
  }

  .mh-page-contents-section {
    padding-bottom: 40px;
  }
}



/* ====== Our Impact Section ====== */

.impact-section {
  background: #ffffff;
  padding: 60px 0;
}

/* Heading */

.impact-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mh-main-color);
  margin-bottom: 6px;
  font-weight: 600;
}

.impact-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.impact-subtitle {
  font-size: 14px;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto;
}

/* Row فاصله عمودی */

.impact-row {
  margin-top: 12px;
}

/* Single Card */

.impact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f9fafb, #f3f4ff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.impact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.impact-card > * {
  position: relative; /* برای اینکه محتوای زیر before دیده شود */
}

/* Icon */

.impact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-icon i {
  font-size: 20px;
  color: var(--mh-main-color);
}

/* Number & Label */

.impact-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--mh-main-color);
}

.impact-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

/* Responsive */

@media (max-width: 575.98px) {
  .impact-title {
    font-size: 20px;
  }
  .impact-card {
    padding: 12px 14px;
    border-radius: 16px;
  }
  .impact-number {
    font-size: 20px;
  }
}


/* ====== Partners Section ====== */

.partners-section {
  background: #f9fafb;
  padding: 60px 0;
}

.partners-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.partners-subtitle {
  font-size: 14px;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto;
}

/* Marquee */

.partners-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 24px;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: partners-scroll 30s linear infinite;
}

/* سرعت حرکت: زمان انیمیشن را تنظیم کن */
@keyframes partners-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* لوگوها */

.partner-logo {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.partner-logo img {
  display: block;
  max-height: 42px;
  width: auto;
  opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 575.98px) {
  .partners-title {
    font-size: 20px;
  }
  .partners-track {
    gap: 24px;
  }
  .partner-logo img {
    max-height: 34px;
  }
}


/* ====== Join Our Mission Section ====== */

.join-mission-section {
  padding: 70px 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.06), transparent 55%),
              #f9fafb;
}

.join-mission-card {
  position: relative;
  padding: 32px 28px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--mh-main-color), var(--mh-accent));
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

/* هاله‌های لطیف پس‌زمینه */
.join-mission-card::before,
.join-mission-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  opacity: 0.8;
}

.join-mission-card::before {
  width: 220px;
  height: 220px;
  top: -80px;
  inset-inline-start: -40px;
}

.join-mission-card::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  inset-inline-end: -60px;
}

.join-mission-card > * {
  position: relative; /* روی لایه جلو باشد */
}

.join-mission-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.9;
}

.join-mission-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.join-mission-subtitle {
  font-size: 14px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.95;
}

.join-mission-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */

.jm-btn-primary {
  background: #ffffff;
  color: var(--mh-main-color);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.jm-btn-primary:hover {
  color: var(--mh-main-color);
  background: #f9fafb;
}

.jm-btn-outline {
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: transparent;
}

.jm-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Responsive */

@media (max-width: 575.98px) {
  .join-mission-card {
    padding: 24px 18px 24px;
    border-radius: 20px;
  }

  .join-mission-title {
    font-size: 22px;
  }

  .join-mission-subtitle {
    font-size: 13px;
  }
}
