body {
    font-family: Montserrat, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 20px;
}

.page-container {
    max-width: 1100px; /* Slightly reduced from 1200px */
    margin: 0 auto;
    padding: 0 40px; /* Increased side padding */
}

/* Header section */
.first-container-headline {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #005AA9;
    padding: 2rem 0;
}

.icon-container img {
    width: 50px;
    height: auto;
}

.headline-text h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #005AA9;
}

/* Intro paragraph */
.intro-paragraph {
    font-size: 18px;
    font-family: Montserrat, sans-serif;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #333;
}

/* Service section */
.content-container {
    margin-bottom: 3rem;
}

.service-section {
    display: flex;
    gap: 40px; /* Increased gap between image and list container */
    justify-content: space-between;
}

.service-image {
    flex: 0 0 45%; /* Reduced width for image container */
    max-width: 45%;
}

    .service-image p {
        margin-top: 1rem;
        font-size: 18px;
        line-height: 1.5;
        color: #333;
        font-family: Montserrat, sans-serif;
    }

.service-image-main {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.item-center {
    display: flex;
    flex-direction: column;
}

.service-details {
    font-family: Montserrat, sans-serif;
    background: #004080;
    padding: 1.5rem 2rem;
    color: white;
    border-radius: 8px;
    flex: 0 0 45%; /* Reduced width for list container */
    max-width: 45%;
    min-height: 400px;
    height: auto;
    overflow: visible;
    font-size: 18px;
}

.service-heading {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: white;
}

.service-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

    .service-list li {
        font-size: 14px;
        font-weight: 400;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

.sub-list {
    list-style-type: circle;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

    .sub-list li {
        font-size: 14px;
        margin-bottom: 0.3rem;
    }

/* Navigation buttons section */
.nav-buttons-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 1rem;
    padding: 0 5%;
}

/* Navigation button styles */
.left-third-container, .right-third-container {
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 1rem;
    align-items: center;
    font-weight: 400;
  /*  width: 150px;*/
  width:160px;
    height: 30px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.left-third-container {
    background-image: url('../images/assets/5367260 1 (3).png');
    background-size: cover;
    height: 40px;
    border-radius: 50px;
    background-position: center;
}

.right-third-container {
    background-image: url('../images/assets/5367260 2 (1).png');
    background-size: cover;
    background-position: center;
    margin-right: 0;
    height: 40px;
    border-radius: 50px;
}

    .left-third-container:hover, .right-third-container:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

    .left-third-container div, .right-third-container div {
        font-weight: 500;
    }

/* Call to action section styles */
.middle-third-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    height: auto;
    margin: 2rem auto;
    position: relative;
}

.sub-middle-third-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    color: #005AA9;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

    .sub-middle-third-container h2 {
        font-weight: 300;
        font-size: 2.25rem;
        margin: 0;
    }

    .sub-middle-third-container h1 {
        font-size: 3.75rem;
        font-weight: 600;
        color: #005AA9;
        margin: 0 0 1rem 0;
    }

.middle-third-container-img {
    background-color: #005AA9;
    background-image: url('../images/assets/5367260 1 (3).png');
    background-size: cover;
    background-position: center;
    /*width: 150px;*/
    width:160px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .middle-third-container-img:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.8);
    }

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .page-container {
        padding: 0 30px;
    }
}

@media screen and (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .first-container-headline {
        width: 90%;
        padding: 1.5rem 0 1rem 0;
    }

    /* Updated heading styles for tablet */
    .headline-text h1 {
        font-size: 2rem;
    }

    .sub-middle-third-container {
        width: 100%;
        max-width: 100%;
    }

        .sub-middle-third-container h2 {
            font-size: 1.5rem;
        }

        .sub-middle-third-container h1 {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
        }

    .first-container-para {
        width: 90%;
        padding: 0 0 1.5rem 0;
    }

    .service-section {
        flex-direction: column;
        gap: 20px;
    }

    .service-image,
    .service-details {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Updated: Keep the CTA section in a column on mobile */
    .third-container {
        flex-direction: column;
        padding: 1.5rem 0;
    }

    /* Updated: But keep the navigation buttons parallel */
    .nav-buttons-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 2rem auto 1rem;
    }

    .middle-third-container {
        margin: 1.5rem auto;
        padding: 1rem 0;
        text-align: center;
    }

    /* Ensure the buttons stay on the left and right */
    .left-third-container, .right-third-container {
        width: 120px;
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .page-container {
        padding: 0 15px;
    }

    .service-heading {
        font-size: 20px;
    }

    .service-list {
        padding-left: 1rem;
    }

    /* Updated heading styles for mobile */
    .headline-text h1 {
        font-size: 1.5rem;
    }

    .sub-middle-third-container h2 {
        font-size: 1.1rem;
    }

    .sub-middle-third-container h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Further adjust navigation for smaller screens */
    .left-third-container, .right-third-container {
        width: 100px;
        height: 35px;
        font-size: 0.8rem;
        margin-right: 0;
    }

    .nav-buttons-container {
        padding: 0 10px;
        margin: 1.5rem auto 1rem;
    }
}

/* Very small screens */
@media screen and (max-width: 360px) {
    .headline-text h1 {
        font-size: 1.25rem;
    }

    .sub-middle-third-container h2 {
        font-size: 1rem;
    }

    .sub-middle-third-container h1 {
        font-size: 1.25rem;
    }

    .left-third-container, .right-third-container {
        width: 90px;
        height: 32px;
        font-size: 0.75rem;
    }
}
