@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Source+Serif+4:opsz,wght@8..60,400;600;700&display=swap');

:root {
 --primary-color: #0d47a1; /* Deep Blue for a professional, academic feel */
 --primary-dark: #093170;
 --text-dark: #212121; /* Very dark gray for body text */
 --text-light: #5f6368; /* Lighter gray for subtitles */
 --bg-light: #f8f9fa; /* Off-white for section backgrounds */
 --bg-white: #ffffff;
 --border-color: #dee2e6;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 --font-serif: 'Source Serif 4', serif;
 --radius-md: 8px;
 --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
 --transition: all 0.3s ease-in-out;
}

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

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

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.75em; }
h3 { font-size: 1.5rem; margin-bottom: 1em; color: var(--text-dark); }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1em; color: var(--text-dark); }

p {
 margin-bottom: 1.25rem;
 max-width: 75ch;
}

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--primary-dark);
 text-decoration: underline;
}

ul, ol {
 margin-bottom: 1.25rem;
 padding-left: 20px;
}

li {
 margin-bottom: 0.5rem;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}

.content-wrapper {
 max-width: 800px; /* Tighter for text-heavy pages */
 margin: 0 auto;
}

.section {
 padding: 80px 0;
}

.section.bg-light {
 background-color: var(--bg-light);
}

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

.section-label {
 display: inline-block;
 background-color: #e3f2fd;
 color: var(--primary-color);
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.85rem;
 font-weight: 700;
 margin-bottom: 16px;
 text-transform: uppercase;
 letter-spacing: 1px;
}

.section-title {
 font-size: clamp(2rem, 5vw, 2.8rem);
 color: var(--text-dark);
}

.section-subtitle {
 font-size: 1.2rem;
 color: var(--text-light);
 max-width: 650px;
 margin: 0 auto;
}

.page-header-section {
 padding: 100px 0;
 background-color: var(--bg-light);
 text-align: center;
}

.page-header-section h1 {
 font-size: clamp(2.5rem, 6vw, 3.5rem);
 color: var(--text-dark);
}

/* --- Header & Navigation --- */
.header {
 position: sticky; /* Not fixed for a more document-like feel */
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.95);
 backdrop-filter: blur(8px);
 border-bottom: 1px solid var(--border-color);
 transition: var(--transition);
}

.header.scrolled {
 box-shadow: var(--shadow-sm);
}

.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}

.nav-logo {
 font-family: var(--font-serif);
 font-weight: 700;
 font-size: 1.75rem;
 color: var(--text-dark);
 text-decoration: none;
}

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}

.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 padding: 8px 4px;
 position: relative;
 text-decoration: none;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -2px;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--primary-color);
 transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
}

.nav-toggle span {
 display: block;
 width: 24px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 5px 0;
 transition: var(--transition);
}

/* --- Hero --- */
.hero-text-only {
 background-color: var(--primary-color);
 color: white;
 padding: 120px 0;
 text-align: center;
}

.hero-text-only .section-label {
 background-color: rgba(255,255,255,0.1);
 color: white;
}

.hero-text-only h1 {
 color: white;
 font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-text-only .section-subtitle {
 color: rgba(255, 255, 255, 0.85);
 font-size: 1.25rem;
}

/* --- Forms --- */
.contact-grid {
 display: grid;
 grid-template-columns: 1fr 1.5fr;
 gap: 48px;
 align-items: start;
}

.contact-item {
 margin-bottom: 24px;
}

.contact-item h4 {
 color: var(--primary-color);
 font-family: var(--font-main);
 text-transform: uppercase;
 font-size: 0.9rem;
 letter-spacing: 1px;
}

.contact-item p {
 margin-bottom: 4px;
}

.form-group {
 margin-bottom: 20px;
}

.form-group label {
 display: block;
 font-weight: 500;
 margin-bottom: 8px;
}

.form-control {
 width: 100%;
 padding: 12px 16px;
 font-size: 1rem;
 font-family: var(--font-main);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: var(--transition);
 background-color: var(--bg-white);
}

.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

textarea.form-control {
 resize: vertical;
 min-height: 120px;
}

.checkbox-group {
 display: flex;
 align-items: flex-start;
 gap: 12px;
}
.checkbox-group input {
 margin-top: 5px;
 flex-shrink: 0;
}
.checkbox-group label {
 font-size: .9rem;
 font-weight: 400;
 margin-bottom: 0;
}

.btn-submit {
 display: inline-block;
 padding: 14px 32px;
 font-size: 1rem;
 font-weight: 600;
 color: white;
 background-color: var(--primary-color);
 border: none;
 border-radius: var(--radius-md);
 cursor: pointer;
 transition: var(--transition);
 width: 100%;
}
.btn-submit:hover {
 background-color: var(--primary-dark);
 transform: translateY(-2px);
}
button:disabled {
 opacity: 0.7;
 cursor: not-allowed;
}

/* --- Form Validation Styles --- */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
 animation: fadeIn 0.3s ease;
}

