/* UZNJ PHP — Next.js dizayn bilan mos */
:root {
  --primary: #0066b3;
  --primary-dark: #004a82;
  --primary-light: #3399cc;
  --secondary: #00a651;
  --secondary-dark: #008c44;
  --secondary-light: #33b874;
  --accent: #ffd100;
  --accent-hover: #e6bc00;
  --bg: #f8fafc;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --header-top-bar-height: 3.75rem;
  --header-nav-height: 3.5rem;
  --header-height: calc(var(--header-top-bar-height) + var(--header-nav-height));
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 20px rgba(0, 74, 130, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 74, 130, 0.12);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w-7xl: 80rem;
  --a11y-font-scale: 1;
  --a11y-letter-spacing: 0;
}

@media (min-width: 768px) {
  :root { --header-top-bar-height: 4.25rem; }
}
@media (min-width: 1024px) {
  :root { --header-nav-height: 3.75rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--a11y-font-scale));
}

html.a11y-letter-spacing-wide { --a11y-letter-spacing: 0.05em; }
html.a11y-letter-spacing-wider { --a11y-letter-spacing: 0.12em; }
html.a11y-grayscale body { filter: grayscale(100%); }
html.a11y-high-contrast {
  --bg: #000;
  --text: #fff;
  --primary: #ffff00;
  --primary-dark: #ffff00;
}
html.a11y-high-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-high-contrast a, html.a11y-high-contrast button { color: #ffff00 !important; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: var(--a11y-letter-spacing);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { max-width: var(--max-w-7xl); width: 100%; margin: 0 auto; padding: 0 1rem; }
.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;
}
.sr-only:focus, .sr-only:focus-visible {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 200;
  width: auto; height: auto; padding: 0.75rem 1rem; margin: 0;
  overflow: visible; clip: auto; white-space: normal;
  background: var(--primary); color: white; font-weight: 600;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.animate-fade-in { animation: fadeInUp 0.6s ease-out both; }
.animate-fade-in-delay-1 { animation: fadeInUp 0.6s ease-out 0.1s both; }
.animate-fade-in-delay-2 { animation: fadeInUp 0.6s ease-out 0.2s both; }
.animate-fade-in-delay-3 { animation: fadeInUp 0.6s ease-out 0.3s both; }
.animate-fade-in-delay-4 { animation: fadeInUp 0.6s ease-out 0.4s both; }
.animate-fade-in-delay-5 { animation: fadeInUp 0.6s ease-out 0.5s both; }
.animate-fade-in-delay-6 { animation: fadeInUp 0.6s ease-out 0.6s both; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 102, 179, 0.1);
}

.header-top {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 102, 179, 0.1);
  min-height: var(--header-top-bar-height);
}
.header-top .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-top-bar-height);
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--primary-dark); font-weight: 700; min-width: 0;
}
.brand:hover { text-decoration: none; color: var(--primary-dark); }
.brand-logo {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.15); ring: 2px solid white;
  border: 2px solid white;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand span {
  font-size: clamp(0.8rem, 2vw, 1rem); line-height: 1.3;
  display: none;
}
@media (min-width: 640px) { .brand span { display: block; } }

