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

:root {
    /* Colors matching shadcn/ui theme */
    --primary: 160 84% 39%;
    --primary-foreground: 0 0% 100%;
    --accent: 160 60% 45%;
    --muted: 220 13% 91%;
    --muted-foreground: 220 9% 46%;
    --card: 0 0% 100%;
    --foreground: 222 47% 11%;
    --background: 0 0% 100%;
    --border: 220 13% 91%;
    --success: 142 71% 45%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
}

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

/* Gradients */
.text-gradient {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-orange {
    background: linear-gradient(to right, #B8865C, #D4A574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-hero {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
}

.gradient-orange-red {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
}

.gradient-purple-pink {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

.gradient-green-teal {
    background: linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    text-decoration: none;
}

.logo-icon {
    display: flex;
    height: 36px;
    width: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
}

.logo-text {
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

.nav-menu-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nav-menu-desktop {
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.nav-actions {
    display: none;
}

@media (min-width: 1024px) {
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: hsl(var(--foreground));
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    opacity: 0.9;
}

.see-all-section {
    text-align: center;
    padding: 60px 0;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.see-all-btn i {
    font-size: 1.125rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.9375rem;
}

@media (min-width: 640px) {
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    border-top: 1px solid hsl(var(--border));
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.mobile-menu-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid hsl(var(--border));
    margin-top: 8px;
}

.mobile-menu-actions .btn-outline,
.mobile-menu-actions .btn-primary {
    flex: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--accent) / 0.05) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, hsl(var(--border)) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.05;
}

.hero-container {
    position: relative;
    padding: 64px 0;
}

@media (min-width: 768px) {
    .hero-container {
        padding: 96px 0;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        padding: 128px 0;
    }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    margin-bottom: 24px;
}

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

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

.hero-subtitle {
    margin: 24px auto;
    font-size: 1.125rem;
    line-height: 1.75;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .hero-actions {
        gap: 24px;
    }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

/* Features */
.features-section {
    padding: 64px 0;
}

@media (min-width: 768px) {
    .features-section {
        padding: 96px 0;
    }
}

.section-header {
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

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

.section-subtitle {
    margin-top: 16px;
    color: hsl(var(--muted-foreground));
}

.features-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

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

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

.feature-card {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
    display: inline-flex;
    height: 48px;
    width: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

/* Articles */
.articles-section {
    padding: 64px 0;
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .articles-section {
        padding: 96px 0;
    }
}

.articles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.view-all-link {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    text-decoration: none;
}

@media (min-width: 640px) {
    .view-all-link {
        display: flex;
    }
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .featured-article {
        grid-template-columns: 1.2fr 1fr;
    }
}

.featured-article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.featured-article .article-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .featured-article .article-image {
        height: 100%;
    }
}

.featured-article .article-content {
    padding: 36px;
}

.articles-grid {
    display: grid;
    gap: 24px;
}

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

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

.article-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-card .article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.article-content {
    padding: 24px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: lowercase;
}

.article-category::first-letter {
    text-transform: uppercase;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: hsl(var(--foreground));
    margin-bottom: 12px;
}

.article-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 12px;
}

.read-more {
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* About */
.about-section {
    padding: 64px 0;
}

@media (min-width: 768px) {
    .about-section {
        padding: 96px 0;
    }
}

.about-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

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

.about-text {
    margin-top: 16px;
    color: hsl(var(--muted-foreground));
}

.about-list {
    margin: 24px 0px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    display: flex;
    height: 20px;
    width: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--success) / 0.2);
    color: hsl(var(--success));
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(to bottom right, hsl(var(--primary) / 0.2), hsl(var(--accent) / 0.1));
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-rating-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: hsl(var(--card));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.rating-icon {
    display: flex;
    height: 48px;
    width: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--success) / 0.2);
    color: hsl(var(--success));
}

.rating-score {
    font-weight: 700;
    color: hsl(var(--foreground));
}

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

/* Testimonials */
.testimonials-section {
    padding: 64px 0;
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 96px 0;
    }
}

.testimonials-grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}

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

.testimonial-card {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    color: hsl(var(--foreground));
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.author-name {
    font-weight: 500;
    color: hsl(var(--foreground));
}

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

/* Newsletter */
.newsletter-section {
    padding: 30px 0;
}

@media (min-width: 768px) {
    .newsletter-section {
        padding: 30px 0;
    }
}

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

.newsletter-icon {
    display: flex;
    height: 80px;
    width: 80px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    color: white;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.newsletter-input.newsletter-error {
    border-color: #EF4444;
}

.newsletter-error-message {
    font-size: 0.875rem;
    color: #EF4444;
    margin-top: 8px;
    display: none;
}

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

/* Newsletter Toast Notification */
.newsletter-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.newsletter-toast-success {
    border-color: hsl(var(--success));
    background: hsl(var(--success) / 0.1);
}

.newsletter-toast-success i {
    color: hsl(var(--success));
}

.newsletter-toast-success span {
    color: hsl(var(--foreground));
}

.newsletter-toast-error {
    border-color: #EF4444;
    background: #FEE2E2;
}

.newsletter-toast-error i {
    color: #EF4444;
}

.newsletter-toast-error span {
    color: #DC2626;
}

.newsletter-toast-info {
    border-color: hsl(var(--success));
    background: hsl(var(--success) / 0.1);
}

.newsletter-toast-info i {
    color: hsl(var(--success));
}

.newsletter-toast-info span {
    color: hsl(var(--foreground));
}

.newsletter-toast i {
    font-size: 1.25rem;
}

.newsletter-toast span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .footer {
        padding: 64px 0 32px;
    }
}

.footer-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

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

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 450px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .footer-brand {
        grid-column: span 2;
    }
}

.footer-description {
    margin: 16px 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    transition: all 0.2s;
}

.social-links a:hover {
    background: hsl(var(--primary));
    color: white;
}

.footer-title {
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: hsl(var(--primary));
}

.footer-cta {
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(to right, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-cta {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-cta-content {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-cta-content {
        text-align: left;
    }
}

.footer-cta-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.footer-cta-text {
    margin-top: 4px;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright,
.made-with {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.made-with {
    display: flex;
    align-items: center;
    gap: 4px;
}

.made-with i {
    color: hsl(var(--accent));
}

/* Page Hero */
.page-hero {
    padding: 48px 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--accent) / 0.05) 100%);
}

@media (min-width: 768px) {
    .page-hero {
        padding: 80px 0;
    }
}

.page-hero-content {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: hsl(var(--accent) / 0.2);
    color: hsl(var(--accent));
    font-size: 0.875rem;
    font-weight: 500;
}

.page-badge.badge-success {
    background: hsl(var(--success) / 0.2);
    color: hsl(var(--success));
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 16px;
}

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

.page-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
}

/* Filters Section */
.filters-section {
    padding: 24px 0;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .filters-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-btn:hover {
    background: hsl(var(--muted));
}

.category-btn.active {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 0.875rem;
    background: hsl(var(--background));
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Results Section */
.results-section {
    padding: 16px 0 0;
}

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

/* Blog Grid Section */
.blog-grid-section {
    padding: 0 0 48px;
}

.blog-grid a{
    text-decoration: none;
}

@media (min-width: 768px) {
    .blog-grid-section {
        padding: 0 0 64px;
    }
}

.blog-grid {
    display: grid;
    gap: 24px;
}

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

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

.no-results {
    padding: 64px 0;
    text-align: center;
}

.no-results-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.no-results-text {
    margin-top: 8px;
    color: hsl(var(--muted-foreground));
}

/* Safety Topics */
.safety-topics-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .safety-topics-section {
        padding: 64px 0;
    }
}

.safety-topics-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

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

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

.safety-topic-card {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.safety-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.safety-icon {
    display: inline-flex;
    height: 48px;
    width: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
}

.safety-icon i {
    font-size: 1.5rem;
}

.safety-icon.orange {
    background: #FED7AA;
    color: #EA580C;
}

.safety-icon.blue {
    background: #BFDBFE;
    color: #2563EB;
}

.safety-icon.purple {
    background: #E9D5FF;
    color: #9333EA;
}

.safety-icon.pink {
    background: #FBCFE8;
    color: #DB2777;
}

.safety-topic-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.safety-topic-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

/* Checklist Section */
.checklist-section {
    padding: 48px 0;
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .checklist-section {
        padding: 64px 0;
    }
}

.checklist-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

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

.checklist-intro {
    margin-top: 16px;
    color: hsl(var(--muted-foreground));
}

.checklist-items {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checklist-item i {
    margin-top: 2px;
    color: hsl(var(--success));
    font-size: 1.25rem;
    flex-shrink: 0;
}

.checklist-item span {
    color: hsl(var(--foreground));
}

.btn-download {
    margin-top: 32px;
}

.checklist-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}

.checklist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Safety Articles Section */
.safety-articles-section {
    padding: 48px 0;
}

.safety-articles-section a{
    text-decoration: none;
}

@media (min-width: 768px) {
    .safety-articles-section {
        padding: 64px 0;
    }
}

/* Emergency Resources */
.emergency-resources-section {
    padding: 48px 0;
    border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
    .emergency-resources-section {
        padding: 64px 0;
    }
}

.emergency-card {
    padding: 24px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    background: rgba(254, 226, 226, 0.3);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .emergency-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 32px;
    }
}

.emergency-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.emergency-text {
    color: hsl(var(--muted-foreground));
}

.emergency-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 640px) {
    .emergency-actions {
        flex-direction: row;
    }
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: #EF4444;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #DC2626;
}

/* ============================================
   Additional Styles for Parenting & Safety Pages
   ============================================ */

/* Page Hero */
.page-hero {
    padding: 48px 0;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--accent) / 0.05) 100%);
}

