:root {
    --bg: #1a1d23;
    --card: #242930;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #334155;
    --accent: #cbd5e1;
    --hero-overlay: rgba(26, 29, 35, 0.85);
}

.light-mode {
    --bg: #ffffff;
    --card: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --accent: #475569;
    --hero-overlay: rgba(255, 255, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

h1, h2 { font-family: 'Merriweather', serif; margin-bottom: 1.2rem; }

.container { max-width: 850px; margin: auto; padding: 0 25px; }

header {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

nav a { margin-left: 25px; text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: 0.2s; }
nav a:hover { color: var(--text); }

#theme-toggle {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--muted);
    background: linear-gradient(90deg, var(--muted) 50%, transparent 50%);
    cursor: pointer; margin-left: 25px; vertical-align: middle;
}

/* HERO SECTION */
.hero {
    padding: 100px 0;
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('images/NPCs_crop.jpg') center/cover;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.hero h1 { font-size: 2.8rem; margin-bottom: 0.5rem; }
.hero-subtitle { color: var(--muted); font-weight: 500; font-size: 1.1rem; margin-bottom: 1rem; }
.hero-intro { max-width: 650px; font-size: 1.1rem; opacity: 0.9; }

.section { padding: 70px 25px; border-bottom: 1px solid var(--border); }

ul { margin-left: 20px; margin-bottom: 25px; }
ul li { margin-bottom: 10px; color: var(--muted); }

.legal-badge {
    background: var(--card);
    padding: 20px;
    border-left: 4px solid var(--border);
    margin-bottom: 25px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline:hover { background: var(--border); color: #fff; }

/* ACADEMIC LINKS - LOGOS + TEXT */
.academic-links { margin-top: 20px; }
.uob-link { display: inline-block; margin-bottom: 20px; color: var(--text); text-decoration: underline; font-weight: 500; }

.icon-links { display: flex; gap: 25px; flex-wrap: wrap; }
.icon-links a { 
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500;
}
.icon-links a:hover { color: var(--text); }
.icon-links svg { width: 18px; fill: var(--muted); transition: 0.2s; }
.icon-links a:hover svg { fill: var(--text); }

footer { padding: 50px 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    nav { display: none; } /* Simplified for mobile */
}

/* Update the Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo img {
    width: 35px;
    height: auto;
    /* This makes the dark logo visible on dark backgrounds */
    filter: brightness(1.8) contrast(1.1);
    transition: filter 0.3s ease;
}

/* Ensure logo looks original/darker in Light Mode */
.light-mode .logo img {
    filter: brightness(1) contrast(1);
}

/* Ensure the Toggle Button is a visible circle and not a '?' */
#theme-toggle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--muted);
    /* Creates a half-filled circle icon */
    background: linear-gradient(90deg, var(--muted) 50%, transparent 50%);
    cursor: pointer;
    margin-left: 25px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(180deg);
}