@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --primary-red: #EE1921;
    --text-color: #333333;
    --bggrey: #f5f5f5;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bggrey);
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.page-wrapper {
    width: 100%;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

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

.title-container {
    text-align: right;
}

.title-container h1 {
    font-size: xx-large;
    font-family: 'EB Garamond', serif;
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-weight: 500;
}

.title-container .subtitle {
    font-size: x-large;
    font-family: 'EB Garamond', serif;
    color: var(--text-color);
    margin: 0;
}

/* Nav */
.main-nav {
    background-color: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 100;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    transition: color 0.3s, background-color 0.3s;
}

.nav-links > li > a:hover {
    color: var(--primary-red);
    background-color: #f9f9f9;
}

/* Dropdown */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    border: 1px solid #ddd;
}

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

.submenu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    transition: color 0.2s, background-color 0.2s;
    border-bottom: 1px solid #eee;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    color: var(--primary-red);
    background-color: #f5f5f5;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px auto;
    transition: 0.3s;
}

/* Keyvisual */
.keyvisual {
    width: 100%;
    background-color: #fff;
}

.keyvisual img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Content */
.content-wrapper {
    display: flex;
    padding: 40px;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
}

#main-content {
    flex: 3;
    line-height: 1.6;
}

#main-content h1, #main-content h2, #main-content h3 {
    color: var(--text-color);
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    margin-top: 0;
}

#main-content h1 {
    font-size: xx-large;
}

#main-content h2 {
    font-size: large;
}

#main-content h3 {
    font-size: x-large;
}

#main-content p {
    text-align: justify;
}

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

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

.cm_widget_separatingline {
    border-top: 1px solid var(--primary-red);
    margin: 20px 0;
}

.cm-w_sl-double {
    border-top: 3px double var(--primary-red);
}

/* Sidebar */
aside {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.sidebar-widget {
    text-align: center;
}

.sidebar-widget img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.sidebar-text a {
    color: var(--primary-red);
    text-decoration: none;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px;
}

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

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

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

.btn-accept:hover {
    background-color: #c9101a;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

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

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-copyright {
    margin-top: 10px;
    color: #888;
}

/* Download Widgets */
.cm-download-widget {
    margin: 20px 0;
}
.cm-download-widget table {
    border-spacing: 0;
    border-collapse: collapse;
}
.cm-download-widget td {
    vertical-align: top;
    padding: 0 15px 15px 0;
}
.cm-download-widget img {
    margin-top: 3px;
    width: auto;
    max-width: none;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    aside {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .title-container {
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li > a {
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
        background-color: #f9f9f9;
    }

    .submenu li a {
        text-align: center;
        padding: 12px 15px;
        border-bottom: 1px solid #eaeaea;
    }

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