/* =========================================
   You Missed Section
   ========================================= */
.blog-over-missed-wrapper {
    margin-bottom: 40px;
    margin-top: 40px;
    padding: 40px 0;
    background: var(--blog-over-bg-body, #f9fafb);
    border-top: 1px solid var(--blog-over-border-color, #e5e7eb);
}

.blog-over-section-heading-wrap {
    margin-bottom: 25px;
    display: inline-block;
}

.blog-over-section-heading {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    color: var(--blog-over-heading-color, #111827);
    position: relative;
}

.blog-over-section-heading::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--blog-over-primary, #3b82f6), var(--blog-over-secondary, #1e40af));
    margin-top: 12px;
    border-radius: 2px;
}

/* ─────────────────────────────────────────────
   Grid Layout - Dynamic Columns
   ───────────────────────────────────────────── */
.blog-over-missed-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
}

.blog-over-missed-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-over-missed-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-over-missed-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ─────────────────────────────────────────────
   Card Base Styles (Default Layout)
   ───────────────────────────────────────────── */
.blog-over-missed-item {
    background: var(--blog-over-bg-card, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--blog-over-shadow-card, 0 2px 15px rgba(0, 0, 0, 0.06));
    transition: all 0.3s ease;
    position: relative;
}

.blog-over-missed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.blog-over-missed-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background-color: var(--blog-over-bg-input, #f3f4f6);
}

.blog-over-missed-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-over-missed-item:hover .blog-over-missed-thumb::before {
    opacity: 1;
}

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

.blog-over-missed-thumb .blog-over-category-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    border-radius: 0 8px 0 12px;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 12px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Category Badge - Modern Style (matching blog-over-modern-category) */
.blog-over-missed-category {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-over-missed-category a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: var(--blog-over-secondary, #1e40af);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-over-missed-category a:hover {
    background: var(--blog-over-primary, #3b82f6);
    color: #fff;
    transform: translateY(-2px);
}

/* Title */
.blog-over-missed-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.blog-over-missed-title a {
    color: var(--blog-over-card-title, #111827);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Meta Elements - Blog Settings Style */
.blog-over-missed-meta {
    font-size: 13px;
    color: var(--blog-over-meta-color, #6b7280);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.blog-over-missed-meta>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-over-missed-meta i {
    font-size: 12px;
    color: var(--blog-over-meta-icon, #9ca3af);
}

.blog-over-missed-meta a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.blog-over-missed-meta .blog-over-date a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ─────────────────────────────────────────────
   Default Layout (Metis Line Slide Effect)
   ───────────────────────────────────────────── */
.blog-over-missed-default .blog-over-missed-item {
    background: var(--blog-over-bg-card, #ffffff);
    border: 1px solid var(--blog-over-border-color, #e5e7eb);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Metis line slide - bottom border animation */
.blog-over-missed-default .blog-over-missed-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--blog-over-primary, #3b82f6);
    transform-origin: 100% 50%;
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 5;
}

.blog-over-missed-default .blog-over-missed-item:hover::after {
    transform-origin: 0% 50%;
    transform: scaleX(1);
}

.blog-over-missed-default .blog-over-missed-item:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.blog-over-missed-default .blog-over-missed-content {
    position: relative;
}

.blog-over-missed-default .blog-over-missed-thumb {
    position: relative;
    overflow: hidden;
}

/* ─────────────────────────────────────────────
   Modern Layout (Cards with border + Shine Effect)
   ───────────────────────────────────────────── */
.blog-over-missed-modern .blog-over-missed-item {
    border: 1px solid var(--blog-over-border-color, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Shine Effect - Image Only */
.blog-over-missed-modern .blog-over-missed-thumb {
    position: relative;
    overflow: hidden;
}

.blog-over-missed-modern .blog-over-missed-thumb::before {
    position: absolute;
    top: 0;
    left: -85%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}

.blog-over-missed-modern .blog-over-missed-item:hover .blog-over-missed-thumb::before {
    animation: shine 0.75s;
}

@keyframes shine {
    0% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 1;
    }
}

.blog-over-missed-modern .blog-over-missed-item:hover {
    border-color: var(--blog-over-primary, #3b82f6);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.blog-over-missed-modern .blog-over-missed-thumb {
    border-radius: 0;
}

.blog-over-missed-modern .blog-over-missed-meta {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--blog-over-border-light, #f3f4f6);
}

/* Modern layout category inherits base category styling (secondary color) */

/* ─────────────────────────────────────────────
   Overlay Layout (Glass Effect - Fixed)
   ───────────────────────────────────────────── */
.blog-over-missed-overlay .blog-over-missed-item {
    background: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
    position: relative;
}

.blog-over-missed-overlay .blog-over-missed-thumb {
    border-radius: 12px;
    position: relative;
}

.blog-over-missed-overlay .blog-over-missed-thumb::before {
    opacity: 1;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.1) 100%);
}

.blog-over-missed-overlay .blog-over-missed-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 9px;
    z-index: 3;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

.blog-over-missed-overlay .blog-over-missed-category {
    margin-bottom: 8px;
}

.blog-over-missed-overlay .blog-over-missed-category a {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.blog-over-missed-overlay .blog-over-missed-category a:hover {
    background: var(--blog-over-primary, #3b82f6);
    color: #fff;
    border-color: transparent;
}

.blog-over-missed-overlay .blog-over-missed-title {
    margin-bottom: 8px;
}

.blog-over-missed-overlay .blog-over-missed-title a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.blog-over-missed-overlay .blog-over-missed-title a:hover {
    color: #93c5fd;
}

.blog-over-missed-overlay .blog-over-missed-meta {
    color: rgba(255, 255, 255, 0.85);
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.blog-over-missed-overlay .blog-over-missed-meta i {
    color: rgba(255, 255, 255, 0.7);
}

.blog-over-missed-overlay .blog-over-missed-meta a {
    color: rgba(255, 255, 255, 0.85);
}

.blog-over-missed-overlay .blog-over-missed-meta a:hover {
    color: #fff;
}

/* ─────────────────────────────────────────────
   Responsive Styles
   ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .blog-over-missed-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {

    .blog-over-missed-grid,
    .blog-over-missed-cols-3,
    .blog-over-missed-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-over-missed-overlay .blog-over-missed-thumb {
        height: 200px;
    }
}

@media (max-width: 576px) {

    .blog-over-missed-grid,
    .blog-over-missed-cols-2,
    .blog-over-missed-cols-3,
    .blog-over-missed-cols-4 {
        grid-template-columns: 1fr;
    }

    .blog-over-missed-thumb {
        height: 160px;
    }

    .blog-over-missed-overlay .blog-over-missed-thumb {
        height: 180px;
    }

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

/* ─────────────────────────────────────────────
   Dark Mode Support
   Now handled primarily via CSS variables in color-variables.css
   These overrides ensure proper fallback styling
   ───────────────────────────────────────────── */
body.blog-over-dark-mode .blog-over-missed-wrapper {
    background: var(--blog-over-bg-body);
    border-top-color: var(--blog-over-border-color);
}

body.blog-over-dark-mode .blog-over-section-heading {
    color: var(--blog-over-heading-color);
}

body.blog-over-dark-mode .blog-over-missed-item {
    background: var(--blog-over-bg-card);
    box-shadow: var(--blog-over-shadow-card);
}

body.blog-over-dark-mode .blog-over-missed-item:hover {
    box-shadow: var(--blog-over-shadow-lg);
}

body.blog-over-dark-mode .blog-over-missed-thumb {
    background-color: var(--blog-over-bg-input);
}

body.blog-over-dark-mode .blog-over-missed-title a {
    color: var(--blog-over-card-title);
}

body.blog-over-dark-mode .blog-over-missed-title a:hover {
    color: var(--blog-over-primary);
}

body.blog-over-dark-mode .blog-over-missed-meta {
    color: var(--blog-over-meta-color);
}

body.blog-over-dark-mode .blog-over-missed-meta i {
    color: var(--blog-over-meta-icon);
}

body.blog-over-dark-mode .blog-over-missed-meta a {
    color: var(--blog-over-meta-link);
}

body.blog-over-dark-mode .blog-over-missed-meta a:hover {
    color: var(--blog-over-primary);
}

body.blog-over-dark-mode .blog-over-missed-default .blog-over-missed-item,
body.blog-over-dark-mode .blog-over-missed-modern .blog-over-missed-item {
    border-color: var(--blog-over-border-color);
}

body.blog-over-dark-mode .blog-over-missed-modern .blog-over-missed-meta {
    border-top-color: var(--blog-over-border-color);
}

        /* ─────────────────────────────────────────
   SMALL MOBILE (480px)
   ───────────────────────────────────────── */
        @media (max-width: 480px) {
            .blog-over-missed-wrapper {
                margin-top: 25px;
                margin-bottom: 25px;
                padding: 25px 0;
            }

            .blog-over-section-heading-wrap {
                margin-bottom: 18px;
                padding-right: 15px;
            }

            .blog-over-section-heading {
                font-size: 16px;
            }

            .blog-over-missed-grid {
                gap: 15px;
            }

            .blog-over-missed-thumb {
                height: 140px;
            }

            .blog-over-missed-content {
                padding: 12px;
            }

            .blog-over-missed-title {
                font-size: 14px;
                margin-bottom: 8px;
            }

            .blog-over-missed-meta {
                font-size: 12px;
                gap: 8px;
            }

            .blog-over-missed-category a {
                font-size: 0.6rem;
                padding: 4px 7px;
            }

            /* Overlay layout */
            .blog-over-missed-overlay .blog-over-missed-thumb {
                height: 160px;
            }

            .blog-over-missed-overlay .blog-over-missed-content {
                padding: 8px;
            }

            .blog-over-missed-overlay .blog-over-missed-title {
                font-size: 13px;
            }
        }