/* Minification failed. Returning unminified contents.
(73,17): run-time error CSS1039: Token not allowed after unary operator: '-bs-secondary-color'
(2367,14): run-time error CSS1030: Expected identifier, found '#leadOffer'
(2367,38): run-time error CSS1031: Expected selector, found ')'
(2367,38): run-time error CSS1025: Expected comma or open brace, found ')'
(2396,10): run-time error CSS1030: Expected identifier, found '#leadOffer'
(2396,34): run-time error CSS1031: Expected selector, found ')'
(2396,34): run-time error CSS1025: Expected comma or open brace, found ')'
(2401,14): run-time error CSS1030: Expected identifier, found '#leadOffer'
(2401,38): run-time error CSS1031: Expected selector, found ')'
(2401,38): run-time error CSS1025: Expected comma or open brace, found ')'
(2686,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(2688,24): run-time error CSS1039: Token not allowed after unary operator: '-kg-chart-btn-color'
(2689,28): run-time error CSS1039: Token not allowed after unary operator: '-kg-chart-btn-color'
(3091,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3092,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3093,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3094,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3095,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3096,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3097,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3098,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3099,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3100,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3101,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3102,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3103,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3124,17): run-time error CSS1039: Token not allowed after unary operator: '-bs-accordion-active-color'
(3125,28): run-time error CSS1039: Token not allowed after unary operator: '-bs-accordion-active-bg'
 */
/**
 * KupatGemel.aspx - Bootstrap 5 overrides and RTL for fund details page
 * Works with YMMasterPage (already has dir="rtl" on html)
 */

/*
 * וידוא ש-body ו-form לא מגבילים את המרכוז כשהדף הוא קופת גמל.
 * השימוש ב-body.kg-body (מתווסף ע"י inline script בדפי KupatGemel ו-CompareKupotGemelDetails)
 * מעניק תאימות מלאה לדפדפנים ישנים שלא תומכים ב-:has() (Safari <15.4, Firefox ישן).
 */
body.kg-body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
body.kg-body form#form1 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Override compareTables #main – full width on small screens, centered with max-width on desktop.
   .kg-main is added by inline script in KupatGemel.aspx ו-CompareKupotGemelDetails.aspx */
#main.kg-main {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* RTL and layout for KupatGemel */
.kupat-gemel-page {
    direction: rtl;
    text-align: right;
    /* הוספת padding-bottom כדי לאפשר גלילה נוספת מתחת לכפתור הקבוע */
    padding-bottom: 100px;
    /* בסיס קריאות: 16px — עקבי עם Bootstrap ו-NCAG לטקסט ראשי */
    font-size: 1rem;
}

/* היררכיית כותרות עמוד (דריסת compareTables) */
.kupat-gemel-page .h1Title {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    line-height: 1.35;
    font-weight: 700;
}

.kupat-gemel-page .h2Title {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Cards: keep original title styling for data sections */
.kupat-gemel-page .card-header.gemel-card-header {
    background-color: #829a2c;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.0625rem;
    line-height: 1.35;
}

/* כיתוב משני אחיד (תחת גרפים, מיון) — 14px */
.kg-muted-caption {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--bs-secondary-color);
}

.kg-page .card {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Tables inside cards - preserve original gemelTable look with Bootstrap */
.kg-page .table.gemelTable {
    margin-bottom: 0;
    /* דריסת compareTables 14px + איחוד עם תאים */
    font-size: 1rem;
    line-height: 1.45;
}

.kg-page .table.gemelTable .titleCell,
.kg-page .table.gemelTable th.titleCell {
    background-color: #829a2c;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.kg-page .table.gemelTable .titleCell2 {
    background-color: #edf2f5;
    font-weight: 600;
}

.kg-page .table.gemelTable .gemelCellDetailsTitle,
.kg-page .table.gemelTable .gemelCellDetailsBody,
.kg-page .table.gemelTable th.gemelCellDetailsTitle {
    /* דריסת compareTables 12px — גוף טבלה בגודל בסיס קריא */
    font-size: 1rem !important;
    line-height: 1.45;
}

.kg-page .table.gemelTable .gemelCellDetailsTitle {
    background-color: #f8f9fa;
    font-weight: 500;
    /* override compareTables.css text-indent:8px — יישור RTL נקי בכל טבלאות דף הקופה */
    text-indent: 0;
}

/* מובייל: עמודת הכותרת ~30%, עמודת הערכים ~70% (ההפך מרוחב קבוע 265px שדוחק את המספרים) */
@media (max-width: 576px) {
    .kg-page .table.gemelTable {
        table-layout: fixed;
        width: 100%;
    }

    .kg-page .table.gemelTable td.gemelCellDetailsTitle {
        width: 30% !important;
        max-width: 30%;
        box-sizing: border-box;
        word-break: break-word;
        hyphens: auto;
    }

    .kg-page .table.gemelTable td.gemelCellDetailsBody {
        width: 70% !important;
        box-sizing: border-box;
    }

    /* יתרות: צמצום ~15% לעמודת הכותרות (מ־30% ל־25%) כדי לפנות מקום לערכים */
    .kg-page .table.gemelTable.kg-mob-table-balances td.gemelCellDetailsTitle {
        width: 25% !important;
        max-width: 25%;
    }

    .kg-page .table.gemelTable.kg-mob-table-balances td.gemelCellDetailsBody {
        width: 75% !important;
    }

    /* חשיפות וחלוקה לנכסים: עמודה ראשונה מתחת ל־50%, table-layout כדי לדרוס Width="230px" */
    .kg-page .table.gemelTable.kg-mob-3col-first-narrow {
        table-layout: fixed;
    }

    .kg-page .table.gemelTable.kg-mob-3col-first-narrow th:nth-child(1),
    .kg-page .table.gemelTable.kg-mob-3col-first-narrow td:nth-child(1) {
        width: 38% !important;
        max-width: 40% !important;
        min-width: 0;
        box-sizing: border-box;
        word-break: break-word;
        hyphens: auto;
    }

    /* עמודה 2 (אחוז) רחבה יותר מ-22% כדי שערכים כמו "95.15%" לא יישברו לשתי שורות;
       עמודה 3 (סכום) מצומצמת בהתאמה — הערכים שם בדרך כלל קצרים מספיק. */
    .kg-page .table.gemelTable.kg-mob-3col-first-narrow th:nth-child(2),
    .kg-page .table.gemelTable.kg-mob-3col-first-narrow td:nth-child(2) {
        width: 28% !important;
        box-sizing: border-box;
    }

    .kg-page .table.gemelTable.kg-mob-3col-first-narrow th:nth-child(3),
    .kg-page .table.gemelTable.kg-mob-3col-first-narrow td:nth-child(3) {
        width: 34% !important;
        box-sizing: border-box;
    }

    /* שורות כותרת משנה (תא יחיד / colspan) */
    .kg-page .table.gemelTable.kg-mob-3col-first-narrow tr > td:only-child,
    .kg-page .table.gemelTable.kg-mob-3col-first-narrow tr > th:only-child {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.kg-page .table.gemelTable .coloredCell .gemelCellDetailsTitle,
.kg-page .table.gemelTable tr.coloredCell td {
    background-color: #e8f4f0;
}

/* Positive/negative numbers */
.kg-page .text-positive { color: #006633; }
.kg-page .text-negative { color: #D01D30; }

/* Breadcrumb – רווחים נאותים, תמיכה ב-RTL (::after במקום ::before) */
.kg-page .breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0;
}
.kg-page .breadcrumb-item {
    padding-inline: 0.35rem;
}
.kg-page .breadcrumb-item + .breadcrumb-item::before {
    content: none;
}
.kg-page .breadcrumb-item:not(:last-child)::after {
    padding-inline: 0.5rem;
    color: #17765a;
    content: "›";
}
.kg-page .breadcrumb-item a {
    color: #17765a;
    text-decoration: none;
}
.kg-page .breadcrumb-item a:hover {
    color: #0f5a42;
    text-decoration: underline;
}
.kg-page .breadcrumb-item.active {
    color: #212529;
}

.kg-page .kupat-back-link {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Quick search card above general data */
#kgQuickSearchCard .form-label {
    color: #1f2937;
}

#kgQuickSearchResults .list-group-item mark {
    background-color: #fff3bf;
    padding: 0;
}

#kgQuickSearchButton {
    min-height: 38px;
}

/* Insights מתחת לשורות טבלת היתרות */
.kg-flow-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.45;
    text-align: right;
    direction: rtl;
    color: #6c757d;
}

.kg-flow-insight-icon {
    flex-shrink: 0;
    margin-top: 0.08em;
    font-size: 1em;
    line-height: 1;
    opacity: 0.9;
    color: inherit;
}

.kg-flow-insight-text {
    flex: 1;
    min-width: 0;
}

/* סימולציית צבירה (דף קופה) */
.kg-sim-card-lead {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 0.875rem;
}

.kg-sim-warning-text {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: #664d03;
    margin: 0;
    padding: 0.65rem 0.75rem;
    background: #fff8e6;
    border: 1px solid rgba(200, 150, 0, 0.35);
    border-radius: 0.375rem;
}

.kg-sim-warning-icon {
    margin-inline-end: 0.25rem;
}

.kg-accumulation-sim-card .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.kg-sim-result-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.kg-sim-result-value {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1e4620;
    line-height: 1.3;
}

.kg-sim-result-value.kg-sim-result-value--negative {
    color: #d01d30;
}

@media (max-width: 576px) {
    .kg-sim-result-value {
        font-size: 1.08rem;
    }
}

/* כפתורי תקופה במחשבון הסימולציה — עקביות עם ערכת הצבעים */
.kg-accumulation-sim-card .kg-sim-period-btn.active {
    background-color: #1e4620;
    border-color: #1e4620;
    color: #fff;
}

/* גרף סימולציית צבירה — ערך תיק מול הפקדות מצטברות */
.kg-sim-chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    min-height: 260px;
}
.kg-sim-chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
@media (max-width: 767.98px) {
    .kg-sim-chart-container {
        height: 280px;
        min-height: 240px;
    }
}

/* טיזר למחשבון ריבית דריבית (לפני גרף סימולציה) */
#kg-accumulation-sim-card .kg-sim-compound-teaser .kg-sim-compound-teaser-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

#kg-accumulation-sim-card .kg-sim-compound-teaser a {
    white-space: normal;
    word-break: break-word;
}

/* ניתוח ביצועי הקופה — מתחת לטבלת נתונים כלליים (לא בתוך הטבלה) */
.kg-page .kg-fund-performance-analysis {
    margin-top: 0.75rem;
    padding: 0 0 0.875rem;
    background-color: #fafbf9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.375rem;
    overflow: hidden;
    box-sizing: border-box;
}

