*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
.top-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    background-color: #8089b8;
}
.top-bar span i {
    margin-right: 5px; /* Add margin between the icon and the text */
}
.top-bar span{
    color: #fff;
}
.top-bar ul{
    list-style: none;
    display: flex;
    margin-right: 5px;
}
.top-bar li{
    margin: 0px 5px;
}
.top-bar a{
   color: #fff;
}
.top-bar a:hover{
    color: #222;
}
.top-bar ul li a i.fab {
    color: #fff;
    margin: 0 13px;
    cursor: pointer;
    padding: 8px 0;
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/banner.png);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 2%, 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width:150px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
/* Add this to your existing CSS or create a new CSS file and link it to your HTML */

/* Dropdown container */
.dropdown {
    display: inline block;
    position: relative;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    padding: 20px 14px;
    background-color: #dc4d3c; /* Updated background color */
    min-width: 150px; /* Adjusted minimum width for equal spacing */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: center; /* Center align the content */
}

/* Show the dropdown menu when the dropdown content is hovered over */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Style for each dropdown item */
.dropdown-content li {
    padding: 12px 0; /* Adjusted padding */
    text-decoration: none;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center align horizontally */
    color: #fff; /* Changed text color to white */
    cursor: pointer; /* Change cursor to pointer on hover */
}

/* Style for each dropdown item on hover */
.dropdown-content li:hover {
    background-color: #b73626; /* Darker color on hover */
}

/* Style for the dropdown toggle */
.dropdown a {
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    text-decoration: none;
    color: #fff;
}

/* Style for the dropdown toggle icon */


@media screen and (max-width: 700px) {
    .dropdown-content {
        min-width: 100%; /* Set the minimum width to 100% for full-width dropdown */
        left: 0; /* Position the dropdown to the left edge */
        padding: 0; /* Remove padding to make it flush with the navbar */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
    }

    .dropdown-content li {
        padding: 8px 12px; /* Adjusted padding */
        text-align: center; /* Center align the dropdown items */
    }

    .dropdown-content li:first-child {
        border-top: none; /* Remove top border for the first dropdown item */
    }

    .dropdown-content li:last-child {
        border-bottom: none; /* Remove bottom border for the last dropdown item */
    }
}
#text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
/*#text-box h1{
    font-size: 62px;
    line-height: 70px; 
}
#text-box h1 h2{
    font-size: 24px;
    line-height: 70px; 
}

#text-box p{
    margin: 10px 0 40px;
    font-size: 18px;
    line-height: 24px;
    color: #fff;
}
#text-box h1 span{
    color: #dc4d3c;
    font-weight: 500;
} */
#text-box h1 {
    font-size: 62px;
    line-height: 70px;
}

#text-box .subtitle {
    font-size: 24px;
    color: #fff; /* Adjust color if needed */
    font-weight: 600;
}

#text-box .sub {
    color: #dc4d3c; /* Adjust color if needed */
}

#text-box p {
    margin: 10px 0 20px;
    font-size: 20px;
    line-height: 24px;
    color: #fff;
}

#text-box h1 span {
    color: #dc4d3c; /* Adjust color if needed */
    font-weight: 500;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid;
    padding: 13px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
nav .fas{
    display: none;
}

