/* Train to Hire redesign (train-to-hire-v2.php) — prefix th-. Uses css/solutions-v2.css. */

/* ---------- hero over a dimmed war-room photo ---------- */
.th-hero { position: relative; padding: 140px 0 110px; overflow: hidden; background: var(--k); }
.th-hero .pl-bunting { top: 6px; z-index: 2; }
.th-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.4); }
.th-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--k) 20%, rgba(7, 7, 7, .6) 60%, rgba(7, 7, 7, .85)), radial-gradient(ellipse 40% 60% at 75% 50%, rgba(255, 198, 0, .16), transparent 70%); }
.th-hero__grid { position: relative; z-index: 1; }

.th-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 16px; border-radius: 40px; border: 1px solid rgba(255, 198, 0, .4); background: rgba(255, 198, 0, .08); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--y); }
.th-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(255, 198, 0, .25); animation: th-pulse 1.6s ease-in-out infinite; }
@keyframes th-pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 198, 0, 0); } }

.th-scholar { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--y); }
.th-scholar b { color: var(--w); }
.th-scholar small { color: #ff6b70; font-weight: 600; }

/* admit card */
.th-admit { position: relative; justify-self: center; width: min(100%, 440px); border-radius: 14px; overflow: hidden; background: #fbf8ef; color: #1a1a1a; box-shadow: 0 40px 80px rgba(0, 0, 0, .7); transform: rotate(2deg); }
.th-admit__head { display: flex; justify-content: space-between; padding: 14px 22px; background: var(--k); color: var(--y); font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; }
.th-admit__body { display: flex; gap: 18px; align-items: flex-start; padding: 24px 22px 18px; }
.th-admit__logo { flex: 0 0 96px; width: 96px; padding: 8px; border: 2px dashed #c9bf9f; border-radius: 8px; background: #fff; }
.th-admit dl { flex: 1; margin: 0; display: grid; gap: 10px; }
.th-admit dl div { padding-bottom: 8px; border-bottom: 1px solid #e3dcc6; }
.th-admit dt { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8a7a52; }
.th-admit dd { margin: 0; font-weight: 700; }
.th-admit__hot { color: var(--r); }
.th-admit__stamp { position: absolute; right: 18px; bottom: 54px; padding: 4px 14px; border: 4px double #1d7a2e; border-radius: 6px; color: #1d7a2e; font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-12deg); opacity: .85; }
.th-admit__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 22px; border-top: 2px dashed #c9bf9f; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6d6555; }
.th-admit__bar { flex: 0 0 120px; height: 26px; background: repeating-linear-gradient(90deg, #1a1a1a 0 2px, transparent 2px 4px, #1a1a1a 4px 5px, transparent 5px 8px); }

.th-gap__img { justify-self: center; width: min(100%, 520px); transform: rotate(-1deg); }

/* ---------- the 7 stages as a staircase ---------- */
.th-stairs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: end; }
.th-step, .th-summit {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: calc((7 - var(--n)) * 34px);
    padding: 20px 14px 18px;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--line);
    border-top: 4px solid var(--y);
    background: linear-gradient(180deg, var(--k2), #0d0d0d);
}
.th-step { min-height: 300px; }
.th-step__num { position: absolute; right: 10px; top: 6px; font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 198, 0, .4); }
.th-step > i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 10px; background: var(--y); color: var(--k); font-size: 19px; }
.th-step h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--w); }
.th-step p { margin: 0 0 12px; color: var(--w2); font-size: 12.5px; line-height: 1.55; }
.th-step__out { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; font-weight: 600; color: var(--y); }
.th-step__out small { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--w3); }

.th-summit { align-items: center; justify-content: flex-end; min-height: 300px; border: 0; background: var(--y); color: var(--k); text-align: center; }
.th-summit h4 { margin: 0 0 14px; font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.th-summit .pl-btn { padding: 12px 16px; font-size: 14px; }
/* flag planted on the summit */
.th-summit__flag { position: absolute; left: 50%; top: -86px; width: 4px; height: 96px; background: #333; }
.th-summit__flag::after { content: ""; position: absolute; left: 4px; top: 4px; width: 56px; height: 36px; background: linear-gradient(180deg, #ff8a00 0 33%, #fff 33% 66%, var(--y) 66%); clip-path: polygon(0 0, 100% 15%, 85% 50%, 100% 85%, 0 100%); animation: th-wave 2.4s ease-in-out infinite; transform-origin: left center; }
@keyframes th-wave { 50% { transform: skewY(-6deg) scaleX(.94); } }

/* ---------- medals ---------- */
.th-medal { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 10px; text-align: center; }
.th-medal__disc { position: relative; z-index: 1; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe48a, var(--y) 45%, #b38400); color: var(--k); font-size: 40px; box-shadow: 0 0 0 6px #111, 0 0 0 8px rgba(255, 198, 0, .5), 0 20px 30px rgba(0, 0, 0, .5); }
.th-medal__ribbon { width: 60px; height: 44px; margin-top: -8px; background: linear-gradient(90deg, var(--r) 0 33%, #fff 33% 66%, var(--r) 66%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.th-medal h4 { margin: 18px 0 6px; font-family: var(--display); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; color: var(--w); }
.th-medal p { margin: 0; color: var(--w2); line-height: 1.6; }

.th-who { border-top: 3px solid var(--y); }

/* ---------- path ---------- */
.th-path { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.th-path::before { content: ""; position: absolute; left: 10%; right: 10%; top: 34px; height: 3px; background: linear-gradient(90deg, rgba(255, 198, 0, .2), var(--y)); }
.th-path li { position: relative; text-align: center; }
.th-path span { display: inline-grid; place-items: center; width: 70px; height: 70px; margin-bottom: 16px; border-radius: 50%; background: var(--k); border: 3px solid var(--y); color: var(--y); font-family: var(--display); font-weight: 900; font-size: 2rem; box-shadow: 0 0 0 8px var(--k); }
.th-path li:last-child span { background: var(--y); color: var(--k); }
.th-path h5 { margin: 0 0 6px; font-family: var(--display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; color: var(--w); }
.th-path p { margin: 0; color: var(--w2); font-size: 14px; line-height: 1.55; }

/* ---------- founder note ---------- */
.th-note { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 46px; align-items: center; max-width: 980px; margin: 0 auto; padding: 40px 44px; border-radius: 20px; border: 1px solid rgba(255, 198, 0, .35); background: linear-gradient(135deg, rgba(255, 198, 0, .08), transparent 60%), var(--k2); }
.th-note img { width: 100%; }
.th-note blockquote { margin: 0 0 20px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; color: var(--w); }
.th-note figcaption b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; color: var(--y); }
.th-note figcaption small { color: var(--w2); }

/* ---------- pricing + seat tally ---------- */
.th-price-sec { background: radial-gradient(ellipse 50% 70% at 50% 40%, rgba(255, 198, 0, .14), transparent 70%), var(--k); }
.th-price { position: relative; max-width: 720px; margin: 0 auto; padding: 50px 46px 40px; overflow: hidden; border-radius: 24px; border: 3px solid var(--y); background: var(--k1); text-align: center; box-shadow: 0 40px 80px rgba(0, 0, 0, .7); }
.th-price__ribbon { position: absolute; right: -44px; top: 24px; width: 180px; padding: 6px 0; background: var(--r); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; transform: rotate(45deg); }
.th-price__amount { display: flex; justify-content: center; align-items: baseline; gap: 18px; margin: 10px 0 18px; }
.th-price__amount del { font-size: 1.4rem; color: var(--w3); }
.th-price__amount b { font-family: var(--display); font-weight: 900; font-size: clamp(3.4rem, 8vw, 5.6rem); line-height: 1; color: var(--y); }
.th-price__offer { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(255, 198, 0, .35); background: rgba(255, 198, 0, .08); font-weight: 600; color: var(--y); }
.th-price .pl-btn { display: flex; justify-content: center; width: 100%; font-size: 17px; }
.th-price__emi { margin: 14px 0 28px; font-size: 13px; color: var(--w3); }

.th-tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border-radius: 12px; border: 3px solid #2a2a2a; background: #050505; }
.th-tally div { display: flex; flex-direction: column; gap: 4px; padding: 18px 8px; border-right: 1px solid #222; }
.th-tally div:last-child { border-right: 0; }
.th-tally b { font-family: "Courier New", monospace; font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--y); text-shadow: 0 0 12px rgba(255, 198, 0, .5); }
.th-tally small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--w3); }
.th-tally__hot b { color: #ff4d52; text-shadow: 0 0 12px rgba(255, 77, 82, .55); }

@media (max-width: 1100px) {
    .th-stairs { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
    .th-step, .th-summit { margin-top: 0; min-height: 0; border-radius: 12px; }
    .th-summit { justify-content: center; padding: 30px 14px; }
    .th-summit__flag { display: none; }
}

@media (max-width: 991px) {
    .th-path { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .th-path::before { left: 34px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
    .th-path li { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 18px; text-align: left; }
    .th-path span { grid-row: span 2; margin: 0; }
    .th-note { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; text-align: center; }
    .th-note img { max-width: 220px; justify-self: center; }
}

@media (max-width: 767px) {
    .th-hero { padding: 110px 0 70px; }
    .th-admit { transform: none; }
    .th-admit__body { flex-direction: column; }
    .th-stairs { grid-template-columns: minmax(0, 1fr); }
    .th-price { padding: 44px 20px 30px; }
    .th-tally b { font-size: 2rem; }
}
