/* University / units and departments */
.welcome .welcome-image {
    display: none;
}
.welcome .welcome-content {
    display: none;
}
div.welcome {
    padding: 0 !important;
}


/* .memberships-section {
    padding: 2rem 0;
} */

.section-header h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Membership Cards */
.membership-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.membership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.membership-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.membership-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.membership-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.membership-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.membership-description {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.membership-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 45, 88, 0.3);
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary);
    color: var(--white);
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-title {
    text-align: start;
    font-weight: 600;
    font-size: 1.3rem;
}

.modal-body {
    padding: 2rem;
    line-height: 1.7;
    color: var(--dark-text);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body strong {
    color: var(--primary);
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 2rem;
}

/* White close button for modal */
.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* .memberships-section {
        padding: 1.5rem 0;
    } */
    
    .membership-card {
        padding: 1.2rem;
    }
    
    .membership-logo {
        height: 70px;
    }
    
    .membership-logo img {
        max-height: 60px;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .membership-actions {
        flex-direction: column;
    }
    
    .membership-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.2rem;
    }
    
    .section-header h2{
        font-size: 1.4rem;
    }
    .section-subtitle {
        font-size: 1rem;
        padding: 0 3px;
    }
}

.memberships-section .row{
    justify-content: space-evenly;
}