@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Gasoek+One&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');



/* impact */

.impact {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.impact-box {
    width: min(1200px, 100%);
    margin: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    animation: impactReveal .9s ease forwards;
}

.impact-card {
    padding: 40px 20px;
    text-align: center;
    border-right: 1px solid #ececec;
    opacity: 0;
    transform: translateY(30px);
    animation: cardReveal .7s forwards;
    transition: .35s;
}

.impact-card:last-child {
    border-right: none;
}

.impact-card:hover {
    background: #fff5f4;
}

.impact-card h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #d83529;
    font-weight: 700;
    margin-bottom: 10px;
}

.impact-card p {
    color: #666;
    font-size: clamp(.95rem, 2vw, 1.05rem);
    line-height: 1.6;
}

.impact-card:nth-child(1) {
    animation-delay: 0.3s;
}

.impact-card:nth-child(2) {
    animation-delay: 0.6s;
}

.impact-card:nth-child(3) {
    animation-delay: 0.8s;
}

.impact-card:nth-child(4) {
    animation-delay: 1s;
}

@keyframes impactReveal {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:992px) {

    .impact-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-card {
        border-right: none;
        border-bottom: 1px solid #ececec;
    }

    .impact-card:nth-child(2n) {
        border-left: 1px solid #ececec;
    }

    .impact-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

}

@media(max-width:576px) {

    .impact {
        margin-top: 20px;
    }

    .impact-box {
        grid-template-columns: 1fr;
    }

    .impact-card {
        border: none;
        border-bottom: 1px solid #ececec;
        padding: 30px 20px;
    }

    .impact-card:last-child {
        border-bottom: none;
    }

}





/* about */

.about {
    padding: 100px 15px;
}

.about-wrap {
    width: min(1200px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.about-img img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    transition: .4s;
}

.about-img img:hover {
    transform: scale(1.03);
}

.about-content span {
    color: #d83529;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 18px 0;
    color: #222;
    line-height: 1.2;
}

.about-content p {
    color: #666;
    line-height: 1.9;
    font-size: clamp(.95rem, 2vw, 1.05rem);
    margin-bottom: 35px;
}

.about-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    background: #d83529;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: .35s;
    font-weight: 500;
}

.about-content a:hover {
    background: #b7261b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(216, 53, 41, .3);
}