.header-top-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-phone {
  display: none; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(0, 74, 130, 0.9);
  padding: 0.25rem 0.5rem; border-radius: var(--radius);
  min-height: 44px;
}
.header-phone:hover { color: var(--primary); text-decoration: none; }
@media (min-width: 768px) { .header-phone { display: flex; } }
@media (min-width: 1024px) { .header-phone.phone-2 { display: flex; } }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0.125rem;
  padding: 0.25rem;
  background: rgba(0, 102, 179, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(0, 102, 179, 0.12);
  border-left: 1px solid rgba(0, 102, 179, 0.12);
}
.lang-switch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
  min-height: 36px; min-width: auto; padding: 0.375rem 0.625rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  color: rgba(0, 74, 130, 0.75); background: transparent; border: none;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.lang-switch-btn:hover {
  color: var(--primary); background: rgba(0, 102, 179, 0.12); text-decoration: none;
}
.lang-switch-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 8px rgba(0, 102, 179, 0.35);
}
.lang-flag { font-size: 0.875rem; line-height: 1; }
.lang-code { letter-spacing: 0.02em; }
@media (min-width: 640px) {
  .lang-switch-btn { min-height: 40px; padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
}
.lang-switch--drawer {
  width: 100%; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.lang-switch--drawer .lang-switch-btn {
  color: rgba(255, 255, 255, 0.85);
  min-height: 44px;
}
.lang-switch--drawer .lang-switch-btn:hover {
  color: white; background: rgba(255, 255, 255, 0.15);
}
.lang-switch--drawer .lang-switch-btn.active {
  background: white; color: var(--primary);
  box-shadow: var(--shadow);
}

.header-nav {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-inner {
  display: flex; align-items: center; gap: 0.5rem;
  min-height: var(--header-nav-height);
}

.menu-toggle, .nav-search-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  background: transparent; border: none; color: rgba(255,255,255,0.95);
  border-radius: var(--radius); cursor: pointer; transition: background 0.2s;
}
.menu-toggle:hover, .nav-search-btn:hover { background: rgba(255,255,255,0.15); }
.menu-toggle { flex-shrink: 0; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.nav-links {
  display: none; list-style: none; margin: 0 -0.25rem; padding: 0;
  flex: 1; align-items: center; flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; justify-content: center; }
}

.nav-item { position: relative; }
.nav-link, .nav-dropdown-btn {
  display: flex; align-items: center; gap: 0.375rem;
  min-height: 44px; padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.95); font-weight: 500; font-size: 1rem;
  border-radius: var(--radius); background: transparent; border: none;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: all 0.2s;
}
.nav-link:hover, .nav-dropdown-btn:hover,
.nav-link.active, .nav-dropdown-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.15); color: white; text-decoration: none;
}
.nav-dropdown-btn svg { transition: transform 0.2s; }
.nav-dropdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-dropdown {
  display: none; position: absolute; left: 0; top: 100%; margin-top: 0.25rem;
  min-width: 240px; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,102,179,0.1); border-radius: var(--radius-lg);
  padding: 0.5rem 0; z-index: 50; list-style: none;
  animation: fadeInScale 0.15s ease-out;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block; padding: 0.75rem 1rem; min-height: 44px;
  color: var(--primary-dark); font-size: 1rem; transition: background 0.15s;
}
.nav-dropdown a:hover {
  background: rgba(0,102,179,0.1); color: var(--primary); text-decoration: none;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-shrink: 0; }
