body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: 'Ubuntu', sans-serif;
    color: #fff;
    user-select: none;
    background: url('/static/ngo/MyTeamBackground.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}


/* Team section styles */
.team-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.section-heading {
    font-size: 4rem; /* Responsive font size */
    font-weight: bold;
    margin-bottom: 40px;
    color: #929191;
    transition: color 0.3s ease;
}

.section-heading:hover {
    color: #ffffff;
}

.team-card {
    position: relative;
    background: rgba(40, 38, 38, 0.646);
    border-radius: 15px;
    padding: 20px;
    padding-top: 210px; /* Increased from 160px to accommodate larger images */
    margin-top: 210px; /* Increased from 160px */
    box-shadow: 0 8px 30px rgba(46, 46, 46, 0.26);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    height: 100%; /* Equal height cards */
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.team-img {
    position: absolute;
    top: -175px; /* Adjusted from -130px */
    left: 50%;
    transform: translateX(-50%);
    width: 350px; /* Increased from 260px */
    height: 350px; /* Increased from 260px */
    background: none;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-img img:hover {
    filter: grayscale(0%);
}

.team-card h5 {
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.team-card p {
    font-size: 1.1rem;
    color: #ccc;
}


/* Responsive media queries */
@media (max-width: 1200px) {
    .team-img {
        width: 320px; /* Increased from 240px */
        height: 320px; /* Increased from 240px */
        top: -160px; /* Adjusted from -120px */
    }
    
    .team-card {
        padding-top: 180px; /* Increased for larger image */
        margin-top: 180px;
    }
    
    .section-heading {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .section-heading {
        font-size: 3rem;
    }

    .signature-font {
        font-size: 1.8rem;
    }
    
    .team-img {
        width: 280px; /* Increased from 220px */
        height: 280px; /* Increased from 220px */
        top: -140px; /* Adjusted from -110px */
    }
    
    .team-card {
        padding-top: 160px;
        margin-top: 160px;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 2.5rem;
    }

    .team-img {
        width: 240px; /* Increased from 200px */
        height: 240px; /* Increased from 200px */
        top: -120px; /* Adjusted from -100px */
    }
    
    .team-card {
        padding-top: 140px;
        margin-top: 140px;
    }
    
    .team-card h5 {
        font-size: 1.3rem;
    }
    
    .team-card p {
        font-size: 1rem;
    }
    
    .signature-font {
        font-size: 1.5rem;
    }
    
    /* Stack footer columns */
    .footer-row {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .footer {
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 2rem;
    }
    
    .navbar-brand {
        max-width: 70%;
    }
    
    .logo {
        height: 30px;
    }
    
    .signature-font {
        font-size: 1.3rem;
    }
    
    .team-img {
        width: 220px; /* Increased from 180px */
        height: 220px; /* Increased from 180px */
        top: -110px; /* Adjusted from -90px */
    }
    
    .team-card {
        padding-top: 130px; /* Adjusted from 110px */
        margin-top: 130px; /* Adjusted from 110px */
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .team-card h5 {
        font-size: 1.2rem;
        margin-top: 5px;
    }
    
    .team-card p {
        font-size: 0.9rem;
    }
    
    /* Footer adjustments for mobile */
    .footer {
        min-height: 200px;
    }
    
    /* Hide some footer content on very small screens */
    .footer-col:not(:first-child) .footer-title,
    .footer-col:not(:first-child) .footer-links {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .section-heading {
        font-size: 1.8rem;
    }
    
    .team-img {
        width: 200px; /* Increased from 160px */
        height: 200px; /* Increased from 160px */
        top: -100px; /* Adjusted from -80px */
    }
    
    .team-card {
        padding-top: 120px; /* Adjusted from 100px */
        margin-top: 120px; /* Adjusted from 100px */
    }
}