/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #3498db;
    --color-accent-light: #5dade2;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-section: #f5f7fa;
    --color-border: #e0e0e0;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --line-height-base: 1.6;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header and Navigation */
.header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--color-text);
}

.logo-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 32px;
    height: 32px;
}

.logo-tiles .tile {
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.logo-tiles .tile-1 {
    background-color: var(--color-accent);
}

.logo-tiles .tile-2 {
    background-color: #e74c3c;
}

.logo-tiles .tile-3 {
    background-color: #e74c3c;
}

.logo-tiles .tile-4 {
    background-color: #e74c3c;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
    margin-right: var(--spacing-md);
}

.nav-search-input {
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-sm);
    padding-right: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.nav-search-input::placeholder {
    color: var(--color-text-light);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: var(--spacing-xs);
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--color-bg-section);
}

.search-result-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.search-result-url {
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.search-result-summary {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.search-no-results {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-base);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: var(--transition);
    padding: var(--spacing-xs) 0;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-accent);
}

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

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
    left: 0;
}

.menu-toggle-line:nth-child(1) {
    top: 0;
}

.menu-toggle-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle-line:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active .menu-toggle-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .menu-toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.menu-toggle.active .menu-toggle-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-tagline {
    font-size: var(--font-size-3xl);
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
}

