body {
    font-family: "Arial", monospace;
    background: #fff;
    color: #111;
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    flex-direction: column;   /* stack logo above nav */
    align-items: center;      /* center everything */
    padding: 1rem;
    color: red;
    text-align: center;
}

.logo-wrapper {
    width: 250px;
    height: 250px;
    background: white;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

nav {
    font-weight: bold;
}


@media (max-width: 600px) {
    .logo-wrapper {
        max-width: 120px; /* even smaller on mobile */
        max-height: 120px;
    }

    .header {
        flex-direction: column; /* stack items vertically if needed */
        text-align: center;
    }
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}
img, .story-img, .export-image img, .block img {
    max-width: 100%;
    height: auto;
    display: block;
}
h3{
    background-color: red;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    font-size: 3rem;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 0.2rem;
    }
}

header {
    background: black;
    color: red;
    padding: 2rem;
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 2px;
}


.menu-item {
    color: red;
    text-decoration: none;
    margin: 10px;
}

.menu-item:hover {
    color: white;
    cursor: pointer;
    text-decoration: none;
}
.menu-item.active {
    color: white;
    background: red;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
}

.menu-item.active:hover {
    color: white;
    background: darkred;
}

main {
    padding: 2rem;
}

.block {
    border: 1px solid black;
    margin: 2rem 0;
    padding: 1rem;
    background: #fAfAfA;

}

.block ul li a:hover {
    color: red;
    font-weight: bold;

}

.link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.link-card {
    display: block;
    flex: 1 1 250px;
    border: 1px solid black;
    padding: 1rem;
    background: #f4f4f4;
    text-decoration: none;
    color: black;
    transition: transform 0.2s, background 0.2s;
}

.link-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.link-card p {
    margin: 0;
}

.link-card:hover {
    transform: scale(1.05);
    color: red;
}

.principle {
    border: 1px solid #ccc;
    padding: 1rem;
    margin: 1rem 0;
    background: #fff8f8;
    transition: transform 0.2s;
}

.principle:hover {
    transform: scale(1.02);
    border-color: red;

}
.stories {
    margin: 2rem 0;
}

.language-switcher {
    margin: 2rem;
}

.language-switcher button {
    margin-right: 0.5rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    background: red;
    color: white;
    border: none;
    text-transform: uppercase;
}

.language-switcher button:hover {
    background: darkred;
}
.language-switcher button.active {
    background: white;
    color: red;
    font-weight: bold;
    border: 2px solid red;
}


.story-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0.5rem;

}

.story {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    border: 1px solid black;
    padding: 1rem;
    background: #fAfAfA;
    margin: 1rem;
}
.story-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.story-context {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.story-img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex: 1 1 40%;
    min-width: 280px;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
    transition: transform 0.3s ease;
}
.story-img:hover {
    transform: scale(1.30);
}

.story-text p {
    margin-bottom: 0;
    line-height: 1.7;
}

.story .lang {
    display: none;
}
.story h3{
    width: 100%;
}
.story h3,
.story p {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.story a {
    word-break: break-all;
}
.story .lang {
    max-width: 100%;
}
.story .lang.en {
    display: block;
}
.story-text {
    flex: 1 1 60%;
    min-width: 280px;
}
.flex-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.flex-row .block:first-child {
    flex: 0 0 30%;
    min-width: 200px;
}

.flex-row .block:last-child {
    flex: 0 0 70%;
    min-width: 300px;
}


.principle-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.principle-grid .principle {
    flex: 1 1 45%;
    min-width: 280px;
}





p {
    line-height: 1.6;
    margin: 1rem 0;
    padding: 0.5rem;
    color:#484848;
}

@media (max-width: 768px) {
    .story {
        flex-direction: column;
        align-items: center;
    }

    .story-content {
        flex-direction: column;
    }

    .story-img-container {
        width: 100%;
        max-width: 100%;

    }

    .story-img {
        width: 100%;
        height: 100%;
    }

    .story-context {
        flex: 1 1 100%;
        min-width: unset;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .story-text, .fact-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .fact-box {
        flex: 1 1 auto;
        max-width: fit-content;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        background: #fff8f8;
    }
    .fact-box ul {
        padding: 0.5rem 0;
    }

    .fact-box li {
        padding: 0.25rem 0;
    }
}




.fact-box {
    flex: 0 0 35%;
    min-width: 220px;
    max-width: 300px;
    padding: 1rem;
    background: #fff8f8;
    border: 2px solid red;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.fact-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fact-box li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #ddd;
}


.fact-box li strong {
    color: #111;
}
.image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    background: url("../resources/protest_images/OipIsElbitIsGenocide.jpg")
    no-repeat 50% 30% / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-donate {
    position: relative;
    width: 100%;
    height: 70vh;
    background: url("../resources/protest_images/StopArmingIsraelFence.jpeg")
    no-repeat 50% 70% / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-donate::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(2px) brightness(0.75);
    transform: scale(1.1);
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(2px) brightness(0.75);
    transform: scale(1.1);
    z-index: 0;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem 3rem;
    background: rgba(0,0,0,0.4);
    max-width: 800px;
}

.hero-overlay h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    color: red;
    margin-bottom: 1rem;
    letter-spacing: 3px;

}

.hero-overlay p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
    margin-top: 0.5rem;
    color: #f4f4f4;
}

