/* ============================================================
   Insights — Canada Metal  (v1.1)
   ============================================================ */
:root {
    --cm-red:        #e21e26;
    --cm-red-dark:   #b8151c;
    --cm-dark:       #1f2228;
    --cm-grey:       #6b7078;
    --cm-border:     #e6e8eb;
    --cm-bg-light:   #f6f7f8;
}

/* ---------- Banner tweak ---------- */
.ins-banner { background-color: var(--cm-dark); min-height: 280px; display: flex; align-items: center; }
.ins-banner .breadcrumb a:hover { color: var(--cm-red) !important; }

/* ---------- Layout ---------- */
.ins-archive-wrap { padding: 70px 0 40px; }
.ins-recent-wrap  { padding: 20px 0 80px; }

.insight-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* ---------- Cards (featured / default) ---------- */
.ins-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

.ins-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.ins-card:hover { box-shadow: 0 14px 34px rgba(31, 34, 40, .12); transform: translateY(-4px); }

.ins-card__img-link { display: block; overflow: hidden; }
.ins-card__img { width: 100%; height: 320px; object-fit: cover; display: block; transition: transform .4s ease; }
.ins-card:hover .ins-card__img { transform: scale(1.04); }
.ins-card__img-placeholder { width: 100%; height: 320px; background: var(--cm-bg-light); }

.ins-card__body { padding: 28px 30px 30px; position: relative; }

/* Date badge */
.ins-card__date { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ins-card__date-row { display: flex; align-items: baseline; gap: 5px; }
.ins-card__day { font-size: 26px; font-weight: 700; color: var(--cm-red); line-height: 1; }
.ins-card__month { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--cm-grey); }
.ins-card__date-line { flex: 1; height: 1px; background: var(--cm-border); }

.ins-card__title { font-size: 22px; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }
.ins-card__title a { color: var(--cm-dark); text-decoration: none; transition: color .25s ease; }
.ins-card__title a:hover { color: var(--cm-red); }

.ins-card__excerpt { font-size: 15px; color: var(--cm-grey); line-height: 1.7; margin: 0 0 18px; }

.ins-card__readmore {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--cm-dark); text-decoration: none;
    padding-bottom: 3px; border-bottom: 2px solid var(--cm-red);
    transition: color .25s ease, gap .25s ease;
}
.ins-card__readmore:hover { color: var(--cm-red); gap: 12px; }

/* ---------- Popular section: 4 across ---------- */
.ins-recent-wrap .ins-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ins-recent-wrap .ins-card__img,
.ins-recent-wrap .ins-card__img-placeholder { height: 200px; }
.ins-recent-wrap .ins-card__body { padding: 20px 20px 22px; }
.ins-recent-wrap .ins-card__day { font-size: 22px; }
.ins-recent-wrap .ins-card__title { font-size: 17px; }
.ins-recent-wrap .ins-card__excerpt { font-size: 14px; margin-bottom: 14px; }
.ins-recent-wrap .ins-card__readmore { font-size: 12px; }

.insight-sidebar-box2 > h2 {
    font-size: 30px; font-weight: 600; color: var(--cm-dark);
    margin: 0 0 30px; padding-left: 16px; border-left: 4px solid var(--cm-red);
}

/* ---------- Sidebar ---------- */
.insight-single-sidebar { position: sticky; top: 110px; }

.insight-sidebar-box {
    background: var(--cm-bg-light);
    border: 1px solid var(--cm-border);
    border-radius: 6px;
    padding: 26px 26px 22px;
    margin-bottom: 30px;
}
.insight-sidebar-box__title {
    font-size: 18px; font-weight: 700; color: var(--cm-dark);
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid var(--cm-red);
}

/* Recent list */
.insight-recent-list { list-style: none; margin: 0; padding: 0; }
.insight-recent-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--cm-border); }
.insight-recent-item:last-child { border-bottom: 0; }
.insight-recent-item__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
.insight-recent-item__info { flex: 1; min-width: 0; }
.insight-recent-item__title {
    display: block; font-size: 14px; font-weight: 600; line-height: 1.45;
    color: var(--cm-dark); text-decoration: none; margin-bottom: 5px;
    transition: color .25s ease;
}
.insight-recent-item__title:hover { color: var(--cm-red); }
.insight-recent-item__date { font-size: 12px; color: var(--cm-grey); }

/* ---------- ToC ---------- */
.insight-toc-list { list-style: none; margin: 0; padding: 0; }
.insight-toc-item { margin: 0; }
.insight-toc-item--sub { padding-left: 18px; }
.insight-toc-link {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 14px; line-height: 1.5; padding: 7px 0;
    color: var(--cm-grey); text-decoration: none;
    transition: color .25s ease;
}
.insight-toc-link i { color: var(--cm-red); font-size: 12px; }
.insight-toc-link:hover, .insight-toc-link.is-active { color: var(--cm-red); font-weight: 600; }

/* ---------- Single post ---------- */
.insight-single-section { padding: 70px 0 80px; }

.insight-single-cover { border-radius: 6px; overflow: hidden; margin-bottom: 24px; }
.insight-single-cover__img { width: 100%; height: auto; display: block; }

.insight-single-meta {
    display: flex; flex-wrap: wrap; gap: 22px;
    font-size: 14px; color: var(--cm-grey);
    padding: 14px 0; margin-bottom: 28px;
    border-top: 1px solid var(--cm-border);
    border-bottom: 1px solid var(--cm-border);
}
.insight-single-meta i { color: var(--cm-red); margin-right: 6px; }

.insight-single-body { font-size: 16px; line-height: 1.8; color: #3a3f47; }
.insight-single-body h2 { font-size: 28px; font-weight: 600; color: var(--cm-dark); margin: 38px 0 16px; scroll-margin-top: 120px; }
.insight-single-body h3 { font-size: 22px; font-weight: 600; color: var(--cm-dark); margin: 30px 0 14px; scroll-margin-top: 120px; }
.insight-single-body a { color: var(--cm-red); }
.insight-single-body a:hover { color: var(--cm-red-dark); }
.insight-single-body img { max-width: 100%; height: auto; border-radius: 6px; }
.insight-single-body blockquote {
    border-left: 4px solid var(--cm-red);
    background: var(--cm-bg-light);
    padding: 18px 24px; margin: 24px 0; font-style: italic;
}
.insight-single-body ul, .insight-single-body ol { padding-left: 24px; margin-bottom: 20px; }
.insight-single-body li { margin-bottom: 8px; }

.insight-single-share { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--cm-border); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ins-recent-wrap .ins-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .insight-single-layout { grid-template-columns: 1fr; }
    .insight-single-sidebar { position: static; }
    .ins-card__img { height: 260px; }
}
@media (max-width: 575px) {
    .ins-archive-wrap { padding: 50px 0 30px; }
    .insight-single-section { padding: 50px 0 60px; }
    .ins-card__body { padding: 22px 20px 24px; }
    .ins-card__title { font-size: 19px; }
    .insight-sidebar-box2 > h2 { font-size: 24px; }
    .ins-recent-wrap .ins-grid { grid-template-columns: 1fr; }
}

.insight-toc-list {
	  max-height: calc(100vh - 300px);
    overflow-y: auto;
    scrollbar-width: thin;
}