:root {
    --primary: #106d78;
    --bg: #f3f6f7;
    --card-bg: #ffffff;
    --radius: 12px;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    --muted: #6b7176;
    --max-width: 1000px;
    --gap: 20px;
    --font-sans: "Inter", sans-serif;
}

body {
    font-family: var(--font-sans);
    margin: 0;
    background-color: var(--bg);
    color: #122028;
}

header {
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6vw;
}

header .logo {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    gap: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 500;
    position: relative;
}

nav a.active::after,
nav a:hover::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
}

main {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.semestre {
    margin-bottom: 40px;
}

.semestre h2 {
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.disciplinas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

/* Card como link clicável */
.disciplina {
    display: block;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none; /* remove sublinhado */
    color: inherit;        /* mantém cor do texto */
}

/* Remove sublinhado e cor diferente de elementos internos */
.disciplina h3,
.disciplina p {
    text-decoration: none;
    color: inherit;
}

.disciplina:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.disciplina h3 {
    font-size: 16px;
    margin-top: 0;
    color: #0c2730;
}

.disciplina p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--muted);
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--primary);
    color: white;
}
