/* ==========================================================================
   IDCM blog post styles — matched to the eduhive theme
   Scoped under .idcm-post so nothing collides with the site's own CSS.
   Palette and font mirror myidcm.com (eduhive.css).
   ========================================================================== */

.idcm-post {
  --base: #283b8f;
  --base-grad1: #2f3fa0;
  --base-grad2: #20306f;
  --primary: #EF802E;
  --primary-deep: #d96b18;
  --secondary: #00a69c;
  --text: #7B7980;
  --ink: #20104B;
  --line: #DBD8E6;
  --card: #FFFFFF;
  --surface: #EDEAF4;
  --surface2: #F7F5FC;
  --paper: #FFFFFF;

  box-sizing: border-box;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 22px 60px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
  background: var(--paper);
}

.idcm-post *, .idcm-post *::before, .idcm-post *::after { box-sizing: border-box; }

.idcm-post h1, .idcm-post h2, .idcm-post h3, .idcm-post h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.idcm-post h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  margin: 10px 0 18px;
}
.idcm-post h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  scroll-margin-top: 24px;
}
.idcm-post h3 { font-size: 21px; font-weight: 700; margin: 24px 0 6px; }
.idcm-post p { margin: 0 0 15px; max-width: 74ch; }
.idcm-post a { color: var(--base); text-decoration: none; transition: all 300ms ease; }
.idcm-post a:hover { color: var(--primary); }
.idcm-post section { margin: 36px 0; scroll-margin-top: 24px; }

.idcm-post .ic { width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Quick Answer ---- */
.idcm-post .qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0px 4px 60px rgba(30, 21, 75, 0.06);
}
.idcm-post .qa-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 8px;
}
.idcm-post .qa h2 { font-size: 24px; margin: 0 0 10px; }
.idcm-post .qa p { max-width: 82ch; }

.idcm-post .compare { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.idcm-post .compare .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--base);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px;
}
.idcm-post .compare .tag svg { width: 15px; height: 15px; color: var(--secondary); }

.idcm-post .who { margin-top: 18px; }
.idcm-post .who h3 { font-size: 16px; margin: 0 0 10px; }
.idcm-post .who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.idcm-post .who-card {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.idcm-post .who-card .ic {
  flex: none; width: 36px; height: 36px; color: var(--base);
  background: var(--surface); border-radius: 10px; padding: 8px;
}

/* ---- Table of contents ---- */
.idcm-post .toc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 26px;
  box-shadow: 0px 4px 60px rgba(30, 21, 75, 0.05);
}
.idcm-post .toc h2 { font-size: 19px; margin: 0 0 12px; }
.idcm-post .toc ol { margin: 0; padding-left: 20px; }
.idcm-post .toc > ol { columns: 2; column-gap: 34px; }
.idcm-post .toc li { margin-bottom: 7px; break-inside: avoid; }
.idcm-post .toc ol ol { columns: 1; margin: 6px 0 2px; padding-left: 18px; font-size: 15px; }

/* ---- Stats + chart ---- */
.idcm-post .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 20px; }
.idcm-post .stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: 0px 4px 60px rgba(30, 21, 75, 0.05);
}
.idcm-post .stat .big { font-size: 30px; font-weight: 800; color: var(--base); line-height: 1; }
.idcm-post .stat .lab { font-size: 13.5px; color: var(--text); margin-top: 8px; }

.idcm-post .statchart {
  display: flex; align-items: flex-end; justify-content: space-around; gap: 20px;
  height: 310px; padding: 44px 14px 0;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
}
.idcm-post .bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; max-width: 150px; }
.idcm-post .bar .val { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; white-space: nowrap; }
.idcm-post .bar .col { width: 66%; max-width: 88px; background: linear-gradient(180deg, var(--base-grad1), var(--base-grad2)); border-radius: 8px 8px 0 0; }
.idcm-post .bar.proj .col { background: linear-gradient(180deg, var(--primary), var(--primary-deep)); }
.idcm-post .bar .yr { margin-top: 10px; font-size: 13px; color: var(--text); text-align: center; }
.idcm-post .statsrc { font-size: 12.5px; color: var(--text); margin: 10px 2px 0; }

