/* Hero Section */
.blog-over-hero-wrapper {
    margin-bottom: 30px;
    margin-top: 30px;
}

.blog-over-hero-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* Hero Image - Full width, auto height */
.blog-over-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Overlay gradient */
.blog-over-hero-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Hover overlay gradient (fades in smoothly) */
.blog-over-hero-item:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-over-hero-item:hover:after {
    opacity: 1;
}

.blog-over-hero-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* No overlay mode - remove gradient overlay & hover darken */
.hero-no-overlay .blog-over-hero-item:before,
.hero-no-overlay .blog-over-hero-item:after {
    display: none;
}

/* Hero Content - Positioned at bottom, constrained within image */
.blog-over-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 20px;
    max-height: 70%;
    overflow: hidden;
}

.blog-over-category-badge {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0px;
    background: transparent !important;
    background-color: transparent !important;
}

.blog-over-category-badge .blog-over-cat-item {
    background: var(--blog-over-secondary, #1e40af);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 6px 16px;
    border-radius: 3px;
    display: inline-block;
    text-decoration: none;
    position: relative;
    z-index: 5;
    transition: all 0.3s ease;
}

/* Limit to 2 pills on small/grid sliders */
.blog-over-hero-small .blog-over-category-badge .blog-over-cat-item:nth-child(n+3) {
    display: none;
}

/* Smaller pills on small sliders */
.blog-over-hero-small .blog-over-category-badge {
    gap: 6px;
    margin-bottom: 8px;
}

.blog-over-hero-small .blog-over-category-badge .blog-over-cat-item {
    font-size: 10px;
    padding: 4px 10px;
}

.blog-over-hero-title {
    color: #fff;
    margin: 0 0 10px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.blog-over-hero-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-over-hero-title a:hover {
    color: var(--blog-over-primary, #3b82f6);
    opacity: 1;
}

/* Category Badge - Hover Effects */
.blog-over-category-badge .blog-over-cat-item:hover {
    background: var(--blog-over-primary, #3b82f6);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.blog-over-category-badge .blog-over-cat-item:active {
    transform: translateY(0) scale(1);
}

/* Hero Meta - Clickable Links */
.blog-over-hero-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 5;
}

.blog-over-hero-meta a {
    color: #ebebeb;
    text-decoration: none;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.blog-over-hero-meta a:hover {
    color: var(--blog-over-primary, #3b82f6);
}

.blog-over-hero-meta a i {
    font-size: 11px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.blog-over-hero-meta a:hover i {
    transform: scale(1.15);
    opacity: 1;
}

/* Smaller meta on small sliders */
.blog-over-hero-small .blog-over-hero-meta {
    font-size: 11px;
}

.blog-over-hero-small .blog-over-hero-meta a {
    margin-right: 8px;
    gap: 4px;
}

.blog-over-hero-small .blog-over-hero-meta a i {
    font-size: 10px;
}

/* Grab cursor for slider drag - only on track */
.blog-over-slider-track {
    cursor: grab;
}

.blog-over-slider-track:active {
    cursor: grabbing;
}

/* Dots should have pointer cursor */
.blog-over-slider-dots,
.blog-over-slider-dot {
    cursor: pointer;
}

/* Slider Layout */
.blog-over-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    clip-path: inset(0 round 8px);
    contain: layout paint;
}

/* Slider Track - for slide effect */
.blog-over-slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    transition: transform 0.5s ease-in-out;
}

/* Slider Items */
.blog-over-hero-slider .blog-over-hero-item {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    height: 100%;
    min-height: 250px;
    /* Lower min-height for flexibility */
    opacity: 1;
    margin: 0;
    padding: 0;
    transition: opacity 0.5s ease-in-out;
}

/* ────────────────────────────────────────
   FADE EFFECT - Crossfade between slides
   ──────────────────────────────────────── */
.blog-over-hero-slider[data-effect="fade"] .blog-over-slider-track {
    display: block;
    position: relative;
}

.blog-over-hero-slider[data-effect="fade"] .blog-over-hero-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.blog-over-hero-slider[data-effect="fade"] .blog-over-hero-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* ────────────────────────────────────────
   ZOOM EFFECT - Scale + Fade combination
   ──────────────────────────────────────── */
.blog-over-hero-slider[data-effect="zoom"] .blog-over-slider-track {
    display: block;
    position: relative;
}

.blog-over-hero-slider[data-effect="zoom"] .blog-over-hero-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out, transform 0.7s ease-out;
}

.blog-over-hero-slider[data-effect="zoom"] .blog-over-hero-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Navigation Arrows - Show on Hover Only */
.blog-over-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

/* Show arrows on slider hover */
.blog-over-hero-slider:hover .blog-over-slider-arrow {
    opacity: 1;
    visibility: visible;
}

/* Arrow SVG Icon Styling */
.blog-over-slider-arrow svg {
    width: 36px;
    height: 36px;
    display: block;
    fill: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    transition: all 0.2s ease;
}

.blog-over-slider-arrow:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}

.blog-over-slider-arrow:focus {
    outline: none;
    opacity: 1;
    visibility: visible;
}

.blog-over-slider-arrow:active svg {
    transform: scale(0.95);
}

/* Arrow positioning */
.blog-over-slider-prev {
    left: 15px;
}

.blog-over-slider-prev:hover svg {
    transform: scale(1.15) translateX(-2px);
}

.blog-over-slider-next {
    right: 15px;
}

.blog-over-slider-next:hover svg {
    transform: scale(1.15) translateX(2px);
}

/* Dots Navigation - Right Side Vertical */
.blog-over-slider-dots {
    position: absolute;
    right: 15px;
    top: 15%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(2px);
}

.blog-over-slider-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.blog-over-slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
}

.blog-over-slider-dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Grid Layout - Base with fixed height */
.blog-over-hero-grid {
    display: grid;
    gap: 20px;
    height: 620px;
    overflow: hidden;
}

/* ─────────────────────────────────────────────
   SLIDE COUNT LAYOUTS
   ───────────────────────────────────────────── */

/* SLIDE COUNT 2: Two Equal Column Sliders */
.hero-slide-count-2 .blog-over-hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

/* SLIDE COUNT 3: Grid Layout (1 Large + 2 Small) */
.hero-slide-count-3 .blog-over-hero-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.hero-slide-count-3 .blog-over-hero-slot-1 {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.hero-slide-count-3 .blog-over-hero-slot-2,
.hero-slide-count-3 .blog-over-hero-slot-3 {
    grid-column: 2 / 3;
}

/* SLIDE COUNT 4: 1 Large + 3 Small (Magazine Grid) */
.hero-slide-count-4 .blog-over-hero-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.hero-slide-count-4 .blog-over-hero-slot-1 {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.hero-slide-count-4 .blog-over-hero-slot-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.hero-slide-count-4 .blog-over-hero-slot-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.hero-slide-count-4 .blog-over-hero-slot-4 {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

/* SLIDE COUNT 5: 1 Featured + 4 Equal (Full Magazine) */
.hero-slide-count-5 .blog-over-hero-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.hero-slide-count-5 .blog-over-hero-slot-1 {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.hero-slide-count-5 .blog-over-hero-slot-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.hero-slide-count-5 .blog-over-hero-slot-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.hero-slide-count-5 .blog-over-hero-slot-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.hero-slide-count-5 .blog-over-hero-slot-5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}


/* ─────────────────────────────────────────────
   HERO SLOTS - Bulletproof Overflow Clipping
   ───────────────────────────────────────────── */

.blog-over-hero-slot {
    position: relative;
    border-radius: 8px;
    overflow: hidden !important;
    width: 100%;
    height: 100%;
    clip-path: inset(0 round 8px);
}

/* Grid layouts: fixed height slots */
.blog-over-hero-grid .blog-over-hero-slot {
    height: 100%;
}

.blog-over-hero-slot .blog-over-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
}

.blog-over-hero-slot .blog-over-slider-track {
    width: 100%;
    height: 100%;
    display: flex;
}

/* Grid slider items: fill container with fixed height */
.blog-over-hero-grid .blog-over-hero-item {
    position: relative;
    flex-shrink: 0;
    min-width: 100%;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
}

/* Grid slider images: fill container */
.blog-over-hero-grid .blog-over-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Large slot styling */
.blog-over-hero-large .blog-over-hero-title {
    font-size: 28px;
}

/* Small slot styling - compact for grid layouts */
.blog-over-hero-small .blog-over-hero-title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
    /* Flexible line clamping based on available space */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-over-hero-small .blog-over-hero-content {
    padding: 10px 12px;
    /* Flexible content that adjusts to slot height */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


/* When slot is very short, hide some elements */
.blog-over-hero-grid .blog-over-hero-small .blog-over-category-badge .blog-over-cat-item:nth-child(n+2) {
    display: none;
}


.blog-over-hero-small .blog-over-hero-meta span {
    margin-right: 6px;
}

/* Smaller category pills on small sliders */
.blog-over-hero-small .blog-over-category-badge {
    margin-bottom: 6px;
}

.blog-over-hero-small .blog-over-category-badge .blog-over-cat-item {
    font-size: 9px;
    padding: 3px 8px;
}

/* Mini sliders in small slots - smaller dots */
.blog-over-mini-slider .blog-over-slider-dots {
    right: 10px;
    padding: 6px 5px;
}

.blog-over-mini-slider .blog-over-slider-dot {
    width: 6px;
    height: 6px;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE - LARGE TABLETS / SMALL DESKTOPS (1200px)
   ════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .blog-over-hero-grid {
        height: 550px;
    }

    .blog-over-hero-large .blog-over-hero-title {
        font-size: 24px;
    }

    .blog-over-hero-content {
        padding: 18px;
    }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE - TABLETS (992px)
   ════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .blog-over-hero-wrapper {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .blog-over-hero-grid {
        height: 480px;
        gap: 15px;
    }

    /* Slide Count 3: Stack vertically on tablet */
    .hero-slide-count-3 .blog-over-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .hero-slide-count-3 .blog-over-hero-slot-1 {
        grid-row: auto;
        grid-column: auto;
    }

    .hero-slide-count-3 .blog-over-hero-slot {
        height: 280px;
    }

    /* Slide Count 2: Keep columns but reduce height */
    .hero-slide-count-2 .blog-over-hero-grid {
        height: 350px;
    }

    .blog-over-hero-large .blog-over-hero-title {
        font-size: 22px;
    }

    .blog-over-hero-small .blog-over-hero-title {
        font-size: 16px;
    }

    .blog-over-category-badge .blog-over-cat-item {
        font-size: 11px;
        padding: 5px 12px;
    }

    .blog-over-hero-meta {
        font-size: 12px;
    }

    /* Arrows */
    .blog-over-slider-arrow {
        width: 44px;
        height: 44px;
    }

    .blog-over-slider-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE - SMALL TABLETS / LARGE PHONES (768px)
   ════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .blog-over-hero-wrapper {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    /* Override Customizer height on mobile - fixed optimal heights */
    .blog-over-hero-grid {
        display: block;
        height: auto !important;
    }

    /* All slide counts become single column on mobile */
    .hero-slide-count-1 .blog-over-hero-slot,
    .hero-slide-count-2 .blog-over-hero-slot,
    .hero-slide-count-3 .blog-over-hero-slot,
    .hero-slide-count-4 .blog-over-hero-slot,
    .hero-slide-count-5 .blog-over-hero-slot {
        width: 100%;
        height: 300px !important;
        margin-bottom: 15px;
    }

    .hero-slide-count-2 .blog-over-hero-grid,
    .hero-slide-count-3 .blog-over-hero-grid,
    .hero-slide-count-4 .blog-over-hero-grid,
    .hero-slide-count-5 .blog-over-hero-grid {
        grid-template-columns: 1fr;
        height: auto !important;
    }

    /* All slots use large styling on mobile */
    .blog-over-hero-small .blog-over-hero-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .blog-over-hero-small .blog-over-hero-content {
        padding: 15px;
    }

    /* Meta styling for tablets */
    .blog-over-hero-meta {
        font-size: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        color: rgba(255, 255, 255, 0.9);
    }

    .blog-over-hero-meta span {
        margin-right: 0;
        display: inline-flex;
        align-items: center;
    }

    .blog-over-hero-small .blog-over-hero-meta {
        font-size: 11px;
    }

    .blog-over-hero-small .blog-over-category-badge .blog-over-cat-item {
        font-size: 11px;
        padding: 5px 12px;
    }

    .blog-over-hero-large .blog-over-hero-title {
        font-size: 20px;
    }

    .blog-over-hero-content {
        padding: 15px;
    }

    .blog-over-category-badge {
        gap: 6px;
        margin-bottom: 10px;
    }

    .blog-over-category-badge .blog-over-cat-item {
        font-size: 10px;
        padding: 4px 10px;
    }

    /* Smaller arrows on mobile */
    .blog-over-slider-arrow {
        width: 40px;
        height: 40px;
    }

    .blog-over-slider-arrow svg {
        width: 22px;
        height: 22px;
    }

    .blog-over-slider-prev {
        left: 10px;
    }

    .blog-over-slider-next {
        right: 10px;
    }

    /* Smaller dots container on mobile */
    .blog-over-slider-dots {
        right: 10px;
        padding: 5px 4px;
        gap: 5px;
        top: 50%;
        transform: translateY(-50%);
    }

    .blog-over-slider-dot {
        width: 7px;
        height: 7px;
        min-width: 7px;
        min-height: 7px;
    }

    /* Mini slider dots same as main on mobile */
    .blog-over-mini-slider .blog-over-slider-dots {
        padding: 6px 5px;
    }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE PHONES (576px)
   ════════════════════════════════════════════════════════ */

@media (max-width: 576px) {
    .blog-over-hero-wrapper {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    /* Override Customizer height on mobile - fixed optimal heights */
    .hero-slide-count-1 .blog-over-hero-slot,
    .hero-slide-count-2 .blog-over-hero-slot,
    .hero-slide-count-3 .blog-over-hero-slot,
    .hero-slide-count-4 .blog-over-hero-slot,
    .hero-slide-count-5 .blog-over-hero-slot {
        height: 260px !important;
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .blog-over-hero-item {
        border-radius: 6px;
    }

    .blog-over-hero-large .blog-over-hero-title,
    .blog-over-hero-small .blog-over-hero-title {
        font-size: 16px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .blog-over-hero-content {
        padding: 12px;
        max-height: 80%;
    }

    /* Mobile meta styling */
    .blog-over-hero-meta {
        font-size: 11px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        color: rgba(255, 255, 255, 0.85);
        margin-top: 4px;
    }

    .blog-over-hero-meta span {
        margin-right: 0;
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.15);
        padding: 2px 8px;
        border-radius: 3px;
    }

    .blog-over-hero-small .blog-over-hero-meta {
        font-size: 10px;
        gap: 6px;
    }

    .blog-over-hero-small .blog-over-hero-meta span {
        padding: 2px 6px;
    }

    .blog-over-category-badge {
        gap: 5px;
        margin-bottom: 8px;
    }

    .blog-over-category-badge .blog-over-cat-item {
        font-size: 9px;
        padding: 3px 8px;
        border-radius: 2px;
    }

    /* Limit to 1 category pill on mobile */
    .blog-over-category-badge .blog-over-cat-item:nth-child(n+2) {
        display: none;
    }

    /* Hide arrows on very small screens */
    .blog-over-slider-arrow {
        width: 36px;
        height: 36px;
    }

    .blog-over-slider-arrow svg {
        width: 18px;
        height: 18px;
    }

    .blog-over-slider-prev {
        left: 8px;
    }

    .blog-over-slider-next {
        right: 8px;
    }

    /* Dots on right side vertically - smaller for mobile */
    .blog-over-slider-dots {
        right: 8px !important;
        left: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        flex-direction: column !important;
        padding: 4px 3px;
        gap: 4px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 10px;
    }

    .blog-over-slider-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
    }

    .blog-over-mini-slider .blog-over-slider-dots {
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        padding: 2px;
        gap: 2px;
    }

    .blog-over-mini-slider .blog-over-slider-dot {
        width: 3px;
        height: 3px;
    }
}

/* Extra small devices - smallest dots */
@media (max-width: 480px) {
    .blog-over-slider-dots {
        right: 6px !important;
        padding: 3px 2px;
        gap: 3px;
        border-radius: 8px;
    }

    .blog-over-slider-dot {
        width: 5px;
        height: 5px;
        min-width: 5px;
        min-height: 5px;
    }

    /* Compact hero content for very small screens */
    .blog-over-hero-content {
        padding: 10px;
        max-height: 85%;
    }

    .blog-over-hero-title {
        font-size: 14px !important;
        line-height: 1.3;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-over-hero-meta {
        font-size: 10px;
    }

    .blog-over-category-badge {
        gap: 4px;
        margin-bottom: 6px;
    }

    .blog-over-category-badge .blog-over-cat-item {
        font-size: 8px;
        padding: 2px 6px;
    }

    /* Limit to 1 category on very small screens */
    .blog-over-category-badge .blog-over-cat-item:nth-child(n+2) {
        display: none;
    }
}

/* ════════════════════════════════════════════════════════
   Device Visibility Classes
   ════════════════════════════════════════════════════════ */

/* Hide on specific devices */
.blog-over-hero-hide-desktop {
    display: none !important;
}

@media (max-width: 1024px) {
    .blog-over-hero-hide-desktop {
        display: block !important;
    }

    .blog-over-hero-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .blog-over-hero-hide-tablet {
        display: block !important;
    }

    .blog-over-hero-hide-mobile {
        display: none !important;
    }
}