@media (max-width: 768px) {
    .hero {
        height: 25vh;
        align-items: center;
        padding: 1rem;
    }
    .hero-donate {
        height: 25vh;
        align-items: center;
        padding: 1rem;
    }

    .hero-overlay {
        width: 100%;
        max-width: none;
        padding: 1rem;
        background: rgba(0,0,0,0.55);
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .hero-overlay p {
        font-size: 0.95rem;
    }
    .fact-image {
        display:none;
    }
}
.side-column {
    display: flex;
    flex-direction: column;
    flex: 0 0 35%;
    min-width: 220px;
    max-width: 300px;
    gap: 1rem;
}
.fact-image {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

.fact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    transform:scale(1.3);
}
.export-image {
    width: calc(100% - 2rem);
    max-width: 100%;
    margin: 0 auto ;
    border: 1px dotted red;
}
.export-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;

}
.export-image img:hover {
    transform:scale(1.3);
    border: 1px solid red;

}



.cards-story {
    padding: 2rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cards-story h2 {
    font-size: 2.5rem;
    color: red;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.cards-story p {
    line-height: 1.6;
    margin-bottom: 2rem;
}
.story p {
    margin: 1rem 0;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}


.card {
    background: #f3f3f3;
    border: 1px dashed red ;
    padding: 1.5rem;
    flex: 1 1 calc(33% - 1rem);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: scale(1.05);
}

.card h3 {
    background-color: black;
    color: red;
    padding: 0.5rem;
    text-transform: uppercase;
    font-size: 1.8rem;
    margin: 0;
}

.card p {
    margin: 0;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff8f8;
    color: black;
    text-decoration: none;
    border: 2px solid red;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.read-more:hover {
    background: red;
    color: white;
    border-color: darkred;
}

@media(max-width: 1024px) {
    .card-container {
        flex-direction: column;
    }
    .card {
        flex: 1 1 100%;
    }
}

@media(max-width: 600px) {
    .cards-story h2 {
        font-size: 1.8rem;
    }
    .card h3 {
        font-size: 1.5rem;
    }
}


#back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: red;
    color: white;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


#back-to-top:hover {
    background: green;
    transform: scale(1.05);
}
.flow-diagram.horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: auto;
    gap: 1rem 1rem;
    justify-items: center;
    align-items: center;
    margin: 1.5rem;
}

.flow-diagram.horizontal .step {
    background: #f3f3f3;
    border: 2px solid red;
    padding: 1rem;
    text-align: center;
}

.flow-diagram.horizontal .arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.8);
}
.flow-diagram.horizontal .arrow svg {
    transform: rotate(90deg);
}
h4{
    text-transform: uppercase;
    font-weight: bold;
}





.flow-diagram-wrapper {
    position: relative;
    margin: 1rem;
    padding: 1.5rem;
    border: 1px solid black;
    overflow: hidden;
    background: transparent;
}
.flow-diagram-content,
.flow-diagram-content h3,
.flow-diagram-content .step,
.flow-diagram-content .arrow {
    position: relative;
    z-index: 1;
}

.flow-diagram-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1.5rem;

}



.flow-diagram-content .step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-diagram-content .step:hover {
    transform: scale(1.1);
    background: white;
}

.flow-diagram-content::after {
    content: '';
    width: 0;
    display: block;
}

.flow-diagram-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../resources/protest_images/ThisCompanyKillsPeople.jpeg')
    no-repeat center center / cover;
    filter: blur(3px) brightness(0.4);
    z-index: -1;
}


