:root {
 --primary-color: #0d47a1; /* Deep Blue */
 --primary-dark: #093170;
 --secondary-color: #4CAF50; /* Green for contrast/accents */
 --text-dark: #212121;
 --text-light: #5f6368;
 --bg-light: #f5f7fa;
 --bg-white: #ffffff;
 --border-color: #e0e0e0;
 --radius-md: 8px;
 --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
 font-weight: 700;
 line-height: 1.3;
 color: var(--primary-color);
 margin-bottom: 20px;
}

.main-heading {
 font-size: clamp(2rem, 5vw, 3rem);
 color: var(--text-dark);
}

.section-title {
 font-size: clamp(1.8rem, 4vw, 2.2rem);
 text-align: center;
}

.sub-heading {
 font-size: clamp(1.4rem, 3vw, 1.8rem);
 color: var(--text-dark);
 border-bottom: 2px solid var(--border-color);
 padding-bottom: 10px;
 margin-top: 40px;
}

h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
 margin-bottom: 1rem;
 font-size: 1.05rem;
}

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

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

ul {
 list-style-position: inside;
 margin-left: 1rem;
 margin-bottom: 1rem;
}

li {
 margin-bottom: 0.5rem;
}

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

.container-narrow {
 max-width: 800px;
}

.section {
 padding: 60px 0;
}

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

.text-center {
 text-align: center;
}
.mt-30 {
 margin-top: 30px;
}

/* Header */
.header {
 position: sticky;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.95);
 backdrop-filter: blur(8px);
 -webkit-backdrop-filter: blur(8px);
 box-shadow: var(--shadow-sm);
 border-bottom: 1px solid var(--border-color);
}

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

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

.nav-links ul {
 display: flex;
 align-items: center;
 gap: 30px;
 list-style: none;
 margin: 0;
 padding: 0;
}

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

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

.nav-links a:hover::after, .nav-links a.active::after {
 transform: scaleX(1);
}

.nav-links a.active {
 color: var(--text-dark);
 font-weight: 700;
}

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

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background: var(--text-dark);
 margin: 5px 0;
 transition: all 0.3s ease-in-out;
}

/* Page Headers */
.page-header, .text-hero {
 text-align: center;
 padding: 20px 0;
}
.section-subtitle {
 font-size: 1.2rem;
 color: var(--text-light);
 max-width: 700px;
 margin: 1rem auto 0;
}

/* Content Sections */
.content-section {
 margin-top: 40px;
}

/* Button */
.btn {
 display: inline-block;
 padding: 12px 24px;
 font-size: 1rem;
 font-weight: 600;
 border-radius: var(--radius-md);
 border: 1px solid transparent;
 cursor: pointer;
 text-align: center;
 transition: all 0.3s ease;
}
.btn:hover {
 text-decoration: none;
 transform: translateY(-2px);
}

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

.btn-primary:hover {
 background-color: var(--primary-dark);
}

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

.btn-tertiary {
 background-color: transparent;
 color: var(--text-light);
 border-color: var(--text-light);
}

.btn-sm {
 padding: 8px 16px;
 font-size: 0.9rem;
}

/* Home page styles */
.approach-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 margin-top: 40px;
}
.approach-item {
 background: var(--bg-white);
 padding: 24px;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
}
.approach-item h3 {
 color: var(--primary-color);
 margin-bottom: 12px;
}

/* About page */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 20px;
 margin-top: 30px;
}
.team-member-card {
 border: 1px solid var(--border-color);
 padding: 20px;
 border-radius: var(--radius-md);
 background: var(--bg-white);
}
.team-member-name {
 margin-bottom: 5px; color: var(--text-dark);
}
.team-member-title {
 font-weight: 500;
 color: var(--text-light);
 margin-bottom: 10px;
 font-style: italic;
}
.team-member-bio {
 font-size: 0.95rem;
 line-height: 1.6;
}