.kg-page .kg-fund-performance-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    background-color: #829a2c;
    padding: 0.5rem 0.75rem;
    margin: 0 0 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

/* מרווח תחתון כמו בין כרטיסי האזורים (תואם .kg-fund-summary-zone margin-bottom) */
.kg-page .kg-fund-performance-analysis .kg-fund-summary {
    padding: 0 0.75rem;
    margin: 0;
}

/* אזורים: תשואות / יתרות / דמי ניהול — כרטיסיות עם פס ירוק-זית כמו כותרות הכרטיס */
.kg-page .kg-fund-summary-zone {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.875rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    border-inline-start: 4px solid #829a2c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.kg-page .kg-fund-summary-zone:last-child {
    margin-bottom: 0;
}

.kg-page .kg-fund-summary-zone-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #5a6b20;
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e9ecef;
}

.kg-page .kg-fund-summary-zone-body {
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
}

/* אזור יתרות: בלי ul/li — שורות div מיושרות לימין כמו שאר גוף הכרטיס (בלי ריווח שמאלי של רשימה) */
.kg-page .kg-fund-summary-zone--balances .kg-fund-summary-zone-body {
    direction: rtl;
    text-align: right;
}

.kg-page .kg-fund-summary-zone--balances .kg-fund-summary-flow.kg-fund-summary-flow--stacked {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.kg-page .kg-fund-summary-zone--balances .kg-fund-summary-flow-row {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
    box-sizing: border-box;
}

.kg-page .kg-fund-summary-zone--balances .kg-fund-summary-flow-label {
    color: #495057;
    font-weight: 700;
}

@media (max-width: 576px) {
    .kg-page .kg-fund-performance-analysis .kg-fund-summary {
        padding: 0 0.65rem;
    }

    .kg-page .kg-fund-summary-zone {
        padding: 0.65rem 0.75rem;
        margin-bottom: 0.65rem;
    }

    .kg-page .kg-fund-summary-zone-title {
        font-size: 0.9375rem;
    }
}

/* תוכן ניתוח ביצועים — גודל גוף */
.kg-fund-summary {
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
}

.kg-fund-summary-inner .kg-fund-summary-return-line {
    border-inline-start: 3px solid #829a2c;
    padding-inline-start: 0.65rem;
}

.kg-fund-summary-inner .kg-fund-summary-missing {
    border-inline-start-color: #adb5bd;
    font-style: normal;
    color: #6c757d;
}

.kg-fund-summary-cross {
    background: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.kg-fund-summary-tier-line {
    color: #1e4620;
}

.kg-fund-summary-tier-badges {
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: baseline;
}

.kg-fund-summary-badge {
    white-space: normal;
}

.kg-fund-summary-avg-note {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.45;
}

.kg-fund-summary-flow-label {
    font-weight: 600;
    color: #5c636a;
}

/* השוואה לממוצע בתקציר — ירוק מעל, אדום מתחת */
.kg-fund-summary .kg-vs-avg {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem;
    vertical-align: baseline;
}

.kg-fund-summary .kg-vs-avg-icon {
    flex-shrink: 0;
    font-size: 1em;
    line-height: 1;
}

.kg-fund-summary .kg-vs-avg-above .kg-vs-avg-text,
.kg-fund-summary .kg-vs-avg-above .kg-vs-avg-strong {
    color: #006633;
}

.kg-fund-summary .kg-vs-avg-below .kg-vs-avg-text,
.kg-fund-summary .kg-vs-avg-below .kg-vs-avg-strong {
    color: #d01d30;
}

.kg-fund-summary .kg-vs-avg-above .kg-vs-avg-icon {
    color: #006633;
}

.kg-fund-summary .kg-vs-avg-below .kg-vs-avg-icon {
    color: #d01d30;
}

/* תגי דירוג (מובילה / נגררת) */
.kg-fund-summary .kg-tier-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    white-space: normal;
}

.kg-fund-summary .kg-tier-leading .kg-tier-pill-strong {
    color: #006633;
}

.kg-fund-summary .kg-tier-leading .kg-tier-pill-icon {
    color: #006633;
}

.kg-fund-summary .kg-tier-lagging .kg-tier-pill-strong {
    color: #d01d30;
}

.kg-fund-summary .kg-tier-lagging .kg-tier-pill-icon {
    color: #d01d30;
}

.kg-fund-summary .kg-tier-mid .kg-tier-pill-icon {
    color: #6c757d;
}

.kg-fund-summary .kg-lead-phrase-good {
    color: #006633;
    font-weight: 600;
}

.kg-fund-summary .kg-lead-phrase-bad {
    color: #d01d30;
    font-weight: 600;
}

/* Override global compareTables: charts must flow in document, not position:absolute */
.kg-page .chartBase,
.kg-page .chart1,
.kg-page .chart2,
.kg-page .chart3 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100%;
    border: 1px solid #bebebe;
    box-sizing: border-box;
}

/* Ensure data column and sidebar use flex flow, not float */
.kg-page .kg-data,
.kg-page .kg-sidebar {
    float: none !important;
}

/*
  compareTables sets .lead { width:300px }. KupatGemel sidebar trust card spans the
  column — match lead block width + shell to .kg-trust-card (Wave 1.5).
  Mobile reparents #lead into #leadMobile; same visuals must apply there too.
*/
.kg-page.kupat-gemel-page .kg-sidebar #lead.lead,
.kg-page.kupat-gemel-page #leadMobile #lead.lead,
body.kg-body #leadMobile #lead.lead {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    float: none !important;
    border: 1px solid #d7eadf;
    border-radius: 8px;
    background: #f7fbf3;
    overflow: hidden;
    color: #1f3a33;
}
.kg-page.kupat-gemel-page .kg-sidebar #lead.lead .kg-lead-form-v2,
.kg-page.kupat-gemel-page #leadMobile #lead.lead .kg-lead-form-v2,
body.kg-body #leadMobile #lead.lead .kg-lead-form-v2 {
    padding: 0.95rem 1rem 1rem;
}
.kg-page.kupat-gemel-page #lead.lead .lead-legacy-font-reset,
body.kg-body #leadMobile #lead.lead .lead-legacy-font-reset {
    font-size: 16px;
}
.kg-page.kupat-gemel-page #lead.lead .leadDescription,
body.kg-body #leadMobile #lead.lead .leadDescription {
    font-size: inherit;
}
.kg-page.kupat-gemel-page #lead.lead .leadH3Title,
body.kg-body #leadMobile #lead.lead .leadH3Title {
    height: auto;
    min-height: 2.35rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: #17765a;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem !important;
    line-height: 1.35;
    text-align: center;
}
.kg-page.kupat-gemel-page .kg-sidebar #lead.lead .tbLead,
.kg-page.kupat-gemel-page #leadMobile #lead.lead .tbLead,
body.kg-body #leadMobile #lead.lead .tbLead {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
.kg-page.kupat-gemel-page .kg-sidebar #lead.lead #expandYazranim,
.kg-page.kupat-gemel-page #leadMobile #lead.lead #expandYazranim,
body.kg-body #leadMobile #lead.lead #expandYazranim {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Desktop: table + chart side by side (row .kg-table-chart has col-lg-6 | col-lg-6) */
.kg-page .kg-table-chart .chartBase {
    min-width: 0;
}

.kg-page .kg-yitrot-chart-container {
    position: relative !important;
    min-height: 320px;
    padding: 0.5rem;
}
.kg-page .kg-yitrot-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Prevent table column from overflowing into chart column */
.kg-page .kg-table-chart > .col-12 {
    min-width: 0;
}
.kg-page .kg-table-chart .table-responsive {
    overflow-x: auto;
}

/* Override compareTables .assetsDiv (width: 370px) so card fills column */
.kg-page .assetsDiv {
    width: 100%;
    max-width: 100%;
}

/* Table + dynamic/chart pairs: main table right (RTL), secondary left; stack on mobile */
.kg-page .kg-table-pair > .col-12 {
    min-width: 0;
}
.kg-page .kg-dynamic-col .table-responsive,
.kg-page .kg-chart-col .table-responsive {
    overflow-x: auto;
}

/* Mobile: stack table then chart; sidebar full width + תיקון HEADER + החלפת לוגיקת enquire */
@media (max-width: 767.98px) {
    .kg-page .kg-sidebar {
        max-width: 100%;
    }
    /* Show charts on mobile (supermarkerMobile.css hides .chartBase globally) */
    .kg-page .chartBase {
        display: block !important;
    }
    .kg-page .kg-yitrot-chart-container {
        height: 360px;
        min-height: 360px;
    }

    /* תיקון HEADER במובייל: רווח מתחת ל-HEADER ב-em (מתאים עצמו לגודל פונט) */
    #main.kg-main {
        padding-top: 1.55em !important;
        margin-top: 0 !important; /* mainNoMargin */
    }
    
    #ymheader {
        margin-top: 0 !important;
    }
    
    #mainContainer {
        padding-top: 0 !important;
    }
    
    /* שימוש בהדר ברירת מחדל של האתר (עם לוגו וגובה סטנדרטי) */
    
    .kg-page .gemelTable {
        width: 100% !important;
    }
    
    .kg-page .titleButtom {
        width: 39% !important;
    }
    
    .kg-page .mainIndex {
        margin-top: 0;
    }
    
    .kg-page.kupat-gemel-page .kg-sidebar #lead.lead,
    .kg-page.kupat-gemel-page #leadMobile #lead.lead,
    body.kg-body #leadMobile #lead.lead {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 6px;
        margin: 0;
    }
    .kg-page.kupat-gemel-page #lead.lead .leadH3Title,
    body.kg-body #leadMobile #lead.lead .leadH3Title {
        min-height: 2rem;
        padding: 0.38rem 0.55rem;
        font-size: 0.92rem !important;
    }
    .kg-page.kupat-gemel-page .kg-sidebar #lead.lead .kg-lead-form-v2,
    .kg-page.kupat-gemel-page #leadMobile #lead.lead .kg-lead-form-v2,
    body.kg-body #leadMobile #lead.lead .kg-lead-form-v2 {
        padding: 0.65rem 0.55rem 0.75rem;
    }
}

/* Narrow devices – same rules (no duplicate padding; 767.98px already covers this) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
    .kg-page .chartBase {
        display: block !important;
    }
    .kg-page .kg-yitrot-chart-container {
        height: 360px;
        min-height: 360px;
    }
}

/* ===== תשואות לאורך זמן – כותרת מרכזית וכפתורים נראים על רקע ירוק ===== */
#kg-returns-over-time-wrap .kg-returns-header {
    display: flex;
    justify-content: center;
    align-items: center;
}
#kg-returns-over-time-wrap .kg-returns-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}
#kg-returns-over-time-wrap .gemel-card-header .kg-returns-period-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: transparent;
}
#kg-returns-over-time-wrap .gemel-card-header .kg-returns-period-btn:hover {
    color: #1a1a1a;
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #fff;
}
#kg-returns-over-time-wrap .gemel-card-header .kg-returns-period-btn.active {
    background-color: #fff;
    color: #1a1a1a;
    border-color: #fff;
}

