/* =====================================================================
   الصفحة الرئيسية: قسم الاعتماد الدولي + قسم "أين موضع الألم؟"
   ===================================================================== */

/* ---------------- الاعتماد الدولي ---------------- */
.accredit {
    padding: 70px 0 60px;
    background: linear-gradient(180deg, #fff 0%, #EEF6FB 100%);
}
.accreditCard {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 45px 60px;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(120deg, #003E63 0%, #00689D 55%, #399ED1 100%);
    box-shadow: 0 25px 50px -20px rgba(0, 62, 99, .55);
    transition: transform .25s, box-shadow .25s;
}
.accreditCard::before {        /* رموز طبية شفافة + نبض */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kh-pulse) center 70% / 100% 90px no-repeat, var(--kh-icons) center / cover no-repeat;
    opacity: .9;
}
.accreditCard:hover { transform: translateY(-4px); box-shadow: 0 32px 60px -20px rgba(0, 62, 99, .6); color: #fff; }

.accreditText { flex: 1; min-width: 0; }
.accreditBadge,
.painBadge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: .95rem;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
}
.accreditBadge i { color: #FFD66B; }
.accreditTitle {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.7;
    margin: 18px 0 22px;
    white-space: pre-line;
}
.accreditMore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 26px;
    border-radius: 40px;
    background: #fff;
    color: #00689D;
    font-weight: 600;
    transition: gap .2s;
}
.accreditCard:hover .accreditMore { gap: 16px; }

.accreditImg {
    flex: 0 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 30, 50, .35);
    transform: rotate(-3deg);
    transition: transform .3s;
}
.accreditCard:hover .accreditImg { transform: rotate(0) scale(1.03); }
.accreditImg img { display: block; width: 210px; height: auto; border-radius: 6px; }

@media (max-width: 991px) {
    .accreditCard { flex-direction: column-reverse; text-align: center; padding: 35px 25px; gap: 25px; }
    .accreditTitle { font-size: 1.35rem; }
    .accreditImg img { width: 170px; }
}

/* ---------------- أين موضع الألم ---------------- */
.body.painSection {
    position: relative;
    isolation: isolate;
    padding: 70px 0 50px;
    background: linear-gradient(135deg, #003E63 0%, #00689D 50%, #399ED1 100%);
}
.body.painSection::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--kh-icons) center / cover no-repeat;
    pointer-events: none;
}

.painSection .consultation { position: relative; z-index: 5; }
.painSection .painBadge i { color: #9EE0FF; }
.painSection .where_pain {
    margin: 16px 0 10px;
    font-size: 2.6rem;
    line-height: 1.4;
}
.painSection .select_part_plan {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 26px;
}

/* القائمة المنسدلة */
.painSection .partsDropdown { position: relative; max-width: 380px; }
.painSection .selectPart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: start;
    color: #00689D;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 30, 50, .25);
}
.painSection .selectPart span { display: inline-flex; align-items: center; gap: 10px; }
.painSection .selectPart > i { position: static; transition: transform .25s; }
.painSection .partsDropdown:has(.activeParts_body) .selectPart > i { transform: rotate(180deg); }

.painSection .parts_body {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 20;
    margin-top: 8px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 30, 50, .3);
    background: #fff;
    height: auto !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: max-height .3s, opacity .2s, visibility .3s;
}
.painSection .parts_body.activeParts_body { max-height: 280px; opacity: 1; visibility: visible; padding: 6px; }
.painSection .parts_body a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: start;
    font-weight: 600;
    color: #1f3b4d;
}
.painSection .parts_body a i { color: #399ED1; font-size: .85rem; }
.painSection .parts_body a:hover { background: #EEF6FB; color: #00689D; }

/* تلميح */
.painSection .painHint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .8);
}
.painSection .painHint i { font-size: 1.1rem; color: #9EE0FF; animation: painTap 1.6s ease-in-out infinite; }
@keyframes painTap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* نتيجة المرور على الجسم */
.painSection .resultPain {
    margin-top: 22px;
    padding: 20px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
}
.painSection .titleResult { font-size: 1.35rem; margin-bottom: 8px; }
.painSection .textResult {
    max-height: none;
    font-size: .95rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, .9);
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .painSection .where_pain { font-size: 2rem; }
    .painSection .partsDropdown { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .painSection .painHint i { animation: none; }
}