/* Resources page */
.resource-list {
 list-style: none;
 padding: 0;
 margin: 0;
}
.resource-list li {
 padding: 10px;
 border-bottom: 1px solid var(--border-color);
}
.resource-list li:last-child {
 border-bottom: none;
}
.resource-list strong {
 color: var(--primary-dark);
 display: block;
}

/* Contact page */
.contact-grid {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 50px;
 margin-top: 40px;
}
.contact-details-list {
 list-style: none;
 padding: 0;
 margin: 0;
}
.contact-details-list li {
 display: flex;
 flex-direction: column;
 padding-bottom: 15px;
 margin-bottom: 15px;
 border-bottom: 1px dashed var(--border-color);
}
.contact-details-list li:last-child {
 border-bottom: none;
}
.contact-details-list strong {
 font-size: 0.9rem;
 text-transform: uppercase;
 color: var(--text-light);
 margin-bottom: 5px;
}
.contact-details-list span, .contact-details-list a {
 font-size: 1.1rem;
}

/* Form Styles */
.form-group {
 margin-bottom: 20px;
}
.form-group label {
 display: block;
 font-weight: 500;
 margin-bottom: 8px;
}
.form-control {
 width: 100%;
 padding: 12px 15px;
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: all 0.3 ease;
}
.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: 10px;
}
.checkbox-group input[type="checkbox"] {
 margin-top: 5px;
 flex-shrink: 0;
}
.checkbox-group label {
 font-size: 0.9rem;
 color: var(--text-light);
 margin-bottom: 0;
}
.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;
}
.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; }

/* Table for Cookie Policy */
.table-container {
 overflow-x: auto;
 margin-top: 20px;
}
table {
 width: 100%;
 border-collapse: collapse;
 font-size: 0.95rem;
}
th, td {
 padding: 12px 15px;
 text-align: left;
 border-bottom: 1px solid var(--border-color);
}
thead th {
 background-color: var(--bg-light);
 font-weight: 600;
 color: var(--text-dark);
}
tbody tr:hover {
 background-color: var(--bg-light);
}

/* Footer */
.footer {
 background-color: var(--text-dark);
 color: #a0a0a0;
 padding: 60px 0 30px;
 margin-top: 60px;
}
.footer a {
 color: #a0a0a0;
}
.footer a:hover {
 color: var(--bg-white);
}
.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: inline-block;
}
.footer-desc {
 font-size: 0.9rem;
 line-height: 1.6;
}
.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: var(--bg-white);
 text-transform: uppercase;
 letter-spacing: 0.5px;
 margin-bottom: 20px;
}
.footer-links {
 list-style: none;
 padding: 0;
 margin: 0;
}
.footer-links li {
 margin-bottom: 10px;
}
.footer-contact {
 list-style: none;
 padding: 0;
 margin: 0;
}
.footer-contact li {
 display: flex;
 gap: 10px;
 align-items: flex-start;
 margin-bottom: 12px;
}
.footer-contact svg {
 width: 18px;
 height: 18px;
 flex-shrink: 0;
 margin-top: 3px;
 color: var(--primary-color);
}
.footer-hours {
 font-size: 0.9rem;
 line-height: 1.6;
}
.footer-bottom {
 border-top: 1px solid #424242;
 padding-top: 30px;
 text-align: center;
 font-size: 0.85rem;
 color: #757575;
}

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--text-dark);
 color: var(--bg-white);
 padding: 15px 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(--bg-white);
 text-decoration: underline;
}
.cookie-banner div {
 display: flex;
 gap: 10px;
 flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
 .footer-grid {
 grid-template-columns: 1fr 1fr;
 }
 .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: 80%;
 max-width: 320px;
 height: 100vh;
 background: var(--bg-white);
 flex-direction: column;
 justify-content: center;
 align-items: center;
 transition: right 0.3s ease-in-out;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 }
 .nav-links.active {
 right: 0;
 }
 .nav-links ul {
 flex-direction: column;
 gap: 20px;
 }
 .nav-links a {
 font-size: 1.2rem;
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-contact li {
 justify-content: center;
 }
}