/* This removes some default browser spacing */
* { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/*the body is the ....*/
body{ 
    font-family: Arial, sans-serif;
    background-color: whitesmoke;
    color: black;
    line-height: 1.6;
}

/* Header */
header {
    background-color: blue;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

header h1 {
    font-size: 34px;
    margin-bottom: 5px;
}

/* Navigation bar */
nav {
    background-color: black;
    text-align: center;
    padding: 15px;
}

/* Links inside the navigation */
nav a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-weight: bold;
}

/* Changes the link when the mouse is over it */
nav a:hover {
    color: #93c5fd;
}

/* Main content */
main {
    width: 90%;
    max-width: 1000px;
    margin: 25px auto;
}

/* Welcome section */
.hero {
    background-color: white;
    text-align: center;
    padding: 45px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Button-style link */
.button {
    display: inline-block;
    background-color:black;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
}

.button:hover {
    background-color: #2563eb;
}

/* Section headings */
section > h2 {
    margin-bottom: 20px;
}

/* Holds the blog cards */
.post-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Each blog post */
.post {
    background-color: white;
    padding: 22px;
    border-left: 5px solid #2563eb;
    border-radius: 6px;
    flex: 1 1 250px;
}

/* Blog post heading */
.post h3 {
    color: #1d4ed8;
    margin-bottom: 5px;
}

/* Date */
.date {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Post links */
.post a {
    display: inline-block;
    margin-top: 10px;
    color: #1d4ed8;
    text-decoration: none;
}

.post a:hover {
    text-decoration: underline;
}

/* About and contact boxes */
.info {
    background-color: white;
    padding: 30px;
    margin-top: 30px;
    border-radius: 8px;
}

/* List inside the About section */
.info ul {
    margin-top: 10px;
    padding-left: 25px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
}

/* Form labels */
label {
    margin-top: 10px;
    font-weight: bold;
}

/* Input and textarea */
input,
textarea {
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

/* Submit button */
button {
    margin-top: 15px;
    padding: 12px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #1d4ed8;
}

/* Footer */
footer {
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

/* Responsive design:
   On small screens, the navigation links fit better
   and the blog cards become one column. */
@media (max-width: 600px) {
    nav a {
        display: block;
        margin: 8px;
    }

    header h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .post-container {
        flex-direction: column;
    }

    .info {
        padding: 20px;
    }
}

