/* ============================================================
   Tudengitööde Konkurss — Frontend CSS
   Figma: 858-7210 (üldvaade) + 858-6988 (detailvaade)
   ============================================================ */

/* ─── Design tokens ─── */
:root {
    --ttk-orange-10:  #fcebda;
    --ttk-orange-20:  #f9e2c7;
    --ttk-orange-40:  #f4c58f;
    --ttk-orange-100: #ba6c12;
    --ttk-blue-20:    #e3f2fd;
    --ttk-gray-100:   #f7f7f8;
    --ttk-gray-200:   #e9e9ec;
    --ttk-gray-300:   #c8c8d0;
    --ttk-text-1:     #000000;
    --ttk-text-2:     #454854;
    --ttk-text-3:     #686b78;
    --ttk-font:       'Montserrat', sans-serif;
    --ttk-shadow:     0 2px 4px -2px rgba(24,39,75,.12), 0 4px 4px -2px rgba(24,39,75,.08);
}

/* ─── Global reset ─── */
.ttk-list-view *,
.ttk-single-wrap * { box-sizing: border-box; }

/* Divi lisab p-le padding-bottom:1em — tühistame */
.ttk-list-view p,
.ttk-single-wrap p {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0;
}

/* ─── Ühised nupud ─── */
.ttk-btn-primary {
    display: inline-flex !important; align-items: center; justify-content: center;
    align-self: flex-start; /* flex stretch venitab muidu täislaiuseks */
    background: var(--ttk-orange-40); color: var(--ttk-text-1);
    font-family: var(--ttk-font); font-weight: 700; font-size: 18px; line-height: 1.6;
    padding: 12px 32px; border: none; cursor: pointer;
    text-decoration: none; white-space: nowrap; transition: background .15s;
    width: auto !important; box-sizing: border-box;
}
.ttk-btn-primary:hover { background: var(--ttk-orange-100); color: #fff; text-decoration: none; }
.ttk-btn-full { width: 100% !important; align-self: stretch !important; display: flex !important; }

/* ─── Ühised pealkirjad ─── */
/* H2 Medium 40px/48px */
.ttk-h2 {
    font-family: var(--ttk-font); font-weight: 500; font-size: 40px; line-height: 48px;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}

/* ════════════════════════════════════════════════════════════
   ÜLDVAADE (Figma 858-7210)
   Main content: pt-8px px-120px gap-48px
   ════════════════════════════════════════════════════════════ */
.ttk-list-view {
    width: 100%;
    display: flex; flex-direction: column; gap: 48px;
    box-sizing: border-box;
    /* max-width ja margin:0 auto puuduvad — Divi et_pb_code_inner juba haldab 1200px laiust */
}

/* ── Intro tekst — Figma 858:7216
   font-size:0px konteiner, inline spans 24px
   ── */
.ttk-page-intro {
    font-size: 0; /* konteiner 0, spans annavad 24px */
    line-height: 0;
}
.ttk-page-intro span {
    font-family: var(--ttk-font); font-size: 24px; line-height: 1.6;
    color: var(--ttk-text-1);
    padding: 0 !important;
}
.ttk-page-intro strong, .ttk-page-intro b {
    font-family: var(--ttk-font); font-weight: 700; font-size: 24px; line-height: 32px;
    padding: 0 !important;
}

/* ── Hero "Järgmine konkurss" — Figma 858:7217
   bg #fcebda, border-radius:12px
   pilt: w-520px fikseeritud, self-stretch
   sisu: flex-1, p-48px, gap-14px
── */
.ttk-hero-upcoming {
    background: var(--ttk-orange-10);
    border-radius: 12px;
    display: flex; align-items: stretch;
    overflow: hidden;
}
.ttk-hero-image {
    width: 520px; flex-shrink: 0;
    position: relative; min-height: 280px;
}
.ttk-hero-image img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; max-width: none;
}
.ttk-hero-details {
    flex: 1 0 0; min-width: 0;
    padding: 48px; display: flex; flex-direction: column; gap: 14px;
}
/* Label: Bold 14px, #ba6c12, tracking 2px */
.ttk-hero-label {
    font-family: var(--ttk-font); font-weight: 700; font-size: 14px;
    line-height: 24px; letter-spacing: 2px; color: var(--ttk-orange-100);
    text-transform: uppercase; margin: 0; padding: 0 !important;
}
/* Title: Bold H4 24px/32px */
.ttk-hero-title {
    font-family: var(--ttk-font); font-weight: 700; font-size: 24px;
    line-height: 32px; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Intro: Regular 18px #454854 */
.ttk-hero-intro {
    font-family: var(--ttk-font); font-weight: 400; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}
/* Kuupäev: icon + Bold 18px */
.ttk-hero-date {
    display: flex; align-items: flex-start; gap: 14px;
}
.ttk-hero-date svg { flex-shrink: 0; margin-top: 3px; }
.ttk-hero-date strong {
    font-family: var(--ttk-font); font-weight: 700; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-1); padding: 0 !important; margin: 0;
}

