﻿.partners-filter-section {
    padding: 25px 0;
    background-color: white;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: flex;
    justify-content: center;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 22px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.15);
}

.partners-gallery {
    padding: 40px 0 80px;
    min-height: 60vh;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    animation: fadeIn 0.8s ease-out;
}

.partner-logo-card {
    background: white;
    border-radius: 15px;
    padding: 35px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    overflow: hidden;
}

.partner-logo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #4a90e2;
}

.logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.partner-logo-card:hover .logo-container img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.partners-marquee-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0f8 100%);
    margin-top: 20px;
}

.partners-marquee-section h3 {
    text-align: center;
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 60px;
    width: calc(200% + 60px * 20);
    animation: scroll 35s linear infinite;
}

.marquee-item {
    flex: 0 0 auto;
    width: 160px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
}

.marquee-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 60px));
    }
}

.simple-contact {
    padding: 70px 0;
    background-color: white;
    text-align: center;
    border-top: 1px solid #eee;
}

.simple-contact h2 {
    color: #2c5aa0;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.simple-contact p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-contact {
    display: inline-block;
    padding: 14px 40px;
    background: #2c5aa0;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #2c5aa0;
}

.btn-contact:hover {
    background: white;
    color: #2c5aa0;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات للجوال */
@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }

    .inner-hero-content h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        margin-bottom: 30px;
    }

    .inner-hero-content h1 {
        font-size: 2.2rem;
    }

    .inner-hero-content p {
        font-size: 1.1rem;
    }

    .filters {
        gap: 8px;
        border-radius: 30px;
        padding: 8px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .partner-logo-card {
        height: 160px;
        padding: 25px 20px;
    }

    .simple-contact h2 {
        font-size: 1.8rem;
    }

    .btn-contact {
        padding: 12px 35px;
        font-size: 1rem;
    }

    .marquee-item {
        width: 140px;
        height: 90px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo-card {
        height: 150px;
        padding: 20px;
    }

    .inner-hero-content h1 {
        font-size: 1.9rem;
    }

    .filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .marquee-item {
        width: 120px;
        height: 80px;
        padding: 15px;
    }
}