/*
 * Homepage visual parity layer.
 *
 * The legacy index.css remains the source of shared tokens and responsive
 * primitives. These scoped rules only tune the homepage compositions shown in
 * the current Soroush design so content and existing sliders stay intact.
 */

body {
  position: relative;
  background: #24365a;
  isolation: isolate;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

/* A document-sized canvas scrolls naturally, independent of section decoration. */
.site-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44vw 40rem at 92% 8rem, rgba(41, 53, 83, 0.78), transparent 83%),
    radial-gradient(ellipse 70vw 50rem at 32% 10rem, rgba(157, 65, 47, 0.45), transparent 85%),
    linear-gradient(180deg, #68454b 0, #4a4053 36rem, #2d3b5c 65rem, #24365a 100rem);
}

.site-ambient .ambient-orb {
  position: absolute;
  left: 12%;
  width: clamp(22rem, 43vw, 43rem);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 119, 42, 0.94) 0, rgba(250, 102, 37, 0.58) 36%, rgba(225, 84, 36, 0.19) 63%, transparent 80%);
  filter: blur(23px);
  opacity: 0.97;
  animation: soroush-orb-drift-a 13s ease-in-out infinite;
  will-change: transform;
}

.site-ambient .ambient-orb:nth-child(4n + 2) {
  left: auto;
  right: 7%;
  width: clamp(21rem, 36vw, 37rem);
  opacity: 0.86;
  animation-name: soroush-orb-drift-b;
  animation-duration: 14s;
  animation-delay: -7s;
}

.site-ambient .ambient-orb:nth-child(4n + 3) {
  left: 30%;
  width: clamp(20rem, 34vw, 34rem);
  opacity: 0.8;
  animation-duration: 12s;
  animation-delay: -11s;
}

.site-ambient .ambient-orb:nth-child(4n) {
  left: 3%;
  width: clamp(20rem, 37vw, 36rem);
  opacity: 0.84;
  animation-name: soroush-orb-drift-b;
  animation-duration: 15s;
  animation-delay: -5s;
}

.site-ambient .ambient-orb.ambient-orb--secondary {
  left: auto;
  right: 15%;
  width: clamp(17rem, 30vw, 30rem);
  opacity: 0.78;
  animation-name: soroush-orb-drift-b;
  animation-duration: 16s;
  animation-direction: reverse;
}

@keyframes soroush-orb-drift-a {
  0%, 100% { transform: translate3d(-8rem, 3rem, 0) scale(0.93); }
  25% { transform: translate3d(4rem, -8rem, 0) scale(1.06); }
  52% { transform: translate3d(11rem, 2rem, 0) scale(1.12); }
  76% { transform: translate3d(2rem, 9rem, 0) scale(1); }
}

@keyframes soroush-orb-drift-b {
  0%, 100% { transform: translate3d(8rem, -3rem, 0) scale(1.02); }
  23% { transform: translate3d(-4rem, -9rem, 0) scale(0.94); }
  55% { transform: translate3d(-11rem, 2rem, 0) scale(1.11); }
  79% { transform: translate3d(2rem, 9rem, 0) scale(0.96); }
}

/* Let the existing emblem extend past the viewport, as in the reference. */
body::before {
  top: -5.5rem;
  right: -19vw;
  width: clamp(420px, 44vw, 700px);
  background-size: contain;
  pointer-events: none;
}

/* Old section lights caused visible edges when CMS content changed height. */
main .shadow-circle,
main .shadow-ellipse {
  display: none !important;
}

