/* ============================================================
   TayyariPoint Courses — Course Detail Page  v1.0
   Royal Blue #1D4ED8 · Green #16A34A · Amber #F59E0B · Ink #0F172A
   Poppins (display) · Inter (body)
   Every selector is scoped under .tpc-detail-wrap so this never
   bleeds into the surrounding theme, matching the convention used
   in tp-cards.css.
   ============================================================ */

.tpc-detail-wrap {
    --blue:#1D4ED8; --blue-dark:#1B3FB0; --blue-deep:#16307F;
    --blue-soft:#EFF4FF; --blue-tint:#DBE6FD;
    --green:#16A34A; --green-dark:#118A3E; --green-soft:#EAF7EF; --green-tint:#C9EDD6;
    --amber:#F59E0B; --amber-soft:#FFF6E5;
    --ink:#0F172A; --slate:#64748B; --slate-light:#94A3B8;
    --line:#E2E8F0; --bg:transparent; --white:#FFFFFF;
    --shadow:0 10px 32px rgba(29,78,216,.10);
    --shadow-sm:0 2px 10px rgba(15,23,42,.06);
    --toc-offset:0px;
}

/* Scoped reset — never touches anything outside the wrapper, and
   never touches inside .tpc-reviews-embed either: that holds a
   third-party reviews/testimonials shortcode, and our box-model,
   spacing, color and link resets would otherwise strip that plugin's
   own styling (card layout, star colors, avatars, buttons) down to
   bare unstyled text. */
.tpc-detail-wrap, .tpc-detail-wrap *, .tpc-detail-wrap *::before, .tpc-detail-wrap *::after {
    box-sizing: border-box;
}
.tpc-reviews-embed, .tpc-reviews-embed *,
.tpc-whychoose-embed, .tpc-whychoose-embed * {
    box-sizing: initial;
}
.tpc-detail-wrap ul:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap li:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)),
.tpc-detail-wrap h1:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap h2:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap h3:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap h4:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)),
.tpc-detail-wrap p:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap div:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap span:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)),
.tpc-detail-wrap details:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap summary:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)) {
    margin: 0; padding: 0; list-style: none;
}

.tpc-detail-wrap {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--ink); background: transparent;
    line-height: 1.6; font-size: 15px;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 76px;
    position: relative;
}
.tpc-detail-wrap h1:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap h2:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap h3:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)), .tpc-detail-wrap h4:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)) { font-family: 'Poppins', 'Segoe UI', sans-serif; line-height: 1.25; }
.tpc-detail-wrap img:not(:where(.tpc-reviews-embed *)), .tpc-detail-wrap svg:not(:where(.tpc-reviews-embed *)) { max-width: 100%; display: block; }
.tpc-detail-wrap a:not(:where(.tpc-reviews-embed *, .tpc-whychoose-embed *)) { text-decoration: none; color: inherit; }
.tpc-detail-wrap section { scroll-margin-top: 64px; }

/* Let the reviews widget set its own typography/colors entirely —
   don't inherit our ink color or font stack into it. */
.tpc-reviews-embed {
    font-family: initial;
    color: initial;
    line-height: initial;
    text-align: left;
}

.tpc-detail-wrap .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.tpc-detail-wrap .sec { padding: 24px 0; }
.tpc-detail-wrap .sec--white { /* inherits site bg — no forced white */ }

