/*
Theme Name:  USyd Academic
Theme URI:   https://github.com/usyd-academic-theme
Author:      University of Sydney (WordPress Port)
Description: A faithful WordPress port of the University of Sydney website design. Features the iconic navy & gold palette, Playfair Display headings, and a full-featured homepage layout with course finder, research section, news grid, and contact panel.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usyd-academic
Tags:        education, university, two-columns, custom-menu, featured-images, full-width-template
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --navy:       #00205b;
  --navy-dark:  #001440;
  --navy-mid:   #003580;
  --gold:       #cf9a00;
  --gold-light: #e8c86a;
  --white:      #ffffff;
  --off-white:  #f7f8fc;
  --border:     #e0e4ef;
  --text:       #1a1a2e;
  --muted:      #555566;
  --light-blue: #7ab3f0;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 4px 20px rgba(0,32,91,0.10);
  --shadow-lg:  0 8px 32px rgba(0,32,91,0.14);
  --transition: 0.18s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 48px 0; }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 34px);
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

.split-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-all-link {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--transition);
}
.view-all-link:hover { color: var(--gold); text-decoration: none; }

/* =============================================
   TOP UTILITY BAR
   ============================================= */
#site-utility-bar {
  background: #1a1a2e;
  padding: 7px 0;
  font-size: 12px;
}
#site-utility-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}
#site-utility-bar a {
  color: #b0b8cc;
  transition: color var(--transition);
}
#site-utility-bar a:hover { color: var(--white); text-decoration: none; }

/* =============================================
   MAIN HEADER & NAV
   ============================================= */
#masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

/* Logo */
.site-branding a {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  line-height: 1.15;
}
.site-logo-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* Primary Nav */
#site-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}

#primary-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

#primary-menu li { position: relative; }

#primary-menu > li > a {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.3px;
  transition: background var(--transition), color var(--transition);
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
  background: #eef1fb;
  color: var(--navy);
  text-decoration: none;
}

/* Dropdown */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 300;
}
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition);
}
#primary-menu .sub-menu li a:hover {
  background: var(--off-white);
  color: var(--navy);
  text-decoration: none;
}

/* Search toggle */
.header-search-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 15px;
  transition: border-color var(--transition), color var(--transition);
  margin-left: 8px;
}
.header-search-btn:hover { border-color: var(--navy); color: var(--navy); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--navy);
}

/* Search panel */
#header-search-panel {
  display: none;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
#header-search-panel.is-open { display: block; }
#header-search-panel .search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
}
#header-search-panel input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
}
#header-search-panel input[type="search"]:focus { border-color: var(--navy); }
#header-search-panel button[type="submit"] {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}
#header-search-panel button[type="submit"]:hover { background: var(--navy-dark); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #00205b 0%, #003580 55%, #0a4a8c 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, #fff 0, #fff 1px, transparent 1px, transparent 48px);
  pointer-events: none;
}