/* כפתורי מיון מתחת לגרף תשואה–סיכון – מרווח סטנדרטי (צמוד לגרף) */
#kg-return-risk-chart-wrap .chart-container {
    margin-bottom: 0;
}
.kg-chart-sort-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 0.35rem;
    margin-bottom: 0;
}
.kg-chart-sort-actions .btn-group {
    display: inline-flex;
}

/* תג דירוג הקופה בכותרת טבלת דירוג (נטען מ-fundDetailsLoader) */
.kg-page .fund-ranking-section #rankingBadge.badge.bg-primary {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    padding: 0.45rem 0.8rem;
}

.kg-page .kg-ranking-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 0.65rem;
    border: 1px solid #17765a;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}
.kg-page .kg-ranking-filter__btn {
    border: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #17765a;
    background: #fff;
    line-height: 1.25;
}
.kg-page .kg-ranking-filter__btn + .kg-ranking-filter__btn {
    border-right: 1px solid rgba(23, 118, 90, 0.24);
}
.kg-page .kg-ranking-filter__btn.is-active {
    color: #fff;
    background: #17765a;
}
.kg-page .kg-ranking-filter-note {
    margin-top: 0.45rem;
}
.kg-page .fund-ranking-table .kg-ranking-reference-row > td {
    background: #f1faf6;
    border-top: 2px solid #17765a;
}
.kg-page .kg-ranking-reference-badge {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f5132;
    background: #dff3ea;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .kg-page .kg-ranking-filter {
        display: flex;
        width: 100%;
    }
    .kg-page .kg-ranking-filter__btn {
        flex: 1 1 0;
        padding-inline: 0.45rem;
        font-size: 0.88rem;
    }
    .kg-page .kg-ranking-reference-badge {
        display: block;
        width: fit-content;
        margin: 0.25rem 0 0;
        white-space: normal;
    }
}

/* טבלת השוואת תשואות – סימון עמודת המיון הנבחרת */
.kg-page .fund-ranking-table thead th.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}
.kg-page .fund-ranking-table thead th.sortable-header:hover {
    background-color: #e9ecef !important;
}
.kg-page .fund-ranking-table thead th.sortable-header.sort-active {
    background-color: #0d6efd !important;
    color: #fff !important;
    font-weight: 600;
}
.kg-page .fund-ranking-table thead th.sortable-header.sort-active:hover {
    background-color: #0b5ed7 !important;
    color: #fff !important;
}

.kg-page .fund-ranking-table {
    font-size: 1rem;
}
.kg-page .fund-ranking-table th,
.kg-page .fund-ranking-table td {
    font-size: 1rem;
}

/* טבלת דירוג: מספרים ב־LTR — מינוס לפני המספר (wrapNumericLtr ב-fundDetailsLoader) */
.kg-page .fund-ranking-table .kg-numeric-ltr {
    display: inline-block;
    unicode-bidi: isolate;
    direction: ltr;
}

/* גרף תשואות לאורך זמן – גובה קבוע, בלי שטח ריק מתחת */
.kg-returns-chart-container {
    position: relative;
    width: 100%;
    height: 380px;
    min-height: 320px;
}
.kg-returns-chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* הודעה במחשבון: ביקשו 5 שנים אך נטענה תקופה קצרה יותר (לחיצה בלבד) */
#kg-accumulation-sim-card .kg-sim-period-availability-note {
    border-inline-start: 3px solid #6c757d;
    padding: 0.5rem 0.65rem;
    background: #f5f6f7;
    color: #343a40;
    font-size: 0.875rem;
    line-height: 1.45;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* הודעת fallback אחרי לחיצה על 5 שנים */
#kg-accumulation-sim-card .kg-sim-period-fallback-notice {
    border-inline-start: 3px solid #0d6efd;
    padding: 0.5rem 0.65rem;
    background: #eef5ff;
    color: #1a3a5c;
    font-size: 0.875rem;
    line-height: 1.45;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* כפתורי תקופה מושבתים כשאין מספיק היסטוריה */
.kg-returns-period-btn:disabled,
.kg-sim-period-btn:disabled {
    background: #f1f3f5 !important;
    border-color: #ced4da !important;
    color: #868e96 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* הסבר על היסטוריה חלקית / יישור חלון — גרף תשואות */
#kg-returns-over-time-wrap .kg-returns-disclaimer {
    border-inline-start: 3px solid #829a2c;
    padding: 0.5rem 0.65rem;
    background: #f8faf5;
    color: #3d4a2c;
    font-size: 0.875rem;
    line-height: 1.45;
}

#kg-returns-over-time-wrap .kg-returns-empty {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.kg-returns-card-body {
    padding-bottom: 1rem;
}
@media (max-width: 767.98px) {
    .kg-returns-chart-container {
        height: 408px;   /* +20% מ-340px לקריאות טובה יותר בין הקווים */
        min-height: 360px;
    }
}

/* ===== CTA מתחת לפרטים כלליים וטבלת התשואות ===== */
.kg-cta-block {
    text-align: center;
    padding: 0.5rem 0;
}
/* Wave 1.4: dynamic CTA that reflects the simulator's final balance.
   Uses a subtle color shift once "data-sim-state=calculated" so returning
   scrollers notice the copy changed without a flashy animation. */
.kg-cta-block--dynamic {
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
}
.kg-cta-block--dynamic[data-sim-state="calculated"] {
    background: #eaf6f1;
}
.kg-cta-headline {
    margin: 0 auto 0.75rem;
    max-width: 640px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f3a33;
    line-height: 1.45;
}
.kg-cta-block--dynamic[data-sim-state="calculated"] .kg-cta-headline strong {
    color: #17765a;
    white-space: nowrap;
}
.kg-cta-btn {
    display: inline-block;
    max-width: 420px;
    width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #4a7c7c;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.kg-cta-btn:hover {
    background-color: #3d6b6b;
    color: #fff;
}
.kg-cta-sub {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* ===== כפתור "קבל הצעה" (leadOffer) – עיצוב מודרני, בלי קו תחתון, בלי תזוזה בלחיצה, צבע רקע אחד #17765a ===== */
#leadOffer.kg-lead-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    background-color: #17765a;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
#leadOffer.kg-lead-offer:hover {
    background-color: #3d6b6b;
}
#openLead.kg-lead-cta-btn,
.kg-lead-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 50px;
    padding: 0.65rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    color: #fff;
    background-color: #17765a;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
/* כפתור צף בלבד: רקע שקוף כדי שיראה צבע ה-div #leadOffer */
#leadOffer.kg-lead-offer .kg-lead-cta-btn {
    background-color: transparent;
}
#openLead.kg-lead-cta-btn:hover,
#openLead.kg-lead-cta-btn:focus,
.kg-lead-cta-btn:hover,
.kg-lead-cta-btn:focus {
    text-decoration: none !important;
    color: #fff;
    background-color: #3d6b6b;
    border-color: transparent;
}
#leadOffer.kg-lead-offer .kg-lead-cta-btn:hover,
#leadOffer.kg-lead-offer .kg-lead-cta-btn:focus {
    background-color: transparent;
}
#openLead.kg-lead-cta-btn:active,
.kg-lead-cta-btn:active {
    text-decoration: none !important;
    color: #fff;
    background-color: #365a5a;
    border-color: transparent;
    padding: 0.65rem 1.25rem;
}
#leadOffer.kg-lead-offer .kg-lead-cta-btn:active {
    background-color: rgba(0,0,0,0.15);
}
#openLead.kg-lead-cta-btn:focus,
.kg-lead-cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(23, 118, 90, 0.5);
}
#openLead.kg-lead-cta-btn:focus-visible,
.kg-lead-cta-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(23, 118, 90, 0.5);
}

/* מודל ליד – רוחב צמוד לטופס, כותרת מהליד (h3) בלבן על רקע ירוק, כפתור סגירה בפינה */
#leadBootstrapModal.modal .lead-modal-dialog {
    width: fit-content;
    max-width: 520px;
    margin: 1rem auto;
}
#leadBootstrapModal .lead-modal-content {
    position: relative;
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    overflow: visible;
}
#leadBootstrapModal .lead-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    left: auto;
    z-index: 10;
    opacity: 0.85;
    filter: invert(0);
    background-size: 1em;
}
#leadBootstrapModal [dir="rtl"] .lead-modal-close,
[dir="rtl"] #leadBootstrapModal .lead-modal-close {
    right: auto;
    left: 0.1rem;
}
#leadBootstrapModal .lead-modal-close:hover {
    opacity: 1;
}
#leadBootstrapModal .modal-body {
    background: #f9f9f9;
    padding: 0;
}
/* כותרת הליד (h3) – טקסט לבן על רקע ירוק כמו במקור; ריווח עליון וצדדי כדי שכפתור הסגירה לא ידרוס */
#leadBootstrapModal .lead .h3Title,
#leadBootstrapModal .lead .leadH3Title,
#leadBootstrapModal .lead .leadTitle {
    background-color: #17765a;
    color: #fff !important;
    font-weight: 600;
    margin: 0;
    padding: 0.75rem;
    border-radius: 4px 4px 0 0;
}
[dir="rtl"] #leadBootstrapModal .lead .h3Title,
[dir="rtl"] #leadBootstrapModal .lead .leadH3Title,
[dir="rtl"] #leadBootstrapModal .lead .leadTitle {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* במובייל: ריווח תחתון ל-#leadMobile כדי שהכפתור הדביק לא יכסה את הטופס (רק כשהוא בדף, לא בתוך המודל) */
@media (max-width: 767.98px) {
    #leadMobile {
        padding-bottom: 100px; /* גובה כפול מהכפתור (50px) */
    }
    /* בתוך פופאפ/מודל – בלי ריווח תחתון מיותר */
    .fancybox-wrap #leadMobile,
    .fancybox-inner #leadMobile,
    #leadBootstrapModal #leadMobile {
        padding-bottom: 0;
    }
    /* במובייל: מרווח מינימלי מכפתור הסגירה (X) כדי שלא ידרוס את הכותרת */
    #leadBootstrapModal .lead .h3Title,
    #leadBootstrapModal .lead .leadH3Title,
    #leadBootstrapModal .lead .leadTitle {
        padding: 0.75rem;
    }
    [dir="rtl"] #leadBootstrapModal .lead .h3Title,
    [dir="rtl"] #leadBootstrapModal .lead .leadH3Title,
    [dir="rtl"] #leadBootstrapModal .lead .leadTitle {
        padding: 0.75rem;
    }
}