@media (max-width: 767.49px) {
  body::before {
    top: -1.5rem;
    right: -36vw;
    width: 78vw;
  }

  .site-ambient .ambient-orb {
    width: min(90vw, 30rem);
    filter: blur(22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-ambient .ambient-orb {
    animation: none;
  }
}

main > section {
  background: transparent;
}

/* Stars use the same three brand colors throughout the page. */
main .icon-sparkle-star,
main .icon-sparkle-star::before {
  color: var(--site-star-color, #fff) !important;
  text-shadow: 0 0 0.7rem var(--site-star-glow, rgba(255, 255, 255, 0.7));
}

/* Make the decorative stars read as part of the warmer, more active backdrop. */
main .icon-sparkle-star {
  transform: scale(1.14);
  filter: drop-shadow(0 0 0.35rem var(--site-star-glow, rgba(255, 255, 255, 0.7)));
}

main .star-animation,
main .star-animation-two,
main .star-animation-four {
  animation-duration: 4.8s;
}

main .star-animation-three,
main .star-animation-diagonal,
main .star-animation-diagonal-reverse {
  animation-duration: 7s;
}

.star-layer .star {
  width: 15px;
  height: 15px;
}

/* At the top this is transparent; scrolling gradually adds a glass surface. */
.main-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
  transition: background-color 180ms linear, backdrop-filter 180ms linear;
}

.main-header.is-scrolled {
  background: rgba(29, 43, 73, var(--header-alpha, 0));
  backdrop-filter: blur(var(--header-blur, 0px)) saturate(145%);
  -webkit-backdrop-filter: blur(var(--header-blur, 0px)) saturate(145%);
}

@media (min-width: 991.5px) {
  .main-header .header-content .header-content-middle .nav-items {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
}

@media (min-width: 991.5px) and (max-width: 1199.49px) {
  .main-header .header-content .header-content-middle {
    width: 64%;
    flex: 0 1 64%;
    min-width: 0;
  }

  .main-header .header-content .header-content-middle .nav-items {
    justify-content: center;
    gap: 0.65rem;
  }

  .main-header .header-content .header-content-right .school-logo {
    width: 5.5rem;
  }
}

/* Hero: keep the poster visible while the first video frame is fetched. */
.banner .banner-photo-mask {
  isolation: isolate;
  background: #24365a;
}

.banner .banner-photo-mask .banner-photo {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Both header actions share one footprint at icon breakpoints. */
.main-header .header-content .header-content-left .header-left-btn.login-btn,
.main-header .header-content .header-content-left .header-left-btn.signin-btn {
  width: 3.9rem;
  min-width: 3.9rem;
  max-width: 3.9rem;
  height: 3.9rem;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 1.2rem;
  gap: 0;
  flex: 0 0 3.9rem;
  position: relative;
  overflow: visible;
  box-shadow: 0 0.45rem 1rem rgba(11, 22, 51, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.main-header .header-content .header-content-left .header-left-btn.login-btn:hover,
.main-header .header-content .header-content-left .header-left-btn.signin-btn:hover {
  transform: translateY(-0.25rem) scale(1.04);
  filter: brightness(1.08) saturate(1.12);
  box-shadow: 0 0.9rem 1.7rem rgba(10, 20, 48, 0.34), 0 0 0 0.22rem rgba(255, 255, 255, 0.14);
}

.main-header .header-content .header-content-left .header-left-btn.login-btn::after,
.main-header .header-content .header-content-left .header-left-btn.signin-btn::after {
  content: "";
  position: absolute;
  inset: -80% 45% auto -70%;
  width: 55%;
  height: 260%;
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(24deg) translateX(-180%);
  transition: transform 420ms ease;
}

.main-header .header-content .header-content-left .header-left-btn.login-btn:hover::after,
.main-header .header-content .header-content-left .header-left-btn.signin-btn:hover::after {
  transform: rotate(24deg) translateX(430%);
}
.main-header .header-content .header-content-left .header-left-btn.signin-btn .btn-text {
  display: none !important;
  white-space: nowrap;
}
.main-header .header-content .header-content-left .header-left-btn.signin-btn .header-icons {
  margin: 0;
  font-size: 1.15rem;
}

@media (min-width: 1200px) {
  .main-header .header-content .header-content-left .header-left-btn.login-btn,
  .main-header .header-content .header-content-left .header-left-btn.signin-btn {
    width: 13rem;
    min-width: 13rem;
    max-width: 13rem;
    height: 4rem;
    aspect-ratio: auto;
    padding: 0 0.8rem;
    flex: 0 0 13rem;
  }

  .main-header .header-content .header-content-left .header-left-btn.signin-btn .btn-text {
    display: inline !important;
  }
}

/* News */
.news {
  position: relative;
  overflow: visible;
}

.news .news-content {
  min-height: 44rem;
  padding: 5.5rem 0 4rem;
}

.news .title-box {
  position: relative;
  z-index: 2;
  margin-bottom: 2.25rem;
  text-align: center;
}

.news .title-box .section-title {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 800;
}

.news .title-box .subtitle-container {
  justify-content: center !important;
  margin-top: 0.8rem;
}

.news .title-box .section-subtitle {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.8rem, 1vw, 1rem);
}

.news .title-box .line {
  width: 4rem;
  background-color: rgba(255, 255, 255, 0.75);
}

.news .news-dropdown {
  position: relative;
  z-index: 12;
  width: 100%;
  justify-content: flex-start;
  margin: 0 0 2.2rem;
}

.news .news-dropdown .news-dropdown-title {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.news .news-dropdown .dropdown-toggle {
  min-width: 15rem;
  height: 3.25rem;
  padding-inline: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 109, 44, 0.95), rgba(237, 91, 32, 0.9));
  box-shadow: 0 0.9rem 2rem rgba(10, 26, 59, 0.22);
}

.news .news-dropdown .dropdown-menu {
  top: calc(100% + 0.5rem);
  right: 0;
  left: auto;
  width: min(32rem, calc(100vw - 2rem));
  min-width: min(32rem, calc(100vw - 2rem));
  max-height: min(24rem, 55vh);
  margin: 0;
  padding: 0.65rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.6rem;
  background: rgba(34, 49, 80, 0.72);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  box-shadow: 0 1.8rem 4rem rgba(6, 18, 43, 0.32);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.38) transparent;
}

.news .news-dropdown .dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.news .news-dropdown .dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.news .news-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.news .news-dropdown .dropdown-menu .dropdown-item {
  width: 100%;
  min-width: 0;
  margin: 0.2rem 0;
  border-radius: 1rem;
  background: transparent;
  overflow: hidden;
}

.news .news-dropdown .dropdown-menu .dropdown-item:hover,
.news .news-dropdown .dropdown-menu .dropdown-item.active {
  background: rgba(255, 255, 255, 0.12);
}

.news .news-dropdown .dropdown-menu .dropdown-item-link {
  justify-content: flex-start !important;
  width: 100%;
  min-width: 0;
  min-height: 3.7rem;
  padding: 0.8rem 1rem;
  color: #fff;
  gap: 0.9rem;
  font-size: 1.25rem;
  line-height: 1.55;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.news .news-dropdown .dropdown-menu .dropdown-item .dropdown-item-link .check-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0.4rem;
  background: transparent;
}

.news .news-dropdown .dropdown-menu .dropdown-item.active .dropdown-item-link .check-icon,
.news .news-dropdown .dropdown-menu .dropdown-item-link.active-check .check-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-color: #fff;
  border-radius: 0.4rem;
  background: #fff;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.13);
}

.news .news-dropdown .dropdown-menu .menu-divider {
  display: none;
}

.news .news-slider {
  position: relative;
  z-index: 2;
  padding: 0.5rem 0 3.2rem;
}

.news .news-slider .news-slide {
  height: 42rem;
  min-height: 42rem;
  aspect-ratio: auto;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0;
  border: 0;
  border-radius: 2.8rem;
  padding: 0.65rem 0.65rem 1.25rem;
  background: #d2bcb4 !important;
  color: #17191d;
  box-shadow: 0 1.2rem 2.6rem rgba(9, 22, 49, 0.22);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(.2, .75, .25, 1), box-shadow 300ms ease;
}

.news .news-slider .swiper-slide:hover .news-slide,
.news .news-slider .news-slide:focus-visible {
  transform: translateY(-0.7rem) scale(1.015);
  box-shadow: 0 2.2rem 3.8rem rgba(8, 19, 42, 0.31);
}

.news .news-slider .news-slide::before {
  display: none !important;
}

.news .news-slider .news-slide-img-top-container {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: 2.1rem;
  overflow: hidden;
}

.news .news-slider .news-slide-img-top-container .news-slide-img-top {
  transition: transform 450ms cubic-bezier(.2, .75, .25, 1);
}

.news .news-slider .news-slide:hover .news-slide-img-top,
.news .news-slider .news-slide:focus-visible .news-slide-img-top {
  transform: scale(1.045);
}

.news .news-slider .news-slide .news-slide-middle {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 1.15rem 0.7rem 0.3rem;
  gap: 1rem;
  align-items: stretch !important;
  justify-content: flex-start !important;
  overflow: hidden;
}

.news .news-slider .news-slide .news-slide-middle .news-slide-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  width: 100%;
  min-height: 0;
  margin: 0;
  color: #813a2e;
  font-size: 1.75rem;
  font-weight: 750;
  line-height: 1.55;
  text-align: right;
  overflow: hidden;
}

.news .news-slider .news-slide .news-slide-middle .news-slide-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  color: #1c1b1d;
  font-size: 1.45rem;
  line-height: 1.85;
  text-align: justify;
  overflow: hidden;
}

