:root {
 --primary-color: #1e3a8a; /* Deep Blue */
 --primary-dark: #1e40af;
 --secondary-color: #60a5fa; /* Light Blue */
 --text-dark: #111827; /* Near Black */
 --text-light: #6b7280; /* Medium Gray */
 --bg-light: #f9fafb; /* Off White */
 --bg-white: #ffffff;
 --border-color: #e5e7eb;
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

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

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style-position: inside; padding-left: 1.5rem; margin-bottom: 1rem; }
ul li, ol li { margin-bottom: 0.5rem; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

/* --- Layout --- */
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

@media (max-width: 992px) {
 .grid-3 { grid-template-columns: 1fr; }
 .grid-2 { grid-template-columns: 1fr; }
}

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

.section-label {
 display: inline-block;
 color: var(--primary-color);
 font-weight: 600;
 text-transform: uppercase;
 letter-spacing: 1px;
 margin-bottom: 0.5rem;
}

.section-title { margin-bottom: 1.5rem; }
.section-subtitle { font-size: 1.125rem; max-width: 700px; margin: 0 auto; }
.page-subtitle { font-size: 1.25rem; color: var(--text-light); max-width: 800px; margin: 0 auto; }

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

.header.scrolled {
 box-shadow: var(--shadow-md);
 background-color: rgba(255, 255, 255, 0.98);
}

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

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

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

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

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

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

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

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

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

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

.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

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

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}

.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

/* --- Hero --- */
.hero {
 position: relative;
 min-height: 70vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--bg-white);
 padding: 100px 24px;
 background-size: cover;
 background-position: center;
 background-attachment: fixed;
}

.hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
}

.hero-content {
 position: relative;
 z-index: 2;
 max-width: 900px;
}

.hero-title {
 color: var(--bg-white);
 margin-bottom: 1.5rem;
}

.hero-subtitle {
 font-size: 1.25rem;
 max-width: 750px;
 margin: 0 auto;
 color: rgba(255, 255, 255, 0.9);
}

/* --- Page Headers --- */
.page-header-section {
 padding: 120px 0 60px;
 background-color: var(--bg-light);
 text-align: center;
}

/* --- Cards --- */
.card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 padding: 2rem;
 transition: var(--transition);
 border: 1px solid var(--border-color);
}

.card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

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

.card-icon {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 width: 60px;
 height: 60px;
 border-radius: 50%;
 background-color: #e0e7ff;
 color: var(--primary-color);
 margin-bottom: 1.5rem;
}

.card-icon svg {
 width: 30px;
 height: 30px;
}

.card-title {
 font-size: 1.25rem;
 margin-bottom: 0.75rem;
}

.card-text { font-size: 1rem; }

/* --- Media Objects --- */
.media-object, .media-object-alt {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 50px;
 align-items: center;
}
.media-image img, .media-image-alt img {
 width: 100%;
 height: auto;
 object-fit: cover;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
}
.media-object-alt { grid-template-areas: "content image"; }
.media-object { grid-template-areas: "image content"; }
.media-image { grid-area: image; }
.media-image-alt { grid-area: image; }
.media-content { grid-area: content; }
.media-content .btn { margin-top: 1rem; }

/* --- Content Article --- */
.content-article {
 max-width: 800px;
}

.content-article h2 {
 margin-top: 2rem;
 margin-bottom: 1.5rem;
 padding-bottom: 0.5rem;
 border-bottom: 2px solid var(--border-color);
}
.content-article h3 {
 margin-top: 1.5rem;
 margin-bottom: 1rem;
}
.content-article .content-image {
 margin: 2rem 0;
}
.resource-list {
 list-style: none;
 padding: 0;
}
.resource-list li {
 padding: 1.5rem;
 margin-bottom: 1rem;
 background-color: var(--bg-light);
 border-left: 4px solid var(--primary-color);
 border-radius: var(--radius-md);
}
.resource-list h3 { margin: 0 0 0.5rem 0; }
.resource-list a { font-weight: 600; }
.resource-list p { margin: 0; }

