/* ===== ألوان رخصة فال ===== */
:root {
    --fal-primary: #258574;
    --fal-light: #32a897;
    --fal-dark: #1a6b5d;
    --fal-accent: #ff9800;
    --fal-gradient: linear-gradient(135deg, #258574 0%, #1a6b5d 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== الهيدر الخاص برخصة فال للشركات ===== */
.company-header {
    background: var(--fal-gradient);
    padding: 100px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.company-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.company-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.company-badge i {
    color: var(--fal-accent);
}

.company-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== بطاقة الشركة ===== */
.company-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--fal-light);
}

.company-card-header {
    background: var(--fal-gradient);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.company-license-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--fal-accent);
    color: white;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    z-index: 2;
}

.company-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: contain;
    margin-bottom: 15px;
    background: white;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.company-name {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.company-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.company-info-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.company-info-item i {
    color: var(--fal-primary);
    width: 24px;
    font-size: 1.1rem;
}

.company-rating {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #ffecb3;
}

.company-properties {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.company-view-btn {
    background: var(--fal-gradient);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.company-view-btn:hover {
    background: linear-gradient(135deg, var(--fal-dark), var(--fal-primary));
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
    color: white;
}

.company-view-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.company-view-btn:active::after {
    width: 300px;
    height: 300px;
}

/* ===== فلتر خاص بالشركات ===== */
.company-filter-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(26, 35, 126, 0.08);
    border: 1px solid #e8eaf6;
    position: sticky;
    top: 20px;
}

.company-filter-title {
    color: var(--fal-dark);
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eaf6;
}

.company-filter-title i {
    color: var(--fal-accent);
}

/* ===== شعار رخصة فال للشركات ===== */
.company-logo-icon {
    width: 60px;
    height: 60px;
    background: var(--fal-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===== قسم الإحصائيات ===== */
.company-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.company-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.company-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.company-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--fal-primary);
    transition: transform 0.3s ease;
}

.company-stat-card:hover .company-stat-icon {
    transform: scale(1.1);
}

.company-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--fal-dark);
    margin-bottom: 5px;
}

.company-stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ===== التخصصات ===== */
.company-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.company-specialty {
    background: #e3f2fd;
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.company-specialty:hover {
    background: #bbdefb;
}

/* ===== التجاوب ===== */
@media (max-width: 768px) {
    .company-header {
        padding: 60px 0 40px;
    }

    .company-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stats-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .company-filter-section {
        padding: 20px;
        position: static;
    }

    .company-card-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .company-stats-grid {
        grid-template-columns: 1fr;
    }

    .company-badge {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
}