.news .news-slider .news-slide .news-slide-divider {
  display: none;
}

.news .news-slider .news-slide .news-slide-bottom {
  width: 100%;
  min-height: 3rem;
  margin-top: auto;
  padding-inline: 0.7rem;
  align-self: stretch !important;
  color: #1c1b1d;
}

.news .news-slider .news-slide .news-slide-bottom .news-slide-date {
  color: #17191d;
  font-size: 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

.news .news-slider .news-slide .news-slide-button {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none !important;
  box-shadow: none !important;
  color: #813a2e !important;
  font-size: 1.5rem;
  font-weight: 650;
  transition: color 200ms ease;
}

.news .news-slider .news-slide .news-slide-button .more-txt {
  font-size: 1em;
}

.news .news-slider .news-slide .news-slide-button .icon-chevron-left {
  transition: transform 220ms ease;
}

.news .news-slider .news-slide:hover .news-slide-button,
.news .news-slider .news-slide:focus-visible .news-slide-button {
  color: #b74c2c !important;
}

.news .news-slider .news-slide:hover .news-slide-button .icon-chevron-left,
.news .news-slider .news-slide:focus-visible .news-slide-button .icon-chevron-left {
  transform: translateX(-0.4rem);
}

.news .slider-navigation {
  position: relative;
  z-index: 2;
  margin-top: 0.25rem;
}

@media (min-width: 992px) {
  .news .news-dropdown {
    width: auto;
    align-self: flex-start;
  }

  .news .news-dropdown .dropdown-menu {
    right: 0;
  }
}

@media (min-width: 1200px) {
  .news .news-content {
    padding-top: 6.5rem;
  }

  .news .news-slider .news-slide {
    height: 40rem;
    min-height: 40rem;
  }
}

@media (max-width: 575.49px) {
  .news .news-content {
    min-height: 0;
    padding-block: 3.5rem 3rem;
  }

  .news .news-dropdown {
    align-items: stretch;
    flex-direction: column;
  }

  .news .news-dropdown .dropdown-toggle {
    width: 100%;
  }

  .news .news-slider .news-slide {
    height: 46rem;
    min-height: 46rem;
  }

  .news .news-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    width: min(32rem, calc(100vw - 3rem));
    min-width: 0;
  }
}

