/* General Styling */
.timeline {
    width: 90vw; 
    max-width: 1200px; 
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

.headingo {
    margin-top: 20px;
}

.outer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.container {
    width: 30%; 
    min-height: 200px;
    border: 1px solid #ddd; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    box-sizing: border-box;
    background-color: #e6f7ff; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    margin-bottom: 20px; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    padding-bottom: 10px;
}

.container:nth-child(3n) {
    margin-right: 0; /* Remove right margin for every 3rd container */
}

.container:hover {
    transform: scale(1.02); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}

.text-box {
    display: flex;
    flex-direction: column; 
    flex: 1; 
}

.text-box-details {
    margin-left: 10px; 
    flex: 1; 
    padding: 10px;
}

.other-img {
    width: 100%;
    height: 200px; /* Set a fixed height for uniformity */
    border-radius: 8px 0px 0px 0px;
    margin-bottom: 10px;
    object-fit: cover; /* Ensures images cover the area nicely */
}

.other-date {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.other-location {
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.other-details {
    font-size: 14px;
    line-height: 1.6;
}

.heading {
    text-align: center;
    font-size: 2.5em; 
    font-weight: bold;
    margin-bottom: 40px; 
    color: #333; 
}
.know-more-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #e0f7fa; /* Softer background color */
    color: #007bff; /* Muted text color */
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px; /* Slightly smaller font size */
    border: 1px solid #007bff; /* Thin border for subtle definition */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.m-r{
    margin-right: 5px;
}
.m-t-100{
    margin-top: 100px;
}
.m-b-100{
    margin-bottom: 100px;
}
.other-causes{
    margin-top: 100px;
}

.know-more-btn:hover {
    background-color: #007bff; /* Darker on hover */
    color: #fff; /* White text on hover */
}




/* Responsive Design */
@media screen and (max-width: 768px) {
    .outer {
        flex-direction: column;
        margin-bottom: 20px; /* Space between rows on smaller screens */
    }
    .m-t-100{
        margin-top: 50px;
    }

    .container {
        width: 100%;
        margin: 0 0 20px 0; 
    }

    .text-box {
        flex-direction: column; 
    }

    .text-box-details {
        margin-left: 0; 
        padding:0px 10px;
    }

    .other-img {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .heading {
        font-size: 2em; 
    }

    .container {
        padding: 8px;
        margin: 0 0 15px 0; 
    }

    .other-date {
        font-size: 14px;
    }

    .other-location, .other-details {
        font-size: 12px;
    }
}
