/* ═══════════════════════════════════════════════════════════════════
   Static Pages — Professional Layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero Banner ──────────────────────────────────────────────────── */
.sp-hero {
    background: linear-gradient(135deg, #07426a 0%, #117098 60%, #1a8dbf 100%);
    padding: 52px 0 44px;
    position: relative;
    overflow: hidden;
}
.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,.07) 0%, transparent 60%),
                      radial-gradient(circle at 10% 80%, rgba(255,255,255,.05) 0%, transparent 50%);
}
.sp-hero__inner {
    position: relative;
    z-index: 1;
}
.sp-hero__crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 14px;
    font-family: 'DIN-Regular', sans-serif;
}
.sp-hero__crumb a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
}
.sp-hero__crumb a:hover { color: #fff; }
.sp-hero__crumb-sep {
    font-size: 11px;
    opacity: .5;
}
.sp-hero__title {
    font-family: 'DIN-Bold', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
    margin: 0;
    letter-spacing: -.3px;
    line-height: 1.3;
}
.sp-hero__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 14px;
}

/* ── Layout wrapper ───────────────────────────────────────────────── */
.sp-wrap {
    padding: 48px 0 72px;
}
.sp-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}

/* ── Main Content Card ────────────────────────────────────────────── */
.sp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(17,112,152,.07);
    overflow: hidden;
}
.sp-card__header {
    border-bottom: 1px solid #eef2f6;
    padding: 22px 28px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-card__header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8f4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #117098;
    font-size: 17px;
    flex: 0 0 auto;
}
.sp-card__header h2 {
    font-family: 'DIN-Bold', sans-serif;
    font-size: 1.15rem;
    color: #1a2330;
    margin: 0;
}
.sp-card__body {
    padding: 28px 32px 36px;
}

