body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;            /* Make body a flex container */
    flex-direction: column;   /* Stack children vertically */
    min-height: 100vh;        /* Ensure body is at least viewport height */
}

/* Home page background image */
body.home {
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    /* min-height: 100vh is inherited from body, no need to repeat */
}

header {
    background-color: #333;
    color: white;
    padding: 10px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-right: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
}

main {
    flex: 1;                  /* Allow main to grow and fill space */
    padding: 20px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

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

.hero-text {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background for readability */
    padding: 20px;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin: 10px 0;
    }
    .hero-text {
        padding: 15px;
    }
}