:root {
  /* Oxford-vari rəng tonları: dərin Oxford Blue + parlaq cyan aksent —
     ox.ac.uk-dan ilhamlanan orijinal sxem. */
  --navy: #00223f;
  --navy-deep: #001529;
  --cyan: #26d2ff;
  --cyan-solid: #26d2ff;
  --mint: #1fd1a8;
  --amber: #ffb454;
  --ink: #12131a;
  --ink-soft: #5b5f72;
  --bg: #f6f6fb;
  --bg-alt: #edeef8;
  --line: #e1e2ee;
  --radius: 1rem;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Qısa məzmunlu səhifələrdə (giriş, qeydiyyat və s.) footer səhifənin
   sonuna "yapışdırılır" — əks halda ekran məzmundan hündür olanda
   footer-dən sonra boş, mənasız bir sahə qalırdı. */
main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.6rem;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 40ch;
}

.main-nav {
  display: none;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--cyan); }

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--cyan-solid);
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-login-btn:hover { background: #fff; color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.45); }
.nav-login-btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.lang-toggle:active { transform: scale(0.95); }

.nav-toggle {
  display: flex;
  position: relative;
  z-index: 46;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 6rem 1.5rem 4.5rem;
  background:
    linear-gradient(100deg, rgba(0,21,41,0.94) 0%, rgba(0,34,63,0.85) 40%, rgba(0,34,63,0.55) 75%, rgba(0,34,63,0.25) 100%),
    url("../images/bina.jpg") center 65% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 0 0 1.1rem;
  animation: hero-rise 0.7s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
  max-width: 18ch;
  margin: 0 0 1.25rem;
  animation: hero-rise 0.8s var(--ease) both;
  animation-delay: 0.08s;
}

.hero-desc {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
  margin: 0 0 2.5rem;
  animation: hero-rise 0.8s var(--ease) both;
  animation-delay: 0.16s;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .track-picker {
  animation: hero-rise 0.8s var(--ease) both;
  animation-delay: 0.24s;
}

/* Hero-dakı kompakt "Gəncə STEAM" keçidi — track-picker-in altındakı boş
   sahədə, adi axında (track-picker ilə eyni "şüşə" üslubda). */
.hero-steam-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-sizing: border-box;
  padding: 0.84rem 1.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  text-decoration: none;
  position: relative;
  /* Giriş animasiyası (bir dəfə) + davamlı "canlı" nəbz effekti (sonsuz) —
     nəbz giriş animasiyası bitəndən (0.8s+0.3s gecikmə) sonra başlayır. */
  animation: hero-rise 0.8s var(--ease) both, hero-steam-mini-pulse 2.4s ease-out 1.1s infinite;
  animation-delay: 0.3s, 1.1s;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.hero-steam-mini:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(38,210,255,0.5);
  transform: translateY(-2px);
}

@keyframes hero-steam-mini-pulse {
  0% { box-shadow: 0 0 0 0 rgba(38,210,255,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(38,210,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(38,210,255,0); }
}

.hero-steam-mini-logo {
  width: 110px;
  height: auto;
  display: block;
}

.hero-steam-mini-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-solid);
  white-space: nowrap;
}

.hero-steam-mini-arrow {
  display: inline-block;
  animation: hero-steam-mini-arrow 1.6s ease-in-out infinite;
}

@keyframes hero-steam-mini-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Track picker (search-bar inspired) */
.track-picker {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 0.6rem;
  display: inline-flex;
  backdrop-filter: blur(6px);
}

.track-picker-tabs {
  display: flex;
  gap: 0.4rem;
}

.track-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.3rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s ease, color 0.2s ease;
}

.track-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }

.track-tab.is-active {
  background: var(--cyan-solid);
  color: var(--navy-deep);
}

