
    /* Existing styles from your code plus these popup styles */
            * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #f8fafc;
            padding: 40px 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header */
        .header {
            text-align: center;
            margin-bottom: 40px;
        }

        .header h1 {
            font-size: 2.5rem;
            color: #264653;
            margin-bottom: 10px;
        }

        .header h1 span {
            color: #2a9d8f;
        }

        .header p {
            color: #64748b;
            font-size: 1.1rem;
        }

        /* Cards Grid - 4 cards per row */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        /* Simple Card - Only text */
        .dept-card {
            background: white;
            border-radius: 12px;
            padding: 30px 20px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            display: block;
            border: 1px solid #e2e8f0;
        }

        .dept-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(42, 157, 143, 0.15);
            border-color: #2a9d8f;
        }

        /* Icon */
        .dept-icon {
            width: 60px;
            height: 60px;
            background: #e8f5f3;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            color: #2a9d8f;
            font-size: 1.5rem;
            transition: all 0.3s;
        }

        .dept-card:hover .dept-icon {
            background: #2a9d8f;
            color: white;
        }

        /* Department Name */
        .dept-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: #264653;
            margin-bottom: 5px;
        }

        /* Arrow indicator on hover */
        .arrow {
            color: #2a9d8f;
            font-size: 0.9rem;
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s;
            margin-top: 10px;
        }

        .dept-card:hover .arrow {
            opacity: 1;
            transform: translateX(0);
        }

        /* Filter Bar */
        .filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .filter-tabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .filter-tab {
            padding: 8px 20px;
            border-radius: 30px;
            border: 1px solid #e2e8f0;
            background: white;
            color: #64748b;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }

        .filter-tab.active {
            background: #2a9d8f;
            color: white;
            border-color: #2a9d8f;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 30px;
            padding: 5px 5px 5px 20px;
            border: 1px solid #e2e8f0;
        }

        .search-box input {
            border: none;
            padding: 8px 0;
            outline: none;
            width: 200px;
        }

        .search-box button {
            background: #2a9d8f;
            border: none;
            color: white;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            cursor: pointer;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 40px;
        }

        .page-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid #2a9d8f;
            background: white;
            color: #2a9d8f;
            cursor: pointer;
            transition: all 0.3s;
        }

        .page-btn:hover:not(:disabled) {
            background: #2a9d8f;
            color: white;
        }

        .page-btn:disabled {
            border-color: #ddd;
            color: #ddd;
            cursor: not-allowed;
        }

        .page-info {
            font-weight: 600;
            color: #264653;
        }

        .page-dots {
            display: flex;
            gap: 8px;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: all 0.3s;
        }

        .dot.active {
            background: #2a9d8f;
            transform: scale(1.2);
        }

        /* No Results */
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px;
            background: white;
            border-radius: 12px;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .cards-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .cards-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .filter-bar {
                flex-direction: column;
            }
            
            .search-box {
                width: 100%;
            }
            
            .search-box input {
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .cards-grid {
                grid-template-columns: 1fr;
            }
        }
    /* Popup Modal */
    .popup-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .popup-modal.show {
        display: flex;
        opacity: 1;
    }

    .popup-content {
        background: white;
        width: 90%;
        max-width: 1000px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 20px;
        padding: 30px;
        position: relative;
        animation: popupSlideIn 0.3s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    @keyframes popupSlideIn {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .popup-header {
        text-align: center;
        margin-bottom: 30px;
        position: relative;
    }

    .popup-header h2 {
        font-size: 2rem;
        color: #264653;
        margin-bottom: 10px;
    }

    .popup-header h2 span {
        color: #2a9d8f;
    }

    .popup-header p {
        color: #64748b;
    }

    .close-popup {
        position: absolute;
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #2a9d8f;
        color: white;
        border: none;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .close-popup:hover {
        background: #e76f51;
        transform: rotate(90deg);
    }

    /* Filter bar inside popup */
    .popup-filter-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 15px;
        background: #f8fafc;
        padding: 15px;
        border-radius: 60px;
    }

    .popup-filter-bar .filter-tabs {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .popup-filter-bar .filter-tab {
        padding: 8px 20px;
        border-radius: 30px;
        border: 1px solid #e2e8f0;
        background: white;
        color: #64748b;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 500;
    }

    .popup-filter-bar .filter-tab.active {
        background: #2a9d8f;
        color: white;
        border-color: #2a9d8f;
    }

    .popup-filter-bar .search-box {
        display: flex;
        align-items: center;
        background: white;
        border-radius: 30px;
        padding: 5px 5px 5px 20px;
        border: 1px solid #e2e8f0;
        min-width: 250px;
    }

    .popup-filter-bar .search-box input {
        border: none;
        padding: 8px 0;
        outline: none;
        width: 100%;
    }

    .popup-filter-bar .search-box button {
        background: #2a9d8f;
        border: none;
        color: white;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        cursor: pointer;
    }

    /* Cards grid inside popup */
    .popup-cards-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    /* Pagination inside popup */
    .popup-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }

    /* Loading spinner */
    .loading-spinner {
        grid-column: 1 / -1;
        text-align: center;
        padding: 40px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #2a9d8f;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Responsive for popup */
    @media (max-width: 992px) {
        .popup-cards-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 768px) {
        .popup-cards-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .popup-filter-bar {
            flex-direction: column;
            border-radius: 30px;
        }
        
        .popup-filter-bar .search-box {
            width: 100%;
        }
    }

    @media (max-width: 576px) {
        .popup-cards-grid {
            grid-template-columns: 1fr;
        }
        
        .popup-content {
            padding: 20px;
        }
        
        .close-popup {
            top: 5px;
            right: 5px;
        }
    }