.image-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensures the image scales properly */
    height: 455px; /* Height adjusts automatically */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */}

.base-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.52); /* Black overlay with 52% opacity */
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: 43.5%;
    left: 10.5%; /* Adjust based on desired padding */
    transform: translateY(-50%);
    color: white;
    font-size: 3vw; /* Scales font size with screen width */
    font-weight: bold;
    z-index: 2; /* Ensure text appears above the overlay */
    line-height: 1.2;
}

.overlay-text-h1 h1 {
    font-size: 4vw; /* Scale heading based on viewport width */
    margin: 0;
}

.overlay-text p {
    margin: 0;
    font-size: 1.2vw; /* Scale paragraph text for responsiveness */
}
nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    padding: 10px 20px; /* Adjust padding for better responsiveness */
    font-size: 1em; /* Use relative font size */
    margin-bottom: 20px;
    background-color: white; /* Add a background for better visibility */
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    padding: 10px 20px; /* Adjust padding for better responsiveness */
    font-size: 1em; /* Use relative font size */
    margin-bottom: 20px;
    background-color: white; /* Add a background for better visibility */
    gap: 5px; /* Add space between items */
}

nav a {
    text-decoration: none;
    color: black; /* Default color for non-current pages */
    font-weight: normal;
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition */
    margin-right: 2px; /* Add spacing between links */
}

nav a.active {
    color: #032c6e; /* Color for the current page */
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
    color: #032c6e; /* Hover color */
}



/* Media Queries for Smaller Screens */
@media (max-width: 1024px) {
    .image-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensures the image scales properly */
    height: auto; /* Height adjusts automatically */
    }

    .overlay-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers text within the container */
    color: white;   
    font-weight: bold;    
    text-align: center; /* Center-align text for better readability */
    font-size: 4vw; /* Adjust font size for tablets */
    }

    .overlay-text-h1 h1 {
        font-size: 6vw; /* Slightly smaller heading for tablets */
    }

    .overlay-text p {
        font-size: 1.5vw; /* Adjust paragraph text size */
    }

    nav {
       
        align-items: flex-start; /* Align to the left */
        padding: 10px 35px; /* Reduce padding */
        font-size: 0.9em; /* Reduce font size */
    }

    nav a {
        margin-right: 0; /* Remove horizontal spacing */
        margin-bottom: 10px; /* Add vertical spacing between links */
    }
}

@media (max-width: 480px) {
    .overlay-text {
        font-size: 5vw; /* Smaller font size for mobile */
    }

    .overlay-text-h1 h1 {
        font-size: 8vw; /* Adjust heading for small screens */
    }

    .overlay-text p {
        font-size: 2.1vw; /* Larger paragraph text for better readability */
    }

    nav {
        font-size: 0.8em; /* Further reduce font size */
        padding: 5px 10px;
    }

    nav a {
        margin-bottom: 8px; /* Slightly smaller vertical spacing */
        font-size: 0.9em; /* Adjust font size for small screens */
    }
}



/* Main Section */

html {
    scroll-behavior: smooth;
}


.contact-section {
    padding: 40px 20px;
    text-align: center;
}



/* Flexbox Layout for Contact Info Cards */
.flex-container {
    display: flex;
    justify-content: center; /* Center the content */
    gap: 10px; /* Decreased space between the left and right sides */
    flex-wrap: wrap; /* Allows wrapping of the boxes */
    padding: 20px;
    max-width: 1200px; /* Limits the width to prevent stretching on large screens */
    margin: 0 auto; /* Centers the container horizontally */
}

/* Left side: Contact Info Cards */
.left-side {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 65%; /* Takes 65% of the space */
}