@media (min-width: 768px) {
    .page-hero {
        padding: 80px 0;
    }
}

.page-hero-content {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: hsl(var(--accent) / 0.2);
    color: hsl(var(--accent));
    font-size: 0.875rem;
    font-weight: 500;
}

.page-badge i {
    font-size: 1rem;
}

.page-badge.badge-success {
    background: hsl(var(--success) / 0.2);
    color: hsl(var(--success));
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 16px;
    line-height: 1.2;
}

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

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

/* Filters Section */
.filters-section {
    padding: 24px 0;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .filters-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-btn:hover {
    background: hsl(var(--muted));
}

.category-btn.active {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .search-wrapper {
        max-width: 300px;
    }
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 0.875rem;
    background: hsl(var(--background));
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    pointer-events: none;
}

/* Results Section */
.results-section {
    padding: 24px 0 0;
}

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

/* Blog Grid Section */
.blog-grid-section {
    padding: 0 0 48px;
}

@media (min-width: 768px) {
    .blog-grid-section {
        padding: 0 0 64px;
    }
}

.blog-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

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

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

.no-results {
    padding: 64px 0;
    text-align: center;
}

.no-results-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.no-results-text {
    margin-top: 8px;
    color: hsl(var(--muted-foreground));
}

/* Safety Topics Section */
.safety-topics-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .safety-topics-section {
        padding: 64px 0;
    }
}