/* Feature row (image cards) */
.feature-row {
  padding: 4rem 1.5rem;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  transition: transform 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.1rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-card h3::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-card:nth-child(1) h3::before { background: var(--cyan-solid); }
.feature-card:nth-child(2) h3::before { background: var(--mint); }
.feature-card:nth-child(3) h3::before { background: var(--amber); }

.feature-card:nth-child(1) .feature-media { box-shadow: inset 0 4px 0 var(--cyan-solid), 0 10px 30px -18px rgba(0,34,63,0.25); }
.feature-card:nth-child(2) .feature-media { box-shadow: inset 0 4px 0 var(--mint), 0 10px 30px -18px rgba(0,34,63,0.25); }
.feature-card:nth-child(3) .feature-media { box-shadow: inset 0 4px 0 var(--amber), 0 10px 30px -18px rgba(0,34,63,0.25); }

.feature-card:nth-child(1):hover .feature-media { box-shadow: inset 0 4px 0 var(--cyan-solid), 0 20px 40px -18px rgba(93,77,232,0.35); }
.feature-card:nth-child(2):hover .feature-media { box-shadow: inset 0 4px 0 var(--mint), 0 20px 40px -18px rgba(31,209,168,0.35); }
.feature-card:nth-child(3):hover .feature-media { box-shadow: inset 0 4px 0 var(--amber), 0 20px 40px -18px rgba(255,180,84,0.35); }

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

.feature-media {
  width: 88%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 0 rgba(0,34,63,0);
  transition: box-shadow 0.4s var(--ease);
}

.feature-card:hover .feature-media {
  box-shadow: 0 20px 40px -18px rgba(0,34,63,0.35);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.feature-card:hover .feature-media img {
  transform: scale(1.08);
}

/* "Missiya və Vizyon" bölməsi — iki kart, .feature-card ilə eyni hover
   qaldırma effekti, hər birinin öz aksent rəngi (missiya=cyan, vizyon=mint). */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.mv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.mv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -18px rgba(0,34,63,0.2);
}

.mv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  margin-bottom: 1.25rem;
}

.mv-card--vision .mv-icon { background: var(--mint); }

.mv-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mv-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.mv-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.96rem;
}

/* Missiya/Vizyon mətnləri əvvəlcə tək, uzun, nöqtəli-vergüllə bölünmüş bir
   cümlə idi (oxunması çətin idi) — hər fikir öz sətrinə ayrılmış bullet-li
   siyahıya çevrilib, oxunaqlılıq üçün. */
.mv-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mv-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

.mv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

.mv-card--vision .mv-list li::before { background: var(--mint); }

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

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section.alt { background: var(--bg-alt); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.js-reveal-ready [data-reveal-group].is-visible .section-num,
.js-reveal-ready [data-reveal].is-visible .section-num {
  animation: badge-pop 0.5s var(--ease-spring) both;
  animation-delay: 0.1s;
}

@keyframes badge-pop {
  from { transform: scale(0.5); background: var(--navy); color: #fff; }
  to { transform: scale(1); }
}

.section-head {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.1rem;
}

.section-head::before, .split-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--navy));
}

.split-label {
  position: relative;
  padding-left: 1.1rem;
}

.section-head h2, .split-label h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0.4rem 0 0;
  color: var(--navy);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 3rem;
}

.split-content p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.1rem;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 0;
}