.nav-search-wrap { position: relative; }
.nav-search-form {
  display: none; position: absolute; right: 0; top: calc(100% + 0.5rem);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border: 1px solid rgba(0,102,179,0.1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50;
  animation: fadeInScale 0.15s ease-out;
}
.nav-search-form.open { display: flex; }
.nav-search-form input {
  padding: 0.75rem 1rem; min-height: 44px; width: 12rem;
  border: none; outline: none; font: inherit; color: var(--primary-dark);
  background: transparent;
}
@media (min-width: 640px) { .nav-search-form input { width: 18rem; } }
.nav-search-form button {
  padding: 0.75rem 1rem; min-height: 44px; border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white; cursor: pointer;
}

.btn-donate {
  display: none; align-items: center; min-height: 44px;
  padding: 0.625rem 1.25rem; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  color: white; font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.btn-donate:hover {
  background: linear-gradient(90deg, var(--secondary-dark), var(--secondary));
  transform: translateY(-1px); box-shadow: var(--shadow-lg);
  color: white; text-decoration: none;
}
@media (min-width: 640px) { .btn-donate { display: inline-flex; } }

/* Mobile drawer */
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 110;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  animation: fadeInScale 0.2s ease-out;
}
.mobile-overlay.open { display: block; }
.mobile-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 120;
  width: min(100%, 24rem);
  background: linear-gradient(180deg, var(--primary-dark), var(--primary), var(--primary-dark));
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-drawer.open { transform: translateX(0); animation: slideInLeft 0.3s ease-out; }
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
.mobile-drawer-header span { color: white; font-size: 1.125rem; font-weight: 700; }
.mobile-close {
  min-height: 44px; min-width: 44px; background: transparent; border: none;
  color: white; border-radius: var(--radius); cursor: pointer;
}
.mobile-close:hover { background: rgba(255,255,255,0.15); }
.mobile-search { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.mobile-search form { display: flex; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.mobile-search input { flex: 1; padding: 0.75rem 1rem; min-height: 48px; border: none; outline: none; font: inherit; }
.mobile-search button { padding: 0.75rem 1rem; min-height: 48px; border: none; background: var(--secondary); color: white; cursor: pointer; }
.mobile-nav { flex: 1; overflow-y: auto; padding: 0.75rem 0.5rem; }
.mobile-nav-section { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-link, .mobile-nav-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 48px; padding: 0.75rem 1rem;
  color: white; font-size: 1.125rem; font-weight: 500;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  border-radius: var(--radius-lg); transition: background 0.2s;
}
.mobile-nav-link:hover, .mobile-nav-toggle:hover { background: rgba(255,255,255,0.1); text-decoration: none; color: white; }
.mobile-nav-toggle svg { transition: transform 0.2s; }
.mobile-nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-subnav { display: none; overflow: hidden; padding-bottom: 0.5rem; }
.mobile-subnav.open { display: block; }
.mobile-subnav a {
  display: flex; align-items: center; min-height: 48px;
  padding: 0.75rem 1rem 0.75rem 2rem; color: rgba(255,255,255,0.9);
  border-radius: var(--radius); transition: background 0.2s;
}
.mobile-subnav a:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }
.mobile-drawer-footer {
  padding: 1.25rem 1rem; border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.1);
}
.mobile-drawer-footer a {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 48px; color: rgba(255,255,255,0.9); padding: 0.25rem 0.5rem;
}
.mobile-drawer-footer a:hover { color: white; text-decoration: none; }
.mobile-donate-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; margin-top: 0.75rem; padding: 0.75rem 1rem;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  color: white; font-weight: 700; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.mobile-donate-btn:hover { color: white; text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs ol li { display: flex; align-items: center; gap: 0.375rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.9375rem;
}
.breadcrumbs a {
  display: flex; align-items: center; min-height: 44px; padding: 0.375rem 0.5rem;
  border-radius: var(--radius); transition: color 0.2s;
}
.breadcrumbs a:hover { text-decoration: none; }
.breadcrumbs .sep {
  display: flex; align-items: center; opacity: 0.6;
}
.breadcrumbs .current { font-weight: 600; padding: 0.375rem 0; }

/* Hero breadcrumbs (inside page-hero) */
.breadcrumbs--hero {
  margin-top: 1.25rem;
  animation: fadeInUp 0.5s ease-out 0.15s both;
}
.breadcrumbs--hero ol {
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}
.page-hero.align-left .breadcrumbs--hero ol { justify-content: flex-start; }
.breadcrumbs--hero a {
  color: rgba(255, 255, 255, 0.85);
  min-height: 36px; padding: 0.25rem 0.5rem;
}
.breadcrumbs--hero a:hover { color: white; background: rgba(255, 255, 255, 0.1); }
.breadcrumbs--hero .current { color: rgba(255, 255, 255, 0.95); }
.breadcrumbs--hero .sep { color: rgba(255, 255, 255, 0.45); opacity: 1; }

/* Page hero */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  color: white; text-align: center;
}
.page-wrap.has-header .page-hero {
  /* No negative margin — it cancels padding-top and leaves h1 under the fixed header. */
  margin-top: 0;
  padding-top: 0;
}
.page-hero-pattern {
  position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.45'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.page-hero-shape {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.page-hero-shape-1 {
  top: -6rem; left: -5rem; width: 18rem; height: 18rem;
  background: rgba(255, 255, 255, 0.07);
  filter: blur(40px);
}
.page-hero-shape-2 {
  bottom: -5rem; right: -4rem; width: 22rem; height: 22rem;
  background: rgba(0, 166, 81, 0.18);
  filter: blur(48px);
}
.page-hero-shape-3 {
  top: 20%; right: 8%; width: 5rem; height: 5rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.2; pointer-events: none;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 45%),
              radial-gradient(circle at 80% 20%, rgba(0,166,81,0.3) 0%, transparent 40%);
}
.page-hero .container {
  position: relative; z-index: 1;
  padding: calc(var(--header-height) + 4rem) 1rem 4rem;
}
@media (min-width: 1024px) {
  .page-hero .container { padding: calc(var(--header-height) + 5rem) 1rem 5rem; }
}
.page-hero h1 { margin: 0; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; animation: fadeInUp 0.5s ease-out; }
.page-hero.align-left { text-align: left; }
.page-hero.align-left p { margin-left: 0; max-width: 36rem; }
.page-hero p {
  margin: 0.75rem auto 0; max-width: 42rem;
  color: rgba(255,255,255,0.8); font-size: 1.125rem;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.news-search-note {
  text-align: center; color: var(--text-muted);
  font-size: 1rem; margin: 0 0 2rem;
}

/* Home hero */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  justify-content: center; text-align: center; color: white;
  background: var(--primary-dark); overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
  padding: calc(var(--header-height) + 2rem) 1rem 4rem;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0,166,81,0.25), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(51,153,204,0.2), transparent 45%),
    linear-gradient(180deg, transparent, rgba(0,74,130,0.92));
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { animation: none; }
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 0.375rem 1rem; margin-bottom: 1.5rem;
  border-radius: 999px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); font-size: 0.875rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1;
  margin: 0 0 1.5rem; font-weight: 700;
}
.hero .highlight { color: var(--accent); }
.hero p {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem); color: #e2e8f0;
  max-width: 48rem; margin: 0 auto 2.5rem; line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; min-height: 44px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: scale(1.03); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--primary-dark); }
