.serport-partners-section {
    padding: 60px 0;
    background: #f0f4f8;
}

.serport-partners-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.serport-partners-section .section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
}

.serport-partners-section .section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.serport-partners-section .partner-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
    position: relative;
}

.serport-partners-section .partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00a8e8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.serport-partners-section .partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.serport-partners-section .partner-card:hover::before {
    opacity: 1;
}

.serport-partners-section .card-header-img {
    min-height: 180px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    overflow: visible;
}

.serport-partners-section .card-header-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, white, transparent);
}

.serport-partners-section .logo-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    min-height: 100px;
}

/* Si le placeholder contient un logo (image), on modifie les styles */
.serport-partners-section .logo-placeholder:has(img) {
    background: transparent;
    width: auto;
    height: auto;
    max-width: 160px;
    min-height: 100px;
}

/* Styles pour les logos des ports */
.serport-partners-section .port-logo {
    max-width: 300px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Styles spécifiques pour les logos de Ghazaouet et Oran */
.serport-partners-section .port-logo[alt*="Ghazaouet"],
.serport-partners-section .port-logo[alt*="Oran"] {
    max-width: 240px;
    max-height: 180px;
}

.serport-partners-section .card-body-content {
    padding: 25px;
}

.serport-partners-section .partner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.serport-partners-section .partner-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.serport-partners-section .partner-name a:hover {
    color: #0066cc;
}

.serport-partners-section .contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.serport-partners-section .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.serport-partners-section .contact-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.serport-partners-section .contact-item:hover .contact-icon-wrapper {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    transform: scale(1.1);
}

.serport-partners-section .contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40px;
}

.serport-partners-section .contact-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.serport-partners-section .contact-value {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-word;
}

.serport-partners-section .contact-value:hover {
    color: #0066cc;
}

.serport-partners-section .visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.serport-partners-section .visit-btn:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

@media (max-width: 768px) {
    .serport-partners-section .section-header h1 {
        font-size: 1.8rem;
    }
    .serport-partners-section .partner-card {
        margin-bottom: 20px;
    }
    .serport-partners-section {
        padding: 40px 0;
    }
}
