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

:root {
    --primary-color: #1c3e72;
    --accent-color: #9c1f3e;
    --text-color: #333333;
    --bg-color: #f4f6f9;
    --content-bg: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--content-bg);
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px 20px;
    background: transparent;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

header img.logo {
    max-height: 200px;
    max-width: 100%;
    width: auto;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 300;
    margin-top: 20px;
}

header p.subtitle {
    color: #666;
    font-size: 1rem;
}

/* Navigation */
nav {
    background: var(--primary-color);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    z-index: 10;
}

nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* Dropdown */
nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100;
    border-top: 3px solid var(--accent-color);
}

nav ul li:hover ul.dropdown {
    display: block;
}

nav ul li ul.dropdown li {
    width: 100%;
}

nav ul li ul.dropdown li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 400;
}

nav ul li ul.dropdown li a:hover {
    background: var(--accent-color);
}

/* Keyvisual */
.keyvisual {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Specific elements from original */
.separator {
    height: 2px;
    background-color: var(--primary-color);
    margin: 30px 0;
    width: 100%;
}
.separator.red {
    background-color: var(--accent-color);
}

.button-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0;
    transition: background 0.3s;
}

.button-link:hover {
    background-color: #801831;
}

/* Image Grid on Homepage */
.home-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.home-grid-item {
    flex: 1 1 calc(33% - 20px);
    text-align: center;
    margin-bottom: 20px;
}

.home-grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.home-grid-item h2 a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    margin-top: 15px;
    font-family: var(--font-heading);
}

/* Grid Layout for Content & Sidebar */
.layout-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 50px;
    padding: 50px;
    background: #fff;
    min-height: 500px;
}

main {
    width: 100%;
}

main h2 {
    color: var(--primary-color);
    margin-top: 0;
}

aside {
    width: 100%;
    text-align: center;
    padding: 30px;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget img {
    max-width: 64px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.sidebar-widget:hover img {
    transform: scale(1.1);
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-widget a {
    text-decoration: none;
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: auto;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

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

/* Burger Menu for Mobile */
.burger-menu {
    display: none;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    text-align: right;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    user-select: none;
}

.burger-menu-icon {
    display: inline-block;
    width: 30px;
    height: 20px;
    position: relative;
}

.burger-menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    left: 0;
    transition: .25s ease-in-out;
}

.burger-menu-icon span:nth-child(1) { top: 0px; }
.burger-menu-icon span:nth-child(2) { top: 8px; }
.burger-menu-icon span:nth-child(3) { top: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .site-wrapper {
        margin: 0;
        box-shadow: none;
        width: 100%;
    }
    
    .layout-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: left;
    }

    nav ul li ul.dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.1);
        display: none !important; /* Hide submenus by default on mobile */
    }
    
    nav ul li.mobile-open ul.dropdown {
        display: block !important;
    }
    
    .burger-menu {
        display: block;
    }
    
    .keyvisual {
        height: 250px;
    }

    .home-grid-item {
        flex: 1 1 100%;
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 62, 114, 0.98);
    color: #fff;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner p {
    margin-bottom: 15px;
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 0.95rem;
}

#cookie-banner button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    margin: 0 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

#cookie-banner button.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
}

#cookie-banner button:hover {
    background: #7a1630;
}

#cookie-banner button.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}