.btn-outline { background: transparent; color: white; border: 2px solid white; box-shadow: var(--shadow); }
.btn-outline:hover { background: white; color: var(--primary-dark); }
.btn-blue { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: var(--shadow); }
.btn-blue:hover { color: white; box-shadow: var(--shadow-lg); }
.btn-danger { background: #dc2626; color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Sections */
.section { padding: 6rem 0; }
.section-white { background: white; }
.section-muted { background: var(--bg-muted); }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.5rem; color: var(--text); font-weight: 700; }
.section-title .line { width: 6rem; height: 6px; background: var(--accent); border-radius: 99px; margin: 0 auto 1.5rem; }
.section-title p { color: var(--text-muted); max-width: 42rem; margin: 0 auto; font-size: 1.25rem; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.feature-card {
  padding: 2rem; border-radius: var(--radius-xl);
  background: var(--secondary); text-align: center;
  border: 1px solid transparent; transition: all 0.3s;
}
.feature-card:hover {
  background: white; box-shadow: var(--shadow-lg);
  border-color: var(--border); transform: translateY(-4px);
}
.feature-icon {
  width: 5rem; height: 5rem; margin: 0 auto 2rem;
  background: rgba(0,102,179,0.1); color: var(--primary);
  border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: var(--primary); color: white; transform: rotate(6deg);
}
.feature-card h3 { font-size: 1.5rem; margin: 0 0 1rem; color: var(--text); font-weight: 700; }
.feature-card p { color: var(--text-muted); line-height: 1.7; margin: 0; }

/* Cards */
.card {
  background: white; border-radius: var(--radius-xl); padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* News / Events */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.news-card {
  background: white; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(0, 102, 179, 0.15);
}
.news-card-media {
  overflow: hidden;
  background: var(--bg-muted);
}
.news-card-media img,
.news-card > img {
  width: 100%; height: 200px; object-fit: cover; background: var(--bg-muted);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover .news-card-media img,
.news-card:hover > img { transform: scale(1.05); }
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; }
.content-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.content-card-title-link:hover { color: var(--primary); }
.news-card .meta { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.news-card p { color: var(--text-muted); flex: 1; margin: 0 0 1rem; line-height: 1.6; }
.content-card-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card-read-more { align-self: flex-start; margin-top: auto; }
.article-content {
  background: white; border-radius: var(--radius-xl); padding: 2rem;
  box-shadow: var(--shadow); max-width: 800px; margin: 0 auto;
  border: 1px solid var(--border);
}
.article-content img { border-radius: var(--radius); margin: 1rem 0; }
.article-body h2 { font-size: 1.35rem; margin: 1.5rem 0 0.75rem; }
.article-body p { margin: 0 0 1rem; line-height: 1.7; }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.25rem; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 1rem 0; }

.article-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  object-fit: cover;
  max-height: 28rem;
}

.article-video {
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.article-video iframe,
.article-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.media-gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.media-gallery-item img,
.media-gallery-item video,
.media-gallery-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  background: #000;
}

/* Contact */
.page-content { padding: 2rem 0 5rem; }
.page-content-title { text-align: center; margin-bottom: 2rem; }
.page-content-title h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; font-weight: 700; }

