/* Global Variables */
:root {
    /* Colour Palette - Dusty Blue --> Dark to Light */
    --C1: #1f2b4b;
    --C2: #2a4074;
    --C3: #334f85;
    --C4: #3e5f9e; /* Main Font Colour */
    --C5: #4a6cb6;
    --C6: #5573b9;
    --C7: #6b8bce; /* Copyright Font Colour */
    --C8: #85a8e1;
    --C9: #a3c6e6; /* Divider Colour */
    --C10: #d1e1f5;
}

html {
    overflow-y: scroll;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--C4);
    background-color: #ffffff;
    line-height: 1.6;
    padding-left: 2%;  /* Set left margin */
    padding-right: 2%; /* Set right margin */
}

/* Text alignment with default left alignment */
p {
    --p-align: left;
    text-align: var(--p-align);
    margin-bottom: 10px;
}

/* Dynamic Heading Style */
.heading {
    /* Default Arguments */
    --size: 1.5rem;
    --color: var(--C3);
    --align: left; 

    font-size: var(--size);
    color: var(--color);
    text-align: var(--align); 

    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
    font-weight: bold;
}


/* Header Section */
.center-logo {
    width: 50%;
    max-height: 25vh;
    object-fit: contain;
    margin-bottom: 10px;
}

.logo img {
    width: 150px;
    height: auto;
}

/* Footer Section */
.footer {
    width: 100%;
    padding: 0 1.5%; 
    text-align: center; 
    background-color: #ffffff;
}

.copyright-text {
    color: var(--C7);
    font-size: 0.85rem;
    margin-top: 10px;
    margin-bottom: 20px;
    display: block;
}

/* Alight List Setting */
.aligned-list {
    list-style-position: outside; 
    padding-left: 20px; 
    margin-left: 0;
}

    .aligned-list li {
        padding-left: 0px;
        color: var(--C4);
        margin-bottom: 0px;
        line-height: 1.6;
    }

        .aligned-list li strong {
            color: var(--C3); /* Optional: Keeps the bold labels in the darker blue for better contrast */
        }

/* Navigation Bar */
.navbar { /* Nav Bar layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    padding: 1rem 1.5% 0.2rem 1.5%;
    background: var(--C10);
    top: 0;
    z-index: 1000;
    /* Navigation Bar Box */
    box-shadow: none;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--C9);
}

.logo img {
    height: 50px; /* Adjust based on your logo size */
}

.nav-toggle, .nav-toggle-label {    /* Hide the checkbox/hamburger toggle on Desktop */
    display: none;
}

.nav-links {    /* Desktop Navigation (Horizontal) */
    display: flex; 
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; 
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--C4);
}

@media screen and (max-width: 768px) {  /* Mobile Overrides (768px and below) */
    .nav-toggle-label {    /* Make the Label (Hamburger) visible */
        display: flex !important;
        align-items: center;
        font-size: 24px;
        cursor: pointer;
        color: #333;
        z-index: 1001;
    }

    .nav-links { /* Force the Links into a hidden vertical stack */
        display: flex !important;
        flex-direction: column !important;
        position: fixed; /* Fixed so it overlays everything */
        left: 0;
        top: 15px;
        width: 280px;
        right: 0;
        left: auto;
        height: 0;
        background: #ffffff;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #nav-toggle:checked ~ .nav-links {    /* Show links when checkbox is checked */
        height: auto;
        padding-bottom: 10px;
        box-shadow: 0 7px 7px rgba(0,0,0,0.1);
    }

    .nav-links li { /* Ensure list items span full width */
        width: 100%;
        text-align: center;
        padding-top: 5px;
        padding-bottom: 5px;
        border-bottom: 1px solid #f0f0f0;
    }

        .nav-links li a {
            display: block;
            padding: 10px 0px;
            width: 100%;
            color: #333;
            text-decoration: none;
        }
}

/* Page-Wide Dividers */
.divider {
    width: 103%;
    height: 0px;
    margin-left: -15px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: 2px solid var(--C9);
}

/* Feature Section */
.vertgap {
    height: var(--gap, 5px);
    width: 100%;
}

/* Address Section */
/* Container for each contact row */
.contact-item {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 12px; 
    font-size: 16px;
    color: var(--C3);
}

    .contact-item i {
        width: 25px; 
        margin-top: 4px; 
        color: var(--C3);
    }

    .contact-info-block {
        line-height: 1.5;
    }

    .contact-info-block a {
        color: var(--C3);
        text-decoration: none;
        font-weight: bold;
    }

    .contact-layout-wrapper {
        display: flex;
        flex-wrap: wrap; 
        gap: 75px; 
        align-items: flex-start;
        width: 100%;
    }

    /* Map Container */
    .map-container iframe {
        height: 500px; 
        width: 500px
    }

/* Responsive Media Query */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
}