.safety-topics-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
    grid-template-columns: 1fr;
}

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

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

.safety-topic-card {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.safety-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.safety-icon {
    display: inline-flex;
    height: 48px;
    width: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
}

.safety-icon i {
    font-size: 1.5rem;
}

.safety-icon.orange {
    background: #FED7AA;
    color: #EA580C;
}

.safety-icon.blue {
    background: #BFDBFE;
    color: #2563EB;
}

.safety-icon.purple {
    background: #E9D5FF;
    color: #9333EA;
}

.safety-icon.pink {
    background: #FBCFE8;
    color: #DB2777;
}

.safety-topic-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.safety-topic-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

/* Checklist Section */
.checklist-section {
    padding: 48px 0;
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .checklist-section {
        padding: 64px 0;
    }
}

.checklist-grid {
    display: grid;
    gap: 48px;
    align-items: center;
    grid-template-columns: 1fr;
}

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

.checklist-content {
    order: 1;
}

@media (min-width: 1024px) {
    .checklist-content {
        order: 0;
    }
}

.checklist-intro {
    margin-top: 16px;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.checklist-items {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checklist-item i {
    margin-top: 2px;
    color: hsl(var(--success));
    font-size: 1.25rem;
    flex-shrink: 0;
}

.checklist-item span {
    color: hsl(var(--foreground));
    line-height: 1.5;
}

.btn-download {
    margin-top: 32px;
}

.checklist-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}

.checklist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Safety Articles Section */
.safety-articles-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .safety-articles-section {
        padding: 64px 0;
    }
}

/* Emergency Resources Section */
.emergency-resources-section {
    padding: 48px 0;
    border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
    .emergency-resources-section {
        padding: 64px 0;
    }
}

.emergency-card {
    padding: 24px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    background: rgba(254, 226, 226, 0.3);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .emergency-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 32px;
    }
}