.tabs-wrap { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.tabs {
  display: inline-flex; background: var(--bg-muted); border-radius: var(--radius-xl);
  padding: 0.375rem; gap: 0.25rem;
}
.tab-btn {
  position: relative; padding: 0.625rem 1.5rem; border-radius: var(--radius-lg);
  font-size: 0.875rem; font-weight: 600; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; font-family: inherit; transition: color 0.2s;
  min-height: 44px;
}
.tab-btn.active { color: white; }
.tab-btn.active::before {
  content: ''; position: absolute; inset: 0;
  background: var(--primary); border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(0,102,179,0.3); z-index: 0;
}
.tab-btn span { position: relative; z-index: 1; }
.tab-panel { display: none; animation: fadeInUp 0.3s ease-out; }
.tab-panel.active { display: block; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.info-card {
  background: white; border-radius: var(--radius-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 1.5rem; transition: box-shadow 0.3s;
}
.info-card:hover { box-shadow: var(--shadow-lg); }
.info-card-inner { display: flex; gap: 1rem; align-items: flex-start; }
.info-card-icon {
  flex-shrink: 0; width: 3rem; height: 3rem;
  background: rgba(0,102,179,0.1); color: var(--primary);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.info-card h3 { margin: 0 0 0.5rem; font-weight: 700; color: var(--text); font-size: 1rem; }
.info-card p, .info-card div { margin: 0; color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.info-card a { color: var(--primary); font-weight: 600; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

.trust-banner {
  background: linear-gradient(135deg, rgba(0,102,179,0.05), white, rgba(0,102,179,0.1));
  border: 1px solid rgba(0,102,179,0.1); border-radius: 1.5rem;
  padding: 2rem; text-align: center; margin-bottom: 2.5rem;
}
.trust-banner h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.trust-banner p { color: var(--text-muted); margin: 0 0 1.5rem; }
.trust-phones { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.trust-phone-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-lg);
  font-weight: 600; transition: all 0.2s;
}
.trust-phone-btn.primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(0,102,179,0.3); }
.trust-phone-btn.outline { background: white; color: var(--primary); border: 2px solid var(--primary); }

.trust-table-wrap {
  background: white; border-radius: var(--radius-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
}
.trust-table { width: 100%; border-collapse: collapse; text-align: left; }
.trust-table thead tr { background: rgba(0,102,179,0.05); border-bottom: 1px solid rgba(0,102,179,0.1); }
.trust-table th { padding: 1rem 1.25rem; font-weight: 600; font-size: 0.875rem; color: var(--text); }
.trust-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.trust-table tbody tr:nth-child(even) { background: rgba(248,250,252,0.5); }
.trust-table tbody tr:hover { background: rgba(0,102,179,0.05); }

.map-embed {
  width: 100%; height: 400px; border: none; border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

/* About */
.about-section { scroll-margin-top: 6rem; margin-bottom: 3.5rem; }
.about-section-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.about-section-icon {
  padding: 0.625rem; border-radius: var(--radius-lg);
  background: rgba(0,102,179,0.1); color: var(--primary); font-size: 1.5rem;
}
.about-section h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; }
.about-section .subtitle { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--text-muted); }
.about-box {
  background: white; border-radius: var(--radius-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 1.5rem 2rem;
}
.about-box p { font-size: 1.125rem; line-height: 1.8; color: var(--text); margin: 0 0 1.5rem; }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.5rem 0; color: var(--text); line-height: 1.7;
}
.about-list li::before {
  content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--secondary); margin-top: 0.6rem; flex-shrink: 0;
}
.nizom-box { overflow: hidden; }
.nizom-header {
  background: linear-gradient(90deg, rgba(0,102,179,0.05), rgba(0,166,81,0.05), rgba(0,102,179,0.05));
  padding: 1.25rem 2rem; border-bottom: 1px solid var(--border); text-align: center;
}
.nizom-header h3 { margin: 0; color: var(--primary); font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: 0.02em; }
.nizom-body { padding: 1.5rem 2rem; }
.nizom-chapter {
  border-left: 4px solid rgba(0,166,81,0.6); padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.nizom-chapter h4 { margin: 0 0 1rem; font-size: 1.125rem; font-weight: 700; }
.nizom-chapter p { margin: 0 0 0.75rem; line-height: 1.7; color: var(--text); font-size: 0.9375rem; }
.nizom-chapter ul { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.nizom-chapter ul li { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; line-height: 1.7; font-size: 0.9375rem; }
.nizom-chapter ul li::before { content: '•'; color: var(--secondary); }

/* Leadership cards */
.page-main-gradient {
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  padding-bottom: 5rem;
}
.page-content-narrow {
  max-width: 56rem;
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .page-content-narrow { padding: 3.5rem 0; }
}
.leadership-list {
  max-width: 64rem;
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .leadership-list { padding: 3.5rem 0; }
}
.leadership-stack { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) {
  .leadership-stack { gap: 2rem; }
}
.leadership-empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }

.leadership-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.leadership-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.05), transparent, rgba(0, 166, 81, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.leadership-card:hover {
  box-shadow: 0 10px 40px rgba(0, 74, 130, 0.12);
  border-color: rgba(0, 102, 179, 0.2);
}
.leadership-card:hover::before { opacity: 1; }
@media (min-width: 640px) {
  .leadership-card { flex-direction: row; }
}

.leadership-card-photo-wrap {
  flex-shrink: 0;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .leadership-card-photo-wrap { margin: 1.5rem 0 0 1.5rem; }
}
.leadership-card-photo {
  width: 9rem;
  height: 11rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(0, 102, 179, 0.1);
  box-shadow: 0 4px 12px rgba(0, 74, 130, 0.12);
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.1), rgba(0, 166, 81, 0.1));
}
@media (min-width: 768px) {
  .leadership-card-photo { width: 10rem; height: 12rem; }
}
.leadership-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.leadership-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(0, 102, 179, 0.4);
}

.leadership-card-body {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .leadership-card-body { padding: 2rem; }
}
.leadership-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
}
.leadership-card-name {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #0f172a;
}
.leadership-card-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) {
  .leadership-card-contacts { grid-template-columns: repeat(3, 1fr); }
}
.leadership-contact-label {
  margin: 0 0 0.125rem;
  color: #64748b;
}
.leadership-contact-value {
  margin: 0;
  font-weight: 500;
  color: #1e293b;
}
.leadership-contact-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.leadership-contact-link:hover { color: var(--primary-dark); text-decoration: none; }

