/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #FFFFFF;
}

header {
    background-color: #002244; /* Dark navy blue */
    color: #FFFFFF;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-family: 'Merriweather', serif;
}

nav ul {
    list-style-type: none;
    background-color: #002244;
    overflow: hidden;
    padding: 10px 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
}

.intro {
    padding: 1rem 2rem; /* 1rem top and bottom, 2rem left and right */
    background-color: #EEE; /* Light grey for the intro section */
    text-align: center;
}

/* Properties Grid */
#properties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.property {
    margin: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px #ccc;
    padding: 20px; /* Add padding for content inside the box */
    background-color: #fff; /* White background for the content */
    width: calc(33% - 30px);
    box-sizing: border-box; /* Include padding and border in the width */
    overflow: hidden;
}

.property img {
    width: 100%;
    height: auto; /* Change to 'auto' for maintaining aspect ratio */
    object-fit: cover;
}

.property h2, .property p {
    margin: 10px 0; /* Add top and bottom margin for spacing */
    text-align: left; /* Align text to the left */
}

footer {
    background-color: #002244;
    color: #FFFFFF;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: auto; /* Add this to push the footer to the bottom */
}

/* Style for the navigation bar */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #002244; /* To ensure the nav bar matches the header */
}

/* Style for each navigation link */
.nav-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #ffffff; /* Light color for visibility against the dark background */
    transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.nav-link:hover {
    background-color: #004488; /* A slightly lighter shade for the hover effect */
    color: #ffffff; /* Keeps text color consistent but can be changed if desired */
}

.team-section {
    text-align: center;
    margin: 50px 0;
}

.team-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.team-member {
    width: calc(33% - 60px); /* Assuming 30px gap on both sides */
    margin: 0 10px;
    text-align: center;
}

.profile-pic {
    width: 100%; /* Use 100% width of the parent container */
    height: auto; /* Height should be auto to maintain aspect ratio */
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover; /* Cover will ensure the image covers the area without distortion */
    overflow: hidden; /* Ensures no spillover outside the border-radius */
}

h3, .title, p {
    margin: 5px 0;
}

/* Responsive Design Adjustments for tablet devices */
@media (max-width: 1024px) {
    .team-member {
        width: calc(50% - 60px); /* Adjust width for tablet devices */
    }
    /* Additional tablet-specific styles can be added here */
}

/* Responsive Design Adjustments for mobile devices */
@media (max-width: 768px) {
    .team-container {
        flex-direction: column; /* Stack children vertically */
        align-items: center;
        gap: 20px;
    }

    .team-member {
        width: calc(100% - 20px); /* Full width for mobile devices, accounting for some padding */
        margin: 10px; /* Ensure there's some margin around each member */
    }

    /* Adjust font sizes for better readability on small screens */
    .team-member h3, .team-member .title, .team-member p {
        font-size: smaller; /* Adjust this as needed for your design */
    }
}

/* Responsive adjustments for tablet devices */
@media (max-width: 1024px) {
    .property {
        width: calc(50% - 30px); /* Adjust to 2 columns for tablets */
    }
}

/* Responsive Design Adjustments for mobile devices */
@media (max-width: 768px) {
    .property {
        width: calc(100% - 30px); /* 1 column for mobile devices */
    }
}