:root {
 --primary-color: #3b82f6; /* Blue 500 */
 --primary-dark: #2563eb; /* Blue 600 */
 --secondary-color: #6366f1; /* Indigo 500 */
 --text-dark: #1f2937; /* Gray 800 */
 --text-light: #4b5563; /* Gray 600 */
 --text-muted: #6b7280; /* Gray 500 */
 --bg-light: #f9fafb; /* Gray 50 */
 --bg-white: #ffffff;
 --border-color: #e5e7eb; /* Gray 200 */
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
 --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);
 --font-main: 'Roboto', sans-serif;
 --font-headings: 'Source Sans Pro', sans-serif;
 --transition: all 0.3s ease-in-out;
}

*, *::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;
 -moz-osx-font-smoothing: grayscale;
}

.container {
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding-left: 20px;
 padding-right: 20px;
}

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

img {
 max-width: 100%;
 height: auto;
 display: block;
}

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

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

.section {
 padding: 80px 0;
}

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

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

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

.section-title {
 font-size: clamp(2rem, 5vw, 2.75rem);
 margin-bottom: 20px;
}

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

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

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

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

.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);
 transform: translateY(-2px);
}

/* 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);
 box-shadow: var(--shadow-sm);
 transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.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);
 font-family: var(--font-headings);
}

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

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

.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,
.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;
 z-index: 1001;
}

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

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

.hero-container {
 display: grid;
 grid-template-columns: 1fr 1fr;
 align-items: center;
 gap: 50px;
}

.hero-content {
 text-align: left;
}

.hero-tagline {
 font-weight: 600;
 color: var(--primary-color);
 margin-bottom: 12px;
 display: block;
}

.hero-title {
 font-size: clamp(2.5rem, 6vw, 3.5rem);
 margin-bottom: 24px;
}

.hero-subtitle {
 font-size: 1.25rem;
 color: var(--text-light);
 margin-bottom: 32px;
 max-width: 550px;
}

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

.hero-visual img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stats-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
}

.stat-item {
 background-color: var(--bg-white);
 padding: 30px;
 border-radius: var(--radius-lg);
 text-align: center;
 border: 1px solid var(--border-color);
}

.stat-number {
 font-size: 3rem;
 font-weight: 700;
 font-family: var(--font-headings);
 color: var(--primary-color);
 margin-bottom: 10px;
}

.stat-caption {
 font-size: 1.1rem;
 font-weight: 600;
 color: var(--text-dark);
 margin-bottom: 10px;
}

.stat-description {
 color: var(--text-muted);
}

/* Featured Articles / Cards */
.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-md);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}
.card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}
.card-image {
 width: 100%;
 height: 200px;
 object-fit: cover;
}
.card-body {
 padding: 24px;
 display: flex;
 flex-direction: column;
 flex-grow: 1;
}
.card-category {
 font-size: 0.85rem;
 font-weight: 600;
 color: var(--secondary-color);
 margin-bottom: 8px;
 text-transform: uppercase;
}
.card-title {
 font-size: 1.25rem;
 margin-bottom: 12px;
}
.card-text {
 color: var(--text-light);
 flex-grow: 1;
 margin-bottom: 20px;
}
.card-link {
 font-weight: 600;
 color: var(--primary-color);
 display: inline-block;
 align-self: flex-start;
}
.card-link:hover {
 text-decoration: underline;
}

/* Our Mission Section */
.grid-2-mission {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 align-items: center;
 gap: 60px;
}
.mission-image img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 object-fit: cover;
 width: 100%;
 height: 100%;
 max-height: 550px;
}
.mission-content ul {
 list-style: none;
 padding-left: 0;
 margin: 24px 0;
}
.mission-content li {
 padding-left: 28px;
 position: relative;
 margin-bottom: 12px;
}
.mission-content li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--primary-color);
 font-weight: 700;
}

/* Process Section */
.process-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 30px;
 text-align: center;
}
.process-step {
 position: relative;
 padding: 20px;
}
.process-number {
 width: 60px;
 height: 60px;
 border-radius: 50%;
 background-color: var(--primary-color);
 color: white;
 font-size: 1.5rem;
 font-weight: 700;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto 20px;
}
.process-title {
 font-size: 1.2rem;
 margin-bottom: 10px;
}

/* Footer */
.footer {
 background-color: var(--text-dark);
 color: #d1d5db; /* Gray 300 */
 padding: 60px 0 30px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr repeat(3, 1fr);
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--bg-white);
 margin-bottom: 15px;
 display: block;
}
.footer-description {
 font-size: 0.95rem;
 line-height: 1.6;
 margin-bottom: 20px;
}
.footer-social {
 display: flex;
 gap: 15px;
}
.footer-social a {
 color: #d1d5db;
}
.footer-social a:hover {
 color: var(--primary-color);
}
.footer-heading {
 font-size: 1.1rem;
 font-weight: 600;
 color: var(--bg-white);
 margin-bottom: 20px;
}
.footer-links {
 list-style: none;
}
.footer-links li {
 margin-bottom: 10px;
}
.footer-links a, .footer-contact a {
 color: #d1d5db;
}
.footer-links a:hover, .footer-contact a:hover {
 color: var(--bg-white);
 text-decoration: underline;
}
.footer-contact p {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 margin-bottom: 10px;
}
.footer-contact svg {
 margin-top: 4px;
 flex-shrink: 0;
}
.footer-bottom {
 border-top: 1px solid #4b5563;
 padding-top: 30px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.9rem;
 color: #9ca3af;
}
.footer-legal {
 list-style: none;
 display: flex;
 gap: 20px;
}
.footer-legal a {
 color: #9ca3af;
}
.footer-legal a:hover {
 color: var(--bg-white);
}

