/* --- Russian Single Origin Styles (LTR) --- */

/* General Reset & Fonts */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: snow;
    color: #333;
    line-height: 1.6;
    direction: ltr; /* Left to Right for Russian */
}

/* 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: 16px; /* Slightly smaller for Russian words which are longer */
    margin: 0 15px;
}
.top-nav a:hover {
    color: #8b4513;
    border-bottom: 2px solid #8b4513;
}

/* Flags */
.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 (..) to root, then down to 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;
}

/* In Hebrew this reversed the image to the left.
   In Russian (LTR), normal flow is Left->Right.
   We use this class to swap order if we want variety. */
.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;
}
/* LTR Specific List Styling */
ul {
    padding-left: 20px; /* Left padding for bullets */
    padding-right: 0;
}
li {
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Science Specifics (LTR ADAPTED) */
.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);
    
    /* LTR FLIP: Blue border on LEFT side */
    border-left: 6px solid #4682b4;
    border-right: none;
}
.science-card h4 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-top: 0;
}
.science-quote {
    background-color: #f8f9fa;
    
    /* LTR FLIP: Quote line on LEFT side */
    border-left: 4px solid #ccc;
    border-right: none;
    
    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;
}

/* Mobile Responsiveness */
@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;
}

/* Roasted Button (Coffee Brown) */
.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);
}

/* Green Button (Organic Green) */
.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);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .action-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}