.hero-tiles {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    width: 120%;
    height: 120%;
    padding: var(--spacing-lg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tile-grid .tile {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 6px;
    aspect-ratio: 1;
    animation: fade-pulse 7s ease-in-out infinite;
    opacity: 0.6;
}

/* Vary tile colors */
.tile-grid .tile:nth-child(3n) {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

.tile-grid .tile:nth-child(5n) {
    background: var(--color-accent);
}

.tile-grid .tile:nth-child(7n) {
    background: var(--color-accent-light);
}

/* Vary animation durations for more randomness */
.tile-grid .tile:nth-child(2n) {
    animation-duration: 9s;
}

.tile-grid .tile:nth-child(3n) {
    animation-duration: 6.5s;
}

.tile-grid .tile:nth-child(5n) {
    animation-duration: 11s;
}

.tile-grid .tile:nth-child(7n) {
    animation-duration: 8.5s;
}

.tile-grid .tile:nth-child(11n) {
    animation-duration: 10s;
}

.tile-grid .tile:nth-child(13n) {
    animation-duration: 7.5s;
}

/* Random sporadic delays */
.tile-grid .tile:nth-child(1) { animation-delay: 0s; }
.tile-grid .tile:nth-child(2) { animation-delay: 1.3s; }
.tile-grid .tile:nth-child(3) { animation-delay: 0.4s; }
.tile-grid .tile:nth-child(4) { animation-delay: 2.7s; }
.tile-grid .tile:nth-child(5) { animation-delay: 0.8s; }
.tile-grid .tile:nth-child(6) { animation-delay: 1.9s; }
.tile-grid .tile:nth-child(7) { animation-delay: 0.2s; }
.tile-grid .tile:nth-child(8) { animation-delay: 3.1s; }
.tile-grid .tile:nth-child(9) { animation-delay: 1.6s; }
.tile-grid .tile:nth-child(10) { animation-delay: 0.5s; }
.tile-grid .tile:nth-child(11) { animation-delay: 2.4s; }
.tile-grid .tile:nth-child(12) { animation-delay: 1.1s; }
.tile-grid .tile:nth-child(13) { animation-delay: 0.7s; }
.tile-grid .tile:nth-child(14) { animation-delay: 2.9s; }
.tile-grid .tile:nth-child(15) { animation-delay: 0.3s; }
.tile-grid .tile:nth-child(16) { animation-delay: 1.8s; }
.tile-grid .tile:nth-child(17) { animation-delay: 3.5s; }
.tile-grid .tile:nth-child(18) { animation-delay: 0.9s; }
.tile-grid .tile:nth-child(19) { animation-delay: 2.2s; }
.tile-grid .tile:nth-child(20) { animation-delay: 0.6s; }
.tile-grid .tile:nth-child(21) { animation-delay: 1.4s; }
.tile-grid .tile:nth-child(22) { animation-delay: 3.2s; }
.tile-grid .tile:nth-child(23) { animation-delay: 0.1s; }
.tile-grid .tile:nth-child(24) { animation-delay: 2.5s; }
.tile-grid .tile:nth-child(25) { animation-delay: 1.7s; }
.tile-grid .tile:nth-child(26) { animation-delay: 0.4s; }
.tile-grid .tile:nth-child(27) { animation-delay: 3.8s; }
.tile-grid .tile:nth-child(28) { animation-delay: 1.2s; }
.tile-grid .tile:nth-child(29) { animation-delay: 0.8s; }
.tile-grid .tile:nth-child(30) { animation-delay: 2.6s; }
.tile-grid .tile:nth-child(31) { animation-delay: 1.5s; }
.tile-grid .tile:nth-child(32) { animation-delay: 0.2s; }
.tile-grid .tile:nth-child(33) { animation-delay: 3.4s; }
.tile-grid .tile:nth-child(34) { animation-delay: 1.9s; }
.tile-grid .tile:nth-child(35) { animation-delay: 0.7s; }
.tile-grid .tile:nth-child(36) { animation-delay: 2.8s; }
.tile-grid .tile:nth-child(37) { animation-delay: 1.3s; }
.tile-grid .tile:nth-child(38) { animation-delay: 3.6s; }
.tile-grid .tile:nth-child(39) { animation-delay: 0.5s; }
.tile-grid .tile:nth-child(40) { animation-delay: 2.1s; }
.tile-grid .tile:nth-child(41) { animation-delay: 1.8s; }
.tile-grid .tile:nth-child(42) { animation-delay: 0.3s; }
.tile-grid .tile:nth-child(43) { animation-delay: 3.3s; }
.tile-grid .tile:nth-child(44) { animation-delay: 1.6s; }
.tile-grid .tile:nth-child(45) { animation-delay: 0.9s; }
.tile-grid .tile:nth-child(46) { animation-delay: 2.7s; }
.tile-grid .tile:nth-child(47) { animation-delay: 1.4s; }
.tile-grid .tile:nth-child(48) { animation-delay: 0.1s; }
.tile-grid .tile:nth-child(49) { animation-delay: 3.7s; }
.tile-grid .tile:nth-child(50) { animation-delay: 2.3s; }
.tile-grid .tile:nth-child(51) { animation-delay: 0.6s; }
.tile-grid .tile:nth-child(52) { animation-delay: 1.7s; }
.tile-grid .tile:nth-child(53) { animation-delay: 3.9s; }
.tile-grid .tile:nth-child(54) { animation-delay: 1.1s; }
.tile-grid .tile:nth-child(55) { animation-delay: 0.4s; }
.tile-grid .tile:nth-child(56) { animation-delay: 2.9s; }
.tile-grid .tile:nth-child(57) { animation-delay: 1.5s; }
.tile-grid .tile:nth-child(58) { animation-delay: 0.8s; }
.tile-grid .tile:nth-child(59) { animation-delay: 3.2s; }
.tile-grid .tile:nth-child(60) { animation-delay: 2.4s; }
.tile-grid .tile:nth-child(61) { animation-delay: 0.2s; }
.tile-grid .tile:nth-child(62) { animation-delay: 1.9s; }
.tile-grid .tile:nth-child(63) { animation-delay: 3.5s; }
.tile-grid .tile:nth-child(64) { animation-delay: 0.7s; }

@keyframes fade-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Mission Section */
.mission {
    background-color: var(--color-bg);
}

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

.mission-text {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.mission-text:last-child {
    margin-bottom: 0;
}

/* Mosaic Section */
.mosaic {
    background-color: var(--color-bg-section);
}

.mosaic-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mosaic-text {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.mosaic-text:last-child {
    margin-bottom: 0;
}

/* Principles Section */
.principles {
    background-color: var(--color-bg-section);
}

.principles-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.principle-card {
    background-color: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.principle-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.principle-icon {
    display: flex;
    flex-shrink: 0;
}

.principle-icon .tile {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 4px;
    transform: rotate(45deg);
}

.principle-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.principle-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    flex-shrink: 0;
    min-width: 200px;
}

.principle-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Approach Section */
.approach {
    background-color: var(--color-bg);
}

.approach-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.approach-item {
    padding: var(--spacing-md);
}

.approach-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.approach-item p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.cta-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: white;
    color: var(--color-accent);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
    border: 2px solid white;
}

.cta-button:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo-tiles .tile {
    background-color: white;
}

.footer-logo .logo-text {
    color: white;
}

.footer-tagline {
    font-size: var(--font-size-lg);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.footer-copyright {
    font-size: var(--font-size-base);
    opacity: 0.7;
}

/* Stories Page Styles */
.page-hero {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.page-hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.page-hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.stories-section {
    background-color: var(--color-bg);
    padding: var(--spacing-xl) 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.story-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.story-icon {
    flex-shrink: 0;
}

.story-icon .tile {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 4px;
    transform: rotate(45deg);
}

.story-content {
    flex: 1;
}

.story-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.story-location {
    font-size: var(--font-size-base);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.story-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-section);
    color: var(--color-text);
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
}

.stories-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.stories-cta .cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.stories-cta .cta-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

/* Resources Page Styles */
.resources-section {
    background-color: var(--color-bg);
    padding: var(--spacing-xl) 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.resource-card {
    background-color: var(--color-bg-section);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent);
}

.resource-card:hover::before {
    transform: scaleY(1);
}

.resource-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
}

.resource-category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.resources-categories {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.resource-category {
    background-color: var(--color-bg-section);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.category-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-accent);
}

.resource-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.resource-item {
    background-color: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    display: flex;
    gap: var(--spacing-md);
    transition: var(--transition);
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.resource-icon {
    flex-shrink: 0;
}

.resource-icon .tile {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 4px;
    transform: rotate(45deg);
}

.resource-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.3;
}

.resource-description {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0 0 var(--spacing-md) 0;
    flex: 1;
}

.resource-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.resource-link:hover {
    color: var(--color-accent-light);
    gap: 0.5rem;
}

.resources-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.resources-cta .cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.resources-cta .cta-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

/* Content Page Styles (First Amendment, etc.) */
.content-section {
    background-color: var(--color-bg);
    padding: var(--spacing-xl) 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-section .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.content-article {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.content-article:last-child {
    border-bottom: none;
}

.content-article:has(.help-grid) {
    margin-top: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.article-text {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.content-list {
    list-style: none;
    padding-left: 0;
    margin: var(--spacing-md) 0;
}

.content-list li {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    position: relative;
}

.content-list li::before {
    content: '•';
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.content-list.ordered {
    list-style: decimal;
    padding-left: var(--spacing-md);
}

.content-list.ordered li {
    padding-left: var(--spacing-xs);
}

.content-list.ordered li::before {
    display: none;
}

.legal-precedents {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.precedent-item {
    background-color: var(--color-bg-section);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
}

.precedent-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.precedent-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.application-card {
    background-color: var(--color-bg-section);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.application-icon {
    margin-bottom: var(--spacing-sm);
}

.application-icon .tile {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 4px;
    transform: rotate(45deg);
}

.application-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.application-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Contact Page Styles */
.contact-info {
    background-color: var(--color-bg-section);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    min-width: 0;
    overflow-wrap: break-word;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
}

.contact-email-prominent {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.contact-email-icon {
    flex-shrink: 0;
}

.contact-email-icon .tile {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transform: rotate(45deg);
}

.contact-email-content {
    flex: 1;
}

.contact-email-label {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--spacing-xs) 0;
}

.contact-email-link {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    word-break: break-word;
}

.contact-email-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.contact-method {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-icon .tile {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 4px;
    transform: rotate(45deg);
}

.contact-details {
    flex: 1;
}

.contact-method-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.contact-method-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-form-section {
    background-color: var(--color-bg-section);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    min-width: 0;
    overflow-wrap: break-word;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-primary);
}

.form-input,
.form-textarea {
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.help-item {
    background-color: var(--color-bg-section);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.help-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.help-icon {
    margin-bottom: var(--spacing-sm);
}

.help-icon .tile {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 4px;
    transform: rotate(45deg);
}

.help-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.help-text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: nowrap;
    }

    .nav-search-container {
        order: 2;
        max-width: none;
        width: auto;
        flex: 1;
        margin: 0 var(--spacing-sm) 0 var(--spacing-sm);
    }

    .nav-search-input {
        width: 100%;
    }

    .search-results {
        position: fixed;
        top: auto;
        left: var(--spacing-md);
        right: var(--spacing-md);
        max-width: calc(100% - 2 * var(--spacing-md));
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: right 0.3s ease;
        overflow-y: auto;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-md) 0;
        width: 100%;
        font-size: var(--font-size-lg);
        color: var(--color-text);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        color: var(--color-accent);
        padding-left: var(--spacing-sm);
        transition: padding-left 0.2s ease;
    }

    .menu-overlay {
        display: block;
    }

    .nav-container {
        position: relative;
    }

    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.25rem;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }


    .hero {
        min-height: 70vh;
    }

    .principle-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .principle-title {
        min-width: auto;
    }

    .approach-content {
        grid-template-columns: 1fr;
    }

    .tile-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-card {
        flex-direction: column;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .resource-card {
        padding: var(--spacing-md);
    }

    .application-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: var(--spacing-md);
    }

    .contact-email-prominent {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .contact-email-link {
        font-size: var(--font-size-xl);
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 260px;
        padding: 70px var(--spacing-md) var(--spacing-md);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-tagline {
        font-size: var(--font-size-2xl);
    }

    .contact-info {
        padding: var(--spacing-sm);
    }

    .contact-email-prominent {
        padding: var(--spacing-sm);
    }

    .contact-email-link {
        font-size: var(--font-size-lg);
    }

    .contact-method-text {
        word-break: break-word;
    }
}