.tpc-detail-wrap .eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 10px;
}
.tpc-detail-wrap .eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--green); }
.tpc-detail-wrap .h2 { font-size: clamp(22px,4.5vw,30px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.tpc-detail-wrap .sub { color: var(--slate); max-width: 580px; font-size: 14px; }
.tpc-detail-wrap .center { text-align: center; }
.tpc-detail-wrap .center .sub { margin-left: auto; margin-right: auto; }
.tpc-detail-wrap .center .eyebrow::before { display: none; }
.tpc-detail-wrap .center .eyebrow { background: var(--blue-soft); padding: 5px 14px; border-radius: 999px; }

/* buttons */
.tpc-detail-wrap .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 15px; border-radius: 12px;
    padding: 14px 24px; transition: .18s ease; line-height: 1; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.tpc-detail-wrap .btn svg { flex: none; }
.tpc-detail-wrap .btn-green { background: var(--green); color: #fff !important; box-shadow: 0 8px 20px rgba(22,163,74,.30); }
.tpc-detail-wrap .btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }
.tpc-detail-wrap .btn-outline { background: #fff; color: var(--blue) !important; border: 1.5px solid var(--blue-tint); }
.tpc-detail-wrap .btn-outline:hover { border-color: var(--blue); background: var(--blue-soft); }
.tpc-detail-wrap .btn-block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.tpc-detail-wrap .hero {
    padding: 30px 0 44px;
}
.tpc-detail-wrap .crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; color: var(--slate); margin-bottom: 22px; }
.tpc-detail-wrap .crumb a { color: var(--slate); transition: color .15s ease; }
.tpc-detail-wrap .crumb a:hover { color: var(--blue); text-decoration: underline; }
.tpc-detail-wrap .crumb .sep { color: var(--slate-light); }
.tpc-detail-wrap .crumb b { color: var(--ink); font-weight: 600; }
.tpc-detail-wrap .hero-grid { display: grid; gap: 28px; }

.tpc-detail-wrap .hero h1 { font-size: clamp(27px,5.5vw,42px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 12px; color: var(--ink); }
.tpc-detail-wrap .hero h1 .hl { color: var(--blue); }
.tpc-detail-wrap .hero-lead { color: #475569; font-size: 15px; max-width: 530px; margin-bottom: 16px; }

.tpc-detail-wrap .rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; margin-bottom: 18px; }
.tpc-detail-wrap .rating .stars { color: var(--amber); letter-spacing: 2.5px; font-size: 15px; }
.tpc-detail-wrap .rating b { font-family: 'Poppins'; font-weight: 700; font-size: 16px; }
.tpc-detail-wrap .rating .sep { width: 1px; height: 16px; background: var(--line); }
.tpc-detail-wrap .rating .muted { color: var(--slate); font-size: 13px; }

.tpc-detail-wrap .trust { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tpc-detail-wrap .trust span {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    font-size: 12px; font-weight: 500; color: var(--ink); padding: 7px 13px;
    box-shadow: var(--shadow-sm);
}
.tpc-detail-wrap .trust svg { width: 14px; height: 14px; }
.tpc-detail-wrap .trust .hot { border-color: #FBD38D; background: var(--amber-soft); color: #92400E; font-weight: 600; }

.tpc-detail-wrap .hero-ctas { display: flex; flex-direction: column; gap: 10px; }

/* pricing card */
.tpc-detail-wrap .card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid #E4EAF6; overflow: hidden; }
.tpc-detail-wrap .card-img { position: relative; background: linear-gradient(135deg,#2356E6,#16307F); aspect-ratio: 16/10; overflow: hidden; }
.tpc-detail-wrap .card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.tpc-detail-wrap .card-img .ribbon {
    position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--amber); color: #7C2D12;
    font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.tpc-detail-wrap .card-img-brand { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.tpc-detail-wrap .card-img-brand-badge {
    width: 54px; height: 54px; border-radius: 16px; background: var(--green);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.tpc-detail-wrap .card-img-brand-badge svg { width: 26px; height: 26px; }
.tpc-detail-wrap .card-img-brand-name { font-family: 'Poppins'; font-size: 22px; font-weight: 800; color: #fff; }
.tpc-detail-wrap .card-img-brand-sub { margin-top: 6px; font-size: 12.5px; color: #C9D8FF; }
.tpc-detail-wrap .card-body { padding: 20px; }
.tpc-detail-wrap .price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tpc-detail-wrap .price { font-family: 'Poppins'; font-size: 33px; font-weight: 800; color: var(--ink); }
.tpc-detail-wrap .price-old { color: var(--slate-light); text-decoration: line-through; font-size: 16px; }
.tpc-detail-wrap .price-off { background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tpc-detail-wrap .price-note { font-size: 12.5px; color: var(--slate); margin: 3px 0 14px; }


.tpc-detail-wrap .seats { margin-bottom: 16px; background: var(--amber-soft); border: 1px solid #FBE3B5; border-radius: 12px; padding: 11px 13px; }
.tpc-detail-wrap .seats-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; gap: 8px; flex-wrap: wrap; }
.tpc-detail-wrap .seats-top .left { color: #B45309; }
.tpc-detail-wrap .seats-top .total { color: var(--slate); }
.tpc-detail-wrap .seats-bar { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; }
.tpc-detail-wrap .seats-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--amber),#F97316); }

.tpc-detail-wrap .card-ctas { display: grid; gap: 10px; margin-bottom: 16px; }

/* WHAT YOU'LL GET */
.tpc-detail-wrap .get { background: linear-gradient(160deg,var(--green-soft),#F3FBF6); border: 1.5px solid var(--green-tint); border-radius: 16px; padding: 16px; }
.tpc-detail-wrap .get-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.tpc-detail-wrap .get-head .gi { width: 30px; height: 30px; border-radius: 9px; background: var(--green); flex: none; display: flex; align-items: center; justify-content: center; }
.tpc-detail-wrap .get-head .gi svg { width: 16px; height: 16px; }
.tpc-detail-wrap .get-head h4 { font-size: 14.5px; font-weight: 700; }
.tpc-detail-wrap .get ul { list-style: none; }
.tpc-detail-wrap .get li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 500; color: #1E3A2B; padding: 5.5px 0; }
.tpc-detail-wrap .get li .tick { width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.tpc-detail-wrap .get li .tick svg { width: 10px; height: 10px; }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.tpc-detail-wrap .toc { position: sticky; top: var(--toc-offset); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tpc-detail-wrap .toc-scroll-hint {
    position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
    display: flex; align-items: center; justify-content: flex-end; padding-right: 6px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.96) 55%);
    color: var(--blue); pointer-events: none;
    animation: tpcTocNudge 1.6s ease-in-out infinite;
}
.tpc-detail-wrap .toc-scroll-hint.hide { opacity: 0; }
@keyframes tpcTocNudge { 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(3px); } }
@media (min-width: 900px) { .tpc-detail-wrap .toc-scroll-hint { display: none; } }
.tpc-detail-wrap .toc-inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; max-width: 1120px; margin: 0 auto; scrollbar-width: none; scroll-behavior: smooth; position: relative; }
.tpc-detail-wrap .toc-inner::-webkit-scrollbar { display: none; }
.tpc-detail-wrap .toc a { flex: none; font-size: 12.5px; font-weight: 600; color: var(--slate); padding: 9px 15px; border-radius: 999px; transition: .15s; white-space: nowrap; }
.tpc-detail-wrap .toc a:hover { color: var(--blue); background: var(--blue-soft); }
.tpc-detail-wrap .toc a.active { color: var(--blue); background: var(--blue-soft); }
.tpc-detail-wrap .toc a.go { color: #fff !important; background: var(--green); margin-left: 2px; }
.tpc-detail-wrap .toc a.go:hover { background: var(--green-dark); }

/* ============================================================
   ELIGIBLE POSTS (+ attached syllabus)
   A post card with syllabus data becomes clickable — tapping it
   swaps the syllabus panel below the grid to that post's subjects
   and percentages. Kept small: panel scrolls internally past a
   max-height instead of growing the page.
   ============================================================ */
.tpc-detail-wrap .posts-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.tpc-detail-wrap .post { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; display: flex; gap: 12px; align-items: center; transition: .18s; }
.tpc-detail-wrap .post:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tpc-detail-wrap .post .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
.tpc-detail-wrap .post .ic svg { width: 21px; height: 21px; }
.tpc-detail-wrap .post h3 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.tpc-detail-wrap .post p { font-size: 11.5px; color: var(--slate); }
.tpc-detail-wrap .post--pick { cursor: pointer; padding-right: 96px; }
.tpc-detail-wrap .post--pick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tpc-detail-wrap .post--pick.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: var(--shadow-sm); }
.tpc-detail-wrap .post-syl-hint { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--blue); background: #fff; border: 1px solid var(--blue-tint); border-radius: 999px; padding: 5px 9px 5px 11px; white-space: nowrap; transition: .15s; }
.tpc-detail-wrap .post--pick.active .post-syl-hint { background: var(--blue); color: #fff; border-color: var(--blue); }
.tpc-detail-wrap .post-syl-hint svg { width: 11px; height: 11px; }

.tpc-detail-wrap .syl-box { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.tpc-detail-wrap .syl-panels { padding: 16px; max-height: 280px; overflow-y: auto; }
.tpc-detail-wrap .syl-panel { display: none; }
.tpc-detail-wrap .syl-panel.active { display: block; animation: sylFadeIn .2s ease; }
@keyframes sylFadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.tpc-detail-wrap .syl-panel-head { font-family: 'Poppins', 'Segoe UI', sans-serif; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.tpc-detail-wrap .syl-rows { display: flex; flex-direction: column; gap: 10px; }
.tpc-detail-wrap .syl-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; }
.tpc-detail-wrap .syl-subject { font-size: 12.5px; font-weight: 600; color: var(--ink); grid-column: 1/2; grid-row: 1; }
.tpc-detail-wrap .syl-pct { font-size: 12px; font-weight: 700; color: var(--blue); text-align: right; grid-column: 2/3; grid-row: 1; }
.tpc-detail-wrap .syl-bar { grid-column: 1/-1; grid-row: 2; height: 6px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; display: block; }
.tpc-detail-wrap .syl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--blue),var(--green)); }

@media (min-width:640px) {
    .tpc-detail-wrap .syl-panels { max-height: 320px; }
}

/* ============================================================
   OVERVIEW + INCLUDED
   ============================================================ */
.tpc-detail-wrap .ov-grid { display: grid; gap: 14px; margin-top: 26px; }
.tpc-detail-wrap .panel { background: rgba(248,250,252,.6); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; }
.tpc-detail-wrap .panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tpc-detail-wrap .panel-head .pi { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.tpc-detail-wrap .panel-head .pi svg { width: 18px; height: 18px; }
.tpc-detail-wrap .panel-head h3 { font-size: 16px; font-weight: 700; }
.tpc-detail-wrap .pi--blue { background: var(--blue-soft); }
.tpc-detail-wrap .pi--green { background: var(--green-soft); }
.tpc-detail-wrap .check { list-style: none; }
.tpc-detail-wrap .check li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; color: #334155; }
.tpc-detail-wrap .check li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; }
@media (min-width:640px) { .tpc-detail-wrap #overview .check { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 0; } }

.tpc-detail-wrap .inc { margin-top: 16px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg,var(--blue-dark) 0%,var(--blue-deep) 100%); color: #fff; padding: 28px 22px; position: relative; }
.tpc-detail-wrap .inc::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.05); top: -140px; right: -100px; }
.tpc-detail-wrap .inc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; position: relative; }
.tpc-detail-wrap .inc-head .gi { width: 38px; height: 38px; border-radius: 11px; background: var(--green); flex: none; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.tpc-detail-wrap .inc-head .gi svg { width: 19px; height: 19px; }
.tpc-detail-wrap .inc-head h3 { font-size: 19px; font-weight: 700; color: #fff; }
.tpc-detail-wrap .inc > p { font-size: 13px; color: #BFD0FA; margin-bottom: 20px; position: relative; }
.tpc-detail-wrap .inc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; position: relative; }
.tpc-detail-wrap .inc-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; padding: 14px 13px; }
.tpc-detail-wrap .inc-item .n { font-family: 'Poppins'; font-size: 19px; font-weight: 800; color: #7EE2A8; line-height: 1.1; display: block; }
.tpc-detail-wrap .inc-item b { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; color: #fff; }
.tpc-detail-wrap .inc-item span:not(.n) { font-size: 11.5px; color: #AFC3F5; line-height: 1.45; display: block; }

/* ============================================================
   CURRICULUM
   ============================================================ */
.tpc-detail-wrap .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.tpc-detail-wrap .meta-row span { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; color: var(--slate); }
.tpc-detail-wrap .meta-row b { color: var(--ink); font-weight: 700; }
.tpc-detail-wrap .meta-row svg { width: 14px; height: 14px; }

.tpc-detail-wrap .week { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; transition: .18s; }
.tpc-detail-wrap .week[open] { border-color: var(--blue-tint); box-shadow: var(--shadow-sm); }
.tpc-detail-wrap .week summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; user-select: none; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.tpc-detail-wrap .week summary::-webkit-details-marker { display: none; }
.tpc-detail-wrap .wk-tag { flex: none; font-family: 'Poppins'; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #fff; background: rgba(255,255,255,.18); border-radius: 8px; padding: 7px 11px; }
.tpc-detail-wrap .wk-head { flex: 1; min-width: 0; }
.tpc-detail-wrap .wk-head h3 { font-size: 15px; font-weight: 600; color: #fff; }
.tpc-detail-wrap .wk-meta { flex: none; font-size: 12px; color: rgba(255,255,255,.75); font-weight: 500; display: none; }
.tpc-detail-wrap .week .chev { flex: none; transition: .2s; color: rgba(255,255,255,.8); }
.tpc-detail-wrap .week[open] .chev { transform: rotate(180deg); color: #fff; }

.tpc-detail-wrap .days { border-top: 1px solid var(--line); background: #FBFCFE; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tpc-detail-wrap .day { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 13.5px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.tpc-detail-wrap .day:hover { border-color: var(--blue-tint); box-shadow: var(--shadow-sm); }
.tpc-detail-wrap .day .dn { flex: none; padding: 6px 11px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-family: 'Poppins'; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.tpc-detail-wrap .day .dt { flex: 1 1 200px; min-width: 0; color: #334155; font-weight: 500; display: flex; flex-direction: column; gap: 6px; }
.tpc-detail-wrap .day .day-tail { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tpc-detail-wrap .day .dm { flex: none; font-size: 12px; color: var(--slate-light); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.tpc-detail-wrap .day .dm svg { width: 12px; height: 12px; }
.tpc-detail-wrap .day .free { flex: none; font-size: 10.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg,var(--green),var(--green-dark)); padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 2px 6px rgba(22,163,74,.28); transition: transform .12s, box-shadow .15s; }
.tpc-detail-wrap .day .free:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(22,163,74,.34); }
.tpc-detail-wrap .day--test { background: linear-gradient(0deg, #fff, #fff); border-color: var(--green-soft); }
.tpc-detail-wrap .day--test .dn { background: var(--green); color: #fff; }

.tpc-detail-wrap .topic-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tpc-detail-wrap .tbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 3px 8px 3px 6px; border-radius: 999px; letter-spacing: .01em; }
.tpc-detail-wrap .tbadge svg { width: 11px; height: 11px; }
.tpc-detail-wrap .tbadge--video { background: var(--blue-soft); color: var(--blue); }
.tpc-detail-wrap .tbadge--notes { background: var(--amber-soft); color: #92400E; }
.tpc-detail-wrap .tbadge--test { background: var(--green-soft); color: var(--green-dark); }
.tpc-detail-wrap .tbadge--assignment { background: var(--blue-tint); color: var(--blue-dark); }

/* ============================================================
   MENTOR
   ============================================================ */
.tpc-detail-wrap .mentor { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow-sm); margin-top: 26px; display: grid; gap: 20px; }
.tpc-detail-wrap .mentor-id { display: flex; gap: 16px; align-items: center; }
.tpc-detail-wrap .avatar { width: 78px; height: 78px; flex: none; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--blue-deep)); display: flex; align-items: center; justify-content: center; font-family: 'Poppins'; font-size: 27px; font-weight: 700; color: #fff; border: 3px solid var(--blue-soft); }
.tpc-detail-wrap .avatar-photo { object-fit: cover; }
.tpc-detail-wrap .mentor-id h3 { font-size: 19px; font-weight: 700; }
.tpc-detail-wrap .mentor-id p { font-size: 13px; color: var(--slate); }
.tpc-detail-wrap .verified { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 3px 10px; margin-top: 5px; }
.tpc-detail-wrap .verified svg { width: 13px; height: 13px; }
.tpc-detail-wrap .mentor-bio { font-size: 14px; color: #334155; }
.tpc-detail-wrap .mentor-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tpc-detail-wrap .mentor-badges span { display: inline-flex; align-items: center; gap: 7px; background: #F8FAFC; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 8px 14px; }
.tpc-detail-wrap .mentor-badges svg { width: 15px; height: 15px; }

/* ============================================================
   REGISTER
   ============================================================ */
.tpc-detail-wrap .reg { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 20px; box-shadow: var(--shadow-sm); }
.tpc-detail-wrap .reg-steps-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.tpc-detail-wrap .reg-steps-img img { width: 100%; height: auto; display: block; }
.tpc-detail-wrap .steps { display: grid; gap: 0; position: relative; }
.tpc-detail-wrap .step { display: flex; gap: 14px; padding: 14px 0; position: relative; }
.tpc-detail-wrap .step .sn { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-family: 'Poppins'; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--green-soft); }
.tpc-detail-wrap .step:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 52px; bottom: -6px; width: 2px; background: var(--green-tint); }
.tpc-detail-wrap .step h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.tpc-detail-wrap .step p { font-size: 13px; color: var(--slate); }
.tpc-detail-wrap .numchip { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); border: 1px solid var(--green-tint); border-radius: 9px; font-family: 'Poppins'; font-size: 14px; font-weight: 700; color: var(--green-dark); padding: 5px 12px; margin-top: 6px; letter-spacing: .03em; }
.tpc-detail-wrap .numchip svg { width: 15px; height: 15px; }
.tpc-detail-wrap .reg-cta { margin-top: 18px; padding-top: 20px; border-top: 1px dashed var(--line); text-align: center; }
.tpc-detail-wrap .reg-cta p { font-size: 12.5px; color: var(--slate); margin-top: 10px; }

/* ============================================================
   SHORTCODE PLACEHOLDER
   ============================================================ */
.tpc-detail-wrap .shortcode { border: 2px dashed #C7D6F5; border-radius: 16px; background: var(--blue-soft); padding: 40px 20px; text-align: center; color: var(--blue); font-size: 13px; font-weight: 600; margin-top: 26px; }

/* ============================================================
   REVIEWS EMBED — spacing only. All styling of the widget's own
   content (cards, stars, avatars, buttons) is untouched — see the
   .tpc-reviews-embed exclusions at the top of this file.
   ============================================================ */
.tpc-detail-wrap .tpc-reviews-embed { margin-top: 20px; }

/* ============================================================
   FAQ
   ============================================================ */
.tpc-detail-wrap .faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.tpc-detail-wrap .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 14.5px; font-family: 'Poppins'; }
.tpc-detail-wrap .faq summary::-webkit-details-marker { display: none; }
.tpc-detail-wrap .faq .chev { flex: none; color: var(--slate-light); transition: .2s; }
.tpc-detail-wrap .faq[open] { border-color: var(--blue-tint); box-shadow: var(--shadow-sm); }
.tpc-detail-wrap .faq[open] .chev { transform: rotate(180deg); color: var(--blue); }
.tpc-detail-wrap .faq .ans { padding: 0 18px 16px; font-size: 13.5px; color: var(--slate); }

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.tpc-detail-wrap .band { background: linear-gradient(135deg,var(--blue) 0%,var(--blue-deep) 100%); border-radius: 24px; padding: 40px 24px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.tpc-detail-wrap .band::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.06); top: -120px; right: -90px; }
.tpc-detail-wrap .band::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(22,163,74,.22); bottom: -110px; left: -70px; filter: blur(10px); }
.tpc-detail-wrap .band h2 { font-size: clamp(22px,4.5vw,31px); font-weight: 800; margin-bottom: 8px; position: relative; color: #fff; }
.tpc-detail-wrap .band p { font-size: 14px; color: #C7D6FB; max-width: 480px; margin: 0 auto 22px; position: relative; }
.tpc-detail-wrap .band .btn-green { box-shadow: 0 10px 26px rgba(0,0,0,.3); position: relative; }
.tpc-detail-wrap .band small { display: block; margin-top: 12px; font-size: 12px; color: #A9BEF6; position: relative; }

/* ============================================================
   STICKY MOBILE BAR
   ============================================================ */
.tpc-detail-wrap .sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15,23,42,.10); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.tpc-detail-wrap .sticky .p { line-height: 1.15; }
.tpc-detail-wrap .sticky .p b { font-family: 'Poppins'; font-size: 18px; font-weight: 800; display: block; }
.tpc-detail-wrap .sticky .p s { font-size: 11px; color: var(--slate-light); font-weight: 400; margin-left: 4px; }
.tpc-detail-wrap .sticky .p em { font-style: normal; font-size: 10.5px; color: #B45309; font-weight: 600; display: block; }
.tpc-detail-wrap .sticky .btn { flex: 1; padding: 13px 10px; font-size: 14.5px; }

/* Related courses reuses tp-cards.css — just tighten the wrap spacing here */
.tpc-detail-wrap .tpc-wrap { padding: 0 !important; max-width: 100% !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width:480px) {
    .tpc-detail-wrap .hero-ctas { flex-direction: row; flex-wrap: wrap; }
    .tpc-detail-wrap .hero-ctas .btn-block { width: auto; }
}
@media (min-width:640px) {
    .tpc-detail-wrap .posts-grid { grid-template-columns: repeat(2,1fr); }
    .tpc-detail-wrap .inc-grid { grid-template-columns: repeat(3,1fr); }
    .tpc-detail-wrap .mentor { grid-template-columns: auto 1fr; align-items: start; }
    .tpc-detail-wrap .mentor-id { grid-row: span 2; }
    .tpc-detail-wrap .wk-meta { display: block; }
    .tpc-detail-wrap .steps { grid-template-columns: repeat(3,1fr); gap: 14px; }
    .tpc-detail-wrap .step { flex-direction: column; padding: 0; }
    .tpc-detail-wrap .step:not(:last-child)::after { left: 52px; right: -14px; top: 17px; bottom: auto; width: auto; height: 2px; }
}
@media (min-width:920px) {
    .tpc-detail-wrap { padding-bottom: 0; font-size: 16px; }
    .tpc-detail-wrap .sticky { display: none; }
    .tpc-detail-wrap .sec { padding: 33px 0; }
    .tpc-detail-wrap .hero { padding: 38px 0 58px; }
    .tpc-detail-wrap .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
    .tpc-detail-wrap .hero-card { position: sticky; top: calc(var(--toc-offset) + 66px); }
    .tpc-detail-wrap .posts-grid { grid-template-columns: repeat(3,1fr); }
    .tpc-detail-wrap .inc { padding: 36px 34px; }
    .tpc-detail-wrap .inc-grid { grid-template-columns: repeat(4,1fr); }
    .tpc-detail-wrap .band { padding: 58px 40px; }
    .tpc-detail-wrap section { scroll-margin-top: 70px; }
}
@media (prefers-reduced-motion:reduce) {
    .tpc-detail-wrap * { animation: none !important; transition: none !important; }
}

/* ── Emoji sizing fix ─────────────────────────────────────────
   Root cause of "large emojis" on this page: this section uses
   plain emoji characters (🔒 ⚡ ★ ☆) inline in text. WordPress
   core normally converts those into small <img class="emoji">
   tags sized via a core stylesheet (print_emoji_styles). If a
   caching/performance plugin or theme strips that core stylesheet
   while the emoji-to-image conversion still runs, the resulting
   <img> tags fall back to their native pixel size (commonly 72x72)
   instead of matching the surrounding text — which is exactly the
   "huge emoji" symptom. This re-asserts that sizing locally so the
   page is correct regardless of what any other plugin does. */
.tpc-detail-wrap img.emoji,
.tpc-detail-wrap img.wp-smiley {
    height: 1em !important;
    width: 1em !important;
    margin: 0 .05em 0 .1em !important;
    vertical-align: -0.1em !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: inline !important;
}
