/* עמודי שירות: ייעוץ משכנתאות / ליווי וייעוץ פיננסי */

.svc-page {
    direction: rtl;
}

/* באנר עליון */

.svc-hero {
    background: linear-gradient(45deg, #365db4, #000000);
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
}

.svc-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.svc-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.5rem;
}

.svc-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 16px 0 14px;
}

.svc-hero p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #e5e7eb;
}

/* ניווט בין הפרקים */

.svc-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px 0;
}

.svc-toc a {
    padding: 8px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #1e3153;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.svc-toc a:hover {
    border-color: #365db4;
    background: #eff6ff;
}

/* מודולי תוכן */

.svc-modules {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.svc-module {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    scroll-margin-top: 110px;
}

.svc-module > h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3153;
    margin-bottom: 18px;
}

.svc-module-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #365db4, #000000);
    color: #ffffff;
    font-size: 1rem;
}

.svc-placeholder {
    padding: 18px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

/* עיצוב התוכן שנטען מ-Markdown */

.svc-content {
    font-size: 1.02rem;
    line-height: 1.9;
    color: #1f2937;
}

.svc-content h2,
.svc-content h3,
.svc-content h4 {
    color: #1e3153;
    margin: 24px 0 10px;
    line-height: 1.4;
}

.svc-content h2 {
    font-size: 1.3rem;
}

.svc-content h3 {
    font-size: 1.12rem;
}

.svc-content > :first-child {
    margin-top: 0;
}

.svc-content p,
.svc-content ul,
.svc-content ol,
.svc-content table,
.svc-content blockquote {
    margin-bottom: 14px;
}

.svc-content ul,
.svc-content ol {
    padding-inline-start: 22px;
}

.svc-content a {
    color: #2563eb;
}

.svc-content blockquote {
    border-inline-start: 4px solid #365db4;
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 8px;
}

.svc-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
}

.svc-content th,
.svc-content td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: right;
}

.svc-content th {
    background: #f1f5f9;
    color: #1e3153;
}

/* כרטיסים בתוך תוכן Markdown: <div class="content-grid"> + <div class="content-card"> */

.svc-content .content-grid {
    display: grid;
    /* min() מונע גלישה במסכים צרים מ-280px */
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 14px;
}

.svc-content .content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #1e3153;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.svc-content .content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(30, 49, 83, 0.16);
}

.svc-content .content-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: #1e3153;
}

.svc-content .content-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.85;
    color: #374151;
}

.svc-content .content-card ul {
    margin: 14px 0 0;
    padding-top: 12px;
    padding-inline-start: 18px;
    border-top: 1px solid #e5e7eb;
}

.svc-content .content-card li {
    margin-bottom: 6px;
    font-size: 0.93rem;
    line-height: 1.75;
    color: #374151;
}

.svc-content .content-card li strong {
    color: #1e3153;
}

/* כרטיסים נפתחים (content-accordion): רק הכותרת גלויה, התיאור נפתח בלחיצה */

.svc-content .content-accordion {
    align-items: start;
}

.svc-content .content-accordion .content-card {
    padding: 0;
}

.svc-content .content-accordion .content-card h3 {
    margin: 0;
}

.svc-content .content-card-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3153;
    text-align: right;
    cursor: pointer;
}

.svc-content .content-card-toggle:hover {
    color: #365db4;
}

.svc-content .content-card-toggle:focus-visible {
    outline: 2px solid #365db4;
    outline-offset: -4px;
    border-radius: 12px;
}

.svc-content .content-card-toggle i {
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.svc-content .content-card.is-open .content-card-toggle i {
    transform: rotate(180deg);
}

.svc-content .content-card-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.svc-content .content-card.is-open .content-card-body {
    grid-template-rows: 1fr;
}

.svc-content .content-card-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px;
}

.svc-content .content-card-inner > :last-child {
    margin-bottom: 20px;
}

.svc-content .content-note {
    margin-top: 22px;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

/* ציר שלבים: <div class="content-timeline"> סביב רשימה ממוספרת */

.svc-content .content-timeline ol {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.svc-content .content-timeline li {
    counter-increment: step;
    position: relative;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    padding-inline-start: 66px;
    line-height: 1.85;
}

.svc-content .content-timeline li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 16px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(45deg, #365db4, #000000);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-content .content-timeline li strong {
    color: #1e3153;
}

@media (max-width: 768px) {
    .svc-content .content-timeline li {
        padding: 12px 14px;
        padding-inline-start: 58px;
    }

    .svc-content .content-timeline li::before {
        inset-inline-start: 12px;
        top: 12px;
    }
}

/* הנעה לפעולה */

.svc-cta {
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.svc-cta h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.svc-cta p {
    color: #d1d5db;
    margin-bottom: 26px;
}

.svc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 22px;
}

.svc-cta-btn {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.svc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.svc-cta-link {
    color: #93c5fd;
    font-weight: 500;
    text-decoration: none;
}

.svc-cta-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .svc-hero {
        padding: 50px 16px;
    }

    .svc-hero h1 {
        font-size: 1.9rem;
    }

    .svc-hero p {
        font-size: 1rem;
    }

    .svc-module {
        padding: 22px 18px;
    }

    .svc-module > h2 {
        font-size: 1.25rem;
    }
}