/* Teachers / Soroush Shidaei */
.teachers {
  overflow: clip;
}

.teachers .teachers-container {
  min-height: 53rem;
  padding: 6rem 0 4rem;
}

.teachers .title-box {
  position: relative;
  z-index: 4;
  margin-bottom: 0;
  text-align: center;
}

.teachers .title-box .section-title {
  font-size: clamp(1.85rem, 3.2vw, 3.25rem);
  font-weight: 800;
}

.teachers .title-box .subtitle-container {
  justify-content: center !important;
  margin-top: 0.8rem;
}

.teachers .teachers-intro {
  position: relative;
  z-index: 4;
  max-width: 44rem;
  margin: 1.15rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 2.1;
}

.teachers .teachers-container .teachers-slider {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 36rem;
  margin-top: 1.8rem;
  padding: 1rem 0 2.5rem;
}

.teachers .teachers-container .teachers-slider .swiper-slide {
  min-height: 32rem;
  aspect-ratio: auto;
  overflow: visible;
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide {
  width: 100%;
  min-height: 30rem;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2.1rem;
  background: linear-gradient(160deg, rgba(71, 78, 123, 0.92), rgba(44, 56, 99, 0.96));
  box-shadow: none !important;
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide::before {
  height: 65%;
  background: linear-gradient(180deg, rgba(8, 15, 33, 0) 0%, rgba(8, 15, 33, 0.18) 35%, rgba(8, 15, 33, 0.86) 100%);
  transition: none;
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide:hover::before {
  bottom: 0;
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-photo-container,
.teachers .teachers-container .teachers-slider .swiper-slide .teacher-photo {
  width: 100%;
  height: 100%;
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-photo {
  object-fit: cover;
  object-position: center top;
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide .teacher-info {
  bottom: 1.1rem;
  gap: 0.35rem;
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide .teacher-info .teacher-name {
  font-size: clamp(1.8rem, 2.15vw, 3rem);
}

.teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide .teacher-info .teacher-info-span,
.teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide .teacher-info .teacher-experience {
  font-size: clamp(1.15rem, 1.1vw, 1.5rem);
}

.teachers .teachers-container .teachers-slider .swiper-slide.swiper-slide-active .teacher-slide {
  border-color: rgba(255, 255, 255, 0.75);
}

.teachers .extra-info-box-right,
.teachers .extra-info-box-left {
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.teachers .extra-info-box-left {
  align-content: flex-start;
  gap: 0.8rem;
}

.teachers .extra-info-box-left .teacher-summary {
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 1.15vw, 1.4rem);
  line-height: 1.8;
  text-align: right;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.teachers .teachers-slider-info {
  position: relative;
  z-index: 6;
  width: auto;
  margin: 0.75rem 0 0;
}

.teachers .teachers-slider-info .teachers-slider-info-link {
  min-width: 14rem;
  border-radius: 0.95rem;
}

@media (max-width: 991.49px) {
  .teachers .teachers-container {
    min-height: 0;
    padding-block: 4rem 3rem;
  }

  .teachers .teachers-container .teachers-slider {
    min-height: 0;
  }

  .teachers .teachers-container .teachers-slider .swiper-wrapper,
  .teachers .teachers-container .teachers-slider .swiper-slide {
    height: clamp(32rem, 46vw, 40rem);
    min-height: 0;
  }

  .teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (max-width: 575.49px) {
  .teachers .teachers-container .teachers-slider .swiper-wrapper,
  .teachers .teachers-container .teachers-slider .swiper-slide {
    height: clamp(35rem, 110vw, 45rem);
  }
}

@media (min-width: 992px) {
  .teachers .teachers-container {
    --teacher-row-width: min(calc(100vw - 6rem), 140rem);
    --teacher-card-height: clamp(28rem, 24vw, 34rem);
    --teacher-stagger: clamp(12rem, 13vw, 18rem);
  }

  .teachers .teachers-slider-info {
    margin-top: 10rem;
  }

  .teachers .teachers-container .teachers-slider {
    width: var(--teacher-row-width);
    max-width: none;
    min-height: calc(var(--teacher-card-height) + var(--teacher-stagger) + 6rem);
    padding: 0;
    overflow: visible;
    left: max(0px, calc((var(--teacher-row-width) - 100%) / 2));
  }

  .teachers .teachers-container .teachers-slider .swiper-wrapper,
  .teachers .teachers-container .teachers-slider .swiper-slide {
    height: calc(var(--teacher-card-height) + var(--teacher-stagger));
    min-height: 0;
    aspect-ratio: auto;
  }

  .teachers .teachers-container .teachers-slider .swiper-slide .teacher-slide {
    flex: 0 0 100%;
    width: 100%;
    height: var(--teacher-card-height);
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
  }

  .teachers .teachers-container .teachers-slider .swiper-slide.swiper-slide-prev .teacher-slide,
  .teachers .teachers-container .teachers-slider .swiper-slide.swiper-slide-next .teacher-slide {
    align-self: center;
    position: relative;
    top: clamp(2.4rem, 2.6vw, 3.6rem);
  }

  .teachers .teachers-container .teachers-slider .swiper-slide.swiper-slide-active .teacher-slide {
    align-self: flex-end;
  }

  .teachers .teachers-container .teachers-slider .swiper-slide.swiper-slide-prev-prev .teacher-slide,
  .teachers .teachers-container .teachers-slider .swiper-slide.swiper-slide-next-next .teacher-slide {
    align-self: flex-start;
    opacity: 1;
  }

  .teachers .extra-info-box-right,
  .teachers .extra-info-box-left {
    top: calc(var(--teacher-card-height) + 1.2rem);
    bottom: auto;
    width: calc((var(--teacher-row-width) - 4rem) / 5);
    height: var(--teacher-card-height);
    min-height: 0;
    aspect-ratio: auto;
  }

  .teachers .extra-info-box-right {
    right: 0;
  }

  .teachers .extra-info-box-left {
    left: 0;
  }
}

/* About actions: both links are independently controlled by CMS fields. */
.about-us .about-us-actions {
  width: 100%;
}

.about-us .about-us-actions .about-us-link {
  min-width: 11rem;
  min-height: 3rem;
  padding-inline: 1.15rem;
}

.about-us .about-us-actions .about-us-link-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(36, 54, 90, 0.55);
}

.about-us .about-us-actions .about-us-link-secondary:hover {
  color: #24365a;
  background: var(--beige-clr-1);
}

/* Founder speech: a clear central video with supporting side cards. */
.founder-speech {
  position: relative;
  overflow: hidden;
}

.founder-speech .founder-speech-container {
  min-height: 47rem;
  padding: 7rem 0 6rem;
}

.founder-speech .title-box {
  position: relative;
  z-index: 3;
  text-align: center;
}

.founder-speech .title-box .section-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
}

.founder-speech .title-box .subtitle-container {
  justify-content: center !important;
  margin-top: 0.8rem;
}

.founder-speech .founder-speech-slider-container {
  position: relative;
  z-index: 3;
  width: min(100%, 78rem);
  margin-top: 2.2rem;
}

.founder-speech .founder-speech-slider {
  padding: 2.5rem 0 0;
  overflow: visible;
}

.founder-speech .founder-speech-slider .swiper-wrapper {
  align-items: center;
}

.founder-speech .founder-speech-slider .swiper-slide {
  display: flex;
  align-items: center;
  opacity: 0.78;
  pointer-events: auto;
  transition: transform 500ms ease, opacity 500ms ease, filter 500ms ease;
}

.founder-speech .founder-speech-slider .swiper-slide .founder-speech-slide,
.founder-speech .founder-speech-slider .swiper-slide-active .founder-speech-slide {
  width: 100%;
  transform: none;
}

.founder-speech .founder-speech-slider .swiper-slide .founder-speech-slide::after {
  opacity: 0;
  transform: translateX(-50%) scale(1.12);
}

.founder-speech .founder-speech-slider .swiper-slide .plyr {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid rgba(228, 214, 203, 0.5);
  border-radius: 1.35rem;
  background: rgba(24, 37, 70, 0.66);
  box-shadow: 0 1rem 2.2rem rgba(7, 19, 46, 0.26);
}

.founder-speech .founder-speech-slider .swiper-slide .founder-speech-video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.founder-speech .founder-speech-slider .swiper-slide .founder-speech-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid rgba(228, 214, 203, 0.5);
  border-radius: 1.35rem;
  box-shadow: 0 1rem 2.2rem rgba(7, 19, 46, 0.26);
}

.founder-speech .founder-speech-slider .swiper-slide-active {
  z-index: 10;
  opacity: 1;
  transform: translateY(-0.85rem) scale(1.12) !important;
  filter: none;
}

.founder-speech .founder-speech-slider .swiper-slide-active .founder-speech-slide::after {
  opacity: 1;
}

.founder-speech .founder-speech-slider .swiper-slide-active .plyr {
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 3rem rgba(9, 20, 48, 0.4);
}

.founder-speech .founder-speech-slider .slider-navigation {
  margin-top: 3.4rem;
}

@media (max-width: 767.49px) {
  .founder-speech .founder-speech-container {
    min-height: 0;
    padding-block: 4rem 3.5rem;
  }

  .founder-speech .founder-speech-slider {
    padding-inline: 1rem;
  }

  .founder-speech .founder-speech-slider .swiper-slide-active {
    transform: translateY(-0.35rem) scale(1.02) !important;
  }
}

/* Keep the media inside the screen opening of the laptop artwork. */
.founder-speech .founder-speech-slider .swiper-slide .founder-speech-slide {
  position: relative;
  width: 100% !important;
  aspect-ratio: 503 / 289;
  background: url(../images/index/video-frame.svg) center / contain no-repeat;
  transform: none !important;
  filter: drop-shadow(0 1rem 1.5rem rgba(7, 19, 46, 0.3));
}

.founder-speech .founder-speech-slider .swiper-slide .founder-speech-empty-media {
  background: #020712 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.founder-speech .founder-side-preview {
  background: url(../images/index/video-frame.svg) center / contain no-repeat !important;
  opacity: 0.7;
}

.founder-speech .founder-speech-slider .swiper-slide .founder-speech-slide::after {
  display: none !important;
}

.founder-speech .founder-speech-slider .swiper-slide .plyr,
.founder-speech .founder-speech-slider .swiper-slide .founder-speech-poster {
  position: absolute;
  top: 4%;
  left: 9.5%;
  width: 81% !important;
  height: 88% !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0.35rem !important;
  box-shadow: none !important;
  object-fit: cover;
  overflow: hidden;
}

.founder-speech .founder-speech-slider .swiper-slide .plyr video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 767.5px) {
  .founder-speech.has-single-speech .founder-speech-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 70rem);
    margin-inline: auto;
  }

  .founder-speech.has-single-speech .founder-speech-slider {
    flex: 0 0 54%;
    width: 54% !important;
    padding-top: 0;
    overflow: visible;
    z-index: 2;
  }

  .founder-speech.has-single-speech .swiper-slide {
    width: 100% !important;
  }

  .founder-speech.has-single-speech .swiper-slide-active {
    transform: none !important;
  }

  .founder-speech .founder-side-preview {
    position: relative;
    flex: 0 0 23%;
    width: 23%;
    aspect-ratio: 503 / 289;
    background: url(../images/index/video-frame.svg) center / contain no-repeat;
    opacity: 0.72;
    transform: translateY(1rem) scale(0.94);
    filter: drop-shadow(0 0.75rem 1.2rem rgba(7, 19, 46, 0.25));
  }

  .founder-speech .founder-side-preview img {
    position: absolute;
    top: 4%;
    left: 9.5%;
    width: 81%;
    height: 88%;
    object-fit: cover;
    border-radius: 0.25rem;
  }

  .founder-speech.has-single-speech .slider-navigation {
    margin-top: 1.25rem;
  }

  .founder-speech.has-single-speech .slider-navigation .nav-btn {
    display: none;
  }
}

@media (max-width: 767.49px) {
  .founder-speech .founder-side-preview {
    display: none;
  }
}

/* Empty media surfaces stay intentionally clean when no reliable image exists. */
.founder-speech .founder-side-preview {
  background: url(../images/index/video-frame.svg) center / contain no-repeat !important;
  opacity: 0.66;
}

.created-by {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #12388c 0%, #1559bd 42%, #098bd1 72%, #1c63c7 100%);
  background-size: 220% 220%;
  animation: created-by-gradient 12s ease-in-out infinite alternate;
}

.created-by::before,
.created-by::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: created-by-orb 10s ease-in-out infinite alternate;
}

.created-by::before {
  top: -13rem;
  left: 10%;
  background: radial-gradient(circle, rgba(75, 199, 255, 0.75), transparent 68%);
}

.created-by::after {
  right: 4%;
  bottom: -15rem;
  background: radial-gradient(circle, rgba(105, 126, 255, 0.68), transparent 68%);
  animation-delay: -4s;
}

@keyframes created-by-gradient {
  0% { background-position: 0% 45%; }
  50% { background-position: 100% 55%; }
  100% { background-position: 20% 100%; }
}

@keyframes created-by-orb {
  0% { transform: translate3d(-3rem, 1rem, 0) scale(0.82); }
  50% { transform: translate3d(5rem, 3rem, 0) scale(1.12); }
  100% { transform: translate3d(-1rem, -2rem, 0) scale(0.96); }
}

.created-by .main-container {
  position: relative;
  z-index: 1;
}

.created-by .abrisham-logo .abrisham-logo-img {
  width: 6.5rem;
  height: 4.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0.45rem 0.8rem rgba(8, 28, 85, 0.32));
}

.created-by .abrisham-logo {
  position: static;
  justify-content: center;
  min-height: 10rem;
}

.page-footer .footer-mascot {
  position: absolute;
  z-index: 2;
  left: 50%;
  right: auto;
  bottom: -3rem;
  top: auto;
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  transform: translateX(-50%) rotate(-4deg);
  filter: drop-shadow(0 0.55rem 0.8rem rgba(8, 28, 85, 0.35));
}

.page-footer {
  overflow: visible !important;
  position: relative;
  z-index: 3;
}

.created-by .abrisham-logo .abrisham-logo-img {
  align-self: center;
  width: 8rem;
  height: 5.5rem;
}

.created-by .footer-top .footer-logo-box {
  align-self: center;
  margin-block: auto;
}

.page-footer .logo-social-media {
  align-self: stretch;
  justify-content: center !important;
}

/* Restore the colorful quick-access markers beside each school link. */
.page-footer #first .footer-li .footer-link::before {
  content: "";
  display: inline-block;
  width: 0.52rem;
  height: 0.52rem;
  margin-inline-end: 0.55rem;
  border-radius: 50%;
  background: #42d9cf;
  box-shadow: 0 0 0.45rem currentColor;
  vertical-align: middle;
}

