:root {
    --primary-color: #000000;
    --accent-color: #ff3e3e; /* Electric Red */
    --bg-color: #ffffff;
    --text-color: #000000;
    --card-bg: #ffffff;
    --border-width: 4px;
    --hard-shadow: 8px 8px 0px 0px #000000;
    --font-family: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    line-height: 1.4;
    color: var(--text-color);
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--accent-color);
    border-bottom: var(--border-width) solid #000;
    text-align: left;
    padding: 0;
}

.header-image {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: grayscale(1) contrast(1.2);
    border-bottom: var(--border-width) solid #000;
}

header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
    padding: 1.5rem 1rem;
    line-height: 0.9;
    color: #fff;
    -webkit-text-stroke: 2px #000;
}

header h2 {
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-family: var(--font-mono);
    background: #000;
    color: var(--accent-color);
    margin: 0;
    padding: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Brutalist Navbar --- */
.navbar {
    background: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-width) solid #000;
    height: 70px;
}

.nav-toggle { display: none; }

.nav-toggle-label {
    display: none;
    cursor: pointer;
    background: #000;
    color: #fff;
    padding: 0 1.5rem;
    height: 100%;
    align-items: center;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.2rem;
    border-right: var(--border-width) solid #000;
}

.nav-links {
    display: flex;
    height: 100%;
    align-items: stretch;
}

.nav-dropdown {
    position: relative;
    height: 100%;
}

.nav-item {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    transition: none;
    background: #fff;
    border: none;
    border-right: var(--border-width) solid #000; /* Unified right border */
    cursor: pointer;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    background: var(--accent-color);
    color: #fff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    z-index: 1001;
    border: var(--border-width) solid #000;
    top: 100%;
    left: -4px;
    box-shadow: var(--hard-shadow);
}

.dropdown-content a {
    color: #000;
    padding: 1rem;
    text-decoration: none;
    display: block;
    font-weight: 700;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.dropdown-content a:hover, .dropdown-content a.active {
    background-color: #000;
    color: var(--accent-color);
}

.nav-dropdown:hover .nav-item, .nav-dropdown.active .nav-item {
    background: var(--accent-color);
    color: #fff;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.lang-switcher {
    padding: 0 1rem;
}

.lang-switcher select {
    padding: 0.5rem;
    font-family: var(--font-mono);
    font-weight: bold;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    cursor: pointer;
    text-transform: uppercase;
}

/* --- Content Styling --- */
main {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border: var(--border-width) solid #000;
    box-shadow: var(--hard-shadow);
    flex-grow: 1;
}

h3 {
    font-size: 2rem;
    text-transform: uppercase;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 1rem;
    border: 2px solid #000;
    margin-bottom: 1rem;
    background: #f9f9f9;
    box-shadow: 4px 4px 0px #000;
}

li strong {
    color: var(--accent-color);
    text-transform: uppercase;
}

blockquote {
    font-family: var(--font-mono);
    font-style: italic;
    font-size: 1.5rem;
    margin: 3rem 0;
    padding: 2rem;
    background: #000;
    color: #fff;
    border: none;
    position: relative;
    box-shadow: 12px 12px 0px var(--accent-color);
}

.meta-tags {
    margin-top: 4rem;
    padding: 1rem;
    background: #000;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
}

footer {
    text-align: center;
    padding: 4rem 1rem;
    background: #000;
    color: #fff;
    border-top: var(--border-width) solid #000;
}

main a {
    color: #009739; /* Palestine Green */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

main a:hover {
    background-color: #009739;
    color: #fff;
}

footer a { color: var(--accent-color); font-weight: bold; }

.translation-call {
    border: 3px solid #fff;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 8px 8px 0px var(--accent-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem auto;
    border: var(--border-width) solid #000;
    box-shadow: var(--hard-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Mobile / Tablet Overhaul with Hamburger --- */
@media (max-width: 1024px) {
    .nav-toggle-label {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        height: auto;
        border-bottom: var(--border-width) solid #000;
        box-shadow: var(--hard-shadow);
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-dropdown {
        border-right: none;
    }

    .nav-item {
        padding: 1.5rem;
        width: 100%;
        font-size: 1.1rem;
        justify-content: space-between;
        border-right: none;
        border-bottom: 2px solid #000;
    }

    .nav-dropdown:hover .dropdown-content,
    .nav-dropdown:focus-within .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        border-left: none;
        border-right: none;
        border-bottom: var(--border-width) solid #000;
        width: 100%;
        background: #f9f9f9;
    }

    .dropdown-content a {
        padding-left: 3rem;
        border-bottom: 1px solid #ddd;
    }

    .navbar {
        justify-content: space-between;
    }

    .lang-switcher {
        border-left: var(--border-width) solid #000;
        height: 100%;
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    main {
        margin: 1rem;
        padding: 1.5rem;
        border-width: 3px;
    }
}

[dir="rtl"] .dropdown-content { left: auto; right: -4px; text-align: right; }
[dir="rtl"] .nav-dropdown { border-right: none; border-left: none; }
[dir="rtl"] .nav-item { flex-direction: row-reverse; border-right: none; border-left: var(--border-width) solid #000; }
[dir="rtl"] .dropdown-content a { padding-left: 1rem; padding-right: 3rem; }
@media (max-width: 1024px) {
    [dir="rtl"] .nav-item { border-left: none; }
    [dir="rtl"] .nav-toggle-label { border-right: none; border-left: var(--border-width) solid #000; }
    [dir="rtl"] .lang-switcher { border-left: none; border-right: var(--border-width) solid #000; margin-left: 0; margin-right: auto; }
}
