:root {
 --primary-color: #1e3a5f; /* Deep Navy Blue */
 --primary-dark: #12233a;
 --secondary-color: #6c757d; /* Muted Gray */
 --text-dark: #212529; /* Near Black for Body Text */
 --text-light: #495057; /* Softer Gray */
 --bg-light: #f8f9fa; /* Off-white */
 --bg-white: #ffffff;
 --border-color: #dee2e6;
 --font-main: 'Inter', sans-serif;
 --font-serif: 'Lora', serif;
}

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

html {
 scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-main);
 font-weight: 700;
 line-height: 1.3;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--text-dark); }

p {
 margin-bottom: 1.5rem;
}

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

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

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

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

/* Header & Navigation */
.header {
 background-color: var(--bg-white);
 border-bottom: 1px solid var(--border-color);
}
.top-bar {
 background-color: var(--bg-light);
 border-bottom: 1px solid var(--border-color);
 font-size: 0.8rem;
 padding: 8px 0;
}

.top-bar .container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 color: var(--text-light);
}

.top-bar-tagline{
 font-family: var(--font-main);
 font-weight: 500;
}

.masthead {
 padding: 2.5rem 0;
 text-align: center;
}

.masthead-logo {
 font-family: var(--font-main);
 font-size: 2.5rem;
 font-weight: 700;
 color: var(--text-dark);
 text-decoration: none;
 letter-spacing: 1px;
}
.masthead-logo:hover {
 text-decoration: none;
}

.nav {
 position: relative;
 background-color: var(--bg-white);
 z-index: 1000;
}

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

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
 font-family: var(--font-main);
}

.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 text-decoration: none;
 padding: 8px 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 ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}
.nav-links a:hover,
.nav-links a.active{
 color: var(--primary-color);
 text-decoration: none;
}
.nav-toggle { display: none; }

/* Hero Section */
.hero-text-only {
 padding: 80px 0;
 text-align: center;
}

.hero-text-only h1 {
 font-size: clamp(3rem, 7vw, 5rem);
 line-height: 1.1;
 max-width: 900px;
 margin-left: auto;
 margin-right: auto;
}

.article-byline {
 font-family: var(--font-main);
 color: var(--text-light);
 margin: 1rem 0 3rem 0;
 font-size: 0.9rem;
}

.article-content {
 max-width: 800px;
 margin: 0 auto;
 text-align: left;
}

.drop-cap {
 float: left;
 font-family: var(--font-main);
 font-size: 4.5rem;
 line-height: 0.8;
 font-weight: 700;
 margin-right: 1rem;
 margin-top: 0.2rem;
 color: var(--primary-color);
}

/* Page Headers */
.page-header-section {
 padding: 60px 0;
 background-color: var(--bg-light);
 text-align: center;
 border-bottom: 1px solid var(--border-color);
}
.page-header-section h1 {
 font-size: clamp(2.5rem, 6vw, 4rem);
}

/* Content Sections */
.section {
 padding: 80px 0;
}
.section.section-light{
 background-color: var(--bg-light);
}

.section-title {
 text-align: center;
 margin-bottom: 3rem;
}

.content-columns {
 column-count: 2;
 column-gap: 48px;
}
.content-columns h2{
 column-span: all;
}
.content-columns .text-link{
 display: block;
 column-span: all;
 margin-top: 2rem;
 font-family: var(--font-main);
 font-weight: 600;
}
.column-text p{
 margin-bottom: 1.5rem;
}

.section-divider {
 border: 0;
 height: 1px;
 background-color: var(--border-color);
 max-width: 800px;
 margin: 0 auto;
}

.centered-text {
 text-align: center;
}
.centered-text .section-subtitle {
 font-size: 1.25rem;
 color: var(--text-light);
 max-width: 700px;
 margin: -1rem auto 3rem;
}

.approach-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
 text-align: left;
 margin-top: 3rem;
}

.approach-item {
 padding: 2rem;
 border: 1px solid var(--border-color);
 background-color: var(--bg-white);
}

/* Long Form Article Styles */
.long-form-article ul {
 list-style-position: inside;
 margin-bottom: 1.5rem;
 padding-left: 1rem;
}
.long-form-article ul li {
 margin-bottom: 0.75rem;
}

blockquote {
 border-left: 4px solid var(--primary-color);
 padding-left: 1.5rem;
 margin: 2rem 0;
 font-size: 1.2rem;
 font-style: italic;
 color: var(--text-light);
}

.contributors-list {
 margin-top: 3rem;
}
.contributor-item {
 border-top: 1px solid var(--border-color);
 padding: 2rem 0;
}
.contributor-item:last-child {
 border-bottom: 1px solid var(--border-color);
}
h3.contributor-name {
 font-size: 1.3rem;
 margin-bottom: 0.25rem;
}
.contributor-role {
 font-family: var(--font-main);
 font-weight: 500;
 color: var(--secondary-color);
 margin-bottom: 0.75rem;
}
.contributor-bio {
 font-size: 1rem;
 margin-bottom: 0;
}

