/* ================================================================
   الصفحة الرئيسية — يُحمَّل بعد site.css
   ================================================================ */

body.lb-home { background: #fff; }
body.lb-home :where(h1, h2, h3, h4, p, ul, ol, dl, dd) { margin: 0; }
body.lb-home :where(ul, ol) { padding: 0; list-style: none; }
body.lb-home img { max-width: 100%; }

/* ---------- الواجهة: الشرائح الحالية مع طبقة كحلية ---------- */
.lb-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(560px, calc(100svh - var(--lb-header-h)));
    padding: 64px 0 128px;
    overflow: hidden;
    color: #fff;
    background: var(--lb-navy);
    isolation: isolate;
}
.lb-hero .hero-slider,
.lb-hero .slide { position: absolute; inset: 0; z-index: -2; }
.lb-hero .slide { opacity: 0; transition: opacity 1.2s ease; background: var(--lb-navy-2); }
.lb-hero .slide.active { opacity: 1; }
.lb-hero .hero-slide-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.lb-hero .slide.active .hero-slide-image { transform: scale(1); }
.lb-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(270deg, rgba(8, 28, 52, .94) 0%, rgba(8, 28, 52, .82) 42%, rgba(8, 28, 52, .45) 100%),
        linear-gradient(0deg, rgba(8, 28, 52, .55), transparent 40%);
}

.lb-hero-content { position: relative; }
.lb-hero-content > * { max-width: 640px; }
.lb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(197, 160, 89, .55);
    border-radius: 999px;
    background: rgba(197, 160, 89, .12);
    color: #f1dcae;
    font-size: .875rem;
    font-weight: 600;
}
.lb-hero h1 {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}
.lb-hero-lead { margin-bottom: 36px; color: #d6e0eb; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.8; max-width: 52ch; }
.lb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lb-hero-controls {
    position: absolute;
    inset-inline-start: max(24px, calc((100% - var(--lb-container)) / 2));
    bottom: 104px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.lb-hero .slide-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}
.lb-hero .slide-arrow:hover { border-color: var(--lb-gold); background: rgba(197, 160, 89, .2); }
.lb-hero .slider-controls { display: flex; gap: 8px; }
.lb-hero .dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}
.lb-hero .dot.active { width: 26px; background: var(--lb-gold); }
.lb-hero .slider-controls:has(.dot:only-child) { display: none; }
.lb-hero-controls:has(.dot:only-child) .slide-arrow { display: none; }

/* ---------- بحث التحقق من الاعتماد (يعلو حافة الواجهة) ---------- */
.lb-verify { position: relative; z-index: 2; margin-top: -76px; }
.lb-verify-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 28px;
    padding: 26px 30px;
    border: 1px solid var(--lb-line);
    border-top: 3px solid var(--lb-gold);
    border-radius: var(--lb-radius-lg);
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 35, 64, .14);
}
.lb-verify-text h2 { margin-bottom: 4px; color: var(--lb-navy); font-size: 1.375rem; font-weight: 700; }
.lb-verify-text p { color: var(--lb-muted); font-size: .9375rem; }
.lb-verify-field { position: relative; display: flex; gap: 10px; }
.lb-verify-field > i { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: #8695a6; pointer-events: none; }
.lb-verify-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 54px;
    padding: 0 16px;
    padding-inline-start: 44px;
    border: 1px solid #c3cdd8;
    border-radius: var(--lb-radius);
    background: var(--lb-surface);
    color: var(--lb-ink);
    font-size: 1rem;
}
.lb-verify-field input:focus { outline: none; border-color: var(--lb-blue); background: #fff; box-shadow: 0 0 0 3px rgba(0, 86, 179, .15); }
.lb-verify-field .lb-btn { min-height: 54px; flex: 0 0 auto; }

/* ---------- عن المركز ---------- */
.lb-about { padding-top: 96px; }
.lb-about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.lb-about .lb-section-head { margin-bottom: 24px; }
.lb-lead { margin-bottom: 14px; color: var(--lb-navy); font-size: 1.25rem; font-weight: 600; line-height: 1.75; }
.lb-about-text > p:not(.lb-lead) { margin-bottom: 20px; color: var(--lb-muted); font-size: 1.0625rem; }
.lb-vm { display: grid; gap: 0; border-top: 1px solid var(--lb-line); }
.lb-vm-item { padding: 24px 0; border-bottom: 1px solid var(--lb-line); }
.lb-vm dt { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--lb-navy); font-size: 1.125rem; font-weight: 700; }
.lb-vm dt i { color: var(--lb-gold); }
.lb-vm dd { color: var(--lb-muted); font-size: 1rem; line-height: 1.85; }

/* ---------- مجالات الاعتماد ---------- */
.lb-schemes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lb-scheme {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 24px 22px 20px;
    border: 1px solid var(--lb-line);
    border-radius: var(--lb-radius-lg);
    background: #fff;
    color: var(--lb-ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.lb-scheme:hover { border-color: rgba(0, 86, 179, .4); box-shadow: var(--lb-shadow); transform: translateY(-2px); }
.lb-scheme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--lb-blue-soft);
    color: var(--lb-blue);
    font-size: 1.25rem;
}
.lb-scheme-std { color: var(--lb-gold-dark); font-size: .875rem; font-weight: 700; letter-spacing: .02em; text-align: right; }
.lb-scheme strong { color: var(--lb-navy); font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.lb-scheme-more { margin-top: auto; padding-top: 16px; color: var(--lb-blue); font-size: .875rem; font-weight: 600; }
.lb-scheme-more i { font-size: .75em; margin-inline-start: 4px; transition: transform .18s ease; }
.lb-scheme:hover .lb-scheme-more i { transform: translateX(-4px); }

/* ---------- خطوات الاعتماد ---------- */
.lb-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.lb-steps::before {
    content: "";
    position: absolute;
    top: 22px;
    inset-inline: 22px;
    height: 2px;
    background: linear-gradient(270deg, var(--lb-gold), rgba(197, 160, 89, .25));
}
.lb-steps li { position: relative; }
.lb-step-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border: 2px solid var(--lb-gold);
    border-radius: 50%;
    background: #fff;
    color: var(--lb-navy);
    font-size: 1.125rem;
    font-weight: 700;
}
.lb-steps li:first-child .lb-step-num { background: var(--lb-gold); color: var(--lb-navy); }
.lb-steps h3 { margin-bottom: 6px; color: var(--lb-navy); font-size: 1.125rem; font-weight: 700; }
.lb-steps p { color: var(--lb-muted); font-size: .9375rem; line-height: 1.8; max-width: 30ch; }
.lb-steps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- الأخبار: خبر رئيسي وقائمة ---------- */
.lb-news { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; min-height: 200px; }
.lb-news-feature {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--lb-line);
    border-radius: var(--lb-radius-lg);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .18s ease;
}
.lb-news-feature:hover { box-shadow: var(--lb-shadow); }
.lb-news-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lb-blue-soft); }
.lb-news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lb-news-feature:hover .lb-news-media img { transform: scale(1.03); }
.lb-news-media.is-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--lb-navy-2), var(--lb-navy)); }
.lb-news-media.is-placeholder img { width: 34%; height: auto; object-fit: contain; opacity: .9; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .3)); background: #fff; border-radius: 14px; padding: 10px 14px; }
.lb-news-pin {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--lb-gold);
    color: var(--lb-navy);
    font-size: .8125rem;
    font-weight: 700;
}
.lb-news-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.lb-news-date { color: var(--lb-gold-dark); font-size: .875rem; font-weight: 600; }
.lb-news-feature h3 { color: var(--lb-navy); font-size: 1.375rem; font-weight: 700; line-height: 1.5; }
.lb-news-feature p { color: var(--lb-muted); font-size: 1rem; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lb-news-feature .lb-link { margin-top: 4px; }

.lb-news-list { display: flex; flex-direction: column; border: 1px solid var(--lb-line); border-radius: var(--lb-radius-lg); background: #fff; overflow: hidden; }
.lb-news-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease;
}
.lb-news-item + .lb-news-item { border-top: 1px solid var(--lb-line); }
.lb-news-item:hover { background: var(--lb-surface); }
.lb-news-thumb { width: 96px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--lb-blue-soft); }
.lb-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-news-thumb.is-placeholder { display: flex; align-items: center; justify-content: center; background: var(--lb-navy-2); }
.lb-news-thumb.is-placeholder img { width: 64%; height: auto; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 5px; }
.lb-news-item .lb-news-date { display: block; margin-bottom: 2px; font-size: .8125rem; }
.lb-news-item h4 { margin: 0; color: var(--lb-navy); font-size: 1rem; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-news-list-empty { padding: 24px; color: var(--lb-muted); }
.lb-news-state { grid-column: 1 / -1; padding: 40px 24px; border: 1px dashed #c8d2dd; border-radius: var(--lb-radius-lg); background: #fff; color: var(--lb-muted); text-align: center; }
.lb-news-skeleton { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.lb-news-skeleton span { display: block; min-height: 220px; border-radius: var(--lb-radius-lg); background: linear-gradient(90deg, #eef2f6 0%, #f7f9fb 50%, #eef2f6 100%); background-size: 200% 100%; animation: lb-skeleton 1.4s ease infinite; }
.lb-news-skeleton span:nth-child(3) { display: none; }
@keyframes lb-skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- آخر القرارات والمستندات ---------- */
.lb-updates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lb-updates:has(> .lb-updates-col[hidden]) { grid-template-columns: minmax(0, 1fr); }
.lb-updates-col { border: 1px solid var(--lb-line); border-radius: var(--lb-radius-lg); background: #fff; overflow: hidden; }
.lb-updates-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--lb-line); background: var(--lb-surface); }
.lb-updates-head h3 { display: flex; align-items: center; gap: 10px; color: var(--lb-navy); font-size: 1.0625rem; font-weight: 700; }
.lb-updates-head h3 i { color: var(--lb-gold-dark); }
.lb-updates-head .lb-link { font-size: .875rem; }
.lb-updates-list li + li { border-top: 1px solid var(--lb-line); }
.lb-updates-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 22px; color: var(--lb-ink); text-decoration: none; }
.lb-updates-list a:hover { background: var(--lb-surface); color: var(--lb-blue); }
.lb-updates-list strong { font-size: .9688rem; font-weight: 600; line-height: 1.6; }
.lb-updates-list span { flex: 0 0 auto; color: var(--lb-muted); font-size: .8125rem; white-space: nowrap; }

/* ---------- تواصل معنا ---------- */
.lb-contact { background: var(--lb-navy); color: #d6e0eb; position: relative; overflow: hidden; }
.lb-contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 100% 0%, rgba(0, 86, 179, .45), transparent 70%); pointer-events: none; }
.lb-contact > .lb-container { position: relative; }
.lb-contact .lb-section-head h2 { color: #fff; }
.lb-contact .lb-section-head p { color: #b9c7d6; }
.lb-contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.lb-contact-info { display: grid; gap: 4px; }
.lb-contact-info li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.lb-contact-info li > i { flex: 0 0 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(197, 160, 89, .14); color: var(--lb-gold); }
.lb-contact-info h3 { margin-bottom: 2px; color: #fff; font-size: 1rem; font-weight: 700; }
.lb-contact-info p { color: #c9d5e2; font-size: .9688rem; }
.lb-contact-info a { color: #f1dcae; text-decoration: none; }
.lb-contact-info a:hover { text-decoration: underline; }
.lb-contact-sub { margin-top: 4px !important; font-size: .875rem !important; }

.lb-contact-form { padding: 28px; border-radius: var(--lb-radius-lg); background: #fff; color: var(--lb-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.lb-contact-form h3 { margin-bottom: 18px; color: var(--lb-navy); font-size: 1.25rem; font-weight: 700; }
.lb-contact-submit { width: 100%; margin-top: 6px; }
.lb-contact .form-status-msg:empty { display: none; }
.lb-contact .form-status-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--lb-radius); font-size: .9375rem; font-weight: 600; text-align: right; }
.lb-contact .form-msg-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.lb-contact .form-msg-error { background: #fef3f2; color: #b42318; border: 1px solid #f6c8c3; }

/* ---------- أيقونة الإعلانات العائمة ---------- */
.lb-ann-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--lb-navy);
    color: #fff;
    box-shadow: 0 12px 30px rgba(11, 35, 64, .35), 0 0 0 4px rgba(197, 160, 89, .35);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: lb-fab-in .5s .8s cubic-bezier(.2, .9, .3, 1.2) both;
}
.lb-ann-fab[hidden] { display: none; }
.lb-ann-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11, 35, 64, .4), 0 0 0 4px rgba(197, 160, 89, .6); color: #fff; }
.lb-ann-fab-icon { position: relative; font-size: 1.375rem; transform: scaleX(-1); }
.lb-ann-dot { position: absolute; top: -6px; right: -8px; display: none; width: 12px; height: 12px; border: 2px solid var(--lb-navy); border-radius: 50%; background: var(--lb-gold); }
.lb-ann-fab.has-unread .lb-ann-dot { display: block; }
.lb-ann-fab.has-unread .lb-ann-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--lb-gold); animation: lb-ping 1.8s ease-out infinite; }
@keyframes lb-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes lb-fab-in { from { transform: translateY(20px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

.lb-ann-peek {
    position: fixed;
    left: 96px;
    bottom: 28px;
    z-index: 900;
    display: grid;
    gap: 2px;
    width: min(320px, calc(100vw - 128px));
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--lb-line);
    border-inline-start: 3px solid var(--lb-gold);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(11, 35, 64, .18);
    color: var(--lb-ink);
    cursor: pointer;
    animation: lb-peek-in .35s ease both;
}
.lb-ann-peek[hidden] { display: none; }
.lb-ann-peek.is-leaving { animation: lb-peek-out .3s ease both; }
.lb-ann-peek-label { color: var(--lb-gold-dark); font-size: .75rem; font-weight: 700; }
.lb-ann-peek-title { color: var(--lb-navy); font-size: .9688rem; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-ann-peek-date { color: var(--lb-muted); font-size: .8125rem; }
.lb-ann-peek-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--lb-muted); cursor: pointer; }
.lb-ann-peek-close:hover { background: var(--lb-surface); color: var(--lb-ink); }
@keyframes lb-peek-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes lb-peek-out { to { opacity: 0; transform: translateX(-10px); } }

/* ---------- الشاشات المتوسطة والجوال ---------- */
@media (max-width: 1080px) {
    .lb-schemes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .lb-steps::before { display: none; }
    .lb-verify-card { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
    .lb-about-grid, .lb-contact-grid, .lb-news, .lb-updates { grid-template-columns: minmax(0, 1fr); }
    .lb-about-grid { gap: 32px; }
    .lb-news-skeleton { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .lb-hero { min-height: 0; padding: 48px 0 124px; }
    .lb-hero-shade { background: linear-gradient(180deg, rgba(8, 28, 52, .78) 0%, rgba(8, 28, 52, .9) 100%); }
    .lb-hero-actions .lb-btn { flex: 1 1 100%; }
    .lb-hero-controls { bottom: 96px; inset-inline-start: 18px; }
    .lb-verify { margin-top: -72px; }
    .lb-verify-card { padding: 20px 18px; }
    .lb-verify-field { flex-direction: column; }
    .lb-verify-field > i { top: 27px; }
    .lb-verify-field .lb-btn { width: 100%; }
    .lb-schemes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lb-scheme { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 18px; }
    .lb-scheme-icon { grid-row: 1 / span 3; margin: 0; }
    .lb-scheme-more { grid-column: 2; padding-top: 6px; }
    .lb-steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .lb-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; padding-bottom: 24px; }
    .lb-steps li:not(:last-child)::after { content: ""; position: absolute; top: 50px; bottom: 4px; inset-inline-start: 22px; width: 2px; background: rgba(197, 160, 89, .4); }
    .lb-step-num { grid-row: 1 / span 2; margin: 0; }
    .lb-steps-actions .lb-btn { flex: 1 1 100%; }
    .lb-news-item { grid-template-columns: 80px minmax(0, 1fr); padding: 14px; }
    .lb-news-thumb { width: 80px; }
    .lb-form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .lb-contact-form { padding: 20px 18px; }
    .lb-captcha { grid-template-columns: minmax(0, 1fr) 96px; }
    .lb-updates-list a { flex-direction: column; gap: 2px; }
    .lb-ann-fab { left: 16px; bottom: 16px; width: 54px; height: 54px; }
    .lb-ann-peek { left: 16px; right: 16px; bottom: 82px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .lb-hero .slide, .lb-hero .hero-slide-image { transition: none; transform: none; }
    .lb-ann-fab, .lb-ann-peek, .lb-ann-dot::after, .lb-news-skeleton span { animation: none !important; }
    .lb-scheme, .lb-news-media img { transition: none; }
}
