/* ========= PROJECTS PAGE GREEN BLEND ========= */

:root {
    /* Main Green Palette */
    --primary: #15803d;      /* Deep Forest */
    --secondary: #10b981;    /* Vibrant Emerald */
    --accent-light: #f0fdf4; /* Mint/Sage Background */
    
    /* Neutrals */
    --dark-slate: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
      padding: 60px 20px;
}

/* Hero Section */
.projects-hero {
    text-align: center;
   margin-bottom: 50px;
}


/* The "Projects" Badge */
.badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light); /* Mint background */
    color: var(--primary);           /* Deep Green text */
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #bbf7d0;       /* Subtle green border */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-slate);
    margin: 0 0 15px 0;
}

.hero-text {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- ANIMATED HIGHLIGHT --- */
/* (Added this to match Home, Staff, and Admin pages) */
.projects-hero .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.projects-hero .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 4px;
    background: var(--secondary); /* Vibrant Emerald Line */
    border-radius: 2px;
    width: 0;
    animation: loadLine 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes loadLine {
    0% { width: 0; opacity: 0; }
    100% { width: 100%; opacity: 1; }
}

/* Controls (Search & Sort) */
.controls-container {
    margin-bottom: 40px;
}

.search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* Search Focus: Emerald Glow */
.search-input-wrapper input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); /* Green Glow */
    outline: none;
}

.sort-dropdown {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--dark-slate);
    font-weight: 500;
    cursor: pointer;
    transition: border 0.3s;
}

.sort-dropdown:hover {
    border-color: var(--secondary);
}

.view-toggle {
    display: flex;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Active View Button (Grid/List) */
.view-btn.active {
    background: var(--accent-light); /* Mint bg */
    color: var(--primary);           /* Forest text */
    font-weight: 700;
}

/* Category Filter Chips */
.filter-group {
    margin-bottom: 30px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--secondary);
    color: var(--primary);
}

/* Active Filter Chip */
.chip.active {
    background: var(--primary); /* Solid Forest Green */
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.25);
}

.chip .count {
    margin-left: 6px;
    opacity: 0.8;
}

/* Empty State Styling */
.results-count {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.empty-state {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.empty-icon-box {
    width: 64px;
    height: 64px;
    background: var(--accent-light); /* Changed to Mint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-icon-box i {
    font-size: 1.5rem;
    color: var(--secondary); /* Changed to Emerald */
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark-slate);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS (The missing part)
   ============================================================ */

@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }

    .projects-hero h1 {
        font-size: 2.2rem; /* Shrink title for mobile */
    }

    .search-row {
        flex-direction: column; /* Stack search, sort, and toggle */
        align-items: stretch;
        gap: 15px;
    }

    .sort-dropdown, .view-toggle {
        width: 100%; /* Make dropdowns full width on mobile */
        justify-content: center;
    }

    .category-chips {
        gap: 8px;
    }

    .chip {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .projects-hero h1 {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 1rem;
    }
    
    .view-toggle {
        display: none; /* Often hidden on very small screens to save space */
    }
}