* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-height: 70px;
}

body {
    padding-top: var(--nav-height);
}

.navbars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    height: var(--nav-height);
    z-index: 999;
    background: #fff;
    padding: 5px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* PRELOADER FULL SCREEN */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* BOX CONTAINER */
.box-loader {
    display: flex;
    gap: 10px;
}

/* EACH BOX */
.box-loader span {
    width: 20px;
    height: 20px;
    background: teal;
    animation: bounce 0.6s infinite alternate;
}

/* DELAY FOR EACH BOX */
.box-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.box-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ANIMATION */
@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

.navbars {
    justify-content: space-between;
    padding: 0px 50px;
}

/* NAVBAR-LOGO RESIZE HERE */
.nav-img {
    width: 200px;
    max-width: 100%;
    height: auto;
}


.nav-list {
    display: flex;
    /* border: solid; */
    align-items: center;
    list-style-type: none;
    gap: 30px;
}

.nav-list li {
    font-weight: bold;
    width: auto;
    background-color: teal;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    transition: 0.4s;

}

/* NAVLINK HOVER HERE */


.nav-list a {
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
    font-size: 16px;

}

.nav-list li:hover a {
    color: #000;
}

/* UNDERLINE DESIGN HERE */
.under-line {
    width: 100%;
    height: 3px;
    background-color: rgb(226, 226, 226);
}

.dropdown {
    position: relative;
}

