/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #101A2F;
    color: #F4E8D3;
    margin: 0;
}
a {
    color: #F4E8D3;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
/* Navigation Menu */
.nav {
    background-color: #101A2F;
    color: #F4E8D3;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 10px;
}
.nav a {
    margin: 0 10px;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}
/* Hero Section */
.hero {
    background-color: #101A2F;
    background-size: cover;
    background-position: center;
    padding: 10px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}
.hero img {
    max-width: 400px;
    width: 100%;
    height: auto;
    padding: 10px;
}
.shadowed-image {
    filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.5)); /* Offset-x, offset-y, blur-radius, colour */
}

/* Yellow Button Styling */
.btn-yellow{
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #101A2F; /* Dark text */
    background-color: #FDBE11; /* Yellow background */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-yellow:hover {
    background-color: #FFC72C; /* Lighter yellow for hover effect */
    color: #000; /* Darker text for hover effect */
}

/* Blue Button Styling */
.btn-blue {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #F4E8D3; /* Light cream text */
    background-color: #101A2F; /* Dark blue background */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-blue:hover {
    background-color: #2C3E5E; /* Slightly lighter blue on hover */
    color: #FDBE11; /* Yellow text on hover */
}
/* Sections */
section {
    padding: 40px 20px;
    text-align: center;
}

/* About Section - Image on the Right */
.about {
    background-color: #FDBE11;
    color: #101A2F;
    padding: 40px 20px;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.6; 
}

.about-content .text {
    flex: 0 0 70%; /* 70% width for the text */
    text-align: center;
}

.about-content .image {
    flex: 0 0 30%; /* 30% width for the image */
    max-width: 100%;
    border-radius: 0px;
}


/* The Team Section - Image on the Left */
.team {
    background-color: #101A2F;
    color: #F4E8D3;
    padding: 40px 20px;
    text-align: center;
}

.team-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.team-content .text {
    /* flex: 1; */
    flex: 0 0 70%; /* 70% width for the text */
    text-align: center;
}

.team-content .image {
    flex: 0 0 30%; /* 30% width for the image */
    max-width: 100%;
    border-radius: 0px;
}


/* Services Section - Image on the Right */
.services {
    background-color: #FDBE11;
    color: #101A2F;
    padding: 40px 20px;
    text-align: center;
}

.services-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.services-content .text {
    flex: 0 0 70%; /* 70% width for the text */
    text-align: center;
}

.services-content .image {
    flex: 0 0 30%; /* 30% width for the image */
    max-width: 100%;
    border-radius: 0px;
}

.work {
    background-color: #101A2F;
    color: #F4E8D3;
}
.contact {
    background-color: #FDBE11;
    color: #101A2F;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 1.5rem 1rem;
}
.contact .section-title {
    margin-bottom: 1rem;
}
.contact p {
    margin-bottom: 0.5rem;
}
.contact ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    max-width: 1000px;
    margin: 1rem auto 0;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
}
/* Work Section */
.work table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}
.work td {
    padding: 10px;
    vertical-align: top;
    text-align: center;
}
.work img {
    max-width: 100%;
    height: auto;
}
/* Work Section */
.work-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 auto 40px; /* Centre horizontally with margin auto */
    max-width: 800px; /* Limit the width of the container */
}

.work-item img {
    max-width: 320px;
    height: auto;
    border-radius: 5px;
    background-color: #F4E8D3; /* Placeholder colour for images */
}

.work-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.work-item-content h3 {
    color: #FDBE11;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.work-item-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #F4E8D3;
}

/* Contact Section */
.contact a {
    color: #101A2F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #000;
}

