*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:    #F47920;
  --primary-d:  #D4650F;
  --secondary:  #3A85BE;
  --secondary-d:#1F5A85;
  --accent:     #5BA3D9;
  --white:      #FFFFFF;
  --light-bg:   #F5F6FA;
  --light-blue: #EBF4FB;
  --text:       #0D1B2A;
  --text-muted: #4A5568;
  --border:     rgba(58,133,190,0.15);
  --border-light:#C8DFF0;
  /* legacy aliases */
  --navy:        #3A85BE;
  --navy-2:      #1F5A85;
  --navy-3:      #EBF4FB;
  --orange:      #F47920;
  --orange-light:rgba(244,121,32,0.1);
  --light:       #0D1B2A;
  --muted:       #4A5568;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; line-height: 1.7; }
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }
a { text-decoration: none; color: inherit; }

/* TOP BAR */
.topbar { background: var(--primary); color: var(--white); font-size: 13px; padding: 8px 0; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left span { display: flex; align-items: center; gap: 6px; opacity: 0.95; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: var(--white); font-size: 12px; font-weight: 500; padding: 3px 10px; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; transition: background 0.2s; }
.topbar-right a:hover { background: rgba(255,255,255,0.15); }

/* HEADER */
header { background: #3A85BE; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(58, 133, 190, 0.3); border-bottom: 3px solid rgba(255,255,255,0.15); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 60px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-acronym { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: 0.05em; }
.logo-full { font-size: 10px; color: rgba(255,255,255,0.7); font-weight: 400; max-width: 200px; line-height: 1.3; }
nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500; padding: 10px 14px; display: flex; align-items: center; gap: 4px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--orange) !important; }
.nav-link svg { width: 10px; height: 10px; opacity: 0.7; transition: transform 0.2s; }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 3px); left: 0; background: var(--white); border-radius: 8px; min-width: 220px; box-shadow: 0 8px 30px rgba(10,22,40,0.2); border: 1px solid rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s; z-index: 100; }
.nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 16px; font-size: 13px; color: #1B2A5E; border-bottom: 1px solid #F0F2F7; transition: all 0.15s; }
.dropdown a:last-child { border-bottom: none; border-radius: 0 0 8px 8px; }
.dropdown a:first-child { border-radius: 8px 8px 0 0; }
.dropdown a:hover { background: #F5F6FA; color: var(--navy); padding-left: 20px; }
.dropdown-label { font-size: 10px; font-weight: 600; color: var(--orange); padding: 10px 16px 4px; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid #F0F2F7; }
.has-submenu { position: relative; }
.has-submenu > a { display: flex; align-items: center; justify-content: space-between; }
.has-submenu > a::after { content: '›'; font-size: 16px; color: var(--orange); margin-left: 8px; line-height: 1; }
.submenu { position: absolute; top: 0; left: 100%; background: var(--white); border-radius: 8px; min-width: 240px; box-shadow: 0 8px 30px rgba(10,22,40,0.2); border: 1px solid rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateX(8px); transition: all 0.2s; z-index: 200; }
.has-submenu:hover > .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.submenu a { display: block; padding: 10px 16px; font-size: 13px; color: #1B2A5E; border-bottom: 1px solid #F0F2F7; transition: all 0.15s; }
.submenu a:first-child { border-radius: 8px 8px 0 0; }
.submenu a:last-child { border-bottom: none; border-radius: 0 0 8px 8px; }
.submenu a:hover { background: #F5F6FA; color: var(--navy); padding-left: 20px; }
.nav-apply { background: var(--orange); color: var(--white) !important; padding: 9px 20px !important; border-radius: 6px !important; font-weight: 600 !important; margin-left: 8px; }
.nav-apply:hover { opacity: 0.88 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(31,90,133,0.98); backdrop-filter: blur(20px); z-index: 999; flex-direction: column; overflow-y: auto; padding: 200px 24px 40px; }
.mobile-nav.open { display: flex; }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }
.mobile-nav-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-link { width: 100%; background: none; border: none; color: var(--white); font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 600; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.mobile-dropdown { display: none; padding-bottom: 12px; }
.mobile-dropdown.open { display: block; }
.mobile-dropdown a { display: block; padding: 10px 16px; font-size: 14px; color: rgba(255,255,255,0.88); border-left: 2px solid rgba(244,121,32,0.5); margin-bottom: 2px; transition: color 0.2s; }
.mobile-dropdown a:hover { color: var(--primary); }
.mobile-dropdown-label { font-size: 10px; font-weight: 700; color: var(--orange); padding: 10px 16px 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.mobile-nav-apply { display: block; background: var(--orange); color: var(--white); text-align: center; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 700; margin-top: 20px; }

/* HERO */
.hero { padding: 120px 0 80px; background: var(--secondary); border-bottom: 4px solid var(--primary); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%); pointer-events: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }
.page-tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); color: var(--white); font-size: 11px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 28px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 24px; color: var(--white); }
.hero h1 span { color: rgba(255,255,255,0.85); font-style:italic; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.9); line-height: 1.8; max-width: 620px; font-weight: 300; margin-bottom: 48px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.25); border-radius: 14px; overflow: hidden; max-width: 680px; }
.hstat { background: rgba(255,255,255,0.12); padding: 22px 24px; }
.hstat-num { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.hstat-label { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.4; }

/* SHARED */
.page-section { padding: 96px 0; border-bottom: 1px solid var(--border-light); }
.page-section:last-of-type { border-bottom: none; }
.section-alt { background: var(--light-blue); }
.section-label { font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--orange); }
.section-h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; color: var(--secondary-d); }
.section-intro { font-size: 17px; color: var(--text-muted); line-height: 1.85; max-width: 680px; font-weight: 300; margin-bottom: 64px; }

