:root {
  --bg: #f6f7f4;
  --surface: rgba(255,255,255,.78);
  --surface-solid: #ffffff;
  --surface-2: #edf0eb;
  --text: #0b1726;
  --muted: #667181;
  --line: rgba(10, 25, 42, .11);
  --primary: #0f8a73;
  --primary-strong: #08735f;
  --accent: #c8a96b;
  --navy: #07111f;
  --navy-2: #0e2035;
  --shadow: 0 26px 80px rgba(7,17,31,.10);
  --shadow-soft: 0 16px 42px rgba(7,17,31,.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
  --header-height: 84px;
}

html[data-theme="dark"] {
  --bg: #07111f;
  --surface: rgba(14,32,53,.75);
  --surface-solid: #0c1a2c;
  --surface-2: #10243b;
  --text: #eff7f4;
  --muted: #9daebe;
  --line: rgba(255,255,255,.11);
  --primary: #35b79d;
  --primary-strong: #63d1bc;
  --accent: #d6b97d;
  --navy: #04101d;
  --navy-2: #0b1b2d;
  --shadow: 0 30px 90px rgba(0,0,0,.32);
  --shadow-soft: 0 18px 50px rgba(0,0,0,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(15,138,115,.12), transparent 26%),
    radial-gradient(circle at 88% 6%, rgba(200,169,107,.12), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color .25s ease, color .25s ease;
}
html[lang="ar"] body { font-family: "Noto Kufi Arabic", "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { color: inherit; }

.site-shell { min-height: 100vh; overflow: clip; }
.site-header {
  width: min(calc(100% - 32px), var(--container));
  height: var(--header-height);
  margin: 14px auto 0;
  padding: 0 18px 0 22px;
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), #0a5f51);
  box-shadow: 0 8px 20px rgba(15,138,115,.24);
}
.brand-mark svg { width: 29px; fill: white; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: 1.03rem; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); text-transform: uppercase; letter-spacing: .23em; font-size: .59rem; margin-top: 6px; }
.desktop-nav { display: flex; gap: 28px; margin-left: auto; }
.desktop-nav a { color: var(--muted); font-size: .93rem; font-weight: 600; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .mobile-menu-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-solid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.icon-button:hover, .mobile-menu-button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); }
.language-switcher { position: relative; }
.language-button { gap: 7px; min-width: 78px; padding: 0 10px; font-size: .82rem; font-weight: 700; }
.globe { font-size: 1.12rem; }
.chevron { color: var(--muted); margin-top: -4px; }
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  inset-inline-end: 0;
  min-width: 150px;
  padding: 7px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: .2s ease;
}
.language-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.language-menu button { width: 100%; text-align: start; border: 0; background: transparent; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.language-menu button:hover { background: var(--surface-2); }
.theme-button { width: 42px; }
html[data-theme="dark"] .sun-icon { display: none; }
html:not([data-theme="dark"]) .moon-icon { display: none; }
.mobile-menu-button { display: none; width: 42px; font-size: 1.15rem; }
.mobile-nav {
  display: none;
  width: min(calc(100% - 32px), var(--container));
  margin: 10px auto 0;
  padding: 16px;
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: grid; gap: 8px; }
.mobile-nav > a:not(.button) { padding: 10px 12px; border-radius: 10px; }
.mobile-nav > a:not(.button):hover { background: var(--surface-2); }

.button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: .88rem; }
.button-primary { background: var(--primary); color: white; box-shadow: 0 12px 28px rgba(15,138,115,.22); }
.button-primary:hover { background: var(--primary-strong); }
.button-secondary { background: var(--surface-solid); border-color: var(--line); }
.button-ghost { background: transparent; border-color: var(--line); }
.button-danger { background: rgba(190,54,68,.12); color: #c34655; border-color: rgba(190,54,68,.2); }

.page { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.hero { padding: 84px 0 78px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 68px; min-height: 710px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--primary); font-size: .79rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { font-family: "Manrope", "Noto Kufi Arabic", sans-serif; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(3.4rem, 7vw, 6.65rem); letter-spacing: -.075em; max-width: 850px; }
html[lang="ar"] h1 { letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero-copy > p { max-width: 620px; font-size: clamp(1.03rem, 1.55vw, 1.23rem); color: var(--muted); margin: 25px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; align-items: center; gap: 18px; margin-top: 34px; color: var(--muted); font-size: .89rem; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--bg); margin-inline-start: -9px; color: white; font-size: .72rem; font-weight: 800; background: linear-gradient(145deg, var(--navy-2), var(--primary)); }
.avatar-stack span:first-child { margin-inline-start: 0; }
.hero-visual { position: relative; min-height: 540px; }
.hero-orbit { position: absolute; inset: 5% 4% 2% 8%; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-12deg); }
.hero-card-main {
  position: absolute;
  inset: 38px 20px 45px 52px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(160deg, #17324d 0%, #0d1d31 60%, #0f8a73 135%);
  box-shadow: 0 40px 110px rgba(7,17,31,.34);
  transform: rotate(2.5deg);
}
.hero-card-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7,17,31,.88), transparent 65%),
    url('/assets/global-campus.svg') center/cover no-repeat;
  opacity: .9;
}
.hero-card-content { position: absolute; inset: auto 28px 28px; z-index: 2; color: white; }
.hero-card-content span { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.68); }
.hero-card-content h3 { font-size: 2rem; margin-top: 9px; }
.floating-card { position: absolute; z-index: 3; padding: 17px 18px; background: color-mix(in srgb, var(--surface-solid) 90%, transparent); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.floating-card strong { display: block; font-family: "Manrope", sans-serif; }
.floating-card small { color: var(--muted); }
.floating-card.one { top: 56px; inset-inline-start: -12px; }
.floating-card.two { bottom: 36px; inset-inline-end: -12px; }
.metric-badge { display: flex; align-items: center; gap: 11px; }
.metric-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(15,138,115,.13); color: var(--primary); display: grid; place-items: center; font-weight: 900; }