.contact-card {
    width: 38%; /* Two boxes per row with reduced gap */
    height: 200px;
    border: 2px solid #032c6e;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact-card.hq-box,
.contact-card.call-box {
    background: #032c6e; /* Blue background */
    color: #fff;
}

.contact-card h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 15px;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-container {
    display: flex;
    margin-top: 50px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #dee1e6;
    color: #000;
    border-radius: 45px;
    padding: 10px 20px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-container:hover {
    background-color: #e0e0e0; /* Change background color on hover */
    transform: translateY(-3px); /* Add slight lift on hover */
}

.social-container i {
    font-size: 23px; /* Adjust as needed */
}

a.social-link {
    text-decoration: none;
    color: inherit; /* Use the same color as the parent text */
    display: inline-flex;
    align-items: center;
}

/* Optional: Add hover effect */
a.social-link:hover {
    text-decoration: underline; /* Optional: underline on hover */
    color: #007BFF; /* Optional: change color on hover */
}

.instagram {
    color: #E4405F; /* Instagram pinkish-red color */
    margin-right: 5px;
}

.instagram:hover {
    color: #C13584; /* Darker shade on hover */
}

/* Facebook Color */
.facebook {
    color: #1877F2; /* Facebook blue */
    margin-right: 60px;
}

.facebook:hover {
    color: #145DBF; /* Darker blue on hover */
}

.facebook-text {
    margin-left: -40px; /* Adjust the value to move the text closer to the icon */
}

/* LinkedIn Color */
.linkedin {
    color: #0077B5; /* LinkedIn blue */
    margin-right: 60px;

}

.linkedin:hover {
    color: #005582; /* Darker LinkedIn blue on hover */
}

.linkedin-text {
    margin-left: -40px; /* Adjust the value to move the text closer to the icon */
}

/* TikTok Color */
.tiktok {
    color: #000000; /* TikTok black */
    margin-right: 10px;
}

.tiktok:hover {
    color: #69C9D0; /* TikTok turquoise on hover */
}

/* Adjust spacing for the social media links */
.social-container p {
    font-size: 1rem;
    margin: 0; /* Remove extra margin */
}


/* Right side: Follow Us */
.right-side {
  
    width: 32%; /* Adjusted to fit better with left side */
    min-width: 300px; /* Ensures it doesn't get too small on narrow screens */
}

.social-media {
    
    background: #032c6e;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-sizing: border-box;
    height: 500px; /* Allow content to dictate height */
}

.social-media h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.social-media p {
  
    margin: 5px 0;
    font-size: 1rem;
}

.button {
    display: inline-block;
    margin-top: 40px;
    width: 200px;
    background: #f8c016;
    color: #323743;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.button:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

/* Maps Section */
.maps-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f9;
}

.maps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.map {
    width: 100%;
    max-width: 600px;
}

/* Directory Section */

.directory-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
    margin-top: 50px;
}



.table-container {
    width: 100%;
    max-width:1300px; /* Limit the width of the table */
    margin: 0 auto; /* Center the table */
    overflow-x: auto; /* Add horizontal scrolling for small screens */
}


.directory-table {
    width: 100%; /* Ensure the table fits within the container */
    font-size: 0.9rem; /* Reduce font size for smaller appearance */
    border-collapse: collapse;
}

.directory-table th {
    background-color: #032c6e;
    color: #fff;
    padding: 10px;
    text-align: left;
}

.directory-table td {
    background-color: #f7f7f7;
    padding: 10px;
    text-align: left;
}

.contact-card ion-icon {
    display: block;
    margin: 0 auto 10px; /* Center the icon and add space below */
    color: #032c6e; /* Icon color */
    font-size: 45px; /* Adjust icon size */
}
.title {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
}

.line {
    border-top: 3px solid #ccc;
    margin: 0 20px;
}

.line-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}




/* General Styles remain the same */



@media (max-width: 1024px) { /* Mobile devices */

    .flex-container {
        flex-direction: column;
        gap: 20px; /* More spacing between elements */
    }

    .contact-card {
        width: 100%; /* Full width for contact cards */
        height: auto; /* Auto height for dynamic content */
        padding: 15px;
    }

    .social-container {
        width: 95%; /* Adjust social container width */
        padding: 10px;
    }

    .right-side {
        width: 100%;
        padding: 10px;
    }
    .left-side {
        width: 100%;
        
        
    }

    .social-media {
        padding: 15px;
    }

    .button {
        width: 80%; /* Full width for buttons */
        font-size: 0.9rem; /* Adjust font size */
    }
    .maps-container {
        flex-direction: column; /* Stack the maps vertically */
        gap: 20px; /* Reduced gap between maps */
    }

    .map {
        max-width: 100%; /* Allow maps to take full width on smaller screens */
        width: 100%; /* Full width for smaller screens */
    }
   
}

@media (max-width: 480px) { /* Small mobile devices */

   .left-side{
    width: fit-content;
   }
   .directory-table{
    font-size: x-small;
   }
   
    .contact-section h1 {
        font-size: 1.8rem; /* Smaller heading for mobile */
    }

    .contact-section p {
        font-size: 1rem; /* Smaller paragraph text */
    }

    .directory-section h2 {
        font-size: 1.5rem; /* Adjust directory heading */
    }

    nav {
        padding-left: 20px; /* Reduce padding */
        font-size: 14px; /* Smaller font size */
    }

    

    .social-container {
        padding: 10px;
        gap: 20px; /* Reduce gap */
    }

    .button {
        padding: 10px 20px; /* Adjust button padding */
        font-size: 0.8rem; /* Smaller font size */
    }
    .map iframe {
        width: fit-content; /* Full width for smaller screens */
    }
}

