/* =========================================================
   UOMG Website — Global Stylesheet
   Theme: Modern Academic Dark Mode
   ========================================================= */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color palette */
  --bg-base:       #0d0d14;
  --bg-surface:    #13131f;
  --bg-card:       #1a1a2e;
  --bg-card-hover: #1e1e35;
  --border:        #2a2a42;
  --border-hover:  #4a4a72;

  /* Subtle translucent backgrounds (tinted differently per theme) */
  --bg-subtle:        rgba(255, 255, 255, 0.05);
  --bg-subtle-strong: rgba(255, 255, 255, 0.10);
  --bg-row-hover:     rgba(255, 255, 255, 0.02);
  --nav-bg:           rgba(13, 13, 20, 0.85);
  --nav-bg-mobile:    rgba(13, 13, 20, 0.97);

  /* Brand / accent */
  --primary:       #7c6af7;
  --primary-dark:  #5a4ed4;
  --primary-glow:  rgba(124, 106, 247, 0.25);
  --secondary:     #4fc3f7;
  --accent:        #f472b6;
  --success:       #4ade80;
  --warning:       #fb923c;
  --danger:        #f87171;

  /* Typography */
  --text-primary:   #f0f0f8;
  --text-secondary: #9090b0;
  --text-muted:     #606080;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #1a1a2e 0%, #0d0d14 60%, #16213e 100%);
  --grad-primary: linear-gradient(135deg, #7c6af7, #4fc3f7);
  --grad-card:    linear-gradient(135deg, #1a1a2e, #13131f);

  /* Sizing */
  --nav-height:  68px;
  --max-width:   1200px;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --shadow-primary: 0 4px 20px rgba(124,106,247,0.35);

  /* Transitions */
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light theme overrides ─────────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg-base:       #f5f7fb;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0f2f8;
  --border:        #e3e5ee;
  --border-hover:  #b8bdcf;

  --bg-subtle:        rgba(20, 20, 43, 0.04);
  --bg-subtle-strong: rgba(20, 20, 43, 0.08);
  --bg-row-hover:     rgba(20, 20, 43, 0.025);
  --nav-bg:           rgba(255, 255, 255, 0.85);
  --nav-bg-mobile:    rgba(255, 255, 255, 0.97);

  --text-primary:   #14142b;
  --text-secondary: #4a4a68;
  --text-muted:     #8a8aa3;

  --primary-glow:   rgba(124, 106, 247, 0.14);

  --grad-hero: linear-gradient(135deg, #f5f7fb 0%, #ffffff 60%, #eaf0fc 100%);
  --grad-card: linear-gradient(135deg, #ffffff, #f5f7fb);

  --shadow-sm:      0 2px 8px rgba(20, 20, 43, 0.06);
  --shadow-md:      0 4px 24px rgba(20, 20, 43, 0.08);
  --shadow-lg:      0 8px 48px rgba(20, 20, 43, 0.12);
  --shadow-primary: 0 4px 20px rgba(124, 106, 247, 0.25);
}

/* Smooth crossfade when the user toggles the theme. */
html { transition: background-color var(--ease), color var(--ease); }

/* In light mode the translucent news-card thumb gradients sit on a white
   background and can look washed out; deepen them with a subtle inner shadow. */
:root[data-theme="light"] .news-card-thumb,
:root[data-theme="light"] .news-featured-thumb {
  box-shadow: inset 0 0 0 1px rgba(124, 106, 247, 0.06);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--secondary); }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
}

p { color: var(--text-secondary); }
ul { list-style: none; }

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Utility Classes ── */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(124,106,247,0.3);
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(124,106,247,0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-ghost {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-subtle-strong);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(248,113,113,0.15);
  color: var(--danger);
  border: 1.5px solid rgba(248,113,113,0.3);
}

.btn-danger:hover {
  background: rgba(248,113,113,0.25);
  transform: translateY(-2px);
  color: var(--danger);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #052e16;
  font-weight: 700;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74,222,128,0.4);
  color: #052e16;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  border: 1px solid rgba(124,106,247,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Layout grids (.grid-3, .features-grid, .team-grid, etc.) are now handled
   by Bootstrap's responsive grid (row / row-cols-* / col-*) in the markup. */

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-primary);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: baseline;
}