/* תיקון תזוזה ימינה כשפופאפ Fancybox נפתח - מקזזים את התרחבות ה-viewport (scrollbar נעלם) */
html.fancybox-lock #leadOffer.kg-lead-offer {
    right: calc(1% + 17px);
}

/* ===== Wave 2.5 (feature/kupat-gemel-cta-uplift): Sticky Mobile V2 — two-option =====
   Split variant of the sticky bar. Renders only when
   KupatGemel.EnableStickyMobileV2=true (server-side gated in KupatGemel.aspx).
   Inherits the base .kg-lead-offer scroll-hide / reduced-motion rules, so only
   layout + per-option colors live here. */
.kg-lead-offer.kg-lead-offer--v2 {
    padding: 0;
}
/* compareTables .getOffer מגדיר רוחב 200px — ב-V2 שני כפתורים חייבים להופיע; מובייל/טאבלט מלא רוחב */
@media (max-width: 991.98px) {
    #leadOffer.kg-lead-offer.kg-lead-offer--v2 {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0;
        z-index: 1040;
        box-sizing: border-box;
    }
}
.kg-lead-offer__split {
    display: flex;
    width: 100%;
    gap: 0;
}
.kg-lead-offer__opt {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    color: #fff !important;
    line-height: 1.2;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.kg-lead-offer__opt i {
    font-size: 1.05em;
    flex-shrink: 0;
}
.kg-lead-offer__opt-label {
    white-space: nowrap;
}
.kg-lead-offer__opt--call {
    background: #1f8a6a;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.25);
}
.kg-lead-offer__opt--call:hover,
.kg-lead-offer__opt--call:focus {
    background: #177158;
    color: #fff !important;
    text-decoration: none !important;
}
.kg-lead-offer__opt--email {
    background: #2d6cdf;
}
.kg-lead-offer__opt--email:hover,
.kg-lead-offer__opt--email:focus {
    background: #2458b8;
    color: #fff !important;
    text-decoration: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .kg-lead-offer__opt {
        transition: none;
    }
}

/* ===== Wave 3.1 (feature/kupat-gemel-cta-uplift): Lead form V2 =====
   Floating labels, progressive disclosure, trust badges, custom success
   state. Scoped under .kg-lead-form-v2 so it never leaks into the legacy
   V1 control rendered by the 70+ other pages that embed it. */
.kg-lead-form-v2 {
    padding: 0.75rem 0.5rem;
    direction: rtl;
    text-align: right;
    margin: 0;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #1f3a33;
}
.kg-lead-form-v2 * {
    box-sizing: border-box;
}

/* טעינה בשליחת ליד V2 — מרכוז, צבע מותג (#17765a), בלי gif בפינה */
.kg-v2-submit-loader {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(31, 58, 51, 0.42);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.kg-v2-submit-loader.kg-v2-submit-loader--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.kg-v2-submit-loader__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(23, 118, 90, 0.18);
    border: 1px solid #cfe8de;
    max-width: 92vw;
}
.kg-v2-submit-loader__ring {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 3px solid rgba(23, 118, 90, 0.2);
    border-top-color: #17765a;
    animation: kg-v2-loader-spin 0.75s linear infinite;
}
.kg-v2-submit-loader__label {
    font-size: 1rem;
    font-weight: 600;
    color: #1f3a33;
    text-align: center;
}
@keyframes kg-v2-loader-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .kg-v2-submit-loader__ring {
        animation: none;
        border-top-color: #17765a;
        opacity: 0.85;
    }
    .kg-v2-submit-loader {
        transition: none;
    }
}
.kg-v2-lede {
    margin: 0;
    padding: 0.75rem 0.95rem 0;
    color: #1f4b40;
    line-height: 1.4;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}
