/* Reset og grundlæggende styling */
html {
    width: 100vw;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
    background-color: #fff;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
    width: 100%;
    flex: 1 0 auto;
    min-height: max(920px, 95vh);  /* Bruger den største værdi af enten 920px eller 95% af viewport height */
}

main {
    width: 100%;
    margin-bottom: 60px;
}

/* Main content layout */
.main-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    min-height: calc(100vh - 180px);
    margin-bottom: 0;
    padding: 20px 0;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}

/* Navigation */
.main-nav {
    background-color: #fff;
    padding: 12px 0;
    margin: 0 -20px 40px -20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border: none;
}

.main-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    height: 2px;
    background: #e31837;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(227, 24, 55, 0.1);
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
}

.favorite {
    height: 60px;
}

.favorite a {
    text-decoration: none;
    display: inline-block;
    height: 100%;
}

.favorite img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    padding: 5px 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #e31837;
}

/* Brand name */
.brand-name {
    color: #e31837;
    font-weight: 700;
    font-size: 18px;
}

/* Welcome section styling */
.welcome-text {
    text-align: left;
    margin-bottom: 20px;
}

.welcome-text h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.welcome-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

/* Image grid styling */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.welcome-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* Contact card styling */
.contact-card {
    min-height: auto;
    padding: 20px;
}

.contact-card h2 {
    color: #e31837;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-details-small {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-details-small p {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
}

.contact-details-small strong {
    color: #2d3748;
}

.contact-link {
    display: inline-block;
    color: #e31837;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.contact-link:hover {
    transform: translateX(5px);
}

/* Info cards styling */
.info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    min-height: auto;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #eee;
}

/* Opening hours styling */
.opening-hours {
    height: fit-content;
}

.opening-hours h2 {
    color: #e31837;
    margin-bottom: 20px;
    font-size: 20px;
}

.opening-hours ul {
    list-style: none;
    margin-bottom: 20px;
}

.opening-hours li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day {
    font-weight: 500;
    color: #2d3748;
}

.wait-time {
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #2d3748;
}

.wait-time span {
    color: #e31837;
    font-weight: 500;
}

/* Services styling */
.services {
    height: fit-content;
}

.services h2 {
    color: #e31837;
    margin-bottom: 20px;
    font-size: 20px;
}

.services-grid {
    margin-bottom: 20px;
}

.services ul {
    list-style: none;
}

.services li {
    margin-bottom: 10px;
    color: #4a5568;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
}

.services li:before {
    content: "•";
    color: #e31837;
    position: absolute;
    left: 0;
}

.service-link {
    display: inline-block;
    color: #e31837;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.service-link:hover {
    transform: translateX(5px);
}

/* Undersøgelser side styling */
.undersogelser-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    margin-bottom: 30px;
    border-radius: 12px;
}

.nav-top-row, .nav-bottom-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.undersogelser-nav a {
    color: #e31837;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: white;
}

.undersogelser-nav a:hover {
    border-color: #e31837;
    background: #fff;
    box-shadow: 0 2px 8px rgba(227, 24, 55, 0.1);
}

.undersogelser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.undersogelse-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.undersogelse-content {
    padding: 20px;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.undersogelse-number {
    color: #e31837;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.undersogelse-content p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.undersogelse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #eee;
}

.undersogelse-card:active {
    transform: translateY(0);
}

/* Examination specific side styling */
.examination-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.examination-navigation {
    margin-bottom: 40px;
}

.back-link {
    color: #e31837;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.examination-header {
    margin-bottom: 40px;
    border-bottom: none;
    padding-bottom: 0;
}

.examination-header h1 {
    font-size: 32px;
    color: #e31837;
    font-weight: 500;
    margin-bottom: 10px;
}

.examination-content {
    max-width: 100%;
}

.examination-description {
    max-width: 680px;
}

.examination-description h2 {
    font-size: 22px;
    color: #333;
    margin: 40px 0 20px 0;
    font-weight: 500;
}


.examination-description h2:first-child {
    margin-top: 0;
}

.examination-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.examination-image {
    margin: 20px 0;
    width: 100%;
    max-width: 600px;
    display: block;
}

.examination-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-container {
    margin: 20px 0;
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.instruction-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4a5568;
}

.instruction-list li:before {
    content: "•";
    color: #e31837;
    position: absolute;
    left: 0;
}

.important-note {
    background: #FFF5F5;
    border-left: 3px solid #e31837;
    padding: 10px 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.examination-description ol {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 0 0 15px 0;
}

.examination-description ol li {
    counter-increment: item;
    margin-bottom: 8px;
    padding-left: 35px;
    position: relative;
    color: #4a5568;
}

.examination-description ol li:before {
    content: counter(item);
    color: #e31837;
    font-weight: 500;
    position: absolute;
    left: 0;
    width: 25px;
    text-align: right;
    padding-right: 10px;
}

/* Staff page styling */
.staff-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 500;
}

.staff-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.staff-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.staff-image {
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.staff-image img { /*tilpasset til Inger Sihm billede*/
    width: 140%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    margin-left: -20%;
}

.staff-info {
    flex: 1;
}

.staff-info h2 {
    font-size: 24px;
    color: #e31837;
    margin-bottom: 8px;
    font-weight: 500;
}

.staff-title {
    font-size: 16px;
    color: #545454;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.staff-title + .staff-title {
    margin-top: -10px;
    margin-bottom: 15px;
}

.cv-link {
    display: inline-block;
    color: #e31837;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cv-link:hover {
    transform: translateX(5px);
}

/* Lægestuderende sektion */
.students-section {
    padding: 20px 0;
}

.students-section h2 {
    font-size: 24px;
    color: #e31837;
    margin-bottom: 15px;
    font-weight: 500;
}

.students-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
}

.students-list li {
    color: #545454;
    font-weight: 600;
    font-size: 16px;
}

.page-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 500;
}