.stat-row > div {
  padding-left: 1rem;
  border-left: 2px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.stat-row > div:hover {
  border-left-color: var(--cyan);
}

.stat-row dt {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.stat-row dd {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* "Nailiyyətlər" bölməsindəki Olimpiada/Müsabiqə qrafiklərinin illər üzrə
   cəmi — .stat-row-ə bənzəyir, amma ortalanmış, sabit (hover tələb etməyən)
   cyan ayırıcı xətlə və böyük hərfli (uppercase) etiketlə. */
.mini-stat-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0 0 3rem;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.mini-stat-row > div {
  text-align: center;
  padding-left: 1.75rem;
  border-left: 2px solid var(--cyan);
}

.mini-stat-row > div:first-child {
  padding-left: 0;
  border-left: none;
}

.mini-stat-row dt {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.mini-stat-row dd {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .mini-stat-row { gap: 1.75rem; padding: 1.5rem 1rem; }
  .mini-stat-row dt { font-size: 1.8rem; }
}

/* Statistika kabinetdən idarə olunana və yüklənənə qədər (bax
   js/api.js#loadSiteStats) rəqəm yerinə fırlanan bir "yüklənir" işarəsi —
   .btn-submit.is-loading-də istifadə olunan eyni fırlanma (bax btn-spin). */
.stat-loading {
  display: inline-block;
  width: 1.7rem;
  height: 1.7rem;
  border: 3px solid var(--line);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .stat-loading { animation: none; }
}

/* Məzunlar paneli — mətn + real nailiyyət şəkillərindən (ADMITTED_GRADUATE,
   bax js/api.js-dəki loadGraduatesPanel) qurulan "bento" kollaj. Uydurma
   şəkillər DEYİL — /api/achievements-dən gələn real qəbul posterləridir. */
.grad-panel {
  background: var(--bg-alt);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grad-panel-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.grad-panel-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 46ch;
}

/* Sabit 5 şəkil (bax js/api.js — GRAD_PANEL_ACHIEVEMENT_IDS), təsadüfi
   seçilmir — hamısı eyni ölçüdə dairə, yüngül "kaskad" sürüşməsi ilə. */
.grad-collage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 1.25rem;
  padding: 1rem 0;
}

.grad-collage img {
  width: 160px;
  height: 160px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 78% 22%;
  border-radius: 50%;
  display: block;
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(0,34,63,0.35);
}

.grad-collage .g2, .grad-collage .g4 { margin-top: 2rem; }

@media (max-width: 900px) {
  .grad-panel { grid-template-columns: 1fr; padding: 2.25rem; }
  .grad-panel-text p { max-width: none; }
  .grad-collage img { width: 115px; height: 115px; }
  .grad-collage .g2, .grad-collage .g4 { margin-top: 1.25rem; }
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Kabinet — "IT bölməsi" paneli (yalnız Admin) */
.it-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.it-status-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  min-width: 190px;
}

.it-status-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.it-status-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.it-status-value.is-online { color: var(--mint); }
.it-status-value.is-offline { color: #d64545; }

.it-links {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.it-links a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.it-links a:hover { color: var(--cyan-solid); }

/* Achievements */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.achievement-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.achievement-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(0,34,63,0.28);
  border-color: rgba(0,34,63,0.15);
}

.achievement-col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.achievement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.achievement-list li:first-child {
  padding-top: 0;
  border-top: none;
}

/* Şəkli olan yazılar (universitet qəbulu kartları və s.) bir-birinin ALTINA
   yığılmır — üfüqi istiqamətdə fasiləsiz sürüşən "karusel" zolağı kimi
   göstərilir (bax js/api.js — siyahı HTML-i özü-özü ilə ikiqat təkrarlanır
   ki, -50% translateX-dən sonra tikişsiz "sıçrayışsız" dövr alınsın).
   Dəstəklənməyən köhnə brauzerlərdə :has() sadəcə əvvəlki sadə siyahı
   görünüşünə düşür. */
.achievement-col:has(.has-photo) {
  overflow: hidden;
}

.achievement-list:has(.has-photo) {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  gap: 1.1rem;
  animation: achievement-marquee 90s linear infinite;
}

.achievement-list:has(.has-photo):hover {
  animation-play-state: paused;
}

.achievement-list:has(.has-photo) li {
  padding-top: 0;
  border-top: none;
}

@keyframes achievement-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.achievement-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft, #f2f4f7);
  transition: transform 0.3s var(--ease);
}

.achievement-list li:hover .achievement-photo {
  transform: scale(1.08);
}

/* Şəkli olan yazılar (məs. universitet qəbulu elan kartları) — kiçik
   dairəvi thumbnail əvəzinə TAM GENİŞLİKDƏ, aydın oxuna bilən böyük kart.
   Karusel zolağında yan-yana sürüşdüyü üçün sabit en (flex-basis) lazımdır. */
.achievement-list li.has-photo {
  flex: 0 0 190px;
  width: 190px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.achievement-list li.has-photo .achievement-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 26px -14px rgba(0,34,63,0.3);
}

.achievement-list li.has-photo:hover .achievement-photo {
  transform: scale(1.02);
}

.achievement-body {
  min-width: 0;
}

.achievement-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.has-photo .achievement-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.achievement-year {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.achievement-desc {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.has-photo .achievement-desc {
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.achievement-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Nailiyyət şəkli düyməsi — klikləndikdə lightbox-da böyüyür. */
.achievement-photo-btn {
  display: block;
  width: fit-content;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
}

.achievement-list li.has-photo .achievement-photo-btn {
  width: 100%;
  border-radius: var(--radius);
}

.achievement-photo-btn:focus-visible {
  outline: 2px solid var(--cyan-solid);
  outline-offset: 3px;
}

.achievement-photo-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 21, 41, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/22px no-repeat;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.achievement-photo-btn:hover::after,
.achievement-photo-btn:focus-visible::after {
  opacity: 1;
}

/* Buraxılış imtahanı nəticələri — statik nəticə cədvəlləri */
.exam-results {
  margin-top: 2.5rem;
}

.exam-results-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

.exam-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.exam-results-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.exam-results-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(0,34,63,0.28);
  border-color: rgba(0,34,63,0.15);
}

.exam-results-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.exam-table th,
.exam-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.exam-table th {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exam-table tbody tr {
  transition: background 0.2s var(--ease);
}

.exam-table tbody tr:not(.exam-table-avg):hover {
  background: var(--bg-alt);
}

.exam-score-value {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.exam-score-bar {
  display: block;
  width: 100%;
  min-width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.exam-score-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-solid), var(--navy));
  transform: scaleX(1);
  transform-origin: left;
}

.js-reveal-ready [data-reveal-group].is-visible .exam-score-bar > span {
  animation: exam-bar-fill 1s var(--ease) both;
}

@keyframes exam-bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.exam-cell-total {
  font-weight: 700;
  color: var(--navy);
}

.exam-row-best {
  position: relative;
  background: rgba(38,210,255,0.06);
}

.exam-row-best td:first-child {
  border-left: 3px solid var(--cyan-solid);
  padding-left: calc(0.5rem - 3px);
  font-weight: 600;
}

.exam-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.exam-table-avg td {
  font-weight: 700;
  color: var(--ink);
}

.exam-table-avg td:first-child {
  font-weight: 600;
}

.exam-results-total {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.exam-results-total strong {
  color: var(--navy);
  font-size: 1.1rem;
  margin-left: 0.35rem;
}

/* Respublika Fənn Olimpiadaları — illər üzrə medal sayı sütun qrafiki */
.olympiad-chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
}

.olympiad-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.olympiad-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.olympiad-bar-value {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.olympiad-bar-track {
  width: 100%;
  max-width: 52px;
  height: 180px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-alt);
  border-radius: 6px 6px 0 0;
}

.olympiad-bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cyan-solid), var(--navy) 65%, var(--cyan-solid));
  background-size: 100% 240%;
  transform: scaleY(1);
  transform-origin: bottom;
}

.olympiad-bar-col.is-peak .olympiad-bar-fill {
  box-shadow: 0 0 0 3px rgba(38,210,255,0.18);
}

.olympiad-bar-label {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}

.js-reveal-ready [data-reveal-group].is-visible .olympiad-bar-fill {
  animation: olympiad-bar-grow 0.9s var(--ease) both, olympiad-bar-flow 4.5s ease-in-out infinite;
}

.js-reveal-ready [data-reveal-group].is-visible .olympiad-bar-col.is-peak .olympiad-bar-fill {
  animation: olympiad-bar-grow 0.9s var(--ease) both, olympiad-bar-flow 4.5s ease-in-out infinite, olympiad-bar-pulse 2.2s ease-in-out infinite;
}

.olympiad-chart .olympiad-bar-col:nth-child(1) .olympiad-bar-fill { animation-delay: 0.05s; }
.olympiad-chart .olympiad-bar-col:nth-child(2) .olympiad-bar-fill { animation-delay: 0.13s; }
.olympiad-chart .olympiad-bar-col:nth-child(3) .olympiad-bar-fill { animation-delay: 0.21s; }
.olympiad-chart .olympiad-bar-col:nth-child(4) .olympiad-bar-fill { animation-delay: 0.29s; }
.olympiad-chart .olympiad-bar-col:nth-child(5) .olympiad-bar-fill { animation-delay: 0.37s; }
.olympiad-chart .olympiad-bar-col:nth-child(6) .olympiad-bar-fill { animation-delay: 0.45s; }

@keyframes olympiad-bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes olympiad-bar-flow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

@keyframes olympiad-bar-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(38,210,255,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(38,210,255,0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .olympiad-bar-fill,
  .olympiad-bar-col.is-peak .olympiad-bar-fill {
    animation: none;
    transform: scaleY(1);
  }
}

@media (max-width: 900px) {
  .olympiad-chart { overflow-x: auto; justify-content: flex-start; padding-bottom: 0.4rem; }
  .olympiad-bar-col { flex: 0 0 74px; }
}

/* Lightbox — nailiyyət şəklinin tam ekranda göstərilməsi */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox[hidden] { display: none; }

.lightbox.is-visible { opacity: 1; }

body.lightbox-open { overflow: hidden; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 21, 41, 0.82);
  cursor: pointer;
  padding: 0;
}

.lightbox-content {
  position: relative;
  margin: 0;
  max-width: min(90vw, 720px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s var(--ease-spring);
}

.lightbox.is-visible .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  display: block;
}

.lightbox-content figcaption {
  margin: 1rem 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

/* News section */
.news-section {
  padding: 5rem 1.5rem;
  background: #fff;
}

.news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.news-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.view-all {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 0.15rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-grid[hidden] {
  display: none;
}

.news-card {
  transition: transform 0.4s var(--ease);
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
  transition: box-shadow 0.4s var(--ease), background-size 0.5s var(--ease);
}

.news-card:hover .news-media {
  box-shadow: 0 20px 40px -18px rgba(0,34,63,0.3);
  background-size: 112%;
}

.news-date {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0.4rem 0 0;
}

.news-summary {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Ən son xəbər digərlərindən vizual olaraq fərqlənsin deyə iki sütun eni
   tutur və bir az daha iri görünür ("featured" kart). */
.news-grid > .news-card:first-child {
  grid-column: span 2;
}

.news-grid > .news-card:first-child .news-media {
  aspect-ratio: 21 / 9;
}

.news-grid > .news-card:first-child h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.news-grid > .news-card:first-child .news-summary {
  font-size: 1rem;
}

@media (max-width: 900px) {
  .news-grid > .news-card:first-child { grid-column: span 1; }
  .news-grid > .news-card:first-child .news-media { aspect-ratio: 16 / 10; }
  .news-grid > .news-card:first-child h3 { font-size: 1.1rem; font-weight: 500; }
  .news-grid > .news-card:first-child .news-summary { font-size: 0.92rem; }
}

/* Teachers */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.teacher-grid[hidden] {
  display: none;
}

.teacher-card {
  text-align: center;
  transition: transform 0.4s var(--ease);
}

.teacher-card:hover {
  transform: translateY(-10px);
}

.teacher-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
  transition: box-shadow 0.4s var(--ease), background-size 0.5s var(--ease);
}

/* Profil şəkli hələ yüklənməyən pedaqoji heyət üzvləri üçün boş boz dairə
   əvəzinə adın baş hərfləri göstərilir (məs. "Rəşad Qədirov" → "RQ"). */
.teacher-initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.teacher-card:hover .teacher-photo {
  box-shadow: 0 20px 40px -18px rgba(0,34,63,0.3);
  background-size: 112%;
}

.teacher-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1rem 0 0.2rem;
}

.teacher-subject {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.teacher-bio {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Contact info (ünvan/telefon/e-poçt) */
.contact-info {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-info dt {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.contact-info dd {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.contact-info dd a {
  transition: color 0.2s ease;
}

.contact-info dd a:hover {
  color: var(--cyan);
}

/* Əlaqə forması + xəritə — yan-yana iki sütun */
.contact-form-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.contact-form-map .contact-form {
  margin-top: 0;
  max-width: none;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .contact-form-map { grid-template-columns: 1fr; }
  .contact-map { min-height: 280px; }
}

/* Contact form */
.contact-form {
  margin-top: 2rem;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0,34,63,0.1);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-submit:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,34,63,0.5); }
.btn-submit:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

.btn-submit.is-loading {
  color: transparent;
  pointer-events: none;
}

.btn-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.is-shaking {
  animation: shake 0.5s var(--ease);
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  transition: opacity 0.25s var(--ease);
}

.form-status.is-success { color: #1a7a4c; }
.form-status.is-error { color: #b3261e; }

/* Ekran oxuyucular üçün görünən, vizual olaraq gizli mətn (məs. placeholder-
   yalnız input-ların label-ları) — ümumi, təkrar istifadə oluna bilən utility. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* "Qəbul olmaq istəyirsiniz?" bannerı — istifadəçinin təqdim etdiyi nümunəyə
   (tünd fonlu tərgib mətni + üzərinə minik ağ kart forması) uyğun, saytın öz
   navy/cyan rəng sxemində. */
.admission-cta {
  position: relative;
  padding: 4.5rem 1.5rem;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  overflow: hidden;
}

.admission-cta::before,
.admission-cta::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  pointer-events: none;
}

.admission-cta::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
}

.admission-cta::after {
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: 20%;
}

.admission-cta-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.admission-cta-pitch .eyebrow { margin-bottom: 0.9rem; }

.admission-cta-pitch h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.admission-cta-pitch p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.admission-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.admission-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,0.4);
}

.admission-cta-btn-arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.admission-cta-btn:hover .admission-cta-btn-arrow {
  transform: translate(2px, 2px);
}

.admission-cta-card {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: 0 30px 60px -24px rgba(0,10,25,0.45);
}

.admission-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.admission-cta-card > p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.admission-form { margin-top: 0; max-width: none; gap: 0.9rem; }

/* Honeypot sahəsi — botlar üçün "görünür", real istifadəçilər üçün yoxdur
   (bax js/api.js#wireContactForm). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .admission-cta-inner { grid-template-columns: 1fr; }
  .admission-cta-pitch h2,
  .admission-cta-pitch p { max-width: none; }
}

@media (max-width: 600px) {
  .admission-cta { padding: 3.5rem 1.25rem; }
  .admission-cta-card { padding: 1.75rem; }
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 1.5rem 2rem;
}

/* Arxa fonda solğun loqo izi (watermark) — tam-ekran açılan menyudakı
   (.main-nav.open::before) eyni effekt, footer-ə də tətbiq olunur. */
.site-footer::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 4%;
  width: 34vw;
  max-width: 380px;
  min-width: 180px;
  aspect-ratio: 1;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: 0.06;
  transform: translateY(-50%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin: 0 0 0.3rem;
}

.footer-col a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.footer-col a:hover { color: #fff; transform: translateX(3px); }

/* Hazırda hədəfi olmayan keçidlər (href="#") — "display: inline-block"
   yuxarıda təyin olunduğu üçün [hidden] atributu tək başına kifayət etmir. */
.footer-col a[hidden] { display: none; }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* footer-cols olmayan sadə footer variantı (login/register/it səhifələri) —
   tam footer üçün nəzərdə tutulan böyük yuxarı boşluq bura tətbiq olunanda
   məzmunun üstündə boş, mənasız bir zolaq yaranırdı. Dəstəklənməyən köhnə
   brauzerlərdə :has() sadəcə əvvəlki (daha geniş boşluqlu) görünüşə düşür. */
.site-footer:not(:has(.footer-cols)) {
  padding-top: 1.75rem;
}

.site-footer:not(:has(.footer-cols)) .footer-bottom {
  padding-top: 0;
}

.footer-social {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 5rem 1.25rem 3.5rem; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .teacher-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: 1fr; }
  .exam-results-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; }
  .footer-social { order: -1; }
}

@keyframes nav-drop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tam-ekran menyu: Oxford Universiteti saytındakı açılan menyu effektinə
   bənzər — böyük keçid siyahısı + arxa fonda solğun loqo izi (watermark).
   Bütün ekran ölçülərində (həm mobil, həm masaüstü) eyni şəkildə açılır. */
.main-nav.open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 6.5rem 1.75rem 2.5rem;
  gap: 0;
  overflow-y: auto;
  animation: nav-drop 0.3s var(--ease) both;
}

.main-nav.open::before {
  content: '';
  position: absolute;
  top: 52%;
  right: 6%;
  width: 40vw;
  max-width: 460px;
  min-width: 220px;
  aspect-ratio: 1;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: 0.07;
  transform: translateY(-50%);
  pointer-events: none;
}

.main-nav.open a {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 600;
  color: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: hero-rise 0.35s var(--ease) both;
}

.main-nav.open a::after {
  content: '\2192';
  color: var(--cyan);
  font-size: 1.3rem;
  transition: transform 0.2s var(--ease);
}

.main-nav.open a:hover,
.main-nav.open a:focus-visible {
  color: var(--cyan);
}

.main-nav.open a:hover::after,
.main-nav.open a:focus-visible::after {
  transform: translateX(6px);
}

.main-nav.open a:last-child { border-bottom: none; }

.main-nav.open a:nth-child(1) { animation-delay: 0.03s; }
.main-nav.open a:nth-child(2) { animation-delay: 0.08s; }
.main-nav.open a:nth-child(3) { animation-delay: 0.13s; }
.main-nav.open a:nth-child(4) { animation-delay: 0.18s; }
.main-nav.open a:nth-child(5) { animation-delay: 0.23s; }
.main-nav.open a:nth-child(6) { animation-delay: 0.28s; }

body.nav-open { overflow: hidden; }

/* Login & dashboard */
.login-section {
  padding-top: 4rem;
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 24px 48px -28px rgba(0,34,63,0.35);
  animation: hero-rise 0.5s var(--ease) both;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.login-sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.login-card .contact-form,
.dashboard-block .contact-form {
  margin-top: 0;
  max-width: none;
}

.login-card .role-picker {
  margin-bottom: 1.75rem;
}

.form-row select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-row select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0,34,63,0.1);
}

.dashboard-panel {
  max-width: var(--max);
  margin: 0 auto;
}

/* İdarəetmə paneli — "app shell" strukturu: solda sabit (sticky) sidebar
   (loqo, ikonlu naviqasiya, aşağıda çıxış+profil), sağda böyük səhifə
   başlığı + axtarış/bildiriş, altında kart-əsaslı məzmun. */
.db-shell {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.db-sidebar {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  max-height: calc(100vh - 3rem);
}

.db-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.5rem;
  text-decoration: none;
}

.db-sidebar-brand img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }

.db-sidebar-brand span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.db-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}

.db-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Diqqət: .db-nav-item özü display:flex təyin etdiyi üçün, JS-in qoyduğu
   [hidden] atributu bunu ƏKS HALDA "əzərdi" (author qaydası UA-nın
   [hidden]{display:none} qaydasından həmişə üstündür) — bu qayda olmasa
   rolu uyğun olmayan tab-lar (məs. Kitablarım/Profilim) HƏR İSTİFADƏÇİYƏ
   görünərdi. */
.db-nav-item[hidden] { display: none; }

.db-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.db-nav-item:hover { background: rgba(255,255,255,0.7); color: var(--navy); }

.db-nav-item.is-active {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 3px 10px -4px rgba(0,34,63,0.18);
}

.db-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.db-nav-item--logout { color: #b3392f; }
.db-nav-item--logout:hover { background: rgba(179,57,47,0.1); color: #b3392f; }

.db-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.3rem;
}

.dashboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.db-identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.2;
  min-width: 0;
}

.db-identity-text > span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-identity-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.role-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.title-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.title-pill[hidden] {
  display: none;
}

/* Sağ tərəf — səhifə başlığı + axtarış/bildiriş + kart-əsaslı məzmun. */
.db-main {
  flex: 1;
  min-width: 0;
}