.kg-v2-stage {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.kg-v2-stage-1 {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
    margin-top: 0;
}
.kg-v2-stage-1.is-open {
    max-height: 1200px;
    opacity: 1;
    margin-top: 0.7rem;
}
.kg-v2-field {
    position: relative;
    margin: 0;
}
.kg-v2-field .form-floating > .form-control,
.kg-v2-field .form-floating > .form-select {
    min-height: 3.35rem;
    height: calc(3.35rem + 2px);
    border-radius: 8px;
    border: 1px solid #cfd7d4;
    font-size: 0.98rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: right;
    direction: rtl;
    color: #152420;
}
.kg-v2-field .form-floating > .form-select {
    padding-top: 1.45rem;
    padding-bottom: 0.35rem;
    line-height: 1.25;
    background-position: left 0.75rem center;
}
/* Placeholder / טקסט ריק — בדפדפנים רבים לא יורש מ-text-align; בעברית מקובל יישור ימין */
.kg-lead-form-v2 .kg-v2-field .form-floating > .form-control::placeholder {
    color: transparent;
    opacity: 0;
    text-align: right;
    direction: rtl;
}
.kg-lead-form-v2 .kg-v2-field .form-floating > .form-control::-webkit-input-placeholder {
    color: transparent;
    opacity: 0;
    text-align: right;
    direction: rtl;
}
.kg-lead-form-v2 .kg-v2-field .form-floating > .form-control::-moz-placeholder {
    color: transparent;
    opacity: 0;
    text-align: right;
    direction: rtl;
}
.kg-v2-field .form-floating {
    direction: rtl;
}
.kg-v2-field .form-floating > label {
    color: #667770;
    font-size: 0.88rem;
    padding-inline: 0.9rem;
    /* BS5 form-floating defaults to LTR anchor; ללא bootstrap.rtl — מיישרים לימין */
    right: 0;
    left: auto;
    text-align: right;
    transform-origin: 100% 0;
}
/* מצב label צף (כמו placeholder) — כיוון translate מתאים ל-RTL */
.kg-v2-field .form-floating > .form-control:focus ~ label,
.kg-v2-field .form-floating > .form-control:not(:placeholder-shown) ~ label,
.kg-v2-field .form-floating > .form-control:-webkit-autofill ~ label,
.kg-v2-field .form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(-0.15rem);
}
.kg-v2-field .form-floating > .form-control:focus,
.kg-v2-field .form-floating > .form-select:focus {
    border-color: #1f8a6a;
    box-shadow: 0 0 0 0.2rem rgba(31, 138, 106, 0.15);
    outline: 0;
}
.kg-v2-field.has-error .form-control,
.kg-v2-field.has-error .form-select {
    border-color: #c0392b;
}
.kg-v2-field-error {
    display: block;
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding-inline-start: 0.25rem;
    line-height: 1.35;
    text-align: right;
}
.kg-v2-purpose {
    border: 1px solid #d9e8e2;
    border-radius: 8px;
    padding: 0.7rem 0.75rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.45);
}
.kg-v2-purpose__legend {
    display: block;
    font-size: 0.85rem;
    color: #33534a;
    padding: 0;
    margin: 0;
    width: 100%;
    font-weight: 600;
    text-align: right;
    direction: rtl;
}
.kg-v2-purpose__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.45rem;
}
.kg-v2-purpose__opt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #2d3a38;
    cursor: pointer;
    padding: 0.32rem 0.45rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    margin: 0;
}
.kg-v2-purpose__opt:hover {
    background: #f0f5f3;
}
.kg-v2-purpose__opt input {
    accent-color: #1f8a6a;
    margin: 0;
    flex-shrink: 0;
}
.kg-v2-yatzranim {
    margin-top: 0.25rem;
}
.kg-v2-yatzranim__toggle {
    display: inline-block;
    font-size: 0.85rem;
    color: #1f8a6a;
    cursor: pointer;
    margin-bottom: 0.4rem;
}
.kg-v2-yatzranim__toggle:hover {
    text-decoration: underline;
}
.kg-v2-yatzranim__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
}
.kg-v2-yatzranim__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #2d3a38;
}
.kg-v2-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5ebe8;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #33534a;
}
.kg-v2-consent input[type="checkbox"] {
    accent-color: #1f8a6a;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.kg-v2-consent__text a {
    color: #1f8a6a;
}
.kg-v2-submit {
    margin-top: 0.75rem;
}
.kg-v2-submit__btn {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    background: #1f8a6a;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none !important;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.kg-v2-submit__btn:hover,
.kg-v2-submit__btn:focus {
    background: #177158;
    outline: 0;
}
@media (hover: hover) {
    .kg-v2-submit__btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(31, 138, 106, 0.3);
    }
}
.kg-v2-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin: 0.4rem 0;
    padding: 0.4rem 0.6rem;
    background: #fdecea;
    border-radius: 6px;
}
.kg-v2-trust {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0.55rem 0 0;
    border-top: 1px solid #e5ebe8;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.kg-v2-trust li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #435f56;
    line-height: 1.35;
}
.kg-v2-trust i {
    color: #1f8a6a;
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}
.kg-v2-success {
    padding: 1rem 0.75rem;
    text-align: center;
}
.kg-v2-success__icon {
    color: #1f8a6a;
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.kg-v2-success__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f4b40;
    margin: 0 0 0.35rem;
}
.kg-v2-success__lede {
    font-size: 0.9rem;
    color: #33534a;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}
.kg-v2-success__related {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.kg-v2-success__related a {
    color: #1f8a6a;
    font-size: 0.9rem;
    text-decoration: none;
}
.kg-v2-success__related a:hover {
    text-decoration: underline;
}
/* פריסת תוכן ההצלחה — flex column על עוטף פנימי קבוע (.kg-v2-success__inner),
   ולא על #successful עצמו. חשוב: אסור לכפות display על #successful — הוא מוסתר/מוצג
   דרך display (inline none בברירת מחדל, .show()/.hide() בריצה), ו-!important על
   display היה משאיר אותו גלוי תמיד. ה-flex על העוטף הפנימי כן יכול להיות !important
   (אין לו מצב מוסתר) — וזה מנצח כללי legacy שמצמידים inline-block לאלמנטים באזור הליד,
   כך שהאייקון/כותרת/טקסט/קישורים נערמים אנכית כמו בדסקטופ. */
.kg-v2-success__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.kg-v2-success__inner > * {
    float: none !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.kg-v2-success__related {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
}
.kg-v2-success__related li {
    display: block;
    width: 100%;
    text-align: center;
}
@media (prefers-reduced-motion: reduce) {
    .kg-v2-stage-1 {
        transition: none;
    }
    .kg-v2-submit__btn {
        transition: none;
    }
    .kg-v2-submit__btn:hover {
        transform: none;
        box-shadow: none;
    }
}
@media (max-width: 480px) {
    .kg-v2-lede {
        padding: 0.55rem 0.6rem 0;
        font-size: 0.82rem;
        line-height: 1.35;
    }
    .kg-v2-stage {
        gap: 0.5rem;
    }
    .kg-v2-stage-1.is-open {
        margin-top: 0.55rem;
    }
    .kg-v2-field .form-floating > .form-control,
    .kg-v2-field .form-floating > .form-select {
        min-height: 3.15rem;
        height: calc(3.15rem + 2px);
        font-size: 0.9rem;
        border-radius: 6px;
    }
    .kg-v2-field .form-floating > .form-select {
        padding-top: 1.35rem;
        padding-bottom: 0.45rem;
        line-height: 1.35;
    }
    .kg-v2-field .form-floating > label {
        font-size: 0.74rem;
        padding-inline: 0.65rem;
    }
    .kg-v2-field .form-floating > .form-control:focus ~ label,
    .kg-v2-field .form-floating > .form-control:not(:placeholder-shown) ~ label,
    .kg-v2-field .form-floating > .form-control:-webkit-autofill ~ label,
    .kg-v2-field .form-floating > .form-select ~ label {
        transform: scale(0.82) translateY(-0.45rem) translateX(-0.1rem);
    }
    .kg-v2-purpose__options,
    .kg-v2-yatzranim__grid {
        grid-template-columns: 1fr;
    }
    .kg-v2-purpose {
        padding: 0.55rem 0.6rem;
    }
    .kg-v2-purpose__legend,
    .kg-v2-purpose__opt,
    .kg-v2-yatzranim__toggle,
    .kg-v2-yatzranim__item,
    .kg-v2-consent {
        font-size: 0.75rem;
    }
    .kg-v2-consent {
        margin-top: 0.65rem;
    }
    .kg-v2-submit__btn {
        padding: 0.72rem 0.85rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    .kg-v2-trust li {
        font-size: 0.82rem;
    }
    .kg-v2-trust i {
        font-size: 0.98rem;
    }
}

/* ===== Wave 2.3 (feature/kupat-gemel-cta-uplift): Dynamic micro-badges + micro-CTA ===== */
.kg-micro-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.55rem;
    margin-inline-start: 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    background: #eef2f5;
    color: #33534a;
    border: 1px solid transparent;
    white-space: nowrap;
    vertical-align: middle;
}
.kg-micro-badge--warn {
    background: #fff4e5;
    color: #8a5a1c;
    border-color: #f7d8a9;
}
.kg-micro-badge--good {
    background: #eaf6f1;
    color: #17765a;
    border-color: #bfdfcf;
}

.kg-micro-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.35rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    background: #fff4e5;
    color: #8a5a1c !important;
    border: 1px solid #f2c98f;
    text-decoration: none !important;
    line-height: 1.35;
}
.kg-micro-cta:hover,
.kg-micro-cta:focus {
    background: #f9e3c4;
    color: #664219 !important;
    text-decoration: none !important;
}
.kg-micro-cta i {
    color: #d77a1b;
    font-size: 1em;
    flex-shrink: 0;
}

/* ===== Wave 2.4 (feature/kupat-gemel-cta-uplift): Exit-intent modal =====
   Desktop-only Bootstrap 5 modal that appears once per 7 days when the cursor
   leaves the viewport through the top edge. CTA routes to the wizard, so this
   block is purely cosmetic. Kept intentionally restrained — trust + clarity
   over flashy animations — and disabled under prefers-reduced-motion. */
.kg-exit-modal .modal-dialog {
    max-width: 520px;
}
.kg-exit-modal__content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(31, 75, 64, 0.25);
    overflow: hidden;
}
.kg-exit-modal__header {
    background: linear-gradient(135deg, #1f4b40 0%, #2f6a58 100%);
    color: #fff;
    border-bottom: 0;
    padding: 1rem 1.25rem;
    align-items: center;
}
.kg-exit-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    line-height: 1.3;
}
.kg-exit-modal__title i {
    color: #ffd166;
    font-size: 1.15em;
    flex-shrink: 0;
}
.kg-exit-modal__header .btn-close {
    filter: invert(1) brightness(1.8);
    opacity: 0.85;
}
.kg-exit-modal__header .btn-close:hover {
    opacity: 1;
}
.kg-exit-modal__body {
    padding: 1.25rem 1.25rem 1rem;
}
.kg-exit-modal__lede {
    font-size: 1rem;
    line-height: 1.55;
    color: #2d3a38;
    margin-bottom: 0.85rem;
}
.kg-exit-modal__lede strong {
    color: #1f4b40;
}
.kg-exit-modal__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.kg-exit-modal__bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #33534a;
    line-height: 1.45;
}
.kg-exit-modal__bullets i {
    color: #1f8a6a;
    font-size: 1.05em;
    flex-shrink: 0;
}
.kg-exit-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.kg-exit-modal__primary {
    background: #1f8a6a;
    color: #fff !important;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 0;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}
.kg-exit-modal__primary:hover,
.kg-exit-modal__primary:focus {
    background: #177158;
    color: #fff !important;
    text-decoration: none !important;
}
.kg-exit-modal__secondary {
    background: transparent;
    color: #667770;
    border: 0;
    padding: 0.4rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
}
.kg-exit-modal__secondary:hover,
.kg-exit-modal__secondary:focus {
    color: #2d3a38;
    background: transparent;
}
.kg-exit-modal__fineprint {
    font-size: 0.75rem;
    color: #8a9794;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}
@media (hover: hover) {
    .kg-exit-modal__primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(31, 138, 106, 0.3);
    }
}
@media (prefers-reduced-motion: reduce) {
    .kg-exit-modal__primary {
        transition: none;
    }
    .kg-exit-modal__primary:hover {
        transform: none;
        box-shadow: none;
    }
    .kg-exit-modal.fade,
    .kg-exit-modal.fade .modal-dialog {
        transition: none !important;
    }
}

/* ===== Wave 2.2 (feature/kupat-gemel-cta-uplift): Anchor navigation pill row =====
   Horizontal row of section shortcuts. Active-pill highlighting is driven by the
   IntersectionObserver in KupatGemel.aspx, which toggles the `is-active` class. */
.kg-anchor-nav {
    margin: 0.75rem 0;
    /* Horizontal scroll on small screens so the pills don't wrap awkwardly. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.kg-anchor-nav::-webkit-scrollbar { display: none; }
.kg-anchor-nav__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
}
.kg-anchor-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cfe8de;
    color: #2a4a41;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.kg-anchor-nav__link i {
    color: #17765a;
    font-size: 1em;
    flex-shrink: 0;
}
.kg-anchor-nav__link:hover,
.kg-anchor-nav__link:focus {
    background: #eaf6f1;
    border-color: #17765a;
    color: #17765a;
}
.kg-anchor-nav__link.is-active {
    background: #17765a;
    border-color: #17765a;
    color: #fff;
    box-shadow: 0 2px 6px rgba(23, 118, 90, 0.18);
}
.kg-anchor-nav__link.is-active i {
    color: #fff;
}
.kg-anchor-nav__link--cta {
    border-color: #17765a;
    background: #eaf6f1;
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .kg-anchor-nav__link {
        padding: 0.35rem 0.7rem;
        font-size: 0.8125rem;
    }
}

/* ===== Wave 2.1 (feature/kupat-gemel-cta-uplift): Sidebar wizard block + short-path ===== */
.kg-sidebar-wizard {
    text-align: center;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.5rem;
}
.kg-sidebar-wizard__hero img {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
}
.kg-sidebar-wizard__title {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #17765a;
    line-height: 1.35;
}
.kg-sidebar-wizard__lede {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3e5a52;
}
.kg-sidebar-wizard__sub {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #33534a;
}
.kg-sidebar-wizard__primary {
    margin-bottom: 0.55rem;
}
.kg-sidebar-wizard__primary-link {
    width: min(100%, 260px);
    min-height: 52px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.kg-sidebar-wizard__secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.55rem;
    margin: 0.15rem auto 0.35rem;
    max-width: 280px;
}
.kg-sidebar-wizard__secondary-link,
.kg-sidebar-wizard__secondary-link:link,
.kg-sidebar-wizard__secondary-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(23, 118, 90, 0.28);
    border-radius: 999px;
    background: #fff;
    color: #17765a;
    font: 700 0.86rem Arial, sans-serif;
    line-height: 1.25;
    text-decoration: none;
}
.kg-sidebar-wizard__secondary-link:hover,
.kg-sidebar-wizard__secondary-link:active {
    border-color: rgba(23, 118, 90, 0.46);
    background: #f0faf6;
    color: #0f6048 !important;
    text-decoration: none;
}
.kg-sidebar-short-path-separator {
    margin-top: 0.65rem;
    margin-bottom: 0.45rem;
}
.kg-sidebar-short-path {
    text-align: center;
    margin: 0 0 0.65rem;
}
.kg-sidebar-short-path__hint {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1d4f42;
}

/* ===== Wave 1.7 (feature/kupat-gemel-cta-uplift): Micro-interactions + loading state =====
   - All primary CTA buttons get a unified hover lift (no position: absolute tricks
     so we keep layout stable).
   - Calculator button gets a spinner swap when aria-busy="true".
   - prefers-reduced-motion disables lifts and spins. */
#openLead.kg-lead-cta-btn,
.kg-lead-cta-btn,
.kg-cta-card__btn,
.kg-cta-btn,
.ctaWizard,
#kg-sim-calculate.kg-sim-calc-btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) {
    #openLead.kg-lead-cta-btn:hover,
    .kg-lead-cta-btn:hover:not(:disabled):not([aria-busy="true"]),
    .kg-cta-card__btn:hover:not(:disabled),
    .kg-cta-btn:hover:not(:disabled),
    .ctaWizard:hover:not(:disabled),
    #kg-sim-calculate.kg-sim-calc-btn:hover:not([aria-busy="true"]):not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(23, 118, 90, 0.18);
    }
}
#openLead.kg-lead-cta-btn:active,
.kg-lead-cta-btn:active,
.kg-cta-card__btn:active,
.kg-cta-btn:active,
.ctaWizard:active,
#kg-sim-calculate.kg-sim-calc-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(23, 118, 90, 0.12);
}

/* Calculator button spinner swap */
.kg-sim-calc-btn {
    position: relative;
}
.kg-sim-calc-btn__spinner {
    display: none;
    vertical-align: -0.125em;
    margin-inline-start: 0.4rem;
}
.kg-sim-calc-btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.9;
}
.kg-sim-calc-btn[aria-busy="true"] .kg-sim-calc-btn__label {
    opacity: 0.75;
}
.kg-sim-calc-btn[aria-busy="true"] .kg-sim-calc-btn__spinner {
    display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
    #openLead.kg-lead-cta-btn,
    .kg-lead-cta-btn,
    .kg-cta-card__btn,
    .kg-cta-btn,
    .ctaWizard,
    #kg-sim-calculate.kg-sim-calc-btn,
    .kg-cta-card--primary {
        transition: none !important;
    }
    #openLead.kg-lead-cta-btn:hover,
    .kg-lead-cta-btn:hover,
    .kg-cta-card__btn:hover,
    .kg-cta-btn:hover,
    .ctaWizard:hover,
    #kg-sim-calculate.kg-sim-calc-btn:hover {
        transform: none !important;
    }
    .kg-sim-calc-btn__spinner {
        animation: none !important;
    }
}