@media(max-width:700px){
    .text-box h1{
        font-size: 20px;
        line-height: 1.4;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fas{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }
}
/* service */
.service{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color:#333;
    font-size: 19px;
    font-weight: 500;
    line-height: 22px;
    padding: 10px;
}
/* .row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
} */
/* .service-col{
    flex-basis: 31%;
    background: #fffff3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
} */
.row {
    margin-top: 5%;
    display: flex;
    flex-wrap: wrap; /*Allows items to wrap to the next line */
    justify-content: space-between;
}

.service-col {
    flex-basis: calc(31% - 20px); /* Adjusted width to account for margin */
    background: #8089b8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

.service-col:hover {
    box-shadow: 0 0 20px 0px rgba(66, 66, 66, 0.2) !important;
}

.service-col .child {
    flex-basis: calc(31% - 20px); 
    margin: 0 auto;
}
/* Center the service columns */

h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

/* For smaller screens, you can adjust the width of service columns */
@media screen and (max-width: 768px) {
    .service-col {
        flex-basis: calc(50% - 20px); /* Two columns in a row */
    }
}

/* For even smaller screens, you can adjust the width further */
@media screen and (max-width: 480px) {
    .service-col {
        flex-basis: 100%; /* One column in a row */
    }
}
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}


/* location */
.location{
    width:80%;
    margin: auto;
    text-align: center;
}
.location-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.location-col img{
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width:100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background: rgba(226,0,0,0.7);
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color:#fff;
    font-size: 26px;
    bottom: 0;
    left:50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}
.map-button {
    display: none;
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 10px 20px;
    background-color: #fff;
    color: #b73626;
    text-decoration: none;
    font-weight: 400;
    border: none;
    border-radius: 5px;
}

.location-col {
    position: relative;
    overflow: hidden;
}

.location-col:hover .map-button {
    display: block;
}

.layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
    padding: 10px;
    transition: 0.5s ease;
    opacity: 0;
}

.location-col:hover .layer {
    opacity: 1;
}

/* lab facilities */
.lab{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
.lab-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5px;
    text-align: left;
}
.lab-col img{
    width: 100%;
    border-radius: 10px;
}
.lab-col p{
    padding: 0;
}
.lab-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}
/* testimonials */
/* .testimonials{
    width: 80%;
    margin: auto;
    padding-top:100px;
    text-align: center;
}
.testimonials-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonials-col img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonials-col p{
    padding: 0;
}
.testimonials-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonials-col .fas{
    color: #f44336;
}
@media(max-width:700px){
    .testimonials-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
} */
/* cta */
.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/banner2.jpeg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}
@media(max-width:700px){
    .cta h1{
        font-size: 24px;
    }
}
/* footer */
.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
}
.footer h4{
    margin-bottom: 12px;
    margin-top: 20px;
    font-weight: 600;
}
.icons1 .fab{
    color:#f44336;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}
.icons1 a {
    text-decoration: none; /* Remove underline */
}
.des{
    opacity:0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0px 5px;
}

/* about us */
.subheader{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/background.jpeg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}
.subheader h1{
    margin-top: 100px;
}
.about-us{
    width: 80%;
    margin: auto;
    padding-top: 30px;
    padding-bottom: 10px;
}
.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
}
.about-col img{
    width: 100%;
}
.about-col h1{
    padding-top: 5px;
}
.about-col p{
    line-height: 1.2;
    font-size: 22px;
    font-weight: 500;
    padding: 15px 0 25px;
}
.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}
.red-btn:hover{
    color: #fff;
}

/* contact us page */
.locationmap{
    width: 80%;
    margin: auto;
    padding: 20px 0;
}
.locationmap iframe{
    width: 100%;
}
.contact-us{
    width: 70%;
    margin: auto;
}
/* .contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}
.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
} */
.contact-col div .fas{
    font-size: 28px;
    color: #f44336;
    margin: 5px;
    margin-right: 30px;  
}
.contact-col div p{
    padding: 0;
}
.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color:#555;
    font-weight: 400;
}
/* trial */
.contact-col {
    flex-basis: 100%; /* Set flex basis to 100% to ensure each column spans the full width */
    margin-bottom: 30px;
}

.contact-col > div {
    display: flex;
    flex-direction: column; /* Display children vertically */
    align-items: flex-start; /* Align children to the start (left) */
}
.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
   
}
.lab-col h3 {
    font-size: 20px;
    color: #333;
}
.lab h1{
    font-size: 36px;
    font-weight: 600;
    color: #333;
}
/* get a quote working form */