.info-section {
    margin-bottom: 40px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h2 {
    font-size: 24px;
    color: #e31837;
    margin-bottom: 15px;
    font-weight: 500;
}

.info-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 15px;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.info-section a {
    color: #e31837;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-section a:hover {
    color: #cc1630;
}

/* Links page styling */
.links-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
}

/* Links grid layout */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Card styling */
.link-card-large {
    grid-column: span 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo section styling */
.link-logo-section {
    flex-shrink: 0;
    width: 100%;
    max-width: 120px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Standard card styling */
.link-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-align: center;
}

.link-card:hover,
.link-card-large:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Logo image */
.link-logo {
    max-width: 100%;
    height: auto;
}

/* Content section */
.link-content {
    flex-grow: 1;
}

.link-card h2,
.link-card-large h2 {
    font-size: 18px;
    color: #e31837;
    margin-bottom: 10px;
    font-weight: 500;
}

.link-card p,
.link-card-large p {
    font-size: 14px;
    line-height: 1.4;
    color: #4a5568;
    margin-bottom: 15px;
}

.link-button {
    display: inline-block;
    color: #e31837;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 0;
    transition: all 0.2s ease;
}

.link-button:hover {
    transform: translateX(5px);
}

/* Contact page styling */
.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 180px);
    background: #fff;
    margin-bottom: -40px;
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-form-section h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-notice {
    background-color: #fff5f5;
    border-left: 3px solid #e31837;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

.contact-notice p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Form styling */
.contact-form-section h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e31837;
}

.submit-button {
    background-color: #e31837;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: fit-content;
}

.submit-button:hover {
    background-color: #cc1630;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #e31837;
}