/* ===== Wave 1.6 (feature/kupat-gemel-cta-uplift): Structured disclaimer =====
   The base .SMdisclaimer look (green-olive tint) is preserved via compareTables.css;
   we only add structure/typography rules for the new YMYL paragraphs. */
.kg-disclaimer {
    width: 100%;
    box-sizing: border-box;
    margin-right: 0;
    margin-left: 0;
}
.kg-disclaimer__body {
    margin: 0 0 0.5rem;
    line-height: 1.55;
}
.kg-disclaimer__body:last-child {
    margin-bottom: 0;
}
.kg-disclaimer__body--emphasis {
    font-weight: 600;
    color: #3e2f00;
}
.kg-disclaimer__micro {
    font-size: 0.85em;
    color: #595959;
}

/* ===== Wave 1.5 (feature/kupat-gemel-cta-uplift): Sidebar trust-signals card =====
   Lives above the lead form. Kept visually quiet so it complements, not competes,
   with the form CTA below it. */
.kg-trust-card {
    border: 1px solid #d7eadf;
    border-radius: 10px;
    background: #fafdfb;
    padding: 0.85rem 1rem;
}
.kg-trust-card__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f3a33;
    letter-spacing: 0.01em;
}
.kg-trust-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #33534a;
}
.kg-trust-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}
.kg-trust-card__list i {
    color: #17765a;
    font-size: 1.05em;
    line-height: 1.35;
    flex-shrink: 0;
}

/* ===== Wave 1.3 (feature/kupat-gemel-cta-uplift): In-page CTA cards =====
   Re-usable card style for CTA #1 (after returns table) and CTA #2 (after calculator).
   Visual weight + friendly reassurance line under the button. */
.kg-cta-card {
    border: 1px solid #cfe8de;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
    box-shadow: 0 1px 2px rgba(23, 118, 90, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.kg-cta-card--primary {
    border-color: #17765a;
    box-shadow: 0 2px 8px rgba(23, 118, 90, 0.08);
}
.kg-cta-card .gemel-card-header {
    background: #17765a;
    color: #fff;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
}
.kg-cta-card__body {
    color: #2a4a41;
    line-height: 1.55;
}
.kg-cta-card__btn {
    width: 100%;
    max-width: 360px;
    margin-top: 0.25rem;
}
.kg-cta-card__reassure {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #4a6b63;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.kg-cta-card__reassure i {
    color: #17765a;
    font-size: 1em;
}
/* Respect hover+focus without moving the whole card on touch devices */
@media (hover: hover) {
    .kg-cta-card--primary:hover {
        box-shadow: 0 6px 18px rgba(23, 118, 90, 0.14);
        transform: translateY(-1px);
    }
}

/* ===== Wave 1.2 (feature/kupat-gemel-cta-uplift): Data trust-bar under H1 =====
   Thin, calm data-credibility strip that lives between the share bar and
   breadcrumb. Conversion reassurance stays close to the lead form and CTAs. */
.kg-trust-bar {
    margin: 0.5rem 0 0.75rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(90deg, #eaf6f1 0%, #f4fbf8 100%);
    border: 1px solid #cfe8de;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #2a4a41;
}
.kg-trust-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    align-items: center;
    justify-content: center;
}
.kg-trust-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}
.kg-trust-bar__icon {
    color: #17765a;
    font-size: 1.05em;
    line-height: 1;
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .kg-trust-bar {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
    }
    .kg-trust-bar__list {
        gap: 0.25rem 0.85rem;
    }
    .kg-trust-bar__item {
        white-space: normal;
    }
}

/* ===== Wave 1.1 (feature/kupat-gemel-cta-uplift): Sticky mobile CTA behavior =====
   - Hide entirely on desktop (>=992px): the sidebar form already covers that case.
   - Smooth fade + translate when the lead form enters the viewport (scroll-hide).
   - Respect prefers-reduced-motion. */
@media (min-width: 992px) {
    #leadOffer.kg-lead-offer {
        display: none !important;
    }
    /* Also zero out the spacer padding that body:has() injects, since the sticky is gone. */
    body:has(#leadOffer.kg-lead-offer),
    body:has(.getOffer.kg-lead-offer),
    .kg-page:has(#leadOffer.kg-lead-offer),
    .kg-page:has(.getOffer.kg-lead-offer),
    .kupat-gemel-page:has(#leadOffer.kg-lead-offer),
    .kupat-gemel-page:has(.getOffer.kg-lead-offer) {
        padding-bottom: 0 !important;
    }
}
#leadOffer.kg-lead-offer {
    will-change: transform, opacity;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
#leadOffer.kg-lead-offer.kg-lead-offer--hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    #leadOffer.kg-lead-offer {
        transition: none;
    }
    #leadOffer.kg-lead-offer.kg-lead-offer--hidden {
        transform: none;
        visibility: hidden;
    }
}

/* הוספת padding-bottom לדף כדי לאפשר גלילה נוספת מתחת לכפתור הקבוע - גובה כפול מהכפתור (50px * 2 = 100px) */
body:has(#leadOffer.kg-lead-offer),
body:has(.getOffer.kg-lead-offer) {
    padding-bottom: 100px;
}
/* Fallback לדפדפנים שלא תומכים ב-:has() - מוסיפים padding-bottom ל-container הראשי */
.kg-page:has(#leadOffer.kg-lead-offer),
.kg-page:has(.getOffer.kg-lead-offer),
.kupat-gemel-page:has(#leadOffer.kg-lead-offer),
.kupat-gemel-page:has(.getOffer.kg-lead-offer) {
    padding-bottom: 100px;
}

/* Reset Bootstrap typography inside legacy lead control (YatzranimGemelPensia) - match compareTables 14px */
.lead-legacy-font-reset {
    font-size: 14px;
}
.lead-legacy-font-reset input,
.lead-legacy-font-reset select,
.lead-legacy-font-reset textarea,
.lead-legacy-font-reset label,
.lead-legacy-font-reset .leadFieldName {
    font-size: inherit;
}
.lead-legacy-font-reset .tbLead,
.lead-legacy-font-reset .leadInputText {
    font-size: 14px !important;
    height: 32px !important;
}
.lead-legacy-font-reset .kidomet.selectLead,
.lead-legacy-font-reset .kidomet {
    font-size: 14px !important;
    height: 34px !important;
}
.lead-legacy-font-reset #cbTnaim,
.lead-legacy-font-reset input[type="checkbox"] {
    vertical-align: middle !important;
}

/* ===== מחשבונים (#calcs) – אייקון SVG וסגנון קישורים ===== */
#calcs .h3Heading .calc-heading-icon {
    float: left;
    vertical-align: middle;
    margin-left: 6px;
    color: inherit;
    flex-shrink: 0;
}

/* וידוא שהטבלה תופסת את כל הרוחב הזמין */
#calcs table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

#calcs .calcTD td {
    vertical-align: middle;
    width: 100%;
    padding: 0;
}

#calcs .calcTD td a {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#calcs a,
#calcs .calcLinks,
#calcs .calcLinksSubPage {
    color: #17765a;
    text-decoration: none;
    vertical-align: middle;
    line-height: 36px;
    height: 36px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#calcs tr.calcTD:hover td,
#calcs .calcTD .calcLinks:hover,
#calcs .calcTD a:hover {
    background-color: #f7f7f3;
}

#calcs .calcTD td,
#calcs .calcTD .calcLinks {
    transition: background-color 0.15s ease;
}

/* Mobile: full width links */
@media (max-width: 768px) {
    #calcs .calcTD td a {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    #calcs .calcTD .calcLinks,
    #calcs .calcTD .calcLinksSubPage {
        display: block !important;
        width: 100% !important;
    }
}

/* ============================================
   CompareKupotGemelDetails - Layout Bootstrap
   ============================================ */

/* Override gemelRight/gemelLeft floats for compare details page */
.kg-compare-details-page .kg-compare-row {
    margin-left: 0;
    margin-right: 0;
}

.kg-compare-details-page .kg-compare-titles .gemelTable,
.kg-compare-details-page .kg-compare-content .gemelTable {
    width: 100% !important;
}

/* Fund columns - min width for horizontal scroll on mobile */
.kg-compare-details-page .kg-compare-fund-col {
    min-width: 220px;
    vertical-align: top;
}

/* Chart wrapper in each fund column */
.kg-compare-details-page .kg-compare-chart-wrap {
    direction: rtl;
    width: 100%;
    border: 1px solid #d1d1d1;
    text-align: center;
    margin-top: 10px;
    border-radius: 4px;
}

.kg-compare-details-page .kg-compare-chart-wrap canvas {
    max-width: 100%;
}

.kg-compare-details-page .kg-compare-chart-wrap .chart {
    max-width: 100%;
    width: 100% !important;
}

/* Horizontal scroll for comparison table on mobile */
.kg-compare-details-page .kg-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kg-compare-details-page .kg-compare-content .gemelLeftInner {
    width: 100%;
    position: static;
    right: auto;
    bottom: auto;
}

/* Mobile: stack titles above content, adjust spacing */
@media (max-width: 991.98px) {
    .kg-compare-details-page .kg-compare-titles {
        order: 1;
    }
    .kg-compare-details-page .kg-compare-content {
        order: 2;
    }
    .kg-compare-details-page .kg-compare-fund-col {
        min-width: 200px;
    }
    .kg-compare-details-page .kg-compare-table .kg-fund-col {
        min-width: 200px;
    }
}

/* Override gemelDetailsCell text-indent (from compareTables.css) - breaks RTL alignment when text wraps */
.kg-compare-details-page .gemelDetailsCell {
    text-indent: 0;
}

/* Override titleHight text-indent - same issue */
.kg-compare-details-page .titleHight {
    text-indent: 0;
}

/* Single compare table - fixed layout, widths from colgroup for equal fund columns */
.kg-compare-details-page .kg-compare-table {
    table-layout: fixed;
    width: 100%;
}

.kg-compare-details-page .kg-compare-table .kg-label-col {
    min-width: 180px;
}
.kg-compare-details-page .kg-compare-table .kg-fund-col {
    min-width: 200px;
}

