/* ============================================

   Inspiratsioonipäevad - Frontend CSS

   Disain: Figma kogu.ee

   ============================================ */



/* --- Color tokens --- */

:root {

    --ke-orange-10: #fcebda;

    --ke-orange-20: #f9e2c7;

    --ke-orange-40: #f4c58f;

    --ke-orange-100: #ba6c12;

    --ke-gray-100: #f7f7f8;

    --ke-gray-300: #c8c8d0;

    --ke-text-primary: #000000;

    --ke-text-secondary: #454854;

    --ke-text-tertiary: #686b78;

    --ke-blue-20: #e3f2fd;

    --ke-white: #ffffff;

    --ke-font: 'Montserrat', sans-serif;

}



/* --- Typography --- */

.ke-h1 {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 72px !important;
    color: var(--ke-text-primary, #000) !important;
    margin: 0 0 16px !important;
    padding: 0 !important;       /* Nullib Divi padding-bottom: 10px */
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ke-h1-medium {

    font-family: var(--ke-font);

    font-weight: 500;

    font-size: 48px;

    line-height: 1.5;

    color: var(--ke-text-primary);

    margin: 0 0 24px;

}

.ke-h2 {

    font-family: var(--ke-font);

    font-weight: 500;

    font-size: 40px;

    line-height: 1.2;

    color: var(--ke-text-primary);

    margin: 0 0 24px;

}

.ke-h3 {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 24px;

    line-height: 1.33;

    color: var(--ke-text-primary);

    margin: 0 0 12px;

}

.ke-muted {

    color: var(--ke-text-tertiary);

    font-size: 16px;

    line-height: 24px;

    padding: 0 !important;

    margin: 0;

}



/* --- Buttons --- */

.ke-btn-primary {

    display: inline-block;

    background: var(--ke-orange-40);

    color: var(--ke-text-primary);

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 18px;

    line-height: 1.6;

    padding: 12px 32px;

    border: none;

    cursor: pointer;

    text-decoration: none;

    transition: background 0.2s;

}

.ke-btn-primary:hover {

    background: var(--ke-orange-100);

    color: #fff;

    text-decoration: none;

}

.ke-btn-primary.ke-btn-full {

    width: 100%;

    text-align: center;

    box-sizing: border-box;

}



/* ============================================

   LIST VIEW (shortcode)

   ============================================ */



.ke-list-view {
    max-width: 1200px;
    margin: 0 auto;
}

/* Divi blanket p-reset kogu list-view jaoks */
.ke-list-view p {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--ke-text-primary, #000) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-transform: none !important;
    font-style: normal !important;
}



/* Page title */

/* Figma gap-[48px] kõigi sektsioonide vahel */
.ke-page-title {
    margin-bottom: 48px;
}

.ke-page-intro {
    margin-bottom: 48px;
}

/* ke-lv-header = H1 + intro wrapper, gap hero ees */
.ke-lv-header {
    margin-bottom: 48px;
}

/* ke-intro-text — Figma node 858:6423
   Body/Extra Large: Montserrat 400 / 24px / 1.6
   Kõik lapsed sunnitult samad — Divi ei kirjuta üle */
.ke-intro-text {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 400 !important;
    font-size: 24px !important;
    line-height: 1.6 !important;
    color: var(--ke-text-primary, #000) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.ke-intro-text p,
.ke-intro-text span,
.ke-intro-text div,
.ke-intro-text li,
.ke-intro-text em,
.ke-intro-text i,
.ke-intro-text strong,
.ke-intro-text b {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: var(--ke-text-primary, #000) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.ke-intro-text strong,
.ke-intro-text b { font-weight: 700 !important; }
.ke-intro-text em,
.ke-intro-text i  { font-style: italic !important; }



/* Hero upcoming */

.ke-hero-upcoming {

    display: flex;

    background: var(--ke-orange-10);

    border-radius: 12px;

    overflow: hidden;

    margin-bottom: 48px;

    position: relative;

}

.ke-hero-image {

    width: 43%;

    flex-shrink: 0;

    min-height: 280px;

    position: relative;

}

.ke-hero-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.ke-hero-details {

    flex: 1;

    padding: 48px;

    display: flex;

    flex-direction: column;

    gap: 14px;

}

.ke-hero-label {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 14px;

    line-height: 24px;

    letter-spacing: 2px;

    color: var(--ke-orange-100);

    margin: 0;

}

.ke-hero-title {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 24px;

    line-height: 1.33;

    color: var(--ke-text-primary);

    margin: 0;

}

.ke-hero-intro {

    font-family: var(--ke-font);

    font-size: 18px;

    line-height: 1.6;

    color: var(--ke-text-secondary);

    margin: 0;

}

.ke-hero-date {

    display: flex;

    align-items: center;

    gap: 10px;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 18px;

    line-height: 1.6;

    color: var(--ke-text-primary);

}

.ke-hero-date svg {

    flex-shrink: 0;

}

.ke-hero-details .ke-btn-primary {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    background: #f4c58f;

    color: #000;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 18px;

    line-height: 1.6;

    padding: 12px 32px;

    border: none;

    border-radius: 0;

    cursor: pointer;

    text-decoration: none;

    white-space: nowrap;

    overflow: hidden;

    transition: background 0.2s;

}

.ke-hero-details .ke-btn-primary:hover {

    background: var(--ke-orange-100);

    color: #fff;

    text-decoration: none;

}

.ke-limited-badge {

    font-weight: 700;

    color: var(--ke-orange-100);

}



/* About section */

.ke-about-section {

    margin-bottom: 48px;

}

.ke-about-content {

    display: flex;

    gap: 48px;

    align-items: flex-start;

}

.ke-about-text {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 16px;

}

.ke-about-text,
.ke-about-body {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--ke-text-primary, #000) !important;
}

/* Divi kirjutab p-tagid üle — nullime kõik !important-ga */
.ke-about-body p,
.ke-about-body li,
.ke-about-body div,
.ke-about-body span {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--ke-text-primary, #000) !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    text-transform: none !important;
    font-style: normal !important;
    letter-spacing: normal !important;
}
.ke-about-body p:last-child,
.ke-about-body div:last-child { margin-bottom: 0 !important; }
.ke-about-body strong, .ke-about-body b { font-weight: 700 !important; }
.ke-about-body em, .ke-about-body i   { font-style: italic !important; }



/* Organizers */

.ke-organizers-block {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.ke-organizers-label {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 14px;

    color: var(--ke-text-tertiary);

    margin: 0;

}

.ke-organizers-logos {

    display: flex;

    gap: 48px;

    align-items: center;

    justify-content: center;

    padding: 16px;

    background: var(--ke-gray-100);

    border-radius: 8px;

    flex-wrap: wrap;

}

.ke-org-logo img {

    max-height: 41px;

    width: auto;

}



/* Testimonial */

/* Testimonial — Figma node 858:7717
   Selektorid täpsustatud: .ke-testimonial .ke-testimonial-X (0,2,0)
   > .ke-list-view p (0,1,1) — võidab blanket-reegli */
.ke-testimonial {
    background: var(--ke-orange-20, #f9e2c7) !important;
    border-radius: 8px;
    padding: 32px !important;
    width: 420px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    box-sizing: border-box;
}

/* „ — H1 Bold, 48px, orange-100 — line-height: 1 eemaldab ülemise tühiku */
.ke-testimonial .ke-testimonial-mark {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 1 !important;
    color: var(--ke-orange-100, #ba6c12) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

/* Quote tekst — Body/Large 18px/1.6, Regular, text/primary */
.ke-testimonial .ke-testimonial-quote {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: var(--ke-text-primary, #000) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Autor — Body/Medium Bold 16px/24px, text/secondary */
.ke-testimonial .ke-testimonial-author {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--ke-text-secondary, #454854) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}



/* Quick facts */

.ke-quickfacts {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 48px;

    overflow: hidden;

}

.ke-fact {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2px;

    padding: 16px 40px;

    flex: 1;

    text-align: center;

}

.ke-fact-value {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 32px;

    line-height: 1.25;

    color: var(--ke-text-primary);

}

.ke-fact-label {

    font-family: var(--ke-font);

    font-size: 16px;

    line-height: 1.5;

    color: var(--ke-text-secondary);

}

.ke-fact-divider {

    width: 1px;

    height: 48px;

    background: var(--ke-gray-300);

    flex-shrink: 0;

}



/* Past events */

.ke-past-events {

    margin-bottom: 48px;

}

/* Events grid — Figma node 858:6440
   flex-wrap + gap 24px + items-start + content-start */
.ke-events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    align-items: flex-start;
    align-content: flex-start;
}

/* Event card — flex: 1 0 0 + max-width 25%
   Üksik kaart ei veni täislaiuseks — max-width piirab ~282px */
.ke-event-card {
    flex: 1 0 calc(25% - 18px);   /* 18px = 3/4 × 24px gap */
    max-width: calc(25% - 18px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px;
    border-radius: 8px;
}

.ke-card-thumb {

    height: 180px;

    border-radius: 4px;

    overflow: hidden;

}

.ke-card-thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 4px;

}

.ke-card-data {

    display: flex;

    flex-direction: column;

    gap: 4px;

    padding: 4px 0 8px;

}

.ke-card-title {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    line-height: 24px !important;
    color: var(--ke-text-primary, #000) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
}

.ke-card-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.ke-card-date {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 24px !important;
    color: var(--ke-text-secondary, #454854) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ke-card-link {
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--ke-text-primary, #000) !important;
    text-decoration: underline !important;
    padding: 0 !important;
    font-weight: 400 !important;
}

.ke-card-link:hover {

    color: var(--ke-orange-100);

}



/* ============================================

   SINGLE / DETAIL VIEW

   ============================================ */



.ke-single-wrap {

    background: #fff;

}



/* Hero */

.ke-single-hero {

    padding: 40px 120px 0;

    display: flex;

    flex-direction: column;

    gap: 40px;

    max-width: 1440px;

    margin: 0 auto;

    box-sizing: border-box;

}

.ke-single-hero-img {

    border-radius: 8px;

    overflow: hidden;

    height: 348px;

    position: relative;

}

.ke-single-hero-img img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

.ke-single-hero-content {

    display: flex;

    flex-direction: column;

    gap: 16px;

    padding-bottom: 40px;

    border-bottom: 2px solid var(--ke-orange-40);

    max-width: 1200px;

    align-self: stretch;

}

.ke-single-title {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 48px;

    line-height: 1.5;

    color: var(--ke-text-primary);

    margin: 0;

    padding: 0 !important; /* Divi h1 margin/padding override */

}

.ke-single-meta {

    font-family: var(--ke-font);

    font-size: 18px;

    line-height: 1.6;

    color: var(--ke-text-primary);

    margin: 0;

}



/* Main content */

.ke-single-main {

    padding: 40px 120px 56px;

    max-width: 1440px;

    margin: 0 auto;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    gap: 56px;

}



.ke-single-content-wrap {

    display: flex;

    gap: 40px;

    align-items: flex-start;

    max-width: 1200px;

}



.ke-single-primary {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 48px;

}



.ke-single-description {
    font-family: var(--ke-font) !important;
    font-size: 24px !important;
    line-height: 1.6 !important;
    color: var(--ke-text-primary) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    position: relative;
}
.ke-single-description * {
    font-family: var(--ke-font) !important;
    font-style: normal !important;
}
.ke-single-description p,
.ke-single-description li,
.ke-single-description ul,
.ke-single-description ol {
    font-size: 24px !important;
    line-height: 1.6 !important;
    color: var(--ke-text-primary) !important;
    font-weight: 400 !important;
}
.ke-single-description span,
.ke-single-description strong,
.ke-single-description em,
.ke-single-description b,
.ke-single-description i,
.ke-single-description a {
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}
.ke-single-description p {
    margin: 0 0 24px;
    padding: 0 !important; /* tühistab Divi p { padding-bottom: 1em } */
}
.ke-single-description p:last-child {
    margin-bottom: 0;
}



/* Agenda */

.ke-agenda-section {

    display: flex;

    flex-direction: column;

    gap: 24px;

}

.ke-agenda-list {

    display: flex;

    flex-direction: column;

}

.ke-agenda-item {

    display: grid;

    grid-template-columns: 1fr 3fr;

    gap: 24px;

    padding: 24px 0;

    border-bottom: 1px solid var(--ke-gray-300);

    position: relative;

}

.ke-agenda-time {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 16px;

    line-height: 24px;

    color: var(--ke-text-primary);

}

.ke-agenda-content {

    display: flex;

    flex-direction: column;

    gap: 4px;

}

.ke-agenda-title {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 18px;

    line-height: 1.6;

    color: var(--ke-text-primary);

    margin: 0;

    padding: 0 !important;

}

.ke-agenda-desc {

    font-family: var(--ke-font);

    font-size: 16px;

    line-height: 24px;

    color: var(--ke-text-secondary);

    margin: 0;

    padding: 0 !important;

}

.ke-agenda-actions {

    position: absolute;

    right: 0;

    top: 24px;

    display: flex;

    gap: 4px;

    opacity: 0;

    transition: opacity 0.2s;

}

.ke-agenda-item:hover .ke-agenda-actions {

    opacity: 1;

}



/* Sidebar */

.ke-single-sidebar {

    width: 373px;

    flex-shrink: 0;

    background: var(--ke-gray-100);

    padding: 24px;

    display: flex;

    flex-direction: column;

    gap: 32px;

    box-sizing: border-box;

}

.ke-sidebar-section {

    border-bottom: 1px solid var(--ke-gray-300);

    padding-bottom: 16px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.ke-sidebar-section:last-child {

    border-bottom: none;

}

.ke-sidebar-title {

    font-family: var(--ke-font);

    font-weight: 500;

    font-size: 24px;

    line-height: 1.33;

    color: var(--ke-text-primary);

    margin: 0;

}

.ke-sidebar-text {

    font-family: var(--ke-font);

    font-size: 16px;

    line-height: 24px;

    color: var(--ke-text-primary);

    margin: 0;

}

/* Figma: container line-height:0 + iga p saab oma line-height — eemaldab p-tevahelise ruumi */

.ke-sidebar-text.ke-location-block {

    line-height: 0;

}

.ke-sidebar-text p {

    margin: 0;

    padding: 0 !important; /* tühistab Divi p { padding-bottom: 1em } */

    line-height: 24px;

}

.ke-sidebar-value {

    padding: 0 !important;

    font-family: var(--ke-font);

    font-weight: 400;

    font-size: 16px;

    color: var(--ke-text-primary);

    margin: 0;

}

.ke-sidebar-note {

    padding: 0 !important;

    font-family: var(--ke-font);

    font-size: 16px;

    color: var(--ke-text-tertiary);

    margin: 0;

}



/* Contact card */

.ke-contact-card {

    display: flex;

    gap: 16px;

    align-items: center;

}

.ke-contact-photo {

    width: 76px;

    height: 76px;

    border-radius: 24px;

    object-fit: cover;

    flex-shrink: 0;

}

.ke-contact-info {

    display: flex;

    flex-direction: column;

    gap: 2px;

}

.ke-contact-name {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 18px;

    line-height: 1.6;

    color: var(--ke-text-primary);

    margin: 0;

    padding: 0 !important; /* tühistab Divi p { padding-bottom: 1em } */

}

.ke-contact-title {

    font-family: var(--ke-font);

    font-size: 16px;

    color: var(--ke-text-secondary);

    margin: 0;

    padding: 0 !important;

}

.ke-contact-email {

    font-family: var(--ke-font);

    font-size: 16px;

    color: var(--ke-text-primary);

    text-decoration: underline;

}



/* Speakers */

.ke-speakers-section {

    max-width: 1200px;

    display: flex;

    flex-direction: column;

    gap: 32px;

}

.ke-speakers-grid {

    display: flex;

    flex-wrap: wrap;

    gap: 32px 24px;

}

.ke-speaker-card {

    flex: 1 0 0;

    min-width: 200px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    align-items: center;

    position: relative;

}

.ke-speaker-photo img {

    width: 120px;

    height: 119px;

    border-radius: 24px;

    object-fit: cover;

}

.ke-speaker-photo-placeholder {

    width: 120px;

    height: 119px;

    border-radius: 24px;

    background: var(--ke-gray-300);

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 40px;

    color: var(--ke-text-tertiary);

}

.ke-speaker-info {

    text-align: center;

    display: flex;

    flex-direction: column;

    gap: 2px;

    width: 100%;

}

.ke-speaker-name {

    padding: 0 !important;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 18px;

    line-height: 1.6;

    color: var(--ke-text-primary);

    margin: 0;

}

.ke-speaker-title {

    padding: 0 !important;

    font-family: var(--ke-font);

    font-size: 16px;

    color: var(--ke-text-secondary);

    margin: 0;

}

.ke-speaker-org {

    padding: 0 !important;

    font-family: var(--ke-font);

    font-size: 14px;

    color: var(--ke-text-tertiary);

    margin: 0;

}

.ke-speaker-role {

    padding: 0 !important;

    font-family: var(--ke-font);

    font-size: 14px;

    color: var(--ke-text-tertiary);

    margin: 0;


}

.ke-speaker-actions {

    position: absolute;

    top: 4px;

    right: 4px;

    display: flex;

    gap: 4px;

    opacity: 0;

    transition: opacity 0.2s;

}

.ke-speaker-card:hover .ke-speaker-actions {

    opacity: 1;

}

.ke-speaker-add-card {

    justify-content: center;

    align-items: center;

    min-height: 160px;

    border: 2px dashed var(--ke-gray-300);

    border-radius: 8px;

}



/* ============================================

   FRONTEND EDIT CONTROLS

   ============================================ */



.ke-fe-btn {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-family: var(--ke-font);

    font-size: 13px;

    font-weight: 600;

    color: var(--ke-orange-100);

    background: rgba(244, 197, 143, 0.15);

    border: 1px solid var(--ke-orange-40);

    padding: 6px 12px;

    cursor: pointer;

    border-radius: 4px;

    text-decoration: none;

    transition: all 0.15s;

}

.ke-fe-btn:hover {

    background: var(--ke-orange-40);

    color: var(--ke-text-primary);

    text-decoration: none;

}

.ke-fe-btn-icon {

    background: rgba(255,255,255,0.9);

    border: 1px solid var(--ke-gray-300);

    border-radius: 4px;

    padding: 4px 8px;

    cursor: pointer;

    font-size: 14px;

    transition: all 0.15s;

}

.ke-fe-btn-icon:hover {

    background: var(--ke-orange-40);

    border-color: var(--ke-orange-100);

}

.ke-fe-btn-icon.ke-delete:hover {

    background: #ffeaea;

    border-color: #cc0000;

}

.ke-add-agenda-btn,

.ke-add-speaker-btn {

    margin-top: 8px;

}

.ke-sidebar-edit-hint {

    padding-top: 8px;

}

.ke-inline-edit-btn {

    position: absolute;

    bottom: 8px;

    right: 8px;

    font-size: 12px;

    padding: 4px 8px;

}



/* Inline editable hover effect */

[data-ke-editable] {

    position: relative;

    cursor: pointer;

}

[data-ke-editable]:hover::after {

    content: '✏️ Muuda';

    position: absolute;

    right: 0;

    top: 0;

    background: var(--ke-orange-40);

    color: var(--ke-text-primary);

    font-family: var(--ke-font);

    font-size: 11px;

    font-weight: 700;

    padding: 2px 8px;

    border-radius: 0 0 0 4px;

    pointer-events: none;

    white-space: nowrap;

}

.ke-editable-text {

    cursor: pointer;

    border-bottom: 1px dashed transparent;

    transition: border-color 0.15s;

}

.ke-editable-text:hover {

    border-bottom-color: var(--ke-orange-100);

}



/* MODAL */

.ke-fe-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.5);

    z-index: 99990;

}

.ke-fe-modal {

    position: fixed;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    background: #fff;

    border-radius: 8px;

    z-index: 99999;

    width: 560px;

    max-width: 90vw;

    max-height: 85vh;

    display: flex;

    flex-direction: column;

    box-shadow: 0 8px 32px rgba(0,0,0,0.2);

}

.ke-fe-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 24px 16px;

    border-bottom: 1px solid var(--ke-gray-300);

}

.ke-fe-modal-header h3 {

    margin: 0;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 20px;

}

.ke-fe-modal-close {

    background: none;

    border: none;

    font-size: 20px;

    cursor: pointer;

    padding: 4px 8px;

    color: var(--ke-text-tertiary);

}

.ke-fe-modal-body {

    padding: 24px;

    overflow-y: auto;

    flex: 1;

}

.ke-fe-modal-body label {

    display: block;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 13px;

    margin-bottom: 6px;

    color: var(--ke-text-secondary);

}

.ke-fe-modal-body input[type="text"],

.ke-fe-modal-body input[type="email"],

.ke-fe-modal-body input[type="url"],

.ke-fe-modal-body input[type="time"],

.ke-fe-modal-body textarea {

    width: 100%;

    padding: 8px 12px;

    border: 1px solid var(--ke-gray-300);

    border-radius: 4px;

    font-family: var(--ke-font);

    font-size: 14px;

    box-sizing: border-box;

    margin-bottom: 16px;

    color: var(--ke-text-primary);

}

.ke-fe-modal-body textarea {

    min-height: 100px;

    resize: vertical;

}

.ke-fe-modal-footer {

    display: flex;

    gap: 12px;

    padding: 16px 24px 20px;

    border-top: 1px solid var(--ke-gray-300);

}



/* ============================================

   RESPONSIVE

   ============================================ */




/* ============================================
   EDIT TOGGLE NUPP + EDIT MODE
   ============================================ */

.ke-edit-toggle-btn {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ke-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ke-orange-100);
    background: rgba(244, 197, 143, 0.15);
    border: 1px solid var(--ke-orange-40);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.15s;
}
.ke-edit-toggle-btn:hover {
    background: var(--ke-orange-40);
    color: var(--ke-text-primary);
}
.ke-edit-active .ke-edit-toggle-btn {
    background: rgba(0, 160, 80, 0.12);
    border-color: #00a050;
    color: #00a050;
}

/* Vaikimisi: kõik edit-UI peidetud */
.ke-fe-edit-img-btn              { display: none !important; }
.ke-speaker-actions              { display: none !important; }
.ke-speaker-add-card             { display: none !important; }
.ke-fe-btn-icon                  { display: none !important; }
.ke-add-agenda-btn,
.ke-add-speaker-btn              { display: none !important; }
[data-ke-editable]               { cursor: default !important; }
[data-ke-editable]:hover::after  { display: none !important; }
.ke-sidebar-edit-hint            { display: none !important; }
.ke-editable-text                { cursor: default; border-bottom-color: transparent !important; }

/* Edit mode aktiivselt */
.ke-edit-active .ke-fe-edit-img-btn              { display: flex !important; }
.ke-edit-active .ke-speaker-actions              { display: flex !important; opacity: 0; }
.ke-edit-active .ke-speaker-card:hover .ke-speaker-actions { opacity: 1; }
.ke-edit-active .ke-speaker-add-card             { display: flex !important; }
.ke-edit-active .ke-fe-btn-icon                  { display: inline-flex !important; }
.ke-edit-active .ke-add-agenda-btn,
.ke-edit-active .ke-add-speaker-btn              { display: block !important; }
.ke-edit-active [data-ke-editable]               { cursor: pointer !important; }
.ke-edit-active [data-ke-editable]:hover::after  { display: block !important; }
.ke-edit-active .ke-sidebar-edit-hint            { display: block !important; }
.ke-edit-active .ke-editable-text                { cursor: pointer; }

@media (max-width: 900px) {

    .ke-single-hero,

    .ke-single-main {

        padding-left: 20px;

        padding-right: 20px;

    }

    .ke-single-content-wrap {

        flex-direction: column;

    }

    .ke-single-sidebar {

        width: 100%;

    }

    .ke-hero-upcoming {

        flex-direction: column;

    }

    .ke-hero-image {

        width: 100%;

        height: 220px;

    }

    .ke-hero-details {

        padding: 24px;

    }

    .ke-about-content {

        flex-direction: column;

    }

    .ke-testimonial {

        width: 100%;

    }

    .ke-events-grid {

        flex-direction: column;

    }

    .ke-event-card {
        flex: 1 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
        min-width: 0;
    }

    .ke-h1 {

        font-size: 32px;

    }

    .ke-h2 {

        font-size: 28px;

    }

    .ke-single-title,

    .ke-h1-medium {

        font-size: 28px;

        line-height: 1.2; /* tihedam tahvelarvutil: 28 × 1.2 ≈ 34px */

    }

    .ke-quickfacts {

        flex-wrap: wrap;

    }

    .ke-fact {

        padding: 12px 20px;

    }

}



@media (max-width: 600px) {

    .ke-single-hero-img {

        height: 200px;

    }

    .ke-agenda-item {

        grid-template-columns: 1fr;

    }

    .ke-speaker-photo img,

    .ke-speaker-photo-placeholder {

        width: 80px;

        height: 80px;

    }

    .ke-speakers-grid {

        gap: 24px;

    }

    .ke-speaker-card {

        min-width: 140px;

    }

}



/* ============================================

   VAATA KA TEISI TEGEVUSI

   ============================================ */



/* ── Vaata ka teisi tegevusi — Figma node 798:6173 ──
   Kõik font-omadused !important — Divi ei kirjuta üle */

.ke-related-section {
    padding: 0 0 48px;
}

/* H2: Montserrat Medium 40px / 48px — Figma Headings/H2 */
.ke-related-section .ke-h2 {
    font-family: var(--ke-font) !important;
    font-weight: 500 !important;
    font-size: 40px !important;
    line-height: 48px !important;
    color: var(--ke-text-primary, #000) !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
}

.ke-related-grid {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Topic card — Figma node 543:20939
   max-width 33% — üksik kaart ei veni täislaiuseks */
.ke-related-card {
    flex: 1 0 calc(33.333% - 3px);  /* 3px = 2/3 × 4px gap */
    max-width: calc(33.333% - 3px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--ke-orange-20, #f9e2c7);
    text-decoration: none !important;
    color: var(--ke-text-primary, #000) !important;
    padding-bottom: 16px;
    transition: opacity 0.18s;
}

.ke-related-card:hover {
    opacity: 0.88;
    text-decoration: none !important;
    color: var(--ke-text-primary, #000) !important;
}

/* Pilt 200px — Figma node 543:20940 */
.ke-related-card-img {
    height: 200px;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.ke-related-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    max-width: none !important;
}

.ke-related-card-img-empty {
    width: 100%;
    height: 100%;
    background: var(--ke-gray-300, #c8c8d0);
}

/* Tekst: Montserrat Regular 16px/24px — Figma node 543:20942 */
.ke-related-card-text {
    display: flex;
    align-items: center;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.ke-related-card-text p {
    flex: 1 !important;
    font-family: var(--ke-font, 'Montserrat', sans-serif) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--ke-text-primary, #000) !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 48px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-style: normal !important;
}



@media (max-width: 700px) {

    .ke-related-grid {

        flex-direction: column;

    }

    .ke-related-card {

        flex: none;

        width: 100%;

    }

}



/* ============================================

   UUDISKIRI & ANNETUS (CTA sektsioon)

   Figma node: 546:25864

   ============================================ */



/* CTA — täislaius viewport, Figma node 546:25864 */
.ke-cta-section {
    background: #e3f2fd;
    /* Murra välja et_pb_code_inner (1200px) — classical 100vw escape */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    padding: 24px 120px;
    overflow: hidden;
    margin-bottom: 0;
}

/* Related section pärast CTA */
.ke-lv-tail {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 48px;
}



.ke-cta-inner {

    display: grid;

    grid-template-columns: minmax(0, 1fr) fit-content(100%) minmax(0, 1fr);

    max-width: 1200px;

    margin: 0 auto;

    width: 100%;

}



/* Vasak pool — uudiskiri, self-start */

.ke-cta-newsletter {

    display: flex;

    flex-direction: column;

    gap: 16px;

    padding: 48px;

    align-self: flex-start;

    overflow: hidden;

}



/* Parem pool — annetus, justify-center (vertikaalselt keskel) */

.ke-cta-donate {

    display: flex;

    flex-direction: column;

    gap: 12px;

    padding: 48px;

    justify-content: center;

    align-self: stretch;

    overflow: hidden;

}



/* 1px eraldaja täishõrguses */

.ke-cta-divider {

    width: 1px;

    background: #c8c8d0;

    align-self: stretch;

    flex-shrink: 0;

}



/* Header — ikoon + pealkiri */

.ke-cta-newsletter .ke-cta-header {

    display: flex;

    align-items: flex-start; /* Figma: items-start */

    gap: 16px;

}



.ke-cta-donate .ke-cta-header {

    display: flex;

    align-items: center;

    gap: 12px; /* annetus: gap-[12px] */

    width: 100%;

}



.ke-cta-header svg {

    flex-shrink: 0;

    width: 40px;

    height: 40px;

}



/* Pealkiri H3 Bold 32px / lh 40px */

.ke-cta-title {

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 32px;

    line-height: 40px;

    color: #000;

    margin: 0;

    white-space: nowrap;

}



/* Uudiskirja kirjeldus: body/medium 16px #454854 */

.ke-cta-newsletter .ke-cta-text {

    font-family: var(--ke-font);

    font-weight: 400;

    font-size: 16px;

    line-height: 24px;

    color: #454854;

    margin: 0;

    min-width: 100%;

    width: min-content;

}



/* Annetuse kirjeldus: body/small 14px #454854 */

.ke-cta-donate .ke-cta-text {

    font-family: var(--ke-font);

    font-weight: 400;

    font-size: 14px;

    line-height: 24px;

    color: #454854;

    margin: 0;

    min-width: 100%;

    width: min-content;

    flex: 1 0 0;

    min-height: 1px;

}



/* Vorm: gap 12px, items-start */

.ke-newsletter-form {

    display: flex;

    flex-direction: column;

}



.ke-newsletter-form-row {

    display: flex;

    gap: 12px;

    align-items: flex-start;

    overflow: hidden;

}



/* Input: w-280, px-16, py-10, border #c8c8d0, bg white */

.ke-newsletter-input {

    width: 280px;

    flex-shrink: 0;

    padding: 10px 16px !important;

    border: 1px solid #c8c8d0 !important;

    border-radius: 0 !important;

    background: #fff !important;

    font-family: var(--ke-font);

    font-weight: 400;

    font-size: 14px !important;

    line-height: 24px !important;

    color: #000;

    box-sizing: border-box;

    outline: none;

    align-self: stretch;

    min-height: 0;

    height: auto;

    margin: 0 !important;

    transition: border-color 0.15s;

    -webkit-appearance: none;

    appearance: none;

}



.ke-newsletter-input::placeholder {

    color: #686b78;

}



.ke-newsletter-input:focus {

    border-color: var(--ke-orange-100);

}



/* "Liitun" nupp: px-24 py-10, bg #f4c58f, bold 16px must */

.ke-newsletter-btn {

    padding: 10px 24px;

    background: #f4c58f;

    color: #000;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 16px;

    line-height: 24px;

    border: none;

    border-radius: 0;

    cursor: pointer;

    white-space: nowrap;

    flex-shrink: 0;

    transition: background 0.15s;

}



.ke-newsletter-btn:hover {

    background: var(--ke-orange-100);

    color: #fff;

}



/* "Toeta" nupp: px-24 py-10, bg #f4c58f, bold 16px must, justify-center */

.ke-cta-donate .ke-btn-primary {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px 24px;

    background: #f4c58f;

    color: #000;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 16px;

    line-height: 24px;

    border: none;

    border-radius: 0;

    text-decoration: none;

    overflow: hidden;

    white-space: nowrap;

    cursor: pointer;

    transition: background 0.15s;

}



.ke-cta-donate .ke-btn-primary:hover {

    background: var(--ke-orange-100);

    color: #fff;

    text-decoration: none;

}



.ke-btn-disabled {

    opacity: 0.5;

    cursor: default;

    pointer-events: none;

}



/* Responsive */

@media (max-width: 900px) {

    .ke-cta-section {

        padding: 24px 20px;

    }

    .ke-cta-inner {

        grid-template-columns: 1fr;

    }

    .ke-cta-divider {

        width: 100%;

        height: 1px;

        align-self: auto;

    }

    .ke-cta-newsletter,

    .ke-cta-donate {

        padding: 32px 24px;

        align-self: auto;

    }

    .ke-newsletter-input {

        width: 100%;

        flex: 1;

    }

}



/* SVG logod — kindla kõrgusega, auto laius */

.ke-org-logo img[src$=".svg"],

.ke-org-logo img[src$=".svgz"] {

    width: auto;

    max-height: 41px;

    height: 41px;

}



/* ============================================

   MÖÖDUNUD ÜRITUS — spetsiifilised stiilid

   ============================================ */



/* Möödunud sündmuse badge sidebaris */

.ke-past-event-badge {

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px dashed #000;

    padding: 24px 16px;

    font-family: var(--ke-font);

    font-weight: 700;

    font-size: 18px;

    line-height: 1.6;

    color: #000;

    text-align: center;

    width: 100%;

    box-sizing: border-box;

}



/* Video sektsioon */

.ke-video-section {

    display: flex;

    flex-direction: column;

    gap: 16px;

    width: 100%;

}



.ke-video-meta {

    font-family: var(--ke-font);

    font-size: 18px;

    line-height: 1.6;

    color: #000;

    margin: 0;

    white-space: nowrap;

}



.ke-video-meta strong {

    font-weight: 700;

}



.ke-video-player {

    position: relative;

    width: 100%;

    border-radius: 8px;

    overflow: hidden;

    background: #000;

    aspect-ratio: 16 / 9;

}



.ke-video-iframe {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    border: none;

    border-radius: 8px;

}



/* Galerii sektsioon */

.ke-gallery-section {

    max-width: 1200px;

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 24px;

}



.ke-gallery-grid {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

}



.ke-gallery-item {

    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

}



.ke-gallery-item img {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    max-width: none;

}



@media (max-width: 700px) {

    .ke-gallery-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;

    }

}



/* ============================================

   MOBIIL — detailvaade (≤768px)

   Figma node: 858-7148

   ============================================ */



@media (max-width: 768px) {



    /* Hero */

    .ke-single-hero {

        padding: 16px 16px 0;

        gap: 24px;

    }

    .ke-single-hero-img {

        height: 172px;

        border-radius: 8px;

    }

    .ke-single-hero-content {

        padding-bottom: 40px;

    }

    .ke-single-title {

        font-size: 36px;

        line-height: 1.15; /* tihedam mobiilis */

        margin: 0;

        padding: 0 !important;

    }

    .ke-single-meta {

        font-size: 18px;

    }

    /* Hero register button: full width on mobile (Figma) */

    .ke-single-hero-content .ke-btn-primary {

        display: block;

        text-align: center;

        box-sizing: border-box;

    }



    /* Main content */

    .ke-single-main {

        padding: 24px 16px 40px;

        gap: 32px;

    }



    /* Split: sidebar läheb põhiveergu alla */

    .ke-single-content-wrap {

        flex-direction: column;

        gap: 32px;

    }

    .ke-single-primary {

        gap: 32px;

    }



    /* Sidebar täislaiune, Figma: bg gray-100, padding 24/16/40, gap 16 */

    .ke-single-sidebar {

        width: 100%;

        box-sizing: border-box;

        padding: 24px 16px 40px;

        gap: 16px;

    }

    .ke-sidebar-title {

        font-size: 20px;

        line-height: 24px;

    }



    /* Korraldajad: gap 24px mobiilis (desktop 48px) */

    .ke-organizers-logos {

        gap: 24px;

    }



    /* Kirjeldus */

    .ke-single-description {

        font-size: 22px;

    }



    /* Programm pealkiri */

    .ke-agenda-section .ke-h1-medium {

        font-size: 36px;

        line-height: 48px;

    }



    /* Esinejad: 2-veeru grid */

    .ke-speakers-section {

        max-width: 100%;

    }

    .ke-speakers-section .ke-h2 {

        font-size: 32px;

        line-height: 40px;

    }

    .ke-speakers-grid {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 32px 24px;

    }

    .ke-speaker-card {

        min-width: unset;

        flex: unset;

    }

    .ke-speaker-add-card {

        grid-column: 1 / -1;

    }

    /* Figma mobiil: foto 120×119px (900px reegel teeb 80px, tagasi Figma suurusele) */

    .ke-speaker-photo img,

    .ke-speaker-photo-placeholder {

        width: 120px;

        height: 119px;

    }



    /* Galerii: 3-veeru grid, 2 rida — jääb samaks aga väiksem gap */

    .ke-gallery-section .ke-h2 {

        font-size: 32px;

        line-height: 40px;

    }

    .ke-gallery-grid {

        gap: 8px;

    }



    /* Video */

    .ke-video-meta {

        font-size: 16px;

        white-space: normal;

        word-break: break-word;

    }



    /* "Vaata ka teisi tegevusi" — vertikaalselt */

    .ke-related-section {

        padding: 0 0 32px;

    }

    .ke-related-section .ke-h2 {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    .ke-related-grid {

        flex-direction: column;

        gap: 12px;

    }

    .ke-related-card {

        max-width: 100%;

        width: 100%;

    }



    /* Uudiskiri CTA — vertikaalne, tsentreeritud */

    .ke-cta-section {

        padding: 0;

    }

    .ke-cta-inner {

        grid-template-columns: 1fr;

    }

    .ke-cta-newsletter {

        flex-direction: column;

        align-items: center;

        padding: 24px 16px;

        gap: 16px;

    }

    .ke-cta-newsletter .ke-cta-header {

        flex-direction: column;

        align-items: center;

        gap: 0;

    }

    .ke-cta-newsletter .ke-cta-text {

        text-align: center;

        width: 100%;

    }

    .ke-cta-donate {

        align-items: center;

        padding: 24px 16px;

        gap: 16px;

    }

    .ke-cta-donate .ke-cta-header {

        flex-direction: column;

        align-items: center;

        gap: 0;

        width: 100%;

        justify-content: center;

    }

    .ke-cta-donate .ke-cta-text {

        text-align: center;

        width: 100%;

    }

    .ke-cta-title {

        font-size: 24px;

        line-height: 32px;

        text-align: center;

    }

    .ke-cta-divider {

        width: 100%;

        height: 1px;

        align-self: auto;

    }

    .ke-newsletter-form-row {

        width: 100%;

    }

    .ke-newsletter-input {

        width: 0;

        flex: 1 1 0;

        min-width: 0;

    }



    /* Möödunud sündmuse badge */

    .ke-past-event-badge {

        font-size: 16px;

        padding: 16px;

    }



    /* Üldvaade */

    .ke-single-wrap {

        overflow-x: hidden;

    }



    /* H2 üldiselt */

    .ke-single-main .ke-h2 {

        font-size: 32px;

        line-height: 40px;

    }

}



/* ============================================

   KORRALDAJAD — frontend modal

   ============================================ */



.ke-org-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

    max-height: 60vh;

    overflow-y: auto;

}



.ke-org-row {

    display: flex;

    align-items: center;

    gap: 12px;

    background: #f7f7f8;

    border: 1px solid #e9e9ec;

    border-radius: 6px;

    padding: 10px 12px;

}



.ke-org-logo-preview {

    width: 80px;

    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #fff;

    border: 1px solid #e9e9ec;

    border-radius: 4px;

    overflow: hidden;

}



.ke-org-logo-preview img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    display: block;

}



.ke-org-no-logo {

    font-size: 11px;

    color: #999;

    text-align: center;

}



.ke-org-fields {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.ke-org-fields input {

    width: 100%;

    padding: 5px 8px;

    border: 1px solid #c8c8d0;

    border-radius: 3px;

    font-size: 13px;

    box-sizing: border-box;

    font-family: var(--ke-font);

}



.ke-org-fields input:focus {

    outline: none;

    border-color: #ba6c12;

}



.ke-org-btns {

    display: flex;

    flex-direction: column;

    gap: 4px;

    flex-shrink: 0;

    align-items: flex-end;

}



.ke-org-remove-btn {

    background: none;

    border: none;

    cursor: pointer;

    color: #dc3232;

    font-size: 18px;

    font-weight: 700;

    line-height: 1;

    padding: 2px 4px;

    border-radius: 3px;

    transition: background 0.15s;

}



.ke-org-remove-btn:hover {

    background: #fce0e0;

}



/* ============================================

   ESINEJA FOTO PICKER — modal

   ============================================ */



.ke-sp-photo-wrap {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 8px 0;

}



.ke-sp-photo-wrap #ke-sp-photo-preview {

    width: 64px;

    height: 64px;

    object-fit: cover;

    border-radius: 16px;

    border: 1px solid #e9e9ec;

    flex-shrink: 0;

    display: block;

}



.ke-sp-photo-btns {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



/* ============================================

   VAATA KA TEISI TEGEVUSI — single template wrapper

   Figma node 798-6173: px-[120px] pb-[48px], inner max-w-[1200px]

   ============================================ */



.ke-single-related-outer {

    width: 100%;

    padding: 0 120px 48px;

    box-sizing: border-box;

}



.ke-single-related-outer .ke-related-section {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0;

}



.ke-single-related-outer .ke-related-section {

    width: 100%;

}

.ke-single-related-outer .ke-related-grid {

    justify-content: flex-start;

    width: 100%;

}



@media (max-width: 900px) {

    .ke-single-related-outer {

        padding: 0 16px 32px;

    }

}



/* ============================================

   VAATA KA TEISI TEGEVUSI — frontend modal read

   ============================================ */



.ke-rp-row {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    background: #f7f7f8;

    border: 2px solid #e9e9ec;

    border-radius: 6px;

    padding: 10px;

    transition: border-color 0.15s, background 0.15s;

}

.ke-rp-row.ke-rp-over {

    border-color: #ba6c12;

    background: #fcebda;

}

.ke-rp-row.ke-rp-dragging {

    opacity: 0.5;

    border-style: dashed;

}



.ke-rp-handle {

    cursor: grab;

    font-size: 20px;

    color: #aaa;

    padding: 4px 2px;

    user-select: none;

    flex-shrink: 0;

    margin-top: 2px;

}

.ke-rp-handle:hover { color: #666; }



.ke-rp-body {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.ke-rp-search-wrap {

    position: relative;

    width: 100%;

}



.ke-rp-search-input {

    width: 100%;

    font-size: 13px;

    padding: 6px 10px;

    border: 1px solid #c8c8d0;

    border-radius: 3px;

    font-family: var(--ke-font);

    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat right 8px center;

    padding-right: 28px;

    box-sizing: border-box;

}

.ke-rp-search-input:focus {

    outline: none;

    border-color: #ba6c12;

}



.ke-rp-search-dropdown {

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    background: #fff;

    border: 1px solid #c8c8d0;

    border-top: none;

    border-radius: 0 0 4px 4px;

    max-height: 220px;

    overflow-y: auto;

    z-index: 9999;

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);

}



.ke-rp-suggestion {

    padding: 7px 10px;

    font-size: 13px;

    font-family: var(--ke-font);

    cursor: pointer;

    color: #333;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    transition: background 0.1s;

}

.ke-rp-suggestion:hover {

    background: #fcebda;

    color: #ba6c12;

}



.ke-rp-main {

    display: flex;

    gap: 12px;

    align-items: flex-start;

}



.ke-rp-img-col {

    flex-shrink: 0;

    width: 140px;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.ke-rp-img-preview {

    width: 140px;

    height: 88px;

    background: #e9e9ec;

    border-radius: 4px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}



.ke-rp-no-img {

    font-size: 11px;

    color: #999;

    text-align: center;

}



.ke-rp-focal-sliders {

    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-top: 2px;

}



.ke-rp-fields {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.ke-rp-fields input {

    width: 100%;

    padding: 6px 8px;

    border: 1px solid #c8c8d0;

    border-radius: 3px;

    font-size: 13px;

    box-sizing: border-box;

    font-family: var(--ke-font);

}



.ke-rp-fields input:focus {

    outline: none;

    border-color: #ba6c12;

}



/* Kaardi pilt kasutab object-position fookuspunktist */

.ke-related-card-img img {

    object-fit: cover;

    width: 100%;

    height: 100%;

}



/* ============================================

   HERO PILDI MUUTMINE — frontend

   ============================================ */



.ke-single-hero-img {

    position: relative;

}



.ke-fe-edit-img-btn {

    position: absolute;

    bottom: 12px;

    right: 12px;

    background: rgba(255,255,255,0.92);

    border: 2px solid #ba6c12;

    border-radius: 4px;

    padding: 6px 12px;

    font-size: 13px;

    font-weight: 700;

    font-family: var(--ke-font);

    color: #ba6c12;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;

    transition: background 0.15s, color 0.15s;

    z-index: 10;

    backdrop-filter: blur(4px);

}

.ke-fe-edit-img-btn:hover {

    background: #ba6c12;

    color: #fff;

}

.ke-fe-edit-img-btn .dashicons {

    font-size: 16px;

    width: 16px;

    height: 16px;

}



/* Tühi hero (pilt puudub) */

.ke-hero-img-empty {

    height: 80px;

    background: #f0f0f0;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding: 12px;

    box-sizing: border-box;

}

.ke-hero-img-empty .ke-fe-edit-img-btn {

    position: static;

}


/* ─── Testimonial — detailvaade ─── */
/* Figma: node 858-6419 — orange-20 kast, paremal "Mis on" tekstist */
.ke-testimonial-detail {
    background: var(--ke-orange-20, #f9e2c7);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}
.ke-testimonial-detail .ke-testimonial-mark {
    font-family: var(--ke-font, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.5;
    color: var(--ke-orange-100, #ba6c12);
    margin: 0;
}
.ke-testimonial-detail .ke-testimonial-quote {
    font-family: var(--ke-font, 'Montserrat', sans-serif);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ke-text-primary, #000);
    margin: 0;
}
.ke-testimonial-detail .ke-testimonial-author {
    font-family: var(--ke-font, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ke-text-secondary, #454854);
    margin: 0;
}