/* Emphasised leading H in the wordmark — gives the brand a logo-mark feel */
.brand-name .brand-h {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 0.9;
  margin-right: 1px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ease);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.nav-link .nav-icon { font-size: 1rem; }

.nav-cta {
  background: var(--grad-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: var(--shadow-primary);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,106,247,0.5);
  color: #fff !important;
  background: var(--grad-primary);
}

/* Language switcher (sits inside nav-links) */
.nav-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

/* Theme toggle button (sits inside nav-links, next to the language switcher) */
.nav-theme-wrapper {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}

.nav-theme-toggle:hover {
  background: var(--primary-glow);
  border-color: rgba(124, 106, 247, 0.3);
  transform: translateY(-1px);
}

.nav-theme-toggle .theme-icon {
  display: inline-flex;
  transition: transform var(--ease);
}

.nav-theme-toggle:hover .theme-icon {
  transform: rotate(15deg);
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--ease);
}

.nav-lang:hover {
  color: var(--text-primary);
}

.nav-lang.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO SECTION ── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(124,106,247,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(79,195,247,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Animated grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,106,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,106,247,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 680px;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    display: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  background: var(--primary-glow);
  border: 1px solid rgba(124,106,247,0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

.hero-badge-dot {
  width: 20px;
  height: 20px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .line-accent {
  display: block;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item {}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── FEATURES SECTION ── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: transform var(--ease);
  transform-origin: left;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-purple { background: rgba(124,106,247,0.15); border: 1px solid rgba(124,106,247,0.25); }
.icon-blue   { background: rgba(79,195,247,0.12);  border: 1px solid rgba(79,195,247,0.25);  }
.icon-pink   { background: rgba(244,114,182,0.12); border: 1px solid rgba(244,114,182,0.25); }
.icon-green  { background: rgba(74,222,128,0.12);  border: 1px solid rgba(74,222,128,0.25);  }
.icon-orange { background: rgba(251,146,60,0.12);  border: 1px solid rgba(251,146,60,0.25);  }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p { font-size: 0.92rem; }

/* ── COMING SOON CALCULATOR CARDS ── */
.feature-card.calc-soon {
  opacity: 0.6;
  cursor: default;
}

.feature-card.calc-soon:hover {
  border-color: var(--border);
  background: var(--bg-card);
  transform: none;
  box-shadow: none;
}

.feature-card.calc-soon:hover::before { transform: scaleX(0); }

.calc-soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(124,106,247,0.3);
}

.calc-new-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(124,106,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.cta-banner p {
  margin-bottom: 32px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  margin-top: auto;
}

.footer-grid {
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--ease);
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover { color: var(--primary); }

/* ── ABOUT PAGE ── */
.page-hero {
  background: var(--grad-hero);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(124,106,247,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.05rem;
  max-width: 560px;
}

/* Mission/Vision cards */
.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--ease);
}

.mission-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mission-card .icon { font-size: 2rem; margin-bottom: 16px; }
.mission-card h3   { font-size: 1.2rem; margin-bottom: 10px; }

/* Team cards */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--ease);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-primary);
}

.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card .role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.team-card p { font-size: 0.85rem; }

/* Stats row */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all var(--ease);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
  transform: translateY(-2px);
}

.stat-card .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ── NEWS PAGE ── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-category {
  display: inline-block;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cat-announcement { background: rgba(124,106,247,0.15); color: var(--primary); }
.cat-academic     { background: rgba(79,195,247,0.12);  color: var(--secondary); }
.cat-event        { background: rgba(244,114,182,0.12); color: var(--accent); }
.cat-update       { background: rgba(74,222,128,0.12);  color: var(--success); }
.cat-research     { background: rgba(251,146,60,0.12);  color: var(--warning); }

.news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.news-card-footer {
  padding: 0 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--ease);
}

