@import url('https://fonts.googleapis.com/css?family=Lora:700');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');

* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.card a.card-link {
    display: block;
    /*width: 100%;
    height: 100%;*/
    text-decoration: none;
    color: inherit;
}

.card {
    cursor: pointer;
}


/* to remove gap between check our company profile and footer */
.pb-3, .py-3 {
    padding-bottom: 0 !important;
}
.main-container {
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

.main-container-first {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-container-first-text {
    padding: 34px 0 1rem 0;
    width: 85%;
    color: #175BA7;
    /*margin-left:10rem !important;*/
    margin-left:16rem !important;

}
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 3.5rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 3rem !important;
    }
/* Larger than 1920x1080 screens */
@media screen and (min-width: 1921px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 4rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 3.5rem !important;
    }
}

/* Exactly 1920x1080 range */
@media screen and (min-width: 1920px) and (max-width: 1920px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 3.5rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 3rem !important;
    }
}

/* Extra large devices (large desktops) */
@media screen and (min-width: 1400px) and (max-width: 1919px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 3.2rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 2.7rem !important;
    }
}

/* Large devices (desktops) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 3rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 2.5rem !important;
    }
}

/* Medium devices (tablets and small desktops) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 2.8rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 2.3rem !important;
    }
}

/* Small devices (tablets) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 2.5rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 2rem !important;
    }
}

/* Extra small devices (landscape phones) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .sub-container-first-text h1 {
        font-weight: 600 !important;
        font-size: 2rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 1rem !important;
    }
}

/* Very small devices (portrait phones) */
@media screen and (max-width: 575px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 1rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 1.6rem !important;
    }
}

/* Extra small phones */
@media screen and (max-width: 375px) {
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 1.8rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 1.4rem !important;
    }
}






.main-container-second {
    margin: 3rem 0 57px 0;
}

