:root {
    --navy: #103057;
    --navy-2: #173e70;
    --red: #c01c30;
    --red-2: #e8384d;
    --gold: #d9a441;
    --bg: #f6f8fb;
    --surface: rgba(255,255,255,.82);
    --surface-solid: #ffffff;
    --text: #111827;
    --muted: #667085;
    --border: rgba(16,48,87,.12);
    --shadow: 0 24px 70px rgba(16, 48, 87, .12);
    --radius: 28px;
}

[data-theme="dark"] {
    --bg: #07111f;
    --surface: rgba(13, 27, 48, .78);
    --surface-solid: #0d1b30;
    --text: #eef4ff;
    --muted: #aab7ca;
    --border: rgba(255,255,255,.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Cairo', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    background: radial-gradient(circle at top left, rgba(192, 28, 48, .1), transparent 28%), var(--bg);
    color: var(--text);
    overflow-x: hidden;
}
body:lang(en), html[lang="en"] body { font-family: 'Inter', 'Cairo', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.page-glow { position: fixed; width: 430px; height: 430px; border-radius: 999px; filter: blur(90px); opacity: .38; pointer-events: none; z-index: -1; }
.glow-one { background: rgba(16,48,87,.35); top: -150px; inset-inline-start: -110px; }
.glow-two { background: rgba(192,28,48,.24); bottom: 10%; inset-inline-end: -130px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
    border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 22px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 28px rgba(16,48,87,.18); }
.brand strong { display: block; font-size: 18px; line-height: 1.1; color: var(--navy); }
[data-theme="dark"] .brand strong { color: #ffffff; }
.brand small { display: block; max-width: 200px; color: var(--muted); font-size: 11px; line-height: 1.3; margin-top: 3px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.main-nav a { padding: 10px 12px; color: var(--muted); font-weight: 700; font-size: 14px; border-radius: 999px; transition: .25s; }
.main-nav a:hover { background: rgba(16,48,87,.08); color: var(--navy); }
[data-theme="dark"] .main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-pill { border: 1px solid var(--border); color: var(--navy)!important; background: rgba(16,48,87,.06); }
[data-theme="dark"] .nav-pill { color: #fff!important; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch, .theme-toggle, .menu-toggle {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
    border-radius: 999px;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(16,48,87,.06);
}
.menu-toggle { display: none; width: 44px; justify-content: center; padding: 0; }
.notifications { margin-top: 20px; }
.notice { padding: 14px 18px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border); display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.notice.success i { color: #12b76a; }
.hero { padding-top: 76px; min-height: calc(100vh - 86px); display: flex; align-items: center; }
.hero-grid, .split-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.split-grid.reverse { grid-template-columns: .95fr 1.05fr; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 900; letter-spacing: .3px; background: rgba(192,28,48,.08); border: 1px solid rgba(192,28,48,.18); padding: 8px 14px; border-radius: 999px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.05; margin: 22px 0; letter-spacing: -1.8px; }
h2 { font-size: clamp(30px, 3.7vw, 48px); line-height: 1.15; margin: 12px 0; letter-spacing: -.7px; }
h3 { font-size: 21px; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.85; }
.hero-copy > p { max-width: 680px; font-size: 19px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.btn { min-height: 50px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 900; border: 1px solid transparent; cursor: pointer; transition: .25s; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--navy), var(--red)); box-shadow: 0 18px 38px rgba(192,28,48,.26); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 44px rgba(192,28,48,.32); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover, .btn-ghost:hover { transform: translateY(-2px); background: var(--surface-solid); }
.btn-ghost { color: var(--red); background: transparent; border-color: rgba(192,28,48,.18); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; }
.mini-stats div, .stats-grid div, .about-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 16px; box-shadow: 0 10px 28px rgba(16,48,87,.07); }
.mini-stats strong, .stats-grid strong, .about-stats strong { display: block; font-size: 25px; color: var(--navy); }
[data-theme="dark"] .mini-stats strong, [data-theme="dark"] .stats-grid strong, [data-theme="dark"] .about-stats strong { color: #fff; }
.mini-stats span, .stats-grid span, .about-stats span { color: var(--muted); font-size: 13px; font-weight: 800; }
.hero-visual { position: relative; }
.slider { position: relative; border-radius: 36px; overflow: hidden; min-height: 610px; box-shadow: var(--shadow); background: var(--surface-solid); border: 1px solid var(--border); }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 1s ease; }
.slide.active { opacity: 1; transform: scale(1); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,17,31,.74), rgba(7,17,31,.08) 55%, transparent); }
.slide-caption { position: absolute; z-index: 2; inset-inline: 28px; bottom: 28px; color: #fff; }
.slide-caption span { display: inline-flex; padding: 7px 12px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 13px; margin-bottom: 10px; }
.slide-caption strong { display: block; font-size: 26px; line-height: 1.3; }
.slider-dots { position: absolute; z-index: 3; top: 22px; inset-inline-end: 22px; display: flex; gap: 7px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.slider-dots button.active { width: 30px; background: #fff; }
.floating-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); font-weight: 900; }
.floating-card i { color: var(--red); }
.floating-card-a { bottom: 44px; inset-inline-start: -28px; }
.floating-card-b { top: 64px; inset-inline-end: -24px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head.align-start { text-align: start; margin: 0; max-width: none; }
.section-head.with-action { display: flex; justify-content: space-between; gap: 30px; align-items: end; text-align: start; max-width: none; }
.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card, .faculty-card, .why-card, .news-card, .form-panel, .verify-result, .contact-cards article, .values-list article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(16,48,87,.08);
}
.program-card { padding: 30px; display: flex; flex-direction: column; min-height: 330px; }
.icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--red)); box-shadow: 0 14px 32px rgba(16,48,87,.2); font-size: 24px; margin-bottom: 20px; }
.icon.small { width: 50px; height: 50px; border-radius: 16px; font-size: 19px; margin-bottom: 15px; }
.card-footer { margin-top: auto; border-top: 1px solid var(--border); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-footer span { color: var(--muted); font-weight: 800; }
.card-footer a, .faculty-card a, .news-card a { color: var(--red); font-weight: 900; }
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.faculty-card { padding: 24px; transition: .25s; }
.faculty-card:hover, .program-card:hover, .why-card:hover, .news-card:hover { transform: translateY(-5px); border-color: rgba(192,28,48,.32); }
.faculty-card p { font-size: 14px; }
.stats-strip { padding: 44px 0; background: linear-gradient(135deg, var(--navy), #0d2441 55%, var(--red)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-grid div { text-align: center; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); box-shadow: none; }
.stats-grid strong { color: #fff!important; font-size: 34px; }
.stats-grid span { color: rgba(255,255,255,.78); }
.ai-frame { overflow: hidden; border-radius: 34px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface-solid); position: relative; }
.ai-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(16,48,87,.2), rgba(192,28,48,.08)); pointer-events: none; }
.ai-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.ai-frame.wide img { min-height: 430px; }
.ai-frame.tall img { min-height: 780px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-card { padding: 24px; }
.admission-section, .about-section { background: linear-gradient(180deg, transparent, rgba(16,48,87,.05), transparent); }
.form-panel { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.form-grid.compact { margin-top: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; }
.form-grid label.full, .form-grid .full { grid-column: 1 / -1; }
.form-grid span { font-weight: 900; color: var(--text); font-size: 14px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
    color: var(--text);
    border-radius: 16px;
    padding: 13px 15px;
    outline: none;
    transition: .25s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(192,28,48,.5); box-shadow: 0 0 0 4px rgba(192,28,48,.08); }
.upload-box { border: 1px dashed rgba(192,28,48,.35); border-radius: 20px; padding: 15px; background: rgba(192,28,48,.04); }
.upload-box small { color: var(--muted); }
.admission-visual { position: relative; }
.glass-note { position: absolute; bottom: 28px; inset-inline: 28px; display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.72); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.5); box-shadow: var(--shadow); color: #0d1b30; font-weight: 800; }
.glass-note i { color: var(--red); font-size: 24px; }
.search-form { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 10px; box-shadow: var(--shadow); margin: 26px 0; }
.search-form input { border: 0; background: transparent; }
.search-form input:focus { box-shadow: none; }
.certificate-frame img { min-height: 500px; }
.verify-result { padding: 24px; margin-top: 18px; }
.verify-result > i { font-size: 32px; margin-bottom: 10px; display: inline-block; }
.verify-result.success > i { color: #12b76a; }
.verify-result.error > i { color: var(--red); }
.result-grid { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-top: 16px; }
.result-grid span { color: var(--muted); font-weight: 800; }
.result-grid strong { color: var(--text); }
.values-list { display: grid; gap: 14px; margin: 24px 0; }
.values-list article { padding: 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.values-list i { width: 44px; height: 44px; border-radius: 14px; background: rgba(192,28,48,.1); color: var(--red); display: grid; place-items: center; grid-row: span 2; }
.values-list h3 { margin-bottom: 2px; }
.values-list p { margin: 0; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-card { overflow: hidden; }
.news-card img { width: 100%; height: 210px; object-fit: cover; }
.news-card div { padding: 20px; }
.news-card time { color: var(--red); font-weight: 900; font-size: 13px; }
.news-card h3 { font-size: 18px; line-height: 1.35; margin-top: 8px; }
.news-card p { font-size: 14px; }
.cta-section { padding: 58px 0; }
.cta-card { padding: 34px; border-radius: 34px; background: linear-gradient(135deg, var(--navy), var(--red)); color: #fff; display: flex; justify-content: space-between; gap: 24px; align-items: center; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.cta-card::after { content: ''; position: absolute; width: 360px; height: 360px; background: rgba(255,255,255,.1); border-radius: 999px; inset-inline-end: -140px; top: -130px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card p { color: rgba(255,255,255,.78); margin: 0; max-width: 720px; }
.cta-card .kicker { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); color: #fff; }
.contact-cards { display: grid; gap: 14px; margin-top: 24px; }
.contact-cards article { padding: 18px; display: flex; gap: 14px; align-items: center; }
.contact-cards i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--red)); }
.contact-cards strong, .contact-cards span { display: block; }
.contact-cards span { color: var(--muted); }
.site-footer { background: #07111f; color: #fff; padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .9fr; gap: 44px; }
.footer-brand img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.7); }
.footer-grid a { display: block; margin: 10px 0; }
.footer-grid h4 { margin-top: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: rgba(255,255,255,.62); }
.footer-bottom a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 1180px) {
    .main-nav { position: fixed; inset: 86px 20px auto 20px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 24px; padding: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; transform: translateY(-15px); opacity: 0; pointer-events: none; transition: .25s; }
    .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .menu-toggle { display: inline-flex; }
    .brand { flex: 1; }
    .header-actions { margin-inline-start: auto; }
}
@media (max-width: 960px) {
    .hero-grid, .split-grid, .split-grid.reverse { grid-template-columns: 1fr; }
    .hero { padding-top: 52px; }
    .slider { min-height: 470px; }
    .cards.three, .faculty-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid, .about-stats { grid-template-columns: repeat(2, 1fr); }
    .section-head.with-action { flex-direction: column; align-items: start; }
    .floating-card-a { inset-inline-start: 18px; }
    .floating-card-b { inset-inline-end: 18px; }
    .ai-frame.tall img { min-height: 520px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .section { padding: 70px 0; }
    .brand small { display: none; }
    .brand { min-width: 0; }
    .brand img { width: 48px; height: 48px; }
    .header-actions .theme-toggle span, .lang-switch { font-size: 0; }
    .header-actions .theme-toggle span { display: none; }
    .lang-switch i { font-size: 16px; }
    h1 { font-size: 42px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .mini-stats, .cards.three, .faculty-grid, .why-grid, .news-grid, .stats-grid, .about-stats, .form-grid { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; border-radius: 24px; }
    .result-grid { grid-template-columns: 1fr; }
    .slide-caption strong { font-size: 21px; }
    .slider { min-height: 390px; border-radius: 26px; }
    .floating-card { display: none; }
    .form-panel { padding: 24px; }
    .footer-bottom { flex-direction: column; align-items: start; }
}
