/* Site Blog Discovery Styles */
.sbd-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--sbd-font, 'Inter', system-ui, sans-serif);
    color: var(--sbd-text, #333);
    padding: 0 1.25rem;
    /* Safe area for mobile */
    box-sizing: border-box;
}

.sbd-container>*:last-child {
    margin-bottom: 0 !important;
}

/* Global Elements */
/* User requested to hide page/post titles on frontend */
.entry-title,
.page-title,
.post-title {
    display: none !important;
}

.sbd-btn {
    display: inline-block;
    background: var(--sbd-primary, #4a7c59);
    /* Forest Green */
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.sbd-btn:hover {
    filter: brightness(0.9);
}

.sbd-cat-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--sbd-primary, #4a7c59);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

/* Featured Section -> Carousel */
.sbd-featured-section {
    margin-bottom: 30px;
    background-color: var(--sbd-feat-sec-bg, transparent);
    padding: var(--sbd-feat-sec-bg, 0px) 0;
    /* Add vertical padding if bg set? Logic difficult in pure CSS variable usage without calc, but we'll assume transparent usually */
    border-radius: var(--sbd-radius, 16px);
}

.sbd-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sbd-featured-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar */
    border-radius: 20px;
}

.sbd-featured-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    /* scroll-behavior: smooth;  -- Let JS handle animation */
    /* Native smooth scroll disabled to prevent conflict with jQuery animate */
    padding: 10px 5px 25px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.sbd-featured-card-item {
    flex: 0 0 auto;
    /* Width is calculated by JS or fallback */
    width: 300px;
    scroll-snap-align: start;
}

/* Nav Arrows */
.sbd-carousel-nav {
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 2;
    flex-shrink: 0;
}

.sbd-carousel-nav:hover {
    background: var(--sbd-primary, #4a7c59);
    color: #fff;
    transform: scale(1.1);
}

.sbd-carousel-nav .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Mobile: Hide arrows */
@media (max-width: 768px) {
    .sbd-carousel-nav {
        display: none;
    }
}

.sbd-featured-card {
    background: var(--sbd-feat-card-bg, #fff);
    border-radius: var(--sbd-radius, 20px);
    box-shadow: var(--sbd-shadow, 0 4px 15px rgba(0, 0, 0, 0.08));
    overflow: hidden;
    height: 100%;
    position: relative;
    border: 1px solid #f0f0f0;
    color: var(--sbd-feat-card-text, inherit);
}

.sbd-featured-image {
    position: relative;
    height: 200px;
    width: calc(100% - 20px);
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.sbd-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Pill */
.sbd-cat-pill {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Dynamic colors */
.sbd-color-1 {
    background: #FF6B6B;
}

.sbd-color-2 {
    background: #4ECDC4;
}

.sbd-color-3 {
    background: #FFE66D;
    color: #333;
}

.sbd-color-4 {
    background: #1A535C;
}

.sbd-featured-content {
    padding: 12px 20px 20px 20px;
    /* Reduced top padding for smaller gap with image */
    display: flex;
    flex-direction: column;
}

.sbd-featured-content h2 {
    font-size: 18px;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sbd-featured-content h2 a {
    color: #333;
    text-decoration: none;
}

.sbd-featured-content .sbd-excerpt {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sbd-btn-read {
    display: block;
    background: var(--sbd-feat-btn-bg, var(--sbd-primary, #4a7c59));
    color: var(--sbd-feat-btn-text, #fff);
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: auto;
    transition: background 0.3s, color 0.3s;
}

.sbd-btn-read.sbd-visited,
.sbd-read-more.sbd-visited {
    background: var(--sbd-visited-color, #777) !important;
    border-color: var(--sbd-visited-color, #777) !important;
    color: #fff !important;
}

/* Header Section */
.sbd-header-section {
    margin-bottom: 20px;
    background-color: var(--sbd-header-bg, transparent);
    color: var(--sbd-header-text, inherit);
    padding: 10px 0;
    /* Add padding if bg is used */
    border-radius: var(--sbd-radius, 16px);
}

.sbd-header-top {
    margin-bottom: 15px;
}

.sbd-page-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

/* Search Row Fix */
.sbd-search-row {
    position: relative;
    margin-bottom: 25px;
}

.sbd-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Responsive Grid adjustment for "matches featured style" */
.sbd-post-card {
    border-radius: 16px;
    /* Match rounded */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Match subtle shadow */
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .sbd-featured-card-item {
        flex: 0 0 85%;
    }
}

/* Tabs Section */
.sbd-tabs-section {
    margin-bottom: 40px;
}

/* Search Row */
.sbd-search-row {
    width: 100%;
    margin-bottom: 25px;
}

.sbd-search-row input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 50px;
    /* Rounded search bar */
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.sbd-search-row input:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Highlight focus */
    border-color: #bbb;
}



.sbd-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    gap: 20px;
}

.sbd-browse-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.sbd-tabs-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    flex-grow: 0;
    max-width: 70%;
    /* Prevent it from eating all space */
    /* Allow it to take space but not push filters off if constrained */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

/* Hide Scrollbar for Chrome/Safari/Opera */
.sbd-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.sbd-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    padding: 5px 0;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}

.sbd-tab:hover {
    color: #4a7c59;
}

.sbd-tab.active {
    color: var(--sbd-active-color, var(--sbd-primary, #1a1a1a));
    font-weight: 700;
}

/* Dropdown */
.sbd-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    margin-right: auto;
    /* Push filters to right */
}

.sbd-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.sbd-dropdown-content.show {
    display: block;
}

.sbd-dropdown-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.sbd-dropdown-list-scroll {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sbd-dropdown-item {
    background: none;
    border: none;
    text-align: left;
    padding: 8px 12px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    width: 100%;
}

.sbd-dropdown-item:hover {
    background: #f8f9fa;
    color: #000;
}

.sbd-dropdown-item.active {
    background: #f0f0f0;
    font-weight: 600;
    color: var(--sbd-active-color, var(--sbd-primary, #000));
}

/* Sort Buttons (Filters) */
.sbd-filter-select {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    /* Don't shrink buttons */
    margin-left: auto;
    /* Force to right */
}

.sbd-sort-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #888;
    padding: 6px 12px;
    border-radius: 50px;
    transition: all 0.2s;
}

.sbd-sort-btn:hover {
    color: #4a7c59;
    background: rgba(74, 124, 89, 0.05);
}

.sbd-sort-btn.active {
    color: #fff;
    background: #4a7c59;
    font-weight: 600;
}


/* Grid & Sidebar Layout */
.sbd-content-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Global Layout Wrapper */
.sbd-layout-wrapper {
    display: block;
    /* Default mobile */
}

/* Desktop Global Layout */
@media (min-width: 992px) {
    .sbd-layout-wrapper.sbd-has-global-sidebar {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }

    .sbd-main-column {
        flex: 1;
        min-width: 0;
        /* Prevent flex overflow */
    }

    .sbd-sidebar-column {
        flex: 0 0 300px;
        position: sticky;
        top: 20px;
    }
}

/* Featured Section Adjustment */

/* Featured Section Adjustment - Desktop Grid Removed for Slider */
@media (min-width: 992px) {
    .sbd-featured-carousel {
        /* Keep flex for slider */
        display: flex;
        grid-template-columns: none;
        gap: 20px;
        overflow-x: hidden;
        /* Hide scrollbar on desktop too if arrows used */
    }

    .sbd-featured-card-item {
        flex: 0 0 auto;
        max-width: none;
    }
}

/* Sidebar Widgets */
.sbd-widget {
    margin-bottom: 30px;
}

.sbd-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.sbd-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbd-widget ul li {
    margin-bottom: 12px;
}

.sbd-sidebar-cat-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 15px;
    transition: color 0.2s;
}

.sbd-sidebar-cat-link:hover,
.sbd-sidebar-cat-link.active {
    color: #4a7c59;
    /* Green accent */
    font-weight: 600;
}

.sbd-cat-icon {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 10px;
}

.sbd-cat-count {
    margin-left: auto;
    color: #999;
    font-size: 0.9em;
}

/* Configurable Grid System */
.sbd-posts-grid {
    display: grid;
    gap: 20px;
}

/* Grid Section & Sidebar Layout (Old specific - remove or keep for fallback) */
.sbd-grid-section {
    position: relative;
    margin-bottom: 40px;
    background-color: var(--sbd-grid-sec-bg, transparent);
    border-radius: var(--sbd-radius, 16px);
}

.sbd-grid-section.sbd-has-sidebar {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sbd-grid-main {
    flex: 1;
    min-width: 0;
    /* Fix grid overflow in flex */
}

.sbd-grid-sidebar {
    flex: 0 0 300px;
    position: sticky;
    /* Optional: Sticky Sidebar */
    top: 20px;
}

/* Sidebar Widgets */
.sbd-widget {
    margin-bottom: 30px;
}

.sbd-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.sbd-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbd-widget ul li {
    margin-bottom: 12px;
}

.sbd-sidebar-cat-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 15px;
    transition: color 0.2s;
}

.sbd-sidebar-cat-link:hover,
.sbd-sidebar-cat-link.active {
    color: #4a7c59;
    /* Green accent */
    font-weight: 600;
}

.sbd-cat-icon {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 10px;
}

.sbd-cat-count {
    margin-left: auto;
    color: #999;
    font-size: 0.9em;
}

/* Configurable Grid System */
.sbd-posts-grid {
    display: grid;
    gap: 20px;
}

/* Desktop Columns */
@media (min-width: 769px) {
    .sbd-grid-d-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sbd-grid-d-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .sbd-grid-d-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .sbd-grid-d-auto {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile Columns */
@media (max-width: 768px) {
    .sbd-grid-section.sbd-has-sidebar {
        flex-direction: column;
        /* Stack Sidebar on Mobile */
    }

    .sbd-grid-sidebar {
        width: 100%;
        margin-top: 40px;
    }

    .sbd-grid-m-1 {
        grid-template-columns: 1fr;
    }

    .sbd-grid-m-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sbd-grid-m-auto {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}



/* ----------------------------------------------------------------
   MOBILE CENTER MODE CAROUSEL (max-width: 767px)
   ---------------------------------------------------------------- */
/* ----------------------------------------------------------------
   MOBILE CENTER MODE CAROUSEL (max-width: 767px)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .sbd-carousel-container {
        display: block;
        width: 100%;
        overflow: hidden;
        padding: 20px 0;
    }

    .sbd-featured-carousel-wrapper {
        width: 100%;
        overflow: visible;
        border-radius: 0;
    }

    .sbd-featured-carousel {
        display: block;
        /* No Flex */
        position: relative;
        height: 420px;
        /* Fixed height for interaction */
        overflow: visible;
        padding: 0;
        gap: 0;
    }

    .sbd-featured-card-item {
        position: absolute;
        top: 0;
        left: 50%;
        width: 75%;
        /* Center Card Width */
        height: 100%;

        /* Default Hidden State (Behind) */
        transform: translateX(-50%) scale(0.8);
        opacity: 0;
        z-index: 0;
        pointer-events: none;

        transition: transform 0.3s ease, opacity 0.3s ease;
        margin: 0;
        /* Reset margins */
    }

    .sbd-featured-card {
        height: 100%;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        /* Stronger shadow for depth */
    }

    /* Active Center Post */
    .sbd-featured-card-item.sbd-mobile-active {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        z-index: 10;
        pointer-events: auto;
    }

    /* Left Peek (Previous) */
    .sbd-featured-card-item.sbd-mobile-prev {
        transform: translateX(-140%) scale(0.9);
        opacity: 0.6;
        z-index: 5;
        pointer-events: auto;
        /* Allow massive swipe area */
    }

    /* Right Peek (Next) */
    .sbd-featured-card-item.sbd-mobile-next {
        transform: translateX(40%) scale(0.9);
        opacity: 0.6;
        z-index: 5;
        pointer-events: auto;
    }
}

/* ----------------------------------------------------------------
   MOBILE APP POLISH (App-Like Feel)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {

    /* 1. Typography */
    .sbd-container {
        padding: 0 15px;
        /* Standardize gutters */
    }

    /* Headings */
    .sbd-featured-content h2 {
        font-size: 18px;
        /* Readable card title */
        font-weight: 700;
        margin-bottom: 6px;
    }

    .sbd-featured-content .sbd-excerpt {
        font-size: 14px;
        /* Larger body text */
        line-height: 1.5;
        margin-bottom: 12px;
    }

    /* 2. Carousel Tweak */
    .sbd-featured-carousel {
        height: 380px;
        /* slightly tighter */
    }

    .sbd-featured-card-item {
        width: 85%;
        /* Wider cards */
    }

    /* 3. Tabs (Pills) Scroll */
    .sbd-tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        border-bottom: none;
    }

    .sbd-tabs-scroll {
        max-width: 100%;
        width: 100%;
        gap: 12px;
        padding-bottom: 5px;
        /* Space for shadow if any */
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }

    .sbd-tab {
        font-size: 15px;
        padding: 8px 16px;
        background: #f5f5f5;
        border-radius: 50px;
        color: #555;
    }

    .sbd-tab.active {
        background: var(--sbd-primary, #4a7c59);
        color: #fff;
    }

    /* 4. Dropdown */
    .sbd-dropdown-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .sbd-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        display: flex;
        background: #fff;
        border: 1px solid #eee;
        padding: 12px 16px;
    }

    /* 5. Grid (Feed Style) */
    .sbd-grid-m-auto {
        grid-template-columns: 1fr;
        /* Full width feed */
    }

    .sbd-grid-m-2 {
        /* Check user preference, but 1-col often feels more "Appy" for blogs */
        /* Leaving 2 col if specifically requested, but defaulting < 480 to 1 col */
    }

    .sbd-post-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        /* Softer */
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {

    /* Force 1 column on small screens for feed look */
    .sbd-posts-grid {
        grid-template-columns: 1fr !important;
    }
}

transform: translateX(40%) scale(0.9);
opacity: 0.6;
z-index: 5;
pointer-events: auto;
}
}

/* Right Peek - Disabled/Hidden by reset above */
.sbd-featured-card-item.sbd-mobile-next {
    /* Reset transform for standard scroll */
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

/* Closing brace for media query matches line 726 */

/* Fix spacing in carousel */
.sbd-featured-carousel {
    padding: 20px 10px 40px 10px;
    /* More padding for shadow */
    gap: 25px;
}

/* Match Button Style EXACTLY */
.sbd-btn-read {
    background: var(--sbd-feat-btn-bg, var(--sbd-primary, #25D366));
    /* Bright Green like screenshot */
    color: var(--sbd-feat-btn-text, #fff);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    /* Screenshot has "Read More" capitalized usually */
    display: inline-block;
    /* Not block, let it size to content */
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    /* Green Glow */
    transition: background 0.3s, color 0.3s;
}

.sbd-cat-pill {
    top: 20px;
    left: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    background: #25D366;
    /* Default green if not dynamic */
}

.sbd-post-card {
    background: var(--sbd-grid-card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--sbd-grid-card-text, inherit);
}

.sbd-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.sbd-card-image {
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 12px;
    overflow: hidden;
}

.sbd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbd-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #4a7c59;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sbd-card-content {
    padding: 20px;
}

.sbd-card-content h3 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.3;
}

.sbd-card-content h3 a {
    color: #333;
    text-decoration: none;
}

.sbd-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.sbd-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 15px;
}

.sbd-read-more {
    display: inline-block;
    background: #4a7c59;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
}

.sbd-read-more:hover {
    background: #3b6347;
}

/* Sidebar Columns */
.sbd-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Popular List */
.sbd-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbd-popular-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.sbd-popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.sbd-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbd-popular-info h4 {
    margin: 0 0 5px;
    font-size: 0.95rem;
    font-weight: 600;
}

.sbd-popular-info h4 a {
    color: #333;
    text-decoration: none;
}

.sbd-popular-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Browse Categories (Buckets) */
.sbd-buckets-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sbd-buckets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.sbd-bucket-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 30px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.sbd-bucket-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #4a7c59;
}

.sbd-bucket-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    display: block;
}

.sbd-bucket-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Load More */
.sbd-load-more-container {
    text-align: center;
    margin-top: 30px;
}

#sbd-load-more {
    padding: 10px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

#sbd-load-more:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 900px) {
    .sbd-content-wrapper {
        grid-template-columns: 1fr;
    }

    .sbd-featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sbd-posts-grid {
        grid-template-columns: 1fr;
    }

    .sbd-tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .sbd-sort-btn {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
}