.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}

@keyframes spin {
 to { transform: rotate(360deg); }
}

@keyframes fadeIn {
 from { opacity: 0; transform: translateY(-5px); }
 to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
 background-color: var(--text-dark);
 color: #e0e0e0;
 padding: 60px 0 30px;
 margin-top: 80px;
 font-size: 0.9rem;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 40px;
 margin-bottom: 40px;
}

.footer-logo {
 font-family: var(--font-serif);
 font-size: 1.75rem;
 font-weight: 700;
 color: white;
 margin-bottom: 16px;
 display: block;
 text-decoration: none;
}

.footer-description {
 color: #a0a0b0;
 line-height: 1.6;
}

.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: white;
 margin-bottom: 16px;
 text-transform: uppercase;
 letter-spacing: 1px;
}

.footer-links {
 list-style: none;
 padding: 0;
}

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

.footer-links a, .footer-contact a {
 color: #a0a0b0;
 text-decoration: none;
}

.footer-links a:hover, .footer-contact a:hover {
 color: white;
 text-decoration: underline;
}

.footer-contact p {
 margin-bottom: 8px;
 color: #a0a0b0;
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 30px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.85rem;
 color: #888;
}

.footer-legal-links {
 list-style: none;
}
.footer-legal-links a {
 color: #888;
}
.footer-legal-links a:hover {
 color: white;
}

/* --- Cookie Banner --- */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--text-dark);
 color: white;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 font-size: 0.9rem;
}

#cookie-banner p {
 margin: 0;
}

#cookie-banner div {
 display: flex;
 gap: 12px;
}

#cookie-banner button {
 padding: 8px 16px;
 border: none;
 border-radius: var(--radius-md);
 cursor: pointer;
 font-weight: 600;
}

#cookie-banner button:first-child {
 background-color: var(--primary-color);
 color: white;
}

#cookie-banner button:last-child {
 background-color: transparent;
 color: white;
 border: 1px solid white;
}

/* --- Misc & Text Styling --- */
.cta-link {
 display: inline-block;
 font-weight: 600;
 margin-top: 1rem;
 text-decoration: none;
}

.legal-divider {
 border: none;
 height: 1px;
 background-color: var(--border-color);
 margin: 40px auto;
}

.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}

.team-member-card {
 background-color: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
}
.team-member-card h3 {
 margin-top: 0;
 font-family: var(--font-serif);
}
.team-member-card h4 {
 color: var(--primary-color);
 font-family: var(--font-main);
 font-size: 0.9rem;
 margin-bottom: 12px;
}

.resource-list {
 list-style: none;
 padding-left: 0;
}
.resource-list li {
 background: var(--bg-light);
 padding: 20px;
 border-radius: var(--radius-md);
 border-left: 4px solid var(--primary-color);
 margin-bottom: 20px;
}
.resource-list h3 { margin: 0 0 8px 0; }

.text-center { text-align: center; }

.map-container {
 width: 100%;
 height: 450px;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
 margin-top: 40px;
}

.map-container iframe {
 width: 100%;
 height: 100%;
 border: none;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
 .contact-grid {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 768px) {
 .nav-toggle {
 display: block;
 z-index: 1001;
 }

 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 max-width: 300px;
 height: 100vh;
 background-color: var(--bg-white);
 flex-direction: column;
 padding: 100px 30px 30px;
 gap: 24px;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transition: right 0.4s ease-in-out;
 }

 .nav-links.active {
 right: 0;
 }

 .nav-toggle.active span:nth-child(1) {
 transform: translateY(7px) rotate(45deg);
 }
 .nav-toggle.active span:nth-child(2) {
 opacity: 0;
 }
 .nav-toggle.active span:nth-child(3) {
 transform: translateY(-7px) rotate(-45deg);
 }
 
 .footer-grid {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 }
 
 .footer-bottom {
 flex-direction: column;
 gap: 16px;
 text-align: center;
 }
 
 #cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}