/* ============================================= */
/* صفحه اصلی - استایل‌های اختصاصی              */
/* ============================================= */

/* --- اسپینر تصاویر: اسلایدر --- */
.img-wrapper-slider {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 16px;
  background: #fff;
}
.img-wrapper-slider::before {
  width: 50px;
  height: 50px;
  border-width: 5px;
}
.img-wrapper-slider img {
  width: 100%;
  height: 91.5%;
  border-radius: 16px;
}

/* --- اسپینر تصاویر: پوستر --- */
.img-wrapper-poster {
  width: 265px;
  height: 410px;
  border-radius: 16px;
}
.img-wrapper-poster::before {
  width: 42px;
  height: 42px;
  border-width: 4px;
}
.img-wrapper-poster img {
  width: 265px;
  height: 410px;
  border-radius: 16px;
  object-fit: cover;
}

/* --- اسپینر تصاویر: گالری --- */
.img-wrapper-gallery {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}
.img-wrapper-gallery img {
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  filter: brightness(0.95);
  transition:
    filter 0.5s,
    transform 0.5s;
}
.img-wrapper-gallery.loaded img {
  filter: brightness(0.95);
}
.gallery-col:hover .img-wrapper-gallery.loaded img {
  filter: brightness(1);
  transform: scale(1.03);
}

/* --- اسپینر تصاویر: آیکون خدمات --- */
.img-wrapper-icon {
  width: 130px;
  height: 130px;
  background: transparent;
  animation: none;
}
.img-wrapper-icon::before {
  display: none;
}

/* --- اسپینر تصاویر: QR Code --- */
.img-wrapper-qr {
  width: 12rem;
  height: fit-content;
  border-radius: 8px;
  background: transparent;
  animation: none;
}
.img-wrapper-qr::before {
  display: none;
}

/* --- اسپینر تصاویر: ارتباط با ما --- */
.img-wrapper-contact {
  width: 35vh;
  height: 35vh;
  background: transparent;
  animation: none;
}
.img-wrapper-contact::before {
  display: none;
}

