
:root {
    --bg-page: #ffffff;
    --text-main: #1d2939;
    --text-muted: #6b7c98;
    --blue-main: #4180d0;
    --panel-light: #f0e9ef;
    --panel-blue: #d3deef;
}

* { box-sizing: border-box; }

body.site-body {
    font-family: "Droid Arabic Kufi", "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}

.site-header { background: transparent; }
.site-header-wrap {
    align-items: center;
    direction: ltr;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin: 0;
    order: 2;
}

.site-brand-logo { width: clamp(150px, 15vw, 230px); height: auto; display: block; }

.site-header .navbar-collapse {
    justify-content: flex-end;
    direction: rtl;
    order: 1;
    margin-right: auto;
}
.site-header .navbar-nav {
    margin: 0;
}
.site-header .nav-link { color: #2b394f; font-size: clamp(1rem, 1.2vw, 1.35rem); }
.site-header .nav-link.active,
.site-header .nav-link:hover { color: var(--blue-main); }

.site-login-btn {
    border: 0;
    background: var(--blue-main);
    border-radius: 16px;
    padding: 24px;
    font-size: clamp(1rem, 1.2vw, 1.35rem);
}


.homepage-main { padding-bottom: 2.5rem; }

.home-hero {
    min-height: 58vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4.5rem 0 8rem;
    background: url('images/hero-bg.svg') no-repeat center bottom / 100% auto;
}

.home-hero h1 { color: var(--blue-main); font-size: 48px; font-weight: 700; line-height: 1.25; margin: 0; }
.home-hero .hero-secondary { color: #111827; margin-top: 0.35rem; margin-bottom: 1rem; }
.home-hero p {
    max-width: 920px;
    margin: 0 auto;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.9;
}

.home-services-wrap {
    margin-top: -1rem;
    border-radius: 80px;
    background: linear-gradient(253.44deg, #d6e6fb 1.8%, #fcf0f0 98.97%);
}
.home-services {
    border-radius: 80px;
    background: transparent;
    padding: 2.6rem 2rem;
}

.home-services h2,
.home-clients h2,
.app-banner-card h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #112034;
}

.home-services > p,
.home-clients p {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
}

.services-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem 1.3rem;
}

.service-card {
    background: #fff;
    border-radius: 28px;
    min-height: 248px;
    padding: 1.35rem 1.2rem 1.9rem;
    position: relative;
    box-shadow: 0 8px 20px rgba(31, 57, 99, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-icon { width: 48px; height: 48px; object-fit: contain; margin-bottom: 1rem; }
.service-card h3 { font-size: clamp(1rem, 1.3vw, 1.9rem); font-weight: 700; margin-bottom: 0.7rem; color: #0f2237; }
.service-card p { color: #7082a0; font-size: 14px; font-weight: 500; line-height: 1.5; margin-bottom: 0; }

.service-arrow {
    position: absolute;
    bottom: -14px;
    inset-inline-start: -2px;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #4a87da;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.service-badge {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    transform: translate(-22%, -20%);
    padding: 0.55rem 1rem;
    border-radius: 16px;
    background: #ed3f76;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.home-app-banner,
.home-clients { padding-top: 3rem; }

.app-banner-card {
    border-radius: 34px;
    background: linear-gradient(90deg, var(--panel-light), var(--panel-blue));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.7rem;
}

.app-phone-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(66, 131, 218, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-phone-image { width: 78px; height: auto; object-fit: contain; }
.app-banner-card h2 { margin: 0; text-align: right; line-height: 1.2; }
.app-actions { display: flex; gap: 0.8rem; }
.app-actions a img { width: 185px; max-width: 100%; height: auto; display: block; }

.home-clients { padding-bottom: 2.5rem; }
.clients-marquee { margin-top: 2rem; overflow: hidden; width: 100%; direction: ltr; }
.clients-track { display: flex; width: max-content; gap: 1rem; animation: clients-scroll 32s linear infinite; }
.client-logo-card {
    background: transparent;
    border: 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    flex: 0 0 calc((100vw - 8rem) / 5);
    max-width: 220px;
    min-width: 160px;
}
.client-logo-card img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; }

@keyframes clients-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.site-footer { padding: 1rem 0 1.6rem; }
.site-footer-card {
    border-radius: 42px;
    background: linear-gradient(90deg, #efe8ee, #cfdbef);
    padding: 2rem 2.2rem 0;
    overflow: hidden;
}

.site-footer-shell {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    align-items: center;
    min-height: 280px;
}

.site-footer-brand-line { display: flex; align-items: center; gap: 1rem; justify-content: flex-start; }
.site-footer-brand-line h3 { margin: 0; font-size: clamp(1.5rem, 2vw, 2.2rem); font-weight: 700; color: #111f34; }
.site-footer-mark { width: 78px; }
.site-footer-right p { margin: 0.8rem 0 1.2rem; font-size: 16px; font-weight: 500; color: #6c7f9b; }

.site-footer-contact { display: flex; align-items: center; gap: 0.8rem; }
.site-footer-contact strong { font-size: clamp(1.15rem, 1.6vw, 2rem); font-weight: 700; }
.site-footer-call-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf2fb;
    color: #4a87da;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer-company img { width: 300px; max-width: 100%; display: block; }
.site-footer-left { text-align: left; }
.site-footer-gov-logos { display: flex; align-items: center; gap: 1rem; }
.site-footer-gov-logos img { height: 72px; width: auto; object-fit: contain; }

.site-footer-social {
    margin-top: 2rem;
    margin-inline-start: 9rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #c8bfd3;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-copyright {
    margin-top: 0;
    background: #f7f8fb;
    border-radius: 0 50px 42px 42px;
    font-size: clamp(1rem, 1.45vw, 1.75rem);
    font-weight: 700;
    text-align: center;
    padding: 1.15rem;
    width: min(62%, 710px);
}

@media (max-width: 1199.98px) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-logo-card { flex-basis: calc((100vw - 6rem) / 4); }
    .app-banner-card { grid-template-columns: auto 1fr; }
    .site-footer-shell { grid-template-columns: 1fr; text-align: center; }
    .site-footer-brand-line,
    .site-footer-contact,
    .site-footer-gov-logos { justify-content: center; }
    .site-footer-left { text-align: center; }
    .site-footer-social { margin-inline-start: 0; }
    .site-copyright { width: 100%; border-radius: 0 0 24px 24px; }
}

@media (max-width: 991.98px) {
    .navbar-collapse { margin-top: 0.7rem; }
    .site-header-wrap { direction: rtl; }
    .site-header .navbar-nav { align-items: flex-start !important; margin-inline-start: 0; }
    .site-brand { order: 0; margin-inline-start: auto; }
    .site-header .navbar-collapse { direction: rtl; margin-right: 0; }
    .site-login-btn { margin-bottom: 0.4rem; }
    .home-hero { min-height: auto; padding: 2rem 0 5rem; }
    .home-hero h1 { font-size: 38px; }
    .home-services { padding: 2rem 1.2rem; border-radius: 28px; }
    .app-banner-card { grid-template-columns: 1fr; text-align: center; }
    .app-banner-card h2 { text-align: center; }
    .app-actions { justify-content: center; }
    .client-logo-card { flex-basis: calc((100vw - 4rem) / 3); }
}

@media (max-width: 575.98px) {
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .home-hero h1 { font-size: 32px; }
    .home-services h2,
    .home-clients h2,
    .app-banner-card h2 { font-size: 26px; }
    .client-logo-card { flex-basis: calc((100vw - 3rem) / 2); min-width: 135px; height: 84px; }
    .site-footer-card { border-radius: 22px; padding: 1.3rem 1rem 1rem; }
    .site-copyright { border-radius: 0 0 22px 22px; }
}

/* Legacy shared components for verify/login/register pages */
.btn-portal-primary {
    background: var(--blue-main);
    border-color: var(--blue-main);
    color: #fff;
}

.btn-portal-primary:hover {
    background: #356fbc;
    border-color: #356fbc;
    color: #fff;
}

.soft-card {
    border: 1px solid #dbe3f2;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(17, 32, 52, 0.06);
}