.emergency-content {
    flex: 1;
}

.emergency-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.emergency-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.emergency-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 640px) {
    .emergency-actions {
        flex-direction: row;
    }
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: #EF4444;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-danger:hover {
    background: #DC2626;
}

/* Make sure newsletter section has proper background on these pages */
.newsletter-section {
    background: hsl(var(--muted) / 0.3);
}

/* ============================================
   Search Modal Styles
   ============================================ */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.search-modal.active {
    overflow: hidden;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: hsl(var(--card));
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    margin: 0 16px;
}

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

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}

.search-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.search-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-modal-close:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.search-modal-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-modal-input-wrapper {
    position: relative;
}

.search-modal-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: hsl(var(--background));
    transition: all 0.2s;
}

.search-modal-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.search-modal-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    pointer-events: none;
}

.search-modal-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    padding: 4px;
    display: none;
    transition: color 0.2s;
}

.search-modal-clear:hover {
    color: hsl(var(--foreground));
}

.search-modal-input:not(:placeholder-shown) ~ .search-modal-clear {
    display: block;
}

.search-modal-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-filter-btn {
    padding: 8px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-filter-btn:hover {
    background: hsl(var(--muted));
}

.search-filter-btn.active {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--background));
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
}

.search-result-item:hover {
    background: hsl(var(--muted));
    transform: translateX(2px);
}

.search-result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-category {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    margin-bottom: 4px;
    display: inline-block;
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
}

.search-result-excerpt {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-result-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.no-results-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}

.no-results-message i {
    font-size: 3rem;
    color: hsl(var(--muted-foreground));
}

.no-results-message h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.no-results-message p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   About Page Styles
   ============================================ */

.badge-secondary {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.badge-primary {
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.about-mission-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .about-mission-section {
        padding: 64px 0;
    }
}

.about-mission-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

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

.about-mission-text {
    margin-top: 16px;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

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

.about-stat {
    text-align: center;
}

.about-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.about-stat-label {
    margin-top: 4px;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.about-mission-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}

.about-mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-values-section {
    padding: 48px 0;
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .about-values-section {
        padding: 64px 0;
    }
}

.about-values-grid {
    display: grid;
    gap: 24px;
    margin-top: 48px;
}

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

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

.about-value-card {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.about-team-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .about-team-section {
        padding: 64px 0;
    }
}

.about-team-grid {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

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

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

.team-member {
    text-align: center;
}

.team-member-image {
    width: 128px;
    height: 128px;
    margin: 0 auto 16px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid hsl(var(--primary) / 0.2);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
}

.team-member-role {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--primary));
    margin-bottom: 8px;
}

.team-member-bio {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .contact-section {
        padding: 64px 0;
    }
}

.contact-grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-info-subtitle {
    margin-top: 8px;
    color: hsl(var(--muted-foreground));
}

.contact-info-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
}