.main-container-second-cards {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards-container-second {
    width: 90%;
    max-width: 1400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    padding: 1rem;
}

.card {
    padding: 20px;
    position: relative;
    width: 15rem;
    height: 15rem;
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

   

    /* Bottom-Right Borders */
    .card::before,
    .card::after {
        content: "";
        position: absolute;
        background: rgb(57, 57, 205);
        transition: 0.3s linear;
    }

    /* Bottom border (moves left) */
    .card::before {
        bottom: 0;
        right: 0;
        width: 0;
        height: 3px;
        border-bottom-right-radius: 15px;
        transition: width 0.3s linear;
    }

    /* Right border (moves up) */
    .card::after {
        bottom: 0;
        right: 0;
        width: 3px;
        height: 0;
        border-bottom-right-radius: 15px;
        transition: height 0.3s linear 0.3s;
    }

    /* Hover Effect */
    .card:hover::before {
        width: 100%;
    }

    .card:hover::after {
        height: 100%;
    }

    /* Top-Left Borders */
    .card span::before,
    .card span::after {
        content: "";
        position: absolute;
        background: rgb(52, 52, 213);
        transition: 0.3s linear;
    }

    /* Top border (moves right) */
    .card span::before {
        top: 0;
        left: 0;
        width: 0;
        height: 3px;
        border-top-left-radius: 15px;
        transition: width 0.3s linear 0.6s;
    }

    /* Left border (moves down) */
    .card span::after {
        top: 0;
        left: 0;
        width: 3px;
        height: 0;
        border-top-left-radius: 15px;
        transition: height 0.3s linear 0.9s;
    }

    .card:hover span::before {
        width: 100%;
    }

    .card:hover span::after {
        height: 100%;
    }

    /* Text Styling */
    .card h1 {
        font-family: 'Lora', serif;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .card img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
        filter: invert(48%) sepia(79%) saturate(2475%) hue-rotate(188deg) brightness(95%) contrast(87%);
        object-fit: contain;
    }

    .card h2 {
        color: #333;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .card a {
        display: inline-block;
        padding: 8px 16px;
        background-color: white;
        color: #007bff;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .card a:hover {
            color: #0056b3;
        }

.main-container3 {
    background-color: #1C8ECE;
   /* padding: 3rem 1rem;*/
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .main-container3 img {
        width: 100%;
        max-width: 800px;
        height: auto;
    }

/* fourth container */
.main-container4 {
    width: 100%;
    background-color: #D9D9D9;
    min-height: 7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.sub-container4 {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    /*gap: 3rem;*/
}

.sub-container4-text {
    font-size: 33px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #0056b3;
}

.sub-container4-image {
    position: relative;
    display: inline-block;
    height: auto;
}

    .sub-container4-image img {
        width: 22rem;
        max-width: 100%;
        height: auto;
    }

.sub-container4-img-inner-text {
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

/* Extra large devices (large desktops) */
@media screen and (min-width: 1400px) {
    .cards-container-second {
        max-width: 1600px;
    }

    .card {
        width: 18rem;
        height: 18rem;
    }

        .card img {
            width: 100px;
            height: 100px;
        }

        .card h2 {
            font-size: 20px;
        }
}

/* Large devices (desktops) */
@media screen and (max-width: 1200px) {
    .cards-container-second {
        gap: 3rem;
    }

    .sub-container4-text {
        font-size: 28px;
    }
}



/* Medium devices (tablets) */
@media screen and (max-width: 992px) {
    .cards-container-second {
        gap: 2rem;
    }

    .card {
        width: 14rem;
        height: 14rem;
    }

        .card img {
            width: 70px;
            height: 70px;
        }

        .card h1 {
            font-size: 18px;
        }

        .card h2 {
            font-size: 16px;
        }

    .sub-container4-text {
        font-size: 26px;
    }

    .sub-container4-image img {
        width: 18rem;
    }

    .sub-container4-img-inner-text {
        font-size: 18px;
    }
}

/* Small devices (landscape phones) */
@media screen and (max-width: 768px) {
    .sub-container-first-text {
        width: 90%;
        padding: 25px 0 1rem 0;
    }

    .main-container-second {
        margin: 2rem 0 40px 0;
    }

    .cards-container-second {
        width: 95%;
        gap: 1.5rem;
    }

    .card {
        width: 12rem;
        height: 12rem;
    }

        .card img {
            width: 60px;
            height: 60px;
        }

        .card h1 {
            font-size: 16px;
        }

        .card h2 {
            font-size: 15px;
            margin-bottom: 8px;
        }

        .card a {
            padding: 6px 12px;
            font-size: 14px;
        }

    .sub-container4 {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .sub-container4-text {
        font-size: 24px;
    }

    .sub-container4-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

        .sub-container4-image img {
            width: 100%;
            max-width: 18rem;
        }
}

/* Extra small devices (portrait phones) */
@media screen and (max-width: 576px) {
    .sub-container-first-text {
        width: 95%;
        /*padding: 20px 0 0.8rem 0;*/
        padding: 20px 250px 0.8rem 5px;
    }

    .main-container-second {
        margin: 1.5rem 0 30px 0;
    }

    .cards-container-second {
        gap: 1.2rem;
    }

    .card {
        width: 100%;
        max-width: 15rem;
        height: auto;
        min-height: 12rem;
        padding: 15px;
    }

        .card h1 {
            font-size: 15px;
            margin-bottom: 8px;
        }

        .card img {
            width: 50px;
            height: 50px;
            margin-bottom: 8px;
        }

        .card h2 {
            font-size: 14px;
            margin-bottom: 6px;
        }

    .sub-container4-text {
        font-size: 20px;
    }

    .sub-container4-img-inner-text {
        font-size: 16px;
    }
}

/* Very small devices */
@media screen and (max-width: 375px) {
    .sub-container-first-text {
        width: 95%;
       /* padding: 15px 0 0.5rem 0;*/
        padding: 15px 10 0.5rem 0;
    }

    .cards-container-second {
        gap: 1rem;
    }

    .card {
        max-width: 100%;
        min-height: 10rem;
        padding: 10px;
    }

        .card img {
            width: 45px;
            height: 45px;
            margin-bottom: 6px;
        }

        .card h1 {
            font-size: 14px;
            margin-bottom: 6px;
        }

        .card h2 {
            font-size: 13px;
            margin-bottom: 5px;
        }

        .card a {
            padding: 5px 10px;
            font-size: 12px;
        }

    .sub-container4-text {
        font-size: 18px;
    }

    .sub-container4-img-inner-text {
        font-size: 14px;
    }
}
@media screen and (min-width: 1500px) {
    .cards-container-second {
        max-width: 1700px;
        gap: 6rem;
    }

    .card {
        width: 20rem;
        height: 20rem;
    }

        .card img {
            width: 110px;
            height: 110px;
        }

        .card h1 {
            font-size: 22px;
        }

        .card h2 {
            font-size: 20px;
        }

    .sub-container4-text {
        font-size: 36px;
    }

    .sub-container4-image img {
        width: 24rem;
    }

    .sub-container4-img-inner-text {
        font-size: 22px;
    }
}


@media screen and (min-width: 1920px) {
    .cards-container-second {
        max-width: 1800px;
        gap: 7rem;
    }

    .card {
        width: 22rem;
        height: 22rem;
    }

        .card img {
            width: 120px;
            height: 120px;
        }

        .card h1 {
            font-size: 24px;
        }

        .card h2 {
            font-size: 22px;
        }

    .sub-container4-text {
        font-size: 40px;
    }

    .sub-container4-image img {
        width: 21rem;
    }

    .sub-container4-img-inner-text {
        font-size: 20px;
    }
}
/* For screens with width between 1330px and 1420px */
@media screen and (min-width: 1330px) and (max-width: 1420px) {
    /* Text styling consistent with larger screens */
    .sub-container-first-text h1 {
        font-weight: 700 !important;
        font-size: 3.1rem !important;
    }

    .sub-container-first-text h2 {
        font-weight: 400 !important;
        font-size: 2.6rem !important;
    }
    
    /* Cards container styling */
    .cards-container-second {
        max-width: 1200px;
        width: 90%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4rem;
    }

    /* Card size and styling */
    .card {
        width: 16rem;
        height: 16rem;
        margin-bottom: 1rem;
    }
    
    /* First row - 3 cards */
    .cards-container-second .card:nth-child(-n+3) {
        flex: 0 0 auto;
    }
    
    /* Second row - 2 cards with specific positioning */
    .cards-container-second .card:nth-child(4),
    .cards-container-second .card:nth-child(5) {
        margin-left: 4rem;
        margin-right: 4rem;
    }
    
    /* Maintain consistent styling for card elements */
    .card img {
        width: 85px;
        height: 85px;
    }

    .card h2 {
        font-size: 18px;
    }
    
    /* Container spacing consistent with other breakpoints */
    .main-container-second {
        margin: 2.5rem 0 50px 0;
    }
}
/* For screens with width greater than 1880px */
@media screen and (min-width: 1850px) {
    /* Cards container layout */
    .cards-container-second {
        width: 90%;
        max-width: 1900px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7rem;
    }

    /* Set fixed width for all cards */
    .card {
        width: 24rem;
        height: 24rem;
        flex: 0 0 auto;
    }

    /* Clear margins that might be affecting layout */
    .cards-container-second .card {
        margin: 0;
    }

        /* Ensure first row has 3 cards by giving them all the same width */
        .cards-container-second .card:nth-child(1),
        .cards-container-second .card:nth-child(2),
        .cards-container-second .card:nth-child(3) {
           /* margin-bottom: 7rem;*/
        }

        /* Create space between the two cards in second row */
        .cards-container-second .card:nth-child(4) {
        /*    margin-right: 7rem;*/
        }

        .cards-container-second .card:nth-child(5) {
            /*margin-left: 7rem;*/
        }

    /* Larger card content for bigger screens */
    .card img {
        width: 130px;
        height: 130px;
    }

    .card h2 {
        font-size: 24px;
    }
}