/* Long fund names - wrap instead of expanding column */
.kg-compare-details-page .kg-compare-table .kg-fund-col .h1KupatGemel {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Exposures/Assets - two columns per fund, force LTR for correct left/right order */
.kg-compare-details-page .kg-compare-table .kg-exposure-cell {
    padding: 6px 8px;
    direction: ltr;
}
.kg-compare-details-page .kg-compare-table .kg-exposure-cell .kg-exposure-inner,
.kg-compare-details-page .kg-compare-table .kg-exposure-cell .kg-exposure-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
}
.kg-compare-details-page .kg-compare-table .kg-exposures-subheader td,
.kg-compare-details-page .kg-compare-table .kg-assets-subheader td {
    background-color: #edf2f5;
    font-weight: 600;
}
.kg-compare-details-page .kg-compare-table .kg-exposures-subheader .kg-exposure-header,
.kg-compare-details-page .kg-compare-table .kg-assets-subheader .kg-exposure-header {
    font-size: 12px;
    color: #495057;
}

/* Section title rows - background for visual separation (נתונים כלליים, יתרות, תשואות, מדדי סיכון, etc.) */
.kg-compare-details-page .kg-compare-table tr.kg-section-title-row td {
    background-color: #d8dbb0;
    font-weight: 600;
}

/* שורת נתונים כלליים עם כפתורי CTA – עמודת הכותרת תמלא את גובה השורה (43px) */
.kg-compare-details-page .kg-compare-table tr.kg-section-title-row-with-cta td.titleHight {
    min-height: 43px;
}

/* תאים עם כפתור CTA לליד – מרכוז הכפתור בעמודת הקופה */
.kg-compare-details-page .kg-compare-table td.kg-lead-cta-cell {
    text-align: center;
    vertical-align: middle;
    padding: 6px 0.5rem;
}
.kg-compare-details-page .kg-compare-table td.kg-lead-cta-cell .kg-chart-btn {
    white-space: nowrap;
}

/* Titles column: remove fixed widths, fix font size and background alignment */
.kg-compare-details-page .kg-compare-titles .titleHight,
.kg-compare-details-page .kg-compare-content .titleHight,
.kg-compare-details-page .kg-compare-table .titleHight {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    font-size: 14px;
    height: auto;
    min-height: 30px;
    padding: 6px 0.5rem 6px 0;
    line-height: 1.35;
    display: flex;
    align-items: center;
}

/* Rows with title + graph button: flex, consistent gap between title and button */
.kg-compare-details-page .kg-compare-titles td.kg-title-with-btn,
.kg-compare-details-page .kg-compare-table td.kg-title-with-btn {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding-inline-end: 0.5rem;
}

.kg-compare-details-page .kg-compare-titles td.kg-title-with-btn .titleHight,
.kg-compare-details-page .kg-compare-table td.kg-title-with-btn .titleHight {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
}

.kg-compare-details-page .kg-compare-titles td.kg-title-with-btn .graphButton,
.kg-compare-details-page .kg-compare-titles td.kg-title-with-btn .kg-chart-btn,
.kg-compare-details-page .kg-compare-table td.kg-title-with-btn .graphButton,
.kg-compare-details-page .kg-compare-table td.kg-title-with-btn .kg-chart-btn {
    float: none;
    flex-shrink: 0;
}

/* כפתורי גרפים – מצב רגיל: רקע מלא (#17765a), Hover: רקע כהה יותר */
.kg-compare-details-page .kg-chart-btn {
    --kg-chart-btn-color: #17765a;
    color: #fff !important;
    border-color: var(--kg-chart-btn-color) !important;
    background-color: var(--kg-chart-btn-color) !important;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kg-compare-details-page .kg-chart-btn:hover {
    color: #fff !important;
    background-color: #0f5c47 !important;
    border-color: #0f5c47 !important;
}
.kg-compare-details-page .kg-chart-btn i {
    margin-left: 0.35em;
}

/* ===== מודלים – מרכוז בדסקטופ ===== */
.kg-compare-details-page .modal {
    justify-content: center !important;
    align-items: center !important;
}
.kg-compare-details-page .modal .modal-dialog {
    margin: 1.75rem auto !important;
}

/* כותרת ממורכזת + כפתור סגירה בפינה הימנית */
.kg-compare-details-page .modal-header.kg-modal-header-centered {
    position: relative;
    justify-content: center;
    padding-inline-end: 3rem;
}
.kg-compare-details-page .modal-header.kg-modal-header-centered .modal-title {
    text-align: center;
    margin: 0;
}
.kg-compare-details-page .modal-header.kg-modal-header-centered .btn-close {
    position: absolute;
    right: 1rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* מודל מדדי סיכון – רוחב. CookieManager.ascx מגדיר .modal-content { max-width: 600px } גלובלית – דריסה */
@media (min-width: 992px) {
    #modalTsuaSikon .modal-dialog.kg-modal-sikon-wider .modal-content {
        width: 1370px !important;
        max-width: 1370px !important;
    }
}
@media (max-width: 991.98px) {
    #modalTsuaSikon .modal-dialog.kg-modal-sikon-wider .modal-content {
        width: calc(100vw - 2rem) !important;
        max-width: none !important;
    }
}

/* מודל גרף תשואות – דריסת max-width:600px מ-CookieManager */
@media (min-width: 992px) {
    #modalTsuot .modal-content {
        width: 1140px !important;
        max-width: 1140px !important;
    }
}
@media (max-width: 991.98px) {
    #modalTsuot .modal-content {
        width: calc(100vw - 2rem) !important;
        max-width: none !important;
    }
}

/* מודל חלוקה לנכסים – דריסת max-width:600px מ-CookieManager */
@media (min-width: 992px) {
    #modalAssets .modal-content {
        width: 1140px !important;
        max-width: 1140px !important;
    }
}
@media (max-width: 991.98px) {
    #modalAssets .modal-content {
        width: calc(100vw - 2rem) !important;
        max-width: none !important;
    }
}

/* מודל חלוקה לנכסים – גרף עמודות מוערמות: גובה מספיק ל-chartArea (מקרא+צירים) במובייל */
#modalAssets .kg-modal-assets-bar-chart {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 320px;
    box-sizing: border-box;
}
@media (max-width: 991.98px) {
    #modalAssets .kg-modal-assets-bar-chart {
        height: 440px;
        min-height: 440px;
    }
}

/* גרפי מדדי סיכון – דסקטופ: זה לצד זה, גובה מוגדל */
.kg-sikon-charts-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
}
.kg-sikon-charts-row .kg-sikon-chart-container {
    position: relative;
    flex: 1;
    min-width: 380px;
}
.kg-sikon-charts-row .kg-sikon-chart-scatter {
    height: 420px;
    min-height: 420px;
}
.kg-sikon-charts-row .kg-sikon-chart-sharp {
    height: 380px;
    min-height: 380px;
}
/* מובייל – גרפים במבנה אנכי, גובה מספק */
@media (max-width: 991.98px) {
    .kg-sikon-charts-row {
        flex-direction: column;
    }
    .kg-sikon-charts-row .kg-sikon-chart-container {
        min-width: 0;
    }
    .kg-sikon-charts-row .kg-sikon-chart-scatter {
        height: 360px;
        min-height: 360px;
    }
    .kg-sikon-charts-row .kg-sikon-chart-sharp {
        height: 320px;
        min-height: 320px;
    }
}

/* טבלת מדדי סיכון במודל – קומפקטית (פחות מקום) */
.kg-compare-details-page #modalTsuaSikon .kg-modal-tsuot-table-wrap {
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 1rem;
}
.kg-compare-details-page #modalTsuaSikon .kg-modal-sikon-table {
    background-color: #EDF1D8;
    font-weight: 600;
    font-size: 0.875rem;
}
.kg-compare-details-page #modalTsuaSikon .kg-modal-sikon-table .kg-modal-th {
    background-color: #d8dbb0;
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.3rem 0.35rem;
    font-size: 0.8rem;
    border-color: rgba(0,0,0,0.1);
    vertical-align: middle;
}
.kg-compare-details-page #modalTsuaSikon .kg-modal-sikon-table td {
    padding: 0.25rem 0.35rem;
    font-size: 0.85rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.1);
}

/* טבלת חלוקה לנכסים במודל */
.kg-modal-assets-table-wrap {
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 1rem;
}
.kg-modal-assets-table {
    background-color: #EDF1D8;
    font-weight: 600;
    font-size: 0.875rem;
}
.kg-modal-assets-table .kg-modal-th {
    background-color: #d8dbb0;
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.3rem 0.35rem;
    font-size: 0.8rem;
    border-color: rgba(0,0,0,0.1);
    vertical-align: middle;
}
.kg-modal-assets-table td {
    padding: 0.25rem 0.35rem;
    font-size: 0.85rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.1);
}

/* טבלת תשואות במודל – עיצוב מודרני Bootstrap, בלי פינות תמונה */
.kg-compare-details-page #modalTsuot .kg-modal-tsuot-table-wrap {
    width: 100%;
    padding: 0 0.5rem;
}
.kg-compare-details-page #modalTsuot .kg-modal-tsuot-table {
    background-color: #EDF1D8;
    font-weight: 600;
}
.kg-compare-details-page #modalTsuot .kg-modal-tsuot-table .kg-modal-th {
    background-color: #d8dbb0;
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.5rem 0.4rem;
    border-color: rgba(0,0,0,0.1);
    vertical-align: middle;
}
.kg-compare-details-page #modalTsuot .kg-modal-tsuot-table td,
.kg-compare-details-page #modalTsuot .kg-modal-tsuot-table .gemelCell {
    padding: 0.4rem 0.4rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.1);
}

/* מובייל – מדדי סיכון: טבלה מתחת לגרף, גרפים ברוחב מלא */
@media (max-width: 991.98px) {
    .kg-compare-details-page #modalTsuaSikon .modal-body {
        display: flex;
        flex-direction: column;
        padding: 0.75rem;
    }
    .kg-compare-details-page #modalTsuaSikon #kg-sikon-over-time-wrap {
        order: 1;
        width: 100%;
    }
    .kg-compare-details-page #modalTsuaSikon .kg-sikon-card-body {
        padding-inline: 0;
    }
    .kg-compare-details-page #modalTsuaSikon .kg-modal-tsuot-table-wrap {
        order: 2;
        width: 100%;
        margin-top: 1rem;
        padding: 0;
    }
}

/* מובייל – טבלה מתחת לגרף, ממורכזת */
@media (max-width: 991.98px) {
    .kg-compare-details-page #modalTsuot .modal-body {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }
    .kg-compare-details-page #modalTsuot #kg-returns-over-time-wrap {
        order: 1;
        width: 100%;
    }
    .kg-compare-details-page #modalTsuot .kg-modal-tsuot-table-wrap {
        order: 2;
        width: 100%;
        margin-top: 1rem;
        padding: 0;
    }
    .kg-compare-details-page #modalTsuot .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
}

