* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #F9DC98;
    font-family: 'JetBrains Mono', monospace;
    color: white;
}

/* Navigation */
.navbar {
    background-color: #141414;
    /* Make navbar sticky at top of viewport*/
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}
.navbar b {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: underline;
}
.site-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: auto;
}


.page {
    display: flex;
    flex-direction: column;
    align-items: center; /* default center so small screens look good */
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/* Reset any hard-coded left-margins used previously for individual/group/medicine cards */
.page .card.individual,
.page .card.group,
.page .card.medicine {
    margin-left: 0;
    margin-right: 0;
}

/* Alternate .course wrappers left / right so the header + card move together */
.page .course {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/*fra CoPilot 2026*/
.page .course:nth-of-type(odd) {
    align-self: flex-start;
    align-items: flex-start;
}
/*fra CoPilot 2026*/
.page .course:nth-of-type(even) {
    align-self: flex-end;
    align-items: flex-end; /* make the header align with the card on the right */
}
.illustration-course {
    border-radius: 12px;
    margin-left: 800px;
    margin-top: -600px;
    object-fit: cover;
    margin-bottom: -50px;
}
.illustration-course2 {
    border-radius: 12px;
    margin-right: 800px;
    margin-top: -300px;
    object-fit: cover;
    margin-bottom: -90px;
}
@media (max-width: 768px) {
    .illustration-course,
    .illustration-course2 {
        display: none;
    }
}

/* Header above each card */
.card-header {
    margin: 0;
    color: #ffffff; /* white text */
    font-size: 30px;
    line-height: 1;
    display: inline-block;
    padding: 14px 30px;
    margin-bottom: 16px;
    margin: 0;
    background: #CD7E2F;
}

@media (max-width: 900px) {
    .page {
        align-items: center; /* stack centered on small screens */
        padding: 12px;
    }
    .page .card,
    .page .card.individual,
    .page .card.group,
    .page .card.medicine {
        width: 95%;
        align-self: center !important;
        margin: 20px 0;
    }

    /* scale down large headers on mobile so they don't overflow */
    .card-header h2 {
        font-size: 28px;
    }
}

.title {
    color: rgb(255, 255, 255);
    font-size: 64px;
    margin: 80px 0 40px 60px;
    -webkit-text-stroke: 2px rgb(0, 0, 0); 
    font-family: 'Jacques Francois', serif;
}

.card {
    background: #CD7E2F;
    color: white;
    padding: 32px;
    width: 650px;
    margin: 40px 0;
}

.card h2 {
    font-size: 60px;
    margin-bottom: 30px;
}

.card ul {
    list-style: none;
    margin-bottom: 40px;
}

.card-header h2 {
    margin: 0;
    color: #ffffff; /* white text */
    font-size: 60px;
    font-weight: 700;
}
.visually-hidden {
   display: none;
}

.card li {
    font-size: 36px;
    margin-bottom: 20px;
}
.card li img {
    width: 36px;
    height: 36px;
}

.cta {
    font-size: 36px;
    color: rgb(255, 255, 255);
    text-decoration: underline;
    -webkit-text-stroke: #000000;
}

/* Footer */
.main-footer {
    background-color: #780001;
    color: #FFFFFF;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    margin-top: 100px;
}

.footer-info p, .footer-info address {
    font-size: 20px;
    line-height: 1.5;
    font-style: normal;
}

.footer-socials {
    position: absolute;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Mobil-tilpasning */
@media (max-width: 768px) {
    .nav-links { gap: 20px; }
    .test-header h1 { font-size: 32px; }
    .question-block h2 { font-size: 24px; }
    .option { font-size: 20px; }
    .footer-socials { position: static; margin-top: 20px; flex-direction: row; }
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}