/* section 1*/

.headline-row {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    background-color: #f9fafb;
    overflow: hidden;
}

.headline-text {
    font-size: 30px;
    font-weight: 600;
    color: #111827;

    opacity: 0;
    transform: translateX(120px);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.headline-icon {
    font-size: 38px;
    color: #0d1b2a;

    opacity: 0;
    transform: translateX(-120px);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.headline-row.visible .headline-text,
.headline-row.visible .headline-icon {
    opacity: 1;
    transform: translateX(0);
}

.headline-row.hidden .headline-text {
    opacity: 0;
    transform: translateX(120px);
}

.headline-row.hidden .headline-icon {
    opacity: 0;
    transform: translateX(-120px);
}

.siftah {
    background: linear-gradient(45deg, #365db4, #000000);
    padding: 40px 0;
    padding-bottom: 0px;
    display: flex;
    justify-content: center;
}

.siftah-inner {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 80%;
    max-width: 950px;
    gap: 32px;
}

.siftah-inner img {
    display: block;
}

.siftah-person,
.siftah-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.siftah-person img {
    width: 100%;
    height: auto;
    max-width: 295px;
}

.siftah-logo img {
    height: 300px;
    width: 400px;
}

@media (max-width: 768px) {
    .headline-text {
        font-size: 19px;
        margin-left: 5px;
    }

    .headline-icon {
        font-size: 30px;
    }

    .siftah-inner {
        align-items: center;
    }

    .siftah-logo img {
        height: 100px;
        width: auto;
    }
}

.about {
    background: #f9fafb;
    padding: 70px 10%;
    direction: rtl;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-box {
    flex: 1;
}

.about-box h2 {
    color: #1e3153;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: right;
}

.about-box p {
    font-size: 18px;
    line-height: 1.9;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: right;
}

/* מובייל */
@media (max-width: 768px) {
    .about {
        padding: 40px 6%;
    }

    .about-container {
        flex-direction: column;
        gap: 40px;
    }

    .about-box h2 {
        font-size: 26px;
        text-align: center;
    }

    .about-box p {
        font-size: 16px;
        text-align: right;
    }
}

/* section 3 */

.services-section {
    background-color: rgba(15, 23, 42, 0.96);
    margin-top: 20px;
    padding: 80px 20px 70px;
    display: flex;
    align-items: center;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.services-title {
    color: #ffffff;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.services-subtitle {
    font-size: 0.95rem;
    color: #d1d5db;
    margin-bottom: 32px;
}

#bottom-headline {
    margin-top: 30px;
    color: #d1d5db;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.services-section a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.services-section a:hover {
    color: #1d4ed8;
}



/* ===== גריד של הבועות ===== */
.services-bubbles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* מרכז את כל השורות */
    gap: 20px;
    margin-bottom: 26px;
}


.service-pill {
    border-radius: 999px;
    border: 2px solid #aaabae;
    background: #ffffff;
    color: #6d6d6e;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 20px;
    cursor: pointer;
    max-width: 260px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(52, 53, 54, 0.04);
    transition: background 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.service-pill:hover {
    background: #aaabae;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(52, 53, 54, 0.35);
    transform: translateY(-2px);
}

.service-pill.active {
    border-color: #aaabae;
    background: #aaabae;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(52, 53, 54, 0.35);
}

/* ===== כרטיס הפירוט שמתחת לבועות ===== */
.service-details-card {
    margin: 0 auto;
    max-width: 800px;
    text-align: right;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 20px 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    direction: rtl;
}

.service-details-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.service-details-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #374151;
}


/* section 4 */

.timeline-section {
    direction: rtl;
    background: #f9fafb;
    padding: 100px 20px;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-title-main {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 40px;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 20px;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-inline-start: 60px;
    margin-bottom: 16px;
}

.timeline-dot {
    position: absolute;
    inset-inline-start: 10px;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.timeline-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.timeline-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
}

.timeline-step-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #374151;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.timeline-item:hover .timeline-content,
.timeline-item:focus-within .timeline-content,
.timeline-item.active .timeline-content {
    background: #eff6ff;
    border-color: #111827;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
    transform: translateY(-2px);
}

.timeline-item:hover .timeline-step-text,
.timeline-item:focus-within .timeline-step-text,
.timeline-item.active .timeline-step-text {
    max-height: 200px;
    opacity: 1;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .timeline-section {
        padding: 60px 16px;
    }

    .timeline::before {
        inset-inline-start: 16px;
    }

    .timeline-item {
        padding-inline-start: 55px;
    }

    .timeline-step-title {
        font-size: 0.9rem;
    }

    .timeline-step-text {
        font-size: 0.85rem;
    }
}

/* section 5 */

.faq-section {
    direction: rtl;
    padding: 80px 20px 70px;
    color: #111827;
    display: flex;
    align-items: center;
}

.faq-container {
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

.faq-header {
    text-align: center;
    margin-bottom: 32px;
}

.faq-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.faq-subtitle {
    font-size: 0.95rem;
    color: #4b5563;
}

/* רשימת שאלות */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* כרטיס שאלה */

.faq-item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.12s ease,
        background-color 0.18s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

/* מצב פתוח */

.faq-item-open {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

/* כפתור השאלה */

.faq-question {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: right;
}

.faq-q-label {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    flex-shrink: 0;
}

.faq-q-text {
    flex: 1;
    font-size: 0.96rem;
    font-weight: 500;
}

/* אייקון פתיחה/סגירה */

.faq-toggle-icon {
    font-size: 1.1rem;
    width: 26px;
    text-align: center;
    color: #9ca3af;
    transition: transform 0.18s ease, color 0.18s ease;
}

/* כשהשאלה פתוחה – סיבוב וצבע */

.faq-item-open .faq-toggle-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* גוף התשובה */

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.25s ease,
        padding-bottom 0.2s ease;
    padding: 0 18px 0;
}

.faq-item-open .faq-answer-wrapper {
    max-height: 260px;
    /* מספיק לרוב תשובות הטקסט */
    padding-bottom: 14px;
}

.faq-answer {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.9;
}

/* רספונסיביות */

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 16px;
    }

    .faq-title {
        font-size: 1.85rem;
    }

    .faq-question {
        padding-inline: 14px;
    }

    .faq-answer-wrapper {
        padding-inline: 14px;
    }
}