.mySlides {
    display: none;
}

img {
    vertical-align: middle;
}

img.loop {
    /* display: none; */
    max-height: 100vh !important;
}

/* Overlay for text and buttons */
.overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    width: 40%;
    /* max-width: 500px; */
}

/* Heading styling */
.overlay h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Buttons container */
.buttons {
    display: flex;
    gap: 8px;
}

/* Button Styling */
a.btn {
    display: inline-block;
    /* padding: 12px 24px; */
    font-size: 14px;
    font-weight: 600;
    color: white;
    background-color: #3069C5;
    /* Blue background */
    border-radius: 8px;
    /* Rounded corners */
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

a.btn:hover {
    background-color: #1F4E94;
    /* Darker blue on hover */
    transform: scale(1.05);
}

/* Dots container */
.dots-box {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Dot styling */
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Active dot */
.dot.active {
    background-color: white;
}


/* Slideshow container */
.slideshow-box {
    max-width: 100%;
    position: relative;
    margin: auto;
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.active {
    background-color: #717171;
}

/* Fading animation */
.fades {
    animation-name: fade;
    animation-duration: 1.5s;
}

/* Arrows */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 5px;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 1);
}


/* Mission */
.mission-section {
    text-align: center;
    /* padding: 50px 20px; */
    background: white;
    padding: 50px 10%;
}

.mission-title {
    font-size: 2rem;
    font-weight: 700;
    color: #366cb9;
}

.mission-desc {
    font-size: 1rem;
    margin: 10px 0 30px;
    color: #555;
}

/* Mission Cards */
.mission-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Individual Card */
.mission-card {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image Styling */
.mission-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Effect */
.mission-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background: rgba(0, 51, 102, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: bold;
    transition: height 0.3s ease-in-out;
}

/* Icon & Title Alignment */
.icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon Container */
.icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icons */
.icon {
    width: 40px;
}

/* Vertical Line Separator */
.separator {
    width: 2px;
    height: 50px;
    background: yellow;
    display: none;
}

/* Ensure h3 is always visible */
.mission-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    z-index: 2;
}

/* Hide other content initially */
.overlay-content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* On hover, expand overlay & show content */
.mission-card:hover .mission-overlay {
    height: 100%;
    align-items: flex-start;
    padding: 20px;
}

/* Show separator & move icon left */
.mission-card:hover .separator {
    display: block;
}

/* Make content visible */
.mission-card:hover .overlay-content {
    opacity: 1;
    text-align: left;
}

/* Read More Styling */
.read-more {
    text-decoration: none;
    color: yellow;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}


/* ABOUT US */
.about-section {
    text-align: center;
    padding: 50px 10%;
    /* background: white; */
}

/* Section Heading (About Us) */
.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #366cb9;
    margin-bottom: 20px;
}

/* About Content Wrapper */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* Text Content */
.text-container {
    flex: 1;
    max-width: 550px;
    text-align: left;
}

/* Title */
.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #366cb9;
}

/* Yellow Underline */
.title-underline {
    width: 150px;
    height: 5px;
    background: #366cb9;
    margin: 8px 0 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Paragraph Styling */
.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* CTA Button */
.about-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #366cb9;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.about-button:hover {
    background: #001f4d;
}

/* Image Container */
.image-container {
    flex: 1;
    text-align: right;
}

.image-container img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
}


/* Expertise */
.expertise-section {
    /* max-width: 1200px; */
    width: 90%;
    margin: 15px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.section-heading {
    color: #2661a9;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.expertise-container {
    display: flex;
    /* align-items: flex-start; */
    align-items: center;
    justify-content: space-between;
    gap: 30px;

}

.expertise-content {
    flex: 1;
    text-align: left;
}

.expertise-content h3 {
    color: #2661a9;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: justify;
    hyphens: auto;
}

.expertise-content h4 {
    color: #2661a9;
    font-size: 20px;
    margin-bottom: 10px;
}

.expertise-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #333;

}

.expertise-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto;
}

.expertise-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* align-items: flex-start; */
}

.expertise-image img {
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 500px;
    /* Image takes full content height */
    object-fit: cover;
    border-radius: 10px;
}


/* Request a Callback */
.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 20px; */
    padding: 50px 10%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-section {
    flex: 1;
    padding-right: 10px;
}

.text-section h2 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.text-section h2::before {
    content: "";
    position: absolute;
    bottom: -15px;
    height: 2px;
    width: 120px;
    background: #366cb9;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}


.form-section {
    flex: 1;
}

.form-row {
    display: flex;
    margin-bottom: 10px;
}

.form-row input {
    flex: 1;
    margin-right: 10px;
}

.form-row input:last-child {
    margin-right: 0;
}

input[type="text"],
input[type="tel"],
button.reqSubmit {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

button.reqSubmit {
    background-color: #366cb9;
    color: white;
    border: none;
    width: 100%;
    cursor: pointer;
}

button.reqSubmit:hover {
    background-color: #0056b3;
}


@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}


/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
    .text {
        font-size: 11px
    }

    h2.about-title {
        word-break: break-all;
    }

    .title-underline {
        width: 50px;
        height: 5px;
        background: #366cb9;
        margin: 8px 0 20px;
    }
}

/* 
@media screen and (min-width: 900px) {
    .loop {
        height: 575px;
    }

    .text-section {
        flex: 1;
        margin-top: 50px;
        margin-bottom: 70px;
        text-align: left;
        margin-left: 200px;
    }

    .form-section {
        flex: 1;
        margin-right: 100px;
        margin-top: 70px;
        margin-bottom: 70px;
    }
} */

@media (max-width: 768px) {

    .overlay {
        /* display: none; */
        width: 70%;
        left: 5%;
        padding: 15px;
    }

    .overlay h2 {
        font-size: 12px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* Hide next prev button */
    .prev,
    .next {
        display: none;
    }


    .expertise-container {
        flex-direction: column;
        text-align: center;
    }

    .expertise-image {
        order: -1;
        justify-content: center;
        align-items: center;
    }

    .expertise-content ul {
        text-align: left;
        display: inline-block;
    }

    .expertise-image img {
        height: auto;
    }

    .expertise-content h5 {
        font-size: 1rem;
    }

    .title-underline {
        width: 100px;
        height: 5px;
        background: #366cb9;
        margin: 8px 0 20px;
    }

    .contact-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .text-section {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .form-row input {
        width: 100%;
    }

    .form-section {
        width: 100%;
    }

    .text-section {
        width: 100%;
        text-align: justify;
    }

    .contact-box {
        padding: 15px;
    }
}

/* Mobile: Keep Content Always Visible */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column-reverse;
        /* Image First */
        text-align: center;
    }

    .text-container {
        max-width: 100%;
        /* text-align: center; */
    }

    .image-container {
        text-align: center;
    }

    .mission-cards {
        flex-direction: column;
        align-items: center;
    }

    .mission-card {
        width: 90%;
        max-width: 350px;
    }

    .mission-overlay {
        height: 100%;
        align-items: flex-start;
        padding: 20px;
    }

    .separator {
        display: block;
    }

    .overlay-content {
        opacity: 1;
    }
}