/* ===================================================
   JOIN ME latest - compact clean table style
   =================================================== */

.jm-wrap {
    background: #fff;
    border: 1px solid #e4edf7;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 42, 80, 0.055);
    padding: 18px 22px 14px;
    overflow: hidden;
}

/* Header */
.jm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.jm-title-area {
    display: flex;
    align-items: center;
    min-width: 0;
}

.jm-title h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 26px;
    font-weight: 900;
    color: #101b34;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.jm-title .highlight {
    font-size: 16px;
    font-weight: 800;
    color: #101b34;
    letter-spacing: -0.2px;
}

.jm-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 104px;
    padding: 0 18px;
    border-radius: 10px;
    background: #0e1f3f;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Tabs */
.jm-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.jm-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #dce6f2;
    border-radius: 999px;
    background: #fff;
    color: #5a6a82;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.jm-tabs a.active {
    background: #0e1f3f;
    border-color: #0e1f3f;
    color: #fff;
}

/* List */
.jm-list {
    width: 100%;
}

.jm-list-head,
.jm-row {
    display: grid;
    grid-template-columns: 13% 30% 17% 18% 11% 11%;
    align-items: center;
    column-gap: 0;
}

.jm-list-head {
    height: 42px;
    background: #f6f9fd;
    border-radius: 8px;
    margin-bottom: 4px;
}

.jm-list-head div {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.jm-row {
    min-height: 42px;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
    transition: background-color .15s ease;
}

.jm-row:hover {
    background: #fbfdff;
}

.jm-col {
    padding: 0 8px;
    min-width: 0;
    text-align: center;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.jm-col-title {
    text-align: left;
}

.jm-subj-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jm-col-loc,
.jm-col-date,
.jm-col-host,
.jm-col-time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category badge */
.jm-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    max-width: 120px;
    height: 24px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

/* only 4 categories */
.jm-badge-today {
    color: #f97316;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.jm-badge-weekend {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
}

.jm-badge-lang {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.jm-badge-tag {
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.jm-badge-default {
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* New icon */
.jm-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 4px;
    border-radius: 4px;
    background: #ff3b70;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    vertical-align: middle;
}

/* Empty */
.jm-no-posts,
.jm-empty-msg {
    display: none;
    padding: 26px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

.jm-list-body .jm-no-posts {
    display: block;
}

/* More */
.jm-more {
    display: block;
    padding-top: 10px;
    text-align: center;
    color: #44546c;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.jm-more:hover {
    color: #0e1f3f;
}

/* Responsive */
@media (max-width: 768px) {
    .jm-wrap {
        padding: 15px 14px 12px;
    }

    .jm-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .jm-btn-write {
        width: 100%;
    }

    .jm-title h2 {
        font-size: 23px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .jm-title .highlight {
        font-size: 14px;
    }

    .jm-list {
        overflow-x: auto;
    }

    .jm-list-head,
    .jm-row {
        min-width: 760px;
    }
}
/* ===================================================
   JOIN ME tabs - category colors
   =================================================== */

.jm-tabs a {
    border-width: 1px !important;
}

/* ALL POSTS */
.jm-tabs a.t-all {
    color: #0e1f3f !important;
    background: #f8fafc !important;
    border-color: #dbe4f0 !important;
}

.jm-tabs a.t-all.active,
.jm-tabs a.t-all:hover {
    color: #ffffff !important;
    background: #0e1f3f !important;
    border-color: #0e1f3f !important;
}

/* TODAY */
.jm-tabs a.t-today {
    color: #f97316 !important;
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}

.jm-tabs a.t-today.active,
.jm-tabs a.t-today:hover {
    color: #ffffff !important;
    background: #f97316 !important;
    border-color: #f97316 !important;
}

/* WEEKEND */
.jm-tabs a.t-weekend {
    color: #475569 !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.jm-tabs a.t-weekend.active,
.jm-tabs a.t-weekend:hover {
    color: #ffffff !important;
    background: #475569 !important;
    border-color: #475569 !important;
}

/* LANGUAGE EXCHANGE */
.jm-tabs a.t-lang {
    color: #16a34a !important;
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.jm-tabs a.t-lang.active,
.jm-tabs a.t-lang:hover {
    color: #ffffff !important;
    background: #16a34a !important;
    border-color: #16a34a !important;
}

/* TAG ALONG */
.jm-tabs a.t-tag {
    color: #2563eb !important;
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.jm-tabs a.t-tag.active,
.jm-tabs a.t-tag:hover {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
}
/* Category badges - same color system as tabs */

.jm-badge-today {
    color: #f97316 !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
}

.jm-badge-weekend {
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

.jm-badge-lang {
    color: #16a34a !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

.jm-badge-tag {
    color: #2563eb !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

.jm-badge-default {
    color: #0e1f3f !important;
    background: #f8fafc !important;
    border: 1px solid #dbe4f0 !important;
}