.leadership-bio-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 14px rgba(0, 102, 179, 0.2);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.leadership-bio-btn:hover {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
}

.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.bio-modal[hidden] { display: none; }
.bio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.bio-modal-content {
  position: relative;
  width: 100%;
  max-width: 42rem;
  max-height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(0, 102, 179, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: fadeInScale 0.2s ease-out;
}
@media (min-width: 768px) {
  .bio-modal-content { padding: 2rem; }
}
.bio-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bio-modal-close:hover { background: #f1f5f9; color: #475569; }
.bio-modal-name {
  margin: 0 0 1rem;
  padding-right: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
.bio-modal-text {
  color: #334155;
  line-height: 1.7;
  white-space: pre-line;
}

/* Leadership / Departments */
.person-card, .branch-card {
  background: white; border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}
.person-card:hover, .branch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.person-card h3 { margin: 0 0 0.25rem; color: var(--primary-dark); font-weight: 700; }
.person-card .role { color: var(--secondary); font-weight: 600; margin-bottom: 1rem; }

/* Departments page */
.departments-page { padding-bottom: 5rem; }
.departments-container { max-width: 72rem; }
.departments-empty,
.departments-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}
.departments-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 102, 179, 0.08);
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
}
.departments-search-wrap {
  position: relative;
  max-width: 28rem;
  margin-bottom: 2rem;
}
.departments-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.departments-search {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: white;
  font: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.departments-search:focus {
  outline: none;
  border-color: rgba(0, 102, 179, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.12);
}
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.dept-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 102, 179, 0), rgba(0, 168, 150, 0));
  pointer-events: none;
  transition: background 0.5s ease;
}
.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(0, 168, 150, 0.3);
}
.dept-card:hover::after {
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.03), rgba(0, 168, 150, 0.05));
}
.dept-card-accent {
  height: 0.5rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--secondary));
}
.dept-card-media {
  position: relative;
  height: 9rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 102, 179, 0.08), rgba(0, 168, 150, 0.1));
}
.dept-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dept-card:hover .dept-card-media img { transform: scale(1.05); }
.dept-card-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(0, 102, 179, 0.25);
}
.dept-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.dept-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  transition: color 0.3s ease;
}
.dept-card:hover .dept-card-title { color: var(--primary); }
.dept-card-leader {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.dept-card-leader-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}
.dept-card-leader-name {
  display: block;
  font-size: 0.875rem;
  color: #475569;
}
.dept-card-contacts {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.dept-card-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.45;
}
.dept-card-contact a {
  color: var(--primary);
  font-weight: 500;
  word-break: break-word;
}
.dept-card-contact a:hover { color: var(--primary-dark); text-decoration: none; }
.dept-card-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--secondary);
}
.dept-card.is-hidden { display: none; }

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .dept-card:hover { transform: none; }
  .dept-card:hover .dept-card-media img { transform: none; }
  .news-card:hover { transform: none; }
  .news-card:hover .news-card-media img,
  .news-card:hover > img { transform: none; }
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.875rem; color: var(--text); }
.form-control {
  width: 100%; padding: 0.625rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); font: inherit; min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,102,179,0.15); }
