/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

header {
    background-color: #1f3a68;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Utility class for cards on works pages */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card h3 {
    margin: 10px;
    font-size: 1.2rem;
}

.card p {
    padding: 0 10px 10px 10px;
}

.card a {
    display: block;
    margin: 0 0 15px 0;
    color: #1f3a68;
    font-weight: bold;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: #405d9d;
    border-radius: 4px;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
}

main {
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
}

h1, h2, h3 {
    color: #1f3a68;
    margin-bottom: 10px;
}

footer {
    background-color: #1f3a68;
    color: #fff;
    text-align: center;
    padding: 15px 0;
}

/* About page specific */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content img {
    max-width: 250px;
    border-radius: 6px;
    align-self: center;
}

.about-content p {
    text-align: justify;
}

/* Responsive adjustments */
@media (min-width: 700px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
    .about-content img {
        margin-right: 30px;
    }
}