
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fdfcf8;
    color: #333;
}
header {
    background: #f4f9f3;
    border-bottom: 2px solid #e0e0e0;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.nav-list li a {
    /* Base style for navigation links */
    text-decoration: none;
    color: #4a7c41; /* primary green for active state */
    font-weight: bold;
}
/* On hover change nav link colour to a dark brown tone */
.nav-list li a:hover {
    color: #5c3a21;
}
.lang-switcher a {
    color: #4a7c41;
    text-decoration: none;
}
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}
.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}
h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: #4a7c41;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}
.two-col img { max-width: 70%; height: auto; margin: 0 auto; display: block; }

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-list {
        flex-wrap: wrap;
        gap: 10px;
    }
    h1 {
        font-size: 2em;
    }
}
footer {
    background: #f4f9f3;
    color: #333;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    border-top: 2px solid #e0e0e0;
}
footer a {
    color: #4a7c41;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Responsive navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #4a7c41;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-list {
        flex-direction: column;
        gap: 10px;
        display: none;
        width: 100%;
        padding-top: 10px;
    }
    .nav-list.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-content {
    padding: 15px;
}
.card-content h3 {
    margin-top: 0;
    color: #4a7c41;
}
.card-content p {
    font-size: 0.9em;
}
.button {
    display: inline-block;
    background: #4a7c41;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}
.button:hover {
    background: #6b8e4e;
}

/* Pagination styles */
.pagination {
    text-align: center;
    margin: 20px 0;
}
.pagination button {
    margin: 0 4px;
    padding: 6px 12px;
    border: none;
    background: #4a7c41;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
.pagination button.active,
.pagination button:hover {
    background: #6b8e4e;
}

.filter-buttons {
    text-align: center;
    margin-top: 20px;
}

/* Additional custom styles for navigation, hero, social sharing and callout boxes */
/* Highlight the current navigation item with a thicker underline */
.nav-list li a.active {
    /* keep the active link green and underline it */
    border-bottom: 4px solid #4a7c41;
    text-decoration: underline;
}
.lang-switcher a {
    border: 1px solid #4a7c41;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.lang-switcher a:hover {
    background-color: #e0f0e5;
}
.hero {
    /* limit hero height to reduce vertical space */
    max-height: 180px;
    overflow: hidden;
}
/* Column layout for long articles */
.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}
.column {
    flex: 1;
    min-width: 300px;
}
@media (max-width: 768px) {
    .column {
        flex-basis: 100%;
    }
}
.social-share {
    margin-top: 20px;
}
.social-share span {
    margin-right: 6px;
    font-weight: bold;
}
.social-share img { width: 16px; height: 16px; vertical-align: middle; }
.did-you-know {
    background-color: #e9f4e5;
    border-left: 4px solid #4a7c41;
    padding: 10px;
    margin-top: 20px;
    font-style: italic;
}
.filter-buttons button {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    background: #4a7c41;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.filter-buttons button.active {
    background: #6b8e4e;
}

.article {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}
.article h2 {
    color: #4a7c41;
}
.article ul {
    padding-left: 20px;
}
.article li {
    margin-bottom: 8px;
}

/* General link styling */
a {
    color: #5b4033;
    text-decoration: none;
}
a:hover {
    color: #2f5d31;
    text-decoration: underline;
}

/* Language switcher icons smaller */
.lang-switcher img {
    width: 20px;
    height: auto;
}

/* Navigation extra container for search and language */
.nav-extra { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
/* Slightly lower the language switcher and search bar relative to the menu items */
.nav-extra { margin-top: 6px; }
.search-form input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Cookie banner styling */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.9);
    padding: 10px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    font-size: 0.9em;
}
.cookie-banner button {
    margin: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #4a7c41;
    color: #fff;
    cursor: pointer;
}
.cookie-banner button:hover {
    background: #6b8e4e;
}

/* Disclaimer styling */
.disclaimer {
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}

a.share-btn {
    margin-right: 10px;
    color: #4a7c41;
    font-size: 1.2em;
}