.container {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/banner.png);
    background-position: center;
    background-size: cover;
    position: relative;
    width: 100%;
    min-height: 100vh; /* Adjusted min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden; /* Added to hide the vertical scrollbar */
}
.homepage {
    text-align: center; /* Center align the content */
    padding: 0;

}

.homepage p {
    display: inline-block; /* Display the link as inline-block */
    margin: 0; /* Remove default margin */
}

.homepage p a {
    color: #222; /* Set link color */
}

.contact-title hr {
    border: none;
    width: 100%;
    max-width: 200px; /* Adjusted max-width */
    height: 5px;
    background-color: #8089b8;
    border-radius: 10px;
    margin: 0 auto; /* Center the hr horizontally */
    margin-bottom: 20px;
}

.contact-inputs {
    width: 100%;
    height: 45px; /* Adjusted height */
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    border-radius: 50px;
    margin-bottom: 15px;
    box-sizing: border-box; /* Adjusted box-sizing */
}

.contact-inputs:focus {
    border: 2px solid #7286e9;
}

.contact-inputs:focus::placeholder {
    color: transparent;
}

textarea[name="message"] {
    height: 100px; /* Adjusted height */
    padding-top: 15px;
}

form {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center form items horizontally */
    padding: 20px;
    width: 100%;
    max-width: 450px; /* Adjusted max-width */
    border-radius: 10px;
}

form h3 {
    color: #555;
    font-weight: 800;
    margin-bottom: 20px;
}

form input,
form textarea {
    width: calc(100% - 30px); /* Adjusted width */
    padding: 15px;
    outline: none;
    background: #f5f5f5;
    font-size: 16px;
}

form button {
    padding: 15px;
    background: #f44336;
    color: #fff;
    font-size: 18px;
    border: 0;
    outline: none;
    cursor: pointer;
    width: 150px;
    border-radius: 30px;
}
.card-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 100px;
}
.card{
    width:325px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
    margin: 20px;
}
.card img{
    width: 100%;
    height: auto;
}
.card-content{
    padding:16px;
}
.card-content h3{
    font-size: 28px;
    margin-bottom: 8px;
    color: #222;
}
.card-content p{
    color: #666;
    font-size: 15px;
    line-height: 1.3;  
}
.card-content .btn{
    display: inline-block;
    padding: 8px 16px;
    background-color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 16px;
    color:#ccc
}
/* Existing CSS styles */
/* Add media query for screens smaller than 700px */
@media screen and (max-width: 700px) {
    /* Adjustments for top-bar */
    .top-bar {
        padding: 10px 12px; /* Adjust padding */
    }
    .top-bar span,
    .top-bar ul {
        margin-right: 0; /* Remove margin */
    }
    .top-bar ul li {
        margin: 0 5px; /* Adjust margin */
    }
    .top-bar a {
        font-size: 10px; /* Decrease font size */
    }
}


/* Add media query for screens smaller than 700px */
@media screen and (max-width: 700px) {
    
    
   
    
    /* Adjustments for #text-box */
    #text-box {
        top: 50%;
    }
    #text-box h1 {
        font-size: 36px;
        line-height: 42px;
    }
    #text-box .subtitle {
        font-size: 18px;
    }
    #text-box .sub {
        font-size: 36px;
    }
    #text-box p {
        font-size: 16px;
    }
    
    /* Adjustments for .service-col */
    .service-col {
        flex-basis: calc(50% - 20px);
    }
    
    /* Adjustments for .location-col */
    .location-col {
        flex-basis: 100%;
    }
    .map-button {
        bottom: 10%;
    }
}

/* Additional media queries for smaller screen sizes if needed */
@media screen and (max-width: 700px) {
    
    .menu-icon {
        display: block;
        position: absolute;
        right: 6%;
        font-size: 24px;
        cursor: pointer;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2% 6%;
    }
    nav img {
        width: 125px; /* Smaller logo size */
        margin-bottom: 10px; /* Space between the logo and the text */
    }
    .nav-links ul li a {
        font-size: 11px; /* Reduced font size */
    }

    
}
