/* ========================================
   PROVIDERS PAGE SPECIFIC STYLES
   ======================================== */

/* Providers Section */
.providers-section {
    padding: 110px 0 60px;
    background: transparent;
    min-height: 100vh;
    position: relative;
}

.providers-background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.providers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.providers-header {
    text-align: center;
    margin-bottom: 40px;
}

.providers-title {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
}


.providers-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Provider Categories */
.provider-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #222a32;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 20px;
}


/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 350px));
    gap: 30px;
    margin-bottom: 20px;
    justify-content: start;
}

/* Provider Cards */
.provider-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    border: 1px solid #e8ecf0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.provider-card:hover {
    transform: translateY(-10px) !important;
}

.provider-logo {
    width: 140px;
    height: 100px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.provider-logo-img {
    width: 120px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
}

.provider-logo i {
    font-size: 2rem;
    color: white;
}

.provider-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.provider-description {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Provider Tags */
.provider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: auto;
}

.tag {
    background: linear-gradient(135deg, #ffc107 0%, #ffae00 100%);
    color: #000000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(240, 147, 251, 0.3);
}


/* Active Nav Link */
.nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .providers-section {
        padding: 80px 0 40px;
    }

    .providers-container {
        padding: 0 15px;
    }

    .providers-title {
        font-size: 2.2rem;
    }

    .providers-subtitle {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .providers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        justify-content: center;
    }

    /* MOBILE LAYOUT: Simple 2-column design */
    .provider-card {
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 200px;
    }

    .provider-logo {
        width: 110px;
        height: 110px;
        padding: 6px;
        margin-bottom: 10px;
    }

    .provider-logo-img {
        width: 98px;
        height: 98px;
    }

    .provider-logo i {
        font-size: 2.8rem;
    }

    .provider-name {
        font-size: 0.9rem;
        margin: 0 0 8px 0;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .provider-description {
        font-size: 0.75rem;
        margin: 0 0 12px 0;
        line-height: 1.3;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .provider-tags {
        margin-top: auto;
    }
    
    .provider-tags .tag {
        font-size: 0.7rem;
        padding: 6px 12px;
        white-space: nowrap;
    }

}

@media (max-width: 480px) {
    .providers-title {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-title::before {
        display: none;
    }

    /* MOBILE 480px: Keep 2-column layout but smaller */
    .providers-grid {
        gap: 12px;
    }
    
    .provider-card {
        padding: 12px;
        min-height: 180px;
    }

    .provider-logo {
        width: 100px;
        height: 100px;
        padding: 5px;
        margin-bottom: 8px;
    }

    .provider-logo-img {
        width: 90px;
        height: 90px;
    }

    .provider-logo i {
        font-size: 2.5rem;
    }
    
    .provider-name {
        font-size: 0.85rem;
        margin: 0 0 6px 0;
        line-height: 1.2;
    }
    
    .provider-description {
        font-size: 0.7rem;
        margin: 0 0 10px 0;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .provider-tags .tag {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

}

