body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header,
footer {
    background: #f4f4f4;
    padding: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 10px;
    margin: 0;
    padding: 0;
}

main {
    padding: 1rem;
}

nav ul a.current {
    font-weight: bold;
}

.learning-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.resource-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f9f9f9;
}

.resource-box h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.resource-box a {
    text-decoration: none;
    color: #007acc;
}

.resource-box a:hover {
    text-decoration: underline;
}

.resource-box ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-box li {
    flex: 1 1 45%;
    min-width: 200px;
    box-sizing: border-box;
}

.toggle-btn {
    color: #007acc;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    display: inline;
}
