:root {
 --primary-color: #3b82f6; /* A calming, academic blue */
 --primary-dark: #2563eb;
 --secondary-color: #10b981; /* A contrasting green for highlights */
 --text-dark: #1f2937;
 --text-light: #4b5563;
 --text-muted: #6b7280;
 --bg-light: #f9fafb;
 --bg-white: #ffffff;
 --bg-dark: #111827;
 --border-color: #e5e7eb;
 --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
 --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
 --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::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.6;
 color: var(--text-light);
 background: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 color: var(--text-dark);
 font-weight: 700;
 line-height: 1.2;
 margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
 margin-bottom: 1rem;
}

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

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

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

.section {
 padding: 80px 0;
}

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

.section-header {
 text-align: center;
 max-width: 750px;
 margin: 0 auto 48px;
}

.section-label {
 display: inline-block;
 font-size: 0.875rem;
 font-weight: 600;
 padding: 4px 12px;
 border-radius: var(--radius-lg);
 background-color: var(--primary-color);
 color: white;
 margin-bottom: 1rem;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.section-title {
 font-weight: 700;
}

.section-subtitle {
 font-size: 1.125rem;
 color: var(--text-muted);
 line-height: 1.7;
}

.section-cta {
 text-align: center;
 margin-top: 48px;
}

/* Header & Nav */
.header {
 background: rgba(255, 255, 255, 0.85);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 position: fixed;
 width: 100%;
 top: 0;
 left: 0;
 z-index: 1000;
 transition: var(--transition);
}

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

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

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

.nav-links a {
 font-weight: 500;
 color: var(--text-light);
 position: relative;
 padding: 8px 0;
}

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

.nav-links a:hover,
.nav-links a.active {
 color: var(--text-dark);
}

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

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

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

/* Hero Section */
.hero-section {
 padding: 120px 0 80px;
 background: var(--bg-light);
}

.hero-container {
 display: flex;
 align-items: center;
 gap: 48px;
}

.hero-content {
 flex: 1 1 50%;
}

.hero-title {
 margin-bottom: 1.5rem;
}

.hero-subtitle {
 margin-bottom: 2rem;
 font-size: 1.125rem;
}

.hero-buttons {
 display: flex;
 gap: 16px;
}

.hero-image-container {
 flex: 1 1 50%;
 text-align: center;
}

.hero-image {
 max-width: 100%;
 height: auto;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
 display: inline-block;
 font-weight: 600;
 padding: 12px 24px;
 border-radius: var(--radius-md);
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 text-align: center;
}

.btn-primary {
 background-color: var(--primary-color);
 color: white;
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}

.btn-secondary {
 border-color: var(--border-color);
 background-color: transparent;
 color: var(--text-dark);
}
.btn-secondary:hover {
 background-color: var(--bg-light);
 border-color: var(--primary-color);
 color: var(--primary-color);
}
.btn-white {
 background-color: white;
 color: var(--primary-dark);
}
.btn-white:hover {
 background-color: var(--bg-light);
}
.btn-sm {
 padding: 8px 16px;
 font-size: 0.875rem;
}

/* Grid & Cards */
.grid-2, .grid-3, .grid-4 {
 display: grid;
 gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
 background: var(--bg-white);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-md);
}
.card-body {
 padding: 24px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}
.card-title {
 font-size: 1.25rem;
 color: var(--text-dark);
}
.card-text {
 color: var(--text-muted);
 flex-grow: 1;
}
.card-category {
 font-size: 0.8rem;
 font-weight: 600;
 color: var(--primary-color);
 margin-bottom: 0.5rem;
 display: inline-block;
}
.card-image {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.clickable-card {
 position: relative;
}
.card-link {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 1;
}

.category-card {
 background: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
 text-align: center;
 transition: var(--transition);
}
.category-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-md);
 border-color: var(--primary-color);
}
.category-card h3 {
 margin: 0;
 font-size: 1.1rem;
 color: var(--text-dark);
}

/* Media Object */
.media-object {
 display: flex;
 gap: 48px;
 align-items: center;
}
.media-object.reverse { flex-direction: row-reverse; }
.media-copy { flex: 1 1 50%; }
.media-visual { flex: 1 1 50%; }
.media-image {
 width: 100%;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
}
.feature-list {
 list-style: none;
 padding: 0;
 margin-top: 1.5rem;
}
.feature-list li {
 padding-left: 28px;
 position: relative;
 margin-bottom: 12px;
}
.feature-list li::before {
 content: '';
 position: absolute;
 left: 0;
 top: 0;
 color: var(--secondary-color);
 font-weight: 700;
}