/* Page Header */
.page-header-section {
 padding: 120px 0 60px;
 background-color: var(--bg-light);
 text-align: center;
}
.page-title {
 font-size: 3rem;
 margin-bottom: 15px;
}
.page-subtitle {
 font-size: 1.2rem;
 color: var(--text-light);
 max-width: 600px;
 margin: 0 auto;
}

/* Articles Page */
.pagination {
 display: flex;
 justify-content: center;
 gap: 8px;
 margin-top: 50px;
}
.pagination a, .pagination span {
 display: inline-block;
 padding: 10px 15px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 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);
}

/* About Page */
.values-section .grid-3 {
 text-align: center;
}
.value-card {
 padding: 30px;
}
.value-icon {
 width: 60px;
 height: 60px;
 border-radius: 50%;
 margin: 0 auto 20px;
 background-color: var(--primary-color);
 color: white;
 display: flex;
 align-items: center;
 justify-content: center;
}
.team-section {
 text-align: center;
}
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 30px;
}
.team-member {
 transition: var(--transition);
}
.team-member:hover {
 transform: translateY(-5px);
}
.team-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 border: 4px solid var(--bg-white);
 box-shadow: var(--shadow-lg);
}
.team-name {
 font-size: 1.25rem;
 margin-bottom: 5px;
}
.team-role {
 color: var(--primary-color);
 font-weight: 500;
}

/* Contact Page */
.contact-container {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: 60px;
 align-items: flex-start;
}
.contact-title {
 font-size: 1.8rem;
 margin-bottom: 15px;
}
.contact-item {
 display: flex;
 gap: 15px;
 margin-top: 25px;
}
.contact-icon {
 color: var(--primary-color);
 width: 24px;
 height: 24px;
 flex-shrink: 0;
}
.contact-icon svg {
 fill: currentColor;
}
.contact-info strong {
 display: block;
 margin-bottom: 5px;
}
.contact-form-wrapper {
 background-color: var(--bg-white);
 padding: 40px;
 border-radius: var(--radius-lg);
 border: 1px solid var(--border-color);
}
.form-group {
 margin-bottom: 20px;
}
.form-group label {
 display: block;
 font-weight: 600;
 margin-bottom: 8px;
}
.form-group input, .form-group textarea {
 width: 100%;
 padding: 12px 15px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-size: 1rem;
 font-family: inherit;
 transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea {
 resize: vertical;
 min-height: 120px;
}
.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;
}
.form-submit-btn {
 width: 100%;
 margin-top: 10px;
}
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 margin: 60px 0;
}

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

/* 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: 6px;
 animation: fadeIn 0.3s ease;
}

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

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

/* Thank you page */
.thank-you-section { text-align: center; }
.thank-you-icon { color: #22c55e; margin-bottom: 20px;}

/* Legal pages */
.legal-page { padding-top: 120px; padding-bottom: 80px; }
.legal-page h1 { font-size: 2.5rem; margin-bottom: 20px; }
.legal-page h2, .legal-page h3 { margin-top: 30px; margin-bottom: 15px; }
.legal-page p, .legal-page li { line-height: 1.7; color: var(--text-light); }
.legal-page ul { margin-left: 20px; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 30px 0;
 font-size: 0.9rem;
}
.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;
}

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 width: 100%;
 background-color: var(--text-dark);
 color: var(--bg-white);
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
}
#cookie-banner p {
 margin: 0;
}
#cookie-banner a {
 color: var(--primary-color);
 text-decoration: underline;
}
.cookie-buttons {
 display: flex;
 gap: 10px;
 flex-shrink: 0;
}
.cookie-buttons button {
 padding: 10px 20px;
 border: none;
 border-radius: var(--radius-md);
 cursor: pointer;
}
#accept-cookies { background-color: var(--primary-color); color: white; }
#decline-cookies { background-color: #4b5563; color: white; }

/* Responsive */
@media (max-width: 992px) {
 .grid-3 { grid-template-columns: repeat(2, 1fr); }
 .grid-2-mission { grid-template-columns: 1fr; }
 .mission-image { order: -1; }
 .process-grid { grid-template-columns: repeat(2, 1fr); }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; }
 .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: 25px;
 transition: right 0.4s ease-in-out;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 }
 .nav-links.active { right: 0; }
 .hero-container { grid-template-columns: 1fr; text-align: center; }
 .hero-content { order: 1; }
 .hero-buttons { justify-content: center; }
 .footer-bottom { flex-direction: column; gap: 15px; }
}

@media (max-width: 576px) {
 .grid-3, .grid-2-mission, .process-grid, .team-grid {
 grid-template-columns: 1fr;
 }
 .hero-title { font-size: 2rem; }
 .hero-subtitle { font-size: 1rem; }
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-contact p, .footer-social { justify-content: center; }
 #cookie-banner { flex-direction: column; }
}