/* Design System Variables */
:root {
    /* Colors - HSL Format */
    --background: 220 20% 98%;
    --foreground: 225 25% 15%;
    --card: 0 0% 100%;
    --card-foreground: 225 25% 15%;
    --primary: 217 91% 60%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 217 91% 70%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 225 25% 15%;
    --muted: 210 40% 96%;
    --muted-foreground: 225 15% 55%;
    --accent: 262 83% 58%;
    --accent-foreground: 0 0% 100%;
    --success: 142 76% 36%;
    --success-foreground: 0 0% 100%;
    --warning: 38 92% 50%;
    --warning-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 217 91% 60%;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    --gradient-accent: linear-gradient(135deg, hsl(var(--accent)), hsl(262 83% 68%));
    --gradient-bg: linear-gradient(135deg, hsl(220 20% 98%), hsl(210 40% 98%));

    /* Shadows */
    --shadow-soft: 0 4px 20px hsl(var(--primary) / 0.1);
    --shadow-medium: 0 8px 30px hsl(var(--primary) / 0.15);
    --shadow-strong: 0 12px 40px hsl(var(--primary) / 0.2);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius: 0.75rem;
}

/* Dark Mode Variables */
body.dark {
    --background: 225 25% 8%;
    --foreground: 220 20% 95%;
    --card: 225 25% 10%;
    --card-foreground: 220 20% 95%;
    --primary: 217 91% 65%;
    --primary-foreground: 225 25% 8%;
    --primary-glow: 217 91% 75%;
    --secondary: 225 15% 15%;
    --secondary-foreground: 220 20% 95%;
    --muted: 225 15% 15%;
    --muted-foreground: 220 10% 65%;
    --accent: 262 83% 65%;
    --accent-foreground: 225 25% 8%;
    --success: 142 76% 45%;
    --success-foreground: 225 25% 8%;
    --border: 225 15% 20%;
    --input: 225 15% 20%;

    /* Dark Mode Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
    --gradient-accent: linear-gradient(135deg, hsl(var(--accent)), hsl(262 83% 75%));
    --gradient-bg: linear-gradient(135deg, hsl(225 25% 8%), hsl(225 20% 12%));
    --shadow-soft: 0 4px 20px hsl(0 0% 0% / 0.3);
    --shadow-medium: 0 8px 30px hsl(0 0% 0% / 0.4);
    --shadow-strong: 0 12px 40px hsl(0 0% 0% / 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-bg);
    color: hsl(var(--foreground));
    min-height: 100vh;
    transition: var(--transition-smooth);
    line-height: 1.6;
}

/* Dark Mode Toggle */
#darkModeToggle {
    position: fixed;
    bottom: 4.5rem;
    right: 1.5rem;
    z-index: 50;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
}

.dark-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: hsl(var(--card) / 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    z-index: 100;
    /* padding: 1rem 0; */
    transition: var(--transition-smooth);
}

nav {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 2px);
}

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

#mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background-color: #fff;
}

#mobile-menu.active {
    display: flex;
}


.nav-links a.active {
    background: hsl(var(--primary));
    color: white !important;
}

/* .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--foreground));
} */

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
}

/* Page Content */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 3rem;
    min-height: 100vh;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
    text-align: center;
}

.page-section {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid hsl(var(--border));
}

.page-section h2 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Lists inside informational sections */
.page-section ul,
.page-section ol {
    margin: 0 0 1rem 1.25rem;
    color: hsl(var(--muted-foreground));
}

.page-section li {
    margin-bottom: 0.5rem;
}

.page-section li::marker {
    color: hsl(var(--muted-foreground));
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

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

.submit-btn {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    justify-self: center;
}

.submit-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover no-repeat;
    padding: 5rem 1rem 8rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: center center;
        filter: brightness(0.7);
    }

    50% {
        background-position: center top;
        filter: brightness(0.8);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-accent {
    color: hsl(var(--primary-glow));
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    background-color: #007bff;
    /* A strong blue, change if needed */
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    /* Glowing effect */
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


/* Search Section */
.search-section {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.search-container {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid hsl(var(--border));
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
    font-weight: 500;
}

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

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.stat-card {
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid hsl(var(--border));
    text-align: center;
}

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

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

.stat-primary {
    color: hsl(var(--primary));
}

.stat-accent {
    color: hsl(var(--accent));
}

.stat-success {
    color: hsl(var(--success));
}

/* Services Section */
.services-section {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.services-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Service Card */
.service-card {
    /* background: hsl(var(--card)); */
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid hsl(var(--border));
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
    z-index: 1;
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    /* background: hsl(0deg 25.92% 77.88%) !important; */
    will-change: transform;
    transform: translateZ(0);

}

.service-card.dropdown-open {
    z-index: 1000 !important;
    position: relative;
}


@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    z-index: 2;
    animation-play-state: paused;
}

.service-card.completed {
    border-color: hsl(var(--success));
    background: hsl(var(--success) / 0.05);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border-radius: calc(var(--radius) - 2px);
    color: hsl(var(--primary));
}

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

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

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.category-badge, .difficulty-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-badge {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
}

.service-actions {
    display: flex;
    gap: 0.5rem;
    min-height: 48px;
    align-items: stretch;
}

.service-btn {
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary));
    color: white;
    flex: 1;
    min-height: 48px;
    white-space: nowrap;
}

.service-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

/* Provider Dropdown */
.provider-dropdown {
    position: relative;
    width: 100%;
    /* CRITICAL: Ensure container doesn't clip dropdown */
    z-index: 10;
    min-width: 120px;
}

.dropdown-btn {
    width: 100%;
    min-height: 40px;
    /* Decreased height */
    padding: 0.5rem 0.75rem;
    /* Decreased padding */
    background: hsl(var(--primary));
    color: white;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    /* Smaller font */
}

.dropdown-btn:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    box-shadow: 0 20px 60px hsl(var(--primary) / 0.2), 0 8px 30px hsl(0 0% 0% / 0.15);
    /* CRITICAL: Super high z-index to ensure visibility above everything */
    z-index: 10000 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* CRITICAL: Create new stacking context to prevent clipping */
    isolation: isolate;
    /* CRITICAL: Prevent parent overflow from hiding dropdown */
    contain: layout style;
}

