/* Page styles moved out of the inline <style> block in v8.0 (unchanged rules).
   Loaded before css/site.css, exactly where the inline block used to be. */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--lu-dark-grey);
    background-color: var(--lu-white);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--lu-bronze);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--lu-link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER – Main Navigation
   ============================================ */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background-color: var(--lu-white);
    border-bottom: 2px solid var(--lu-grey);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 64px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--lu-dark-grey);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--lu-dark-blue);
    border-bottom-color: var(--lu-dark-blue);
    text-decoration: none;
}

.main-nav a.active {
    color: var(--lu-dark-blue);
    border-bottom-color: var(--lu-dark-blue);
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--lu-dark-grey);
    cursor: pointer;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--lu-dark-blue);
}

/* ============================================
   MAIN CONTENT AREA (Flexible Middle)
   ============================================ */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
    min-height: 60vh;
}

/* Example section styles for middle content */
.content-area h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--lu-dark-blue);
    margin-bottom: 16px;
    font-weight: 400;
}

.content-area h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--lu-dark-blue);
    margin-bottom: 12px;
    margin-top: 32px;
    font-weight: 400;
}

.content-area p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.contact-info {
    background: var(--lu-bg-light);
    border-left: 4px solid var(--lu-bronze);
    padding: 24px;
    border-radius: 4px;
    max-width: 600px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-info strong {
    color: var(--lu-dark-blue);
    font-weight: 600;
}

.contact-info a {
    color: var(--lu-bronze);
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--lu-link-hover);
    text-decoration: underline;
}

/* ============================================
   FOOTER – Lund University Style
   ============================================ */
.site-footer {
    border-top: 3px solid var(--lu-bronze);
    background-color: var(--lu-white);
    padding: 32px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--lu-bronze);
    color: var(--lu-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--lu-link-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .content-area {
        padding: 32px 16px;
    }

    .site-footer {
        padding: 24px 16px;
    }

    .footer-inner {
        flex-direction: column;
    }

}
