:root {
    --ink: #0b1220;
    --muted: #64748b;

    --p0: #0b2a4a;
    --p1: #0e3a66;
    --p2: #155e9a;

    --bg: #f7f9fc;
    --card: #ffffff;

    --shadow: 0 16px 46px rgba(11, 18, 32, .12);
    --shadow2: 0 10px 26px rgba(11, 18, 32, .10);
    --r28: 28px;
}

.cpage-wrap,
.cpage-wrap *,
.cpage-wrap *::before,
.cpage-wrap *::after {
    box-sizing: border-box;
    font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
}

a {
    color: inherit
}

button {
    font-family: inherit
}

.cpage-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 14px 64px;
}

.cpage-hero {
    border-radius: var(--r28);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(74, 22, 103, .26);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
    margin-bottom: 26px;
}

.cpage-heroTop {
    padding: 16px 18px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(74, 22, 103, .22);
    background: rgba(74, 22, 103, .03);
}

.cpage-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}

.cpage-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(74, 22, 103, .08);
    border: 1px solid rgba(74, 22, 103, .16);
    color: var(--p2);
    font-weight: 900;
    font-size: 12px;
}

.cpage-kicker svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2
}

.cpage-title h1 {
    margin: 0;
    font-weight: 900;
    font-size: 22px;
    color: var(--p0);
}

.cpage-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.cpage-stat {
    min-width: 150px;
    border-radius: 18px;
    padding: 10px 12px;
    background: rgba(74, 22, 103, .06);
    border: 1px solid rgba(74, 22, 103, .14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cpage-stat .n {
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    color: var(--p0);
}

.cpage-stat .t {
    font-weight: 700;
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
}

.cpage-panel {
    padding: 14px 18px 16px;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .06);
}

.cpage-form {
    margin: 0;
}

.cpage-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 22px;
    padding: 8px 10px;
}

.cpage-field {
    flex: 1 1 auto;
    min-width: 0;
}

.cpage-in {
    width: 100%;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 900;
    outline: none;
    padding: 0 10px;
    margin: 0;
    min-width: 0;
}

.cpage-in::placeholder {
    color: #64748b;
    font-weight: 800;
}

.cpage-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.cpage-btn {
    height: 46px;
    border-radius: 16px;
    padding: 0 14px;
    font-weight: 900;
    border: 1px solid rgba(15, 23, 42, .14);
    background: #fff;
    color: var(--p0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: .15s;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
}

.cpage-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2
}

.cpage-btn.primary {
    border: 0;
    color: #fff;
    background: var(--p2);
    box-shadow: 0 10px 22px rgba(74, 22, 103, .18);
}

.cpage-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
}

.cpage-grid {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
}

.cpage-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(74, 22, 103, .14);
    box-shadow: var(--shadow2);
    transition: .18s;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    flex: 1 1 320px;
    max-width: 440px;
}

.cpage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(74, 22, 103, .28);
}

.cpage-media {
    position: relative;
    height: 185px;
    background-color: var(--p1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cpage-media:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .10), rgba(0, 0, 0, .18));
}

.cpage-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cpage-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 11px;
    white-space: nowrap;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(15, 23, 42, .10);
    color: var(--p0);
}

.cpage-pill svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2
}

.cpage-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cpage-title2 {
    margin: 0;
    font-weight: 900;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.85;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpage-title2:after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: rgba(74, 22, 103, .26);
    margin: 10px auto 0;
}

.cpage-desc {
    color: #556277;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.95;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpage-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.cpage-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(74, 22, 103, .06);
    border: 1px solid rgba(74, 22, 103, .12);
    color: rgba(15, 23, 42, .92);
    font-weight: 900;
    font-size: 11px;
}

.cpage-meta span svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2
}

.cpage-meta span.on {
    background: rgba(16, 185, 129, .10);
    border: 1px solid rgba(16, 185, 129, .22);
    color: #065f46;
}

.cpage-meta span.off {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .22);
    color: #7f1d1d;
}

.cpage-cta {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.cpage-a {
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    font-size: 12px;
    text-decoration: none;
    transition: .15s;
    white-space: nowrap;
    border: 0;
    color: #fff;
    background: var(--p2);
    box-shadow: 0 10px 22px rgba(74, 22, 103, .16);
    max-width: 240px;
    width: 100%;
    padding: 0 14px;
}

.cpage-a svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2
}

.cpage-a:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
}

.cpage-empty {
    margin-top: 12px;
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    line-height: 2;
    background: #fff;
    border: 1px dashed rgba(74, 22, 103, .30);
    box-shadow: var(--shadow2);
}

@media (max-width: 991px) {
    .cpage-bar {
        flex-wrap: wrap;
        padding: 10px;
    }

    .cpage-actions {
        width: 100%;
    }

    .cpage-btn {
        flex: 1;
        min-width: 0;
    }

    .cpage-stat {
        min-width: 0;
        flex: 1;
    }

    .cpage-card {
        max-width: 520px;
    }

    .cpage-a {
        max-width: none;
    }
}

.price-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sar-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

.riyal-svg {
    display: inline-block;
    vertical-align: -3px
}

.price-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: ltr
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
}

.cpage-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 14px 64px;
}

@media (max-width: 576px) {

    html,
    body {
        overflow-x: hidden;
    }

    .cpage-wrap {
        padding: 10px 10px 22px;
    }

    .cpage-heroTop {
        padding: 12px 12px 8px;
        justify-content: center;
        text-align: center;
    }

    .cpage-title {
        min-width: auto;
        align-items: center;
        width: 100%;
    }

    .cpage-stats {
        width: 100%;
        justify-content: center;
    }

    .cpage-panel {
        padding: 12px 12px 12px;
    }

    .cpage-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .cpage-actions {
        width: 100%;
        justify-content: center;
    }

    .cpage-btn {
        width: 100%;
    }


    .cpage-grid {
        margin-top: 16px;
        display: flex;
        flex-direction: column;

        gap: 14px;
        align-items: center;
        padding: 0;
    }

    .cpage-card {
        width: 100%;

        max-width: 100%;
        min-height: auto;

        flex: none;

    }

    .cpage-media {
        height: 140px;

    }

    .cpage-body {
        padding: 12px 14px 14px;
    }

    .cpage-title2 {
        font-size: 14.5px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }

    .cpage-desc {
        font-size: 12px;
        line-height: 1.7;
        -webkit-line-clamp: 2;

    }

    .cpage-meta {
        gap: 6px;
    }

    .cpage-meta span {
        padding: 6px 9px;
        font-size: 10.5px;
    }

    .cpage-meta span svg {
        width: 12px;
        height: 12px;
    }

    .cpage-cta {
        margin-top: 8px;
    }

    .cpage-a {
        height: 42px;
        font-size: 12px;
        max-width: 100%;
    }


    .site-footer__top,
    .site-footer__bottom {
        justify-content: center !important;
        text-align: center !important;
    }
}