/* ============================================
   PROVIDER PAGE STYLES
   ============================================ */

.provider-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px 0;
}


/* Filter Tabs */

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    height: 6px;
}

.filter-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: #007bf3;
    border-radius: 10px;
}

.filter-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover {
    border-color: #007bf3;
    color: #007bf3;
    background: #eff6ff;
}

.filter-tab.active {
    background: #007bf3;
    color: white;
    border-color: #007bf3;
}


/* Provider Cards Grid */

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.provider-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.provider-card:hover {
    box-shadow: 0 8px 24px rgba(0, 123, 243, 0.15);
    transform: translateY(-4px);
    border-color: #007bf3;
}

.provider-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.provider-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.provider-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.provider-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* CTA Section */

.provider-cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.provider-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient( circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient( circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.provider-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 1;
}

.cta-button {
    padding: 14px 40px;
    background: white;
    color: #6366f1;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* ======= pagination add after ==================*/


/* Pagination Container */

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}


/* Pagination */

.pagination-pr {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Pagination Button (Prev/Next) */

.pagination-btn-pr {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.pagination-btn-pr:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #0066cc;
    color: #0066cc;
}

.pagination-btn-pr:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* Pagination Numbers Container */

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* Pagination Number Button */

.pagination-number {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.pagination-number:hover {
    background: #f5f5f5;
    border-color: #0066cc;
    color: #0066cc;
}

.pagination-number.active {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.pagination-number.active:hover {
    background: #0052a3;
    border-color: #0052a3;
}


/* Pagination Ellipsis */

.pagination-ellipsis {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
    user-select: none;
}


/* Provider Grid - Đảm bảo 4 items/hàng */

.provider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 30px 0;
}


/* Provider Card Animation */

.provider-card {
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */

@media (max-width: 1200px) {
    .provider-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .provider-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .pagination-btn,
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .provider-grid {
        grid-template-columns: 1fr;
    }
    .pagination {
        gap: 4px;
    }
    .pagination-numbers {
        gap: 2px;
    }
}


/* Responsive Design */

@media (max-width: 1024px) {
    .provider-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        margin-bottom: 30px;
        gap: 8px;
    }
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    .provider-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        margin-bottom: 40px;
    }
    .provider-card {
        padding: 20px;
    }
    .provider-logo {
        width: 40px;
        height: 40px;
    }
    .provider-name {
        font-size: 16px;
    }
    .provider-description {
        font-size: 13px;
    }
    .provider-cta {
        padding: 40px 24px;
        margin-top: 40px;
    }
    .provider-cta h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .provider-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .filter-tabs {
        gap: 8px;
    }
    .provider-cta h2 {
        font-size: 20px;
    }
}