/* Targets the background and default text */
body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
    font-size: 20px;
    margin: 0;
    padding: 30px;

    display: flex;
    flex-direction: column;   /* 🔥 important */
    min-height: 100vh;        /* full page height */
}

/* Centers only the content, NOT header/footer */
.content-wrapper {
    max-width: 700px;
    padding: 60px 20px;
    line-height: 1.7;
    margin: 0 auto;   /* ✅ centers properly */
}

/* Header aligned to right */
header {
    width: 100%;
    display: flex;
    text-align: center;
    padding: 0px;
}

/* Styles your titles */
h1 {
    font-size: 40px;
    color: #ffcc00;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    text-align: center;   /* aligns text nicely */
}

h2 {
    font-size: 28px;
    margin-top: 40px;
}

a {
    color: #F5F5DC;  /* beige */
    text-decoration: none; /* optional: removes underline */
}

.nav-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.card {
    text-decoration: none;
    color: #e0e0e0;
    border: 1px solid #333;
    padding: 20px;
    width: 220px;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    background-color: #222;
    transform: translateY(-5px);
    border-color: #87CEFA;
}

.learning-grid {
    display: flex;
    flex-direction: column;  /* stacks items vertically */
    gap: 20px;
    margin-top: 20px;
}
.card {
    min-width: 500px;   /* fixed width so they stay in one line */
    flex-shrink: 0;     /* prevents shrinking */
}
/* Footer at bottom center */
footer {
    margin-top: auto;   /* 🔥 pushes it to bottom */
    text-align: center;
    padding: 20px;
    width: 100%;
}