/* body {
    margin: 0;
    padding: 0 20px;
    font-family: Arial, sans-serif;
    background: #f8f8f8;
} */

.custom-card {
    display: flex;

    max-width: 1300px;

    margin: 60px auto 30px;

    padding: 10px;

    background: #fff;

    border-radius: 18px;

    border: 1px solid #f1d5d5;

    box-shadow: 0 8px 25px rgba(150, 0, 0, 0.08);

    transition: all 0.35s ease;
}


/* .custom-card:hover {
    transform: translateY(-7px);

    border-color: #e5aaaa;

    box-shadow: 0 18px 40px rgba(150, 0, 0, 0.16);
} */

.card-image {
    position: relative;

    width: 35%;
    min-height: 260px;

    overflow: hidden;

    border-radius: 14px;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.6s ease;
}


.card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    /* background:
        linear-gradient(
            135deg,
            rgba(150, 0, 0, 0.45),
            rgba(220, 30, 30, 0.12)
        ); */

    transition: all 0.4s ease;
}


/* .custom-card:hover .card-image img {
    transform: scale(1.08);
} */

/* .custom-card:hover .card-image::after {
    background:
        linear-gradient(
            135deg,
            rgba(150, 0, 0, 0.60),
            rgba(220, 30, 30, 0.18)
        );
} */


.card-content {
    width: 65%;

    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-label {
    display: inline-block;

    width: fit-content;

    margin-bottom: 10px;

    padding: 5px 10px;

    color: #a00000;

    background: #fff0f0;

    border-radius: 5px;

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}


.card-content h2 {
    margin: 0 0 12px;

    color: #2b2b2b;

    font-size: 27px;
    font-weight: 600;

    transition: color 0.3s ease;
}

.custom-card:hover .card-content h2 {
    color: #a00000;
}


.card-content p {
    margin: 0;

    color: #666;

    font-size: 15px;

    line-height: 1.7;
}


.card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;

    margin-top: 22px;

    padding: 10px 18px;

    color: #fff;

    background: #a00000;

    text-decoration: none;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 500;

    box-shadow: 0 5px 15px rgba(160, 0, 0, 0.20);

    transition: all 0.3s ease;
}

.card-button span {
    transition: transform 0.3s ease;
}

.card-button:hover {
    background: #c00000;

    box-shadow: 0 8px 20px rgba(160, 0, 0, 0.30);

    transform: translateY(-2px);
}

.card-button:hover span {
    transform: translateX(4px);
}


.vision-mission {

    div {
        width: 100%;
        display: flex;
        /* flex-wrap: wrap; */
        gap: 34px;
        margin-bottom: 35px;
    }

    .vision,
    .mission {
        min-height: 296px;
        background-color: #fbf1f1;
        margin: 5px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* align-items: center; */
        border-radius: 25px;

        h3 {
            color: #F3000C;
        }
    }
}

.impact-on-schools-children {
    h3 {
        color: #F3000C;
    }
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
}

/* Center Line */
.timeline::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 3px;

    background: linear-gradient(to bottom,
            #8f0000,
            #d00000,
            #8f0000);

    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    position: relative;

    width: 50%;

    padding: 0 45px 10px;
}

/* Left Items */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Right Items */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;

    top: 10px;

    width: 18px;
    height: 18px;

    background: #a00000;

    border: 4px solid #fff;

    border-radius: 50%;

    box-shadow:
        0 0 0 3px #d9a0a0,
        0 5px 15px rgba(160, 0, 0, 0.25);

    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

/* Content Card */
.timeline-content {
    position: relative;

    padding: 25px;

    background: #fff;

    border-radius: 12px;

    border: 1px solid #f0d5d5;

    box-shadow: 0 7px 25px rgba(120, 0, 0, 0.07);

    transition: all 0.35s ease;
}

/* .timeline-content:hover {
    transform: translateY(-6px);

    border-color: #d99a9a;

    box-shadow: 0 15px 35px rgba(120, 0, 0, 0.15);
} */

/* Date */
.timeline-date {
    display: inline-block;

    margin-bottom: 10px;

    padding: 5px 12px;

    color: #a00000;

    background: #fff0f0;

    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;
}

/* Heading */
.timeline-content h3 {
    margin: 0 0 10px;

    color: #2b2b2b;

    font-size: 20px;

    transition: color 0.3s ease;
}

.timeline-content:hover h3 {
    color: #a00000;
}

/* Description */
.timeline-content p {
    margin: 0;

    color: #666;

    font-size: 14px;

    line-height: 1.7;
}

/* Small Arrow */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: "";

    position: absolute;

    top: 20px;
    right: -9px;

    width: 16px;
    height: 16px;

    background: #fff;

    border-top: 1px solid #f0d5d5;
    border-right: 1px solid #f0d5d5;

    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: "";

    position: absolute;

    top: 20px;
    left: -9px;

    width: 16px;
    height: 16px;

    background: #fff;

    border-left: 1px solid #f0d5d5;
    border-bottom: 1px solid #f0d5d5;

    transform: rotate(45deg);
}


/* Mobile */
@media (max-width: 700px) {

    .timeline::before {
        left: 15px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;

        left: 0;

        padding-left: 50px;
        padding-right: 0;

        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 6px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -9px;
        right: auto;

        border-left: 1px solid #f0d5d5;
        border-bottom: 1px solid #f0d5d5;

        border-top: none;
        border-right: none;
    }
}

@media (max-width: 600px) {

    .custom-card {
        flex-direction: column;

        margin-top: 30px;
    }

    .card-image {
        width: 100%;
        height: 220px;
        min-height: auto;
    }

    .card-content {
        width: 100%;
        padding: 25px;
    }

    /* .vision-mission{
        div{
            grid-template-columns: 1fr;
        }
    } */
}