/* =========================================
   Work Mega Menu
   ========================================= */

.mega-menu-file-work-menu.dropdown { position: static; }
.footer .mega-menu-file-work-menu .sub-menu { display: none; }

/* ---- Top bar ---- */
.wm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px;
    border-bottom: 1px solid #ebebeb;
    background: #fafafa;
}

.wm-topbar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #999;
}

.wm-topbar-desc {
    font-size: 12.5px;
    color: #555;
    margin-top: 1px;
}

.wm-view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--bs-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: gap .2s;
}

.wm-view-all:hover { gap: 9px; color: var(--bs-primary); }

/* ---- 2-column grid ---- */
.wm-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left column: 2 stacked cards / Right column: 1 card */
.wm-col {
    display: flex;
    flex-direction: column;
}

.wm-col + .wm-col {
    border-left: 1px solid #ebebeb;
}

/* ---- Horizontal card ---- */
.wm-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    transition: background .15s;
    flex: 1; /* so single card in right col fills height */
}

.wm-col:first-child .wm-card {
    border-bottom: 1px solid #ebebeb;
}

.wm-col:first-child .wm-card:last-child {
    border-bottom: 0;
}

.wm-card:hover { background: #f5f7ff; }

/* ---- Thumbnail ---- */
.wm-thumb {
    width: 88px;
    height: 62px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

/* ---- Text ---- */
.wm-body {
    flex: 1;
    min-width: 0;
}

.wm-card-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.wm-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.wm-desc {
    font-size: 11.5px;
    color: #666;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Badge ---- */
.wm-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 2px 8px;
    border-radius: 20px;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.wm-badge--classic  { background: #2563eb; }
.wm-badge--ai       { background: var(--bs-primary, #f5820f); }
.wm-badge--template { background: #7c3aed; }

/* ---- Arrow ---- */
.wm-arrow {
    font-size: 11px;
    color: #ccc;
    flex-shrink: 0;
    transition: transform .2s, color .2s;
}

.wm-card:hover .wm-arrow {
    transform: translateX(3px);
    color: var(--bs-primary);
}

/* ---- Mobile: single column ---- */
@media (max-width: 991px) {
    .wm-cols {
        grid-template-columns: 1fr;
    }

    .wm-col + .wm-col { border-left: 0; }

    .wm-col:first-child .wm-card,
    .wm-col .wm-card {
        border-bottom: 1px solid #ebebeb;
    }

    .wm-topbar-desc { display: none; }
}
