.coop-hero {
    position: relative;
    background: url('../images/coop-slid.jpeg') center/cover no-repeat;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-top: -100px;
}

.coop-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 55%);
    z-index: 1;
}
.coop-hero-content{
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 20px;
}


/* Search & Filter Section */
    .coop-filters {
        border-radius: 10px;
        padding: 2rem;
    }

    .coop-search-bar {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }

    .coop-search-input {
        flex: 1;
        min-width: 250px;
        padding: 0.75rem 1rem;
        border: 2px solid #f0f0f0;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .coop-search-input:focus {
        outline: none;
        border-color: #d97535;
    }

    .coop-btn {
        background: #d97535;
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .coop-btn:hover {
        background: #c05e2a;
        transform: translateY(-2px);
    }

    .coop-btn-reset {
        background: #f0f0f0;
        color: #333;
    }

    .coop-btn-reset:hover {
        background: #e0e0e0;
    }

    /* Filter Tabs */
    .coop-filter-tabs {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        border-bottom: 2px solid #f0f0f0;
    }

    .coop-filter-tab {
        padding: 0.75rem 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        font-weight: 600;
        color: #999;
        border-bottom: 3px solid transparent;
        transition: all 0.3s ease;
        position: relative;
        bottom: -2px;
    }

    .coop-filter-tab:hover {
        color: #d97535;
    }

    .coop-filter-tab.active {
        color: #d97535;
        border-bottom-color: #d97535;
    }

    /* Filter Content */
    .coop-filter-content {
        display: none;
    }

    .coop-filter-content.active {
        display: block;
        max-height: 200px;
        overflow-y: auto;
    }

    /* Filter Grid */
    .coop-filter-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    /* Filter Option */
    .coop-filter-option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background: #f9f9f9;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .coop-filter-option:hover {
        background: #f0f0f0;
    }

    .coop-filter-option input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #d97535;
    }

    .coop-filter-option label {
        cursor: pointer;
        flex: 1;
        font-size: 0.9rem;
        color: #666;
    }

    .coop-filter-option input:checked + label {
        color: #d97535;
        font-weight: 600;
    }

    /* Results Info */
    .coop-results-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding: 1rem;
        background: #f9f9f9;
        border-radius: 8px;
    }

    .coop-results-count {
        font-size: 0.95rem;
        color: #666;
    }

    .coop-sort-by {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .coop-sort-by select {
        padding: 0.5rem;
        border: 1px solid #ddd;
        border-radius: 5px;
        cursor: pointer;
    }

    /* Grid Container */
    .coop-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
        min-height: 200px;
    }

    /* Coop Card */
    .coop-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
        animation: fadeInCoop 0.5s ease-out;
    }

    @keyframes fadeInCoop {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .coop-card:hover {
        transform: translateY(-8px);
    }

    /* Card Header */
    .coop-card-header {
        width: 100%;
        height: 160px;
    }

        /* Zoom effect on hover */
    .coop-card-header:hover {
        transform: scale(1.05);
        filter: brightness(0.8);
    }


    .coop-card-logo {
        width: 100px;
        height: 100px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        position: relative;
        z-index: 1;
    }

    /* Card Body */
    .coop-card-body {
        padding: 1rem 1rem;
    }

    .coop-card-name {
        font-size: 1.3rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 0.5rem;
        min-height: 45px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 22ch;
    }

    .coop-card-tags {
        display: flex;
        gap: 0.2rem;
        margin-bottom: 0.8rem;
        flex-wrap: wrap;
    }

    .coop-card-tag {
        font-size: 11px;
        background: #f0f0f0;
        color: #d97535;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
        font-weight: 600;
    }

    .coop-card-location {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #999;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .coop-card-description {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        min-height: 20px;
        white-space: nowrap; 
        overflow: hidden;  
        text-overflow: ellipsis;
        max-width: 30ch;
    }


    /* Card Stats */
    .coop-card-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 1rem;
    }

    .coop-stat {
        text-align: center;
    }

    .coop-stat-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: #d97535;
    }

    .coop-stat-label {
        font-size: 0.75rem;
        color: #999;
        text-transform: uppercase;
        margin-top: 0.3rem;
    }

    /* Card Footer */
    .coop-card-footer {
        display: flex;
        gap: 0.8rem;
    }

    .coop-btn-small {
        flex: 1;
        padding: 0.6rem;
        border: 1px solid #d97535;
        background: white;
        color: #d97535;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

    .coop-btn-small:hover {
        background: #d97535;
        color: white;
    }

    .coop-btn-small-primary {
        background: #d97535;
        color: white;
    }

    .coop-btn-small-primary:hover {
        background: #c05e2a;
    }

    /* Pagination */
    .coop-pagination {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 3rem;
        min-height: 40px;
    }

    .coop-pagination-btn {
        width: 35px;
        height: 35px;
        border: 1px solid #ddd;
        background: white;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .coop-pagination-btn:hover {
        background: #d97535;
        color: white;
        border-color: #d97535;
    }

    .coop-pagination-btn.active {
        background: #d97535;
        color: white;
        border-color: #d97535;
    }

    /* No Results */
    .coop-no-results {
        text-align: center;
        padding: 4rem 2rem;
        grid-column: 1 / -1;
    }

    .coop-no-results i {
        font-size: 4rem;
        color: #ddd;
        margin-bottom: 1rem;
    }

    .coop-no-results p {
        font-size: 1.1rem;
        color: #999;
    }

    /* Active Filters Display */
    .coop-active-filters {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .coop-active-filter-badge {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #d97535;
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .coop-active-filter-badge:hover {
        background: #c05e2a;
    }

    .coop-active-filter-badge i {
        cursor: pointer;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .coop-hero h1 {
            font-size: 2rem;
        }

        .coop-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .coop-search-bar {
            flex-direction: column;
        }

        .coop-search-input {
            min-width: 100%;
        }

        .coop-results-info {
            flex-direction: column;
            gap: 1rem;
        }

        .coop-filter-tabs {
            overflow-x: auto;
        }

        .coop-card-header {
            height: 150px;
        }

        .coop-card-logo {
            width: 80px;
            height: 80px;
            font-size: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .coop-hero {
            padding: 2rem 0;
            margin-top: 38px;
        }

        .coop-hero h1 {
            font-size: 1.5rem;
        }

        .coop-filters {
            padding: 1rem;
        }

        .coop-btn {
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
            flex: 1;
        }

        .coop-grid {
            grid-template-columns: 1fr;
        }

        .coop-card-header {
            height: 120px;
        }

        .coop-card-logo {
            width: 70px;
            height: 70px;
            font-size: 1.3rem;
        }

        .coop-card-name {
            font-size: 1.1rem;
        }

        .coop-filter-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Pagination */
    .coop-pagination {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 3rem;
        min-height: 40px;
    }

    .coop-pagination-btn {
        width: 35px;
        height: 35px;
        border: 1px solid #ddd;
        background: white;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease;
        font-weight: 600;
    }

    .coop-pagination-btn:hover {
        background: #d97535;
        color: white;
        border-color: #d97535;
    }

    .coop-pagination-btn.active {
        background: #d97535;
        color: white;
        border-color: #d97535;
    }

     .loader {
        text-align: center;
        padding: 10px;
    }

    .loader .spinner {
        width: 24px;
        height: 24px;
        border: 3px solid #ccc;
        border-top-color: #d97535;
        border-radius: 50%;
        animation: spin 0.7s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }
