/* ============================================================
   A2C - /predavaci/ i /posao-profesor-engleskog/ (2.11.2026)
   Isti svet kao upis u grupe (grupe.css): teget polje, krem papir, narandžasti pečat.
   Ovde samo ono što te dve strane imaju više.
   ============================================================ */
.tm-hero .gr-hero-grid { align-items: start; }
.tm-hero-team .gr-hero-grid { align-items: center; }
.tm-h3 { margin: 6px 0 14px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark); }
.tm-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm-ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-on-dark); line-height: 1.5; }
.tm-ticks li b { color: #fff; font-weight: 600; }
.tm-ticks .gi { width: 22px; height: 22px; flex: 0 0 22px; padding: 3px; border-radius: 50%; background: rgba(245, 130, 13, .16); color: var(--orange); stroke-width: 2.2; }
.tm-ticks.is-dark li { color: var(--text); }
.tm-ticks.is-dark li b { color: var(--navy); }
.tm-pay { display: inline-flex; align-items: center; gap: 12px; margin: -10px 0 30px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 1.5px dashed rgba(245, 130, 13, .6); color: #fff; font-weight: 600; }
.tm-pay-stamp { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--navy); }
.tm-pay-stamp .gi { width: 18px; height: 18px; fill: var(--navy); }

/* prijava (papir) */
.tm-slip .gr-slip-head { margin-bottom: 14px; }
.tm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.tm-q { margin-bottom: 14px; }
.tm-ql { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.tm-slip .gr-chip span { min-height: 36px; padding: 0 12px; font-size: .86rem; }
.tm-area textarea { width: 100%; min-height: 54px; padding: 8px 2px; border: 0; border-bottom: 1.5px solid #cdbca6; background: transparent; font: 500 1rem var(--font-body); color: var(--ink); resize: vertical; caret-color: var(--orange); }
.tm-area textarea:focus { outline: none; border-color: var(--orange); }
.tm-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1.5px dashed #cdbca6; background: rgba(255, 255, 255, .6); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); }
.tm-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tm-drop:hover, .tm-drop.over { border-color: var(--orange); background: #fff; }
.tm-drop.over { transform: scale(1.01); }
.tm-drop:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }
.tm-drop-ic { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; background: var(--orange-glow); color: var(--orange); }
.tm-drop-t { display: grid; gap: 2px; font-size: .9rem; color: var(--ink); }
.tm-drop-t small, .tm-file-t small { font-size: .78rem; color: var(--ink-soft); }
.tm-file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--orange); animation: grFade .25s var(--ease-out); }
.tm-file[hidden] { display: none; }
.tm-file-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tm-file-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.tm-file-x { border: 0; background: none; font: 600 .85rem var(--font-body); color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; }
.tm-file-x:hover { color: #b42318; }
.tm-cv-err.on, .tm-check-err.on { display: block; }
.tm-area { margin-top: 12px; }
.tm-check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 6px; font-size: .86rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.tm-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-box { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px #b9a68e; transition: background-color .18s, box-shadow .18s; }
.tm-box .gi { width: 16px; height: 16px; color: #fff; stroke-width: 2.6; transform: scale(.4); opacity: 0; transition: transform .2s var(--ease-out), opacity .2s; }
.tm-check input:checked + .tm-box { background: var(--navy); box-shadow: none; }
.tm-check input:checked + .tm-box .gi { transform: none; opacity: 1; }
.tm-check input:focus-visible + .tm-box { outline: 2px solid var(--orange); outline-offset: 2px; }
.tm-check.bad .tm-box { box-shadow: inset 0 0 0 2px #b42318; }

/* rad kod nas, koraci */
.tm-work .gi { width: 26px; height: 26px; }
.tm-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.tm-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; border-top: 2px dashed #e0cfb9; }
.tm-steps li { position: relative; text-align: center; padding: 0 8px; }
.tm-step-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; box-shadow: 0 0 0 8px #fff; }
.tm-steps li:last-child .tm-step-n { background: var(--orange); color: var(--navy); }
.tm-step-ic { display: none; }
.tm-steps h3 { margin: 18px 0 8px; font-family: var(--font-heading); font-size: 1.35rem; color: var(--navy); }
.tm-steps p { margin: 0 auto; max-width: 30ch; line-height: 1.6; color: var(--text); }

/* predavači: polaroidi u hero-u */
.tm-polaroids { position: relative; height: 420px; }
.tm-pol { position: absolute; width: 230px; margin: 0; padding: 12px 12px 44px; background: var(--paper); border-radius: 4px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); transition: transform .5s var(--ease-out); }
.tm-pol:nth-child(1) { left: 6%; top: 30px; transform: rotate(-7deg); z-index: 2; }
.tm-pol:nth-child(2) { left: 42%; top: 0; transform: rotate(5deg); z-index: 1; }
.tm-pol:nth-child(3) { left: 24%; top: 150px; transform: rotate(-2deg); z-index: 3; }
.tm-polaroids:hover .tm-pol:nth-child(1) { transform: rotate(-10deg) translate(-12px, -6px); }
.tm-polaroids:hover .tm-pol:nth-child(2) { transform: rotate(8deg) translate(14px, -8px); }
.tm-pol picture, .tm-pol img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.tm-pol figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--font-heading); font-style: italic; font-size: 1.25rem; color: var(--navy); }
.tm-ini { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--navy); color: #fff; font-family: var(--font-heading); font-size: 3rem; }

/* predavači: karton */
.tm-cards { display: grid; gap: 40px; }
.tm-card { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; padding: 28px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -40px rgba(13, 27, 42, .45), inset 0 0 0 1px var(--paper-line); }
.tm-card:nth-child(even) { grid-template-columns: minmax(0, 1fr) 340px; }
.tm-card:nth-child(even) .tm-card-photo { order: 2; rotate: 2deg; }
.tm-card-photo { padding: 10px 10px 10px; background: var(--paper); border-radius: 6px; rotate: -2deg; box-shadow: 0 20px 36px -24px rgba(13, 27, 42, .6); }
.tm-card-photo picture, .tm-card-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 3px; }
.tm-card h2 { margin: 6px 0 4px; font-family: var(--font-heading); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); }
.tm-role { margin: 0 0 18px; color: var(--text-light); }
.tm-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.tm-levels .tm-ql { width: 100%; margin-bottom: 2px; color: var(--text-light); }
.tm-bio { margin: 18px 0 24px; line-height: 1.7; color: var(--text); max-width: 64ch; }
.tm-cta { width: auto; padding: 0 24px; margin-top: 0; }
.tm-cta .gi { color: var(--navy); }

/* traka za profesore */
.tm-job { text-decoration: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.tm-job-h { margin: 0 0 6px; font-family: var(--font-heading); font-size: 1.5rem; color: #fff; }
.tm-job-go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--orange); color: var(--navy); transition: transform .25s var(--ease-out); }
.tm-job:hover .tm-job-go, .tm-job:focus-visible .tm-job-go { transform: translateX(6px); }
.tm-job:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

@media (max-width: 1080px) {
  .tm-hero .gr-hero-copy { display: block; }
  .tm-polaroids { height: 330px; max-width: 460px; }
  .tm-pol { width: 180px; }
  .tm-card, .tm-card:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tm-card:nth-child(even) .tm-card-photo { order: 0; }
  .tm-card-photo { max-width: 320px; }
}
@media (max-width: 640px) {
  .tm-two { grid-template-columns: minmax(0, 1fr); }
  .tm-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tm-steps::before { left: 50%; right: auto; top: 34px; bottom: 34px; border-top: 0; border-left: 2px dashed #e0cfb9; }
  .tm-polaroids { height: 290px; }
  .tm-pol { width: 150px; padding: 8px 8px 34px; }
  .tm-pol figcaption { font-size: 1rem; bottom: 6px; }
  .tm-card { padding: 18px; }
  .tm-cta { width: 100%; }
  .tm-job { grid-template-columns: minmax(0, 1fr); }
  .tm-job .gr-coupon-big { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-pol, .tm-drop, .tm-job-go { transition: none; }
}

/* dugačka prijava: levi tekst prati skrol na širokom ekranu */
@media (min-width: 1081px) { .tm-hero:not(.tm-hero-team) .gr-hero-copy { position: sticky; top: calc(var(--header-h) + 32px); } }
