:root {
 --primary-color: #0d47a1; /* Deep Blue */
 --primary-dark: #002171;
 --secondary-color: #42a5f5; /* Lighter Blue */
 --accent-color: #d32f2f; /* Red accent for contrast */
 --text-dark: #212121;
 --text-light: #616161;
 --bg-light: #f5f7fa;
 --bg-white: #ffffff;
 --border-color: #e0e0e0;
 --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
 --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
 --radius-md: 8px;
 --radius-lg: 16px;
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', sans-serif;
 --font-display: 'Orbitron', sans-serif;
}

*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
}

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

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

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

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
.h3-style { font-size: 1.5rem; margin-bottom: 1rem; font-family: var(--font-display);}

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

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

p {
 margin-bottom: 1rem;
 color: var(--text-light);
}

.section {
 padding: 80px 0;
}

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

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

.section-title {
 margin-bottom: 1rem;
}

.section-subtitle {
 font-size: 1.15rem;
 color: var(--text-light);
}

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

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

/* 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 {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}

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

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

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

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

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

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

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

/* Hero Section */
.hero {
 position: relative;
 min-height: 80vh;
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--bg-white);
}

.hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: linear-gradient(rgba(13, 71, 161, 0.7), rgba(0, 33, 113, 0.8));
}

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

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

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

.hero-buttons {
 display: flex;
 justify-content: center;
 gap: 1rem;
 flex-wrap: wrap;
}

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

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

.btn-primary:hover {
 background-color: #1e88e5; /* Darker secondary */
 transform: translateY(-2px);
 color: var(--bg-white);
}

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

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

/* Page content */
.page-content {
 padding-top: 100px;
}

.grid-3 {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}

.card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 padding: 32px;
 text-align: center;
 transition: var(--transition);
 border: 1px solid var(--border-color);
}

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

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

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

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

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

/* Media Object */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 60px;
 align-items: center;
}

.media-object.reverse {
 grid-template-columns: 1fr 1fr;
}
.media-object.reverse .media-copy {
 order: 2;
}
.media-object.reverse .media-visual {
 order: 1;
}

.media-visual img {
 width: 100%;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 object-fit: cover;
 max-height: 450px;
}

.media-copy .section-title { margin-bottom: 1.5rem; }
.media-copy .btn { margin-top: 1.5rem; }

/* Article & Legal Pages */
.article-container {
 max-width: 800px;
}
.article-header {
 text-align: center;
 margin-bottom: 40px;
}
.article-header h1 {
 margin-bottom: 1rem;
}
.article-intro {
 font-size: 1.1rem;
 color: var(--text-light);
}
.article-banner-image {
 width: 100%;
 height: 350px;
 object-fit: cover;
 border-radius: var(--radius-lg);
 margin-bottom: 40px;
}
.article-body h2 {
 margin: 2.5rem 0 1rem;
}
.article-body h3 {
 margin: 1.5rem 0 0.75rem;
}
.article-body ul {
 list-style-position: inside;
 margin-bottom: 1rem;
 padding-left: 1rem;
}

/* Resources Page */
.resources-list {
 display: grid;
 gap: 20px;
}
.resource-item {
 background: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-md);
 border-left: 4px solid var(--primary-color);
 box-shadow: var(--shadow-sm);
}
.resource-title {
 font-family: var(--font-main);
 font-size: 1.2rem;
 font-weight: 600;
}
.resource-description {
 margin: 0.5rem 0 1rem;
}
.resource-link {
 font-weight: 600;
}

/* Team Section */
.team-card {
 text-align: center;
 padding: 24px;
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
}
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 margin: 0 auto 1rem;
 object-fit: cover;
 border: 4px solid var(--bg-white);
 box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.team-name { font-size: 1.2rem; margin-bottom: 0.25rem; font-family: var(--font-main); font-weight: 700; }
.team-role { font-style: italic; color: var(--primary-color); margin-bottom: 0.5rem; }
.team-bio { font-size: 0.9rem; }

/* Contact Page */
.contact-grid {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 60px;
}
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-control {
 width: 100%;
 padding: 12px 16px;
 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(13, 71, 161, 0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }

.form-group-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.form-group-consent input { margin-top: 5px; }

.contact-info-block { margin-bottom: 2rem; }
.contact-info-title { margin-bottom: 1rem; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.contact-list svg { width: 24px; height: 24px; color: var(--primary-color); flex-shrink: 0; margin-top: 2px;}

.map-container {
 margin-top: 60px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 line-height: 0;
}

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

/* Footer */
.footer {
 background-color: var(--primary-dark);
 color: #e0e0e0;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr repeat(3, 1fr);
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 display: block;
 font-family: var(--font-display);
 font-size: 1.5rem;
 color: var(--bg-white);
 margin-bottom: 1rem;
}
.footer-description {
 font-size: 0.9rem;
 color: #aab2c2;
}
.footer-heading {
 font-family: var(--font-main);
 font-size: 1rem;
 font-weight: 600;
 color: var(--bg-white);
 margin-bottom: 1.5rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a, .footer-contact-item a { color: #aab2c2; }
.footer-links a:hover, .footer-contact-item a:hover { color: var(--bg-white); }
.footer-contact-item { font-size: 0.9rem; color: #aab2c2; margin-bottom: 0.75rem; }

.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;
 color: #aab2c2;
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #aab2c2; }
.footer-social a:hover { color: var(--bg-white); }
.footer-social svg { width: 20px; height: 20px; }

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 width: 100%;
 background-color: #263238;
 color: white;
 padding: 20px;
 display: none;
 justify-content: space-between;
 align-items: center;
 z-index: 1001;
 gap: 20px;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-buttons button {
 background-color: var(--secondary-color);
 color: white;
 border: none;
 padding: 10px 20px;
 border-radius: var(--radius-md);
 cursor: pointer;
 margin-left: 10px;
}
.cookie-buttons button:last-child {
 background-color: #546e7a;
}
.cookie-buttons button:hover {
 opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
 .grid-3 { grid-template-columns: 1fr; }
 .media-object, .media-object.reverse { grid-template-columns: 1fr; }
 .media-object.reverse .media-copy { order: 1; }
 .media-object.reverse .media-visual { order: 2; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .hero-title { font-size: 2.5rem; }
 
 .nav-menu {
 position: fixed;
 top: 70px;
 right: -100%;
 width: 100%;
 max-width: 300px;
 height: calc(100vh - 70px);
 background-color: var(--bg-white);
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 padding: 40px;
 transition: right 0.4s ease-in-out;
 }
 .nav-menu.active {
 right: 0;
 }
 .nav-list {
 flex-direction: column;
 gap: 24px;
 }
 .nav-toggle {
 display: block;
 }
 .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
 body { font-size: 15px; }
 .hero-title { font-size: 2rem; }
 .hero-subtitle { font-size: 1rem; }
 .section { padding: 60px 0; }
 .footer-grid { grid-template-columns: 1fr; }
 .footer-bottom { flex-direction: column; gap: 1rem; }
 .cookie-banner { flex-direction: column; text-align: center; }
}