:root {
    /* Colors */
    --color-yellow: #f1c40f;
    --color-blue: #00d2ff;
    --color-red: #e74c3c;
    --color-green: #2ecc71;
    --color-purple: #9b59b6;

    /* Layout & Surfaces */
    --bg-page: #0a0a0e;
    --surface-glass: rgba(20, 20, 28, 0.6);
    --surface-card: rgba(30, 30, 40, 0.4);
    --surface-hover: color-mix(in srgb, var(--accent-theme), transparent 80%);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-accent: var(--accent-theme);

    /* Typography */
    --text-primary: #e2e2e2;
    --text-secondary: #a0a0b0;

    /* Accents (Functional names) */
    --accent-theme: var(--color-yellow);
    /* The main thematic color - default yellow */
    --accent-highlight: var(--color-blue);
    /* Secondary/Action color */

    /* Derived Accents */
    --accent-theme-soft: color-mix(in srgb, var(--accent-theme), transparent 90%);
    --accent-theme-glow: color-mix(in srgb, var(--accent-theme), transparent 70%);

    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== GENERAL TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

/* General Links */
a {
    color: var(--accent-theme);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-highlight);
}

/* General Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== NEW 3-COLUMN LAYOUT ===== */
.layout-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    min-height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
}

/* ===== LEFT SIDEBAR - NAVIGATION ===== */
.sidebar-nav {
    background: var(--surface-glass);
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid var(--border-subtle);
    position: sticky;
    top: 20px;
    height: fit-content;
    overflow-y: auto;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.sidebar-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: brightness(1.1) drop-shadow(0 0 20px var(--accent-theme-glow));
    cursor: pointer;
}

.sidebar-logo img:hover {
    transform: scale(1.08);
    filter: brightness(1.2) drop-shadow(0 0 30px var(--accent-theme));
}

/* NAVIGATION ITEMS */
.nav-section {
    margin-bottom: 15px;
}

.nav-button {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: currentColor;
    transform: translateX(5px);
}

.nav-button.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: currentColor;
}

.nav-button.noord {
    color: var(--color-green);
    border-left: 3px solid var(--color-green);
}

.nav-button.oost {
    color: var(--color-yellow);
    border-left: 3px solid var(--color-yellow);
}

.nav-button.zuid {
    color: var(--color-red);
    border-left: 3px solid var(--color-red);
}

.nav-button.west {
    color: var(--color-blue);
    border-left: 3px solid var(--color-blue);
}

.nav-button.centrum {
    color: var(--color-purple);
    border-left: 3px solid var(--color-purple);
}

.nav-arrow {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.nav-button.active .nav-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN MENU */
.nav-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 8px;
}

.nav-dropdown.open {
    /* max-height handled by JS for smooth transition to auto/scrollHeight */
    padding: 15px;
}

.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 600;
}

.dropdown-header a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    margin: -8px -15px 10px -15px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.dropdown-header a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.dropdown-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    margin-top: 15px;
    margin-bottom: 8px;
    padding-left: 20px;
    border-left: 2px solid var(--border-subtle);
    position: relative;
}

.dropdown-category::before {
    content: "●";
    position: absolute;
    left: 8px;
    font-size: 0.6rem;
    color: inherit;
}

.dropdown-category:first-of-type {
    margin-top: 10px;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 20px;
}

.dropdown-link.special {
    color: var(--color-red);
    font-weight: 600;
}

/* KOMPAS LINK */
.kompas-link {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--border-subtle);
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.kompas-link:hover {
    color: #fff;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: var(--surface-glass);
    border-radius: 12px;
    padding: 60px;
    border: 1px solid var(--border-subtle);
}

.main-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.main-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.main-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.main-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-family: var(--font-body);
    color: var(--text-secondary);
}

.main-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.main-content a {
    color: var(--accent-theme);
    text-decoration: none;
    transition: color 0.3s;
}

.main-content a:hover {
    color: var(--accent-highlight);
}

.main-content ul,
.main-content ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.main-content li {
    margin-bottom: 0.5rem;
}

.main-content blockquote {
    border-left: 4px solid var(--accent-theme);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.main-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.main-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.main-content pre code {
    background: none;
    padding: 0;
}

.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.main-content th,
.main-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.main-content th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--accent-theme);
}

/* ===== RIGHT SIDEBAR - EXTRAS ===== */
.sidebar-extras {
    background: var(--surface-glass);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-subtle);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.extras-section {
    margin-bottom: 30px;
}

.extras-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.newsletter-box {
    background: var(--accent-theme-soft);
    border: 1px solid var(--accent-theme-glow);
    border-radius: 8px;
    padding: 20px;
}

.newsletter-box input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-box button {
    width: 100%;
    padding: 12px;
    background: var(--accent-theme);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-box button:hover {
    background: color-mix(in srgb, var(--accent-theme), black 20%);
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: var(--accent-theme);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .layout-container {
        grid-template-columns: 260px 1fr 280px;
    }
}

@media (max-width: 1200px) {
    .layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-nav,
    .sidebar-extras {
        position: relative;
        top: 0;
    }

    .main-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 30px 20px;
    }

    .main-content h1 {
        font-size: 2rem;
    }

    .main-content h2 {
        font-size: 1.5rem;
    }
}

/* ===== FLOATING TRANSLATE BUTTON (Standardized) ===== */
.translate-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #ccc;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.translate-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.translate-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Google Translate Widget in sidebar */
#google_translate_element {
    display: block;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
}

/* ===== COMPASS SPECIFIC STYLES (From Index) ===== */
/* Compass Visual in Main Content */
.compass-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.compass-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.compass-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.compass-item h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.compass-item p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

/* Specific Colors for Tiles */
.item-noord {
    grid-column: 1 / -1;
    border-top: 3px solid var(--color-green);
}

.item-noord h2 {
    color: var(--color-green);
}

.item-west {
    border-top: 3px solid var(--color-blue);
}

.item-west h2 {
    color: var(--color-blue);
}

.item-oost {
    border-top: 3px solid var(--color-yellow);
}

.item-oost h2 {
    color: var(--color-yellow);
}

.item-zuid {
    grid-column: 1 / -1;
    border-top: 3px solid var(--color-red);
}

.item-zuid h2 {
    color: var(--color-red);
}

.item-centrum {
    grid-column: 1 / -1;
    margin: 20px 0;
    border: 1px solid var(--color-purple);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
}

.item-centrum h2 {
    color: var(--color-purple);
}