/* Version 0.7 adjustments */
.nav-right img { width: 24px; height: auto; }
.nav-right { margin-left: 10px; }
.article a, .columns a, .content a { color: #4b2c20; text-decoration: none; border-bottom: 1px solid transparent; }
.article a:hover, .columns a:hover, .content a:hover { color: #006400; text-decoration: underline; border-bottom-color: #006400; }
.disclaimer { font-size: 0.8rem; color: #777; margin-top: 0.5rem; }
.cookie-notice { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.9); padding: 10px; font-size: 0.8rem; display: none; z-index: 1000; text-align: center; }
.cookie-notice button { margin-left: 10px; background-color: #006400; color: #fff; border: none; padding: 4px 8px; border-radius: 3px; cursor: pointer; }
.cookie-notice button:nth-child(3) { background-color: #8b4513; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Search results styling */
#search-results {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}
#search-results h2 {
    color: #4a7c41;
    margin-top: 20px;
}
#search-results ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* v0.7.3 adjustments to improve layout
   Center images and callout boxes within multi‑column layouts and enlarge language icons */
.columns img {
    /* center images in article columns */
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

.columns .did-you-know {
    /* center callout boxes and limit width */
    margin: 20px auto;
    max-width: 80%;
}

/* enlarge language switcher icons slightly */
.lang-switch img {
    width: 20px !important;
    height: auto !important;
}
/* Version 0.7.1 corrections */
.nav-extra { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.lang-switch img {
    width: 12px !important;
    margin-left: 8px !important;
}

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* v0.7.4: enlarge language icons for better visibility */
.lang-switch img {
    width: 30px !important;
    height: auto !important;
}

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Added by final_modifications_v07.py */
a { color: #5d3a1a; text-decoration: none; }
a:hover { color: #2a5b3e; text-decoration: underline; }
.disclaimer { font-size: 0.8em; color: #666; margin-top: 10px; }
.cookie-notice { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,249,243,0.8); color: #333; padding: 10px; text-align: center; z-index: 1000; }
.cookie-notice button { margin-left: 10px; padding: 5px 10px; border: none; background: #4a7c41; color: #fff; border-radius: 4px; cursor: pointer; }
.lang-switch img { width: 20px; height: auto; margin-left: 15px; vertical-align: middle; }
.search-form { display: inline-flex; align-items: center; margin-left: 15px; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9em; }
.search-form button { background: #4a7c41; border: none; color: #fff; padding: 4px 8px; margin-left: 4px; border-radius: 4px; font-size: 0.9em; cursor: pointer; }
@media (max-width: 768px) { .nav-list { margin-bottom: 10px; } }
.product-section img { width: 70%; height: auto; }
.did-you-know { background: #f0f7ec; border-left: 4px solid #8bc34a; padding: 10px; margin-top: 20px; }

/* Link styles */
a { color: #5B422A; text-decoration: none; }
a:hover { color: #3A5F3D; text-decoration: underline; }
/* End link styles */

.lang-switch img { width: 24px; height: 24px; }
.nav-extra { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.search-form input { padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; }
.search-form button { background: none; border: none; cursor: pointer; font-size: 1.1em; }

/* Increase language icons to 30px for better visibility */
.lang-switch img {
    width: 30px;
    height: 30px;
    margin-left: 15px;
    vertical-align: middle;
}
.cookie-notice { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(244,249,243,0.95); padding: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; z-index: 9999; font-size: 0.9rem; }
.cookie-notice button { background-color: #3A5F3D; color: #fff; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }
.cookie-notice button:hover { background-color: #2F4F2D; }
.disclaimer { font-size: 0.8rem; color: #666; margin-top: 10px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list.open { display: block; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-right: 10px; }
@media (max-width: 768px) { .nav-list { display: none; flex-direction: column; } .menu-toggle { display: block; } .nav-container { display: flex; align-items: center; } .nav-extra { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; } }

/* Responsive adjustments for navigation on mobile screens */
@media (max-width: 768px) {
  /* Stack the nav container items vertically and align to the start */
  .nav-container { display:flex; align-items:center; flex-wrap:wrap; }
  /* When nav list is open, display it in a column */
  .nav-list {
    flex-direction: column;
  }
  /* Place language selector and search below the menu items with spacing */
  .nav-extra {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Custom styles for featured posts in the homepage */
#random-recipes .card {
    background-color: #f0f7ec;
    border-left: 4px solid #8bc34a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: none;
}
#random-recipes .card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #4a7c41;
}
#random-recipes .card p {
    margin-bottom: 10px;
    font-size: 0.9em;
}
#random-recipes .card a.btn {
    color: #4a7c41;
    text-decoration: underline;
    font-weight: bold;
}

/* Custom styles for featured posts in the homepage */
#random-recipes .card {
    background-color: #f0f7ec;
    border-left: 4px solid #8bc34a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: none;
}
#random-recipes .card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #4a7c41;
}
#random-recipes .card p {
    margin-bottom: 10px;
    font-size: 0.9em;
}
#random-recipes .card a.btn {
    color: #4a7c41;
    text-decoration: underline;
    font-weight: bold;
}

/* Custom styles for featured posts in the homepage */
#random-recipes .card {
    background-color: #f0f7ec;
    border-left: 4px solid #8bc34a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: none;
}
#random-recipes .card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #4a7c41;
}
#random-recipes .card p {
    margin-bottom: 10px;
    font-size: 0.9em;
}
#random-recipes .card a.btn {
    color: #4a7c41;
    text-decoration: underline;
    font-weight: bold;
}


/* Navigation style enhancements */
.nav-list li a:hover {
  color: #5c3a21;
}
.nav-list li a.active {
  color: #4a7c41;
  text-decoration: underline;
}
.nav-extra {
  margin-top: 8px;
}
.lang-switch img {
  width: 30px;
  height: 30px;
  margin-left: 15px;
  vertical-align: middle;
}
/* Responsive layout for mobile screens */
@media (max-width: 768px) {
  .nav-container { display:flex; align-items:center; flex-wrap:wrap; }
  .nav-list {
    flex-direction: column;
  }
  .nav-extra {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* Responsive images within articles and columns */
.article img, .columns img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Navigation enhancements v0.7.5 */
.menu-toggle { font-size: 2.4em; }
.site-title-mobile { display: none; color: #4a7c41; font-weight: bold; margin-left: 8px; font-size: 1.2em; }
@media (max-width: 768px) {
  .site-title-mobile { display: inline-block; }
  .nav-extra { width: 100%; display: flex; align-items: center; gap: 0.5rem; margin-top: 10px; }
  .nav-extra a.home-icon, .nav-extra .lang-switch { order: 1; }
  .nav-extra .search-form { order: 2; flex-grow: 1; }
}
.home-icon img { width: 30px; height: 30px; border-radius: 6px; }
.lang-switch img { width: 30px !important; height: auto !important; border-radius: 6px; }
.nav-list li a.active { color: #4a7c41 !important; border-bottom: 2px solid #4a7c41 !important; text-decoration: underline !important; }
.columns img, .article img { max-width: 100%; height: auto; display: block; margin-left:auto; margin-right:auto; }
@media (max-width: 768px) {
  .brand-mobile { color: #4a7c41; font-weight: bold; margin-right: 10px; display: inline-block; }
}

/* Navigation update fix v0.7.6 */
/* Subtle underline for active link */
.nav-list li a.active { border-bottom: 1px solid #4a7c41 !important; }
/* Hide mobile brand on desktop */
.brand-mobile { display: none; }
@media (max-width: 768px) {
  .nav-list li { margin-bottom: 8px; }
  .brand-mobile { display: inline-block; color: #4a7c41; font-weight: bold; margin-left: 8px; }
  /* Ensure nav extra items align properly */
  .nav-extra { width: 100%; display: flex; align-items: center; gap: 0.5rem; margin-top: 10px; }
  .nav-extra .search-form { flex-grow: 1; }
}
/* Custom overrides for v0.8 */
.home-icon img,
.lang-switch img {
  width: 30px !important;
  height: 30px !important;
  vertical-align: middle;
  border-radius: 6px;
}
.nav-list li a.active {
  border-bottom: 1px solid #4a7c41 !important;
  color: #4a7c41 !important;
}
.nav-extra {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Navigation mobile adjustments for v0.9 */
@media (max-width: 768px) {
  /* Align brand text with hamburger icon and make it bold and larger */
  .brand-mobile {
    font-size: 2.4em;
    line-height: 1;
    font-weight: bold;
    margin-left: 0.5rem;
    margin-right: 1rem;
    color: #4a7c41;
    display: inline-block;
  }
  /* Ensure nav container items align horizontally */
  .nav-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  /* Separate menu list from header items */
  .nav-list {
    width: 100%;
    margin-top: 10px;
  }
  /* Add spacing between menu items */
  .nav-list li {
    margin-bottom: 8px;
  }
  /* Keep nav-extra items inline */
  .nav-extra {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-top: 10px;
  }
}
/* Ensure social share icons are inline (horizontal) */
.social-share {
  display: flex;
  align-items: center;
  gap: 4px;
}
.social-share a img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}
/* --- Mobile nav alignment fix v0.9.1 (override) --- */
@media (max-width: 768px) {
  /* Keep header items (hamburger, brand, icons) on one line */
  .nav-container { display:flex; align-items:center; flex-wrap:wrap; }
  /* Brand title inline with hamburger */
  .brand-mobile { display:inline-block; font-size:2.2em; line-height:1; font-weight:700; margin-left:8px; }
  /* Nav list shows below as full width */
  .nav-list { width:100%; flex-direction:column; }
  /* Extra icons inline (home + language + search) */
  .nav-extra { display:flex; align-items:center; gap:.5rem; margin-left:auto; flex-direction:row !important; }
  .nav-extra .home-icon, .nav-extra .lang-switch { display:flex; align-items:center; }
}

/* --- Mobile nav alignment fix v0.9.1 (override) --- */
@media (max-width: 768px) {
  .nav-container { display:flex; align-items:center; flex-wrap:wrap; }
  .brand-mobile { display:inline-block; font-size:2.2em; line-height:1; font-weight:700; margin-left:8px; }
  .nav-list { width:100%; display:none; flex-direction:column; margin-top:10px; }
  .nav-list.open { display:block; }
  .nav-extra { display:flex; align-items:center; gap:10px; margin-left:auto; margin-top:0; flex-direction:row; }
  .nav-extra .home-icon, .nav-extra .lang-switch { display:flex; align-items:center; }
}
/* --- Mobile nav alignment fix v0.9.1 (override) --- */
@media (max-width: 768px) {
  /* Keep header items (hamburger, brand, icons) on one line */
  .nav-container { display:flex; align-items:center; flex-wrap:wrap; }
  /* Brand title inline with hamburger */
  .brand-mobile { display:inline-block; font-size:2.2em; line-height:1; font-weight:700; margin-left:8px; }
  /* Nav list shows below as full width list */
  .nav-list { width:100%; margin-top:10px; flex-direction:column; }
  .nav-list.open { display:block; }
  /* Icons in one row (home + language + search) */
  .nav-extra { display:flex; align-items:center; gap:0.5rem; margin-left:auto; margin-top:0; flex-direction:row; }
  .nav-extra a.home-icon, .nav-extra a.lang-switch { display:flex; align-items:center; }
}
/* --- Mobile nav alignment fix v0.9.1 (override) --- */
@media (max-width: 768px) {
  /* Keep header items (hamburger, brand, icons) on one line */
  .nav-container { display:flex; align-items:center; flex-wrap:wrap; }
  /* Brand title inline with hamburger */
  .brand-mobile { display:inline-block; font-size:2.2em; line-height:1; font-weight:700; margin-left:8px; }
  /* Nav list shows below as full width */
  .nav-list { width:100%; margin-top:10px; }
  /* Icons row stays horizontal */
  .nav-extra { display:flex; align-items:center; gap:8px; margin-left:auto; flex-direction:row !important; }
  .nav-extra .home-icon, .nav-extra .lang-switch { display:flex; align-items:center; }
}
@media (max-width: 768px){ .brand-mobile{ display:inline-block; font-weight:700; font-size:2.2em; line-height:1; margin-left:8px; } }
