/* --- הגדרות בסיס לדף זה בלבד --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: snow;
    color: #333;
    line-height: 1.6;
}

/* --- Header עם דגלים --- */
.main-header {
    background-color: navajowhite;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* מפזר את האלמנטים: לוגו מימין, תפריט באמצע, דגלים משמאל */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; /* אופציה: התפריט נדבק למעלה בגלילה */
    top: 0;
    z-index: 1000;
}

.logo-container .logo {
    height: 60px;
    vertical-align: middle;
}

.top-nav a {
    text-decoration: none;
    color: #4a3b2a;
    font-weight: bold;
    font-size: 18px;
    margin: 0 15px; /* רווח בין הלינקים */
}
.top-nav a:hover {
    color: #8b4513;
    border-bottom: 2px solid #8b4513; /* קו תחתון עדין במעבר עכבר */
}

/* עיצוב הדגלים */
.flags-container {
    display: flex;
    gap: 10px; /* רווח בין הדגלים */
}
.flag {
    height: 25px;
    width: auto;
    cursor: pointer;
    opacity: 0.7; /* שקיפות קלה לדגלים לא פעילים */
    transition: opacity 0.3s;
}
.flag:hover {
    opacity: 1;
}
.active-lang {
    opacity: 1;
    border: 1px solid #333; /* מסגרת קטנה לשפה הפעילה */
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    /* Go up one folder (..), then into mn25_images */
    background-image: url('../mn25_images/mountain-clouds.jpg'); 
    
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
/* שכבת כהות על התמונה כדי שהטקסט יבלוט */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); 
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 3.5em;
    margin: 0;
    line-height: 1.2;
}
.hero-content h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin-top: 15px;
    background-color: rgba(0,0,0,0.6);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
}
.highlight {
    color: #ffd700;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 20px;
    border-bottom: 1px solid #ddd;
}
.engineering-bg { background-color: #fffaf0; }
.wine-bg { background-color: #fff; }
.science-bg { background-color: #f0f8ff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.reverse-layout {
    flex-direction: row-reverse; /* הופך צדדים: תמונה מימין, טקסט משמאל */
}

.text-box, .image-box {
    flex: 1;
    min-width: 300px; /* מונע כיווץ יתר במובייל */
}

.image-box img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}
.image-box img:hover {
    transform: scale(1.02); /* אפקט זום עדין */
}

h3 {
    font-size: 2.2em;
    color: #8b4513;
    margin-top: 0;
    margin-bottom: 20px;
}
p {
    font-size: 1.1em;
    margin-bottom: 15px;
}
ul {
    padding-right: 20px;
}
li {
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* --- Science Specifics --- */
.vertical-layout {
    flex-direction: column; /* מסדר את הקופסאות אחת מתחת לשנייה */
    align-items: stretch; /* מותח לרוחב מלא */
    gap: 30px;
}
.science-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}
.subtitle {
    font-size: 1.2em;
    color: #555;
}
.science-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-right: 6px solid #4682b4; /* פס כחול */
}
.science-card h4 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-top: 0;
}
.science-quote {
    background-color: #f8f9fa;
    border-right: 4px solid #ccc;
    margin: 20px 0;
    padding: 20px;
    font-style: italic;
    font-size: 1.15em;
    color: #444;
}
.source {
    display: block;
    margin-top: 10px;
    font-size: 0.85em;
    color: #777;
    font-weight: bold;
    font-style: normal;
}
.simple-explanation {
    background-color: #e8f4fd; /* רקע כחלחל עדין להסבר */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d1e7fd;
}

/* --- Summary & Footer --- */
.summary-section {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 100px 20px;
}
.summary-content h3 {
    color: #ffd700;
}
.final-badge {
    display: inline-block;
    border: 2px solid #ffd700;
    padding: 15px 40px;
    font-size: 1.4em;
    color: #ffd700;
    margin-top: 30px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}
.cta-button {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 40px;
    background-color: #e67e22;
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}
.cta-button:hover {
    background-color: #d35400;
}


.footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* --- התאמה למובייל (רספונסיביות) --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
    }
    .top-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .container {
        flex-direction: column;
    }
    .reverse-layout {
        flex-direction: column;
    }
    .science-card {
        padding: 20px;
    }
}

/* --- Action Buttons (Bottom of Page) --- */

.action-buttons-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px; /* רווח בין הכפתורים */
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px; /* צורת גלולה */
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3); /* מסגרת עדינה */
    min-width: 250px; /* רוחב מינימלי אחיד */
}

.cta-btn .icon {
    font-size: 1.4em;
}

/* עיצוב כפתור קלוי (חום קפה) */
.btn-roasted {
    background-color: #4b3621;
}
.btn-roasted:hover {
    background-color: #6f4e37;
    transform: translateY(-3px); /* אפקט הרמה */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* עיצוב כפתור ירוק (ירוק אורגני) */
.btn-green {
    background-color: #2e7d32;
}
.btn-green:hover {
    background-color: #4caf50;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .action-buttons-container {
        flex-direction: column; /* כפתורים בטור */
        align-items: center;
    }
    
    .cta-btn {
        width: 100%; /* רוחב מלא במובייל לנוחות לחיצה */
        max-width: 300px;
    }
}