
*{box-sizing:border-box}

html{
scroll-behavior:smooth;
}

body{
margin:0;
font-family:'Assistant',Arial,sans-serif;
direction:rtl;
background:#f4f8fc;
color:#0f172a;
}

section[id]{
scroll-margin-top:110px;
}

.topbar{
height:110px;
background:white;
display:flex;
justify-content:space-between;
align-items:center;
padding:0 60px;
box-shadow:0 2px 12px rgba(0,0,0,.05);
position:sticky;
top:0;
z-index:100;
}

.logo{
height:92px;
object-fit:contain;
}

nav{
display:flex;
gap:34px;
font-weight:700;
}

nav a{
text-decoration:none;
color:#17346c;
padding-bottom:8px;
transition:color .15s ease;
}

nav a:hover{
color:#0d4ea6;
}

nav a.active{
border-bottom:3px solid #0d4ea6;
}

.nav-toggle{
display:none;
flex-direction:column;
justify-content:center;
gap:5px;
width:44px;
height:44px;
border:none;
background:transparent;
cursor:pointer;
padding:0;
}

.nav-toggle span{
display:block;
width:100%;
height:3px;
border-radius:2px;
background:#0d4ea6;
transition:transform .2s ease,opacity .2s ease;
}

.nav-toggle.open span:nth-child(1){
transform:translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2){
opacity:0;
}

.nav-toggle.open span:nth-child(3){
transform:translateY(-8px) rotate(-45deg);
}

.hero{
height:560px;
position:relative;
display:flex;
align-items:center;
justify-content:flex-start;
padding:0 90px;
overflow:hidden;
background:
linear-gradient(90deg,rgba(255,255,255,.02),rgba(255,255,255,.78) 64%,rgba(255,255,255,.92)),
url('assets/hero-child-only.png');
background-size:cover;
background-position:center;
}

.hero-overlay{
position:absolute;
inset:0;
background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.22));
}

.hero-content{
position:relative;
z-index:2;
max-width:700px;
text-align:right;
margin-left:auto;
padding-left:40px;
}

.hero-content h1{
font-size:72px;
line-height:1.1;
margin:0 0 24px;
font-weight:900;
color:#0b3f91;
}

.hero-content p{
font-size:28px;
line-height:1.6;
margin-bottom:34px;
color:#163a76;
}

.hero-button{
display:inline-block;
background:#0d52b8;
color:white;
padding:18px 38px;
border-radius:14px;
text-decoration:none;
font-size:20px;
font-weight:700;
}

.cards-row{
width:88%;
margin:-40px auto 40px;
display:grid;
grid-template-columns:repeat(4,1fr);
gap:24px;
position:relative;
z-index:5;
}

.card{
background:white;
padding:30px;
border-radius:16px;
box-shadow:0 8px 24px rgba(0,0,0,.08);
text-align:center;
transition:transform .2s ease,box-shadow .2s ease;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 14px 32px rgba(13,82,184,.16);
}

.icon{
font-size:54px;
margin-bottom:14px;
}

.card h3{
font-size:30px;
margin:0 0 14px;
color:#0d52b8;
}

.card p{
font-size:18px;
line-height:1.7;
margin:0;
}

.main-grid{
width:88%;
margin:20px auto 50px;
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:28px;
}

.panel{
background:white;
padding:34px;
border-radius:16px;
box-shadow:0 8px 24px rgba(0,0,0,.07);
transition:box-shadow .2s ease;
}

.panel:hover{
box-shadow:0 14px 30px rgba(13,82,184,.12);
}

.panel h2{
font-size:36px;
margin-top:0;
margin-bottom:22px;
color:#0d52b8;
}

.panel p,
.panel li{
font-size:18px;
line-height:1.9;
}

.news-item{
padding:16px 0;
border-bottom:1px solid #dbe4ef;
}

.news-item strong{
display:block;
margin-bottom:6px;
}

.news-item span{
color:#64748b;
}

footer{
background:#0b3f91;
color:white;
padding:34px 60px;
display:flex;
justify-content:space-between;
align-items:center;
font-size:18px;
text-align:center;
}