/* --- Team Section --- */
.team-card {
 text-align: center;
 background: var(--bg-white);
 padding: 2rem;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.team-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 margin: 0 auto 1.5rem;
 object-fit: cover;
 border: 4px solid var(--bg-white);
 box-shadow: var(--shadow-md);
}
.team-name { font-size: 1.25rem; }
.team-role { font-weight: 600; color: var(--primary-color); margin-bottom: 0.5rem; }
.team-bio { font-size: 0.9rem; }

/* --- Contact Page --- */
.contact-grid {
 display: grid;
 grid-template-columns: 2fr 1.5fr;
 gap: 50px;
}

.contact-form-container h3, .contact-info-container h3 {
 margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-control {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-size: 1rem;
 font-family: var(--font-main);
 transition: var(--transition);
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}
textarea.form-control { min-height: 150px; resize: vertical; }

.form-check { display: flex; align-items: flex-start; gap: 0.75rem;}
.form-check-input { margin-top: 5px; width: 1rem; height: 1rem; }
.form-check-label { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }
.form-submit { width: 100%; padding: 16px; font-size: 1.1rem; }

.contact-details-list {
 list-style: none;
 padding: 0;
}
.contact-details-list li {
 display: flex;
 align-items: flex-start;
 gap: 1rem;
 margin-bottom: 1.5rem;
 font-size: 1rem;
}
.contact-details-list svg {
 flex-shrink: 0;
 width: 24px;
 height: 24px;
 color: var(--primary-color);
 margin-top: 3px;
}
.contact-details-list strong {
 display: block;
 margin-bottom: 0.25rem;
}

.map-container {
 margin-top: 50px;
 height: 450px;
 width: 100%;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
}

.cookie-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.cookie-table th, .cookie-table td { border: 1px solid var(--border-color); padding: 12px; text-align: left; }
.cookie-table th { background-color: var(--bg-light); font-weight: 600; }

/* --- Footer --- */
.footer {
 background-color: var(--text-dark);
 color: #a0aec0;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-column .footer-logo {
 color: var(--bg-white);
 font-size: 1.5rem;
 font-weight: 700;
 margin-bottom: 1rem;
 display: block;
}
.footer-description { color: #a0aec0; font-size: 0.9rem; }
.footer-heading {
 color: var(--bg-white);
 font-size: 1rem;
 font-weight: 600;
 text-transform: uppercase;
 letter-spacing: 0.5px;
 margin-bottom: 1.5rem;
}
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.75rem; }
.footer-links a, .footer-contact a { color: #a0aec0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--bg-white); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--secondary-color); }

.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.9rem;
}

.footer-legal-links { display: flex; gap: 20px; list-style: none; }
.footer-legal-links a { color: #a0aec0; }
.footer-legal-links a:hover { color: var(--bg-white); }

/* --- Cookie Banner --- */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: #1f2937;
 color: white;
 padding: 1rem;
 display: none;
 justify-content: space-between;
 align-items: center;
 z-index: 1001;
 gap: 1rem;
}
#cookie-banner p { margin: 0; }
#cookie-banner div { display: flex; gap: 1rem; }
#cookie-banner button {
 padding: 0.5rem 1rem;
 border-radius: var(--radius-md);
 border: none;
 cursor: pointer;
}
#accept-cookies { background: var(--primary-color); color: white; }
#decline-cookies { background: var(--text-light); }

/* --- Animations --- */
.animate-on-scroll {
 opacity: 0;
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.animate-on-scroll.is-visible {
 opacity: 1;
 transform: translate(0, 0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
 h1 { font-size: 2.5rem; }
 h2 { font-size: 2rem; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .media-object, .media-object-alt { grid-template-columns: 1fr; grid-template-areas: "image" "content" !important; }
 .contact-grid { grid-template-columns: 1fr; }
 .contact-info-container { margin-top: 40px; }
}

@media (max-width: 768px) {
 .section { padding: 60px 0; }
 .nav-cta { display: none; }
 .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;
 align-items: flex-start;
 padding: 100px 30px 30px;
 gap: 25px;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transition: right 0.4s ease-in-out;
 }
 .nav-links.active { right: 0; }
 .nav-links li { width: 100%; }
 .nav-links a::after { display: none; }
 
 .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: 1fr; gap: 30px; }
 .footer-bottom { flex-direction: column; gap: 15px; }
}

@media (max-width: 576px) {
 .hero { min-height: 50vh; }
 #cookie-banner { flex-direction: column; text-align: center; }
}