/* === COMMON WRAPPER === */
.mt-related {
    margin: 32px 0;
    padding: 24px;
    background: var(--mt-bg, #f8fafc);
    border-radius: 12px;
}

/* === BORDER-LEFT (default) === */
.mt-related--border-left { border-left: 4px solid var(--mt-accent, #6366f1); }
.mt-related--border-left .mt-related-title {
    font-size: 15px; font-weight: 700; margin: 0 0 20px;
    color: #1e293b; text-transform: uppercase; letter-spacing: .5px;
}
.mt-related--border-left .mt-related-list { display: flex; flex-direction: column; gap: 16px; }
.mt-related--border-left a {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none; color: inherit;
    padding: 8px; margin: -8px; border-radius: 8px;
    transition: background .15s;
}
.mt-related--border-left a:hover { background: rgba(99,102,241,.05); }
.mt-related--border-left .mt-thumb {
    width: 60px; height: 60px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: #e2e8f0;
}
.mt-related--border-left .mt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-related--border-left h4 {
    font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* === GRID === */
.mt-related--grid { border: 1px solid #e2e8f0; background: var(--mt-bg, #f8fafc); }
.mt-related--grid .mt-related-title {
    font-size: 13px; font-weight: 600; color: var(--mt-accent, #6366f1);
    text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px;
}
.mt-related-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt-related-grid-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08); text-decoration: none; color: inherit;
    transition: box-shadow .2s;
}
.mt-related-grid-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.mt-related-grid-img { height: 100px; overflow: hidden; background: #e2e8f0; }
.mt-related-grid-img img { width: 100%; height: 100%; object-fit: cover; }
.mt-related-grid-body { padding: 12px; }
.mt-related-grid-cat { font-size: 10px; font-weight: 600; color: var(--mt-accent, #6366f1); text-transform: uppercase; }
.mt-related-grid-body h4 {
    font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; margin: 4px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* === MINIMAL-LIST === */
.mt-related--minimal { background: var(--mt-bg, #f8fafc); }
.mt-related--minimal .mt-related-title {
    font-size: 12px; font-weight: 600; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px;
}
.mt-related-minimal-list { display: flex; flex-direction: column; }
.mt-related-minimal-item {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: inherit;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}
.mt-related-minimal-item:last-child { border-bottom: none; }
.mt-related-minimal-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(99,102,241,.1); color: var(--mt-accent, #6366f1);
    font-size: 12px; font-weight: 600; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.mt-related-minimal-item h4 {
    font-size: 14px; font-weight: 500; color: #1e293b; line-height: 1.4; margin: 0;
}

/* === CARDS (2x2) === */
.mt-related--cards { background: var(--mt-bg, #f8fafc); border-radius: 12px; }
.mt-related--cards .mt-related-title {
    font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 16px;
}
.mt-related-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mt-related-cards-item {
    display: flex; gap: 12px; padding: 10px; background: #fff;
    border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
    text-decoration: none; color: inherit; transition: box-shadow .2s;
}
.mt-related-cards-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.mt-related-cards-thumb {
    width: 70px; height: 70px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: #e2e8f0;
}
.mt-related-cards-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-related-cards-body { min-width: 0; }
.mt-related-cards-cat {
    font-size: 11px; font-weight: 500; color: var(--mt-accent, #6366f1);
    display: block; margin-bottom: 2px;
}
.mt-related-cards-body h4 {
    font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* === SPOTLIGHT === */
.mt-related--spotlight { border: 1px solid #e2e8f0; background: var(--mt-bg, #f8fafc); }
.mt-related--spotlight .mt-related-title {
    font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 16px;
}
.mt-related-spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mt-related-spotlight-featured {
    text-decoration: none; color: inherit;
}
.mt-related-spotlight-img {
    height: 160px; border-radius: 8px; overflow: hidden; background: #e2e8f0; margin-bottom: 10px;
}
.mt-related-spotlight-img img { width: 100%; height: 100%; object-fit: cover; }
.mt-related-spotlight-cat {
    font-size: 11px; font-weight: 600; color: var(--mt-accent, #6366f1);
    text-transform: uppercase; display: block; margin-bottom: 4px;
}
.mt-related-spotlight-featured h4 {
    font-size: 16px; font-weight: 600; color: #1e293b; line-height: 1.3; margin: 0;
}
.mt-related-spotlight-list { display: flex; flex-direction: column; gap: 12px; }
.mt-related-spotlight-item {
    display: flex; gap: 10px; align-items: center;
    text-decoration: none; color: inherit;
}
.mt-related-spotlight-thumb {
    width: 50px; height: 50px; border-radius: 6px;
    overflow: hidden; flex-shrink: 0; background: #e2e8f0;
}
.mt-related-spotlight-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-related-spotlight-item h4 {
    font-size: 13px; font-weight: 500; color: #1e293b; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* === END GRID === */
.mt-related-end {
    margin-top: 64px; padding-top: 48px; border-top: 1px solid #e2e8f0;
}
.mt-related-end-title {
    font-size: 22px; font-weight: 700; color: #1e293b; margin: 0 0 24px;
}
.mt-related-end-grid { display: grid; gap: 24px; }
.mt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mt-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mt-card {
    text-decoration: none; color: inherit;
    border-radius: 8px; overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow .2s, transform .2s;
}
.mt-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-2px); }
.mt-card-image { height: 180px; overflow: hidden; background: #f1f5f9; }
.mt-card-image img { width: 100%; height: 100%; object-fit: cover; }
.mt-card-body { padding: 16px; }
.mt-card-category {
    font-size: 11px; font-weight: 600; color: #6366f1;
    text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 6px;
}
.mt-card-title { font-size: 16px; font-weight: 600; color: #1e293b; line-height: 1.4; margin: 0 0 8px; }
.mt-card-meta { font-size: 12px; color: #94a3b8; }

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .mt-related-grid-inner { grid-template-columns: 1fr; }
    .mt-related-cards-grid { grid-template-columns: 1fr; }
    .mt-related-spotlight-grid { grid-template-columns: 1fr; }
    .mt-related-end-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .mt-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