.hero-accent {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(207,154,0,0.08);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 58px);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 18px;
  max-width: 560px;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white) !important;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.3px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none !important;
}
.hero-cta:hover { background: #b8880a; transform: translateY(-1px); }
.hero-cta::after { content: '›'; font-size: 18px; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin-top: 4px;
}

/* =============================================
   COURSE FINDER
   ============================================= */
.course-finder-section {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.course-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.course-card:hover {
  border-color: var(--navy);
  background: #eef1fb;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--navy);
}
.course-icon {
  width: 38px; height: 38px;
  background: #e8edf8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.course-card:hover .course-icon { background: #d0d8f0; }

.study-levels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.level-pill {
  padding: 8px 22px;
  border: 2px solid var(--navy);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}
.level-pill:hover,
.level-pill.is-active {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  background: var(--navy);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.10);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-number {
  font-family: var(--font-serif);
  font-size: 38px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin-top: 6px;
  line-height: 1.5;
}

/* =============================================
   RESEARCH SECTION
   ============================================= */
.research-section { background: var(--white); }

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.research-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
}
.research-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
}

.research-thumb {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}
.research-thumb--areas   { background: #1a3a6e; color: var(--gold); }
.research-thumb--centres { background: #003580; color: var(--light-blue); }
.research-thumb--people  { background: #0f2d5a; color: var(--gold-light); }

.research-body { padding: 22px; }
.research-body h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.research-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   NEWS SECTION
   ============================================= */
.news-section { background: var(--off-white); }

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

.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none;
}

.news-thumb {
  height: 150px;
  display: flex; align-items: flex-end;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background-size: cover;
  background-position: center;
}
.news-thumb--green  { background-color: #2d5016; }
.news-thumb--blue   { background-color: #1a3a6e; }
.news-thumb--brown  { background-color: #4a1a0a; }

.news-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.news-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.news-body h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  flex: 1;
}
.news-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
}
.news-read-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 12px;
  transition: color var(--transition);
}
.news-card:hover .news-read-more { color: var(--gold); }

/* =============================================
   RANKINGS BANNER
   ============================================= */
.rankings-section {
  background: var(--navy-dark);
  padding: 40px 0;
}
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.ranking-item {
  background: var(--navy-dark);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: background var(--transition);
}
.ranking-item:hover { background: rgba(255,255,255,0.04); }
.ranking-icon {
  width: 48px; height: 48px;
  background: rgba(207,154,0,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ranking-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gold);
  font-weight: 600;
}
.ranking-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  line-height: 1.5;
}
.ranking-source {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
  background: #1a1a2e;
  padding: 56px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.contact-item h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-icon {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--white);
  flex-shrink: 0;
}
.contact-item a {
  display: block;
  color: var(--light-blue);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--white); text-decoration: none; }
.contact-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
#colophon {
  background: #0d0d1a;
  border-top: 3px solid var(--gold);
}

.footer-top {
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand { }
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--gold); }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 16px;
}
.footer-abn {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.5px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: rgba(255,255,255,0.75); text-decoration: none; }

/* =============================================
   SINGLE POST / PAGE
   ============================================= */
.site-main article {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.entry-header { margin-bottom: 32px; }
.entry-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.entry-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--navy); }
.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.entry-content h2, .entry-content h3 { font-family: var(--font-serif); color: var(--navy); margin: 32px 0 12px; }
.entry-content p { margin-bottom: 20px; }
.entry-content a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.entry-content a:hover { color: var(--gold); }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 24px;
  margin: 24px 0;
  background: var(--off-white);
  font-style: italic;
  color: var(--muted);
}
.entry-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* =============================================
   SIDEBAR
   ============================================= */
.widget-area { padding: 48px 0; }
.widget { margin-bottom: 36px; }
.widget-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 40px 24px;
}
.page-numbers {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  text-decoration: none;
}

/* =============================================
   BUTTONS & FORMS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); text-decoration: none; color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: #b8880a; border-color: #b8880a; text-decoration: none; color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.wp-block-search__input,
.search-field,
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
input:focus, textarea:focus { border-color: var(--navy); }

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.comments-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
}
.comment-body {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.comment-author { font-weight: 600; color: var(--navy); }
.comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rankings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  #primary-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: var(--shadow);
    gap: 0;
  }
  #primary-menu.is-open { display: flex; }
  #primary-menu > li > a { border-radius: 0; }
  .sub-menu { position: static !important; display: none !important; box-shadow: none !important; border: none !important; padding-left: 20px !important; }
  .header-search-btn { display: none; }

  .hero-stats { gap: 28px; }
  .hero-title { font-size: 36px; }

  .research-grid, .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
}

/* =============================================
   WP ADMIN BAR OFFSET
   ============================================= */
.admin-bar #masthead { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #masthead { top: 46px; } }

/* =============================================
   BLOCK EDITOR ALIGNMENT
   ============================================= */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
