/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    max-width: 980px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-icon {
    position: relative;
    width: 60px;
    height: 40px;
    margin-right: 15px;
}

.logo-icon .shape-l {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 40px;
    border-left: 5px solid #008000;
    border-bottom: 5px solid #008000;
}

.logo-icon .shape-rect {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 40px;
    height: 25px;
    border: 5px solid #FFD700;
    z-index: -1;
}

.logo-text h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    color: #004d99;
    /* Approximate blue color */
    font-weight: 700;
}

.logo-text p {
    font-size: 13px;
    color: #000;
    font-weight: 600;
}

/* Navigation */
.main-nav {
    background-color: #008000;
    width: 100%;
}

.main-nav ul {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    /* Handle smaller screens gracefully */
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    border-right: 1px solid #006600;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #006400;
}

/* Container Layout */
.container {
    max-width: 980px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 0 10px;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    display: block;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    height: auto;
}

.hero-caption {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 45%;
    padding: 15px;
    font-size: 14px;
}

.hero-caption h2 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-caption p {
    font-size: 12px;
}

/* Content Grid (Food & Heritage) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section-title {
    color: #008000;
    border-bottom: 1px solid #008000;
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.post-preview {
    margin-top: 10px;
}

.preview-img {
    width: 100%;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    margin-bottom: 10px;
}

.post-title {
    color: #008000;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.post-preview p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 15px;
}

.search-widget form {
    display: flex;
}

.search-widget input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
}

.search-widget button {
    background: #99c;
    border: none;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
}

.section-divider {
    background: transparent;
    border: none;
    border-top: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
    padding: 15px 0;
}

.widget-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.center-content {
    text-align: center;
}

.video-placeholder {
    background: #f0f0f0;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}

.puzzle-piece-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #999;
}

.widget-row {
    display: flex;
    gap: 10px;
}

.half-widget {
    flex: 1;
}

.weather-content {
    text-align: center;
    font-size: 11px;
}

.weather-city {
    font-weight: bold;
    font-size: 12px;
}

.weather-temp {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}

.tag-cloud {
    font-size: 12px;
}

.tag-cloud a {
    display: inline-block;
    color: #0066cc;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: underline;
}

.continue-reading {
    display: block;
    text-align: right;
    color: #008000;
    font-style: italic;
    margin-top: 10px;
    font-size: 13px;
    text-decoration: none;
}

.continue-reading:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {

    /* Layout: Stack columns vertically */
    .container {
        grid-template-columns: 1fr;
        /* Single column */
        margin: 10px auto;
        /* Reduce margin */
    }

    .content-grid {
        grid-template-columns: 1fr;
        /* Single column for grid items */
    }

    /* Navigation: Allow wrapping and center items */
    .main-nav ul {
        justify-content: center;
    }

    .main-nav a {
        padding: 10px;
        /* Slightly smaller padding if needed */
        font-size: 12px;
    }

    /* Header: Stack logo elements if needed, but currently flex row is okay. 
       Adjust margins for logo text maybe? */
    .logo-area {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
    }

    .logo-icon {
        margin-bottom: 10px;
    }

    /* Hero Slider: Stack caption below image */
    .hero-caption {
        position: static;
        /* Remove absolute positioning */
        width: 100%;
        background: #333;
        /* Solid background since it's not over image */
        padding: 15px;
    }

    /* Widgets: Stack side-by-side widgets vertically */
    .widget-row {
        flex-direction: column;
    }

    /* General Typography adjustments for mobile */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    /* Mobile Footer */
    .footer-container {
        grid-template-columns: 1fr;
        /* Stack footer columns */
    }
}

/* Footer Styles */
.main-footer {
    background-color: #f2f2f2;
    padding: 30px 0;
    font-size: 14px;
    border-top: 5px solid #eaeaea;
    margin-top: 40px;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 0 10px;
}

.footer-col h3 {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
    color: #000;
}

.footer-col ul li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-col ul li a {
    color: #333;
    text-decoration: underline;
}

.footer-col ul li a:hover {
    color: #008000;
}

.copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    color: #666;
}