/* Partner Organisations Section */
.partner-organisations-section {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
}

.partner-organisations-section .sec-title {
    margin-bottom: 50px;
}

.partner-organisations-section .sec-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    letter-spacing: 1px;
}

/* Partners Grid */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.partner-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-width: 280px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.05);
}

/* IFFS Section */
.iffs-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.iffs-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.iffs-logo {
    flex: 0 0 auto;
}

.iffs-logo img {
    max-width: 180px;
    height: auto;
}

.iffs-text {
    flex: 0 0 auto;
    text-align: left;
}

.iffs-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.iffs-text p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

.ifs-logo {
    flex: 0 0 auto;
}

.ifs-logo img {
    max-width: 150px;
    height: auto;
}

/* Special Interest Groups */
.special-groups-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.group-item {
    text-align: center;
    flex: 0 0 auto;
}

.flag-container {
    width: 200px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible;
    padding: 10px;
    transition: all 0.3s ease;
}

.flag-container:hover {
    border-color: #57428D;
    box-shadow: 0 4px 15px rgba(87, 66, 141, 0.2);
    transform: translateY(-5px);
}

.flag-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.group-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

/* Responsive Design */
@media only screen and (max-width: 991px) {
    .partners-grid {
        gap: 50px;
    }
    
    .partner-item img {
        max-width: 220px;
    }
    
    .iffs-content {
        gap: 25px;
    }
    
    .iffs-logo img {
        max-width: 150px;
    }
    
    .iffs-text h3 {
        font-size: 18px;
    }
    
    .special-groups-grid {
        gap: 60px;
        flex-direction: row;
    }
    
    .flag-container {
        padding: 8px;
        width: 180px;
        height: 130px;
    }
}

@media only screen and (max-width: 767px) {
    .partner-organisations-section {
        padding: 60px 0;
    }
    
    .partner-organisations-section .sec-title h2 {
        font-size: 28px;
    }
    
    .partners-grid {
        gap: 40px;
        flex-direction: column;
    }
    
    .partner-item img {
        max-width: 250px;
    }
    
    .iffs-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .iffs-text {
        text-align: center;
    }
    
    .iffs-text h3 {
        font-size: 16px;
    }
    
    .iffs-text p {
        font-size: 13px;
    }
    
    .special-groups-grid {
        gap: 30px;
        flex-direction: row;
        justify-content: center;
    }
    
    .flag-container {
        width: 160px;
        height: 110px;
        padding: 8px;
    }
    
    .group-item h4 {
        font-size: 18px;
    }
}

@media only screen and (max-width: 480px) {
    .partner-organisations-section {
        padding: 50px 0;
    }
    
    .partner-organisations-section .sec-title h2 {
        font-size: 24px;
    }
    
    .partner-item img {
        max-width: 200px;
    }
    
    .iffs-logo img {
        max-width: 120px;
    }
    
    .ifs-logo img {
        max-width: 120px;
    }
    
    .iffs-text h3 {
        font-size: 14px;
    }
    
    .iffs-text p {
        font-size: 12px;
    }
    
    .special-groups-grid {
        gap: 20px;
        flex-direction: column;
    }
    
    .flag-container {
        width: 200px;
        height: 140px;
        padding: 10px;
    }
    
    .group-item h4 {
        font-size: 16px;
    }
}