.db-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.db-main-header h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.db-main-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 240px;
  max-width: 300px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.db-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0,34,63,0.08);
}

.db-search svg { width: 18px; height: 18px; flex-shrink: 0; }

.db-search input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
}

.db-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.db-icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.db-icon-btn svg { width: 19px; height: 19px; }

/* Əvvəlki eyni səbəb: display:inline-flex olmasa JS-in qoyduğu [hidden]
   atributunu "əzir" (bu, əslində redizayndan ƏVVƏL də mövcud olan, indi
   aşkar edilmiş bir xəta idi — dashboardNotifBtn hər rol üçün görünürdü). */
.db-icon-btn[hidden] { display: none; }

.db-notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0453c;
  border: 2px solid #fff;
}

.dashboard-layout {
  display: flex;
  align-items: flex-start;
}

.dashboard-content {
  flex: 1;
  min-width: 0;
}

.db-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.08);
}

.db-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.db-stat-pill {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.db-stat-pill strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
}

@media (max-width: 900px) {
  .db-shell { flex-direction: column; gap: 1rem; }
  .db-sidebar {
    position: static;
    max-height: none;
    width: 100%;
    flex: 0 0 auto;
  }
  .db-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; }
  .db-nav-item { flex-shrink: 0; }
  .db-sidebar-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
  }
  .db-main-header { flex-direction: column; align-items: stretch; }
  .db-main-actions { justify-content: space-between; }
  .db-search { flex: 0 0 auto; width: 100%; max-width: none; }
  .db-card { padding: 1.25rem; }
}