@media(max-width:1100px){

.hero{
justify-content:center;
padding:0 20px;
background-position:center;
}

.hero-content h1{
font-size:48px;
}

.hero-content p{
font-size:22px;
}

.cards-row,
.main-grid{
grid-template-columns:1fr;
}

.topbar{
padding:0 20px;
}

.nav-toggle{
display:flex;
}

nav{
position:absolute;
top:100%;
right:0;
left:0;
flex-direction:column;
align-items:center;
gap:0;
background:white;
box-shadow:0 12px 20px rgba(0,0,0,.08);
max-height:0;
overflow:hidden;
transition:max-height .25s ease;
}

nav.open{
max-height:400px;
}

nav a{
width:100%;
text-align:center;
padding:16px 20px;
border-bottom:1px solid #eef2f7;
}

nav a.active{
border-bottom:1px solid #eef2f7;
background:#f4f8fc;
}

footer{
flex-direction:column;
gap:20px;
}
}

@media(min-width:1101px){
nav{
flex-wrap:wrap;
justify-content:flex-end;
}
}


.future-events{
width:88%;
margin:30px auto 50px;
background:white;
padding:40px;
border-radius:16px;
box-shadow:0 8px 24px rgba(0,0,0,.07);
}

.future-events h2{
font-size:38px;
color:#0d4ea6;
margin-top:0;
margin-bottom:28px;
text-align:center;
}

.events-table{
width:100%;
border-collapse:collapse;
font-size:18px;
}

.events-table th{
background:#0d4ea6;
color:white;
padding:16px;
}

.events-table td{
padding:16px;
border-bottom:1px solid #dbe4ef;
text-align:center;
}

.events-table tr:nth-child(even){
background:#f8fbff;
}


.video-page{
width:88%;
margin:45px auto 70px;
background:white;
padding:42px;
border-radius:16px;
box-shadow:0 8px 24px rgba(0,0,0,.07);
text-align:center;
}

.video-page h1{
font-size:48px;
color:#0d4ea6;
margin-top:0;
}

.video-page p{
font-size:22px;
line-height:1.8;
max-width:980px;
margin:0 auto 30px;
}

.video-wrapper{
max-width:1080px;
margin:auto;
border-radius:18px;
overflow:hidden;
box-shadow:0 12px 34px rgba(0,0,0,.20);
background:#000;
}

.video-wrapper video{
display:block;
width:100%;
height:auto;
}


/* --- תיקון טבלת כנסים לתצוגה טובה בטלפון --- */
.future-events{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.events-table{
    table-layout:auto;
}

.events-table th,
.events-table td{
    font-size:16px;
    padding:10px 8px;
    line-height:1.35;
    word-break:normal;
}

@media(max-width:700px){
    .future-events{
        width:96%;
        padding:16px 8px;
        margin:22px auto 34px;
        border-radius:12px;
    }

    .future-events h2{
        font-size:24px;
        margin-bottom:14px;
    }

    .events-table{
        width:100%;
        min-width:0;
        font-size:12px;
    }

    .events-table th,
    .events-table td{
        font-size:11px;
        padding:7px 4px;
        line-height:1.25;
        white-space:normal;
    }

    .events-table th:nth-child(1),
    .events-table td:nth-child(1){
        width:24%;
    }

    .events-table th:nth-child(2),
    .events-table td:nth-child(2){
        width:38%;
    }

    .events-table th:nth-child(3),
    .events-table td:nth-child(3){
        width:38%;
    }

    .video-page{
        width:96%;
        padding:18px 10px;
    }

    .video-page h1{
        font-size:28px;
    }

    .video-page p{
        font-size:16px;
    }
}


/* --- דף ניירות עמדה --- */
.position-page{
    width:88%;
    margin:45px auto 70px;
    background:white;
    padding:42px;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
}

.position-page h1{
    font-size:48px;
    color:#0d4ea6;
    text-align:center;
    margin:0 0 18px;
}

.position-page .intro{
    font-size:22px;
    line-height:1.8;
    text-align:center;
    max-width:980px;
    margin:0 auto 34px;
}

.paper-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    margin-bottom:38px;
}