/* FACULTY CARDS */
.faculty-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.faculty-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 20px; padding: 40px; position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; box-shadow: 0 2px 16px rgba(58,133,190,0.08); }
.faculty-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.faculty-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.faculty-aeronautics::before { background: linear-gradient(90deg, #F47920, #5BA3D9); }
.faculty-engineering::before { background: linear-gradient(90deg, #F47920, #1F5A85); }
.faculty-science::before { background: linear-gradient(90deg, #F47920, #3A85BE); }
.faculty-computing::before { background: linear-gradient(90deg, #F47920, #5BA3D9); }
.faculty-aviation::before { background: linear-gradient(90deg, #F47920, #3A85BE); }
.faculty-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.faculty-name { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--secondary-d); margin-bottom: 8px; }
.faculty-hood { font-size: 12px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.faculty-desc { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 24px; }
.dept-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dept-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--light-bg); border-radius: 8px; font-size: 14px; color: var(--text); border: 1px solid var(--border-light); transition: border-color 0.2s; min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
.dept-item:hover { border-color: var(--primary); color: var(--secondary-d); background: var(--light-blue); }
.dept-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.dept-count { font-size: 11px; font-weight: 700; color: var(--orange); background: var(--orange-light); padding: 2px 8px; border-radius: 20px; margin-left: auto; }

/* PROGRAMME OVERVIEW */
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.programme-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 28px; transition: border-color 0.3s, transform 0.3s; box-shadow: 0 2px 12px rgba(58,133,190,0.07); }
.programme-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.programme-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.programme-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--secondary-d); margin-bottom: 8px; }
.programme-level { font-size: 11px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.programme-desc { font-size: 14px; color: var(--text); line-height: 1.75; }

/* ACADEMIC PATTERN */
.pattern-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; min-width: 0; overflow: hidden; }
.pattern-story p { font-size: 16px; color: var(--text); line-height: 1.95; margin-bottom: 20px; word-wrap: break-word; overflow-wrap: break-word; }
.pattern-story strong { color: var(--secondary-d); font-weight: 600; }
.pattern-items { display: flex; flex-direction: column; gap: 16px; }
.pattern-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(58,133,190,0.07); }
.pattern-num { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--orange); min-width: 36px; }
.pattern-title { font-size: 15px; font-weight: 700; color: var(--secondary-d); margin-bottom: 4px; }
.pattern-text { font-size: 14px; color: var(--text); line-height: 1.7; }

/* CTA */
.page-cta { background: #1F5A85; padding: 96px 0; text-align: center; border-top: 4px solid var(--primary); }
.page-cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 16px; color: var(--white); }
.page-cta p { font-size: 17px; color: rgba(255,255,255,0.88); margin-bottom: 40px; font-weight: 300; }
.btn-cta { display: inline-block; background: var(--primary); color: var(--white); padding: 15px 40px; border-radius: 8px; font-size: 15px; font-weight: 700; font-family: 'Syne', sans-serif; transition: opacity 0.2s; }
.btn-cta:hover { opacity: 0.88; }
.btn-ghost { display: inline-block; border: 2px solid rgba(255,255,255,0.3); color: var(--white); padding: 14px 36px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: border-color 0.2s; margin-left: 14px; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* FOOTER */
footer { background: var(--secondary); border-top: 4px solid var(--primary); }
.footer-main { max-width: 1100px; margin: 0 auto; padding: 64px 48px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo img { height: 40px; margin-bottom: 16px; display: block; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.9); line-height: 1.7; max-width: 240px; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.9); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 20px 48px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.9); }
.footer-nasaon { background: var(--primary); padding: 10px 24px; text-align: center; font-size: 11px; color: rgba(255,255,255,0.85); }
.footer-nasaon a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* FADE */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .programme-grid { grid-template-columns: 1fr 1fr; }
  .pattern-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .hero { padding: 120px 0 64px; }
  .page-section { padding: 64px 0; }
  .section-intro { margin-bottom: 40px; }
  .programme-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .page-cta { padding: 64px 20px; }
  .btn-ghost { display: block; margin-left: 0; margin-top: 12px; }
  .footer-main { grid-template-columns: 1fr; padding: 40px 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 16px 20px; }
}

/* ── CANONICAL FOOTER ─────────────────────────────── */
.site-footer { background: #1F5A85; border-top: 4px solid #F47920; }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 64px 48px 40px; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo img { height: 48px; margin-bottom: 16px; display: block; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 20px; max-width: 220px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); font-size: 13px; transition: background 0.2s; text-decoration: none; }
.footer-social a:hover { background: #F47920; color: #fff; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; color: #F47920; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.8); transition: all 0.2s; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.footer-col ul li a:hover { color: #F47920; padding-left: 4px; }
.footer-col ul li a::before { content: '›'; color: #F47920; font-size: 16px; line-height: 1; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact-icon { color: #F47920; font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.6; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 0; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 48px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.6); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; text-decoration: none; }
.footer-bottom-links a:hover { color: #F47920; }
.footer-nasaon { background: #F47920; padding: 10px 24px; text-align: center; font-size: 11px; color: rgba(255,255,255,0.9); font-family: 'DM Sans', sans-serif; }
.footer-nasaon a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1024px) { .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }
@media (max-width: 768px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 24px 24px; } .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 16px 24px; } .footer-bottom-links { flex-wrap: wrap; justify-content: center; } }
@media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; } }



/* Hide CookieAdmin floating button */
#cookie-admin-bar, .cookie-admin-bar, .ca-floating-btn, 
[class*="cookie-admin"], [id*="cookie-admin"],
.ca-btn-wrap, #ca-floating { display: none !important; }

.uagb-toc__scroll-top { display: none !important; }

/* Progress bar */
#uaae-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #F47920, #FFB347);
  z-index: 9999999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(244,121,32,0.8);
}

/* Back to top button */
#uaae-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: #F47920;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(244,121,32,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
#uaae-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#uaae-top:hover {
  background: linear-gradient(135deg, #FFB347, #F47920);
  box-shadow: 0 6px 28px rgba(244,121,32,0.6);
  transform: translateY(-3px);
}
#uaae-top svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tooltip */
#uaae-top::after {
  content: 'Back to Top';
  position: absolute;
  right: 56px;
  background: rgba(15,30,56,0.9);
  color: #fff;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#uaae-top:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  #uaae-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}