body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background-color: #EBF5FF;
}

header .logo {
    display: flex;
    align-items: center;
    font-family: Times New Roman, Georgia, Garamond, Palatino;
    font-size: 24px;
    font-weight: bold;
    color: #074482;
    margin-left: 30px;
}

header .logo img {
    height: 75px;
    margin-right: 10px;
}

header nav a {
    margin: 0px 50px;
    text-decoration: none;
    color: #007BFF;
    font-size: 20px;
}

.hero {
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
}

.hero span {
    color: #f2b632;
}

.banner {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure responsiveness */
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    max-width: 100%;
    background-image: url('images/contentbackground.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #EBF5FF;
}

.card {
    background: white;
    margin: 30px 30px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: calc(45% - 80px);
    box-sizing: border-box;
    font-size: 20px;
    margin-bottom: 0px;
}

.card:nth-child(2n) {
    margin-top: 150px;
}

.card:nth-child(2n-1) {
    margin-bottom: 140px;
}

.card h2 {
    margin: 0;
    padding-bottom: 0;
    font-size: 2.0em;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background: #2CA6A4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    background: #0056b3;
    transition: background 0.3s ease;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: contain;
    width: 100%;
    background-image: url('images/footerimage.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #EBF5FF;
    min-height: 600px;
}

.footer-content,
.social-media {
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.3em;
    padding-left: 150px;
    padding-top: 350px;
    margin-right: auto;
}

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

.social-media {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 200px;
}

.social-media a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
    font-size: 50px;
    padding-top: 300px;
    padding-right: 25px;
}

.darkblue { color: #074784; }
.blue { color: #348BE3; }
.orange { color: #D74E09; }
.green { color: #32653c; }
.yellow { color: #f0Ba00; }

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Media query for small screens */
@media screen and (max-width: 768px) {
    /* Header adjustments */
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    header .logo {
        margin: 0 0 10px 0;
        text-align: center;
    }

    header nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header nav a {
        margin: 5px 0;
    }

    /* Content adjustments */
    .content {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        margin: 15px 0;
    }

    .card:nth-child(2n),
    .card:nth-child(2n-1) {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .card h2 {
        font-size: 1.5em;
    }

    .card {
        font-size: 16px;
    }

    /* Footer adjustments */
    footer {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 20px 0;
        background-image: url('images/footernologo.png');
        background-size: cover;
    }

    .footer-content,
    .social-media {
        padding: 10px 0;
        text-align: center;
        margin: 0;
    }

    .footer-content {
        padding-left: 0;
        padding-top: 20px;
    }

    .social-media {
        padding-top: 20px;
    }

    .social-media a {
        padding-top: 10px;
        font-size: 30px;
    }

/* Welcome page specific styles */
.content h2 {
    color: #074784;
    font-size: 2.0em;
    margin-bottom: 20px;
    text-align: center;
}

.content p {
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* When content is not in cards */
.content:not(:has(.card)) {
    background: white;
    margin: 30px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 1200px;
    text-align: left;
}

/* Center the button when used outside cards */
.content:not(:has(.card)) .button {
    display: block;
    width: fit-content;
    margin: 30px auto 10px;
    padding: 15px 30px;
    font-size: 1.1em;
    text-align: center;
}

.card .note {
    font-size: 0.9em;  /* Makes the text smaller */
    font-style: italic; /* Makes the text italicized */
    color: #666;       /* Slightly lighter color to distinguish it */
    margin-top: 10px;  /* Adds some space above the note */
}

.content .card.welcome p.note {
    font-size: 0.85em !important;
    font-style: italic !important;
    color: #666 !important;
    margin-top: 10px;
    line-height: 1.4;
}

p.note {
    font-size: 0.85em !important;
    font-style: italic !important;
    color: #666 !important;
}

.card.welcome p:last-of-type {
    font-size: 0.85em !important;
    font-style: italic !important;
    color: #666 !important;
    margin-top: 10px !important;
}