/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4B5563;
}

/* Header */
.site-header {
    background: #fffaf0;
    padding: 2rem 0 0;
    text-align: center;
    position: relative;
}

.logo {
    margin-bottom: 2rem;
    display: inline-block;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    height: 120px;
    width: auto;
    max-width: 100%;
    display: block;
}

/* Logo Fallback Styles */
.logo-fallback .site-title {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    color: #333;
}

.logo-fallback .logo-icon {
    font-size: 2rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -3px);
}

/* Navigation */
.main-navigation {
        padding: 0 0 1rem;
    border-bottom: 2px solid #464646;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.nav-link:hover {
    color: #333;
    border-bottom-color: #ddd;
}

/* Main Content Layout */
.site-content {
    min-height: calc(100vh - 200px);
        background: #fffaf0;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

/* Featured Post */
.featured-post {
    /* background: #fff; */
}

.post-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
}

.post-meta time,
.post-meta .author,
.post-meta .comments {
    margin-right: 1rem;
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.read-more {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #333;
    border-bottom-color: #333;
}

/* Sidebar */
.sidebar {
    background: #eae3cf;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 3rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Ebook Promo */
.ebook-promo {
    text-align: center;
}

.ebook-cover {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.ebook-authors {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    margin: 0;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #999;
}

.search-button {
    padding: 0.8rem 1.5rem;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #333;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #eee;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #ddd;
    transform: translateY(-2px);
}

/* Recent Posts Section */
.recent-posts {
    margin: 4rem 0;
    border-top: 1px solid #e5e5e5;
    padding-top: 3rem;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #333;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-title {
    font-size: 1.3rem;
    margin: 1rem 1.5rem 0.5rem;
    color: #333;
}

.post-card-excerpt {
    margin: 0 1.5rem 1rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-card .read-more {
    margin: 0 1.5rem 1.5rem;
    display: inline-block;
}

/* Newsletter Sidebar */
.newsletter-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    background: #f9f9f9;
    padding: 3rem;
    border-radius: 8px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

.newsletter-input:focus {
    outline: none;
    border-color: #999;
}

.newsletter-button {
    padding: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
    transition: background 0.3s ease;
}

.newsletter-button:hover {
    background: #555;
}

.kitchen-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
.site-footer {
    background: #333;
    color: #ccc;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.6;
    color: #ccc;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-newsletter {
    /* display: flex; */
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #555;
    background: #fff;
    color: #fff;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: #777;
}

.footer-newsletter input::placeholder {
    color: #999;
}

.footer-newsletter button {
    padding: 0.8rem 1.2rem;
    background: #8b7355;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: background 0.3s ease;
}

.footer-newsletter button:hover {
    background: #888;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Recipe Page Styles */
.recipe-content {
    /* max-width: 800px; */
    margin: 2rem auto;
    padding: 0 1rem;
}
.recipe-content img {
        max-width: 100%;
}
.breadcrumbs {
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #333;
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
}

.recipe-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    color: #666;
    font-style: italic;
}

.recipe-image-container {
    /* margin-bottom: 2rem; */
}

.recipe-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recipe-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}
body {
        background: #fffaf0;
}
.recipe-info {
    /* display: grid; */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    /* margin-bottom: 2rem; */
    padding: 1.5rem;
    /* background: #f8f9fa; */
    border-radius: 8px;
}

.recipe-info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #666;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.recipe-ingredients h2,
.recipe-instructions h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredient-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.instructions-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.instruction-item {
    display: flex;
    margin-bottom: 1.5rem;
    counter-increment: step-counter;
}

.instruction-number {
    width: 2rem;
    height: 2rem;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.instruction-text {
    line-height: 1.6;
}

.recipe-full-content {
    margin-bottom: 3rem;
    line-height: 1.7;
}

.recipe-gallery {
    margin-top: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .logo {
    margin-bottom:0;
    }
    .site-header {
        padding: 1.5rem 0;
    }
    
    .logo-image {
        height: 120px;
    }
    
    .logo-fallback .site-title {
        font-size: 2.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        border-top: none;
        padding-top: 0;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    .nav-menu .dropdown-arrow {
            display: none;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: none;
        font-size: 1rem;
    }
    
    .nav-link:hover {
        background-color: #f9f9f9;
        border-bottom: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Recipe page mobile styles */
    .recipe-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recipe-title {
        font-size: 2rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .recipe-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .instruction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .instruction-number {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 90px;
    }
    
    .logo-fallback .site-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    .newsletter-sidebar {
        padding: 1.5rem;
    }
    
    .recent-posts {
        margin: 2rem 0;
        padding-top: 2rem;
    }
    
    .posts-grid {
        gap: 1.5rem;
    }
    
    /* Recipe page small mobile styles */
    .recipe-info {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb-list {
        font-size: 0.9rem;
    }
}
.dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    margin-top: 1rem;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.dropdown-content {
    padding: 1rem;
}

.dropdown-header {
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.75rem;
}

.dropdown-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #333;
    border-bottom: none;
}

.dropdown-link.featured {
    background: #eae3cf;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.dropdown-link.view-all {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

/* Mobile Dropdown Styles */
.mobile-dropdown-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.8rem;
}

/* Mobile Navigation Updates */
@media (max-width: 768px) {
    /* Navigation link updates for dropdowns */
    .nav-link {
        justify-content: center;
        position: relative;
    }
    
    /* Mobile Dropdown */
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        background: #f8f9fa;
        min-width: auto;
        display: none;
    }
    
    .has-dropdown.mobile-open .nav-dropdown {
        display: block;
    }
    
    .dropdown-header {
        text-align: left;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .dropdown-links {
        gap: 0.15rem;
    }
    
    .dropdown-link { 
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
}