.contact li {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.contact li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.icon {
    width: 32px !important;
    height: 32px !important;
    transition: transform 0.3s ease;
}

.contact li:hover .icon {
    transform: scale(1.1);
}

/* Team Grid */
.team-heading {
    text-align: center; /* Centres the text */
    margin-bottom: 20px; /* Adds spacing below the heading */
    font-size: 2rem; /* Adjust size as needed */
    font-weight: bold;
    color: #FDBE11; /* Optional: Style the heading colour */
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.team-member {
    background-color: #1a2a4a;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.team-member img {
    width: 100%;
    height: auto;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    aspect-ratio: 1;
}
.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #FDBE11;
}
.team-member p {
    font-size: 0.9rem;
    color: #F4E8D3;
    margin: 0;
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a2a4a;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    color: #F4E8D3;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #F4E8D3;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.modal-close-btn:hover {
    background-color: rgba(253, 190, 17, 0.2);
}

.modal img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
}

.modal h3 {
    margin: 10px 0;
    color: #FDBE11;
}

.modal p {
    margin-bottom: 10px;
    color: #F4E8D3;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #F4E8D3;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.modal-nav-btn:hover {
    background-color: rgba(253, 190, 17, 0.2);
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

/* Ensure content doesn't overlap with navigation buttons */
.modal-content {
    padding: 0 50px;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    .team-member {
        padding: 0.75rem;
    }
    .team-member img {
        max-width: 150px;
    }
    .team-member h3 {
        font-size: 1.1rem;
    }
    .team-member p {
        font-size: 0.8rem;
    }
    .modal {
        width: 95%;
        padding: 1rem;
    }
    .contact {
        padding: 1.25rem 1rem;
    }
    .contact .section-title {
        margin-bottom: 0.75rem;
    }
    .contact p {
        margin-bottom: 0.4rem;
    }
    .contact ul {
        margin-top: 0.75rem;
    }
    .contact li {
        padding: 0.25rem;
    }
    .contact li a {
        font-size: 0.9rem;
    }
    .icon {
        width: 24px !important;
        height: 24px !important;
    }
    .work-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .work-item img {
        max-width: 100%;
        height: auto;
    }
    .work-item-content {
        max-width: 100%;
    }
    .section {
        padding: 2rem 1rem;
    }
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    .modal-nav-btn {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    .modal-content {
        padding: 0 40px;
    }
    .nav {
        padding: 8px 10px;
        justify-content: center;
        gap: 8px;
    }
    .nav a {
        font-size: 1rem;
        margin: 0 6px;
    }
    .hero img {
        max-width: 300px;
        padding: 5px;
    }
}
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    .team-member {
        padding: 0.5rem;
    }
    .team-member img {
        max-width: 120px;
    }
    .team-member h3 {
        font-size: 1rem;
    }
    .team-member p {
        font-size: 0.75rem;
    }
    .contact {
        padding: 1rem;
    }
    .contact .section-title {
        margin-bottom: 0.5rem;
    }
    .contact p {
        margin-bottom: 0.3rem;
    }
    .contact ul {
        margin-top: 0.5rem;
    }
    .contact li {
        padding: 0.25rem;
    }
    .contact li a {
        font-size: 0.8rem;
    }
    .icon {
        width: 20px !important;
        height: 20px !important;
    }
    .section {
        padding: 1.5rem 1rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .modal-nav-btn {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }
    .modal-content {
        padding: 0 30px;
    }
    .nav {
        padding: 5px;
        gap: 5px;
    }
    .nav a {
        font-size: 0.9rem;
        margin: 0 4px;
    }
    .hero img {
        max-width: 250px;
        padding: 5px;
    }
}

ul {
    list-style-position: inside; /* Align bullets with the text */
    margin: 0 auto; /* Centres the list container */
    max-width: 100%; /* Optional: Limit the width of the list */
    text-align: left; /* Ensures text aligns left */
    padding: 0; /* Remove default padding */
}

li {
    margin-bottom: 5px; /* Adds spacing between bullet points */
}

/* Footer Section  */
.footer {
    background-color: #101A2F;
    padding: 20px 20px;
    text-align: center;
}

.footer a {
    color: #FDBE11;
    margin: 0 10px;
    text-decoration: none;
}
