/* ########################################### */
/* ############## Global Styles ############## */
/* ########################################### */

html,
body {
    height: 100%; /* Ensure the body takes up the full viewport height */
    margin: 0 auto; /* Remove default body margins */
    color: #000;
    scroll-behavior: smooth; /* Smooth anchor moves */
    padding: 0;
    box-sizing: border-box;
}

p {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 18px;
    font-style: normal;
    line-height: 30px;
    letter-spacing: 0.4px;
    color: #263145;
}

h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 32px;
    font-style: normal;
    line-height: 40px;
    letter-spacing: 0.4px;
    margin-top: 30px;
    color: #263145;
}

h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 20px;
    font-style: normal;
    line-height: 30px;
    letter-spacing: 0.4px;
    color: #263145;
}

a {
    color: #263145;
}

.logo {
    width: 80px;
    height: 80px;
    background-image: url("kba-kerrisdale-village-logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    align-items: center;
    border: 0;
    display: block;
}

.font-weight-400 {
    font-weight: 400;
}

.content-block {
    max-width: 900px;
    padding: 0 25px 0 25px;
    margin: 0 auto; /* Centers horizontally */
}

.divider {
    width: 100%;
    margin: 50px 0 40px 0;
    border-top: 1px solid #e0e0e1;
}

@media screen and (min-width: 768px) {
    /* CSS rules for screens 768px and wider */
    .img {
        width: 80%;
        height: auto;
        border-radius: 5px;
    }
}

@media screen and (max-width: 767px) {
    /* CSS rules for screens 767px and narrower */
    .img {
        width: 90%;
        height: auto;
        border-radius: 5px;
    }
}

table {
    width: 100%;
    /* Prevents gaps between cell borders */
    margin-top: 40px;
    border-collapse: collapse;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 18px;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0.4px;
}

.btn {
    -webkit-border-radius: 10;
    -moz-border-radius: 10;
    border-radius: 10px;
    color: #263145;
    background: #fff;
    padding: 14px 25px 16px 25px;
    border: solid #263145 1px;
    text-decoration: none;

    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 16px;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0.4px;
}

.btn:hover {
    background: #263145;
    text-decoration: none;
    color: #fff;
}

th,
td {
    padding: 12px;
    text-align: left;
    /* Adds the line between rows */
    border-bottom: 1px solid #e0e0e1;
    border-top: 1px solid #e0e0e1;
}

/* Optional: Removes the line from the very last row for a cleaner look */
tr:last-child td {
    border-bottom: 1px solid #e0e0e1;
}

/* ########################################### */
/* ############# Nav Menu Styles ############# */
/* ########################################### */

nav {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 18px;
    font-style: normal;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #263145;
    padding: 0px 50px 0px 50px;
    height: 100px;
    border-bottom: 0px solid #e0e0e1;
}
nav a {
    text-decoration: none;
    text-transform: capitalize;
    color: #fff;
}
#logo {
    font-size: 1.2em;
    font-weight: 600;
}
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
}
label {
    display: none;
    cursor: pointer;
}
ul {
    list-style: none;
    display: flex;
    gap: 1em;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
ul a {
    padding-right: 0.5em;
}
ul a:hover {
    background-color: #263145;
    border-radius: 0.5em;
}
.active {
    border-bottom: 2px solid #263145;
}
@media screen and (max-width: 1023px) {
    nav {
        padding: 0px 20px 0px 20px;
    }

    label {
        display: block;
    }
    ul {
        font-size: 1.6em;
        position: absolute;
        left: -100%;
        flex-direction: column;
        align-items: top;
        justify-content: top;
        padding: 50px 0 0 50px;
        background-color: #263145;
        gap: 1.2em;
        top: 0px;
        width: 85%;
        height: calc(100vh);
        transition: 0.4s;
        box-shadow: 15px 0 15px -5px rgba(0, 0, 0, 0.2);
        border-radius: 0 20px 20px 0;
    }
    input[type="checkbox"]:checked ~ ul {
        left: 0;
    }
    ul a:hover {
        background-color: #263145;
    }
}
