html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
/* Meet our partners */
.partner-sect{
    width: 90vw;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Section Heading */
.heading {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #3f3f3f;
}

/* Partner container grid */
.partner-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 100%;
}

.partner-box{
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.partner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo{
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.partner-details{
    padding: 15px;
    line-height: 1.6rem;
}

.partner-type{
    border-radius: 5px;
    padding: 5px 10px;
    color: white;
    font-size: 0.9rem;
    display: inline-block;
}
#education{
    background-color: #1E90FF;
}
#women{
    background-color: #FF69B4;
}
#volunteer_association{
    background-color: #FFA500;
}
#legal{
    background-color: #808080;
}
#csr{
    background-color: #008080;
}
#event{
    background-color: #FF7F50;
}
.partner-name{
    font-size: 1.5rem;
    margin: 10px 0;
    color: #333;
}

.partner-location{
    font-size: 1rem;
    color: #666;
}

.partner-link {
    display: inline-block;
    margin-top: 10px;
    color: #e63946;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.partner-link:hover {
    color: #3f3f3f;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .partner-container{
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .partner-box {
        margin-bottom: 20px;
    }

    .partner-sect h2 {
        font-size: 2rem;
    }

    .partner-logo {
        height: 150px;
    }

    .partner-details {
        padding: 10px;
    }

    .partner-name {
        font-size: 1.2rem;
    }

    .partner-location {
        font-size: 0.9rem;
    }
}

/* scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000; /* Ensure the button is above other elements */
    overflow: hidden; /* Prevent overflow from causing extra space */
}

.scroll-btn {
    background-color: #007bff; /* Blue background */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%; /* Makes the button circular */
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.scroll-btn i {
    font-size: 16px;
}

/* Responsive Scroll Button for smaller screens */
@media (max-width: 400px) {
    .scroll-to-top {
        bottom: 15px;
        left: 15px;
    }

    .scroll-btn {
        padding: 12px;
        font-size: 18px;
    }

    .scroll-btn i {
        font-size: 14px;
    }
}

/* Whatsapp widget responsiveness */
.elfsight-app-8eef5ff3-8280-4b10-a0cd-810ec58eb551 {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 999;
    max-width: 100%; /* Ensure widget doesn't exceed screen width */
    overflow: hidden; /* Prevent any overflow */
}

/* Responsive adjustment for WhatsApp widget */
@media (max-width: 400px) {
    .elfsight-app-8eef5ff3-8280-4b10-a0cd-810ec58eb551 {
        bottom: 50px;
        right: 15px;
        max-width: 95%; /* Adjust for smaller screens */
    }
}

/* Prevent horizontal overflow caused by any elements */
body {
    overflow-x: hidden; /* Disable horizontal scrolling to fix extra space */
}