/* Resources Page */
.resources-list .resource-item {
 margin-bottom: 2rem;
}
.resources-list h3 {
 margin-bottom: 0.5rem;
}
.resources-list h3 a {
 text-decoration: none;
}
.resources-list h3 a:hover{
 text-decoration: underline;
}

/* Contact Page */
.contact-container {
 display: grid;
 grid-template-columns: 1fr 1.5fr;
 gap: 60px;
}
.contact-details .contact-detail-item {
 margin-bottom: 2rem;
}
.contact-details h3 {
 font-size: 1.1rem;
 margin-bottom: 0.5rem;
}
.contact-details p {
 margin-bottom: 0.25rem;
}

.form-group {
 margin-bottom: 1.5rem;
}
.form-group label {
 display: block;
 font-family: var(--font-main);
 font-weight: 500;
 margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
 width: 100%;
 padding: 12px;
 font-family: var(--font-serif);
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: 4px;
}
.form-group-checkbox {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 margin-bottom: 1.5rem;
}
.form-group-checkbox input[type="checkbox"] {
 margin-top: 5px;
}
.form-group-checkbox label {
 font-size: 0.9rem;
 color: var(--text-light);
}

.submit-button {
 display: inline-block;
 padding: 14px 28px;
 background-color: var(--primary-color);
 color: white;
 font-family: var(--font-main);
 font-weight: 600;
 border: none;
 border-radius: 4px;
 cursor: pointer;
 text-decoration: none;
 transition: background-color 0.3s;
}
.submit-button:hover {
 background-color: var(--primary-dark);
 text-decoration: none;
 color: white;
}

/* Form validation */
.input-error {
 border-color: #dc2626 !important;
}
.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
 animation: fadeIn 0.3s ease;
 font-family: var(--font-main);
}
@keyframes fadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}

.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 {
 min-height: 50vh;
 display: flex;
 align-items: center;
 justify-content: center;
}

/* Cookie Table */
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 2rem 0;
 font-family: var(--font-main);
 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;
}

/* Footer */
.footer {
 background-color: var(--primary-color);
 color: var(--bg-light);
 padding: 60px 0 30px;
 margin-top: 80px;
 font-family: var(--font-main);
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 30px;
 margin-bottom: 40px;
}

.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: white;
 margin-bottom: 20px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.footer-description, .footer-contact-item {
 font-size: 0.9rem;
 line-height: 1.6;
 color: #adb5bd;
 margin-bottom: 0.5rem;
}

.footer-links {
 list-style: none;
}
.footer-links li {
 margin-bottom: 12px;
}
.footer-links a {
 color: #adb5bd;
 text-decoration: none;
}
.footer-links a:hover {
 color: white;
 text-decoration: underline;
}
.footer-contact-item a {
 color: #adb5bd;
}
.footer-contact-item a:hover {
 color: white;
}

.footer-bottom {
 border-top: 1px solid #34496e;
 padding-top: 30px;
 text-align: center;
 font-size: 0.85rem;
 color: #adb5bd;
}

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--text-dark);
 color: white;
 padding: 20px;
 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: white;
 text-decoration: underline;
}
.cookie-buttons button {
 background-color: var(--bg-white);
 color: var(--text-dark);
 border: none;
 padding: 10px 20px;
 border-radius: 4px;
 cursor: pointer;
 font-weight: 600;
 margin-left: 10px;
}
.cookie-buttons button:last-child {
 background-color: transparent;
 border: 1px solid white;
 color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
 .contact-container {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 768px) {
 body {
 font-size: 16px;
 }
 .content-columns {
 column-count: 1;
 }
 .approach-grid {
 grid-template-columns: 1fr;
 }
 .masthead-logo {
 font-size: 2rem;
 }

 .nav-toggle {
 display: block;
 background: none;
 border: none;
 cursor: pointer;
 padding: 8px;
 position: absolute;
 right: 20px;
 top: 50%;
 transform: translateY(-50%);
 z-index: 1001;
 }

 .nav-toggle span {
 display: block;
 width: 24px;
 height: 2px;
 background: var(--text-dark);
 margin: 6px 0;
 transition: all 0.3s ease;
 }
 
 .nav-toggle.active span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
 }
 .nav-toggle.active span:nth-child(2) {
 opacity: 0;
 }
 .nav-toggle.active span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
 }

 .nav-links {
 position: absolute;
 top: 60px;
 left: 0;
 right: 0;
 background: white;
 flex-direction: column;
 padding: 20px;
 gap: 16px;
 box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 display: none;
 }
 .nav-links.active {
 display: flex;
 }
 
 .cookie-banner {
 flex-direction: column;
 text-align: center;
 }
 .cookie-buttons {
 margin-top: 15px;
 }
}