:root {
  --navy: #080b94;
  --navy-2: #060890;
  --navy-3: #1014aa;
  --navy-4: #1f23c7;
  --navy-5: #0041d5;
  --navy-6: #1e5be6;
  --navy-7: #2586f8;
  --cyan: #22bceb;
  --cyan-2: #00b3ff;
  --ink: #111827;
  --muted: #5b6475;
  --line: #eaebf4;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-footer: #f5f6f8;
  --radius: 20px;
  --shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  --container: 1200px;
  --font: "Vazirmatn", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar {
  background: var(--navy);
  min-height: 46px;
  color: #f7f7f7;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
}

.topbar__social,
.topbar__tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar__social a {
  opacity: 0.92;
  font-size: 0.85rem;
}

.topbar__social a:hover {
  color: var(--cyan);
}

.search-box {
  display: flex;
  align-items: center;
  width: 110px;
  background: var(--navy);
  border-radius: 20px;
  overflow: hidden;
  transition: width 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-box:focus-within {
  width: 200px;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.35rem 0.85rem;
  outline: none;
}

.search-box input::placeholder {
  color: #fff;
  opacity: 0.9;
}

.search-box button {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lang {
  position: relative;
}

.lang__btn {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}

.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: 100%;
  min-width: 126px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lang__menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  color: #000;
}

.lang__menu a:hover {
  background: #f1f1f1;
}

.main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand img {
  width: min(206px, 48vw);
  height: auto;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admit {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  min-width: 170px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.admit__icon {
  color: var(--navy);
  display: grid;
  place-items: center;
}

.admit small {
  display: block;
  color: var(--navy);
  font-size: 0.75rem;
  line-height: 1.3;
}

.admit strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.3;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.nav {
  border-top: 1px solid #f0f1f6;
  background: #fff;
}

.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1rem;
  padding: 0.55rem 0 0.75rem;
}

.nav a {
  font-size: 0.92rem;
  color: #000;
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav a:hover::after,
.nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 3px;
  background: var(--cyan);
}

.nav__home {
  color: var(--cyan) !important;
  font-size: 1.15rem !important;
}

/* Hero */
.hero {
  position: relative;
  background: #eef3fb;
}

.hero__slides {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  min-height: clamp(220px, 42vw, 490px);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__slide.is-active {
  opacity: 1;
  position: relative;
}

.hero__slide img {
  width: 100%;
  height: clamp(220px, 42vw, 490px);
  object-fit: cover;
}

.hero__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}

.hero__dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #0f7cc1;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero__dots button.is-active {
  width: 32px;
  height: 10px;
  border-radius: 20px;
  background: var(--cyan);
  border-color: #fff;
}

/* Quick services */
.services {
  padding: 1.75rem 0 0.5rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 154px;
  padding: 1.4rem 0.6rem;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-10px);
}

.service:nth-child(1) { background: var(--navy-2); }
.service:nth-child(2) { background: var(--navy-3); }
.service:nth-child(3) { background: var(--navy-4); }
.service:nth-child(4) { background: var(--navy-5); }
.service:nth-child(5) { background: var(--navy-6); }
.service:nth-child(6) { background: var(--navy-7); }

.service strong {
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section__title {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 1.5rem;
}

.section__title strong,
.section__title h1 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 2.2;
  color: var(--navy);
  font-weight: 700;
}

.section__title strong::after,
.section__title h1::after {
  content: "";
  display: block;
  width: 53px;
  height: 3px;
  background: var(--cyan);
  margin-top: 0.15rem;
}

.section__title--light {
  color: #fff;
  align-items: center;
  text-align: center;
}

.section__title--light strong {
  color: #fff;
}

.section__title--light strong::after {
  margin-inline: auto;
}

.see-all {
  position: absolute;
  inset-inline-start: 0;
  top: 0.35rem;
  color: #fff;
  border: 2px solid #fff;
  background: #404143;
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

/* Video / rails */
.video-rail,
.centers-rail,
.articles-rail,
.doctors-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.video-rail::-webkit-scrollbar,
.centers-rail::-webkit-scrollbar,
.articles-rail::-webkit-scrollbar,
.doctors-rail::-webkit-scrollbar {
  display: none;
}

.video-card,
.center-card,
.article-card,
.doctor-card {
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: #ebeeed;
  position: relative;
  transition: transform 0.3s ease;
}

.video-card:hover,
.center-card:hover,
.article-card:hover,
.doctor-card:hover {
  transform: translateY(-12px);
}

.video-card img,
.center-card img,
.article-card img,
.doctor-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  inset-inline-start: 50%;
  top: 38%;
  translate: -50% -50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cyan-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.video-card strong,
.center-card strong {
  display: block;
  padding: 0.85rem 0.9rem 1rem;
  font-size: 0.95rem;
  text-align: center;
  background: #ebeeed;
}

.center-card {
  border-radius: var(--radius);
}

.center-card img {
  aspect-ratio: 3 / 4;
}

.center-card strong {
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 1rem;
  padding: 0.55rem 0.7rem;
  background: rgba(8, 11, 148, 0.9);
  color: #fff;
  border-radius: 8px;
}

.rail-nav {
  width: 106px;
  height: 48px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.rail-nav button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.rail-nav i {
  width: 1.5px;
  height: 24px;
  background: var(--line);
}

.rail-nav--light {
  background: rgba(255, 255, 255, 0.95);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.about__list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 5px;
  font-size: 0.92rem;
  transition: background 0.35s ease, color 0.35s ease;
}

.about__list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.about__list li:hover {
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
}

.about__list li:hover::before {
  background: #fff;
}

.about__visual img {
  width: 100%;
  border-radius: 16px;
}

/* Social */
.social-band {
  padding: 1.5rem 0 2.5rem;
  text-align: center;
}

.social-band p {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.social-band__icons {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-band__icons a {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-band__icons a:hover {
  transform: translateY(-4px);
  background: #fff;
  color: var(--cyan);
}

/* Articles */
.articles {
  background: var(--navy);
  color: #fff;
}

.articles-rail {
  grid-auto-columns: minmax(250px, 1fr);
}

.article-card {
  background: #fff;
  color: #111;
}

.article-card img {
  aspect-ratio: 16 / 10;
}

.article-card h3 {
  margin: 0;
  min-height: 110px;
  padding: 1rem;
  background: #404143;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.7;
}

/* Doctors */
.doctors-rail {
  grid-auto-columns: minmax(230px, 1fr);
}

.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.doctor-card img {
  aspect-ratio: 3 / 4;
}

.doctor-card__body {
  padding: 1rem;
}

.doctor-card__body h3 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1rem;
}

.doctor-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0 1.75rem;
}

.footer-title {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.footer-title::after {
  content: "";
  display: inline-block;
  width: 53px;
  height: 3px;
  background: var(--cyan);
  margin-inline-start: 0.75rem;
  vertical-align: middle;
}

.footer-grid ul li {
  margin-bottom: 0.55rem;
}

.footer-grid a {
  color: #333;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--navy);
}

.footer-address,
.footer-contact {
  margin: 1rem 0 0;
  color: #444;
  font-size: 0.88rem;
}

.footer-meta {
  border-top: 1px solid #e4e7ee;
  background: #eef0f4;
}

.footer-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: #555;
}

.footer-meta img {
  opacity: 0.85;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1023px) {
  .topbar,
  .nav {
    display: none;
  }

  .nav.is-open {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--line);
  }

  .nav.is-open .nav__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 1rem;
  }

  .nav.is-open a {
    padding: 0.7rem 0;
    border-bottom: 1px solid #f3f4f8;
  }

  .menu-toggle {
    display: inline-block;
  }

  .admit small {
    display: none;
  }

  .admit {
    min-width: 0;
    padding: 0.55rem 0.7rem;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-cta .admit--web {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section__title strong,
  .section__title h1 {
    font-size: 1rem;
  }

  .see-all {
    position: static;
    margin-top: 0.75rem;
    align-self: center;
  }

  .social-band__icons a {
    width: 60px;
    height: 60px;
  }

  .footer-meta__inner {
    flex-direction: column;
    text-align: center;
  }
}