@media(max-width:992px) {

    .about {
        padding: 80px 15px;
    }

    .about-wrap {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-img {
        order: 1;
    }

    .about-content {
        order: 2;
        text-align: center;
    }

}

@media(max-width:576px) {

    .about {
        padding: 60px 15px;
    }

    .about-wrap {
        gap: 30px;
    }

    .about-content a {
        width: 100%;
        max-width: 220px;
    }

}



/* what we do */

.services {
    padding: 100px 0;
    background: linear-gradient(135deg, rgb(154, 196, 252), #97c1f585, #fdf9e1, rgb(249, 239, 193), rgb(255, 221, 227), #fdd6e4);
}

.container1 {
    width: 90%;
    margin: auto;
}

.title {
    text-align: center;
    margin-bottom: 60px;
}

.title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: #222;
}

.service-wrap{
    display:flex;
    gap:25px;
    align-items:stretch;
    min-height:350px;   /* adjust to your card height */
}

.service-card {
    flex: 1;
    height: 350px;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    padding: 40px 25px;
    text-align: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition:
        flex .9s cubic-bezier(.22,1,.36,1),
        transform .6s cubic-bezier(.22,1,.36,1),
        box-shadow .6s ease,
        background .6s ease,
        border-color .6s ease;

    will-change: transform, flex;
    transition:flex .55s ease,transform .45s ease,box-shadow .45s ease,background .45s,border .45s;
}

.service-wrap:hover .service-card {
    flex: .9;
}

.service-wrap:hover .service-card:hover {

    flex: 1.35;

    transition: 0.5s ease;
    cursor: pointer;

    background: rgba(245, 188, 102, .45);

    border:1px solid rgb(248,169,124);

    transform: translateY(-10px);

    box-shadow: 0 25px 55px rgba(0, 0, 0, .18);

}

.service-card::before {
    content: "";
    position: absolute;
    top: -150%;
    left: -80%;
    width: 60%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    /* transform: rotate(25deg); */
    transition: 1s;
}

.service-card:hover::before {
    left: 170%;
}

.icon {
    font-size: 55px;
    color: #f44336;
    margin-bottom: 25px;
    transition: .35s;
}

.service-card h3 {
    font-size: 32px;
    color: #222;
    margin-bottom: 18px;
    transition: .35s;
}

.service-card p {
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.service-card:hover .icon,
.service-card:hover h3 {
    color: #9b1111;
}

/* Tablet */

@media(max-width:991px) {

    .services {
        padding: 80px 0;
    }

    .service-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        flex: none;
        padding: 35px 22px;
    }

    .service-wrap:hover .service-card,
    .service-wrap:hover .service-card:hover {
        flex: none;
        transform: translateY(-8px);
    }

    .icon {
        font-size: 48px;
    }

    .service-card h3 {
        font-size: 28px;
    }

}

/* Mobile */

@media(max-width:576px) {

    .services {
        padding: 60px 0;
    }

    .title {
        margin-bottom: 40px;
    }

    .title h2 {
        font-size: 32px;
    }

    .service-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .icon {
        font-size: 42px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 16px;
    }

    .service-wrap:hover .service-card,
    .service-wrap:hover .service-card:hover {
        transform: none;
    }

}


/* journey */
.main-journey {
    padding: 5vh 0;

}

.journey-container {
    width: 90%;
    margin: auto;
    height: 500px;
    display: flex;
    gap: 15px;
}

.journey-title {
    text-align: center;
    margin-bottom: 60px;
}

.journey-title span {
    color: #ef3d2f;
    letter-spacing: 4px;
    font-weight: 600;
    font-size: 15px;
}

.journey-title h2 {
    font-size: 52px;
    margin-top: 15px;
    color: #222;
}

.journey-card {
    flex: .6;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: flex .65s cubic-bezier(.22, 1, .36, 1);
}

.journey-card.active {
    flex: 3.5;
}

.journey-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .85),
            rgba(0, 0, 0, .35),
            rgba(0, 0, 0, .08));
    transition: .45s;
}

.journey-card.active::before {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.51),
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.099));
}

.overlay {
    position: absolute;
    left: 35px;
    right: 35px;
    bottom: 35px;
    z-index: 2;
    color: #fff;
}

.overlay h1 {
    font-size: 70px;
    margin-bottom: 10px;
}

.overlay h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.overlay p {
    max-width: 420px;
    line-height: 1.8;

    opacity: 0;
    transform: translateY(25px);
    transition: .45s;
}

.journey-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50px;

    opacity: 0;
    transform: translateY(25px);
    transition: .45s;
}

.journey-card.active .overlay p,
.journey-card.active .journey-btn {
    opacity: 1;
    transform: translateY(0);
}

.journey-card:not(.active) .overlay {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    left: 50%;
    right: auto;
    bottom: 40px;
    transform-origin: center;
}

.journey-card:not(.active) h1 {
    font-size: 68px;
    margin: 0;
}

.journey-card:not(.active) h3 {
    margin-top: 20px;
    font-size: 28px;
}

.journey-card:not(.active) p,
.journey-card:not(.active) .journey-btn {
    display: none;
}

.journey-card:hover::before {
    background-color: #2222223d;
}

.journey-btn {
    transition: all .4s ease;
}

.journey-mobile {
    display: none;
}

.journey-card:hover .journey-btn {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}
#journeyImg,
#journeyYear,
#journeyTitle,
#journeyText,
#journeyBtn{
    transition:.4s;
}

.animate #journeyImg{
    animation:fadeCard .45s ease;
}