/* ── Content Typography ───────────────────────────────────────────── */
.sp-content {
    font-family: 'DIN-Regular', sans-serif;
    font-size: 1.04rem;
    line-height: 2;
    color: #2c3e50;
    direction: rtl;
}
.sp-content h1,
.sp-content h2,
.sp-content h3,
.sp-content h4 {
    font-family: 'DIN-Bold', sans-serif;
    color: #117098;
    margin: 2rem 0 .8rem;
    line-height: 1.4;
}
.sp-content h2 { font-size: 1.25rem; border-bottom: 2px solid #e8f4fb; padding-bottom: 8px; }
.sp-content h3 { font-size: 1.1rem; }
.sp-content h4 { font-size: 1rem; }
.sp-content p {
    margin-bottom: 1.1rem;
}
.sp-content ul,
.sp-content ol {
    padding-right: 22px;
    margin-bottom: 1.1rem;
}
.sp-content li {
    margin-bottom: .45rem;
}
.sp-content a {
    color: #117098;
    text-decoration: underline;
    text-decoration-color: rgba(17,112,152,.3);
    transition: color .2s;
}
.sp-content a:hover { color: #07426a; }
.sp-content strong { font-family: 'DIN-Bold', sans-serif; color: #1a2330; }
.sp-content blockquote {
    border-right: 4px solid #117098;
    margin: 1.5rem 0;
    padding: 14px 20px;
    background: #f0f7fb;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #445;
}
.sp-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2rem;
    font-size: .95rem;
}
.sp-content table th,
.sp-content table td {
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    text-align: right;
}
.sp-content table th {
    background: #e8f4fb;
    font-family: 'DIN-Bold', sans-serif;
    color: #117098;
}
.sp-content table tr:hover td { background: #f8fbfd; }
.sp-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}
.sp-content hr {
    border: none;
    border-top: 2px solid #eef2f6;
    margin: 2rem 0;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.sp-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sp-side-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(17,112,152,.07);
    overflow: hidden;
}
.sp-side-card__head {
    background: linear-gradient(90deg, #107098, #1a9dc8);
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DIN-Bold', sans-serif;
    font-size: .93rem;
    color: #fff;
}
.sp-side-card__head i { font-size: 15px; }
.sp-side-card__body { padding: 16px 18px; }

.sp-pages-list { list-style: none; margin: 0; padding: 0; }
.sp-pages-list li { border-bottom: 1px solid #f0f4f8; }
.sp-pages-list li:last-child { border-bottom: none; }
.sp-pages-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    font-family: 'DIN-Regular', sans-serif;
    font-size: 14px;
    color: #2c3e50;
    text-decoration: none;
    transition: color .2s, padding-right .2s;
}
.sp-pages-list a:hover { color: #117098; padding-right: 8px; }
.sp-pages-list a.active {
    color: #117098;
    font-family: 'DIN-Bold', sans-serif;
}
.sp-pages-list a i { font-size: 12px; color: #117098; opacity: .7; }

.sp-contact-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sp-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6fafd;
    font-size: 13px;
    color: #2c3e50;
    text-decoration: none;
    transition: background .2s;
    font-family: 'DIN-Regular', sans-serif;
    word-break: break-all;
}
.sp-contact-item:hover { background: #e8f4fb; color: #117098; }
.sp-contact-item i { color: #117098; font-size: 16px; flex: 0 0 auto; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sp-layout { grid-template-columns: 1fr; gap: 20px; }
    .sp-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .sp-side-card { flex: 1 1 calc(50% - 8px); }
}

/* ── Mobile Pages Nav (horizontal chips) ─────────────────────────── */
@media (max-width: 600px) {
    /* Hero */
    .sp-hero { padding: 28px 0 24px; }
    .sp-hero .container-xl { padding-left: 16px; padding-right: 16px; }
    .sp-hero__title { font-size: 1.25rem; }
    .sp-hero__icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 10px; }
    .sp-hero__crumb { font-size: 12px; margin-bottom: 10px; }

    /* Wrap */
    .sp-wrap { padding: 0 0 40px; }
    .sp-wrap > .container-xl { padding-left: 12px; padding-right: 12px; }

    /* Sidebar becomes a horizontal chip strip */
    .sp-sidebar {
        order: -1;
        flex-direction: column;
        gap: 0;
        margin: 0 -12px 16px;
    }

    /* Pages card: collapsed into horizontal scroll strip */
    .sp-side-card { flex: 1 1 100%; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eef2f6; }
    .sp-side-card__head { padding: 10px 16px; font-size: .85rem; }
    .sp-side-card__body { padding: 6px 0; }

    .sp-pages-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 4px 16px 8px; scrollbar-width: none; }
    .sp-pages-list::-webkit-scrollbar { display: none; }
    .sp-pages-list li { border-bottom: none; flex: 0 0 auto; }
    .sp-pages-list a {
        padding: 6px 14px;
        border: 1.5px solid #d0e6f0;
        border-radius: 20px;
        background: #f6fafd;
        font-size: 13px;
        white-space: nowrap;
    }
    .sp-pages-list a:hover,
    .sp-pages-list a.active {
        background: #117098;
        border-color: #117098;
        color: #fff;
        padding-right: 14px;
    }
    .sp-pages-list a i { display: none; }

    /* Contact card: horizontal pills */
    .sp-contact-box { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 8px 16px 12px; }
    .sp-contact-item { flex: 1 1 auto; justify-content: center; font-size: 13px; padding: 8px 12px; }

    /* Content card */
    .sp-card { border-radius: 12px; margin: 0 0 0; box-shadow: 0 1px 8px rgba(17,112,152,.08); }
    .sp-card__header { padding: 14px 16px 12px; }
    .sp-card__header h2 { font-size: 1rem; }
    .sp-card__body { padding: 16px 14px 24px; }
    .sp-content { font-size: .98rem; line-height: 1.85; }
    .sp-content h2 { font-size: 1.1rem; }
    .sp-content h3 { font-size: 1rem; }
}
