/* 
Theme Name: Jononetri Political Portfolio
Theme URI: https://example.com
Author: Jononetri Team
Description: Ultra-fast, secure, CPT-first political & portfolio theme in Bangla.
Version: 2.0.0
Text Domain: jononetri
Requires at least: 6.2
Requires PHP: 7.4
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-blue: #3b82f6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-dark);
    min-height: 100vh;
}

/* Global Link Hover Reset - Remove Underline */
a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

/* ==========================================================================
   Modern Ultra-Sleek Glassmorphic Footer Styles
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #0b0f19 0%, #050811 100%);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 30px;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-col a:hover,
.footer-col a:focus {
    color: #10b981 !important;
    text-decoration: none !important;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: var(--text-muted);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: #10b981 !important;
    transform: translateX(4px);
    text-decoration: none !important;
}

.footer-menu a::before {
    content: '›';
    color: #10b981;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-social a:hover {
    background: #10b981;
    color: #ffffff !important;
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
    text-decoration: none !important;
}

.footer-newsletter-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.footer-newsletter-box input[type="email"] {
    width: 100%;
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
    transition: var(--transition);
}

.footer-newsletter-box input[type="email"]:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none !important;
}

.footer-bottom a:hover {
    color: #10b981 !important;
    text-decoration: none !important;
}

.back-to-top-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
}

.back-to-top-btn:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    text-decoration: none !important;
}



/* Container & Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section.alt {
    background: rgba(15, 23, 42, 0.6);
}

.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-head h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Topbar Header */
.topbar {
    background: #090d16;
    color: var(--text-muted);
    padding: 10px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.motto {
    font-weight: 500;
    color: #10b981;
}

.social {
    display: flex;
    gap: 16px;
}

.social a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.social a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Navigation Drawer - Dark Color with Glossy Gradient */
.nav {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(11, 15, 25, 0.96) 50%, rgba(15, 23, 42, 0.90) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.nav.scrolled {
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
}

.brand a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.menu a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
    position: relative;
    border: 1px solid transparent;
}

.menu a:hover,
.menu .current-menu-item>a {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

/* Global Glossy Buttons & Interactive Controls */
.btn,
button.btn,
a.btn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 20px -4px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 25px -4px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary,
.btn-outline {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
    border-color: rgba(16, 185, 129, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px -4px rgba(16, 185, 129, 0.3);
}


.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15), transparent 70%), var(--bg-dark);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stat Cards Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Interactive Filter Tabs */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Standard & Glass Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Status Pill Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-ongoing {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-upcoming {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-resolved {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Progress Bar */
.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 12px 0 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

/* Myth vs Truth Split Comparison */
.myth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.myth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(12px);
}

.myth-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--accent-red);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.myth-box h4 {
    color: #fca5a5;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.truth-box {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--accent-green);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.truth-box h4 {
    color: #6ee7b7;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modal Dialog System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Footer */
.footer {
    background: #090d16;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
    color: var(--text-muted);
    margin-top: 80px;
}

.footer h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
}

/* Helper Utilities */
.text-green {
    color: #10b981;
}

.text-blue {
    color: #3b82f6;
}

.text-red {
    color: #ef4444;
}

.text-amber {
    color: #f59e0b;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Rules */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .menu.open {
        display: flex;
    }
}

/* Print Styles */
@media print {

    .topbar,
    .nav,
    .footer,
    .btn,
    .social {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #1b5e20;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Page Header with Gradient */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease-out;
}

.page-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out;
}

/* Advanced Filter System */
.filter-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 80px;
    z-index: 100;
    animation: fadeIn 0.6s ease-out;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.filter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.clear-filters {
    padding: 0.5rem 1rem;
    background: var(--light);
    color: var(--gray);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.clear-filters:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.filter-count {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modern Tab Design */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label::after {
    content: ':';
}

.tab {
    padding: 0.6rem 1.2rem;
    background: white;
    color: var(--gray);
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
    animation: pulse 0.5s ease-out;
}

.tab.active::before {
    width: 100%;
    height: 100%;
}

.tab-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Advanced Multi-Select Filter */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-select {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.filter-select.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-xl);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.filter-dropdown-menu.show {
    display: block;
}

.filter-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-option:hover {
    background: var(--light);
}

.filter-option.selected {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Sort Options */
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover {
    border-color: var(--primary);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

/* Search within results */
.search-filter {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-filter input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-filter input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.search-filter svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray);
}

/* Active Filters Display */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-md);
    min-height: 50px;
    align-items: center;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

/* Enhanced Grid Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    animation: staggerIn 0.8s ease-out;
}

/* Ultra Modern Card Design */
.modern-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.modern-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.modern-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-meta svg {
    width: 16px;
    height: 16px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: var(--gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tag {
    padding: 0.25rem 0.5rem;
    background: var(--light);
    color: var(--gray);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.card-tag:hover {
    background: var(--primary);
    color: white;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.card-action:hover {
    gap: 0.75rem;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.no-results svg {
    width: 100px;
    height: 100px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Pagination Enhanced */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    color: var(--gray);
    background: white;
    border-color: #e0e0e0;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

.pagination .dots {
    color: var(--gray);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.view-btn:hover {
    background: var(--light);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.view-btn svg {
    width: 20px;
    height: 20px;
}

/* List View */
.list-view .grid {
    grid-template-columns: 1fr;
}

.list-view .modern-card {
    display: flex;
    flex-direction: row;
}

.list-view .card-image {
    width: 250px;
    padding-top: 0;
    height: 180px;
}

.list-view .card-content {
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes staggerIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.grid>* {
    animation: fadeInUp 0.6s ease-out backwards;
}

.grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

.grid>*:nth-child(5) {
    animation-delay: 0.5s;
}

.grid>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filter-wrapper {
        position: static;
        padding: 1rem;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        min-width: auto;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .list-view .modern-card {
        flex-direction: column;
    }

    .list-view .card-image {
        width: 100%;
        height: 200px;
    }

    .view-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 0 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }

    .filter-wrapper {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* Print Styles */
@media print {

    .filter-wrapper,
    .pagination,
    .view-toggle {
        display: none;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #f8f9fa;
        --light: #2c3e50;
        --white: #1a1a1a;
        --gray: #a0a0a0;
    }

    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
        color: #f8f9fa;
    }

    .modern-card,
    .filter-wrapper,
    .pagination {
        background: #2c3e50;
        color: #f8f9fa;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Header Styles (kept from original) */
.topbar {
    background: var(--dark);
    color: white;
    padding: 10px 0;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.motto {
    font-weight: bold;
}

.social a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

.social a:hover {
    text-decoration: underline;
}

/* Navigation Styles - Dark Glossy Gradient in Normal Situation */
.nav {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 15, 25, 0.98) 50%, rgba(15, 23, 42, 0.95) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


/* Page Hero Section for Archive Pages */
.page-hero {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    padding: 6rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Modern Search Section */
.search-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: -2rem auto 3rem;
    max-width: 800px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #1b5e20;
    background: white;
    box-shadow: 0 0 0 4px rgba(27, 125, 50, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #6c757d;
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1b5e20, #2e7d32);
    border-radius: 2px;
}

/* Enhanced Card Grid */
.card-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

.card-grid.two-columns {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

.card-grid.three-columns {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Project Card Styles */
.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.24);
}

.project-card.horizontal {
    flex-direction: row;
    height: 220px;
}

.project-card .card-image {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
}

.project-card.horizontal .card-image {
    width: 40%;
    min-width: 250px;
}

.project-card:not(.horizontal) .card-image {
    height: 200px;
}

.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.project-card .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.badge-completed {
    background: #10b981;
    color: white;
}

.badge-ongoing {
    background: #f59e0b;
    color: white;
}

.badge-upcoming {
    background: #6366f1;
    color: white;
}

.project-card .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card .card-title a:hover {
    color: #1b5e20;
}

.project-card .card-description {
    color: #6c757d;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

.project-card .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

/* Progress Bar for Projects */
.progress-wrapper {
    margin-top: auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.progress-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1b5e20, #2e7d32);
    border-radius: 50px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-badge {
    padding: 0.375rem 0.75rem;
    background: #e8f5e9;
    color: #1b5e20;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #9ca3af;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Enhanced Tabs (keeping your style but improving) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    align-items: center;
}

.tab {
    padding: 0.6rem 1.2rem;
    background: white;
    color: #6c757d;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.tab:hover {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.15);
}

.tab.active {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    border-color: #1b5e20;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

/* New Animation for Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card,
.project-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero .subtitle {
        font-size: 1rem;
    }

    .search-section {
        margin: -1rem 1rem 2rem;
        padding: 1.5rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.875rem 3rem 0.875rem 3rem;
    }

    .search-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .card-grid.two-columns,
    .card-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .project-card.horizontal {
        flex-direction: column;
        height: auto;
    }

    .project-card.horizontal .card-image {
        width: 100%;
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-row {
        flex-wrap: wrap;
    }
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #1b5e20;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   MODERN CATEGORY TABS & PROJECT CARDS
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 5rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(35deg);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Category Tabs Wrapper */
.category-tabs-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.tabs-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.tabs-count {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Tab Hover Effect */
.tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transition: width 0.3s ease;
    z-index: -1;
}

.tab-item:hover {
    color: #1b5e20;
    background: #e8f5e9;
    border-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 94, 32, 0.2);
}

.tab-item:hover .tab-badge {
    background: #1b5e20;
    color: white;
}

/* Active Tab */
.tab-item.active {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    border-color: #1b5e20;
    box-shadow: 0 5px 20px rgba(27, 94, 32, 0.3);
    transform: scale(1.05);
}

.tab-item.active::before {
    width: 100%;
}

.tab-item.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Tab Badge */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 0.25rem 0.5rem;
    background: #e0e0e0;
    color: #555;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Image */
.project-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.status-badge.ongoing {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.status-badge.upcoming {
    background: rgba(99, 102, 241, 0.9);
    color: white;
}

/* Card Body */
.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card:hover .card-title {
    color: #1b5e20;
}

/* Card Meta */
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #777;
    font-size: 0.9rem;
}

.meta-icon {
    font-size: 1rem;
}

/* Card Description */
.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.project-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.budget-tag,
.date-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #e8f5e9;
    color: #1b5e20;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.date-tag {
    background: #f3f4f6;
    color: #666;
}

/* No Projects */
.no-projects {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-projects-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-projects h3 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.no-projects p {
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }

    .category-tabs-wrapper {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .tab-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Animation on page load */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-tabs-wrapper {
    animation: slideUp 0.6s ease-out;
}

.project-card {
    animation: slideUp 0.8s ease-out backwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
}


/* ============================================
   ULTRA-MODERN ARCHIVE PAGE IMPROVEMENTS
   ============================================ */

/* CSS Variables for Modern Design */
:root {
    --primary-gradient: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    --hover-gradient: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 60px rgba(27, 94, 32, 0.15);
    --border-radius-xl: 20px;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Page Hero with Parallax Effect */
.archive-hero {
    background: var(--primary-gradient);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.archive-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: backgroundMove 30s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

.archive-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.archive-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    animation: heroTitleReveal 1s ease-out;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.archive-hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    animation: heroSubtitleReveal 1s ease-out 0.3s both;
    line-height: 1.6;
}

@keyframes heroSubtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Floating Stats Cards */
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    animation: statFloat 3s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

@keyframes statFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Category Navigation */
.category-nav {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin: -3rem auto 3rem;
    max-width: 1200px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 10;
}

.category-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Modern Tab Pills */
.tab-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 15px;
}

.tab-pill {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #666;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--animation-timing);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.tab-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pill:hover {
    transform: translateY(-2px);
    color: #1b5e20;
}

.tab-pill.active {
    background: white;
    color: #1b5e20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-pill.active::before {
    opacity: 0.1;
}

.tab-count {
    background: rgba(27, 94, 32, 0.1);
    color: #1b5e20;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tab-pill.active .tab-count {
    background: #1b5e20;
    color: white;
}

/* Ultra-Modern Card Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Enhanced Project Card */
.archive-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    position: relative;
    transition: all 0.4s var(--animation-timing);
    cursor: pointer;
    animation: cardReveal 0.8s ease-out backwards;
}

.archive-card:nth-child(1) {
    animation-delay: 0.1s;
}

.archive-card:nth-child(2) {
    animation-delay: 0.2s;
}

.archive-card:nth-child(3) {
    animation-delay: 0.3s;
}

.archive-card:nth-child(4) {
    animation-delay: 0.4s;
}

.archive-card:nth-child(5) {
    animation-delay: 0.5s;
}

.archive-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.archive-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

/* Card Image with Overlay Effect */
.card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--animation-timing);
}

.archive-card:hover .card-media img {
    transform: scale(1.1) rotate(2deg);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.archive-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.archive-card:hover .overlay-content {
    transform: translateY(0);
}

/* Floating Badge */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-info {
    background: #3b82f6;
    color: white;
}

/* Card Content */
.card-body {
    padding: 1.75rem;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1b5e20;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta Info */
.card-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.meta-icon {
    width: 20px;
    height: 20px;
    color: #1b5e20;
}

/* Card Action Button */
.card-action {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

/* Enhanced Pagination */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 4rem 0;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--card-shadow);
}

.page-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3);
}

.page-link.active {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

/* Loading Skeleton */
.skeleton-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.skeleton-media {
    height: 240px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* No Results State */
.no-results-container {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--card-shadow);
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.no-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.no-results-text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-nav {
        margin: -2rem 1rem 2rem;
        padding: 1.5rem;
    }

    .tab-pills {
        gap: 0.5rem;
    }

    .tab-pill {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .archive-hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .archive-card {
        background: #2a2a2a;
    }

    .card-title {
        color: #f0f0f0;
    }

    .card-excerpt {
        color: #b0b0b0;
    }

    .category-nav {
        background: #2a2a2a;
    }

    .tab-pills {
        background: #1a1a1a;
    }
}

/* ==========================================================================
   Mobile-First Touch & Quick Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-nav-item {
    background: transparent;
    border: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    gap: 2px;
    padding: 6px 12px;
    cursor: pointer;
    min-width: 60px;
    min-height: 48px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active,
.mobile-nav-item:hover {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
}

.mobile-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-nav-label {
    font-weight: 500;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 64px;
        /* Ensure content isn't covered by bottom nav on mobile */
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .container {
        padding: 0 16px;
    }

    .btn,
    button,
    a {
        min-height: 44px;
        /* Touch target minimum for mobile usability */
    }

    .grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Fast Rendering optimization for below-the-fold content */
.section.alt {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* ==========================================================================
   🇧🇩 Bangladesh National Flag Aesthetic & 3D Glossy Components
   ========================================================================== */
.btn,
.btn-3d,
.btn-glossy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff !important;
    background: linear-gradient(180deg, #059669 0%, #006a4e 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 0 #004d38, 0 8px 20px rgba(0, 106, 78, 0.35);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.btn::before,
.btn-3d::before,
.btn-glossy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn:hover::before,
.btn-3d:hover::before,
.btn-glossy:hover::before {
    left: 140%;
}

.btn:hover,
.btn-3d:hover,
.btn-glossy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #004d38, 0 12px 25px rgba(0, 106, 78, 0.45);
    background: linear-gradient(180deg, #10b981 0%, #006a4e 100%);
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn:active,
.btn-3d:active,
.btn-glossy:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #004d38, 0 4px 10px rgba(0, 106, 78, 0.25);
}

/* 3D Glossy National Red Sun Button */
.btn-bd-red,
.btn-red,
.btn-secondary {
    background: linear-gradient(180deg, #f42a41 0%, #c81e33 100%) !important;
    box-shadow: 0 4px 0 #9e1424, 0 8px 20px rgba(244, 42, 65, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.btn-bd-red:hover,
.btn-red:hover,
.btn-secondary:hover {
    background: linear-gradient(180deg, #ff4d63 0%, #c81e33 100%) !important;
    box-shadow: 0 6px 0 #9e1424, 0 12px 25px rgba(244, 42, 65, 0.45) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-bd-red:active,
.btn-red:active,
.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #9e1424, 0 4px 10px rgba(244, 42, 65, 0.25) !important;
}

/* 3D Glossy Golden Harvest Button */
.btn-bd-gold,
.btn-gold {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 0 #b45309, 0 8px 20px rgba(245, 158, 11, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.btn-bd-gold:hover,
.btn-gold:hover {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
    box-shadow: 0 6px 0 #b45309, 0 12px 25px rgba(245, 158, 11, 0.45) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* National Flag Color Badges */
.badge-bd-green {
    background: rgba(0, 106, 78, 0.12);
    color: #006a4e;
    border: 1px solid rgba(0, 106, 78, 0.25);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
}

.badge-bd-red {
    background: rgba(244, 42, 65, 0.12);
    color: #f42a41;
    border: 1px solid rgba(244, 42, 65, 0.25);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
}

.badge-bd-gold {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
}

.badge-bd-navy {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.2);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
}