.trust-strip { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); align-items: center; gap: 18px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); backdrop-filter: blur(15px); }
.trust-strip > p { margin: 0; color: var(--muted); font-size: .88rem; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .89rem; }
.trust-item span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(15,138,115,.12); color: var(--primary); }

.section { padding: 112px 0; }
.section-tight { padding: 76px 0; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.section-title { max-width: 690px; }
.section-title .eyebrow { margin-bottom: 13px; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); letter-spacing: -.06em; }
html[lang="ar"] h2 { letter-spacing: -.03em; }
.section-title p { color: var(--muted); max-width: 600px; margin: 18px 0 0; font-size: 1.02rem; }
.text-link { color: var(--primary); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }

.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.country-card { position: relative; min-height: 320px; padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface-solid); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .25s ease, border-color .25s ease; }
.country-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.country-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(15,138,115,.18), transparent 70%); top: -70px; inset-inline-end: -60px; }
.country-top { display: flex; justify-content: space-between; align-items: start; position: relative; z-index: 2; }
.flag { font-size: 2rem; filter: drop-shadow(0 5px 9px rgba(0,0,0,.12)); }
.card-arrow { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }
.country-card h3 { font-size: 1.72rem; margin-top: 80px; }
.country-card p { color: var(--muted); margin: 13px 0 24px; }
.country-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.country-meta strong { color: var(--text); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { padding: 26px; border-radius: 23px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(14px); }
.service-number { color: var(--accent); font-family: "Manrope", sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .12em; }
.service-card h3 { font-size: 1.25rem; margin: 22px 0 12px; }
.service-card p { color: var(--muted); margin: 0; font-size: .92rem; }

.process-wrap { padding: 48px; border-radius: 34px; color: white; background: linear-gradient(135deg, var(--navy), #102840); position: relative; overflow: hidden; }
.process-wrap::after { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; right: -140px; top: -170px; background: radial-gradient(circle, rgba(53,183,157,.22), transparent 67%); }
.process-wrap .section-header { position: relative; z-index: 2; }
.process-wrap .section-title p { color: rgba(255,255,255,.62); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; z-index: 2; }
.process-card { padding: 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 21px; background: rgba(255,255,255,.055); }
.process-card span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(53,183,157,.16); color: #6be3ca; font-weight: 800; }
.process-card h3 { margin: 27px 0 11px; font-size: 1.13rem; }
.process-card p { color: rgba(255,255,255,.58); margin: 0; font-size: .88rem; }

.testimonial { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.testimonial-stat { padding: 36px; border-radius: 28px; background: var(--primary); color: white; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; }
.testimonial-stat strong { font-size: 4.5rem; letter-spacing: -.07em; line-height: 1; }
.testimonial-stat p { max-width: 270px; margin: 0; opacity: .82; }
.testimonial-quote { padding: 40px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface-solid); display: flex; flex-direction: column; justify-content: space-between; }
.quote-mark { font-size: 4rem; line-height: 1; color: var(--accent); }
.testimonial-quote blockquote { margin: 20px 0 32px; font-family: "Manrope", sans-serif; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.45; letter-spacing: -.03em; }
.student-line { display: flex; align-items: center; gap: 13px; }
.student-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg, var(--navy-2), var(--primary)); display: grid; place-items: center; color: white; font-weight: 800; }
.student-line small { display: block; color: var(--muted); }

.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; padding: 50px; border-radius: 34px; border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow); }
.contact-copy p { color: var(--muted); margin: 20px 0 32px; max-width: 430px; }
.contact-points { display: grid; gap: 14px; }
.contact-point { display: flex; gap: 12px; align-items: center; }
.contact-point span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(15,138,115,.12); color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,138,115,.11); }
.field textarea { min-height: 122px; resize: vertical; }
.form-grid .button { grid-column: 1 / -1; width: 100%; }
.hidden { display: none !important; }