/* Timeline */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 2px;
 background-color: var(--border-color);
 top: 0;
 bottom: 0;
 left: 40px;
}
.timeline-item {
 padding-left: 80px;
 position: relative;
 margin-bottom: 40px;
}
.timeline-item:last-child {
 margin-bottom: 0;
}
.timeline-number {
 position: absolute;
 left: 0;
 top: 0;
 width: 80px;
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 background-color: var(--primary-color);
 border-radius: 50%;
 z-index: 1;
 border: 5px solid var(--bg-light);
}
.timeline-content {
 background: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
}
.timeline-content h3 { font-size: 1.2rem; }
.timeline-content p { margin-bottom: 0; }

/* CTA Section */
.cta-section {
 padding: 60px 0;
 text-align: center;
}
.cta-section.bg-dark h2, .cta-section.bg-dark p {
 color: white;
}
.cta-title { font-size: 2rem; margin-bottom: 1rem; }
.cta-text { font-size: 1.125rem; max-width: 600px; margin: 0 auto 2rem; }

/* Team Section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 30px;
}
.team-member {
 text-align: center;
}
.team-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1rem;
 border: 4px solid var(--bg-white);
 box-shadow: var(--shadow-md);
}
.team-member h3 {
 margin-bottom: 0.25rem;
 font-size: 1.25rem;
}
.team-role {
 color: var(--primary-color);
 font-weight: 500;
 margin-bottom: 0;
}

/* Page Headers */
.page-header-section {
 background-color: var(--bg-light);
 padding: 100px 0 60px;
 text-align: center;
 border-bottom: 1px solid var(--border-color);
}
.page-header-section h1 { font-size: 3rem; }
.page-subtitle {
 font-size: 1.25rem;
 color: var(--text-muted);
 max-width: 700px;
 margin: 0 auto;
}

/* Articles Page */
.search-controls {
 margin-bottom: 40px;
}
.search-input {
 width: 100%;
 padding: 14px 20px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-size: 1rem;
}
.pagination {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 8px;
 margin-top: 40px;
}
.pagination a, .pagination span {
 display: inline-block;
 padding: 8px 14px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 color: var(--text-dark);
}
.pagination a.active {
 background-color: var(--primary-color);
 color: white;
 border-color: var(--primary-color);
}
.pagination a:hover {
 background-color: var(--bg-light);
}

/* Contact Page */
.contact-page-container {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 48px;
}
.contact-form-wrapper h2, .contact-info-wrapper h2 {
 margin-bottom: 2rem;
}
.contact-info-item {
 margin-bottom: 1.5rem;
}
.contact-info-item h3 {
 font-size: 1.1rem;
 color: var(--text-dark);
 margin-bottom: 0.5rem;
}
.contact-info-item p { margin: 0; }
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 border: 1px solid var(--border-color);
}
.map-container iframe {
 width: 100%;
 height: 100%;
 border: 0;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
 color: var(--text-dark);
}
.form-group input, .form-group textarea {
 width: 100%;
 padding: 12px 16px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-family: inherit;
 font-size: 1rem;
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin-bottom: 0; }
.contact-form button[type="submit"] {
 width: 100%;
 padding: 14px;
}
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.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); }
}
button[disabled] {
 opacity: 0.7;
 cursor: not-allowed;
}

/* Legal Pages */
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-content ul { padding-left: 20px; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th { background: var(--bg-light); }

/* Footer */
.footer {
 background: var(--bg-dark);
 color: #d1d5db;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: white; display: block; margin-bottom: 1rem; }
.footer-description { font-size: 0.9rem; line-height: 1.6; color: #9ca3af; }
.footer-heading {
 font-size: 1rem; font-weight: 600; color: white; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; 
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 12px; }
.footer-links a, .footer-contact a { color: #9ca3af; font-size: 0.9rem; }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-bottom {
 border-top: 1px solid #374151;
 padding-top: 30px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 1rem;
}
.footer-copyright { font-size: 0.875rem; color: #9ca3af; margin: 0; }
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { font-size: 0.875rem; color: #9ca3af; }
.footer-legal-links a:hover { color: white; }

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 20px;
 left: 20px;
 right: 20px;
 background: var(--bg-dark);
 color: white;
 padding: 20px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-lg);
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--primary-color); font-weight: 500; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 992px) {
 .hero-container {
 flex-direction: column;
 text-align: center;
 }
 .hero-buttons {
 justify-content: center;
 }
 .media-object, .media-object.reverse {
 flex-direction: column;
 }
 .contact-page-container {
 grid-template-columns: 1fr;
 }
 .grid-3, .grid-4 {
 grid-template-columns: repeat(2, 1fr);
 }
 .timeline::after {
 left: 25px;
 }
 .timeline-item {
 padding-left: 60px;
 }
 .timeline-number {
 width: 50px;
 height: 50px;
 font-size: 1.2rem;
 }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 height: 100vh;
 width: 60%;
 background: white;
 flex-direction: column;
 justify-content: center;
 gap: 24px;
 box-shadow: var(--shadow-lg);
 transition: right 0.4s ease-in-out;
 }
 .nav-links.active {
 right: 0;
 }
 .grid-2, .grid-3, .grid-4 {
 grid-template-columns: 1fr;
 }
 .cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}