/* ============================================= */
/* شعار و اسلایدر                              */
/* ============================================= */
.slogan {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-top: 1vh;
}
.slogan-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Nastaliq Urdu", serif;
  font-weight: 500;
  font-size: 1.5vh;
  padding: 0.5vh;
  color: #000;
  background: linear-gradient(135deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  width: 27.3vw;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(152, 95, 173, 0.15);
}
.sliders {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}
.top-slider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1vh;
  margin-bottom: 1vh;
  overflow: hidden;
  width: 65vw;
  max-width: 900px;
  height: 460px;
}
.top-slider .slider-container {
  display: flex;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  width: 65vw;
  height: 432px;
  border-radius: 16px;
}
.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide {
  min-width: 100%;
  height: 432px;
  overflow: hidden;
}
.prev,
.next {
  color: #2a0845;
  background: rgba(251, 202, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #2a0845;
  border-radius: 10px;
  width: 4vh;
  height: 4vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Vazirmatn";
  font-size: 4vh;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.prev:hover,
.next:hover {
  background: rgba(251, 202, 255, 1);
  box-shadow: 0 4px 20px rgba(94, 0, 128, 0.2);
  transform: translateY(-50%) scale(1.05);
}
.prev {
  left: 2vh;
}
.next {
  right: 2vh;
}

/* --- صفحه‌بندی اسلایدر --- */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 0.5vh;
}
.pagination span {
  display: inline-block;
  width: 16px;
  height: 0.75vh;
  background-color: #d4b5e0;
  border-radius: 9999px;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.pagination span:hover {
  background-color: #b88fce;
  transform: scaleX(1.2);
}
.pagination .active {
  background: linear-gradient(90deg, #662072, #985fad);
  width: 32px;
  opacity: 1;
}

/* --- پوستر کنار اسلایدر --- */
.poster {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 265px;
  height: 410px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.poster:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(94, 0, 128, 0.2);
}

/* ============================================= */
/* پیش ثبت‌نام (صفحه اصلی)                     */
/* ============================================= */
.pre-register-base {
  display: flex;
  flex-direction: row-reverse;
  align-content: center;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  margin-top: 5vh;
  margin-bottom: 5vh;
}
.pre-register-term {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  width: 25vw;
  line-height: 45px;
  font-family: "Vazirmatn", sans-serif;
  font-feature-settings: "ss01";
  font-size: 1.5vh;
  font-weight: 500;
  padding: 15px;
  background: linear-gradient(145deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(88, 50, 102, 0.12);
  transition: all 0.4s ease;
}
.pre-register-term:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(88, 50, 102, 0.18);
}
.pre-register-term-circle {
  position: absolute;
  content: "";
  width: 1vh;
  height: 1vh;
  top: 1vh;
  right: 0;
  border: 2px solid #b63fe1;
  border-radius: 5px;
  box-shadow: 0 0 4px #000000;
  background-color: #5e0080;
}
.pre-register-term-row {
  position: relative;
  padding-right: 20px;
  display: flex;
}
.pre-register-term-row-text {
  line-height: 30px;
  color: black;
}
.pre-register-term-row-text-stype {
  font-family: "Noto Nastaliq Urdu", serif;
}
.pre-register-qrcode-txtbase {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  width: fit-content;
}
.pre-register-qrcode-text {
  text-align: center;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.3vh;
  font-weight: 500;
  padding: 1vh;
  background: linear-gradient(145deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(88, 50, 102, 0.1);
  color: black;
}
.pre-register-img {
  padding: 0.5vh;
  border-radius: 8px;
  border: 3px solid #000;
  background: #fff;
  box-shadow: 0 0 15px #000;
  margin-top: 3vh;
}
.pre-regsiter-qrcode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.pre-register-description {
  width: 25vw;
  padding: 2vh;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.5vh;
  font-weight: 500;
  background: linear-gradient(145deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(88, 50, 102, 0.12);
  transition: all 0.4s ease;
}
.pre-register-description:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(88, 50, 102, 0.18);
}
.pre-register-title {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 2.7vh;
  padding-bottom: 20px;
  text-align: center;
}
.pre-register-text {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.pre-register-text a {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 1vh;
  margin: 1vh;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.5vh;
  font-weight: 700;
  background: linear-gradient(135deg, #5e0080 0%, #7a1a99 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(94, 0, 128, 0.3);
}
.pre-register-text a:hover {
  padding-left: 1.5vh;
  padding-right: 1.5vh;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 0, 128, 0.4);
}
.pre-register-text a svg {
  margin-left: 5px;
}
.pre-register-text a svg path {
  fill: #fff;
}

/* ============================================= */
/* معرفی ما و خدمات آموزشی                     */
/* ============================================= */
.conference-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin: 3vh;
  padding: 1vh;
  background: linear-gradient(145deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(88, 50, 102, 0.1);
  transition: all 0.4s ease;
}
.conference-row:hover {
  box-shadow: 0 12px 40px rgba(88, 50, 102, 0.16);
}
.introduce-title {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
  margin: 2vh;
}
.introduce-text,
.title-of-best-grades,
.title-of-best-ranks,
.gallery-title,
.connect-us-text,
.acceptance-title-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  padding-right: 0.5vh;
  font-family: "Vazirmatn", sans-serif;
  font-weight: 700;
  font-size: 3vh;
  color: #5e0080;
  text-shadow: 0 0 8px rgba(246, 152, 255, 0.4);
  border-bottom: 2px solid #5e0080;
  position: relative;
}
.introduce-text svg,
.title-of-best-grades svg,
.title-of-best-ranks svg,
.gallery-title svg,
.connect-us-text svg,
.acceptance-title-text svg {
  margin-left: 0.5vh;
}
.introduce-text svg path,
.introduce-text svg rect,
.title-of-best-grades svg path,
.title-of-best-ranks svg path,
.title-of-best-grades svg rect,
.title-of-best-ranks svg rect,
.gallery-title path,
.gallery-title rect,
.title-of-best-ranks svg circle,
.connect-us-text path,
.connect-us-text rect,
.acceptance-title-text path,
.acceptance-title-text rect {
  fill: #5e0080;
}
.conference-row .base-video {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  width: 50vw;
  padding: 3vh;
}
.conference-row .base-video video {
  max-width: 50vw;
  border-radius: 50%;
  border: 3px solid #b63fe1;
  box-shadow: 0 0 20px rgba(182, 63, 225, 0.2);
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 45vh;
  width: 100%;
}
.conference-row .base-video video:hover {
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(182, 63, 225, 0.35);
}
.conference-row .card-of-text {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2vh;
}
.card-text {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}
.card-text-school-name {
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 2.5vh;
  margin-bottom: 2vh;
}
.card-text-main {
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.5vh;
  font-weight: 500;
  line-height: 2.2;
}

/* --- کارت‌های خدمات آموزشی --- */
.edu-services-base {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-evenly;
  margin: 1vh;
}
.edu-services-row {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  margin: 1.5vh;
  background: linear-gradient(145deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(88, 50, 102, 0.1);
  width: fit-content;
  height: 38vh;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.edu-services-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}
.edu-services-row:hover::before {
  left: 100%;
}
.edu-services-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(88, 50, 102, 0.18);
}
.edu-services-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-services-description {
  display: flex;
  width: 270px;
}
.edu-services-description-text {
  text-align: center;
  margin: 1vh;
}
.edu-services-img {
  width: 130px;
  animation: gentleShake 3s ease-in-out infinite;
}
.edu-services-title {
  padding-top: 2vh;
  font-family: "Noto Nastaliq Urdu", serif;
  font-size: 2vh;
}
.edu-services-description {
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.5vh;
  font-weight: 500;
  margin: 1vh;
}

/* ============================================= */
/* پذیرفته‌شدگان کنکور                          */
/* ============================================= */
.acceptance-part {
  padding-bottom: 1vh;
}
.acceptance-head {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
  margin: 2vh;
}
.acceptance-grid-1404 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem 2rem;
  direction: rtl;
  justify-items: center;
  align-items: stretch;
}
.acceptance-grid-1404 .acceptance-image-item {
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
}
.acceptance-single-1403 {
  display: flex;
  justify-content: center;
  direction: rtl;
  padding: 1rem 2rem 2rem;
}
.acceptance-single-1403 .acceptance-image-item {
  width: 300px;
  max-width: 90%;
}

/* --- حالت موبایل: پوستر عمودی --- */
.poster-mobile-grid {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  align-items: center;
}
.poster-mobile-item {
  width: 265px;
  height: auto;
}
.poster-mobile-item .img-wrapper-poster {
  width: 265px;
  height: auto;
  min-height: unset;
}
.poster-mobile-item .img-wrapper-poster img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.poster-desktop {
  display: block;
}

/* ============================================= */
/* گالری (صفحه اصلی)                           */
/* ============================================= */
.gallery-head,
.connect-us-title {
  width: 14rem;
  margin-top: 0.75rem;
}
.gallery-head span,
.connect-us-title span {
  border: unset;
}
.gallery-view {
  height: 5vh;
  margin-right: 1vh;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.3vh;
  font-weight: 500;
  text-decoration: none;
  color: #3b3b3b;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
}
.gallery-view path {
  fill: #3b3b3b;
}
.gallery-col {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  min-width: 16rem;
  max-width: 16rem;
  border-radius: 16px;
  color: black;
  text-decoration: none;
  background: linear-gradient(145deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  box-shadow: 0 4px 16px rgba(88, 50, 102, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  margin: 0.3rem;
}
.gallery-col:hover {
  cursor: pointer;
  background: linear-gradient(145deg, #f6d222 0%, #ffe066 100%);
  border: #665810 solid 2px;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(102, 88, 16, 0.15);
}
.gallery-subject {
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.4vh;
  font-weight: 500;
  padding: 1.2vh 0.5vh;
  width: 100%;
  text-align: center;
}
.gallery-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: row-reverse;
  align-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1vh 0;
}
.gallery-tub-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 0 0;
  width: 16rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-tub-grid img {
  width: 16rem;
}
.gallery-body {
  padding: 1vh 0;
}

/* ============================================= */
/* ارتباط با ما (صفحه اصلی)                    */
/* ============================================= */
.base-of-connect {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 2vh;
}
.conntact-us-base {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 3vh;
  padding: 2vh;
  background: linear-gradient(145deg, #fbcaff 0%, #f5e0ff 100%);
  border: #985fad solid 2px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(88, 50, 102, 0.1);
}
.conntact-us-base .text {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 700;
  font-size: 1.5vh;
  direction: rtl;
  width: 44vw;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
}
.conntact-us-base .text span {
  margin: 1vh 0;
}
.conntact-us-base .text .buttons {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
}
.conntact-us-base .text .buttons a {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 1vh;
  margin: 0.5vh;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.4vh;
  font-weight: 700;
  background: linear-gradient(135deg, #5e0080 0%, #7a1a99 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(94, 0, 128, 0.2);
  min-width: 3rem;
}
.conntact-us-base .text .buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(94, 0, 128, 0.35);
}
.conntact-us-base .text .buttons a svg,
.conntact-us-base .text .buttons a img {
  margin-bottom: 0.5vh;
}
.conntact-us-base .text .buttons a img {
  border-radius: 100%;
}
.conntact-us-base .icon {
  margin: 0 5vh;
}

/* ============================================= */
/* انیمیشن‌های اختصاصی صفحه اصلی              */
/* ============================================= */
@keyframes gentleShake {
  0%,
  100% {
    transform: rotate(-25deg);
  }
  50% {
    transform: rotate(25deg);
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-175%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ============================================= */
/* واکنش‌گرایی - تبلت و موبایل                */
/* ============================================= */
@media only screen and (max-width: 980px) {
  /* شعار */
  .slogan-text {
    width: 60vw;
  }

  /* اسلایدر و پوستر */
  .sliders {
    flex-direction: column;
  }
  .top-slider {
    height: unset;
    width: 97vw;
  }
  .slide {
    height: unset;
  }
  .top-slider .slider-container {
    height: fit-content;
    width: 97vw;
  }
  .img-wrapper-slider img {
    object-fit: contain;
  }
  .poster {
    width: fit-content;
    margin: 2vh 0;
  }

  /* پیش ثبت‌نام */
  .pre-register-base {
    flex-direction: column;
  }
  .pre-register-term {
    width: 65vw;
    margin: 2vh 0;
  }
  .pre-regsiter-qrcode {
    width: 65vw;
    margin: 2vh 0;
  }
  .pre-register-description {
    margin: 2vh 0;
    width: 65vw;
  }

  /* معرفی ما */
  .conference-row {
    flex-direction: column;
  }
  .conference-row .base-video video {
    width: 70vw;
  }
  .card-text-school-name {
    font-size: 2vh;
  }
  .base-video {
    padding: 10px;
  }

  /* خدمات آموزشی */
  .edu-services-base {
    flex-direction: column;
  }
  .edu-services-row {
    margin: 10px 0;
  }

  /* گالری */
  .gallery-col {
    min-width: 10rem;
    max-width: 10rem;
  }
  .gallery-tub-grid {
    width: 10.8rem;
  }
  .gallery-subject {
    width: 100%;
  }

  /* پذیرفته‌شدگان */
  .acceptance-images-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .acceptance-image-item {
    width: 13rem;
  }
  .acceptance-image-item .img-wrapper {
    min-height: 23rem;
  }

  /* ارتباط با ما */
  .conntact-us-base {
    flex-direction: column-reverse;
    width: 75vw;
    text-align: center;
  }
  .conntact-us-base .icon .img-wrapper {
    width: 25vh;
    height: 25vh;
  }
  .conntact-us-base .text {
    height: unset;
    width: 70vw;
  }
  .conntact-us-base .text span {
    margin: 2vh 0;
  }
}

/* --- موبایل کوچک --- */
@media (max-width: 768px) {
  .acceptance-1404 {
    display: none;
  }
  .poster-desktop {
    display: none;
  }
  .poster-mobile-grid {
    display: flex;
  }
  .poster {
    width: 80%;
    height: auto;
    padding: 1rem;
  }
  .img-wrapper-poster {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 769px) {
  .acceptance-grid-1404 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .poster-mobile-item {
    width: 90%;
  }
  .acceptance-single-1403 .acceptance-image-item {
    width: 95%;
  }
}

/* V5: keep the introduction video visible once playback starts. */
.home-introduction-video { display:block; width:100%; height:100%; object-fit:cover; background:#16061a; }
.home-introduction-video.is-playing { background:#000; }


/* شبکه پویا برای پذیرفته‌شدگان کنکور */
/* V8: چیدمان داینامیک پذیرفته‌شدگان، منطبق با طراحی اولیه سایت */
.acceptance-part,
.acceptance-category,
.acceptance-dynamic-grid,
.acceptance-image-item {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.acceptance-dynamic {
  display: block !important;
  width: 100%;
  overflow: visible;
}
.acceptance-dynamic .acceptance-head {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
  margin: 2vh;
}
.acceptance-dynamic .acceptance-title-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.8;
}
.acceptance-dynamic .acceptance-title-text svg {
  flex: 0 0 auto;
}
.acceptance-grid-multiple {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1rem 2rem;
  direction: rtl;
  justify-items: center;
  align-items: start;
}
.acceptance-grid-multiple .acceptance-image-item {
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
}
.acceptance-grid-single {
  display: flex;
  justify-content: center;
  direction: rtl;
  padding: 1rem 2rem 2rem;
}
.acceptance-grid-single .acceptance-image-item {
  width: 300px;
  max-width: 90%;
  margin: 0 auto;
}
.acceptance-dynamic .acceptance-image-item {
  transform: none;
}
.acceptance-dynamic .acceptance-image-item:hover {
  transform: none;
}
.acceptance-dynamic .acceptance-image-item .img-wrapper {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}
.acceptance-dynamic .acceptance-image-item img {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
}
@media (max-width: 768px) {
  .acceptance-part {
    padding-inline: 0;
  }
  .acceptance-year-1404 {
    display: none !important;
  }
  .acceptance-grid-multiple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
  .acceptance-grid-single {
    padding: 0.75rem 1rem 1.5rem;
  }
  .acceptance-grid-single .acceptance-image-item {
    width: 300px;
    max-width: 95%;
  }
  .acceptance-dynamic .acceptance-head {
    margin: 1.25rem 1rem 0.75rem;
  }
  .acceptance-dynamic .acceptance-title-text {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .acceptance-grid-multiple {
    grid-template-columns: 1fr;
  }
  .acceptance-grid-multiple .acceptance-image-item {
    max-width: 270px;
  }
}

/* V11: loading state for the home introduction video. */
.home-introduction-video-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f8f1f8;
}
.home-introduction-video-shell .home-introduction-video {
  position: relative;
  z-index: 1;
  transition: opacity .35s ease, filter .35s ease;
}
.home-introduction-video-shell.is-loading .home-introduction-video {
  filter: brightness(.72) saturate(.82);
}
.home-video-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #fff;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 11, 27, .16), rgba(23, 11, 27, .45));
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.home-introduction-video-shell.is-loading .home-video-loader {
  opacity: 1;
  visibility: visible;
}
.home-video-loader__spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, .38);
  border-top-color: #fbcaff;
  border-right-color: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
  animation: homeVideoLoadingSpin .8s linear infinite;
}
.home-video-loader__text {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(20, 9, 24, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.6;
}
.home-introduction-video-shell.is-video-ready .home-video-loader {
  opacity: 0;
  visibility: hidden;
}
@keyframes homeVideoLoadingSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .home-video-loader__spinner { animation-duration: 1.6s; }
  .home-introduction-video-shell .home-introduction-video,
  .home-video-loader { transition: none; }
}