textarea.form-control { min-height: 140px; resize: vertical; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* Footer */
.site-footer { background: #111827; color: #94a3b8; padding: 3rem 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.site-footer h3, .site-footer h4 { color: white; margin: 0 0 1rem; font-weight: 700; }
.site-footer h3 { font-size: 1.125rem; }
.site-footer p, .site-footer li { font-size: 0.875rem; line-height: 1.6; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #94a3b8; transition: color 0.2s; }
.site-footer a:hover { color: white; text-decoration: none; }
.footer-social {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem;
}
.footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: rgba(255,255,255,0.1); color: white;
  transition: background 0.2s;
}
.footer-social-link:hover { background: rgba(255,255,255,0.2); color: white; }
.footer-bottom {
  border-top: 1px solid #1f2937; padding: 2rem 0; text-align: center;
  font-size: 0.875rem; color: #64748b;
}

/* Accessibility toolbar */
.a11y-toolbar { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; }
.a11y-panel {
  display: none; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border: 1px solid rgba(0,102,179,0.15); box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl); padding: 1.25rem; margin-bottom: 1rem;
  width: min(20rem, 90vw); animation: fadeInScale 0.2s ease-out;
}
.a11y-panel.open { display: block; }
.a11y-panel-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,102,179,0.1); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.a11y-panel-header h2 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--primary-dark); }
.a11y-close { min-height: 44px; min-width: 44px; background: transparent; border: none; cursor: pointer; border-radius: var(--radius); color: var(--text-muted); }
.a11y-close:hover { background: rgba(0,102,179,0.1); color: var(--primary-dark); }
.a11y-group { margin-bottom: 1.25rem; }
.a11y-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.5rem; }
.a11y-row { display: flex; gap: 0.5rem; align-items: center; }
.a11y-btn {
  flex: 1; min-height: 44px; border: none; border-radius: var(--radius-lg);
  background: rgba(0,102,179,0.1); color: var(--primary-dark); font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.a11y-btn:hover { background: rgba(0,102,179,0.2); }
.a11y-btn.active { background: var(--primary); color: white; box-shadow: var(--shadow); }
.a11y-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.a11y-value { width: 3.5rem; text-align: center; font-weight: 700; color: var(--primary-dark); }
.a11y-toggle { width: 100%; }
.a11y-fab {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; min-width: 52px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s; font-size: 1.5rem;
}
.a11y-fab:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,102,179,0.3); }