/* Inner pages */
.inner-hero { padding: 92px 0 48px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .85rem; margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--primary); }
.inner-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }
.inner-hero h1 { font-size: clamp(3.3rem, 6vw, 5.8rem); }
.inner-hero p { color: var(--muted); max-width: 640px; font-size: 1.08rem; }
.country-emblem { min-height: 340px; border-radius: 30px; background: linear-gradient(145deg, var(--navy-2), #17344f); display: grid; place-items: center; font-size: 8rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.country-emblem::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(53,183,157,.34), transparent 34%), radial-gradient(circle at 20% 80%, rgba(200,169,107,.2), transparent 30%); }
.country-emblem span { position: relative; filter: drop-shadow(0 20px 30px rgba(0,0,0,.28)); }
.university-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.university-card { display: grid; grid-template-columns: 180px 1fr; min-height: 220px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface-solid); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .2s ease; }
.university-card:hover { transform: translateY(-5px); }
.university-card-image { position: relative; background: linear-gradient(145deg, #15314b, #0f8a73); overflow: hidden; }
.university-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.university-card-body { padding: 24px; display: flex; flex-direction: column; }
.university-card-body h3 { font-size: 1.33rem; }
.university-card-body p { color: var(--muted); font-size: .9rem; margin: 11px 0 20px; }
.university-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pill { padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 700; }

.university-page { padding: 64px 0 110px; }
.university-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 30px; }
.university-head h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
.university-head p { color: var(--muted); margin: 13px 0 0; }
.university-head-actions { display: flex; gap: 10px; flex-shrink: 0; }
.carousel { position: relative; border-radius: 30px; overflow: hidden; height: min(60vw, 560px); min-height: 360px; background: var(--navy-2); box-shadow: var(--shadow); }
.carousel-track { height: 100%; display: flex; transition: transform .5s cubic-bezier(.25,.8,.25,1); }
.carousel-slide { min-width: 100%; height: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,17,31,.55), transparent 50%); }
.carousel-controls { position: absolute; inset: auto 20px 20px; display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.carousel-buttons { display: flex; gap: 8px; }
.carousel-button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(7,17,31,.5); color: white; backdrop-filter: blur(12px); cursor: pointer; }
.carousel-dots { display: flex; gap: 7px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.carousel-dot.active { width: 25px; border-radius: 999px; background: white; }
.university-content { display: grid; grid-template-columns: 1fr 370px; gap: 42px; margin-top: 48px; align-items: start; }
.content-card { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-solid); }
.content-card + .content-card { margin-top: 17px; }
.content-card h2 { font-size: 1.75rem; letter-spacing: -.04em; margin-bottom: 18px; }
.content-card p { color: var(--muted); margin: 0; }
.major-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.major-list li { padding: 13px 14px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; display: flex; align-items: center; gap: 9px; }
.major-list li::before { content: "✓"; color: var(--primary); font-weight: 900; }
.sticky-card { position: sticky; top: 118px; padding: 28px; border-radius: 24px; background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: white; box-shadow: var(--shadow); }
.sticky-card h3 { font-size: 1.4rem; }
.price { font-family: "Manrope", sans-serif; font-size: 2.35rem; font-weight: 800; letter-spacing: -.05em; margin: 18px 0 3px; }
.sticky-card small, .sticky-card p { color: rgba(255,255,255,.62); }
.quick-facts { display: grid; gap: 12px; margin: 24px 0; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.quick-fact { display: flex; justify-content: space-between; gap: 20px; font-size: .87rem; }
.quick-fact span:first-child { color: rgba(255,255,255,.6); }
.sticky-card .button { width: 100%; }

/* Admin */
.admin-shell { padding: 58px 0 110px; }
.admin-login { min-height: 580px; display: grid; place-items: center; }
.login-card { width: min(100%, 480px); padding: 36px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 28px; }
.login-card h1 { font-size: 2.45rem; letter-spacing: -.055em; }
.login-card p { color: var(--muted); }
.login-card .field { margin: 22px 0 14px; }
.login-card .button { width: 100%; }
.admin-warning { margin-top: 17px; padding: 12px 13px; border-radius: 12px; background: rgba(200,169,107,.13); color: var(--muted); font-size: .78rem; }
.admin-topbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 30px; }
.admin-topbar h1 { font-size: clamp(2.4rem, 4.7vw, 4rem); }
.admin-topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 22px; }
.admin-metric { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-solid); }
.admin-metric span { color: var(--muted); font-size: .8rem; }
.admin-metric strong { display: block; margin-top: 8px; font-size: 2rem; font-family: "Manrope", sans-serif; }
.admin-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }
.admin-panel { border: 1px solid var(--line); border-radius: 23px; background: var(--surface-solid); overflow: hidden; }
.admin-panel-header { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-panel-header h2 { font-size: 1.35rem; letter-spacing: -.03em; }
.admin-list { display: grid; }
.admin-row { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-row p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.row-actions { display: flex; gap: 6px; }
.mini-button { border: 1px solid var(--line); background: var(--bg); min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer; }
.mini-button:hover { border-color: var(--primary); color: var(--primary); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(4,11,19,.72); z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal { width: min(100%, 720px); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 24px; background: var(--surface-solid); box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }
.modal-header h2 { font-size: 1.6rem; }
.modal-close { border: 0; background: var(--surface-2); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-form .field.full { grid-column: 1 / -1; }
.modal-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.empty-state { padding: 38px 22px; text-align: center; color: var(--muted); }

.not-found { min-height: 620px; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.not-found strong { font-size: clamp(5rem, 17vw, 10rem); color: var(--primary); line-height: 1; font-family: "Manrope", sans-serif; }
.not-found h1 { font-size: 2.6rem; }
.not-found p { color: var(--muted); }

.site-footer { width: min(calc(100% - 32px), var(--container)); margin: 0 auto 24px; padding: 45px 42px 24px; border-radius: 30px; background: var(--navy); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.48); }
.footer-grid p { color: rgba(255,255,255,.52); max-width: 320px; }
.footer-grid h4 { font-size: .93rem; margin-bottom: 16px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-grid a, .footer-grid span { color: rgba(255,255,255,.58); font-size: .86rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.4); font-size: .79rem; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--navy); color: white; padding: 12px 17px; border-radius: 12px; box-shadow: var(--shadow); z-index: 120; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1060px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; }
  .service-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
  .university-content { grid-template-columns: 1fr 320px; }
}

@media (max-width: 820px) {
  :root { --header-height: 72px; }
  .site-header { top: 9px; margin-top: 9px; padding: 0 11px 0 15px; }
  .brand-copy { display: none; }
  .desktop-cta { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; min-height: auto; }
  .hero-visual { min-height: 480px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > p { margin-bottom: 5px; }
  .section { padding: 82px 0; }
  .section-header { align-items: start; flex-direction: column; }
  .testimonial, .inner-hero-grid { grid-template-columns: 1fr; }
  .university-grid { grid-template-columns: 1fr; }
  .university-head { flex-direction: column; align-items: start; }
  .university-content { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page, .site-header, .mobile-nav, .site-footer { width: min(calc(100% - 22px), var(--container)); }
  .language-button { min-width: 65px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero { padding: 52px 0 58px; }
  .hero-visual { min-height: 420px; }
  .hero-card-main { inset: 34px 8px 38px 24px; }
  .floating-card { padding: 13px; }
  .floating-card.one { inset-inline-start: -2px; }
  .floating-card.two { inset-inline-end: -2px; }
  .country-grid, .service-grid, .process-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .process-wrap, .contact-panel { padding: 27px 20px; border-radius: 25px; }
  .testimonial-stat, .testimonial-quote { padding: 28px; }
  .form-grid, .admin-form { grid-template-columns: 1fr; }
  .field.full, .admin-form .field.full, .modal-actions { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .university-card { grid-template-columns: 1fr; }
  .university-card-image { min-height: 190px; }
  .major-list { grid-template-columns: 1fr; }
  .carousel { min-height: 300px; }
  .university-head-actions { width: 100%; }
  .university-head-actions .button { flex: 1; }
  .admin-topbar { flex-direction: column; align-items: start; }
  .admin-metrics { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
}