/*
 * דף KupatGemel בלבד — טבלת דירוג שנטענת ל־#kg-dynamic-returns-table (fundDetailsLoader).
 * גופן טבלה 15px; רוחב מינימלי ועמודות מוכפלים ב־×1.15 ביחס לבסיס הקודם.
 */
@media (max-width: 767.98px) {
    #kg-dynamic-returns-table .fund-ranking-section .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    #kg-dynamic-returns-table .fund-ranking-table {
        direction: rtl;
        table-layout: fixed;
        width: 100%;
        min-width: 736px;
        margin-bottom: 0 !important;
    }

    #kg-dynamic-returns-table .fund-ranking-table thead th,
    #kg-dynamic-returns-table .fund-ranking-table tbody td,
    #kg-dynamic-returns-table .fund-ranking-table tfoot td {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    #kg-dynamic-returns-table .fund-ranking-table thead th {
        font-size: 15px !important;
        line-height: 1.3 !important;
        vertical-align: top !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.5rem !important;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: manual;
    }

    #kg-dynamic-returns-table .fund-ranking-table tbody td,
    #kg-dynamic-returns-table .fund-ranking-table tfoot td {
        font-size: 15px !important;
        line-height: 1.28 !important;
        vertical-align: middle;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    #kg-dynamic-returns-table .fund-ranking-table thead th:nth-child(1),
    #kg-dynamic-returns-table .fund-ranking-table tbody td:nth-child(1) {
        width: 1.9rem;
        min-width: 1.9rem;
        max-width: 2.3rem;
        padding-inline-start: 0.1rem !important;
        /* מרווח מעמודת שם הקופה (ב־RTL — קצה משותף עם שם) */
        padding-inline-end: 0.45rem !important;
    }

    #kg-dynamic-returns-table .fund-ranking-table thead th.fund-ranking-col-name,
    #kg-dynamic-returns-table .fund-ranking-table tbody td.fund-ranking-col-name {
        width: 10.7rem;
        min-width: 10.7rem;
        max-width: none;
        box-sizing: border-box;
        /* דוחף את «שם קופה» מעט שמאלה — ריווח מכותרת/תוכן דירוג */
        padding-inline-start: 0.5rem !important;
    }

    #kg-dynamic-returns-table .fund-ranking-table thead th.fund-ranking-col-name {
        word-break: normal;
        overflow-wrap: normal;
    }

    #kg-dynamic-returns-table .fund-ranking-table tbody td.fund-ranking-col-name {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* כותרות עמודות מספריות: רוחב מעט גדול יותר, שבירה רק בין מילים אם צריך */
    #kg-dynamic-returns-table .fund-ranking-table thead th:nth-child(n+3):nth-child(-n+9) {
        width: 3.85rem;
        min-width: 3.68rem;
        max-width: 4.14rem;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    /* נתונים: שורה אחת כדי לשמור על גובה שורה נמוך */
    #kg-dynamic-returns-table .fund-ranking-table tbody td:nth-child(n+3):nth-child(-n+9) {
        width: 3.85rem;
        min-width: 3.68rem;
        max-width: 4.14rem;
        white-space: nowrap;
    }

    #kg-dynamic-returns-table .fund-ranking-table thead th:nth-child(10),
    #kg-dynamic-returns-table .fund-ranking-table tbody td:nth-child(10) {
        width: 5.3rem;
        min-width: 4.9rem;
        max-width: 6.05rem;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    #kg-dynamic-returns-table .fund-ranking-table thead th:nth-child(10) {
        vertical-align: top !important;
    }

    #kg-dynamic-returns-table .fund-ranking-table .btn {
        padding: 0.22rem 0.4rem !important;
        font-size: 14px !important;
        line-height: 1.22 !important;
    }
}

/* ==========================================================================
   Wave 4.1 (feature/kupat-gemel-cta-uplift) - FAQ (Bootstrap 5 accordion)
   Themes default BS blue away; aligns with .kg-related / .kg-trust-card.
   CompareKupotGemel uses .faq-container in gemel-modern.css — same #17765a
   family there after the gemel-modern FAQ refresh.
   ========================================================================== */
.kg-faq {
    margin: 2rem 0 1.75rem;
    padding: 1.25rem 1.1rem 1.3rem;
    background: #fafdfb;
    border: 1px solid #d7eadf;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(23, 118, 90, 0.04);
}

.kg-faq__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f3a33;
    margin: 0 0 1rem;
    line-height: 1.25;
    text-align: right;
}

/* Bootstrap 5.3 CSS variables (accordion lives inside .kg-faq) */
.kg-faq .kg-faq__accordion.accordion {
    --bs-accordion-color: #33534a;
    --bs-accordion-bg: #fff;
    --bs-accordion-border-color: #cfe8de;
    --bs-accordion-border-radius: 0.5rem;
    --bs-accordion-inner-border-radius: 0.375rem;
    --bs-accordion-btn-color: #1f3a33;
    --bs-accordion-btn-bg: #fff;
    --bs-accordion-btn-focus-border-color: #9ecfb8;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(23, 118, 90, 0.18);
    --bs-accordion-active-color: #0f3d2e;
    --bs-accordion-active-bg: #e8f4f0;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2317765a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23125a46'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.kg-faq .accordion-item {
    background-color: #fff;
    border: 1px solid #cfe8de;
}

.kg-faq .accordion-item:not(:last-child) {
    margin-bottom: 0.5rem;
}

.kg-faq .accordion-button {
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.35;
    text-align: right;
}

.kg-faq .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: var(--bs-accordion-active-color);
    background-color: var(--bs-accordion-active-bg);
}

.kg-faq .accordion-body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #33534a;
    text-align: right;
    padding-top: 0.5rem;
}

.kg-faq .accordion-body a {
    color: #17765a;
    text-decoration: underline;
}

.kg-faq .accordion-body a:hover,
.kg-faq .accordion-body a:focus-visible {
    color: #125a46;
}

@media (prefers-reduced-motion: reduce) {
    .kg-faq .kg-faq__accordion.accordion * {
        transition: none !important;
    }
}

/* ==========================================================================
   Wave 4.3 (feature/kupat-gemel-cta-uplift) - Related funds block
   3-4 same-specialization funds rendered as a responsive card grid.
   Color family aligned with .kg-trust-card / .kg-cta-card (#17765a, mint
   borders) — option A: same design language, not a full CTA clone.
   ========================================================================== */
.kg-related {
    margin: 2rem 0 1.75rem;
    padding: 1.25rem 1.1rem 1.3rem;
    background: #fafdfb;
    border: 1px solid #d7eadf;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(23, 118, 90, 0.04);
}

.kg-related__head {
    margin-bottom: 1rem;
}

.kg-related__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f3a33;
    margin: 0 0 .35rem;
    line-height: 1.25;
}

.kg-related__lede {
    color: #33534a;
    font-size: .94rem;
    line-height: 1.45;
    margin: 0;
}

.kg-related__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.kg-related__card {
    background: #fff;
    border: 1px solid #cfe8de;
    border-radius: 10px;
    padding: 1rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (hover: hover) {
    .kg-related__card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(23, 118, 90, 0.1);
        border-color: #9ecfb8;
    }
}

.kg-related__card-head {
    min-height: 3.1rem;
}

.kg-related__card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .2rem;
}

.kg-related__card-link {
    color: #1f2933;
    text-decoration: none;
    transition: color 0.15s ease;
}

.kg-related__card-link:hover,
.kg-related__card-link:focus-visible {
    color: #17765a;
    text-decoration: underline;
}

.kg-related__card-company {
    font-size: .82rem;
    color: #4a5c56;
    margin: 0;
    line-height: 1.35;
}

.kg-related__card-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    border-top: 1px dashed #cfe8de;
    border-bottom: 1px dashed #cfe8de;
    padding: .7rem 0;
}

.kg-related__stat {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.kg-related__stat-label {
    font-size: .72rem;
    color: #4a5c56;
    line-height: 1.2;
    margin-bottom: .2rem;
}

.kg-related__stat-value {
    font-size: .98rem;
    font-weight: 700;
    color: #1f2933;
    line-height: 1.2;
    direction: ltr;
    unicode-bidi: plaintext;
}

.kg-related__card-cta {
    margin-top: auto;
    align-self: flex-start;
    font-size: .9rem;
    font-weight: 600;
    color: #17765a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem 0;
    transition: color 0.15s ease;
}

.kg-related__card-cta:hover,
.kg-related__card-cta:focus-visible {
    color: #125a46;
    text-decoration: underline;
}

.kg-related__fineprint {
    margin: 1rem 0 0;
    font-size: .78rem;
    color: #5a6b66;
    line-height: 1.45;
}

@media (max-width: 576px) {
    .kg-related {
        padding: 1rem .85rem 1.1rem;
    }

    .kg-related__grid {
        grid-template-columns: 1fr;
    }

    .kg-related__card-head {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kg-related__card {
        transition: none;
    }

    .kg-related__card:hover {
        transform: none;
    }
}

 
 

/* ---- FAQ accordion ---- */
.faq-item {
    background: #fafdfb;
    border: 1px solid #cfe8de;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(23, 118, 90, 0.06);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #fff;
    border-bottom: 1px solid #e8f0ed;
    transition: background-color 0.3s ease;
}

.faq-question:hover { background: #f5fbf8; }

.faq-question.active {
    background: #e8f4f0;
    border-bottom-color: #cfe8de;
}

.faq-icon {
    background: #17765a;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 1em;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon { transform: scale(1.1); }

.faq-text { flex: 1; margin: 0; padding: 0; }

h3.faq-text {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f3a33;
    text-align: right;
    direction: rtl;
    width: 100%;
    margin-right: 1em;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-answer.open { max-height: 1500px; }

.faq-answer p {
    padding: 20px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #33534a;
    text-align: right;
}

.faq-answer ul { padding: 20px; margin: 0; text-align: right; direction: rtl; }
.faq-answer li { text-align: right; direction: rtl; }
.faq-answer a { color: #17765a; text-decoration: underline; }
.faq-answer a:hover, .faq-answer a:focus { color: #125a46; }

@media (max-width: 768px) {
    .faq-question { padding: 15px; }
    .faq-icon { width: 25px; height: 25px; font-size: 16px; margin-right: 0.8em; }
    h3.faq-text { font-size: 16px; }
    .faq-answer p { padding: 15px; font-size: 16px; }
    .faq-answer ul { padding: 15px; }
}

/* ---- FAQ section: reset global compareTables.css width constraints inside detail page ---- */
.kg-data .indexArticle.supermarkerArticle {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: inherit;
}

#faq-services {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