.read-more:hover {
  gap: 10px;
  color: var(--secondary);
}

.news-author {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Featured news */
.news-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow: hidden;
  margin-bottom: 40px;
  transition: all var(--ease);
}

.news-featured:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.news-featured-thumb {
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  padding: 40px;
  border-right: 1px solid var(--border);
}

.news-featured-body {
  padding: 36px;
}

.news-featured-body .featured-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.news-featured-body h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.news-featured-body p { font-size: 0.93rem; margin-bottom: 20px; }

/* ── UOMG GPA CALCULATOR ── */
.calculator-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.calc-header h2 {
  font-size: 1.2rem;
}

.courses-list { margin-bottom: 24px; }

.course-row {
  display: grid;
  grid-template-columns: 1fr 110px 130px 44px;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.course-row-header {
  display: grid;
  grid-template-columns: 1fr 110px 130px 44px;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.course-row-header span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Form controls */
.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all var(--ease);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder { color: var(--text-muted); }

/* Hide the native number-input spinners across browsers */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239090b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Remove course button */
.btn-remove {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(248,113,113,0.1);
  border: 1.5px solid rgba(248,113,113,0.2);
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--ease);
  flex-shrink: 0;
}

.btn-remove:hover {
  background: rgba(248,113,113,0.22);
  border-color: rgba(248,113,113,0.45);
  transform: scale(1.08);
}

/* Calculator actions */
.calc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Result panel */
.result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.result-panel h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.gpa-display {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.gpa-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(124,106,247,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.gpa-number {
  font-size: 4rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
}

.gpa-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
  position: relative;
}

/* UOMG score-based standing badge (no letter grades) */
.uomg-standing {
  display: inline-block;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 12px;
}

.standing-excellent { background: rgba(74,222,128,0.15);  color: #4ade80; border: 1px solid rgba(74,222,128,0.35); }
.standing-good      { background: rgba(79,195,247,0.12);  color: #4fc3f7; border: 1px solid rgba(79,195,247,0.35); }
.standing-average   { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.35); }
.standing-low       { background: rgba(251,146,60,0.12);  color: #fb923c; border: 1px solid rgba(251,146,60,0.35); }
.standing-fail      { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.40); }

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 10px 14px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.breakdown-row .label { color: var(--text-muted); }
.breakdown-row .value { font-weight: 700; color: var(--text-primary); }

/* Grade scale reference */
.grade-scale {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 28px;
}

.grade-scale h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.grade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.grade-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-base);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.grade-table th:first-child { border-radius: 6px 0 0 6px; }
.grade-table th:last-child  { border-radius: 0 6px 6px 0; }

.grade-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.grade-table tr:last-child td { border-bottom: none; }
.grade-table tr:hover td { background: var(--bg-row-hover); }

.grade-table .grade-badge {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.82rem;
}

/* ── ALERT/EMPTY STATES ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  opacity: 0.5;
}

.empty-state p { font-size: 0.9rem; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,106,247,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(124,106,247,0); }
}

.animate-in {
  animation: fadeInUp 0.55s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--primary); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .news-featured  { grid-template-columns: 1fr; }
  .news-featured-thumb { height: 160px; font-size: 4rem; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--nav-bg-mobile);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }
  .hero-stats     { gap: 28px; flex-wrap: wrap; }
  .cta-banner     { padding: 40px 24px; }
  .course-row {
    grid-template-columns: 1fr 90px;
    grid-template-rows: auto auto;
  }
  .course-row .form-control:nth-child(1) { grid-column: 1 / -1; }
  .course-row-header { display: none; }
}

@media (max-width: 480px) {
  .container     { padding: 0 16px; }
  .hero h1       { font-size: 2rem; }
  .hero-cta      { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-buttons   { flex-direction: column; align-items: center; }
  .gpa-number    { font-size: 3rem; }
}
