/* ===== NAVIGATION & LAYOUT ===== */
.navbar-nav > li > a {
    font-size: 12px;
}

.dropdown-menu > li > a {
    font-size: 13px;
}

.navbar-collapse {
    padding-right: 0px;
    padding-left: 0px;
}

@media only screen and (min-width: 800px) {
    .navbar-default {
        height: 82px;
    }
}

/* ===== HEADER ROWS ===== */
.header-row-2 {
    margin-bottom: 0px;
}

.header-row-3 {
    margin-bottom: 15px;
}

/* ===== HIDE ELEMENTS ===== */
.entry-meta,
h3.widget-title,
.credit {
    display: none;
}

/* ===== GENERAL STYLING ===== */
body {
    font-family: Karma, Georgia, serif;
    font-style: italic;
}

html {
    margin-top: 0px !important;
}

hr {
    margin: 5px 0;
    border-top-color: #000;
}

.widget {
    margin-bottom: 10px;
}

.widget ul > li > a {
    font-size: 10px;
}

.entry h3 {
    font-size: 15px;
}

.entry {
    margin-bottom: 1px;
}

/* ===== FRONTPAGE ELEMENTS - REMOVE SPACING ===== */
.frontpage-banner {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    position: relative;
}

.pagination-blog-feed {
    margin: 1px;
}

.blog-feed-sidebar > h2 {
    margin: 0 0 10px;
}

/* FIX: Remove spacing before Recent Posts */
.frontpage-vertical-posts {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.frontpage-vertical-posts .block-title {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
}

/* ===== OWL CAROUSEL - FIXED SPACING & RESPONSIVE IMAGES ===== */

/* Remove bottom spacing from carousel */
.owl-carousel {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

/* Make carousel images same size and responsive */
.owl-carousel .owl-item img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Desktop carousel settings */
@media only screen and (min-width: 800px) {
    .owl-carousel {
        width: 80%;
        margin-bottom: 0px !important;
    }
    
    .owl-stage-outer {
        left: 100px;
    }
    
    /* Taller images on desktop */
    .owl-carousel .owl-item img {
        height: 500px !important;
    }
}

/* Tablet carousel */
@media only screen and (min-width: 481px) and (max-width: 799px) {
    .owl-carousel .owl-item img {
        height: 350px !important;
    }
}

/* Mobile carousel */
@media only screen and (max-width: 480px) {
    .owl-carousel .owl-item img {
        height: 300px !important;
    }
    
    /* HIDE navigation arrows on mobile */
    .owl-nav {
        display: none !important;
    }
    
    .owl-prev,
    .owl-next {
        display: none !important;
    }
}

/* ===== FRONTPAGE SLIDER - REMOVE SPACING ===== */
.frontpage-slider .caption .read-more,
.frontpage-slider .caption .date {
    display: none;
}

.frontpage-slider {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

@media only screen and (min-width: 800px) {
    .frontpage-slider {
        margin-bottom: 0px !important;
    }
    
    .frontpage-slider .owl-nav div:before {
        left: 100px;
    }
}

/* ===== STICKY HEADER (MOBILE) ===== */
@media (max-width: 768px) {
    .stickyHeader {
        position: fixed;
        background-color: white;
        z-index: 1000;
    }
}

/* ===== RESPONSIVE GRID ===== */
@media (min-width: 200px) and (max-width: 1080px) {
    .frontpage-vertical-posts .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        font-size: 11px;
    }
}

@media (min-width: 992px) and (max-width: 1080px) {
    .frontpage-vertical-posts .col-sm-4 {
        flex: 0 0 33.3333333%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .frontpage-vertical-posts .col-sm-4 {
        flex: 0 0 33.3333333%;
    }
}

@media (min-width: 414px) and (max-width: 767px) {
    .frontpage-vertical-posts .col-sm-4 {
        flex: 0 0 50%;
    }
}

@media (min-width: 200px) and (max-width: 413px) {
    .frontpage-vertical-posts .col-sm-4 {
        width: 100%;
    }
    
    .frontpage-vertical-posts .entry-content img {
        width: 100%;
        height: auto;
    }
}

@media (min-width: 200px) and (max-width: 767px) {
    .frontpage-vertical-posts .entry-summary {
        display: none;
    }
}

/* ===== TOP POSTS WIDGET ===== */
#top-posts-3 .widget-grid-view-image {
    max-width: 100%;
    width: 100%;
}

@media (min-width: 320px) {
    #top-posts-3 .widget-grid-view-image a {
        max-width: 28%;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    #top-posts-3 .widget-grid-view-image a {
        max-width: 50%;
        margin: 0 auto;
    }
}

/* ===== GREEN HEADER TITLE - JULIA'S GREEN KITCHEN ===== */
h1.header-logo-text a,
.header-logo-text a {
    color: #6a994e !important;
    text-decoration: none !important;
}

h1.header-logo-text a:hover,
.header-logo-text a:hover,
h1.header-logo-text a:focus,
.header-logo-text a:focus {
    color: #a7c957 !important;
    text-decoration: none !important;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 767px) {
    /* Prevent zoom on forms */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Full-width responsive images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix horizontal scroll */
    body, html {
        overflow-x: hidden;
    }
    
    /* Larger touch targets */
    .navbar-nav > li > a {
        min-height: 44px;
        padding: 12px 15px;
    }
}

/* ===== NUCLEAR SPACING FIX ===== */

/* Force remove spacing after carousel */
.owl-carousel + *,
.frontpage-slider + *,
.frontpage-banner + * {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* Force remove any hidden divs causing space */
.site-content > div:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove spacing from carousel container */
.owl-stage-outer,
.owl-stage {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

/* Hide dots navigation on mobile */
@media (max-width: 480px) {
    .owl-dots {
        display: none !important;
    }
}