.btn-ghost-dark {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  height: fit-content;
}

.btn-ghost-dark:hover { border-color: var(--navy); color: var(--navy); }

.dashboard-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px -4px rgba(0,34,63,0.06);
}

.dashboard-block h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1.2rem;
}

.dashboard-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.dashboard-block-head h2 { margin: 0; }

.dashboard-block-head-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-danger-outline {
  border-color: #b3261e;
  color: #b3261e;
}

.btn-danger-outline:hover {
  background: #b3261e;
  color: #fff;
  border-color: #b3261e;
}

.btn-link {
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 1rem;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.user-table th,
.user-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.user-table tbody tr {
  transition: background 0.2s var(--ease);
}

.user-table tbody tr:hover {
  background: var(--bg-alt);
}

.user-table th {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.link-danger {
  background: none;
  border: none;
  color: #b3261e;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.link-danger:hover { text-decoration: underline; }

.link-action {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-right: 1rem;
}

.link-action:hover { text-decoration: underline; }

.contact-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-msg-row {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg-alt);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-msg-row:hover {
  box-shadow: 0 10px 24px -16px rgba(0,34,63,0.35);
  transform: translateY(-2px);
}

.contact-msg-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.contact-msg-head strong { color: var(--ink); }
.contact-msg-head span { color: var(--ink-soft); }

.contact-msg-date {
  margin-left: auto;
  font-size: 0.78rem;
}

.contact-msg-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.contact-msg-read,
.contact-msg-unread {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.contact-msg-read { background: #e3f3e8; color: #1a7a4c; }
.contact-msg-unread { background: #fdecea; color: #b3261e; }

.contact-msg-actions {
  margin-top: 0.6rem;
  display: flex;
  gap: 1rem;
}

.role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.role-btn { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease); }
.role-btn:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.role-btn:active { transform: translateY(0) scale(0.96); }

.role-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@keyframes credit-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-credit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15);
  z-index: 40;
  flex-shrink: 0;
  animation: credit-in 0.6s var(--ease) both;
  animation-delay: 0.3s;
  transition: box-shadow 0.3s var(--ease);
}

.admin-credit:hover {
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.22);
}

.admin-credit-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-credit-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.admin-credit-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-credit-title {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.admin-credit-btn {
  margin-left: 0.3rem;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.admin-credit-btn:hover { background: var(--navy-deep); }
.admin-credit-btn:active { transform: scale(0.97); }

@keyframes popover-in {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-mini-login {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.2);
  transform-origin: top right;
  animation: popover-in 0.2s var(--ease-spring) both;
}

.admin-mini-login[hidden] {
  display: none;
}

.admin-mini-login input {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.admin-mini-login input:focus {
  outline: none;
  border-color: var(--navy);
}

#adminMiniSubmit {
  padding: 0.45rem;
  border: none;
  border-radius: 0.4rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

#adminMiniSubmit:hover { background: var(--navy-deep); }

.admin-mini-status {
  margin: 0;
  font-size: 0.72rem;
  min-height: 1em;
}

.admin-mini-status.is-error { color: #b3261e; }
.admin-mini-status.is-success { color: #1a7a4c; }

@media (max-width: 900px) {
  .admin-credit { padding: 0.3rem 0.7rem 0.3rem 0.3rem; }
  .admin-credit-photo { width: 30px; height: 30px; }
  .admin-credit-text { display: none; }
}

/* Scroll-reveal (bax js/main.js — IntersectionObserver bu elementlərə .is-visible əlavə edir).
   Diqqət: gizlətmə YALNIZ <html class="js-reveal-ready"> olduqda aktivləşir —
   JavaScript hər hansı səbəbdən işləməsə, məzmun HEÇ VAXT görünməz qalmır. */
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal-ready [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-reveal-ready [data-reveal-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.03s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.27s; }
.js-reveal-ready [data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.33s; }

/* Yuxarıda nazik scroll-proqres zolağı */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--cyan);
  z-index: 100;
  transition: width 0.1s linear;
}

/* Yüklənmə effekti (skeleton) — xəbərlər/müəllimlər/nailiyyətlər API-dən
   gəlməmiş, boş görünüş əvəzinə hərəkətli "shimmer" ilə forma göstərir. */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-block {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #f4f4f8 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
  display: block;
}

.skeleton-card .news-media.skeleton-block,
.skeleton-card .teacher-photo.skeleton-block {
  border: none;
  box-shadow: none;
}

.skeleton-line {
  height: 0.85em;
  margin-top: 0.6rem;
}

.skeleton-line:first-of-type { margin-top: 1rem; }
.skeleton-line--title { height: 1.1em; width: 75%; }
.skeleton-line--date { height: 0.7em; width: 35%; margin-top: 1rem; }
.skeleton-line--text { width: 100%; }
.skeleton-line--text:last-child { width: 65%; }

.skeleton-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block { animation: none; background: var(--bg-alt); }
}

/* Səhifəyə daxil olarkən qısa "giriş" ekranı — hər səhifə açılanda görünür,
   məzmun tam hazır olduqda yumşaq şəkildə itir. */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-mark {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader-mark img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.page-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(38, 210, 255, 0.18);
  border-top-color: var(--cyan);
  animation: page-loader-spin 0.85s linear infinite;
}

@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader-ring { animation: none; border-top-color: rgba(38, 210, 255, 0.18); }
}
