* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-height: 70px;
}

:root button {
    border: none;
}

body {
    padding-top: var(--nav-height);
    overflow-x: hidden;
}



.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 {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.box-loader {
    display: flex;
    gap: 10px;
}

.box-loader span {
    width: 20px;
    height: 20px;
    background: teal;
    animation: bounce 0.6s infinite alternate;
}

.box-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.box-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

@keyframes slide-left {
    from {
        transform: translateX(-300px);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slide-down {
    from {
        transform: translateY(-600px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(6000px);
    }

    to {
        transform: translateY(0);
    }
}

.navbars {
    justify-content: space-between;
    padding: 0px 50px;
}

.nav-img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-list li {
    font-weight: bold;
    background-color: teal;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    transition: 0.4s;
}

.nav-list li a {
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
    text-decoration: none;
}

.nav-list li:hover a {
    color: #000;
}

.under-line {
    width: 100%;
    height: 3px;
    background-color: rgb(226, 226, 226);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    background: white;
    list-style: none;
    padding: 10px 0;
    display: none;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li {
    padding: 10px 20px;
    background: none;
}

.dropdown-menu li a {
    color: black;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.carousel-item {
    position: relative;
    height: 600px;
    object-fit: cover;
    object-position: center;
}

.man-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    animation: slide-left 2s linear;
}

.banner-div {
    position: absolute;
    left: 700px;
    top: 150px;
    width: 50%;
    background-color: rgb(0, 0, 0, 0.5);
    color: #fff;
    padding: 20px;
    text-align: center;
    font-family: raleway;
    animation: slide-down 2s linear;
}

.banner-div button {
    padding: 10px 20px;
    font-size: 14px;
}

.banner-cont {
    font-size: 25px;
}

.banner-div .banner-btns {
    padding: 40px 0;
    display: flex;
    gap: 100px;
    justify-content: center;
    font-size: 30px !important;
}

.btns {
    font-size: 40px;
    border: none;
    background-color: transparent;
    display: none;
}

.layer-2 {
    height: 100%;
    padding: 0 200px 200px;
    position: relative;
}

.layer2-overlay {
    position: absolute;
    top: -50px;
    width: fit-content;
    padding: 50px 40px;
    display: flex;
    gap: 20px;
    background-color: #BE3538;
}

.layer2-imgdiv,
.layer2-imgdiv2,
.layer2-imgdiv3 {
    border-radius: 20px;
    color: #000;
    padding: 20px;
    width: 350px;
    background-color: white;
    transition: 0.3s;
    height: fit-content;
}

.layer2-imgdiv:hover,
.layer2-imgdiv2:hover,
.layer2-imgdiv3:hover {
    background-color: teal;
    color: #fff;
}

.layer2-imgdiv img,
.layer2-imgdiv2 img,
.layer2-imgdiv3 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
}

.layer2-box-content {
    padding: 10px 30px;
    text-align: center;
}

.sec-3 {
    padding: 20px;
    background-color: teal;
    display: flex;
    color: #fff;
    align-items: center;
}

.lay3-left,
.lay3-right {
    width: 50%;
}

.sec3-list {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: center;
}

.layer2-box-content button {
    background-color: #BE3538;
    border: none;
    padding: 10px;
}

.layer2-box-content button a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;

}

footer p {
    font-size: 15px;
}

.lay3-left img {
    width: 100%;
}

.lay3-right {
    padding: 0 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.layer-4 {
    padding: 150px 100px;
    background-color: rgb(245, 244, 244);
    display: flex;
    gap: 30px;
    justify-content: center;
}

.lay4-card {
    background-color: #fff;
    border-radius: 20px;
    width: 25%;
    text-align: center;
    min-height: 400px;
    padding: 80px 20px 50px;
    transition: 0.4s;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s;
    text-align: center;
    padding: 20px;
}

.img-box:hover .overlay {
    opacity: 1;
}

.layer-5 {
    text-align: center;
    padding: 20px 0 60px;
}

footer {
    background-color: teal;
    padding: 30px 0;
    text-align: center;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* =========================
   RESPONSIVE SECTION (Absolute Layout)
========================= */

/* Base */
.container {
    width: 100%;
    padding: 10px;
}

.row {
    display: flex;
    flex-direction: column;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.text-center-mobile {
    text-align: center;
}

#topBtn {
    background-color: #BE3538;
    color: #fff;
    border: none;
    outline: none;
    padding: 12px 15px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

#topBtn:hover {
    background-color: teal;
    transform: scale(1.1);
}

/* Large screens */
@media (max-width: 1480px) {
    .layer-2 {
        position: relative;
        padding: 0 120px 200px;
    }

    .layer2-overlay {
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Laptop */

/* Tablet */
@media (max-width: 1000px) {

    .btns {
        display: block;
        font-size: 20px !important;
    }

    .nav-img {
        width: 200px;
    }

    .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;
        font-size: 12px !important;

    }

    .dropdown-menu {
        left: 0;
        width: 100%;
    }

    .layer-2 {
        padding: 0 40px 120px;
        height: fit-content;
        width: 100%;
    }

    .layer2-overlay {
        position: absolute;
        width: 95%;
        top: -40px;
        left: 50%;
        transform: translateX(5%);
        flex-wrap: wrap;
        justify-content: center;
    }

    .layer-4 {

        flex-direction: column;
    }

    .layer2-overlay {
        position: static;
        flex-direction: column;
        height: fit-content;
    }

    .layer2-imgdiv,
    .layer2-imgdiv2,
    .layer2-imgdiv3 {
        width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-img {
        width: 140px;

    }

    .layer-2 {
        padding: 0 20px 100px;
        height: fit-content;
    }

    .layer2-overlay {
        position: static;
        width: 100%;
        transform: translateX(0%);
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .layer2-imgdiv,
    .layer2-imgdiv2,
    .layer2-imgdiv3 {
        width: 100% !important;
    }

    .sec-3 {
        flex-direction: column;
    }

    .lay3-left,
    .lay3-right {
        width: 100%;
    }

    .sec3-list {
        display: flex;
        padding: 10px;
        align-items: center;
    }

    .banner-div {
        width: 100%;
        top: 0;
        left: 0 !important;
    }

    .layer2-overlay {
        width: 100% !important;
    }

    .carousel-item {
        height: auto;
    }

    .navbars {
        justify-content: space-between !important;
        padding: 0 10px;
        align-items: center;
    }

}

/* Small mobile */
@media (max-width: 480px) {
    .layer-2 {
        height: auto;
        padding: 0 15px 80px;
    }

    .layer2-overlay {
        width: 100%;
        transform: translateX(0%);
        padding: 15px;
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .lay3-right {
        padding: 0;
    }

    .layer-4 {
        padding: 20px;
    }

    .banner-div .banner-btns {
        font-size: 10px;
    }

    .banner-cont {
        font-size: 15px;
    }
}

@media (max-width: 1270px) {
    .layer2-overlay {
        width: 95%;
        gap: 20px;
        padding: 30px 20px;
        top: -130px;
        justify-content: center;
    }

    .layer2-imgdiv,
    .layer2-imgdiv2,
    .layer2-imgdiv3 {
        width: 31%;
    }

    .banner-div {
        left: 40%;
    }
}

@media (max-width:350px) {
    .banner-div .banner-btns {
        font-size: 8px;
    }
}