.contact-info-icon {
    display: flex;
    height: 48px;
    width: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.contact-info-icon i {
    font-size: 1.5rem;
}

.contact-info-title {
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 2px;
}

.contact-info-description {
    font-size: 1rem;
    color: hsl(var(--primary));
    margin-bottom: 2px;
}

.contact-info-detail {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.contact-form-card {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .contact-form-card {
        padding: 32px;
    }
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.contact-form-subtitle {
    margin-top: 8px;
    color: hsl(var(--muted-foreground));
}

.contact-form {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #EF4444;
}

.form-error {
    font-size: 0.875rem;
    color: #EF4444;
    display: none;
}

.form-error.active {
    display: block;
}

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

.btn-submit {
    width: 100%;
}

@media (min-width: 640px) {
    .btn-submit {
        width: auto;
    }
}

.form-success {
    text-align: center;
    padding: 32px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--success) / 0.2);
}

.success-icon i {
    font-size: 2.5rem;
    color: hsl(var(--success));
}

.success-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 16px;
}

.success-text {
    color: hsl(var(--muted-foreground));
    margin-bottom: 32px;
}

.faq-teaser-section {
    padding: 48px 0;
    background: hsl(var(--muted) / 0.3);
}

@media (min-width: 768px) {
    .faq-teaser-section {
        padding: 64px 0;
    }
}

.faq-teaser-card {
    padding: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    background: hsl(var(--card));
    text-align: center;
}

@media (min-width: 768px) {
    .faq-teaser-card {
        padding: 32px;
    }
}

.faq-teaser-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.faq-teaser-text {
    margin-top: 8px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 24px;
}



/* ============================================
   Blog Post Page Styles
   ============================================ */

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

.blog-post {
    background: hsl(var(--background));
}

.blog-post-hero {
    width: 100%;
    margin: 0 0 32px 0;
    text-align: center;
}

.blog-post-hero img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.blog-post-header {
    padding: 48px 0 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 24px;
    line-height: 1.4;
}

.breadcrumb a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.breadcrumb span {
    display: inline-block;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    .breadcrumb span {
        max-width: none;
        white-space: normal;
    }
}

.breadcrumb a:hover {
    color: hsl(var(--primary));
}

.breadcrumb i {
    font-size: 0.625rem;
    opacity: 0.7;
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.post-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
    margin-bottom: 32px;
}

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

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid hsl(var(--border));
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: white;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .author-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
}

.author-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .author-name {
        font-size: 1rem;
    }
}

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

.post-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
}

@media (min-width: 768px) {
    .post-info {
        font-size: 0.875rem;
    }
}

.post-info i {
    margin-right: 4px;
}

.blog-post-content {
    padding: 48px 0;
}

.blog-post-content .container-narrow {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .blog-post-content .container-narrow {
        grid-template-columns: 1fr 300px;
    }
}

/* Post Content Styles */
.post-content-main {
    max-width: 720px;
}

.post-content-main .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
    margin-bottom: 32px;
}

.post-content-main h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-content-main h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-content-main h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-top: 24px;
    margin-bottom: 8px;
}

.post-content-main p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
    margin-bottom: 20px;
}

.post-content-main ul,
.post-content-main ol {
    margin: 20px 0;
    padding-left: 28px;
}

.post-content-main li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
}

.post-content-main strong {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.post-content-main a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.post-content-main a:hover {
    color: hsl(var(--primary) / 0.8);
}

.post-content-main img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.post-content-main blockquote {
    margin: 32px 0;
    padding: 24px;
    border-left: 4px solid hsl(var(--primary));
    background: hsl(var(--muted) / 0.3);
    border-radius: 0 8px 8px 0;
}

.post-content-main blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 12px;
    color: hsl(var(--foreground));
}

.post-content-main blockquote cite {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    font-style: normal;
}

.post-content-main .info-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin: 32px 0;
    background: #E6F7F5;
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 12px;
}

.info-box-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: white;
    font-size: 1.5rem;
}

.info-box h4 {
    margin-top: 0;
    font-size: 1.125rem;
}

.info-box p {
    margin-bottom: 0;
}

