/* Grundlæggende design (CSS) */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-color: #f4f7f6;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav ul li a:hover, nav ul li a.active-link {
    background-color: var(--secondary-color);
}

/* Page Headers */
.page-header {
    background-color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-bottom: 1px solid #ddd;
}

.page-header h1 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Indhold Sektioner */
.content-section {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-grow: 1;
}

.about-section {
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.about-section p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.about-img {
    float: left;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-right: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.item-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.item-list li {
    background: white;
    margin-bottom: 0;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.item-list li .card-images {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
    background: #ebf5ff; /* Lyseblå baggrund */
    gap: 10px;
    padding: 10px;
}

.item-list li .card-images::-webkit-scrollbar {
    height: 6px;
}
.item-list li .card-images::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.item-list li img {
    height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 4px; /* Lidt blødere kanter på billederne */
}

.item-list li img:last-child {
    /* fjernet border-right */
}

.item-list li .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-list h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.item-list .card-content p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.item-list .btn {
    margin-top: auto;
    align-self: flex-start;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background-color: #2980b9;
}

/* Studieportalen specifik css */
.hero {
    background-color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-bottom: 1px solid #ddd;
}
.hero h1 { margin-top: 0; font-size: 2.5rem; color: var(--primary-color); }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem auto; color: #666; }
.featured { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }
.featured h2 { text-align: center; margin-bottom: 0.5rem; color: var(--primary-color); }
.featured > p { text-align: center; margin-bottom: 2rem; color: #666; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; display: flex; flex-direction: column; }
.card h3 { color: var(--secondary-color); margin-top: 0; }
.card ul { text-align: left; padding-left: 20px; margin-bottom: 1.5rem; flex-grow: 1; }
.card ul li { margin-bottom: 8px; }
.card .btn { margin-top: auto; }


/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

pre {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 14px;
    border: 1px solid #1e1e1e;
    margin: 10px 0;
    line-height: 1.4;
}