.page-footer #first .footer-li:nth-child(4n + 2) .footer-link::before { background: #e6a7f4; }
.page-footer #first .footer-li:nth-child(4n + 3) .footer-link::before { background: #82d59b; }
.page-footer #first .footer-li:nth-child(4n) .footer-link::before { background: #f6a9cb; }

@media (max-width: 767.49px) {
  .page-footer .footer-mascot {
    left: 50%;
    right: auto;
    width: 9rem;
    height: 9rem;
    bottom: -2rem;
    top: auto;
    transform: translateX(-50%) rotate(-4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .created-by {
    animation: none;
  }

  .created-by::before,
  .created-by::after {
    animation: none;
  }
}

.created-by .footer-bottom-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.created-by .footer-bottom-btn:hover {
  color: #153b92;
  background: #fff;
  box-shadow: 0 0.45rem 1.1rem rgba(6, 28, 90, 0.28);
}

/* A single playable laptop at a time; adjacent videos stay inside the slider. */
.founder-speech:not(.has-single-speech) .founder-speech-slider {
  width: min(100%, 42rem);
  overflow: hidden;
  margin-inline: auto;
}
.founder-speech:not(.has-single-speech) .founder-speech-slider .swiper-slide-active {
  transform: none !important;
}

/* The centre item is the Soroush Sheydaei identity mark rather than a
   portrait card. Keep its CMS image fully visible and suppress card text. */
.teachers .teachers-slider .swiper-slide.teacher-position-2 .teacher-slide {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.teachers .teachers-slider .swiper-slide.teacher-position-2 .teacher-photo {
  object-fit: contain;
  object-position: center;
  padding: 1rem;
}

.teachers .teachers-slider .swiper-slide.teacher-position-2 .teacher-info {
  display: none !important;
}

/* Fill the existing card without changing its dimensions. */
.teachers .teachers-slider .teacher-slide .teacher-photo-container {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}

.teachers .teachers-slider .teacher-slide .teacher-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.teachers .teachers-slider .swiper-slide.teacher-position-2 .teacher-photo {
  object-fit: contain !important;
  object-position: center !important;
  padding: 1rem;
}

/* Keep the header action buttons clean; the shine pseudo-element created the
   stray white lines above the buttons while hovering. */
.main-header .header-content .header-content-left .header-left-btn.login-btn::after,
.main-header .header-content .header-content-left .header-left-btn.signin-btn::after,
.main-header .header-content .header-content-left .header-left-btn.login-btn::before,
.main-header .header-content .header-content-left .header-left-btn.signin-btn::before {
  display: none !important;
  content: none !important;
}
/* Use the available mobile slide width and keep the about summary compact. */
@media (max-width: 575.98px) {
  .news .news-slider .swiper-slide .news-slide {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0;
  }
}
@media (max-width: 767.98px) {
  .about-us .about-us-container .about-us-description .about-us-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
}
@media (min-width: 768px) {
  .gratuated .graduated-container .graduated-thumb-slider-container .graduated-thumbs-slider .swiper-wrapper .swiper-slide {
    box-sizing: border-box;
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3) !important;
    max-width: calc(100% / 3);
    margin-inline: 0 !important;
  }
  .gratuated .graduated-thumbs-slider .swiper-slide .graduated-photo {
    max-width: 100%;
  }
}
.about-us .about-us-actions .about-us-link,
.banner .banner-container .banner-description .banner-signin-link {
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
@media (hover: hover) {
  .about-us .about-us-actions .about-us-link:hover,
  .banner .banner-container .banner-description .banner-signin-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 8px 18px rgba(12, 24, 48, 0.25);
  }
}
.about-us .about-us-actions .about-us-link:focus-visible,
.banner .banner-container .banner-description .banner-signin-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
@media (max-width: 767.98px) {
  .news .news-dropdown .dropdown-toggle {
    height: auto;
    min-height: 48px;
    padding-block: 12px;
  }
  .news .title-box .section-title {
    font-size: 26px;
    line-height: 1.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-us .about-us-actions .about-us-link,
  .banner .banner-container .banner-description .banner-signin-link {
    transition: none;
    transform: none !important;
  }
}
@media (max-width: 991.49px) {
  .main-header .header-content .header-content-middle {
    z-index: 20;
  }
  .main-header .header-content .header-content-middle.open .nav-items {
    background: #2d426b !important;
  }
  .main-header .header-content .header-content-left {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 767.98px) {
  .teachers .teachers-container .title-box .section-title {
    font-size: 28px;
    line-height: 1.4;
  }
}
 