/* ── About + Testimonial — Figma 858:7218
   gap-48px, about-text flex-1 gap-16px
   testimonial: w-420px p-32px border-radius:8px bg #f9e2c7
── */
.ttk-about-section { width: 100%; }
.ttk-about-content { display: flex; gap: 48px; align-items: stretch; }
.ttk-about-text {
    flex: 1 0 0; min-width: 0;
    display: flex; flex-direction: column; gap: 16px;
}
/* H2 Medium 40px/48px */
.ttk-about-title {
    font-family: var(--ttk-font); font-weight: 500; font-size: 40px;
    line-height: 48px; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Body regular 16px */
.ttk-about-body {
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-1);
}
.ttk-about-body p { margin: 0 0 8px; padding: 0 !important; }
.ttk-about-body p:last-child { margin-bottom: 0; }

/* Korraldajad (üldvaates) — Figma 858:7222 */
.ttk-organizers-block { display: flex; flex-direction: column; gap: 8px; }
.ttk-org-label {
    font-family: var(--ttk-font); font-weight: 700; font-size: 14px;
    line-height: 24px; color: var(--ttk-text-3); margin: 0; padding: 0 !important;
}
.ttk-org-logos {
    background: var(--ttk-gray-100); border-radius: 8px;
    display: flex; flex-wrap: wrap; gap: 40px;
    align-items: center; justify-content: center; padding: 16px;
}
.ttk-org-logo-item { display: flex; align-items: center; }
.ttk-org-logo-item img { max-height: 41px; width: auto; max-width: none; }
.ttk-org-logo-item a { display: flex; }