.flow-diagram-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
    padding: 0 ;
}
.step {
    padding: 1rem;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

.flow-diagram-content .step {
    width: 100%;
    max-width: 300px;
    min-height: 100px;
    text-align: center;
    padding: 1rem;
    background: #f3f3f3;
    border: 2px solid red;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.flow-diagram-content .step h4 {
    background: black;
    color: red;
    text-transform: uppercase;
    padding: 0.5rem;
}



.flow-diagram-content .step:hover {
    width: 330px;
    min-height: auto;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.flow-diagram-content .step p {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.flow-diagram-content .step:hover p {
    display: block;
}
.trial-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trial-grid .story-img-container {
    width: 100%;
}

.trial-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trial-content .fact-box {
    padding: 1rem;
    margin: 1rem auto;
}

@media (min-width: 768px) {
    .trial-content {
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
    }

    .trial-content .trial-text {
        flex: 2;
    }

    .trial-content .fact-box {
        flex: 1;
    }
}
@media (hover: none) and (pointer: coarse) {
    .flow-diagram-content {
        grid-template-columns: 1fr; /* stack cleanly */
    }

    .flow-diagram-content .arrow svg {
        transform: rotate(90deg);
    }
}
.qr-image-container {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qr-image-container img {
    margin-top: 1.5rem;
    max-width: 300px;
    width: 100%;
    height: auto;
}
.qr-image-container img,
.block img,
.story-img,
.export-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .block {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    .flex-row,
    .story-content,
    .trial-content {
        flex-direction: column;
    }
    .flex-row .block,
    .story-text,
    .story-img-container,
    .fact-box {
        min-width: 0;
        flex: 1 1 100%;
    }
}
@media (max-width: 600px) {
    .qr-image-container {
        flex: 0 0 100%;
    }
    .qr-image-container img {
        max-width: 200px;
        width: 80%;
    }
}

@media (max-width: 600px) {
    h3 {
        font-size: 1.6rem;
    }
    .hero-overlay h1 {
        font-size: 1.5rem;
    }
    .hero-overlay p {
        font-size: 0.9rem;
    }
    p {
        padding: 0.2rem;
        margin: 0.5rem 0;
    }
}
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.cta-buttons .read-more {
    flex: 1 1 auto;
    max-width: 320px;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid red;
    background: white;
    color: red;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
/* On mobile, make the title span full width above steps */
@media (max-width: 768px) {
    .flow-diagram-content {
        grid-template-columns: 1fr; /* stack everything vertically */
        text-align: center;
    }

    .flow-diagram-content h3 {
        grid-column: 1 / -1; /* force heading across full width */
        order: -1;           /* push it to the top */
        margin-bottom: 1rem;
    }
}
/* Mobile overrides */
@media (max-width: 600px) {
    .cta-buttons .read-more {
        max-width: 130px;        /* shrink button width */
        font-size: 0.8rem;       /* shrink text */
        padding: 0.4rem 0.7rem;  /* tighter padding */
    }
}

.cta-buttons .read-more:hover {
    background: red;
    color: white;
    border-color: darkred;
    transform: translateY(-2px);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.25);
}

.cta-buttons .donate {
    background: red;
    color: white;
    border-color: darkred;
}
.cta-buttons .donate:hover {
    background: darkred;
}

.cta-buttons .contact {
    background: #fff8f8;
}
.cta-buttons .contact:hover {
    background: #fdd;
}
.hero,
.hero::before,
.hero-overlay {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* --- Articles / Voices Section --- */
.story.articles {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex-direction: row;  /* keep images and text side by side on desktop */
}

.articles-visual {
    flex: 1 1 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.articles-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px dashed red;
    transition: transform 0.3s ease;
}

.articles-visual img:hover {
    transform: scale(1.05);
}

.articles-text {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

/* --- Responsive: stack on mobile --- */
@media (max-width: 768px) {
    .story.articles {
        flex-direction: column; /* stack vertically on small screens */
    }

    .articles-visual {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .articles-text {
        width: 100%;
        text-align: center;
    }

    .articles-text .read-more {
        align-self: center;
    }
}



.coming-soon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    padding: 2rem;
}

.coming-soon h1 {
    font-size: 3rem;
    background: red;
    color: white;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coming-soon p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.coming-soon .cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: red;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.coming-soon .cta:hover {
    background: darkred;
}