.sponsors-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.sponsor-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.sponsor-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.sponsor-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.sponsor-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.sponsor-image-container:hover img {
    transform: scale(1.05);
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #28a745;
}

.sponsor-info {
    padding: 20px;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sponsor-name {
    margin: 0;
    font-size: 1.4em;
    color: #1a1a1a;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

.sponsor-details {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}

.sponsor-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.website-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #e9ecef !important;
    color: #000000 !important;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.website-link:hover {
    background-color: #e9ecef;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.website-link-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    width: 100%;
    cursor: default;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.website-link i {
    font-size: 1.1em;
}

.tooltip {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.95em;
    z-index: 100;
    max-width: 300px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    line-height: 1.5;
}

.tooltip strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.1em;
}

.sponsor-card:hover .tooltip {
    display: block;
}

@media (max-width: 1400px) {
    .sponsors-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .sponsors-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sponsors-container {
        grid-template-columns: 1fr;
    }
    .sponsor-card {
        min-height: 350px;
    }
    .sponsor-image-container {
        height: 180px;
    }
}

.filter-section {
    margin-bottom: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.domain-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.domain-filter {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.domain-filter:hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
    transform: translateY(-2px);
}

.domain-filter.active {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
