/* Reset and ensure no unexpected margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: #f8dd07;
    --gird-color: black;
    --grid-font: blACK;
    --logo-color: var(--p-blue);
    --data-fill: rgba(0, 0, 0, 0.5);
    --p-yellow: #f8dd07;
    --p-purple: #881f7e;
    --p-orange: #e09b1c;
    --p-red: #c30f1b;
    --p-blue: #312d81;
}

@font-face {
    font-family: "Newsreader";
    src: url("fonts/Newsreader_24pt-Regular.ttf");
}

@font-face {
    font-family: "Secular";
    src: url("fonts/SecularOne-Regular.ttf");
}


@font-face {
    font-family: "FrankRuhl";
    src: url("/fonts/FrankRuhlLibre-Regular.ttf");
    font-weight: 700;
}

@font-face {
    font-family: "Lora";
    src: url("/fonts/Lora-Regular.ttf");
}

@font-face {
    font-family: "Rubic";
    src: url("/fonts/Rubik-Bold.ttf");
}

@font-face {
    font-family: "Noto";
    src: url("fonts/NotoSerifHebrew-Regular.ttf");
}

html,
body {
    min-height: 20vh;
    overflow-x: hidden;
    font-family: sans-serif;
    background-color: #e2e2e2;
}

/* full-screen hero image */
.hero-image {
    width: 100%;
    height: 100vh;
    /* full viewport height */
    object-fit: cover;
    /* scale and crop to fill */
    display: block;
    border: 10px solid var(--accent-color);
    z-index: 0;

}

#logo {
    font-family: 'Rubic';
    font-size: clamp(1rem, 15vw, 7em);
    font-weight: bold;
    color: var(--logo-color);
    top: 40px;
    left: 45px;
    z-index: 5;
    text-decoration: none;
    position: fixed;

    /* Add smooth transitions */
    transition: font-size 0.3s ease, top 0.3s ease, left 0.3s ease;
}

#logo.shrink {
    top: 20px;
    left: 40px;
    font-size: 2rem;
    /* Adjust this pixel value to your preferred size */
}





p.card-content {
    background: rgba(0, 0, 0, 0.5);
    /* optional: for readability */
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
}

/* Rest of the page */
.page {
    max-width: 600px;
    margin: 0 auto;

    align-items: center;

}

.content {
    margin-top: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: left;
    /* Vertical centering */
    align-items: center;
    /* Horizontal centering */

    box-sizing: border-box;
    text-align: left;
    font-family: "Newsreader";
    font-size: 0.9em;
    font-weight: 400;

}

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

.post-data {

    background: var(--accent-color);

}

.header {
    font-family: 'Lora';
    border: 1.5px solid var(--gird-color);
    background-color: var(--accent-color);
    color: var(--grid-font);
    margin-left: 10px;
    margin-right: 10px;
    position: relative;
    z-index: 10;
}

.header .title_en {
    padding: 15px;
    border: 1.5px solid var(--gird-color);
    width: 100%;
    font-size: 50px;

}

.header .title_he {
    direction: rtl;
    padding: 15px;
    border: 1.5px solid var(--gird-color);
    width: 100%;
    font-size: 50px;
    font-family: 'Noto';

}

.header .info {
    display: flex;
    font-size: 20px;
    width: 100%;
}

.info .name {
    flex: 2.5;


    word-wrap: unset;
    min-width: 100px;
    display: flex;
    align-items: center;
    /* vertical centering */

}

.info .issue {
    flex: 1;
    text-align: center;
}


.info div {
    padding: 15px;
    border: 1.5px solid var(--gird-color);
}


.post-article_en {
    position: relative;
    top: -190px;
}

.post-article_he {

    direction: rtl;
    text-align: right;
    position: relative;
    top: -190px;
    font-family: 'FrankRuhl';
}



.gradient {
    background: linear-gradient(var(--accent-color), #e2e2e2);
    height: 200px;
}

.post-body {
    padding: 18px;
}

.post-body p {
    line-height: 150%;
    word-break: break-word;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1.5em;



}

.post-body h2,
h3 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.quote {
    border: 2px solid var(--accent-color);
    padding: 12px;
    font-size: 2rem;
    text-align: center;
    color: var(--accent-color);
}

blockquote {
    border: 2px solid var(--accent-color);
    padding: 12px;
    font-size: 2rem;
    text-align: center;
    color: var(--accent-color);
}

.content a,
.content a:visited {
    color: var(--accent-color);
}


.footer {
    padding-bottom: 40px;
    text-align: center;
    background: linear-gradient(#e2e2e2, var(--accent-color));

}