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

body {
    font-family: Arial, sans-serif;
}

/* LEFT JUMP MENU */
#jump-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 15%;
    height: 100vh;
    background: #d8a820;
    padding: 20px;
}

#jump-menu h2 {
    margin-bottom: 10px;
}

#jump-menu a {
    display: block;
    margin: 6px 0;
    color: teal;
    text-decoration: underline;
}

/* HEADER */
#header {
    position: fixed;
    top: 60px;                 /* below site navbar */
    left: 15%;
    width: 85%;
    background: red;
    z-index: 9999;
}

/* BLOG TITLE */
#header h1 {
    margin: 0;                 /* removes white gap */
    padding: 22px 0;
    line-height: 1;
    background: red;
    color: black;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
}

/* NAV BAR */
#nav {
    margin: 0;
    background: black;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

#nav a {
    background: blue;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
}

/* MAIN CONTENT */
#content {
    margin-left: 15%;
    margin-top: 240px;        /* space for header + nav */
    padding: 40px;
}

/* SECTION TITLE */
.section-title {
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    font-size: 56px;
    font-weight: 800;
    margin: 25px 0 35px 0;
}

/* ARTICLES GRID */
#articles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.article {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.article h3 {
    margin-bottom: 10px;
}

.article p {
    margin-bottom: 10px;
}

.article a {
    color: teal;
    text-decoration: underline;
}

/* THANK YOU BOX */
#thank-you {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8fd0f0;
    padding: 20px;
    border: 2px solid black;
    font-size: 24px;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    #articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    #articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    #articles {
        grid-template-columns: 1fr;
    }

    #jump-menu {
        display: none;
    }

    #header {
        left: 0;
        width: 100%;
    }

    #content {
        margin-left: 0;
    }
}
