:root {
    --background: 25 35% 98%;
    --foreground: 210 15% 20%;
    --card: 0 0% 100%;
    --card-foreground: 210 15% 20%;
    --primary: 210 95% 45%;
    --primary-foreground: 0 0% 100%;
    --secondary: 210 25% 92%;
    --secondary-foreground: 210 15% 25%;
    --muted: 210 15% 95%;
    --muted-foreground: 210 10% 45%;
    --accent: 210 70% 88%;
    --accent-foreground: 210 95% 35%;
    --border: 210 20% 88%;
    --input: 210 20% 88%;
    --ring: 210 95% 45%;
    --community-warm: 45 85% 65%;
    --community-earth: 25 45% 45%;
    --community-ocean: 200 90% 45%;
    --community-sky: 210 75% 75%;
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--community-ocean)));
    --gradient-card: linear-gradient(180deg, hsl(var(--card)), hsl(var(--accent)));
    --shadow-card: 0 4px 20px -2px hsl(var(--primary) / 0.1);
    --shadow-hover: 0 8px 30px -4px hsl(var(--primary) / 0.15);
    --radius: 0.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background-color: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

.logo-text p {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: hsl(var(--primary-foreground));
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .highlight {
    display: block;
    color: hsl(var(--community-warm));
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(8px);
}

.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-hero-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-hero-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    opacity: 0.9;
}

/* Directory Section */
.directory {
    padding: 4rem 1rem;
}

.directory-header {
    text-align: center;
    margin-bottom: 3rem;
}

.directory h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.directory p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.search-input, .category-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.results-count {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.org-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.org-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--accent) / 0.2);
    border-radius: calc(var(--radius) + 2px);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

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

.org-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.org-icon {
    padding: 0.75rem;
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: var(--radius);
    flex-shrink: 0;
}

.org-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: hsl(var(--card-foreground));
}

.org-category {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

.org-description {
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.org-address {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.org-phone {
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: hsl(var(--muted-foreground));
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.icon-lg {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-filters {
        flex-direction: row;
    }

    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero h2 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .org-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Post Styles */
.blog-post-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-button:hover {
    color: hsl(var(--primary));
}

.blog-header {
    margin-bottom: 3rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.blog-featured-image {
    margin-bottom: 3rem;
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    background-color: hsl(var(--muted));
    aspect-ratio: 16 / 9;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
}

.blog-content {
    line-height: 1.8;
    color: hsl(var(--foreground));
}

.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid hsl(var(--primary));
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    font-size: 1.125rem;
}

.blog-author {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    gap: 1rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.author-bio {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .blog-title {
        font-size: 3rem;
    }
}

/* Blog Listing Styles */
.blog-listing-header {
    background: var(--gradient-hero);
    color: hsl(var(--primary-foreground));
    padding: 4rem 1rem 3rem;
    text-align: center;
}

.blog-listing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-listing-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.blog-listing-section {
    padding: 4rem 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.blog-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

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

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: hsl(var(--muted));
    overflow: hidden;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-read-more {
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .blog-listing-header h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
