@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Kalam:wght@300;400;700&display=swap');

* {
    padding: 0;
    margin: 0;
}


#Philanthropy {
    padding: 0;
    margin: 0;
    background: #1e1e1e;
    font-family: "Chakra Petch", serif;
}

.heading h2 {
    text-align: center;
    font-size: 34px;
    margin: 40px 0px;
    line-height: 40px;
}

@media only screen and (max-width: 400px) {
    .heading h2 {
        font-size: 20px;
    }
}


#Philanthropy .container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    background: #1e1e1e;
    margin-bottom: 30px;
}

.card {
    width: 300px;
}

.card .card-inner {
    position: relative;
    height: 300px;
    border-radius: 25px;
    overflow: hidden;
}

.card .card-inner .box .img-box {
    position: absolute;
    inset: 0;
    transition: 0.3s all linear;
}

.card .card-inner .box .img-box:hover {
    transform: scale(1.1);
}

.card .card-inner .box .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-top-left-radius: 50px;
    padding: 12px;
    background-color: white;
}

.icon::after {
    position: absolute;
    content: "";
    top: -18px;
    right: 0;
    background: transparent;
    width: 18px;
    height: 18px;
    border-bottom-right-radius: 30px;
    box-shadow: 10px 10px 0 10px #fff;
}

.icon::before {
    position: absolute;
    content: "";
    bottom: 0;
    left: -18px;
    background: transparent;
    width: 18px;
    height: 18px;
    border-bottom-right-radius: 30px;
    box-shadow: 10px 10px 0 10px #fff;
}

.icon span {
    transform: rotate(-40deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50px;
    background-color: white;
    transition: 0.3s all linear;
}

.card:nth-child(1) .icon span {
    background-color: #d3b19a;
}

.card:nth-child(2) .icon span {
    background-color: #70b3b1;
}

.card:nth-child(3) .icon span {
    background-color: #d05fa2;
}

.card:nth-child(4) .icon span {
    background-color: #ec672ad8;
}

.card:nth-child(5) .icon span {
    background-color: #302e2f;
}

.card:nth-child(6) .icon span {
    background-color: #351c5e;
}

.card:nth-child(7) .icon span {
    background-color: #15bb54;
}

.card:nth-child(8) .icon span {
    background-color: #e0dd1a;
}

.icon i {
    color: white;
    font-size: 24px;
}

.icon:hover span {
    cursor: pointer;
    transform: scale(1.1);
}

.content h3 {
    font-size: 24px;
    margin-bottom: 7px;
    margin-top: -50px;
}

.content h2 {
    font-size: 28px;
    margin-top: 10px;
}

.content p {
    font-size: 18px;
    margin-bottom: 10px;
}




/* Additional CSS */
/* Scroll animation for cards */
.card {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add delay for each card */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.3s;
}

.card:nth-child(3) {
    animation-delay: 0.5s;
}

.card:nth-child(4) {
    animation-delay: 0.7s;
}

.card:nth-child(5) {
    animation-delay: 0.9s;
}

.card:nth-child(6) {
    animation-delay: 1.1s;
}

.card:nth-child(7) {
    animation-delay: 1.3s;
}

.card:nth-child(8) {
    animation-delay: 1.5s;
}



@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#Philanthropy {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}