/* ---- Skills / careers infographic ---- */
.idcm-post .infogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 4px; }
.idcm-post .infocard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 12px; text-align: center;
  box-shadow: 0px 4px 60px rgba(30, 21, 75, 0.04);
}
.idcm-post .infocard .ic { width: 28px; height: 28px; color: var(--base); margin-bottom: 8px; }
.idcm-post .infocard .t { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }

/* ---- Tools showcase ---- */
.idcm-post .toolgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0 2px; }
.idcm-post .toolcat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.idcm-post .toolcat h4 { font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--base); margin: 0 0 10px; font-weight: 700; }
.idcm-post .toolchips { display: flex; flex-wrap: wrap; gap: 8px; }
.idcm-post .tool {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px 4px 4px;
}
.idcm-post .tool .mono {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--c, #283b8f); flex: none;
}
.idcm-post .tool .mono.dk { color: #1a1205; }

/* ---- Legend ---- */
.idcm-post .legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--text); margin: 12px 0 14px; }
.idcm-post .legend span { display: inline-flex; align-items: center; gap: 7px; }
.idcm-post .pip { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.idcm-post .pip.v { background: var(--secondary); }
.idcm-post .pip.u { background: var(--primary); }
.idcm-post .u-text { color: var(--primary-deep); font-style: italic; }

/* ---- Comparison table ---- */
.idcm-post .tablescroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.idcm-post table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.idcm-post caption { text-align: left; padding: 12px 16px 0; font-size: 12.5px; color: var(--text); caption-side: bottom; }
.idcm-post th, .idcm-post td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.idcm-post thead th { background: var(--surface); font-weight: 700; color: var(--ink); position: sticky; top: 0; font-size: 13px; }
.idcm-post tbody tr:last-child td { border-bottom: none; }
.idcm-post tbody tr:nth-child(1) { background: rgba(40, 59, 143, 0.06); }
.idcm-post td.name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.idcm-post .mark { font-weight: 700; color: var(--secondary); }

/* ---- Institute blocks ---- */
.idcm-post .inst { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.idcm-post .inst .rank { color: var(--base); font-weight: 800; font-size: 15px; }
.idcm-post .inst h3 { margin: 2px 0 4px; font-size: 23px; }
.idcm-post .place { font-size: 13px; color: var(--text); margin: 0 0 8px; }
.idcm-post .ratebadge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; margin: 0 0 10px;
}
.idcm-post .ratebadge .s { color: var(--primary); }
.idcm-post .ratebadge .ct { color: var(--text); font-weight: 500; }

.idcm-post .hl { margin: 10px 0 0; padding-left: 0; list-style: none; }
.idcm-post .hl li { position: relative; padding-left: 26px; margin-bottom: 7px; max-width: 74ch; }
.idcm-post .hl li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--secondary); font-weight: 700; }
.idcm-post .hl li.star::before { content: "\2605"; color: var(--primary); }