/* Contact info styling */
.contact-info-section {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.contact-info-section h2 {
    font-size: 24px;
    color: #e31837;
    margin-bottom: 20px;
    font-weight: 500;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-content p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.info-content strong {
    color: #2d3748;
}

.info-content a {
    color: #e31837;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-content a:hover {
    color: #cc1630;
}

/* Footer styling */
footer {
    flex-shrink: 0;
    background-color: #f8f8f8;
    width: 100%;
    padding: 40px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section h3 {
    color: #e31837;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.footer-section p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section a {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-section a:hover {
    color: #e31837;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* CV side styling */
.cv-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.cv-content {
    margin-top: 20px;
    margin-bottom: 60px;
    font-size: 14px;
}

.cv-content h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.cv-section {
    margin-bottom: 30px;
}

.cv-section h2 {
    color: #e31837;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
}

.cv-section p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #4a5568;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.publication-item {
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.publication-item:hover {
    background-color: #f8f8f8;
}

.cv-back-link {
    color: #e31837;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.cv-back-link:hover {
    text-decoration: underline;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;  /* Konsistent mellemrum mellem alle items */
}

.publication-item {
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
    padding: 12px;  /* Konsistent padding */
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.publication-item:hover {
    background-color: #f8f8f8;
}

.publications-hidden {
    display: none;
    margin: 0;  /* Fjern eventuel margin */
    padding: 0; /* Fjern eventuel padding */
    gap: 12px;  /* Samme gap som parent */
}

.publications-hidden.show {
    display: flex;
    flex-direction: column;
    gap: inherit;  /* Arv gap fra parent */
}

.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #e31837;
    border-radius: 6px;
    color: #e31837;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #fff5f5;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.show-more-btn.active .arrow-icon {
    transform: rotate(180deg);
}

.location-info {
    margin-bottom: 30px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h2 {
    color: #e31837;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-section p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Hamburger menu styling */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e31837;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Base spacing */
.page-wrapper {
    padding-bottom: 40px;
}

/* Container spacing */
.staff-grid,
.undersogelser-grid,
.links-grid,
.info-container,
.map-container,
.examination-layout,
.contact-grid {
    margin-bottom: 40px;
}

/* Extra spacing for specific pages on desktop */
.info-page .info-container,
.find-vej-page .map-container {
    margin-bottom: 180px;
}

/* Form message styling */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;  /* Start skjult */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Privacy page styling */
.privacy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-content {
    margin-bottom: 60px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    color: #e31837;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
}

.privacy-section h3 {
    color: #2d3748;
    font-size: 18px;
    margin: 20px 0 12px;
    font-weight: 500;
}

.privacy-section p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-section ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.privacy-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.privacy-section ul li:before {
    content: "•";
    color: #e31837;
    position: absolute;
    left: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-wrapper {
        padding: 15px;
    }

    .main-nav {
        padding: 15px;
        margin: 0 -15px 30px -15px;
    }

    .nav-links {
        gap: 20px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 15px 0;
    }

    .links-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 10px 0 12px 0;
        margin: 0 -15px 30px -15px;
    }

    .main-nav::after {
        width: 94%;
        height: 1.8px;
        border-radius: 1px;
        box-shadow: none;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        margin-left: 0;
        margin-top: 15px;
    }

    .main-content {
        gap: 40px;
    }

    .content-left {
        gap: 40px;
    }

    .content-right {
        gap: 40px;
        padding-top: 0;
    }
    
    .info-card {
        margin-bottom: 0;
    }

    .image-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .page-wrapper {
        padding-bottom: 60px;
    }
    
    .welcome-image {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }

    .welcome-text {
        text-align: center;
    }

    .undersogelser-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .undersogelser-nav {
        padding: 15px;
    }
    
    .undersogelser-nav a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .nav-top-row, .nav-bottom-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-section:last-child {
        grid-column: span 1;
    }

    .footer-logo {
        height: 35px;
    }

    .examination-page {
        padding: 0 15px 40px 15px;
    }

    .examination-navigation {
        margin-bottom: 30px;
    }

    .examination-header {
        margin-bottom: 30px;
    }

    .examination-header h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .examination-description h2 {
        font-size: 20px;
        margin: 35px 0 15px 0;
    }

    .examination-description p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .examination-image {
        margin: 15px 0;
    }
    
    .examination-layout {
        margin-bottom: 60px;
    }

    .examination-image, 
    .video-container {
        height: 250px;
    }

    .staff-card {
        flex-direction: column;
        text-align: center;
    }

    .staff-image {
        margin: 0 auto;
    }

    .students-section {
        text-align: center;
    }

    .students-list {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-form-section h1 {
        font-size: 24px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .contact-info-section {
        padding: 20px;
    }

    .contact-info-section h2 {
        font-size: 20px;
    }

    .info-content p {
        font-size: 14px;
    }

    .submit-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .page-title {
        font-size: 28px;
    }

    .info-section h2 {
        font-size: 20px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .link-card-large,
    .link-card {
        padding: 20px;
    }

    .cv-content {
        font-size: 13px;
    }
    
    .cv-content h1 {
        font-size: 22px;
    }
    
    .cv-section h2 {
        font-size: 16px;
    }
    
    .publication-item {
        font-size: 12px;
    }

    .info-section h2 {
        font-size: 18px;
    }

    .info-section p {
        font-size: 14px;
    }

    .map-container iframe {
        height: 350px;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-top {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 0;
    }

    /* Hamburger animation */
    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .examination-image {
        margin: 15px 0;
        height: auto !important;
    }

    .examination-layout {
        margin-bottom: 40px;
    }

    /* Reset extra spacing on mobile */
    .info-page .info-container,
    .find-vej-page .map-container {
        margin-bottom: 40px;
    }

    .privacy-section h2 {
        font-size: 20px;
    }

    .privacy-section h3 {
        font-size: 16px;
    }

    .privacy-section p,
    .privacy-section ul li {
        font-size: 14px;
    }

    /* Footer */
    .footer-logo {
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .footer-logo:hover {
        transform: translateY(-2px);
    }

}

@media (max-width: 480px) {
    .undersogelser-grid {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .examination-page {
        padding: 0 12px 30px 12px;
    }

    .examination-header h1 {
        font-size: 26px;
    }

    .examination-description h2 {
        font-size: 18px;
        margin: 30px 0 12px 0;
    }

    .examination-content h2 {
        font-size: 18px;
    }

    .examination-content p,
    .examination-content li {
        font-size: 14px;
    }

    .student-grid {
        grid-template-columns: 1fr;
    }

    .staff-image {
        width: 150px;
        height: 150px;
    }

    .students-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-section h1 {
        font-size: 22px;
    }

    .form-group {
        gap: 6px;
    }

    .contact-info-section {
        padding: 15px;
    }

    .submit-button {
        width: 100%;
    }

    .info-section p {
        font-size: 14px;
    }

    .page-title {
        font-size: 28px;
    }

    .link-card h2 {
        font-size: 18px;
    }

    .link-card p {
        font-size: 14px;
    }

    .cv-content {
        font-size: 12px;
    }
    
    .cv-content h1 {
        font-size: 20px;
    }
    
    .cv-section h2 {
        font-size: 15px;
    }
    
    .publication-item {
        font-size: 11px;
        padding: 6px 10px;
    }

    .map-container iframe {
        height: 300px;
    }

    .privacy-page {
        padding: 0 15px;
    }
    
    .privacy-section h2 {
        font-size: 18px;
    }
}