@keyframes appear {
    from {
        opacity: 0.5;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes scrollup {
    to {
        top: 0px;
    }
}

.background {
    position: relative;
    width: 100%;
}

.backgroundimage {
    position: relative;
    height: 100vh;
    width: 100%;
    object-fit: cover;
    filter: brightness(65%);
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;

}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    width: 100%;
    padding: 0 20px;
}

.title {
    font-size: 60px;
    font-family: "Georgia", serif;
    margin-bottom: 15px;
    font-weight: bold;
    color: #f5f5f5;
}

.subtitle strong {
    font-size: 24px;
    font-family: "Segoe UI", sans-serif;
    color: antiquewhite;
    display: inline-block;
}

.branch {
    font-size: 50px;
    font-family: "Segoe UI", sans-serif;
    margin-top: 10px;
    color: #e0e0e0;
}

.aboutiith {
    background-color: #0c1a2b;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
    max-width: 80%;
    /* height: 500px; */
    margin: 40px auto;
    padding: 20px;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
}

.container.card-content {
    /* flex: 0 0 65%; */
    background-color: #0c1a2b;
    /* padding: 10px; */
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.iithimage {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iithimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.div-2 {
    /* background-color: transparent; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 25px; */
    height: 80%;
    width: 80%;
    margin: 40px auto;
    /* padding: 0 20px; */
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 10%;
}

/* .div-3 {
    margin: 10px auto;
    max-width: 1000px;
    padding: 10px;
    margin-bottom: 40px;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.div-3-text {
    background-color: #0c1a2b;
    width: 80%;
    padding: 20px;
    border-radius: 20px;
    
} */

.card-content {
    flex: 1 1 60%;
    /* width: 50%; */
    box-sizing: content-box;
    background-color: #0c1a2b;
    padding: 20px 18px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-side-image-container {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
}

.card-side-image {
    flex: 1 1 60%;
    max-height: 450px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-bottom-image {
    flex: 0 0 40%;
    max-height: 450px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-side-image img {
    width: 100%;
}

.card-bottom-image img {
    width: 100%;
    /* height: 100%; */
    /* object-fit: cover; */
    /* border-radius: 15px; */
}

#aboutiith,
#aboutcoe {
    scroll-margin-top: 100px;
}

#announcements {
    scroll-margin-top: 100px;
}

.video {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -200px;
    margin-bottom: 100px;
    position: relative;
}

.video .title {
    color: black;
    font-size: 30px;
}

.video .player {
    width: 560px;
    margin: 20px auto;
}

.video .player iframe {
    width: 100%;
    /* height: 315px; */
}

@media (max-width: 1400px) {
    .video {
        margin-top: -100px;
    }
}

@media (max-width: 1020px) {
    .div-2 {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    .aboutiith {
        height: 100%;
    }

    .container.card-content,
    .card-side-image-container {
        flex: none;
        width: 90%;
        /* height: 100%; */
    }

    .card-content {
        padding: 15px;
        font-size: 0.9rem;
    }

    .card-side-image img {
        width: 80%;
    }

    .card-bottom-image img {
        width: 100%;
    }

    .video {
        margin-top: 100px;
    }
}

@media (max-width:790px) {
    .card-side-image img {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .title {
        font-size: 40px;
    }

    .subtitle strong {
        font-size: 15px;
    }

    .branch {
        font-size: 35px;
    }

    .aboutiith {
        width: 90%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .aboutiith {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    .iithimage {
        flex: none;
        width: 100%;
    }

    .card-content {
        padding: 15px;
        width: 80%;
    }

    .iithimage img {
        height: 250px;
    }
}

@media (max-width:560px) {
    .video {
        /* width: 90vw; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .video .player {
        width: 90vw;
    }
}

@media (max-width: 480px) {
    .div-2 {
        display: flex;
        flex-direction: column;
    }

    .aboutiith {
        padding: 10px;
        margin: 20px auto;
    }

    .container.card-content {
        padding: 10px;
    }

    .iithimage img {
        height: 200px;
    }

    .div-2 {
        padding: 10px;
        margin: 20px auto;
    }

    .card-content {
        padding: 10px;
        font-size: 0.85rem;
    }

    .card-side-image,
    .card-bottom-image {
        max-height: 200px;
    }

    .card-side-image img,
    .card-bottom-image img {
        max-height: 200px;
    }

    .title {
        font-size: 30px;
    }

    .subtitle strong {
        font-size: 14px;
    }

    .branch {
        font-size: 25px;
    }
}