/* hidden */
.dropdown-menu {
    position: absolute;
    top: 50px;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    display: none;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* items */
.dropdown-menu li {
    padding: 10px 20px;
    background: none;
}

.dropdown-menu li a {
    color: black;
}

/* show on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.btns {
    display: none;
}

/* BANNER-DESIGN HERE */
.banner {
    background-image: url('../images/tr-up-about.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 400px;
    margin-top: 0px;
}

.banner-left {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.banner-left h1 {
    /* border: solid; */
    width: 100%;
    text-align: center;
    z-index: 999;
    display: flex;
    font-size: 80px;
    color: #fff;
    font-weight: bold;

}

.about-box h1 {
    margin: 0;
    display: flex;
    justify-content: center;
    /* 👈 center align */
    gap: 40px;
    /* 👈 control gap here */
}

/* ABOUT PAGE LAYER-2 DESIGN HERE */
.about-lay2 {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.about-lay2-content {
    padding: 100px 0;
    width: 50%;
    text-align: justify;

}

.about-lay2-content p {
    line-height: 40px;
    font-size: 16px;
}

.about-lay2-content h1 {
    font-size: 40px;
}

.about-lay2-content span {
    font-weight: bold;
}



/* HOME PAGE LAYER-2 */
.layer-2 {
    /* border: solid; */
    height: 100%;
    padding: 20px 20px;
    padding-bottom: 200px;
    text-align: center;
}

.layer-2 p {
    font-size: 16px;
}

.layer2-overlay {

    height: fit-content;
    width: 100%;
    padding: 50px 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    background-color: #BE3538;
}

.about-lay2 {
    /* border: solid; */
    display: flex;
    padding: 0;
}

.about-lay2 img {
    width: 50%;
}

.layer2-imgdiv {
    border-radius: 20px;
    color: #fff;
    padding: 20px;
    width: 350px;
    height: fit-content;
    background-color: teal;
    transition: 0.3s;
}

.layer2-imgdiv2 {

    border-radius: 20px;
    color: #fff;
    padding: 20px;
    width: 350px;
    height: 280px;
    background-color: teal;
    transition: 0.3s;
}

.layer2-imgdiv3 {

    border-radius: 20px;
    color: #fff;
    padding: 20px;
    width: 350px;
    height: 280px;
    background-color: teal;
    transition: 0.3s;
}

.layer2-imgdiv:hover {
    background-color: white;
    color: #000;
}

.layer2-imgdiv3:hover {
    background-color: #fff;
    color: #000;
}

.layer2-imgdiv img {
    width: 300px;
    height: fit-content;
    border-radius: 20px 20px 0px 0px;
}

.layer2-imgdiv2 img {
    width: 300px;
    border-radius: 20px 20px 0px 0px;
}

.layer2-imgdiv3 img {
    width: 300px;
    border-radius: 20px 20px 0px 0px;
}

.layer2-box-content {
    /* color: #fff; */
    padding: 10px 30px;
}


/* LAYER-3 DESIGN HERE */
.layer-3 {
    /* border: solid; */
    display: flex;
    padding: 0px 80px 100px;
}

.lay3-left img {
    width: 100%;
}

.lay3-left {
    /* border: solid; */
    width: 80%;
}

.lay3-right {
    width: 100%;
    padding: 0px 30px;
}

.lay3-right p {
    font-size: 16px;
}

.lay3-list {
    /* border: solid; */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#topBtn {
    background-color: #BE3538;
    color: #fff;
    border: none;
    outline: none;
    padding: 10px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

#topBtn:hover {
    background-color: #055c52;
    transform: scale(1.1);
}

footer {
    background-color: teal;
    padding: 30px 0;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

.btns {
    border: none;
    outline: none;
    background-color: transparent;
}

/* MEDIA QUERY FOR ALL TABLETS */
@media(max-width:1440px) {

    .man-img {
        position: absolute;
        bottom: 0;
        left: 0;
        /* adjust pannalaam */
        width: 30%;
        /* size control */
        animation: slide-left 2s linear;
    }

    .banner-div {
        position: absolute;
        bottom: 0;
        left: 400px;
        height: fit-content;
        top: 200px;
        /* adjust pannalaam */
        width: 50%;
        /* size control */
        background-color: rgb(0, 0, 0, 0.5);
        color: #fff;
        padding: 20px;
        text-align: center;
        animation: slide-down 2s linear;
    }

    .layer2-overlay {

        height: fit-content;
        width: 100%;
        padding: 50px 20px;
        display: flex;
        gap: 20px;
        background-color: #BE3538;
    }

    .layer-2 {
        padding: 20px;
        height: fit-content;
    }

    .layer-3 {
        padding: 90px 20px 80px;
    }

}

@media(max-width:1160px) {

    .layer2-overlay .layer2-imgdiv,
    .layer2-imgdiv2,
    .layer2-imgdiv3 {
        text-align: center;
    }

    .layer2-overlay .layer2-imgdiv img,
    .layer2-imgdiv2 img,
    .layer2-imgdiv3 img {
        width: 150px;
    }

    .layer2-overlay {
        width: 100%;
        left: 100px;
        height: fit-content;
    }

    .layer2-box-content {
        padding: 0;
    }

    .lay3-right {
        width: 80%;
    }

    .layer-4 {
        padding: 20 0px;
    }


}

@media(max-width:1000px) {
    .btns {
        display: block;
        font-size: 18px;
    }

    .nav-list {
        display: none;
        position: absolute;
        z-index: 999;
        left: 0;
        top: 70px;
        padding: 20px;
        width: 100%;
        background-color: #fff;
        animation: slide-down 0.5s linear;
    }

    .nav-list.active {
        display: block;
    }

    .nav-list li {
        background-color: transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
        align-items: center;
    }

    .nav-list li a {
        color: #000;

    }

    .dropdown-menu {
        left: 0;
        width: 100%;
    }

    .man-img {
        display: none;
    }

    .banner-left {
        justify-items: center;
        display: flex;
    }

    .banner-left .div1 {
        position: static;
        padding-left: 200px;
    }

    .banner-left .div2 {
        position: static;
        padding-left: 30px;
    }

    .banner {
        background-size: contain;
        margin-top: -70px;
    }

    .banner-div {
        position: absolute;
        bottom: 0;
        left: 0px;
        height: fit-content;
        top: 0px;
        /* adjust pannalaam */
        width: 100%;
        /* size control */
        background-color: rgb(0, 0, 0, 0.5);
        color: #fff;
        padding: 20px;
        text-align: center;
        animation: slide-down 2s linear;
    }

    .banner-cont {
        font-size: 18px;
    }


    .banner-div .banner-btns {
        padding: 40px 0;
        /* border: solid; */
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .banner-btns .read,
    .cont {
        font-size: 10px;
    }

    .layer2-overlay {
        width: 100%;
        position: static;
        flex-wrap: wrap;
        height: fit-content;
        justify-content: center;
    }

    .about-lay2 {
        flex-direction: column;
        align-items: center;
    }

    .about-lay2 img {
        width: 100%;
    }

    .about-lay2-content {
        padding: 50px 30px;
        width: 100%;

    }

    .layer-3 {
        flex-direction: column;
        align-items: center;
    }

    .sec-3 {
        flex-direction: column;
        padding: 20px;
        height: fit-content;
    }

    .lay3-right {
        padding: 20px;
    }

    .layer-4 {
        flex-direction: column;
        align-items: center;
    }

    .lay4-card {
        width: 60%;
    }

    .img-div {
        grid-template-columns: repeat(1, 1.5fr);
        /* border: solid; */
        justify-items: center;
    }
}

@media(max-width:768px) {
    .nav-img {
        width: 140px;

    }

    .banner {
        background-size: contain;
        margin: -90px;
        margin-bottom: -60px;
    }

    .navbars {
        justify-content: space-between !important;
        padding: 0 10px;
        align-items: center;
    }

    .layer-2 {
        /* border: solid; */
        margin-top: 0;
        padding: 10px;
    }

    .carousel-item {
        height: 30%;
    }

    .lay3-right {
        width: 100%;
    }

    .banner-left .div1 {
        position: static;
        padding-left: 200px;
        font-size: 30px;
    }


    .banner-left .div2 {
        position: static;
        padding-left: 30px;
        font-size: 30px;
    }

    .lay3-left {
        width: 100%;
    }

    .dropdown-menu.show {
        display: block;
        position: static;
        box-shadow: none;
    }

    .layer-4 {
        padding: 30px;
    }

    .lay4-card {
        width: 100%;
    }

    .img-div {
        padding: 20px;
    }

    .img-box {
        width: 100%;
    }

    footer {
        padding: 10px;
    }

    footer p {
        font-size: 10px;
    }

}

@media(max-width:480px) {
    .banner {
        background-size: contain;
        height: 20%;
    }

    .about-lay2-content {
        font-size: 12px;
    }

    .about-lay2-left {
        width: 200px;
    }

    .about-lay2-content h1 {
        font-size: 24px;
    }

    .banner-left h1 {
        font-size: 35px;
    }

    .nav-img {
        width: 110px;
    }

    .banner {
        margin: 0;
        background-size: cover;
    }
}

@media(max-width:425px) {
    .banner {
        background-size: cover;
        background-position: center;
    }

    .about-lay2-content {
        font-size: 12px;
    }

    .about-lay2-left {
        width: 200px;
    }

    .about-lay2-content h1 {
        font-size: 24px;
    }

    .banner-left h1 {
        font-size: 35px;
    }

    .nav-img {
        width: 110px;
    }
}

@media(max-width:321px) {
    .banner {
        background-size: cover;
        height: 20%;
    }

    .about-lay2-content {
        font-size: 12px;
    }

    .about-lay2-left {
        width: 200px;
    }

    .about-lay2-content h1 {
        font-size: 24px;
    }

    .banner-left h1 {
        font-size: 35px;
    }

    .nav-img {
        width: 110px;
    }
}