@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@400;700&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #205487; /* Blue text */
    --text-color: #3f464e;
    --bg-color: #ffffff;
    --font-main: 'Oxygen', Arial, sans-serif;
    --font-serif: 'Noto Serif', 'Droid Serif', serif;
    --max-width: 1200px;
    --nav-bg: #f8f9fa;
    --nav-hover: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('assets/bg.jpg'); /* Fixed background from the original */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    line-height: 1.6;
}

/* Base Wrapper for white background on content */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85); /* To make text readable over bg */
    z-index: -1;
}

/* HEADER */
.site-header {
    background-color: #ffffff;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 80px;
    width: auto;
}

.title-wrapper {
    flex: 1;
    margin-left: 20px;
}

.title-wrapper .title {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.5rem;
}

/* NAVIGATION */
.main-nav {
    background-color: var(--nav-bg);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.main-nav > ul {
    max-width: var(--max-width);
    margin: 0 auto;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
    background-color: var(--nav-hover);
    color: var(--primary-color);
}

/* DROPDOWN */
.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
    list-style: none;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown a {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 400;
}

/* BURGER MENU */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s;
}

/* KEYVISUAL */
.keyvisual {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    height: 300px;
}

.kv-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* CONTENT CONTAINER */
.content-wrapper {
    max-width: var(--max-width);
    margin: 40px auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    padding: 0 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 30px;
    border-radius: 4px;
}

/* MAIN CONTENT */
main h1, main h2, main h3 {
    color: var(--primary-color);
    font-family: var(--font-serif);
    margin-bottom: 20px;
    margin-top: 30px;
}

main h1:first-child {
    margin-top: 0;
}

main p {
    margin-bottom: 15px;
}

main a {
    color: var(--primary-color);
    text-decoration: none;
}

main a:hover {
    text-decoration: underline;
}

main ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* SIDEBAR */
.sidebar {
    background-color: #fcfcfc;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.sidebar h2, .sidebar h3 {
    color: var(--primary-color);
    font-family: var(--font-serif);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.sidebar p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.sidebar-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
}

/* MAP CONTAINER */
.map-container {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* FOOTER */
.site-footer {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #666;
    background-color: #ffffff;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1a4269;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .title-wrapper {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .logo img {
        max-height: 60px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    .main-nav {
        display: none;
        width: 100%;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav > ul {
        flex-direction: column;
    }

    .main-nav > ul > li {
        border-bottom: 1px solid #ddd;
    }

    .has-dropdown .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f0f0f0;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