/* ---- Course cards ---- */
.idcm-post .courses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 4px; }
.idcm-post .ccard {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--card); display: flex; flex-direction: column;
  box-shadow: 0px 4px 60px rgba(30, 21, 75, 0.06);
}
.idcm-post .ccard.flag { border: 1.5px solid var(--base); }
.idcm-post .ccard .cap {
  margin: 0;
  background: linear-gradient(135deg, var(--base-grad1), var(--base-grad2));
  color: #fff; padding: 16px 18px; font-weight: 700; font-size: 16px; line-height: 1.3;
}
.idcm-post .ccard .body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.idcm-post .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.idcm-post .chip { font-size: 11.5px; font-weight: 700; color: var(--base); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.idcm-post .chip.paid { color: #fff; background: var(--primary); border-color: var(--primary); }
.idcm-post .ccard .lbl { font-size: 11px; letter-spacing: 0.14em; color: var(--base); font-weight: 700; margin: 0 0 6px; }
.idcm-post .ccard .body p { margin: 0; font-size: 14px; color: var(--text); }
.idcm-post .ccard .clink { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--base); align-self: flex-start; }
.idcm-post .ccard .clink:hover { color: var(--primary); }

/* ---- Paid internship USP ---- */
.idcm-post .usp {
  margin-top: 16px; border-radius: 20px; padding: 24px 26px; color: #fff;
  background: linear-gradient(135deg, var(--base-grad1), var(--base-grad2));
}
.idcm-post .usp h3 { color: #fff; margin: 0 0 6px; font-size: 20px; }
.idcm-post .usp p { color: #dfe4f6; margin: 0; max-width: 70ch; }

/* ---- Review cards ---- */
.idcm-post .rev-h { font-weight: 700; font-size: 17px; color: var(--ink); margin: 22px 0 2px; }
.idcm-post .reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 12px 0 2px; }
.idcm-post .rev {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; display: flex; flex-direction: column;
  box-shadow: 0px 4px 60px rgba(30, 21, 75, 0.04);
}
.idcm-post .stars { color: var(--primary); font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }
.idcm-post .rev q { font-size: 13.5px; color: var(--ink); quotes: none; line-height: 1.55; }
.idcm-post .rev .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.idcm-post .rev .src { font-size: 12px; color: var(--text); }
.idcm-post .rev a { font-size: 13px; font-weight: 700; }

/* ---- Which institute callout ---- */
.idcm-post .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.idcm-post .callout p { color: var(--ink); }

/* ---- FAQ ---- */
.idcm-post details { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.idcm-post details summary { font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.idcm-post details summary::-webkit-details-marker { display: none; }
.idcm-post details summary::before { content: "+"; color: var(--primary); font-weight: 700; margin-right: 12px; }
.idcm-post details[open] summary::before { content: "\2212"; }
.idcm-post details p { margin: 12px 0 2px; color: var(--text); }

/* ---- CTA band ---- */
.idcm-post .ctaband {
  position: relative; overflow: hidden; border-radius: 20px; padding: 48px 28px;
  color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--base-grad2), #182454);
}
.idcm-post .cta-circle { position: absolute; top: -40px; right: -40px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.idcm-post .ctaband h2 { color: #fff; margin: 0 0 10px; position: relative; }
.idcm-post .ctaband p { color: #cdd3ee; margin: 0 auto 22px; max-width: 60ch; position: relative; }
.idcm-post .demo-btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  background: var(--primary); color: #1a1205; font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 10px;
}
.idcm-post .demo-btn .arw { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #fff; color: var(--base); border-radius: 7px; font-weight: 700; }
.idcm-post .demo-btn:hover { background: var(--primary-deep); color: #fff; }

/* ---- Inline CTAs ---- */
.idcm-post .inline-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 2px; }
.idcm-post .inline-cta a {
  font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--base); color: var(--base);
}
.idcm-post .inline-cta a:hover { background: var(--base); color: #fff; }

/* ---- Disclosure ---- */
.idcm-post .disclosure { font-size: 13px; color: var(--text); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 38px; }

/* ---- Responsive ---- */
@media (max-width: 820px) { .idcm-post .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .idcm-post .who-grid, .idcm-post .infogrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .idcm-post .courses { grid-template-columns: 1fr; }
  .idcm-post .stats-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .idcm-post .toc > ol { columns: 1; } }
@media (max-width: 560px) { .idcm-post .reviews { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .idcm-post .who-grid { grid-template-columns: 1fr; } }

/* ---- WordPress helper classes (replace inline styles) ---- */
.idcm-post .inst--first { border-top: none; padding-top: 0; margin-top: 0; }
.idcm-post .chartfig { margin: 0; }
.idcm-post .tools-intro { font-size: 14px; color: var(--text); margin: 2px 0 4px; max-width: 74ch; }