/* Admin */
.admin-layout {
  display: flex; min-height: 100vh;
  background: linear-gradient(135deg, #f1f5f9, rgba(219,234,254,0.3), #f1f5f9);
}
.admin-sidebar {
  width: 16rem; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: white; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-brand img {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: white; object-fit: cover; box-shadow: var(--shadow);
}
.admin-sidebar-brand h2 { margin: 0; font-size: 1.125rem; font-weight: 700; }
.admin-sidebar-brand a { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.admin-sidebar-brand a:hover { color: white; text-decoration: none; }
.admin-nav { list-style: none; padding: 1rem 0.75rem; margin: 0; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg); margin-bottom: 0.25rem;
  font-weight: 500; transition: all 0.2s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }
.admin-nav a.active {
  background: white; color: var(--primary); font-weight: 600; box-shadow: var(--shadow);
}
.admin-nav-icon { width: 1.25rem; text-align: center; opacity: 0.9; }
.admin-sidebar-footer {
  padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar-footer .lang-switch { border: none; padding: 0.25rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.admin-sidebar-footer .lang-switch-btn {
  min-height: 36px; min-width: auto; font-size: 0.75rem; padding: 0.25rem 0.5rem;
  color: rgba(255,255,255,0.7);
}
.admin-sidebar-footer .lang-switch-btn.active {
  background: white; color: var(--primary);
}
.admin-main { flex: 1; padding: 2rem; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { margin: 0; font-size: 1.75rem; color: var(--text); font-weight: 700; }
.admin-card { background: white; border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: white; padding: 1.5rem; border-radius: var(--radius-xl);
  box-shadow: var(--shadow); border: 1px solid var(--border); text-align: center;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-sub { margin-top: 0.35rem; font-size: 0.8125rem; color: var(--text-muted, #64748b); }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.admin-card-title { margin: 0 0 1rem; font-size: 1.125rem; color: var(--text); }
.visit-chart { display: flex; align-items: flex-end; gap: 0.75rem; min-height: 180px; padding: 0.5rem 0 0; }
.visit-chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; height: 160px; }
.visit-chart-bar { width: 100%; max-width: 3rem; background: linear-gradient(180deg, var(--secondary), var(--primary)); border-radius: 0.375rem 0.375rem 0 0; min-height: 4px; transition: height 0.2s; }
.visit-chart-value { margin-top: 0.35rem; font-size: 0.75rem; font-weight: 700; color: var(--primary-dark); }
.visit-chart-label { margin-top: 0.15rem; font-size: 0.6875rem; color: var(--text-muted, #64748b); }
.visit-chart-legend { margin: 0.75rem 0 0; font-size: 0.8125rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; color: var(--primary-dark); font-size: 0.875rem; background: var(--bg-muted); }
.table tbody tr:hover { background: rgba(0,102,179,0.03); }
.badge { display: inline-block; padding: 0.2rem 0.625rem; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-muted { background: #f1f5f9; color: #64748b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
}
.login-card {
  background: white; padding: 2.5rem; border-radius: var(--radius-xl);
  width: min(420px, 92%); box-shadow: var(--shadow-lg);
}
.login-card h1 { margin: 0 0 1.5rem; text-align: center; color: var(--primary-dark); font-weight: 700; }
.login-logo { width: 4rem; height: 4rem; border-radius: 50%; margin: 0 auto 1.5rem; display: block; object-fit: cover; }

/* Layout */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrap.has-header { padding-top: 0; }
main { flex: 1; }

/* Mobile */
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