.paper-card{
    background:#f8fbff;
    border:1px solid #dbe4ef;
    border-radius:16px;
    padding:26px;
    box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.paper-card h2{
    color:#0d4ea6;
    font-size:28px;
    margin:0 0 12px;
}

.paper-card p{
    font-size:18px;
    line-height:1.75;
}

.paper-button{
    display:inline-block;
    margin-top:12px;
    background:#0d52b8;
    color:white;
    padding:12px 24px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
}

.paper-list h2{
    color:#0d4ea6;
    font-size:34px;
    text-align:center;
}

.papers-table{
    width:100%;
    border-collapse:collapse;
    font-size:18px;
    margin-top:20px;
}

.papers-table th{
    background:#0d4ea6;
    color:white;
    padding:14px;
}

.papers-table td{
    padding:14px;
    border-bottom:1px solid #dbe4ef;
    text-align:center;
}

.coming-soon{
    display:inline-block;
    background:#eef6ff;
    color:#0d4ea6;
    padding:6px 14px;
    border-radius:999px;
    font-weight:700;
}

@media(max-width:800px){
    .position-page{
        width:96%;
        padding:20px 12px;
    }

    .position-page h1{
        font-size:32px;
    }

    .position-page .intro{
        font-size:17px;
    }

    .paper-grid{
        grid-template-columns:1fr;
    }

    .paper-card h2{
        font-size:24px;
    }

    .paper-card p{
        font-size:16px;
    }

    .papers-table th,
    .papers-table td{
        font-size:12px;
        padding:8px 4px;
    }
}


.video-block{
    margin-bottom:60px;
}

.video-block h2{
    color:#0d4ea6;
    font-size:34px;
    margin-bottom:14px;
    text-align:center;
}

.video-block p{
    max-width:900px;
    margin:0 auto 22px;
    text-align:center;
    font-size:20px;
    line-height:1.8;
}

@media(max-width:700px){

    .video-block h2{
        font-size:24px;
    }

    .video-block p{
        font-size:16px;
    }
}


/* --- אפקט הופעה עדינה בגלילה (רק כאשר JS פעיל, כדי שהתוכן תמיד יוצג גם בלעדיו) --- */
.js-fade .card,
.js-fade .panel,
.js-fade .video-block,
.js-fade .paper-card{
    opacity:0;
    transform:translateY(18px);
    transition:opacity .5s ease,transform .5s ease;
}

.js-fade .card.in-view,
.js-fade .panel.in-view,
.js-fade .video-block.in-view,
.js-fade .paper-card.in-view{
    opacity:1;
    transform:none;
}

@media(prefers-reduced-motion:reduce){
    .js-fade .card,
    .js-fade .panel,
    .js-fade .video-block,
    .js-fade .paper-card{
        opacity:1;
        transform:none;
        transition:none;
    }
}


/* --- טופס יצירת קשר --- */
.contact-section{
    width:88%;
    max-width:760px;
    margin:20px auto 60px;
    background:white;
    padding:42px;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(0,0,0,.07);
    text-align:center;
}

.contact-section h2{
    font-size:38px;
    color:#0d4ea6;
    margin-top:0;
    margin-bottom:10px;
}

.contact-intro{
    font-size:19px;
    color:#475569;
    margin-bottom:30px;
}

.contact-form{
    text-align:right;
}

.hidden-field{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    margin:-1px;
    padding:0;
    border:0;
}

.form-row{
    margin-bottom:20px;
}

.form-row label{
    display:block;
    font-weight:700;
    margin-bottom:8px;
    color:#17346c;
}

.form-row input,
.form-row textarea{
    width:100%;
    padding:14px 16px;
    border:1px solid #dbe4ef;
    border-radius:10px;
    font-size:16px;
    font-family:inherit;
    background:#f8fbff;
    resize:vertical;
}

.form-row input:focus,
.form-row textarea:focus{
    outline:2px solid #0d52b8;
    outline-offset:1px;
    background:white;
}

.contact-form button{
    border:none;
    cursor:pointer;
    font-family:inherit;
    width:100%;
}

.contact-direct{
    margin-top:24px;
    font-size:16px;
    color:#475569;
}

.contact-direct a{
    color:#0d52b8;
    font-weight:700;
    text-decoration:none;
}

.submit-note{
    text-align:center;
    font-size:17px;
    margin-top:24px;
    color:#475569;
}

.submit-note a{
    color:#0d52b8;
    font-weight:700;
}

@media(max-width:700px){
    .contact-section{
        width:96%;
        padding:22px 16px;
    }

    .contact-section h2{
        font-size:28px;
    }
}
