/* Block display for HTML5 elements */
header, main, nav, footer, figure, figcaption, aside, section, article {
    display: block;
}

/* Reset box-sizing to border-box for all elements */
* {
    box-sizing: border-box;
}

/* General body styles */
body {
    background-color: #f4f4f9;
    font-family: 'Roboto', sans-serif; /* Updated font */
    color: #333; /* Updated font color */
}

/* Header styles */
header {
    background-color: #FFFFFF; /* Updated background color */
    color: #4A90E2; /* Updated text color */
    height: 175px;
    padding-top: 30px;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

/* Logo styles */
#logo {
    height: 100px;
    margin-right: 20px;
}

/* Navigation styles */
nav {
    background-color: #3A78B2; /* Updated background color */
    padding: 10px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold; /* Enhanced readability */
}

/* Responsive image styles */
img {
    max-width: 100%;
    height: auto;
}

/* Additional styles */
h1 {
    font-family: 'Roboto Slab', serif; /* Updated font for headings */
    font-size: 2em;
    margin: 0;
}

#content {
    padding: 20px;
}

/* Original styles for reference */
footer {
    background-color: #4A90E2; /* Updated background color */
    color: #FFFFFF;
    padding: 10px;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 20px;
    width: calc(33% - 40px);
    box-sizing: border-box;
}

.card img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

.card h2 {
    font-family: 'Roboto Slab', serif; /* Updated font for headings */
    font-size: 1.5em;
    margin-top: 0;
}

.card p {
    font-family: 'Roboto', sans-serif; /* Updated font */
    font-size: 1em;
    color: #666;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .card {
        width: calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}
