/* הגדרות בסיס */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f1e6;
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
    line-height: 1.6;
}

/* כפתור פורטל צף */
.floating-portal-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 2000;
    background: #1a2a6c;
    color: #d4af37;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 0.9rem;
}

/* באנר עליון */
.main-banner {
    background-image: url('top-banner.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 300px; 
    width: 100%;
    border-bottom: 5px solid #d4af37;
    display: block;
}

/* עיצוב התפריט (nav) */
nav {
    background-color: #1a2a6c;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #d4af37;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav a {
    color: #d4af37;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
    padding: 5px 10px;
}

nav a:hover {
    color: white;
}

/* עיצוב ה-Container */
.container {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.97);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #dcd7c0;
    transition: all 0.3s ease;
}

/* --- פתרון ייעודי למסך מלא וסטרימרים --- */

/* הסתרה אקטיבית של אלמנטים בזמן Fullscreen */
:fullscreen .main-banner, 
:fullscreen nav, 
:fullscreen footer, 
:fullscreen .fullscreen-btn, 
:fullscreen .floating-portal-btn,
body.is-projecting .main-banner,
body.is-projecting nav,
body.is-projecting footer {
    display: none !important;
}

/* תאימות לדפדפני סטרימרים (WebKit) */
:-webkit-full-screen .main-banner,
:-webkit-full-screen nav,
:-webkit-full-screen footer,
:-webkit-full-screen .fullscreen-btn,
:-webkit-full-screen .floating-portal-btn {
    display: none !important;
}

/* התאמת גוף הדף למצב הקרנה */
body.is-projecting {
    background: #000 !important;
    overflow: hidden;
}

body.is-projecting .container,
:fullscreen .container {
    max-width: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

/* --- שורת ההקדשה בתחתית הלוח --- */
.dedication-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    padding: 15px 0;
    margin-top: auto; /* דוחף לתחתית הלוח */
    text-align: center;
    font-size: 1.4rem;
    color: #d4af37;
    font-weight: bold;
    flex-shrink: 0;
}

/* --- שאר הגדרות העיצוב --- */

.section-title {
    color: #1a2a6c;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #d4af37;
    display: block;
    padding-bottom: 15px;
}

.content-box {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    padding: 0 20px;
}

.rabbi-quote {
    background-color: #fdfae6;
    border-right: 6px solid #d4af37;
    padding: 25px;
    font-style: italic;
    margin: 35px auto 0 auto;
    color: #1a2a6c;
    font-size: 1.2em;
    max-width: 80%;
    text-align: center;
}

footer {
    background-color: #1a2a6c;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 4px solid #d4af37;
}

.footer-line {
    width: 50px;
    height: 2px;
    background-color: #d4af37;
    margin: 0 auto 15px auto;
}

/* התאמה לניידים */
@media (max-width: 768px) {
    nav a { display: inline-block; margin: 5px; font-size: 1rem; }
    .main-banner { height: 150px; } 
    .section-title { font-size: 1.8rem; }
}