.animate #journeyYear,
.animate #journeyTitle,
.animate #journeyText,
.animate #journeyBtn{
    animation:fadeCard .55s ease;
}

@keyframes fadeCard{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* Volunteer Section */


.volunteer-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    padding: 80px 0;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}


.volunteer-bg {

    position: absolute;
    inset: 0;

    background: url("../images/p6.jpg") center center/cover;

    animation: bgZoom 18s linear infinite alternate;

}



.volunteer-overlay {

    position: absolute;
    inset: 0;

    background: linear-gradient(135deg,
            rgba(8, 18, 35, .72),
            rgba(10, 35, 60, .58),
            rgba(0, 0, 0, .35));

}



.volunteer-content {

    position: relative;

    width: min(900px, 90%);
    margin: auto;
    height: auto;
    max-width: 90%;

    padding: 30px 60px;

    text-align: center;

    border-radius: 30px;

    background: rgba(255, 255, 255, .12);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .25);

    box-shadow:

        0 30px 60px rgba(0, 0, 0, .25),

        inset 0 1px 1px rgba(255, 255, 255, .25);

}


.section-tag {

    display: inline-block;

    padding: 10px 22px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .18);

    color: #90e0ff;

    font-size: 15px;

    letter-spacing: 2px;

    margin-bottom: 25px;

}


.volunteer-content h2 {

    color: white;

    font-size: 48px;

    line-height: 1.25;

    margin-bottom: 25px;

    font-weight: 700;

}


/* Paragraph */

.volunteer-content p {

    color: #f5f5f5;

    font-size: 17px;

    line-height: 1.9;

    margin-bottom: 40px;

}


.volunteer-buttons {

    display: flex;

    justify-content: center;

    gap: 20px;

}

/* Join */

.join-btn {

    padding: 16px 38px;

    border-radius: 40px;

    text-decoration: none;

    color: white;

    font-weight: 600;

    background: linear-gradient(135deg,
            #ff6b6b,
            #ff914d);

    transition: .45s;

    box-shadow:

        0 10px 25px rgba(255, 110, 80, .35);

}

.join-btn i {

    margin-right: 10px;

}

.join-btn:hover {

    transform: translateY(-5px);

    box-shadow:

        0 18px 35px rgba(255, 110, 80, .5);

}

/* Learn */

.learn-btn {

    padding: 16px 38px;

    border-radius: 40px;

    text-decoration: none;

    color: white;

    font-weight: 600;

    border: 1px solid rgba(255, 255, 255, .45);

    background: rgba(255, 255, 255, .12);

    backdrop-filter: blur(12px);

    transition: .45s;

}

.learn-btn:hover {

    background: white;

    color: #222;

    transform: translateY(-5px);

}


.floating-circle {

    position: absolute;

    border-radius: 50%;

    background: rgba(255, 255, 255, .08);

    backdrop-filter: blur(12px);

}

.circle1 {

    width: 180px;
    height: 180px;

    top: 12%;
    left: 8%;

    animation: float1 8s ease-in-out infinite;

}

.circle2 {

    width: 120px;
    height: 120px;

    right: 10%;
    bottom: 12%;

    animation: float2 7s ease-in-out infinite;

}


@keyframes bgZoom {

    from {

        transform: scale(1);

    }

    to {

        transform: scale(1.12);

    }

}

@keyframes float1 {

    0% {

        transform: translateY(0px);

    }

    50% {

        transform: translateY(-20px);

    }

    100% {

        transform: translateY(0);

    }

}

@keyframes float2 {

    0% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(18px);

    }

    100% {

        transform: translateY(0);

    }

}

/*==========================
Responsive
===========================*/

@media(max-width:768px) {

    .volunteer-section {

        height: auto;

        padding: 90px 20px;

    }

    .volunteer-content {

        padding: 40px 25px;

    }

    .volunteer-content h2 {

        font-size: 34px;

    }

    .volunteer-buttons {

        flex-direction: column;

    }

}


/* Events Section */

.events-section {

    padding: 100px 0;

    background: #fff;

}

