/* ============================================= */
/* فونت‌ها                                     */
/* ============================================= */
@font-face {
  font-family: "B Nazanin";
  src:
    local("B Nazanin Bold"),
    local("BNazanin-Bold"),
    url("/fonts/BNazanin/BNaznnBd.woff2") format("woff2"),
    url("/fonts/BNazanin/BNaznnBd.woff") format("woff"),
    url("/fonts/BNazanin/BNaznnBd.ttf") format("truetype");
  font-weight: 700;
  font-stretch: normal;
}
@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("/fonts/NotoNastaliqUrdu/NotoNastaliqUrdu[wght].ttf")
    format("truetype");
  font-weight: 700;
  font-stretch: normal;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/fonts/Vazirmatn/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================= */
/* انیمیشن‌های عمومی                           */
/* ============================================= */
@keyframes imgSpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes shimmerBg {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes shake {
  10% {
    transform: rotate(15deg);
  }
  20% {
    transform: rotate(-15deg);
  }
  30% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-15deg);
  }
}
@keyframes gradient {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 19em 32em;
  }
  100% {
    background-position: 0.1em 0.1em;
  }
}

/* ============================================= */
/* سیستم اسپینر لودینگ تصاویر (پایه)          */
/* ============================================= */
.img-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f0e6f6 25%, #e8d5f0 50%, #f0e6f6 75%);
  background-size: 200% 100%;
  animation: shimmerBg 1.5s ease-in-out infinite;
}
.img-wrapper::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border: 4px solid rgba(152, 95, 173, 0.2);
  border-top-color: #985fad;
  border-right-color: #c77ddb;
  border-radius: 50%;
  animation: imgSpinner 0.7s linear infinite;
  z-index: 2;
  transition: opacity 0.4s ease;
}
.img-wrapper img {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.img-wrapper.loaded {
  background: transparent;
  animation: none;
}
.img-wrapper.loaded::before {
  opacity: 0;
  pointer-events: none;
}
.img-wrapper.loaded img {
  opacity: 1;
}

/* --- تنظیمات اسپینر: دایره‌ای (هدر) --- */
.img-wrapper-circle {
  border-radius: 50%;
}
.img-wrapper-circle::before {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

/* --- تنظیمات اسپینر: آواتار دانش‌آموز (هدر) --- */
.img-wrapper-student {
  width: 15vh;
  height: 15vh;
}
.img-wrapper-student img {
  border: black solid 2px;
  border-radius: 100%;
  object-fit: cover;
}

/* --- تنظیمات اسپینر: لوگوی هدر --- */
.header .logo .img-wrapper {
  background: transparent;
  animation: none;
  border-radius: 0;
}
.header .logo .img-wrapper::before {
  display: none;
}
.header .logo .img-wrapper img {
  width: 5rem;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

/* --- تنظیمات اسپینر: لوگوی فوتر --- */
.footer-part .info .introduce .logo .img-wrapper {
  width: 7vh;
  height: 7vh;
  background: transparent;
  animation: none;
}
.footer-part .info .introduce .logo .img-wrapper::before {
  display: none;
}
.footer-part .info .introduce .logo .img-wrapper img {
  width: 7rem;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

/* ============================================= */
/* استایل‌های عمومی و لایه‌بندی                */
/* ============================================= */
body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-display: swap;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background-color: #fbcaff;
  background-image:
    radial-gradient(
      ellipse at 10% 20%,
      rgba(152, 95, 173, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 90% 80%,
      rgba(94, 0, 128, 0.06) 0%,
      transparent 50%
    );
}

.header-buttons {
  margin-right: 10px;
  font-family: "B Nazanin";
}
.fa {
  font-size: 30px;
}
.help-text {
  font-family: "B Nazanin";
  color: #4d055b;
}

/* --- کانتینرهای بخش‌ها --- */
.main-part,
.best-ranks-part,
.conference-part,
.org-chart-main,
.gallery-part,
.pre-reg-part,
.pre-reg-form-part,
.pre-register-track-part,
.pre-register-error {
  background: #fff;
  border-top: #77187e solid 2px;
  border-right: 3px #77187e solid;
  border-left: 3px #77187e solid;
  width: 97vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pre-register-part,
.best-grades-part,
.footer-part,
.connect-us-part,
.acceptance-part {
  background: #fff;
  border-top: #77187e solid 2px;
  border-right: 3px #77187e solid;
  border-left: 3px #77187e solid;
  width: 97vw;
}
.main-part,
.pre-reg-part,
.pre-reg-form-part,
.pre-register-track-part,
.org-chart-main {
  border-top: none;
}

/* --- دکمه‌های عمومی --- */
.btn-info,
.btn-primary {
  background-color: #feefff;
  border: #feefff solid 1px;
}
.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  background-color: #ffffff;
  border: #2290f6 solid 2px;
}
.dark-btn {
  display: none;
  background-color: #343a40;
  border: #271344 solid 0px;
  color: #b3b3b3;
}
.dark-btn:hover {
  background-color: #ffffff;
  border: #ffffff solid 0px;
  color: black;
}
.light-btn {
  display: none;
  background-color: #008f7b;
  border: #fff solid 0px;
  color: #ffeb00;
}
.light-btn:hover {
  background-color: #343a40;
  border: #271344 solid 0px;
  color: white;
}

/* ============================================= */
/* هدر و نوبار                                */
/* ============================================= */
.header {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  width: 97vw;
  min-height: auto;
  padding: 0.8vh 0;
  margin-top: 1vh;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: #77187e solid 3px;
  box-shadow: 0 4px 30px rgba(94, 0, 128, 0.08);
  transition: box-shadow 0.3s ease;
}
.header:hover {
  box-shadow: 0 8px 40px rgba(94, 0, 128, 0.12);
}
.header .logo {
  display: flex;
  justify-content: flex-start;
  flex-direction: row-reverse;
  align-content: center;
  flex-wrap: nowrap;
  align-items: center;
  width: 20vw;
}
.header .logo .texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #7c0680;
  direction: rtl;
  margin-right: 0.8vh;
}
.header .logo .texts span {
  font-family: "Vazirmatn";
  font-size: 1.2vh;
  font-weight: 700;
  width: 100%;
}
.header .logo img {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header .logo img:hover {
  transform: scale(1.08);
}
.header .buttons {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin: 0.5vh;
}
.header .buttons a {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.5vh;
  font-weight: 500;
  color: #2a0845;
  margin: 0.4vh 0.6vh;
  text-decoration: none;
  padding: 0.4vh 0.8vh;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.header .buttons a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #985fad, #c77ddb);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}
.header .buttons a:hover::after {
  width: 80%;
}
.header .buttons a:hover {
  color: #5e0080;
  background: rgba(152, 95, 173, 0.06);
}
.header .buttons a:hover path {
  fill: #5e0080;
  transition: all 0.3s ease;
}
.header .buttons a svg {
  margin-left: 0.2vh;
}
.header .buttons a svg path {
  fill: #581b63;
  transition: fill 0.3s ease;
}
.header .login {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-end;
  align-items: center;
  width: 20vw;
}
.header .login .student-login {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.5vh;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #662072 0%, #8a2a96 100%);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  min-width: 7vh;
  padding: 0.4vh 0.8vh;
  margin-left: 1vh;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 32, 114, 0.3);
}
.header .login .student-login:hover {
  background: linear-gradient(135deg, #4a0052 0%, #662072 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 32, 114, 0.4);
}
.header .login .student-login svg {
  margin-left: 0.5vh;
}
.header .login .student-login-texts {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin-left: 0.8vh;
  margin-bottom: 0.3vh;
}
.header .login .student-login-image {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
  width: 4vh;
  height: 4vh;
  margin-left: 0.8vh;
}
.header .login .student-login-img {
  object-fit: cover;
  object-position: center;
  border: #220439 solid 1px;
  border-radius: 50%;
  height: 100%;
  width: 100%;
}
.header .login .student-login-name {
  font-family: "Noto Nastaliq Urdu", serif;
  font-weight: 600;
  font-size: 1vh;
  padding-bottom: 0.2vh;
}
.header .login .student-login-enter {
  font-family: "Vazirmatn";
  font-weight: 200;
  font-size: 0.9vh;
}

/* ============================================= */
/* اعلان‌ها                                    */
/* ============================================= */
.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
  background-color: #ffffff;
  border: #77187e solid 2px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.annoucement-base {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 97vw;
  min-height: 5vh;
}
.announcement-text {
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.5vh;
  font-weight: 500;
  padding: 5px;
  width: 85%;
  color: #000;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
}
.announcement-text:hover {
  color: #2a0845;
  transition: 0.3s;
}
.announcement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4vh;
  width: 4vh;
  background: #ff9595;
  border: 1px solid #730000;
  border-radius: 100%;
  position: absolute;
  left: 1.5vh;
}
.announcement-pointer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4vh;
  width: 4vh;
  background: #95fff6;
  border: 1px solid #004d47;
  border-radius: 100%;
  position: absolute;
  right: 1.5vh;
}
.announcement-textarea {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 89vw;
}
.announcement-svg path {
  fill: #730000;
}
.announcement-psvg path {
  fill: #004d47;
}

/* ============================================= */
/* فوتر                                        */
/* ============================================= */
.footer-part,
.login-main-part {
  border-bottom: 3px #985fad solid;
  margin-bottom: 1vh;
}
.footer-part {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  font-family: "Vazirmatn", sans-serif;
  overflow: hidden;
}
.footer-top-bar {
  width: 97vw;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  padding: 1.5vh 0;
  background: linear-gradient(135deg, #5e0080 0%, #77187e 50%, #5e0080 100%);
  gap: 3vh;
}
.footer-top-bar a {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-family: "Vazirmatn", sans-serif;
  font-weight: 500;
  font-size: 1.3vh;
  color: #fff;
  text-decoration: none;
  padding: 0.5vh 1vh;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.footer-top-bar a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fbcaff;
}
.footer-top-bar a svg {
  margin-left: 0.4vh;
}
.footer-top-bar a svg path {
  fill: #fff;
  transition: fill 0.3s ease;
}
.footer-top-bar a:hover svg path {
  fill: #fbcaff;
}
.footer-divider {
  width: 97vw;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #c77ddb,
    #985fad,
    #c77ddb,
    transparent
  );
}
.footer-part .info {
  width: 90vw;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: flex-start;
  margin: 3vh 0;
  padding-bottom: 2vh;
}
.footer-part .info .introduce {
  width: 40vw;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
}
.footer-part .info .introduce .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 1.5vh;
}
.footer-part .info .introduce .soacial-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2vh;
  margin-top: 1vh;
}
.footer-part .info .connect {
  width: 50vw;
  font-weight: 500;
  color: #5e0080;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  align-content: flex-start;
  justify-content: center;
}
.footer-part .info .connect .row {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0.8vh 0;
  gap: 0.8vh;
}
.footer-part .info .connect .row .title {
  display: flex;
  flex-shrink: 0;
  margin-top: 0.2vh;
}
.footer-part .info .connect .row .title svg {
  color: #5a007b;
}
.footer-part .info .connect .row .value {
  direction: rtl;
  font-size: 0.8rem;
  line-height: 1.8;
}
.footer-instagram-btn,
.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5vh;
  height: 4.5vh;
  text-decoration: none;
  color: #5e0080;
  border-radius: 50%;
  outline: 2px solid #5e0080;
  transition-property: outline-offset, outline-color, background-color;
  transition-duration: 0.25s;
}
.footer-instagram-btn svg,
.footer-whatsapp-btn svg {
  margin: auto;
}
.footer-instagram-btn:hover {
  outline-offset: 4px;
  background-image: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  outline-color: #a02d76;
}
.footer-instagram-btn:hover svg {
  color: black;
}
.footer-whatsapp-btn:hover {
  outline-offset: 4px;
  background-image: radial-gradient(
    circle at 30% 107%,
    #25d366 0%,
    #20c659 25%,
    #1da653 50%,
    #178745 75%,
    #0e5f30 100%
  );
  outline-color: #128c7e;
}
.footer-part .copyright {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 1.2vh;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  direction: rtl;
  text-align: center;
  font-size: 1.3vh;
  font-weight: 500;
  color: #555;
  background: linear-gradient(180deg, #f5e0ff 0%, #fbcaff 100%);
  border-top: 2px solid #d4b5e0;
  width: 97vw;
  box-sizing: border-box;
}
.footer-part .copyright .design-text {
  font-size: 1vh;
  margin-top: 0.5vh;
}
.footer-part .copyright .design-text a {
  color: #560075;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}
.footer-part .copyright .design-text a:hover {
  color: #985fad;
}

/* ============================================= */
/* ریسپانسیو مشترک                            */
/* ============================================= */
@media only screen and (max-width: 980px) {
  .header .logo .texts {
    display: none;
  }
  .header .login .student-login {
    flex-direction: column;
  }
  .header .login .student-login-image,
  .header .login .student-login-texts {
    margin: 0;
  }
  .footer-part .info {
    flex-direction: column;
    align-items: center;
  }
  .footer-part .info .introduce {
    align-items: center;
    width: 85vw;
  }
  .footer-part .info .connect {
    margin-top: 4vh;
    text-align: right;
    width: 85vw;
  }
  .footer-part .copyright {
    border: unset;
    background: unset;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-top-bar {
    flex-wrap: wrap;
    gap: 1.5vh;
    padding: 1vh 0;
  }
}

/* Responsive and zoom-safe defaults */
html { min-width: 0; overflow-x: auto; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-width: 0; max-width: 100%; overflow-x: auto; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, canvas, svg { max-width: 100%; }
img { height: auto; }
input, select, textarea, button { max-width: 100%; font: inherit; }
pre, code { max-width: 100%; overflow-x: auto; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .header, .navbar, .footer-part, main, section { max-width: 100%; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  input, select, textarea { font-size: 16px; }
}

/* عنوان معنایی صفحات عمومی؛ بدون تغییر چیدمان بصری */
.seo-page-heading{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Profile photos: use the local Font Awesome user icon when no photo exists. */
.student-login .user-avatar-wrapper{display:inline-flex;width:100%;height:100%}
.student-login .user-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;background:#f0e3f2;color:#771877;font-size:1.15rem}
.student-login .student-login-img.user-avatar-fallback{width:100%;height:100%;border-radius:50%}


/* V5: a valid avatar and its fallback must never be visible together. */
[hidden], .user-avatar-fallback[hidden] { display: none !important; }
.user-avatar-wrapper { display: contents; }

/* ==================== V7 PUBLIC UI CONSOLIDATION ==================== */
/* All public-page reinforcement lives here. Do not split these rules into page-specific files. */
:root {
  --mf-purple: #77187e;
  --mf-purple-dark: #4f0f55;
  --mf-purple-deep: #2b0732;
  --mf-purple-soft: #f8eef9;
  --mf-border: #eadcef;
  --mf-text: #5f5263;
  --mf-danger: #b42335;
  --mf-success: #167247;
  --mf-shadow: 0 14px 38px rgba(79, 15, 85, 0.1);
}

/* Home FAQ: the removed intro/features are intentionally not styled or rendered. */
.seo-school-section {
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(42px, 6vw, 78px) clamp(14px, 4vw, 32px);
  direction: rtl;
  background: linear-gradient(180deg, #fff 0%, #fbf4fc 100%);
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.seo-school-section *,
.seo-school-section *::before,
.seo-school-section *::after { box-sizing: border-box; }
.seo-school-container { width: min(980px, 100%); margin: 0 auto; }
.seo-faq { width: 100%; margin: 0 auto; }
.seo-faq h2 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 15px;
  color: var(--mf-purple-dark);
  text-align: center;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 900;
  line-height: 1.6;
}
.seo-faq h2::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b64ed1, var(--mf-purple));
  transform: translateX(50%);
}
.seo-faq details {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 0 20px;
  border: 1px solid var(--mf-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(79, 15, 85, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.seo-faq details:hover,
.seo-faq details[open] {
  border-color: #d7b8dd;
  box-shadow: 0 13px 34px rgba(79, 15, 85, 0.1);
}
.seo-faq details[open] { transform: translateY(-1px); }
.seo-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 15px 0 15px 42px;
  color: var(--mf-purple-dark);
  cursor: pointer;
  list-style: none;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.9;
  user-select: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
  content: "+";
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--mf-purple-soft);
  color: var(--mf-purple);
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}
.seo-faq details[open] summary::after {
  content: "−";
  background: var(--mf-purple);
  color: #fff;
  transform: rotate(180deg);
}
.seo-faq details p {
  margin: 0;
  padding: 0 0 20px;
  color: #66596a;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.94rem;
  line-height: 2.05;
}

/* Pre-register form: full width safety, no horizontal overflow, modern layout. */
html:has(body.pre-register-form-page) { overflow-x: hidden !important; }
body.pre-register-form-page {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden !important;
  align-items: stretch;
  background: #fff;
  direction: rtl;
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.pre-register-form-page > *,
.pre-register-form-page .header,
.pre-register-form-page .footer-part,
.pre-register-form-page section,
.pre-register-form-page main { min-width: 0; max-width: 100%; }
.pre-register-form-page .header,
.pre-register-form-page .footer-part { width: 100%; }
.pre-register-form-page .pre-reg-form-part {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 5vw, 64px) clamp(12px, 3vw, 30px) 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(182, 78, 209, 0.11), transparent 30%),
    radial-gradient(circle at 90% 34%, rgba(119, 24, 126, 0.09), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fbf6fc 100%);
}
.pre-register-form-page .pre-reg-form-part::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(119, 24, 126, 0.09) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 52%);
}
.pre-register-form-page .pre-reg-terms,
.pre-register-form-page .pre-reg-form {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-width: 0;
  margin-inline: auto;
}
.pre-register-form-page .pre-reg-terms {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 22px;
  padding: 0;
}
.pre-register-form-page .pre-reg-terms-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 24px 18px;
  border: 1px solid #e4cfe8;
  border-radius: 20px;
  background: linear-gradient(145deg, #f1dff4 0%, #fff 100%);
  box-shadow: var(--mf-shadow);
}
.pre-register-form-page .pre-reg-terms-title svg {
  width: 38px !important;
  height: 38px;
  color: var(--mf-purple);
  fill: currentColor;
}
.pre-register-form-page .pre-reg-terms-title svg path,
.pre-register-form-page .pre-reg-terms-title svg rect { fill: currentColor; }
.pre-register-form-page .pre-reg-terms-title-text {
  color: var(--mf-purple-dark);
  text-align: center;
  white-space: normal;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.7;
}
.pre-register-form-page .pre-reg-term-base {
  min-width: 0;
  padding: 22px 25px;
  border: 1px solid var(--mf-border);
  border-right: 5px solid var(--mf-purple);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--mf-shadow);
}
.pre-register-form-page .pre-reg-term-title { margin: 0 0 12px; }
.pre-register-form-page .pre-reg-term-title-text {
  color: var(--mf-purple-dark);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 1.07rem;
  font-weight: 900;
}
.pre-register-form-page .pre-reg-term-row { margin: 8px 0 0; }
.pre-register-form-page .pre-reg-term-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: #514756;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.pre-register-form-page .pre-reg-term-circle {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mf-purple), #ba4bd6);
  box-shadow: 0 0 0 4px rgba(119, 24, 126, 0.09);
}
.pre-register-form-page .pre-reg-form-base { width: 100%; min-width: 0; padding: 0; }
.pre-register-form-page .pre-reg-main-form {
  counter-reset: reg-section;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 3.5vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(190, 122, 207, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    linear-gradient(160deg, #25062d 0%, #3a0c44 54%, #23042a 100%);
  box-shadow: 0 26px 64px rgba(42, 5, 50, 0.28);
}
.pre-register-form-page .pre-reg-form-god { padding: 2px 0 25px; text-align: center; }
.pre-register-form-page .pre-reg-form-inthenameofgod {
  color: #ead8f0;
  font-family: "Noto Nastaliq Urdu", Vazirmatn, serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
}
.pre-register-form-page .pre-reg-form-message {
  display: none;
  width: 100%;
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 13px;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.9;
}
.pre-register-form-page .pre-reg-form-message.is-visible { display: block; }
.pre-register-form-page .pre-reg-form-message.is-error { border: 1px solid #f0aeb8; background: #fff0f2; color: #942033; }
.pre-register-form-page .pre-reg-form-message.is-success { border: 1px solid #aee1c2; background: #effbf4; color: var(--mf-success); }
.pre-register-form-page .pre-reg-section {
  counter-increment: reg-section;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 27px);
  border: 1px solid rgba(230, 204, 237, 0.17);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.pre-register-form-page .pre-reg-section:last-of-type { margin-bottom: 0; }
.pre-register-form-page .pre-reg-section-head {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
}
.pre-register-form-page .pre-reg-section-head::after { display: none; }
.pre-register-form-page .pre-reg-section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 900;
  line-height: 1.8;
}
.pre-register-form-page .pre-reg-section-title::before {
  content: counter(reg-section);
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  background: linear-gradient(135deg, #a63bc0, #711578);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 7px 18px rgba(0,0,0,.18);
}
.pre-register-form-page .pre-reg-section-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
}
.pre-register-form-page .pre-reg-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  direction: rtl;
}
.pre-register-form-page .pre-reg-field label {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  color: #ead5f0;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.8;
}
.pre-register-form-page .pre-reg-field.is-required > label::after {
  content: " *";
  color: #ff9aad;
  font-weight: 900;
}
.pre-register-form-page .pre-reg-field input,
.pre-register-form-page .pre-reg-field select,
.pre-register-form-page .pre-reg-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 51px;
  margin: 0;
  padding: 11px 14px;
  border: 2px solid #60316d;
  border-radius: 12px;
  outline: 0;
  background-color: #fff9ff;
  color: #25142a;
  caret-color: var(--mf-purple);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.pre-register-form-page .pre-reg-field select {
  padding-left: 42px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #6f1877 50%), linear-gradient(135deg, #6f1877 50%, transparent 50%);
  background-position: 19px 22px, 13px 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.pre-register-form-page .pre-reg-field textarea { min-height: 112px; resize: vertical; }
.pre-register-form-page .pre-reg-field input::placeholder,
.pre-register-form-page .pre-reg-field textarea::placeholder { color: #96849a; opacity: 1; }
.pre-register-form-page .pre-reg-field input:hover,
.pre-register-form-page .pre-reg-field select:hover,
.pre-register-form-page .pre-reg-field textarea:hover { border-color: #89509a; }
.pre-register-form-page .pre-reg-field input:focus,
.pre-register-form-page .pre-reg-field select:focus,
.pre-register-form-page .pre-reg-field textarea:focus {
  border-color: #cf63e6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(207, 99, 230, 0.16), 0 8px 20px rgba(15, 0, 20, 0.12);
  transform: translateY(-1px);
}
.pre-register-form-page .pre-reg-field.has-error input,
.pre-register-form-page .pre-reg-field.has-error select,
.pre-register-form-page .pre-reg-field.has-error textarea {
  border-color: #e15a70 !important;
  background: #fff7f8;
  box-shadow: 0 0 0 4px rgba(225, 90, 112, 0.14) !important;
}
.pre-register-form-page .pre-reg-field-error {
  display: none;
  margin-top: 7px;
  color: #ffb5c0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.75;
}
.pre-register-form-page .pre-reg-field.has-error .pre-reg-field-error { display: block; }
.pre-register-form-page .pre-reg-date-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  min-width: 0;
  direction: rtl;
}
.pre-register-form-page .pre-reg-date-group input { min-width: 0 !important; width: 100% !important; text-align: center; }
.pre-register-form-page .pre-reg-submit-zone { width: 100%; padding: 28px 0 2px; }
.pre-register-form-page .pre-reg-submit-wrapper { display: flex; justify-content: center; width: 100%; }
.pre-register-form-page .pre-reg-submit-wrapper input[type="submit"] {
  width: min(360px, 100%);
  min-height: 57px;
  padding: 11px 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #711578 0%, #b642d0 100%);
  color: #fff;
  cursor: pointer;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(116, 25, 126, 0.42);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.pre-register-form-page .pre-reg-submit-wrapper input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(116, 25, 126, 0.5); }
.pre-register-form-page .pre-reg-submit-wrapper input[type="submit"]:disabled { opacity: .62; cursor: wait; transform: none; }
.pre-register-form-page .pre-reg-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* Toast notifications */
.mf-toast-stack {
  position: fixed;
  z-index: 10050;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  gap: 10px;
  pointer-events: none;
  direction: rtl;
  font-family: Vazirmatn, Tahoma, sans-serif;
}
.mf-toast {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ead9ee;
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  color: #433348;
  box-shadow: 0 16px 45px rgba(48, 10, 55, 0.2);
  pointer-events: auto;
  transform: translateY(-12px);
  opacity: 0;
  animation: mf-toast-in .24s ease forwards;
}
.mf-toast.is-leaving { animation: mf-toast-out .2s ease forwards; }
.mf-toast-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f4e9f6; color: var(--mf-purple); font-size: 1.08rem; }
.mf-toast.is-error { border-color: #f0b9c1; }
.mf-toast.is-error .mf-toast-icon { background: #fff0f2; color: var(--mf-danger); }
.mf-toast.is-success { border-color: #b9e3ca; }
.mf-toast.is-success .mf-toast-icon { background: #edf9f2; color: var(--mf-success); }
.mf-toast-content { min-width: 0; }
.mf-toast-title { display: block; margin-bottom: 2px; color: #321b37; font-size: .93rem; font-weight: 900; }
.mf-toast-message { display: block; color: #66596a; font-size: .84rem; font-weight: 600; line-height: 1.75; overflow-wrap: anywhere; }
.mf-toast-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #8b7d8f; cursor: pointer; font-size: 1rem; }
.mf-toast-close:hover { background: #f5eff6; color: #4f0f55; }
@keyframes mf-toast-in { to { transform: translateY(0); opacity: 1; } }
@keyframes mf-toast-out { to { transform: translateY(-10px); opacity: 0; } }

/* Loader */
.loading-overlay { position: fixed; inset: 0; z-index: 10000; display: none; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.9); backdrop-filter: blur(5px); }
.loading-overlay.active { display: flex; }
.loading-overlay .spinner { width: 58px; height: 58px; border: 6px solid #eadced; border-top-color: var(--mf-purple); border-radius: 50%; animation: mf-spin .85s linear infinite; }
.loading-overlay .loading-text { margin-top: 18px; color: #352539; font-family: Vazirmatn, Tahoma, sans-serif; font-size: 1rem; font-weight: 800; }
@keyframes mf-spin { to { transform: rotate(360deg); } }

/* Directions page, centralized in shared.css */
body.directions-page { width: 100%; min-width: 0; max-width: 100%; overflow-x: hidden; align-items: stretch; direction: rtl; background: #fff; font-family: Vazirmatn, Tahoma, sans-serif; }
.directions-page .header { width: 100%; max-width: 100%; }
.direction-page { width: 100%; min-width: 0; min-height: calc(100vh - 160px); padding: clamp(34px, 6vw, 80px) clamp(15px, 5vw, 50px); background: linear-gradient(180deg, #fbf7fc, #fff); }
.direction-shell { width: min(1050px, 100%); min-width: 0; margin: 0 auto; }
.direction-head { margin-bottom: 34px; text-align: center; }
.direction-head img { width: 82px; height: 82px; object-fit: contain; }
.direction-head h1 { margin: 14px 0 8px; color: #511058; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.55; }
.direction-head p { max-width: 720px; margin: 0 auto; color: #76637b; line-height: 2; }
.direction-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.direction-address { display: flex; gap: 14px; align-items: flex-start; min-width: 0; padding: 22px; border: 1px solid var(--mf-border); border-radius: 20px; background: #fff; box-shadow: var(--mf-shadow); }
.direction-address i { margin-top: 4px; color: var(--mf-purple); font-size: 1.4rem; }
.direction-address div { min-width: 0; }
.direction-address strong { display: block; margin-bottom: 7px; color: #511058; }
.direction-address span { display: block; color: #6f6174; line-height: 1.9; overflow-wrap: anywhere; }
.direction-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.direction-app { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 145px; padding: 18px; border: 1px solid var(--mf-border); border-radius: 22px; background: #fff; color: #511058; text-align: center; text-decoration: none; font-weight: 900; font-size: 1.08rem; box-shadow: var(--mf-shadow); transition: .2s; }
.direction-app:hover { transform: translateY(-5px); border-color: #c89ad1; box-shadow: 0 18px 40px rgba(86,19,94,.14); }
.direction-app i { color: var(--mf-purple); font-size: 2.2rem; }
.direction-back { display: flex; justify-content: center; margin-top: 26px; }
.direction-back a { display: inline-flex; gap: 8px; align-items: center; color: var(--mf-purple); text-decoration: none; font-weight: 800; }

/* Pre-register landing and tracking fallback, centralized in shared.css */
.pre-register-track-page .pre-register-track-base,
.pre-register-landing-page .pre-reg-register-main-base { width: min(980px, calc(100% - 28px)); min-width: 0; margin-inline: auto; }
.pre-register-track-page .pre-register-track-input,
.pre-register-track-page .pre-register-track-result { width: min(520px, 100%); margin: 25px auto; padding: 24px; border: 1px solid var(--mf-border); border-radius: 18px; background: #fff; box-shadow: var(--mf-shadow); }
.pre-register-track-page .pre-register-track-field { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid #d6b6dc; border-radius: 11px; background: #fff8ff; font-size: 16px; }
.pre-register-track-page .pre-register-track-btn { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 12px; background: var(--mf-purple); color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 900px) {
  .pre-register-form-page .pre-reg-terms { grid-template-columns: 1fr; }
  .pre-register-form-page .pre-reg-terms-title { flex-direction: row; }
}
@media (max-width: 780px) {
  .seo-school-section { padding-inline: 13px; }
  .seo-faq details { padding-inline: 15px; border-radius: 14px; }
  .seo-faq summary { padding-left: 38px; font-size: .94rem; }
  .pre-register-form-page .pre-reg-form-part { padding: 24px 10px 54px; }
  .pre-register-form-page .pre-reg-main-form { padding: 14px; border-radius: 19px; }
  .pre-register-form-page .pre-reg-section { padding: 17px 13px; border-radius: 15px; }
  .pre-register-form-page .pre-reg-section-body { grid-template-columns: 1fr; gap: 14px; }
  .pre-register-form-page .pre-reg-field label { text-align: right !important; width: 100% !important; }
  .direction-addresses,
  .direction-apps { grid-template-columns: 1fr; }
  .direction-page { padding-inline: 13px; }
  .direction-app { min-height: 112px; }
}
@media (max-width: 480px) {
  .pre-register-form-page .pre-reg-terms-title { padding: 17px 13px; }
  .pre-register-form-page .pre-reg-term-base { padding: 18px 15px; }
  .pre-register-form-page .pre-reg-main-form { padding: 11px; }
  .pre-register-form-page .pre-reg-section { padding: 16px 11px; }
  .pre-register-form-page .pre-reg-section-title { align-items: flex-start; font-size: 1rem; }
  .pre-register-form-page .pre-reg-section-title::before { flex-basis: 31px; width: 31px; height: 31px; border-radius: 9px; }
  .pre-register-form-page .pre-reg-date-group { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pre-register-form-page .pre-reg-date-group input { padding-inline: 5px; }
  .mf-toast-stack { top: 10px; right: 10px; width: calc(100vw - 20px); }
  .mf-toast { grid-template-columns: 34px minmax(0, 1fr) 28px; padding: 10px; }
}
@media (max-width: 350px) {
  .pre-register-form-page .pre-reg-date-group { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-toast, .pre-register-form-page *, .direction-app, .seo-faq details { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* ==================== V8 DIRECTIONS + FOOTER ==================== */
.header .login .student-login-name {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}
.header .login .student-login-texts { text-align: center; }

/* Fresh footer: no duplicated navigation strip. */
.footer-part {
  position: relative;
  isolation: isolate;
  width: min(97vw, 1480px);
  max-width: calc(100% - 22px);
  margin: clamp(34px, 6vw, 78px) auto 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(213,137,222,.25), transparent 28%),
    radial-gradient(circle at 87% 82%, rgba(149,72,160,.28), transparent 31%),
    linear-gradient(145deg, #25072c 0%, #4f1058 47%, #77187e 100%);
  color: #fff;
  box-shadow: 0 24px 65px rgba(54, 10, 61, .24);
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
.footer-part::before,
.footer-part::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.footer-part::before { top: -132px; right: -78px; }
.footer-part::after { bottom: -154px; left: -72px; width: 290px; height: 290px; }
.footer-part .footer-divider {
  width: min(88%, 980px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity: .8;
}
.footer-part .info {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(380px, 1.28fr);
  align-items: stretch;
  gap: clamp(20px, 4vw, 58px);
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0 clamp(28px, 4vw, 52px);
}
.footer-part .info .introduce,
.footer-part .info .connect {
  width: auto;
  min-width: 0;
  margin: 0;
}
.footer-part .info .introduce {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.footer-part .info .introduce .logo { margin: 0 0 18px; }
.footer-part .info .introduce .logo .img-wrapper {
  display: grid;
  place-items: center;
  width: clamp(112px, 11vw, 156px);
  height: clamp(112px, 11vw, 156px);
  padding: 12px;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.footer-part .info .introduce .logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-part .info .introduce .soacial-media { gap: 12px; margin: 0; }
.footer-part .footer-instagram-btn,
.footer-part .footer-whatsapp-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 15px;
  outline: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.2rem;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.footer-part .footer-instagram-btn:hover,
.footer-part .footer-whatsapp-btn:hover {
  transform: translateY(-3px);
  outline: 0;
  color: #fff;
  box-shadow: 0 12px 25px rgba(0,0,0,.18);
}
.footer-part .footer-instagram-btn:hover { background: linear-gradient(135deg,#7b3fd1,#d43296,#ff8b55); }
.footer-part .footer-whatsapp-btn:hover { background: linear-gradient(135deg,#25d366,#128c7e); }
.footer-part .info .connect {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-content: center;
  gap: 14px;
  color: #fff;
}
.footer-part .info .connect .row {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.075);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.footer-part .info .connect .row:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.12);
}
.footer-part .info .connect .row .title {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
  color: #f8d8fc;
  font-size: 1rem;
}
.footer-part .info .connect .row .title svg { width: 20px; height: 20px; color: currentColor; }
.footer-part .info .connect .row .value {
  min-width: 0;
  color: rgba(255,255,255,.92);
  font-size: .84rem;
  font-weight: 600;
  line-height: 2;
  overflow-wrap: anywhere;
}
.footer-part .copyright {
  width: 100%;
  padding: 17px 18px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: rgba(15,2,19,.23);
  color: rgba(255,255,255,.78);
  font-size: .76rem;
  line-height: 1.9;
  backdrop-filter: blur(10px);
}
.footer-part .copyright .design-text { margin-top: 2px; font-size: .7rem; color: rgba(255,255,255,.67); }
.footer-part .copyright .design-text a { color: #f1c3f6; }
.footer-part .copyright .design-text a:hover { color: #fff; }

/* Directions page: same public chrome, a short animated route experience. */
body.directions-page {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: #2b1830;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}
.directions-page .header { width: 97vw; max-width: calc(100% - 18px); margin-inline: auto; }
.directions-page .header .buttons a[aria-current="page"] { color: #5e0080; background: rgba(152,95,173,.1); }
.directions-page .header .buttons a i { margin-left: 7px; color: #581b63; }
.direction-page {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 70vh;
  padding: clamp(32px, 5vw, 72px) clamp(12px, 3.5vw, 42px) 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(183,91,196,.12), transparent 25%),
    radial-gradient(circle at 88% 32%, rgba(119,24,126,.09), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fcf7fd 54%, #fff 100%);
}
.direction-hero,
.direction-apps-section {
  width: min(1180px, 100%);
  min-width: 0;
  margin-inline: auto;
}
.direction-hero {
  padding: clamp(22px, 4.5vw, 54px);
  border: 1px solid #eadbee;
  border-radius: clamp(22px, 4vw, 36px);
  background: rgba(255,255,255,.9);
  box-shadow: 0 24px 70px rgba(86,19,94,.12);
}
.direction-copy { max-width: 720px; margin: 0 auto clamp(22px,4vw,38px); text-align: center; }
.direction-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid #e4cce8;
  border-radius: 999px;
  background: #faf1fb;
  color: #711578;
  font-size: .82rem;
  font-weight: 850;
}
.direction-copy h1 { margin: 14px 0 8px; color: #4d0f55; font-size: clamp(1.55rem,4.2vw,3rem); line-height: 1.5; letter-spacing: -.035em; }
.direction-copy p { margin: 0; color: #746478; font-size: clamp(.92rem,1.7vw,1.08rem); line-height: 2; }
.direction-animation { width: 100%; overflow: hidden; border: 1px solid #eadbee; border-radius: 28px; background: #fbf3fc; }
.direction-animation svg { display: block; width: 100%; height: auto; }
.direction-pin-pulse { transform-box: fill-box; transform-origin: center; animation: direction-pulse 1.7s ease-out infinite; }
.direction-clouds { animation: direction-cloud 7s ease-in-out infinite alternate; }
@keyframes direction-pulse { 0%{transform:scale(.55);opacity:.9} 100%{transform:scale(1.65);opacity:0} }
@keyframes direction-cloud { to { transform: translateX(20px); } }
.direction-address-card {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  width: min(760px, calc(100% - 24px));
  margin: -24px auto 0;
  padding: 15px 18px;
  border: 1px solid #e5cfe9;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 38px rgba(74,10,83,.13);
  position: relative;
  z-index: 2;
}
.direction-address-icon { display:grid; place-items:center; width:54px; height:54px; border-radius:17px; background:linear-gradient(135deg,#77187e,#a94db7); color:#fff; font-size:1.18rem; }
.direction-address-card strong { display:block; margin-bottom:4px; color:#4f0f55; font-size:.98rem; }
.direction-address-card span:not(.direction-address-icon) { display:block; color:#746478; font-size:.84rem; line-height:1.9; overflow-wrap:anywhere; }
.direction-apps-section { padding: clamp(42px,7vw,80px) 0 4px; }
.direction-section-heading { margin-bottom: 22px; text-align: center; }
.direction-section-heading > span { color:#8d3a98; font-size:.8rem; font-weight:850; }
.direction-section-heading h2 { max-width:720px; margin:7px auto 0; color:#4f0f55; font-size:clamp(1.25rem,2.6vw,2rem); line-height:1.65; }
.direction-apps-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.direction-app-card {
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 34px;
  align-items:center;
  gap:14px;
  min-width:0;
  min-height:112px;
  padding:18px;
  border:1px solid #eadbee;
  border-radius:22px;
  background:#fff;
  color:#321738;
  text-decoration:none;
  box-shadow:0 12px 35px rgba(78,14,87,.08);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.direction-app-card:hover { transform:translateY(-5px); border-color:#c991d2; box-shadow:0 20px 44px rgba(78,14,87,.14); }
.direction-app-card.is-disabled { opacity:.52; pointer-events:none; filter:grayscale(.5); }
.direction-app-logo { display:grid; place-items:center; width:64px; height:64px; padding:7px; border-radius:18px; background:#fbf5fc; overflow:hidden; }
.direction-app-logo img { width:100%; height:100%; object-fit:contain; border-radius:13px; }
.direction-app-info { min-width:0; }
.direction-app-info strong { display:block; margin-bottom:4px; color:#4f0f55; font-size:1.02rem; font-weight:900; }
.direction-app-info small { display:block; color:#7c6c80; font-size:.78rem; line-height:1.7; }
.direction-app-card > i { color:#a04eaa; font-size:.9rem; }

@media (max-width: 980px) {
  .footer-part .info { grid-template-columns: 1fr; }
  .footer-part .info .introduce { width: 100%; }
  .footer-part .info .connect { width: 100%; margin: 0; }
}
@media (max-width: 800px) {
  .direction-apps-grid { grid-template-columns: 1fr; }
  .direction-hero { padding-inline: 14px; }
  .direction-address-card { grid-template-columns: 45px minmax(0,1fr); margin-top:-15px; padding:13px; }
  .direction-address-icon { width:45px; height:45px; border-radius:14px; }
  .footer-part .info .connect { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .direction-page { padding-inline: 9px; }
  .direction-hero { border-radius: 22px; }
  .direction-animation { border-radius: 20px; }
  .direction-app-card { grid-template-columns: 54px minmax(0,1fr) 24px; min-height:96px; padding:13px; border-radius:18px; }
  .direction-app-logo { width:54px; height:54px; border-radius:15px; }
  .footer-part { max-width: calc(100% - 12px); border-radius: 22px; }
  .footer-part .info { width: calc(100% - 22px); padding-block: 24px; }
  .footer-part .info .introduce { padding: 20px; border-radius: 18px; }
  .footer-part .info .connect .row { grid-template-columns: 38px minmax(0,1fr); padding: 14px; }
  .footer-part .info .connect .row .title { width:38px; height:38px; }
}
@media (prefers-reduced-motion: reduce) {
  .direction-pin-pulse, .direction-clouds { animation: none !important; }
  .direction-car animateMotion { display: none; }
}

/* بازطراحی روشن و تمام‌عرض فوتر مهرآفرینان */
.footer-part{
  width:100vw!important;max-width:none!important;margin:64px calc(50% - 50vw) 0!important;border-radius:0!important;
  background:linear-gradient(135deg,#fff 0%,#fff5ff 48%,#f7fbff 100%)!important;
  color:#2d1733!important;border-top:1px solid #eadced!important;box-shadow:0 -14px 42px rgba(75,38,84,.08)!important;overflow:hidden;
}
.footer-part::before{background:rgba(251,202,255,.42)!important}.footer-part::after{background:rgba(219,234,254,.58)!important}
.footer-part .footer-divider{background:linear-gradient(90deg,transparent,#d88fe0,#fbcaff,#9cc5ff,transparent)!important;height:4px!important;opacity:1!important}
.footer-part .info{width:min(1180px,calc(100% - 32px))!important;max-width:1180px!important;margin-inline:auto!important;grid-template-columns:minmax(260px,.78fr) minmax(0,1.5fr)!important;gap:24px!important;padding:38px 0 28px!important}
.footer-part .info .introduce,.footer-part .info .connect{background:rgba(255,255,255,.78)!important;border:1px solid #eadfed!important;box-shadow:0 12px 32px rgba(68,36,77,.06)!important;color:#2d1733!important}
.footer-part .info .connect .row{background:#fff!important;border:1px solid #eee4f0!important;color:#321a38!important}
.footer-part .info .connect .row:hover{background:#fff5ff!important;border-color:#e7b8eb!important;transform:translateY(-2px)!important}
.footer-part .info .connect .row .title{background:#fbcaff!important;color:#421c49!important}.footer-part .info .connect .row .value{color:#4c3652!important}
.footer-part .copyright{width:100%!important;background:#fff!important;border-top:1px solid #eadfed!important;color:#5d4862!important;padding:17px max(16px,calc((100vw - 1180px)/2))!important}
.footer-part .copyright .design-text{color:#77637b!important}.footer-part .copyright .design-text a{color:#7a287f!important}
.footer-part .info .introduce .logo .img-wrapper{background:#fff!important;border-color:#ecdff0!important}
@media(max-width:900px){.footer-part .info{grid-template-columns:1fr!important}.footer-part{margin-top:42px!important}}
@media(max-width:520px){.footer-part .info{width:calc(100% - 22px)!important;padding-block:24px!important}.footer-part .copyright{padding-inline:14px!important}}