/* Testimonial — Figma 858:7223 */
.ttk-testimonial {
    background: var(--ttk-orange-20); border-radius: 8px;
    padding: 32px; width: 420px; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 16px;
}
.ttk-testimonial-mark {
    font-family: var(--ttk-font); font-weight: 700; font-size: 48px;
    line-height: 72px; color: var(--ttk-orange-100); padding: 0 !important; margin: 0;
}
.ttk-testimonial-quote {
    font-family: var(--ttk-font); font-weight: 400; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
.ttk-testimonial-author {
    font-family: var(--ttk-font); font-weight: 700; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}

/* ── Quick Facts — Figma 858:7224
   flex items-center justify-center
   iga fact: flex-1, py-16px gap-2px, items-center
   divider: h-48px w-1px
── */
.ttk-quickfacts {
    display: flex; align-items: center; justify-content: center; width: 100%;
}
.ttk-fact {
    flex: 1 0 0; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
    align-items: center; padding: 16px 0; text-align: center;
}
/* H3 Bold 32px/40px */
.ttk-fact-value {
    font-family: var(--ttk-font); font-weight: 700; font-size: 32px;
    line-height: 40px; color: #000; margin: 0; padding: 0 !important;
}
/* Body 16px #454854 */
.ttk-fact-label {
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}
.ttk-fact-divider {
    width: 1px; height: 48px; background: var(--ttk-gray-300); flex-shrink: 0;
}

/* ── Sektsioon (võidutööd, inspi) ── */
.ttk-section { display: flex; flex-direction: column; gap: 32px; width: 100%; }

/* Võidutööd 4-veeru grid — Figma 858:7228 */
.ttk-voitatood-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
/* Kaart — bg #f7f7f8, border #e9e9ec, border-radius:4px, shadow */
.ttk-cover-card {
    background: var(--ttk-gray-100); border: 1px solid var(--ttk-gray-200);
    border-radius: 4px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--ttk-shadow);
    text-decoration: none; color: var(--ttk-text-1);
}
.ttk-cover-card:hover { text-decoration: none; }
/* Cover: aspect-ratio 272/209 */
.ttk-cover-img {
    aspect-ratio: 272 / 209; position: relative; overflow: hidden;
    background: #fff; width: 100%;
}
.ttk-cover-img img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; max-width: none;
}
.ttk-cover-placeholder { width: 100%; height: 100%; background: var(--ttk-gray-200); }
/* Data: pb-16px pt-4px px-16px */
.ttk-cover-data {
    padding: 4px 16px 16px; display: flex; flex-direction: column; flex: 1;
}
/* Title: Medium 18px */
.ttk-cover-title {
    font-family: var(--ttk-font); font-weight: 500; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Author: Regular 14px */
.ttk-cover-author {
    font-family: var(--ttk-font); font-weight: 400; font-size: 14px;
    line-height: 24px; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Publisher: Regular 14px #454854 */
.ttk-cover-publisher {
    font-family: var(--ttk-font); font-weight: 400; font-size: 14px;
    line-height: 24px; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}

/* Inspiratsiooniks read — Figma 858:7237
   grid: 0.75fr 8fr 1fr, pl-4px pr-16px py-4px gap-8px
── */
.ttk-inspi-list { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.ttk-inspi-row {
    background: var(--ttk-gray-100); border: 1px solid var(--ttk-gray-200);
    border-radius: 4px; box-shadow: var(--ttk-shadow);
    display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 8fr) minmax(0, 1fr);
    gap: 8px; padding: 4px 16px 4px 4px; overflow: hidden; align-items: center;
}
.ttk-inspi-cover {
    position: relative; overflow: hidden; background: var(--ttk-gray-200);
    min-height: 69px;
}
.ttk-inspi-cover img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; max-width: none;
}
.ttk-inspi-placeholder { width: 100%; height: 100%; background: var(--ttk-gray-200); min-height: 69px; }
.ttk-inspi-data {
    padding: 4px 0 4px 8px; display: flex; flex-direction: column; min-width: 0;
}
/* Title: Medium 18px */
.ttk-inspi-title {
    font-family: var(--ttk-font); font-weight: 500; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Author: Regular 14px */
.ttk-inspi-author {
    font-family: var(--ttk-font); font-weight: 400; font-size: 14px;
    line-height: 24px; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Source: Regular 14px #454854 */
.ttk-inspi-source {
    font-family: var(--ttk-font); font-weight: 400; font-size: 14px;
    line-height: 24px; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}
.ttk-inspi-action {
    display: flex; align-items: center; justify-content: flex-end;
    color: var(--ttk-text-3); text-decoration: none; flex-shrink: 0;
    transition: color .15s;
}
.ttk-inspi-action:hover { color: var(--ttk-orange-100); }

/* ── CTA: Uudiskiri + Annetus — Figma 858:7034
   Üldvaates: et_pb_code_inner on juba 1200px, padding puudub
   Detailvaates: ttk-cta-section--single lisab margin -96px
── */
.ttk-cta-section {
    background: var(--ttk-blue-20); width: 100%;
    padding: 0; box-sizing: border-box;
}
.ttk-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) fit-content(100%) minmax(0, 1fr);
    max-width: 1200px; margin: 0 auto;
}
.ttk-cta-newsletter {
    display: flex; flex-direction: column; gap: 16px; padding: 48px; align-self: flex-start;
}
.ttk-cta-donate {
    display: flex; flex-direction: column; gap: 12px; padding: 48px;
    justify-content: center; align-self: stretch;
}
.ttk-cta-divider { width: 1px; background: var(--ttk-gray-300); align-self: stretch; }
.ttk-cta-header { display: flex; align-items: center; gap: 16px; }
.ttk-cta-header svg { flex-shrink: 0; }
/* H3 Bold 32px/40px */
.ttk-cta-title {
    font-family: var(--ttk-font); font-weight: 700; font-size: 32px;
    line-height: 40px; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
    white-space: nowrap;
}
/* Body 16px #454854 */
.ttk-cta-text {
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}
/* Form: flex gap-12px */
.ttk-newsletter-form { display: flex; flex-direction: column; }
.ttk-newsletter-row { display: flex; gap: 12px; align-items: stretch; }
/* Input: w-280px bg white border #c8c8d0 px-16px py-10px */
.ttk-newsletter-input {
    width: 280px; flex-shrink: 0;
    padding: 10px 16px !important; border: 1px solid var(--ttk-gray-300) !important;
    background: #fff !important; font-family: var(--ttk-font);
    font-size: 14px !important; color: var(--ttk-text-3);
    box-sizing: border-box; outline: none;
    -webkit-appearance: none; appearance: none; border-radius: 0 !important; margin: 0 !important;
}
.ttk-newsletter-input::placeholder { color: var(--ttk-text-3); }
.ttk-newsletter-input:focus { border-color: var(--ttk-orange-100) !important; }
/* Button: bg #f4c58f px-24px py-10px Bold 16px */
.ttk-newsletter-btn {
    padding: 10px 24px; background: var(--ttk-orange-40); color: var(--ttk-text-1);
    font-family: var(--ttk-font); font-weight: 700; font-size: 16px; line-height: 24px;
    border: none; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.ttk-newsletter-btn:hover { background: var(--ttk-orange-100); color: #fff; }

/* ── Vaata ka teisi tegevusi — Figma 858:7035
   Üldvaates: et_pb_code_inner 1200px konteiner — padding puudub
   Detailvaates: ttk-related-section--single lisab margin -96px
── */
.ttk-related-section {
    display: flex; flex-direction: column; gap: 24px; width: 100%;
    padding-bottom: 48px; box-sizing: border-box;
}
.ttk-related-section .ttk-h2,
.ttk-related-section .ttk-related-grid {
    max-width: 1200px; margin: 0 auto; width: 100%;
}
.ttk-related-grid { display: flex; gap: 4px; align-items: flex-start; width: 100%; }
/* Kaart: flex-1, bg #f9e2c7, pb-16px, gap-16px */
.ttk-related-card {
    flex: 1 0 0; min-width: 0;
    display: flex; flex-direction: column; gap: 16px;
    background: var(--ttk-orange-20);
    padding: 0 0 16px 0; overflow: clip;
    position: relative; text-decoration: none; color: var(--ttk-text-1);
    transition: opacity .18s;
}
.ttk-related-card:hover { opacity: .88; text-decoration: none; }
/* Pilt: h-200px, position relative, overflow hidden */
.ttk-related-img {
    height: 200px; width: 100%; position: relative;
    overflow: hidden; background: var(--ttk-gray-200); flex-shrink: 0;
}
.ttk-related-img img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block; max-width: none !important; pointer-events: none;
}
/* Tekst: px-16px py-0px, h-48px, overflow:hidden, ellipsis */
.ttk-related-text {
    display: flex; align-items: center;
    padding: 0 16px; height: 48px; overflow: hidden; position: relative;
}
.ttk-related-text p {
    flex: 1 0 0; min-width: 0;
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-1);
    margin: 0; padding: 0 !important;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* Frontend edit button */
.ttk-fe-edit-related {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    opacity: 0; transition: opacity .15s;
}
.ttk-related-card:hover .ttk-fe-edit-related { opacity: 1; }
.ttk-related-add-btn {
    flex: 1; min-width: 160px; background: var(--ttk-orange-10);
    display: flex; align-items: center; justify-content: center; min-height: 248px;
}
.ttk-btn-add {
    background: var(--ttk-orange-40); border: none; color: var(--ttk-text-1);
    font-family: var(--ttk-font); font-size: 14px; font-weight: 700;
    padding: 8px 20px; cursor: pointer; border-radius: 2px;
}
.ttk-btn-add:hover { background: var(--ttk-orange-100); color: #fff; }

/* ── Edit buttons ── */
.ttk-edit-small {
    background: rgba(186,108,18,.1); border: 1px solid var(--ttk-orange-100);
    color: var(--ttk-orange-100); padding: 2px 6px; font-size: 11px;
    cursor: pointer; border-radius: 3px; font-family: var(--ttk-font);
    transition: background .15s; text-decoration: none; display: inline-flex; align-items: center;
}
.ttk-edit-small:hover { background: rgba(186,108,18,.22); }

/* ════════════════════════════════════════════════════════════
   DETAILVAADE (Figma 858-6988)
   ════════════════════════════════════════════════════════════ */

.ttk-single-wrap {
    background: #fff;
    width: 100%;
    /* max-width puudub — CTA/related peavad olema täislaiusega.
       Sisu piiramine toimub ttk-s-hero, ttk-s-main, ttk-cta-inner sees. */
}

/* Divi override detail */
.ttk-single-wrap p,
.ttk-s-intro p, .ttk-s-body-18 p, .ttk-s-section p {
    padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0;
}

/* ── Hero — Figma 804:7272: pt-40px px-120px, w-full ── */
.ttk-s-hero {
    padding: 40px 120px 0;
    width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 40px;
    max-width: 1440px; margin: 0 auto;
}
.ttk-s-hero-img {
    height: 348px; border-radius: 8px; overflow: hidden; position: relative;
}
.ttk-s-hero-img img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; display: block; max-width: none;
}
/* Hero content: border-bottom 2px #f4c58f, pb-40px, gap-16px */
.ttk-s-hero-content {
    border-bottom: 2px solid var(--ttk-orange-40);
    padding-bottom: 40px; padding-top: 0;
    display: flex; flex-direction: column; gap: 16px; max-width: 1200px;
}
/* H1 Bold 48px/72px */
.ttk-s-title {
    font-family: var(--ttk-font); font-weight: 700; font-size: 48px; line-height: 72px;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Body Regular 18px */
.ttk-s-meta {
    font-family: var(--ttk-font); font-weight: 400; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
.ttk-fe-admin-link {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-family: var(--ttk-font); font-size: 12px; font-weight: 600;
    color: var(--ttk-orange-100); background: rgba(244,197,143,.15);
    border: 1px solid var(--ttk-orange-40); padding: 4px 10px;
    border-radius: 3px; text-decoration: none; transition: all .15s;
}
.ttk-fe-admin-link:hover { background: var(--ttk-orange-40); color: var(--ttk-text-1); text-decoration: none; }

/* ── Main — Figma 858:6991: pt-40px px-96px pb-56px gap-56px w-full ── */
.ttk-s-main {
    padding: 40px 96px 56px;
    width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 56px;
    max-width: 1440px; margin: 0 auto;
}

/* ── Split: primaarne + sidebar — gap-40px max-width:1200px ── */
.ttk-s-split {
    display: flex; gap: 40px; align-items: flex-start;
    max-width: 1200px; width: 100%;
}

/* Primaarne veerg: flex-1, gap-48px */
.ttk-s-primary {
    flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 48px;
}

/* Sissejuhatus — 24px inline spans, Figma 858:6994 */
.ttk-s-intro {
    font-size: 0; line-height: 0; /* konteiner 0 */
}
.ttk-s-intro span {
    font-family: var(--ttk-font); font-weight: 400;
    font-size: 24px; line-height: 1.6; color: var(--ttk-text-1);
    padding: 0 !important;
}
.ttk-s-intro strong, .ttk-s-intro b {
    font-family: var(--ttk-font); font-weight: 700;
    font-size: 24px; line-height: 32px; padding: 0 !important;
}
/* wp_editor sisu intro (apply_filters) */
.ttk-s-intro p {
    font-family: var(--ttk-font); font-weight: 400;
    font-size: 24px; line-height: 1.6; color: var(--ttk-text-1);
    margin: 0 0 8px; padding: 0 !important;
}
.ttk-s-intro p:last-child { margin-bottom: 0; }

/* Korraldajad detail — Figma 858:6995 */
.ttk-s-organizers { display: flex; flex-direction: column; gap: 8px; }
.ttk-s-org-label {
    font-family: var(--ttk-font); font-weight: 700; font-size: 14px;
    line-height: 24px; color: var(--ttk-text-3); margin: 0; padding: 0 !important;
}
.ttk-s-org-logos {
    background: var(--ttk-gray-100); border-radius: 8px;
    display: flex; flex-wrap: wrap; gap: 40px;
    align-items: center; justify-content: center; padding: 16px;
}
.ttk-s-org-item { display: flex; align-items: center; }
.ttk-s-org-item img { max-height: 41px; width: auto; max-width: none; }
.ttk-s-org-item a { display: flex; }

/* Sektsioon: gap-16px (taotlemine, teemad) */
.ttk-s-section { display: flex; flex-direction: column; gap: 16px; }
/* "Keda ootame": gap-24px */
.ttk-s-section-lg { display: flex; flex-direction: column; gap: 24px; }

/* H1 Medium 48px/72px — "Keda ootame osalema?" Figma 858:6997 */
.ttk-s-h1-medium {
    font-family: var(--ttk-font); font-weight: 500; font-size: 48px; line-height: 72px;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* H2 Medium 40px/48px — "Stipendiumi taotlemine" Figma 858:7000 */
.ttk-s-h2-medium {
    font-family: var(--ttk-font); font-weight: 500; font-size: 40px; line-height: 48px;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Bold 18px — "Taotlusvormi kaudu esita:" Figma 858:7001 */
.ttk-s-bold-18 {
    font-family: var(--ttk-font); font-weight: 700; font-size: 18px; line-height: 1.5;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Sisu 18px */
.ttk-s-body-18 {
    font-family: var(--ttk-font); font-weight: 400; font-size: 18px;
    line-height: 1.5; color: var(--ttk-text-1);
}
.ttk-s-body-18 p { margin: 0 0 4px; padding: 0 !important; }
.ttk-s-body-18 p:last-child { margin-bottom: 0; }
.ttk-s-body-18 strong, .ttk-s-body-18 b { font-weight: 700; padding: 0 !important; }
.ttk-s-body-18 ul, .ttk-s-body-18 ol { margin: 0 0 8px; padding-left: 1.5em; }
.ttk-s-body-18 li { margin-bottom: 4px; padding: 0 !important; }

/* ── Sidebar — Figma 858:7008
   w-373px, bg #f7f7f8, pt-24px px-24px pb-40px, gap-32px
── */
.ttk-s-sidebar {
    width: 373px; flex-shrink: 0;
    background: var(--ttk-gray-100); padding: 24px 24px 40px;
    display: flex; flex-direction: column; gap: 32px; box-sizing: border-box;
}
/* Sektsioon: border-bottom 1px #c8c8d0, pb-16px, gap-8px */
.ttk-s-sb-section {
    border-bottom: 1px solid var(--ttk-gray-300);
    padding-bottom: 16px; display: flex; flex-direction: column; gap: 8px;
}
.ttk-s-sb-last { border-bottom: none; padding-bottom: 0; }
/* H4 Medium 24px/32px */
.ttk-s-sb-title {
    font-family: var(--ttk-font); font-weight: 500; font-size: 24px; line-height: 32px;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Body 16px */
.ttk-s-sb-text {
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px; line-height: 24px;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Bold 16px — "Kuni 1000 €" Figma 858:7016 */
.ttk-s-sb-bold {
    font-family: var(--ttk-font); font-weight: 700; font-size: 16px; line-height: 24px;
    color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
.ttk-s-past-badge {
    border: 2px dashed #000; padding: 24px 16px;
    font-family: var(--ttk-font); font-weight: 700; font-size: 18px;
    color: #000; text-align: center;
}
/* Kontakt — Figma 858:7026, foto 77×76px border-radius:24px */
.ttk-s-contact { display: flex; gap: 16px; align-items: center; }
.ttk-s-contact-photo {
    width: 77px; height: 76px; border-radius: 24px;
    object-fit: cover; flex-shrink: 0; max-width: none !important;
}
.ttk-s-contact-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ttk-s-contact-name {
    font-family: var(--ttk-font); font-weight: 700; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
.ttk-s-contact-title {
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}
.ttk-s-contact-email {
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-1); text-decoration: underline;
}

/* ── Žürii — Figma 858:7027
   flex-wrap gap-32px-24px, max-width:1200px
   foto: 120×119px border-radius:24px
── */
.ttk-s-jury { max-width: 1200px; width: 100%; display: flex; flex-direction: column; gap: 32px; }
.ttk-s-jury-grid {
    display: flex; flex-wrap: wrap; gap: 32px 24px; align-items: flex-start;
}
.ttk-s-jury-card {
    flex: 1 0 0; min-width: 0; overflow: clip;
    display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.ttk-s-jury-photo img {
    width: 120px; height: 119px; border-radius: 24px;
    object-fit: cover; display: block; max-width: none !important;
}
.ttk-s-jury-placeholder {
    width: 120px; height: 119px; border-radius: 24px;
    background: var(--ttk-gray-300); display: flex; align-items: center; justify-content: center;
    font-family: var(--ttk-font); font-weight: 700; font-size: 40px; color: var(--ttk-text-3);
}
.ttk-s-jury-info { text-align: center; display: flex; flex-direction: column; width: 100%; }
/* Bold 18px */
.ttk-s-jury-name {
    font-family: var(--ttk-font); font-weight: 700; font-size: 18px;
    line-height: 1.6; color: var(--ttk-text-1); margin: 0; padding: 0 !important;
}
/* Regular 16px #454854 */
.ttk-s-jury-title {
    font-family: var(--ttk-font); font-weight: 400; font-size: 16px;
    line-height: 24px; color: var(--ttk-text-2); margin: 0; padding: 0 !important;
}
/* Regular 14px #686b78 */
.ttk-s-jury-org {
    font-family: var(--ttk-font); font-weight: 400; font-size: 14px;
    line-height: 24px; color: var(--ttk-text-3); margin: 0; padding: 0 !important;
}

/* CTA on otse ttk-single-wrap laps — täislaiusega automaatselt */
/* Related on otse ttk-single-wrap laps — täislaiusega automaatselt */
.ttk-related-section--single .ttk-h2,
.ttk-related-section--single .ttk-related-grid {
    max-width: 1200px; margin: 0 auto; width: 100%;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .ttk-s-hero { padding: 24px 40px 0; }
    .ttk-s-main { padding: 32px 40px 48px; }
    .ttk-voitatood-grid { grid-template-columns: repeat(2, 1fr); }
    .ttk-hero-image { width: 300px; }
    .ttk-testimonial { width: 340px; }
}

@media (max-width: 768px) {
    /* Üldvaade */
    .ttk-list-view { gap: 32px; }

    /* Intro */
    .ttk-page-intro span,
    .ttk-page-intro strong,
    .ttk-page-intro b { font-size: 20px; }

    /* Hero */
    .ttk-hero-upcoming { flex-direction: column; }
    .ttk-hero-image { width: 100%; height: 200px; min-height: 200px; }
    .ttk-hero-details { padding: 16px; gap: 10px; }
    .ttk-hero-title { font-size: 20px; line-height: 28px; }
    .ttk-hero-intro { font-size: 16px; }
    .ttk-hero-details .ttk-btn-primary { width: 100%; justify-content: center; }

    /* About */
    .ttk-about-content { flex-direction: column; }
    .ttk-testimonial { width: 100%; }
    .ttk-about-title { font-size: 32px; line-height: 40px; }

    /* Facts */
    .ttk-quickfacts { display: grid; grid-template-columns: 1fr 1fr; }
    .ttk-fact-divider { display: none; }
    .ttk-fact-value { font-size: 24px; line-height: 32px; }

    /* Võidutööd */
    .ttk-voitatood-grid { grid-template-columns: 1fr; }

    /* Inspi */
    .ttk-inspi-row { grid-template-columns: 80px 1fr auto; }

    /* CTA */
    .ttk-cta-inner { grid-template-columns: 1fr; }
    .ttk-cta-divider { width: 100%; height: 1px; }
    .ttk-cta-newsletter, .ttk-cta-donate { padding: 24px 16px; align-items: center; }
    .ttk-cta-header { flex-direction: column; gap: 8px; }
    .ttk-cta-title { text-align: center; font-size: 24px; line-height: 32px; }
    .ttk-cta-text { text-align: center; }
    .ttk-newsletter-row { flex-direction: row; }
    .ttk-newsletter-input { width: 0; flex: 1; min-width: 0; }

    /* Related */
    .ttk-related-grid { flex-direction: column; gap: 8px; }
    .ttk-related-section { padding-bottom: 24px; }

    /* H2 */
    .ttk-h2 { font-size: 28px; line-height: 36px; }

    /* Single */
    .ttk-s-hero { padding: 16px 16px 0; gap: 24px; }
    .ttk-s-hero-img { height: 172px; }
    .ttk-s-title { font-size: 28px; line-height: 1.3; }
    .ttk-s-main { padding: 24px 16px 40px; gap: 40px; }
    .ttk-s-split { flex-direction: column; }
    .ttk-s-sidebar { width: 100%; }
    .ttk-s-h1-medium { font-size: 32px; line-height: 1.3; }
    .ttk-s-h2-medium { font-size: 28px; line-height: 1.3; }
    .ttk-s-intro p, .ttk-s-intro span, .ttk-s-intro b, .ttk-s-intro strong { font-size: 18px; }
    .ttk-s-jury-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .ttk-s-jury-photo img { width: 90px; height: 90px; }
    .ttk-s-jury-placeholder { width: 90px; height: 90px; }
}