/*==========================
Title
===========================*/

.events-header {

    width: min(750px, 90%);

    margin: auto;

    text-align: center;

    margin-bottom: 60px;

}

.events-header span {

    color: #f44336;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

}

.events-header h2 {

    font-size: 46px;

    margin: 15px 0;

    color: #222;

}

.events-header p {

    color: #666;

    line-height: 1.8;

}

/*==========================
Cards
===========================*/

.events-wrap {

    width: min(1200px, 90%);

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 30px;

}

.event-card {

    display: flex;

    align-items: center;

    gap: 30px;

    padding: 30px;

    border-radius: 24px;

    background: rgba(255, 255, 255, .65);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(230, 230, 230, .9);

    box-shadow:

        0 15px 40px rgba(0, 0, 0, .06);

    transition: .75s;

    overflow: hidden;

    position: relative;

}

.event-card:hover {

    transition: .7s ease;
    cursor: pointer;
    transform: translateY(-10px);

    box-shadow:

        0 25px 60px rgba(0, 0, 0, .12);

}

/*==========================
Date
===========================*/

.event-date {

    width: 95px;

    height: 95px;

    border-radius: 20px;

    background: linear-gradient(135deg,
            #ff6b6b,
            #ff914d);

    color: #fff;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    flex-shrink: 0;

    transition: .4s;

}

.event-card:hover .event-date {

    transform: rotate(-5deg) scale(1.08);

}

.event-date h3 {

    font-size: 34px;

}

.event-date span {

    letter-spacing: 2px;

}

/*==========================
Content
===========================*/

.event-content {

    flex: 1;

}

.event-content h3 {

    color: #222;

    font-size: 30px;

    margin-bottom: 10px;

}

.event-short {

    color: #555;

    font-size: 17px;

}

/* Hidden Description */

.event-extra {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition: .5s;

}

.event-card:hover .event-extra {

    max-height: 200px;

    opacity: 1;

    margin-top: 18px;

}

.event-extra p {

    color: #666;

    line-height: 1.8;

}

.event-extra a {

    display: inline-block;

    margin-top: 18px;

    text-decoration: none;

    color: #f44336;

    font-weight: 600;

    transition: .3s;

}

.event-extra a:hover {

    transform: translateX(6px);
    cursor: pointer;

}


.event-extra a {

    position:relative;

    z-index:10;

    display:inline-block;

    cursor:pointer;

}

.event-extra {

    position:relative;

    z-index:5;

}


/*==========================
Glow Border
===========================*/

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
            transparent,
            rgba(255, 120, 80, 0.35),
            transparent);

    /* WebKit Engines (Chrome, Safari, Edge, Opera) */
    -webkit-mask:
        linear-gradient(#fff, #fff) content-box,
        linear-gradient(#fff, #fff);
    -webkit-mask-composite: xor;

    /* Standard Properties (Firefox and modern standards compliance) */
    mask:
        linear-gradient(#fff, #fff) content-box,
        linear-gradient(#fff, #fff);
    mask-composite: exclude;

    opacity: 0;
    transition: .4s;
}


.event-card:hover::before {

    opacity: 1;

}

/*==========================
View All Button
===========================*/

.view-all {

    text-align: center;

    margin-top: 60px;

}

.view-all a {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    padding: 16px 36px;

    border-radius: 40px;

    color: #fff;

    font-weight: 600;

    background: linear-gradient(135deg,
            #ff6b6b,
            #ff914d);

    transition: .4s;

}

.view-all a:hover {

    transform: translateY(-5px);

    box-shadow:

        0 15px 35px rgba(244, 67, 54, .3);

}

.view-all i {

    transition: .35s;

}

.view-all a:hover i {

    transform: translateX(6px);

}

/*==========================
Responsive
===========================*/

@media(max-width:768px) {

    .event-card {

        flex-direction: column;

        text-align: center;

    }

    .events-header h2 {

        font-size: 36px;

    }

}
