/* Reset + Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header Layout */
header {
    background-color: #0a7994;
    color: white;
    padding: 15px 0;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Logo */
    header h1 {
        font-size: 1.8rem;
        margin: 0;
    }

/* Navigation */
nav {
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

    .nav-links li a {
        text-decoration: none;
        color: white;
        font-weight: bold;
    }

/* Menu Toggle Icon */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #0a7994;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            padding: 10px;
            text-align: right;
        }

            .nav-links li a {
                display: block;
                width: 100%;
            }
}
.slider-container {
    width: 100%; /* Full width */
    height: 550px; /* Fixed height */
    overflow: hidden;
    position: relative;
    margin-bottom: 80px;
    padding: 0; /* Make sure no padding */
    box-sizing: border-box;
}

.slider {
    display: flex;
    width: 100%; /* 3 slides x 100% */
    height: 100%;
    transition: transform 0.8s ease-in-out;
    padding: 0;
    margin: 0;
}

.slide {
    flex: 0 0 100%; /* Exactly 1/3 of slider width */
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    flex-shrink: 0;
}
    
.slide img {
        width: 100%;
        height: 100%;
       
        display: block;
        object-fit: cover;
    }

/* Overlay Text */
.content {
    position: static; /* or simply remove this line */
    max-width: 90%;
    margin: 20px auto; /* center horizontally with margin */
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}


    .content h2 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: #0a7994;
    }

    .content p {
        font-size: 1.2rem;
        color: #333;
    }

footer {
    background-color: #0a7994;
    color: white;
    padding: 30px 0;
}

    footer .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 15px;
    }

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btm-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    flex: 1 1 20px;
}

    .btm-contact img {
        width: 24px;
        height: 24px;
    }

    .btm-contact p {
        margin: 0;
        font-size: 14px;
    }

    .btm-contact a {
        color: white;
        text-decoration: none;
        word-break: break-word;
    }

.smo ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;

}

    .smo ul li img {
        width: 20px;
        height: 20px;
    }

footer .container p {
    text-align: center;
    color: #ccc;
    font-size: 13px;
    margin-top: 20px;
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .btm-contact {
        width: 100%;
        justify-content: flex-start;
    }

    .smo ul {
        justify-content: flex-start;
        margin-top: 10px;
    }

        .smo ul li {
            padding: 0;
        }
}


@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0a7994;
        margin-top: 10px;
    }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            width: 100%;
        }

            .nav-links li a {
                display: block;
                width: 100%;
                padding: 10px 20px;
                background-color: #0a7994;
                border-radius: 4px;
            }

    .slider-container {
        height: 300px;
    }

    .content {
        max-width: 95%;
        padding: 15px;
    }

        .content h2 {
            font-size: 1.6rem;
        }

        .content p {
            font-size: 1rem;
        }

    .flex-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .btm-contact {
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .content h2 {
        font-size: 1.3rem;
    }

    .content p {
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .btm-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .smo ul {
        justify-content: flex-start;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}
.about-img {
    display: block;
    margin: 20px auto; /* centers the image horizontally and adds vertical spacing */
    max-width: 100%; /* responsive width */
    height: auto; /* maintain aspect ratio */
    border-radius: 8px; /* optional rounded corners */
}

/* services */

.text-center {
    text-align: center;
    margin-bottom: 30px;
    color: #0a7994;
    font-weight: 700;
    font-size: 2rem;
    padding: 30px;
}

.grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center; /* center cards horizontally */
    margin-top: 20px;
}

.card {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 280px; /* flex-grow, shrink, basis */
    max-width: 320px;
    transition: box-shadow 0.3s ease;
    cursor: default;
}

    .card:hover {
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .card h3 {
        margin-bottom: 10px;
        color: #0a7994;
    }

    .card p {
        font-size: 1rem;
        color: #555;
        line-height: 1.4;
    }


.about-img {
    display: block;
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
}

.side-by-side-section1 {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap; /* ensures responsiveness */
}

    .side-by-side-section1 .image-container,
    .side-by-side-section1 .text-container {
        flex: 1 1 300px; /* flexible width with min 300px */
    }

        .side-by-side-section1 .image-container img {
            width: 100%;
            max-width: 100%;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            object-fit: cover;
        }

        .side-by-side-section1 .text-container h2 {
            font-size: 1.6rem;
            color: #0a7994;
            margin-bottom: 15px;
        }

        .side-by-side-section1 .text-container p {
            font-size: 1rem;
            line-height: 1.6;
            color: #444;
        }

/* Responsive stacking on smaller screens */
@media (max-width: 768px) {
    .side-by-side-section1 {
        flex-direction: column;
        text-align: center;
    }

        .side-by-side-section1 .image-container,
        .side-by-side-section1 .text-container {
            flex: 1 1 100%;
        }
}

.ceo-photo .team-photo {
    max-width: 250px; /* smaller size for CEO image */
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .ceo-photo .team-photo {
        max-width: 200px;
    }
}

/* Flex container for image + text side by side */
.team-photos {
    display: flex;
    align-items: center;
    justify-content: center; /* center horizontally */
    gap: 30px; /* spacing between items */
    flex-wrap: wrap; /* wrap on narrow screens */
}

/* Image and text containers share available space */
.image-container,
.text-container {
    flex: 1 1 300px; /* flexible, min width 300px */
}

/* Team photo and certificate images styling */
.team-photo {
    width: 100%;
    max-width: 350px; /* limit max size */
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

/* Paragraph styling inside text container */
.text-container p {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

/* For certificate containers */
.certificate {
    max-width: 200px; /* smaller width for certificates */
    flex: 1 1 200px; /* flexible but smaller */
    text-align: center;
    margin-bottom: 10px;
}

/* Center headings like "Meet Our Team" or "Certificates" */
.text-center {
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 768px) {
    .team-photos {
        flex-direction: column;
    }

    .image-container,
    .text-container,
    .certificate {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .team-photo {
        max-width: 100%;
    }
}


/* Responsive Navbar */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #0a7994;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        z-index: 99;
        padding: 10px 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 10px 20px;
        text-align: right;
    }

    .nav-links li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .container {
        position: relative;
    }
}





.countup-section {
    display: flex;
    justify-content: space-around;
    padding: 50px 20px;
    background-color: rgba(10, 121, 148, 0.2);
    font-family: Arial, sans-serif;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 30px;
    margin-bottom: 30px;
}

.countup-box {
    text-align: center;
    flex: 1 1 150px; /* Grow and shrink, min width 150px */
    margin: 10px;
}

.countup-number {
    font-size: 48px;
    color: #0a7994;
    font-weight: bold;
}

.countup-label {
    font-size: 18px;
    margin-top: 10px;
    color: #333;
}

/* Responsive for small screens */
@media (max-width: 600px) {
    .countup-section {
        flex-direction: column;
        padding: 30px 10px;
    }

    .countup-box {
        margin: 15px 0;
    }

    .countup-number {
        font-size: 36px;
    }

    .countup-label {
        font-size: 16px;
    }
}



.side-by-side-section {
    
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-container,
.text-container {
    flex: 1; /* equal width */
}

    .image-container img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        display: block;
    }

/* Responsive: stack vertically on smaller screens */
@media (max-width: 768px) {
    .side-by-side-section {
        flex-direction: column;
    }

    .image-container,
    .text-container {
        width: 100%;
    }

    .image-container {
        margin-bottom: 20px;
    }
}


.contact-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 40px;
}

.contact-details {
    flex: 1 1 300px;
}

.contact-map {
    flex: 1 1 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
    }

    .contact-map iframe {
        height: 300px;
    }
}

