/* ===== Design tokens ===== */
:root {
  --brand: #123c8c;
  --brand-dark: #0d2b63;
  --brand-light: #e8eefb;
  --accent: #e0a11b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(18, 60, 140, 0.08);
  --shadow-lg: 0 20px 45px rgba(18, 60, 140, 0.14);
  --container: 1180px;
  --header-h: 74px;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: inherit;
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-text strong { font-size: 16px; color: var(--brand); }
.brand-text small { font-size: 12.5px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-light); color: var(--brand); }
.main-nav a.active { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--brand); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(70px, 12vw, 130px) 0;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(224,161,27,.25), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,.06) 0 2px, transparent 3px);
  background-size: 60px 60px, 90px 90px;
  opacity: .6;
}
.hero-content { position: relative; text-align: center; }
.hero-logo {
  width: 96px; height: 96px; object-fit: contain; margin: 0 auto 18px;
  background: #fff; border-radius: 24px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.hero h1 { font-size: clamp(24px, 4.5vw, 42px); margin: 0 0 12px; font-weight: 800; }
.hero-sub { font-size: clamp(15px, 2.4vw, 19px); opacity: .92; margin: 0 auto 26px; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  margin-top: 26px;
  background: var(--accent);
  color: #3b2600;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  box-shadow: 0 8px 20px rgba(224,161,27,.35);
}

/* ===== Hero Slider ===== */
.slider-section { padding: clamp(28px, 5vw, 48px) 0 0; }
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--brand-dark);
}
.slides {
  display: flex;
  direction: ltr; /* keep track LTR; captions restored to RTL below */
  transition: transform .6s cubic-bezier(.5,.15,.15,1);
  will-change: transform;
}
.slide {
  position: relative;
  min-width: 100%;
  margin: 0;
}
.slide img {
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  object-fit: cover;
  display: block;
}
.slide-cap {
  position: absolute;
  inset-block-end: 0; inset-inline: 0;
  direction: rtl;
  text-align: start;
  padding: clamp(20px, 4vw, 40px);
  color: #fff;
  background: linear-gradient(to top, rgba(9,20,49,.85) 0%, rgba(9,20,49,.35) 55%, transparent 100%);
}
.cap-tag {
  display: inline-block;
  background: var(--accent);
  color: #3b2600;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.slide-cap h3 { margin: 0 0 6px; font-size: clamp(18px, 3vw, 26px); }
.slide-cap p { margin: 0; font-size: clamp(13px, 2vw, 16px); opacity: .92; }

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--brand);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: background .2s, transform .2s;
  z-index: 2;
}
.slider-btn:hover { background: #fff; }
.slider-btn.next { inset-inline-start: 16px; }
.slider-btn.prev { inset-inline-end: 16px; }

.slider-dots {
  position: absolute;
  inset-block-end: 14px; inset-inline-end: 50%;
  transform: translateX(50%);
  display: flex; gap: 8px; z-index: 2;
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer; transition: background .2s, width .2s;
}
.slider-dots button.active { background: #fff; width: 26px; border-radius: 6px; }

@media (max-width: 520px) {
  .slider-btn { width: 38px; height: 38px; font-size: 22px; }
  .slide-cap p { display: none; }
}

/* ===== Social links (Eitaa / Bale) ===== */
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap;
  transition: transform .15s, filter .2s;
}
.social-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.social-btn.eitaa { background: #ff6a00; box-shadow: 0 8px 20px rgba(255,106,0,.3); }
.social-btn.bale  { background: #0a8a6f; box-shadow: 0 8px 20px rgba(10,138,111,.3); }

.hero-social { justify-content: center; margin-top: 18px; }

.social-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-top: 30px;
  background: var(--brand-light); border: 1px solid #d6e0f6;
  border-radius: var(--radius); padding: 22px 26px;
}
.social-card h3 { margin: 0 0 4px; font-size: 18px; color: var(--brand); }
.social-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.footer-social .social-btn { padding: 9px 16px; font-size: 14px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #3b2600; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(224,161,27,.4); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ===== Sections ===== */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 46px; }
.eyebrow {
  display: inline-block;
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(22px, 3.6vw, 32px); margin: 0; }
.section-desc { color: var(--muted); margin-top: 10px; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text p { margin: 0 0 16px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-alt); padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.section-alt .feature-list li { background: #fff; }
.feature-list li span {
  background: var(--brand); color: #fff; font-weight: 700;
  min-width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 8px;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 26px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14px; }

/* ===== Chips / badges ===== */
.chip {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.chip-open { background: #e7f7ee; color: #157347; }
.chip-open::before { content: "● "; font-size: 10px; }
.chip-closed { background: #f1f5f9; color: #64748b; }
.chip-closed::before { content: "● "; font-size: 10px; }

/* ===== Major quick cards ===== */
.major-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.major-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid var(--c, var(--brand));
}
.major-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.major-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.major-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.major-card-body h3 { margin: 0; font-size: 17px; }

/* ===== Major detail blocks ===== */
.major-details { display: grid; gap: 34px; }
.major-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section-alt .major-block { background: #fff; }
.major-block.reverse .major-media { order: 2; }
.major-media { display: grid; gap: 12px; }
.major-media > img:first-child { border-radius: var(--radius-sm); aspect-ratio: 16/10; object-fit: cover; }
.media-sm { border-radius: var(--radius-sm); aspect-ratio: 21/9; object-fit: cover; }
.major-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.major-title h3 { margin: 0; font-size: 21px; color: var(--brand); }
.major-info p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14.5px; }
.inline-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.inline-list li { position: relative; padding-inline-start: 20px; font-size: 14.5px; }
.inline-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ===== Shift badges ===== */
.chip-morning { background: #fff4e0; color: #b45309; }
.chip-morning::before { content: "☀ "; }
.chip-afternoon { background: #eef1ff; color: #4338ca; }
.chip-afternoon::before { content: "☾ "; }
.card-shifts { display: flex; flex-wrap: wrap; gap: 6px; }
.title-shifts { display: inline-flex; gap: 6px; }
.major-card.hide, .major-block.hide { display: none; }

/* ===== Specialized teachers (inside major block) ===== */
.major-teachers { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.teachers-title { margin: 0 0 12px; font-size: 15px; color: var(--brand); }
.teacher-list { display: flex; flex-wrap: wrap; gap: 12px; }
.teacher {
  margin: 0; display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 6px;
}
.teacher img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.teacher b { display: block; font-size: 14px; }
.teacher span { color: var(--muted); font-size: 12.5px; }

/* ===== Schedule controls ===== */
.schedule-controls {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end;
  justify-content: center; margin-bottom: 30px;
}
.sched-field { display: flex; flex-direction: column; gap: 6px; }
.sched-field label { font-size: 13px; color: var(--muted); font-weight: 700; }
#schedMajor {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; min-width: 240px; cursor: pointer;
}
#schedMajor:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.grade-tabs, .shift-toggle { display: inline-flex; gap: 6px; background: var(--bg-alt); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.grade-tab, .shift-btn {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: 14px; padding: 8px 16px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.grade-tab:hover, .shift-btn:hover { color: var(--brand); }
.grade-tab.active, .shift-btn.active { background: var(--brand); color: #fff; }

/* ===== Schedule table ===== */
.schedule-wrap { max-width: 100%; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.schedule-table th, .schedule-table td {
  border: 1px solid var(--line); padding: 12px 10px; text-align: center; font-size: 14px;
}
.schedule-table thead th {
  background: var(--brand); color: #fff; font-weight: 700; position: sticky; top: 0;
}
.schedule-table thead th .p-num { display: block; font-size: 13.5px; }
.schedule-table thead th .p-time { display: block; font-size: 11.5px; opacity: .85; direction: ltr; }
.schedule-table th.corner { background: var(--brand-dark); }
.schedule-table th.day { background: var(--brand-light); color: var(--brand); font-weight: 700; white-space: nowrap; }
.schedule-table tbody tr:nth-child(even) td { background: #fafbfe; }
.schedule-table td.ws { background: #fff7ea !important; color: #92510a; font-weight: 700; }
.sched-note { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.major-more { align-self: flex-start; margin-top: 18px; }
.major-info { display: flex; flex-direction: column; align-items: flex-start; }
.major-info > * { width: 100%; }
.major-info > .major-more { width: auto; }

/* ===== Major standalone page ===== */
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--brand); }
.breadcrumb span { margin: 0 6px; opacity: .6; }
.major-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: clamp(36px, 7vw, 64px) 0;
}
.major-hero .container { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.major-hero h1 { font-size: clamp(24px, 4.5vw, 38px); margin: 0; }
.major-hero .lead { font-size: clamp(15px, 2.2vw, 18px); opacity: .92; margin: 0; max-width: 720px; }
.major-hero .badges { display: flex; flex-wrap: wrap; gap: 10px; }
.major-hero .chip { font-size: 13.5px; }

/* ===== People grids (students & staff) ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px;
  font-family: inherit; transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.people-grid.one { grid-template-columns: minmax(180px, 240px); justify-content: center; }
.person-card {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s;
}
.section-alt .person-card { background: #fff; }
.person-card:hover { transform: translateY(-4px); }
.person-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.person-card figcaption { padding: 14px 12px; }
.person-card b { display: block; font-size: 15.5px; }
.person-card span { color: var(--muted); font-size: 13px; }
.person-card.hide { display: none; }

/* ===== Staff ===== */
.staff-group { margin-bottom: 40px; }
.staff-group:last-child { margin-bottom: 0; }
.staff-role {
  font-size: 19px; color: var(--brand); margin: 0 0 20px;
  padding-inline-start: 14px; border-inline-start: 4px solid var(--accent);
}

/* Compact staff strip */
.staff-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.staff-mini {
  margin: 0; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.staff-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.staff-mini img {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; background: var(--bg-alt);
}
.staff-mini figcaption { min-width: 0; }
.staff-mini b { display: block; font-size: 15px; line-height: 1.5; }
.staff-mini span { color: var(--muted); font-size: 13px; }
.staff-mini.lead {
  grid-column: 1 / -1;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-light), #fff);
}
.staff-mini.lead img { width: 72px; height: 72px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand); }
.staff-mini.lead b { font-size: 17px; color: var(--brand); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: stretch; }
.contact-info {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 22px;
}
.info-item { display: flex; gap: 14px; }
.info-icon { font-size: 24px; line-height: 1.4; }
.info-item b { display: block; color: var(--brand); margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--ink); }
.info-item a { color: var(--brand); }
.map-btn { text-align: center; margin-top: auto; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-placeholder {
  height: 100%; min-height: 340px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  color: var(--muted); background: var(--bg-alt);
}
.map-placeholder span { font-size: 40px; }
.map-placeholder small { color: var(--muted); }

/* Clickable map card (opens Neshan location) */
.map-card {
  height: 100%; min-height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 28px; color: var(--ink);
  background:
    linear-gradient(rgba(232,238,251,.55), rgba(232,238,251,.55)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 42px),
    var(--bg-alt);
  transition: background-color .2s, transform .2s;
}
.map-card:hover { transform: scale(1.01); }
.map-pin { font-size: 46px; filter: drop-shadow(0 6px 10px rgba(18,60,140,.25)); }
.map-card-body { display: flex; flex-direction: column; gap: 6px; }
.map-card-body b { font-size: 17px; color: var(--brand); }
.map-card-body > span { color: var(--muted); font-size: 14px; }
.map-open {
  display: inline-block; margin-top: 8px;
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
}

/* ===== Announcement bar ===== */
.announce-bar { color:#fff; font-size:14.5px; font-weight:600; }
.announce-bar .container { display:flex; align-items:center; gap:10px; padding-block:11px; justify-content:center; text-align:center; }
.announce-bar a { color:#fff; text-decoration:underline; }
.announce-bar.level-info    { background:var(--brand); }
.announce-bar.level-warning { background:#b45309; }
.announce-bar.level-urgent  { background:#b42318; }
.announce-bar .ann-ic { font-size:17px; }

/* ===== Contact form ===== */
.contact-form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:24px; margin-bottom:26px; box-shadow:var(--shadow); }
.contact-form-card h3{ margin:0 0 16px; font-size:18px; color:var(--brand); }
.cform-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.contact-form-card input, .contact-form-card textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  font-family:inherit; font-size:14.5px; background:#fff; }
.contact-form-card textarea{ margin-bottom:14px; resize:vertical; }
.contact-form-card input:focus, .contact-form-card textarea:focus{ outline:2px solid var(--brand); outline-offset:1px; border-color:var(--brand); }
.form-note{ padding:13px 18px; border-radius:12px; margin-bottom:18px; font-weight:700; font-size:14.5px; }
.form-note.ok{ background:#e7f7ee; color:#157347; }
.form-note.err{ background:#fdecea; color:#b42318; }
@media(max-width:600px){ .cform-grid{ grid-template-columns:1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--brand-dark); color: #dfe6f5; padding: 48px 0 26px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-brand p { margin: 4px 0 0; font-size: 14px; opacity: .8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { font-size: 14.5px; opacity: .85; }
.footer-nav a:hover { opacity: 1; color: #fff; }
.copyright { font-size: 13px; opacity: .7; margin: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.credit {
  margin: 14px 0 0; font-size: 13px; opacity: .85;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.credit a {
  color: #fff; font-weight: 700; text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.45); transition: color .2s, border-color .2s;
}
.credit a:hover { color: var(--accent); border-color: var(--accent); }
.credit .dev-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 4px 12px; border-radius: 999px;
}
.credit .spark { color: var(--accent); }

/* ===== Major full intro (معرفی رشته) ===== */
.reshte-intro .lead-p { font-size: clamp(15px, 2.1vw, 17.5px); line-height: 2; margin: 0 0 26px; }
.reshte-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.reshte-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.reshte-card h3 {
  margin: 0 0 14px; font-size: 17px; color: var(--brand);
  padding-inline-start: 12px; border-inline-start: 3px solid var(--accent);
}
.reshte-card p { margin: 0; line-height: 2; }
.reshte-card ul { margin: 0; padding-inline-start: 20px; }
.reshte-card li { margin-bottom: 9px; line-height: 1.8; }
@media (max-width: 820px) { .reshte-cols { grid-template-columns: 1fr; } }

/* ===== Teachers list + profiles (internal, noindex) ===== */
.simple-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.simple-header .header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.simple-header .btn-back { font-size: 14px; color: var(--brand); font-weight: 700; }

.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: clamp(34px, 6vw, 56px) 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 34px); }
.page-hero p { margin: 0; opacity: .9; }
.badge-draft {
  display: inline-block; background: var(--accent); color: #3b2600;
  font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}

/* Guidance banner */
.guide-banner {
  background: #fff8ea; border: 1px solid #f0d98c; border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 36px;
}
.guide-banner h2 { margin: 0 0 8px; font-size: 18px; color: #92510a; }
.guide-banner ol { margin: 10px 0 0; padding-inline-start: 20px; }
.guide-banner li { margin-bottom: 6px; }
.guide-banner .g-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Category groups */
.teacher-cat { margin-bottom: 40px; }
.teacher-cat h2 {
  font-size: 20px; color: var(--brand); margin: 0 0 18px;
  padding-inline-start: 14px; border-inline-start: 4px solid var(--accent);
}
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.tcard {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
a.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tcard img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tcard b { display: block; font-size: 15.5px; }
.tcard span { color: var(--muted); font-size: 13px; }
.tcard.soon { opacity: .75; border-style: dashed; }
.tcard.soon .ph {
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--muted); flex-shrink: 0;
}

/* Profile */
.profile-header {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.profile-photo { width: 132px; height: 132px; border-radius: 20px; object-fit: cover; border: 3px solid var(--brand-light); }
.profile-id h1 { margin: 0 0 6px; font-size: clamp(20px, 3.4vw, 28px); }
.profile-id .role { color: var(--brand); font-weight: 700; font-size: 16px; }
.profile-id .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-id .chips .chip { background: var(--brand-light); color: var(--brand); }

.resume-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.resume-section {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.resume-section h3 {
  margin: 0 0 14px; font-size: 17px; color: var(--brand);
  padding-inline-start: 12px; border-inline-start: 3px solid var(--accent);
}
.resume-section p { margin: 0 0 10px; }
.resume-list { margin: 0; padding-inline-start: 20px; }
.resume-list li { margin-bottom: 8px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-inline-start: 22px; padding-bottom: 18px; border-inline-start: 2px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; border-inline-start-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff;
}
.timeline b { display: block; font-size: 15px; }
.timeline .when { color: var(--muted); font-size: 13px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; }

@media (max-width: 860px) { .resume-grid { grid-template-columns: 1fr; } }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 22px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: opacity .25s, transform .25s; z-index: 90;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ===== Reveal animation (only hidden when JS is active; never blank without JS) ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .major-block { grid-template-columns: 1fr; }
  .major-block.reverse .major-media { order: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 10px; border-radius: 10px; }
  .inline-list { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .brand-text strong { font-size: 14.5px; }
  .brand-text small { font-size: 11.5px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
