/* Global Styles */
body {
    font-family: Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Importing Google Fonts for Headings */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&display=swap');

/* Top Section Styling */
.top-services {
    background-color: #314b57; /* Dark Blue/Green */
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap; /* Allows content to wrap on smaller screens */
}

.header-title {
    color: white;
    font-family: 'Roboto Slab', serif;
    font-size: 2em;
    margin-bottom: 20px;
    position: absolute;
    text-transform: uppercase;
    top: 10px;
    left: 20px;
    z-index: 1;
}

/* Service Links Container */
.service-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 70%; /* Adjusted width */
}

/* Service Link Styling */
.service-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Circular Images */
.circle-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Map Image Styling */
.map-container {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding-right: 10px; /* Add the small gap to the right */
}

/* Adjustments for smaller laptops (MacBook Air, etc.) */
@media (max-width: 1280px) {
    .header-title {
        font-size: 1.8em; /* Slightly reduce font size for smaller laptops */
        margin-bottom: 20px;
        position: relative;
        text-align: center; /* Center the title on smaller laptops */
        left: 0;
        top: -10px; /* Adjust top positioning to avoid overlap */
    }

    .top-services {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .service-links {
        width: 100%; /* Ensure service links take full width */
        justify-content: space-between;
        margin-top: 20px;
    }

    .circle-img {
        width: 90px; /* Slightly smaller circles */
        height: 90px;
    }

    .map-container {
        width: 100%; /* Map takes full width below the circular images */
        order: 2; /* Push map below the circular images */
        margin-top: 20px;
    }

    .map-img {
        width: 100%;
        height: 250px; /* Adjust height for smaller laptops */
    }
}

/* Adjustments for tablets (max-width 1024px) */
@media (max-width: 1024px) {
    .header-title {
        font-size: 1.5em; /* Reduce font size on tablets */
        margin-bottom: 20px;
        text-align: center;
        position: relative;
        left: 0;
        top: -20px; /* Move it higher to avoid overlap */
    }

    .top-services {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .service-links {
        width: 100%; /* Full width on mobile and tablet */
        justify-content: space-between;
        margin-top: 20px;
    }

    .circle-img {
        width: 80px; /* Smaller circles for tablets */
        height: 80px;
    }

    .map-container {
        width: 100%; /* Map takes full width on tablets */
        order: 2; /* Push map below the circular images */
        margin-top: 20px;
    }

    .map-img {
        width: 100%;
        height: 200px; /* Adjust height for mobile and tablet screens */
    }
}

/* Smaller Screens (iPhone SE and below 400px) */
@media (max-width: 400px) {
    .service-links a {
        font-size: 0.8em; /* Reduce font size on very small screens */
        line-height: 1.2; /* Ensure the text is evenly spaced */
    }

    .circle-img {
        width: 50px; /* Even smaller circles */
        height: 50px;
    }

    .map-img {
        height: 150px; /* Adjust map height for small screens */
    }

    .header-title {
        font-size: 1.2em; /* Adjust title size */
    }
}

/* Service Area Section Styling */
.service-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.service-area h1 {
    color: #ab3c3c; /* Red */
    font-size: 2em;
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
    text-transform: uppercase;
    text-align: left;
}

.service-area-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between; /* Ensures image and text are side by side in desktop */
}

.service-area img {
    width: 40%; /* 40% of the container for the image on desktop */
    height: auto;
    margin-right: 20px;
}

.service-area-text {
    width: 55%; /* 55% of the container for the text on desktop */
}

.service-area p {
    font-size: 1em;
    margin-bottom: 10px;
    font-family: Helvetica, Arial, sans-serif;
}

.service-area a {
    color: #ab3c3c; /* Red */
    text-decoration: none;
}

/* Mobile adjustments for Service Area */
@media (max-width: 768px) {
    .service-area-content {
        flex-direction: column; /* Stack items in a column for mobile */
        align-items: center;
    }

    .service-area img {
        width: 100%; /* Full width image on mobile */
        margin-right: 0; /* Remove right margin */
        margin-bottom: 20px; /* Add space between image and text */
    }

    .service-area-text {
        width: 100%; /* Full width text on mobile */
        text-align: center;
    }
}

/* Articles Section Styling */
.articles {
    padding: 20px;
    background-color: #f9f9f9;
    max-width: 1200px; /* Limit the width on larger screens */
    margin: 0 auto; /* Center the section */
}

.articles h2 {
    font-family: 'Roboto Slab', serif;
    color: #ab3c3c;
    text-align: left;
    text-transform: capitalize;
    margin-bottom: 30px;
}

.article-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.article {
    display: block;
    width: 30%;
    text-align: left;
    text-decoration: none;
    margin-bottom: 20px;
}

.article img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.article p {
    font-family: Helvetica, Arial, sans-serif;
    color: #333;
    margin-bottom: 10px;
}

/* 'Read More' Link Styling */
.article span {
    color: #ab3c3c;
    text-decoration: none; 
    border-bottom: 2px solid #ab3c3c; 
    padding-bottom: 2px; 
    font-family: Helvetica, Arial, sans-serif;
    cursor: pointer;
}

.article span:hover {
    color: #314b57;
    border-bottom: 2px solid #314b57;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .article-list {
        flex-direction: column;
        align-items: center;
    }

    .article {
        width: 90%;
    }
}