.dropdown-menu.show {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
    /* Smooth scrollbar */
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--muted)) transparent;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: hsl(var(--muted));
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground));
}


.dropdown-search {
    position: sticky;
    top: 0;
    background: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    padding: 0.75rem;
    z-index: 1002;
}

.dropdown-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 4px);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.dropdown-search input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    border-bottom: 1px solid hsl(var(--border));
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

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

.dropdown-item:hover {
    background: hsl(var(--muted));
}

.dropdown-item.hidden {
    display: none;
}

.no-providers-found {
    padding: 1rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    background: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
}

.clear-filters-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

/* Tips Section */
.tips-section {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.tips-card {
    background: hsl(var(--primary) / 0.05);
    border: 1px solid hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    padding: 2rem;
}

.tips-title {
    color: hsl(var(--primary));
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
}

.toast {
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-medium);
    animation: slideInRight 0.3s ease-out;
}

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

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1150px) {
     .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: hsl(var(--card));
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        border-top: 1px solid hsl(var(--border));
        gap: 14px;
    }


    .nav-links.show {
        display: flex;
    }

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

    .page-content {
        padding: 3rem 1rem 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 1rem 5rem;
        /* margin-top: 4rem; */
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .service-footer {
        flex-direction: column;
        align-items: flex-start;
    }

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


/* ====== How-to-Use Page Styles ====== */

/* Hero subtitle style reused in this page */
.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Steps section */
.steps-section {
    margin-bottom: 3rem;
}

.steps-section h2 {
    text-align: center;
    font-size: 2rem;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

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

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

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

.step-card p {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* Tips list */
.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.checkmark {
    color: hsl(var(--success));
    font-weight: bold;
    margin-top: 0.125rem;
}

/* FAQ section */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: hsl(var(--foreground));
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}

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

.faq-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
}

/* Reuse fadeInUp for hero-content */
.hero-content {
    animation: fadeInUp 0.6s ease-out both;
}

/* Navigation offset fix: push page down on how-to-use page */
body {
    padding-top: 4rem;
    /* height of navigation */
}




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

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

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-btn {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-btn:hover,
.category-btn.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.category-badge.moving-tips {
    background: hsl(#DBEAFE);
    color: hsl(#1E40AF);
}

.category-badge.government {
    background: hsl(#DCFCE7);
    color: hsl(#166534);
}

.category-badge.utilities {
    background: hsl(#FEF3C7);
    color: hsl(#92400E);
}

.category-badge.finance {
    background: hsl(#E0E7FF);
    color: hsl(#3730A3);
}

.category-badge.healthcare {
    background: hsl(#FCE7F3);
    color: hsl(#BE185D);
}

.category-badge.pets {
    background: hsl(#F3E8FF);
    color: hsl(#7C3AED);
}

.read-time {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

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

.blog-title:hover {
    color: hsl(var(--primary));
}

.blog-excerpt {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.5;
}

.blog-footer {
    border-top: 1px solid hsl(var(--border));
    padding-top: 1rem;
}

.author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
}

/* Utility to hide filtered posts */
.hidden-post {
    display: none !important;
}


/* Blog Post Styles */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    margin-top: 80px;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #0243cd;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-category {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1f2937;
}

.blog-info {
    display: flex;
    gap: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.author-info,
.publish-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #374151;
}

.blog-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #374151;
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #374151;
}

.cta-box {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.cta-box h3 {
    margin-bottom: 1rem;
    color: white !important;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.related-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.read-more:hover {
    color: #2563eb;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Link Styles */
.blog-card {
  background-color: var(--card-bg, #fff);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 2rem;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.category-badge {
  background-color: #e0f3ff;
  color: #007acc;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.blog-title {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  line-height: 1.4;
  color: #4ea5ff;
}

.blog-link {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: #007acc;
  text-decoration: none; /* keep underline removed on hover */
}

.blog-excerpt {
  color: #444;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.blog-footer {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #777;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info span {
  margin-right: 1rem;
}
body.dark .blog-card {
  background-color: hsl(225 20% 12%);
  color: #ddd;
}

body.dark .blog-link {
  color: #ccc;
  text-decoration: none;
}

body.dark .blog-link:hover {
  color: #4ea5ff;
  text-decoration: none;
}

body.dark .blog-excerpt {
  color: rgb(150, 149, 149);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Global link styling (applies to policy / terms pages) */
a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus-visible {
/*     color: white !important; */
    text-decoration-color: hsl(var(--primary-glow));
}

/* Inside informational cards keep consistent */
.page-section a {
    font-weight: 500;
}

/* body.dark a {
    color: hsl(var(--primary));
} */

body.dark a:hover, body.dark a:focus-visible {
      color: hsl(0deg 0% 100%);
}

body.dark .nav-logo:hover,
body.dark .nav-logo:focus-visible {
    color: hsl(var(--primary)) !important;
}