.post-content-main .cta-box {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--accent) / 0.1) 100%);
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.cta-box p {
    margin-bottom: 24px;
}

.post-content-main .cta-box .btn,
.post-content-main .cta-box .btn-primary,
.post-content-main .cta-box a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-content-main .cta-box .btn:hover,
.post-content-main .cta-box .btn-primary:hover,
.post-content-main .cta-box a.btn-primary:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.content-table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.content-table thead {
    background: hsl(var(--muted) / 0.5);
}

.content-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: hsl(var(--foreground));
    border-bottom: 2px solid hsl(var(--border));
}

.content-table td {
    padding: 12px;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.content-table tbody tr:hover {
    background: hsl(var(--muted) / 0.3);
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-card {
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    background: hsl(var(--card));
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 16px;
}

.table-of-contents {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.table-of-contents a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
    padding-left: 12px;
    border-left: 2px solid transparent;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: hsl(var(--primary));
    border-left-color: hsl(var(--primary));
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.pinterest { background: #E60023; }

.sidebar-newsletter {
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--accent) / 0.1) 100%);
    text-align: center;
}

.sidebar-newsletter-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--primary));
    color: white;
    font-size: 1.5rem;
}

.sidebar-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-newsletter-form input {
    padding: 10px 12px;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    font-size: 0.875rem;
}

.sidebar-newsletter-form button {
    width: 100%;
}

/* Tags */
.post-tags-section {
    padding: 32px 0;
    border-top: 1px solid hsl(var(--border));
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-label {
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.post-tag {
    padding: 6px 12px;
    border-radius: 4px;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.post-tag:hover {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

/* Author Bio */
.author-bio-section {
    padding: 48px 0;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.3);
}

.author-bio {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: hsl(var(--card));
    border-radius: 16px;
    border: 1px solid hsl(var(--border));
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
}

.author-bio-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
}

.author-bio-title {
    font-size: 0.9375rem;
    color: hsl(var(--primary));
    margin-bottom: 12px;
}

.author-bio-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
}

.author-bio-social {
    display: flex;
    gap: 12px;
}

.author-bio-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.2s;
}

.author-bio-social a:hover {
    background: hsl(var(--primary));
    color: white;
}

/* Related Posts */
.related-posts-section {
    padding: 48px 0 64px;
}

.related-posts-title {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 32px;
}

.related-posts-grid {
    display: grid;
    gap: 24px;
}

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


.article-link{
    text-decoration: none;
}
/* ===== E-E-A-T: Author bio box (blog posts), founder card (about), author page ===== */

/* Initials avatar used on the About founder card (replaces stock photos) */
.team-member-avatar {
    width: 128px;
    height: 128px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 4px solid hsl(var(--primary) / 0.2);
}

/* Center the single-founder card */
.about-team-single {
    display: flex;
    justify-content: center;
}
.about-team-single .team-member {
    max-width: 560px;
    text-align: center;
}

/* Author bio box injected at the end of every blog post */
.author-bio-section {
    padding: 24px 0 8px;
}
.author-bio-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: hsl(var(--muted) / 0.4);
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    padding: 24px;
}
.author-bio-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}
.author-bio-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2px;
}
.author-bio-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 2px;
}
.author-bio-name a {
    color: hsl(var(--foreground));
    text-decoration: none;
}
.author-bio-name a:hover { text-decoration: underline; }
.author-bio-role {
    font-size: 0.875rem;
    color: hsl(var(--primary));
    font-weight: 600;
    margin: 0 0 8px;
}
.author-bio-text {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
}

/* Author page hero */
.author-hero {
    display: flex;
    align-items: center;
    gap: 28px;
}
.author-hero-avatar {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}
.author-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin: 0 0 4px;
}
.author-hero-tagline {
    color: hsl(var(--muted-foreground));
    margin: 6px 0 0;
    max-width: 640px;
}

@media (max-width: 640px) {
    .author-bio-box { flex-direction: column; gap: 14px; }
    .author-hero { flex-direction: column; text-align: center; gap: 16px; }
}
