:root {
    --rf-primary: #0b4fc3;
    --rf-primary-2: #063a91;
    --rf-primary-3: #08265f;
    --rf-accent: #1d6ef2;
    --rf-bg: #f4f8ff;
    --rf-white: #ffffff;
    --rf-text: #0e1f3d;
    --rf-muted: #5d6d8a;
    --rf-border: #dbe6f7;
    --rf-shadow-sm: 0 8px 22px rgba(13, 42, 102, 0.08);
    --rf-shadow-md: 0 14px 34px rgba(13, 42, 102, 0.12);
    --rf-shadow-lg: 0 20px 60px rgba(13, 42, 102, 0.16);
    --rf-radius-lg: 26px;
    --rf-radius-md: 18px;
    --rf-radius-sm: 12px;
    --rf-page-x: clamp(10px, 1.25vw, 24px);
    --rf-section-x: clamp(18px, 4vw, 72px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(29, 110, 242, 0.08), transparent 26%),
        radial-gradient(circle at 90% 20%, rgba(11, 79, 195, 0.07), transparent 28%),
        var(--rf-bg);
    color: var(--rf-text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* =========================
   Header Full Width
========================= */

.rf-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 10px var(--rf-page-x);
    background: rgba(244, 248, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rf-header-shell {
    width: 100%;
    max-width: none;
    min-height: 78px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 30px);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(219, 230, 247, 0.95);
    border-radius: 20px;
    box-shadow: var(--rf-shadow-sm);
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    gap: clamp(18px, 2.4vw, 44px);
}

.rf-brand {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.rf-brand-logo-box {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    flex: 0 0 auto;
}

.rf-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rf-brand-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rf-primary);
    font-size: 28px;
}

.rf-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rf-brand-text strong {
    color: #0c2d73;
    font-size: clamp(18px, 1.35vw, 24px);
    font-weight: 900;
    line-height: 1.35;
    white-space: nowrap;
}

.rf-brand-text small {
    color: var(--rf-muted);
    font-size: clamp(11px, 0.85vw, 14px);
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.rf-main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 4vw, 70px);
}

.rf-main-nav a {
    position: relative;
    color: #243656;
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 900;
    padding: 12px 2px;
    transition: color 0.2s ease;
}

.rf-main-nav a:hover,
.rf-main-nav a.is-active {
    color: var(--rf-primary);
}

.rf-main-nav a.is-active::after,
.rf-main-nav a:hover::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: -8px;
    height: 4px;
    border-radius: 999px;
    background: var(--rf-accent);
}

.rf-system-login {
    justify-self: end;
    height: 56px;
    min-width: 172px;
    padding: 0 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rf-primary), var(--rf-primary-2));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(11, 79, 195, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rf-system-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(11, 79, 195, 0.28);
}

.rf-mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--rf-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--rf-primary);
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   Page Full Width
========================= */

.rf-page {
    width: 100%;
    padding: 0 var(--rf-page-x);
}

/* =========================
   Hero Full Width
========================= */

.rf-hero {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: clamp(560px, 42vw, 760px);
    margin: 8px auto 0;
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.10), transparent 28%),
        linear-gradient(135deg, #08265f 0%, #0b4fc3 52%, #063a91 100%);
    box-shadow: var(--rf-shadow-lg);
    isolation: isolate;
}

/* Slider wrapper */
.rf-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Each slide */
.rf-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.rf-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* Slide layers */
.rf-hero-slide .rf-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rf-hero-slide .rf-hero-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rf-hero-slide .rf-hero-shell {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Background image */
.rf-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
}

.rf-hero-bg img {
    width: 100%;
    height: 100%;
}

.rf-hero-bg.cover img {
    object-fit: cover;
    object-position: var(--rf-slide-image-position, center center);
}

.rf-hero-bg.contain {
    background: transparent;
}

.rf-hero-bg.contain img {
    width: min(460px, 35vw);
    height: auto;
    margin: auto;
    object-fit: contain;
    opacity: 0.08;
}

.rf-hero-bg.empty {
    display: none;
}

/* Overlay */
.rf-hero-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(7, 37, 92, 0.10) 0%,
            rgba(7, 37, 92, 0.25) 28%,
            rgba(7, 46, 118, 0.80) 58%,
            rgba(7, 46, 118, 0.98) 100%
        );
}

/* Hero content shell */
.rf-hero-shell {
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(390px, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 92px);
    padding: clamp(38px, 5vw, 80px) var(--rf-section-x);
}

/* Content position: right */
.rf-hero-shell.rf-content-right {
    direction: rtl;
    text-align: right;
}

/* Content position: center */
.rf-hero-shell.rf-content-center {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

.rf-hero-shell.rf-content-center .rf-hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.rf-hero-shell.rf-content-center .rf-hero-actions {
    justify-content: center;
}

.rf-hero-shell.rf-content-center .rf-hero-device {
    display: none;
}

/* Content position: left */
.rf-hero-shell.rf-content-left {
    direction: ltr;
}

.rf-hero-shell.rf-content-left .rf-hero-text,
.rf-hero-shell.rf-content-left .rf-hero-device {
    direction: rtl;
}

.rf-hero-shell.rf-content-left .rf-hero-text {
    justify-self: start;
}

/* Hero text */
.rf-hero-text {
    color: #ffffff;
    max-width: 760px;
}

.rf-hero-text h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 64px);
    font-weight: 900;
    line-height: 1.34;
    letter-spacing: -0.5px;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.rf-hero-text p {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(17px, 1.45vw, 24px);
    line-height: 2.05;
    font-weight: 700;
}

/* When overlay is disabled */
.rf-hero-shell-clean .rf-hero-text h1,
.rf-hero-shell-clean .rf-hero-text p {
    text-shadow: none;
}

/* Hero actions */
.rf-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rf-btn {
    min-height: 56px;
    min-width: 174px;
    padding: 0 24px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rf-btn:hover {
    transform: translateY(-2px);
}

.rf-btn-primary {
    background: linear-gradient(135deg, #1d6ef2, #0e56d4);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(29, 110, 242, 0.35);
}

.rf-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(6px);
}

.rf-btn-light {
    background: #ffffff;
    color: var(--rf-primary-2);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.rf-btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.46);
}

.rf-btn-slide-secondary {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.56);
}

.rf-btn-slide-secondary:hover {
    background: rgba(255, 255, 255, 0.72);
}

/* Hero device/card */
.rf-hero-device {
    justify-self: start;
    width: min(560px, 100%);
    padding: 26px;
    border-radius: 24px;
    background: rgba(7, 35, 92, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.rf-device-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.rf-device-header img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px;
}

.rf-device-header strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
}

.rf-device-header span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.rf-device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rf-device-grid div {
    min-height: 92px;
    padding: 14px 8px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.rf-device-grid i {
    font-size: 22px;
}

.rf-device-grid span {
    font-size: 12px;
    font-weight: 800;
}

/* Arrows */
.rf-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--rf-primary-2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rf-shadow-sm);
    cursor: pointer;
}

.rf-hero-arrow-right {
    right: 22px;
}

.rf-hero-arrow-left {
    left: 22px;
}

/* Dots */
.rf-slider-dots {
    position: absolute;
    bottom: 24px;
    right: 50%;
    transform: translateX(50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rf-slider-dots span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
}

.rf-slider-dots span.is-active {
    width: 30px;
    background: #1d6ef2;
}

/* =========================
   Titles
========================= */

.rf-section-title {
    margin-bottom: 26px;
}

.rf-section-title h2 {
    margin: 0;
    color: #0b2d73;
    font-size: clamp(34px, 3.5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
}

.rf-section-title span {
    width: 76px;
    height: 5px;
    border-radius: 999px;
    background: var(--rf-accent);
    display: block;
    margin-top: 12px;
}

.rf-section-title-center {
    text-align: center;
}

.rf-section-title-center span {
    margin-right: auto;
    margin-left: auto;
}

/* =========================
   About Full Width
========================= */

.rf-about {
    width: 100%;
    padding: clamp(48px, 5vw, 82px) var(--rf-page-x) 0;
}

.rf-about-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 var(--rf-section-x);
    display: grid;
    grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1fr);
    align-items: center;
    gap: clamp(34px, 5vw, 96px);
}

.rf-about-media {
    position: relative;
    min-height: clamp(340px, 32vw, 500px);
}

.rf-about-image {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--rf-shadow-md);
}

.rf-about-image img {
    width: 100%;
    height: 100%;
}

.rf-about-image.cover img {
    object-fit: cover;
}

.rf-about-image.contain {
    padding: 42px;
}

.rf-about-image.contain img {
    object-fit: contain;
}

.rf-about-badge {
    position: absolute;
    left: 34px;
    bottom: -24px;
    min-width: 250px;
    padding: 18px 22px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rf-primary), var(--rf-primary-2));
    box-shadow: 0 16px 30px rgba(11, 79, 195, 0.25);
    display: flex;
    align-items: center;
    gap: 15px;
}

.rf-about-badge i {
    font-size: 32px;
}

.rf-about-badge span {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.55;
}

.rf-about-content {
    padding: 10px 0;
}

.rf-about-content p {
    margin: 0;
    color: #3f4c64;
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 2.15;
    font-weight: 700;
}

/* =========================
   Stats Full Width
========================= */

.rf-stats {
    padding: clamp(50px, 5vw, 82px) var(--rf-page-x) 0;
}

.rf-stats-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(219, 230, 247, 0.92);
    border-radius: 20px;
    box-shadow: var(--rf-shadow-sm);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.rf-stat-item {
    position: relative;
    min-height: 116px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: right;
}

.rf-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: #dbe6f7;
}

.rf-stat-item i {
    color: var(--rf-primary);
    font-size: 40px;
}

.rf-stat-item strong {
    color: var(--rf-primary);
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 900;
    line-height: 1;
}

.rf-stat-item span {
    color: #384760;
    font-size: 18px;
    font-weight: 900;
}

/* =========================
   Services Full Width
========================= */

.rf-services {
    width: 100%;
    padding: clamp(34px, 4vw, 58px) var(--rf-page-x) 0;
}

.rf-services-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 var(--rf-section-x);
}

.rf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.5vw, 28px);
}

.rf-service-card {
    min-height: 178px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(219, 230, 247, 0.92);
    box-shadow: var(--rf-shadow-sm);
    display: grid;
    grid-template-columns: 158px 1fr;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rf-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rf-shadow-md);
}

.rf-service-img {
    width: 158px;
    height: 158px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef4ff;
    border: 1px solid #e3ecfb;
}

.rf-service-img img {
    width: 100%;
    height: 100%;
}

.rf-service-img.cover img {
    object-fit: cover;
}

.rf-service-img.contain {
    padding: 16px;
}

.rf-service-img.contain img {
    object-fit: contain;
}

.rf-service-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rf-service-info h3 {
    margin: 0 0 7px;
    color: #0b2d73;
    font-size: clamp(18px, 1.15vw, 22px);
    font-weight: 900;
    line-height: 1.35;
}

.rf-service-info p {
    flex: 1;
    margin: 0 0 12px;
    color: #596982;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 700;
}

.rf-service-more {
    align-self: flex-start;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid #c7d7f1;
    background: #ffffff;
    color: #0d3e98;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rf-service-more:hover {
    background: #f4f8ff;
    border-color: #9fb9e7;
}

.rf-empty-services,
.rf-empty-details {
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px dashed #bdd0ee;
    color: var(--rf-muted);
    text-align: center;
    font-weight: 900;
}

/* =========================
   Sub Services
========================= */

.rf-main-services-grid {
    margin-bottom: 32px;
}

.rf-parent-service-card {
    cursor: default;
}

.rf-subservices-wrap {
    width: 100%;
    margin-top: 28px;
}

.rf-subservices-panel {
    display: none;
    width: 100%;
    padding: clamp(18px, 2vw, 28px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(219, 230, 247, 0.95);
    box-shadow: var(--rf-shadow-sm);
}

.rf-subservices-panel.is-open {
    display: block;
}

.rf-subservices-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.rf-subservices-heading h3 {
    margin: 0 0 6px;
    color: #0b2d73;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 900;
}

.rf-subservices-heading p {
    margin: 0;
    color: #5d6d8a;
    font-size: 15px;
    font-weight: 700;
}

.rf-subservices-close {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #c7d7f1;
    background: #ffffff;
    color: #0d3e98;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.rf-subservices-close:hover {
    background: #f4f8ff;
}

.rf-child-services-grid {
    margin-top: 8px;
}

.rf-child-service-card {
    background: #ffffff;
}

.rf-child-service-contact {
    text-decoration: none;
}

/* زر القسم عند التحديد */
.rf-service-more.is-active {
    background: #0b4fc3;
    border-color: #0b4fc3;
    color: #ffffff;
}


/* =========================
   CTA Full Width
========================= */

.rf-cta {
    width: 100%;
    padding: clamp(36px, 4vw, 60px) var(--rf-page-x) 0;
}

.rf-cta-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    min-height: 110px;
    padding: 26px var(--rf-section-x);
    border-radius: 20px;
    background:
        radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.13), transparent 26%),
        linear-gradient(135deg, #0d58c8, #073781);
    box-shadow: var(--rf-shadow-md);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
}

.rf-cta-text h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: clamp(24px, 2.4vw, 38px);
    font-weight: 900;
}

.rf-cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    font-weight: 800;
}

.rf-cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================
   Footer Full Width
========================= */

.rf-footer {
    margin-top: clamp(32px, 4vw, 54px);
    background: linear-gradient(180deg, #123a79, #0a254f);
    color: #ffffff;
}

.rf-footer-shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 46px var(--rf-section-x) 36px;
    display: grid;
    grid-template-columns: 1.4fr 0.85fr 0.95fr 1.1fr;
    gap: clamp(28px, 4vw, 82px);
}

.rf-footer-col h4 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
}

.rf-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.rf-footer-brand img {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
    padding: 4px;
}

.rf-footer-brand strong {
    display: block;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.5;
}

.rf-footer-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
}

.rf-footer-main p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 2;
    font-weight: 700;
}

.rf-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rf-footer-col li {
    margin-bottom: 10px;
}

.rf-footer-col li a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    font-weight: 800;
    transition: color 0.2s ease;
}

.rf-footer-col li a::before {
    content: "‹";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.55);
}

.rf-footer-col li a:hover {
    color: #ffffff;
}

.rf-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 800;
}

.rf-contact-row i {
    width: 22px;
    margin-top: 6px;
    text-align: center;
    color: #ffffff;
}

.rf-social {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rf-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rf-social a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.rf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px var(--rf-page-x) 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 800;
}

/* =========================
   Modal
========================= */

.rf-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rf-modal.is-open {
    display: flex;
}

.rf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 14, 37, 0.68);
}

.rf-modal-card {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.25);
    padding: 28px;
}

.rf-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--rf-primary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.rf-modal-card h3 {
    margin: 0 0 12px;
    padding-left: 48px;
    color: #0b2d73;
    font-size: 30px;
    font-weight: 900;
}

.rf-modal-desc {
    margin: 0 0 20px;
    color: #3f4c64;
    font-size: 16px;
    line-height: 2;
    font-weight: 700;
}

.rf-modal-table-wrap {
    overflow-x: auto;
}

.rf-modal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.rf-modal-table th,
.rf-modal-table td {
    padding: 13px 14px;
    border: 1px solid #dce7f7;
    text-align: right;
    vertical-align: top;
    font-size: 15px;
}

.rf-modal-table th {
    background: #f3f7ff;
    color: #0b2d73;
    font-weight: 900;
}

.rf-modal-table td {
    color: #3f4c64;
    font-weight: 700;
}

/* =========================
   Empty Image
========================= */

.rf-image-empty {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rf-primary);
    background: #edf4ff;
    font-size: 40px;
}

/* =========================
   Scroll Top
========================= */

.rf-scroll-top {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1200;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--rf-primary);
    color: #ffffff;
    box-shadow: var(--rf-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   Very Large Screens
========================= */

@media (min-width: 1800px) {
    :root {
        --rf-section-x: clamp(60px, 5vw, 120px);
    }

    .rf-hero {
        min-height: 780px;
    }

    .rf-hero-text h1 {
        font-size: 72px;
    }

    .rf-hero-text p {
        font-size: 25px;
    }

    .rf-service-card {
        grid-template-columns: 180px 1fr;
    }

    .rf-service-img {
        width: 180px;
        height: 180px;
    }
}

/* =========================
   Medium Screens
========================= */

@media (max-width: 1200px) {
    .rf-header-shell {
        grid-template-columns: minmax(230px, 1fr) auto minmax(170px, 1fr);
    }

    .rf-main-nav {
        gap: 24px;
    }

    .rf-hero-shell {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .rf-hero-device {
        display: none;
    }

    .rf-hero-layer {
        background:
            linear-gradient(
                90deg,
                rgba(7, 46, 118, 0.90) 0%,
                rgba(7, 46, 118, 0.82) 55%,
                rgba(7, 46, 118, 0.55) 100%
            );
    }

    .rf-hero-text {
        max-width: 860px;
    }

    .rf-about-shell {
        grid-template-columns: 1fr 1fr;
        gap: 38px;
    }

    .rf-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rf-footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   Tablet / Mobile Header
========================= */

@media (max-width: 920px) {
    .rf-site-header {
        padding: 8px 10px;
    }

    .rf-header-shell {
        min-height: 72px;
        grid-template-columns: 1fr auto;
        border-radius: 16px;
        padding: 8px 12px;
        gap: 12px;
    }

    .rf-brand-logo-box {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .rf-brand-text strong {
        font-size: 17px;
    }

    .rf-brand-text small {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rf-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .rf-main-nav {
        grid-column: 1 / -1;
        width: 100%;
        display: none;
        padding: 12px 0 4px;
        border-top: 1px solid #edf2fb;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .rf-main-nav.is-open {
        display: flex;
    }

    .rf-main-nav a {
        padding: 10px 12px;
        border-radius: 10px;
        background: #f7faff;
    }

    .rf-main-nav a::after {
        display: none;
    }

    .rf-main-nav a.is-active {
        background: #edf4ff;
    }

    .rf-system-login {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        display: none;
    }

    .rf-main-nav.is-open + .rf-system-login {
        display: inline-flex;
    }
}

/* =========================
   Mobile Layout
========================= */

@media (max-width: 760px) {
    :root {
        --rf-page-x: 10px;
        --rf-section-x: 18px;
    }

    body {
        background: #f4f8ff;
    }

    .rf-page {
        padding: 0 10px;
    }

    .rf-hero {
        min-height: auto;
        border-radius: 20px;
        margin-top: 8px;
    }

    .rf-hero-bg.cover img {
        object-position: center;
    }

    .rf-hero-layer {
        background: rgba(7, 46, 118, 0.84);
    }

    .rf-hero-shell {
        min-height: 540px;
        padding: 36px 22px 60px;
    }

    .rf-hero-text h1 {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.45;
    }

    .rf-hero-text p {
        font-size: 16px;
        line-height: 2;
    }

    .rf-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rf-btn {
        width: 100%;
        min-width: 0;
    }

    .rf-hero-arrow {
        display: none;
    }

    .rf-slider-dots {
        bottom: 20px;
    }

    .rf-about {
        padding-top: 36px;
    }

    .rf-about-shell {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .rf-about-media {
        min-height: 310px;
    }

    .rf-about-badge {
        right: 18px;
        left: 18px;
        bottom: -22px;
        min-width: 0;
        justify-content: center;
    }

    .rf-about-content {
        padding-top: 24px;
    }

    .rf-section-title {
        text-align: center;
    }

    .rf-section-title span {
        margin-right: auto;
        margin-left: auto;
    }

    .rf-about-content p {
        text-align: center;
        font-size: 16px;
        line-height: 2.05;
    }

    .rf-stats {
        padding-top: 56px;
    }

    .rf-stats-shell {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .rf-stat-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }

    .rf-stat-item:not(:last-child)::after {
        left: 22px;
        right: 22px;
        top: auto;
        bottom: 0;
        width: auto;
        height: 1px;
    }

    .rf-services-shell {
        padding: 0 10px;
    }

    .rf-services-grid {
        grid-template-columns: 1fr;
    }

    .rf-service-card {
        grid-template-columns: 132px 1fr;
        gap: 12px;
    }

    .rf-service-img {
        width: 132px;
        height: 132px;
    }

    .rf-service-info h3 {
        font-size: 18px;
    }

    .rf-service-info p {
        font-size: 13px;
        line-height: 1.65;
    }

    .rf-cta-shell {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
    }

    .rf-cta-actions {
        width: 100%;
    }

    .rf-footer-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 40px 18px 32px;
    }

    .rf-footer-brand {
        justify-content: center;
    }

    .rf-footer-main p {
        margin-right: auto;
        margin-left: auto;
    }

    .rf-contact-row {
        justify-content: center;
    }

    .rf-social {
        justify-content: center;
    }

    .rf-scroll-top {
        width: 42px;
        height: 42px;
    }
}

/* =========================
   Small Phones
========================= */

@media (max-width: 480px) {
    .rf-brand-logo-box {
        width: 50px;
        height: 50px;
    }

    .rf-brand-text strong {
        font-size: 15px;
    }

    .rf-brand-text small {
        font-size: 11px;
        max-width: 150px;
    }

    .rf-hero-shell {
        min-height: 510px;
        padding: 30px 18px 58px;
    }

    .rf-hero-text h1 {
        font-size: 28px;
    }

    .rf-hero-text p {
        font-size: 15px;
    }

    .rf-about-media {
        min-height: 260px;
    }

    .rf-about-badge {
        padding: 14px 16px;
    }

    .rf-about-badge i {
        font-size: 26px;
    }

    .rf-about-badge span {
        font-size: 15px;
    }

    .rf-service-card {
        grid-template-columns: 1fr;
    }

    .rf-service-img {
        width: 100%;
        height: 190px;
    }

    .rf-service-more {
        align-self: stretch;
        justify-content: center;
    }

    .rf-modal {
        padding: 12px;
    }

    .rf-modal-card {
        border-radius: 18px;
        padding: 22px 16px;
    }

    .rf-modal-card h3 {
        font-size: 23px;
        padding-left: 42px;
    }

    .rf-modal-close {
        top: 14px;
        left: 14px;
        width: 36px;
        height: 36px;
    }
}

/* =========================
   Sub Services Panels - Final Override
========================= */

.rf-subservices-wrap {
    width: 100%;
    margin-top: 32px;
}

/* الإخفاء الافتراضي */
.rf-subservices-panel {
    display: none !important;
    width: 100%;
    padding: clamp(18px, 2vw, 28px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(219, 230, 247, 0.95);
    box-shadow: var(--rf-shadow-sm);
}

/* الظهور فقط عند الضغط */
.rf-subservices-panel.is-open {
    display: block !important;
}

.rf-subservices-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.rf-subservices-heading h3 {
    margin: 0 0 6px;
    color: #0b2d73;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 900;
}

.rf-subservices-heading p {
    margin: 0;
    color: #5d6d8a;
    font-size: 15px;
    font-weight: 700;
}

.rf-subservices-close {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #c7d7f1;
    background: #ffffff;
    color: #0d3e98;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.rf-subservices-close:hover {
    background: #f4f8ff;
}

.rf-child-services-grid {
    margin-top: 8px;
}

.rf-child-service-card {
    background: #ffffff;
}

.rf-child-service-contact {
    text-decoration: none;
}

.rf-service-more.is-active {
    background: #0b4fc3;
    border-color: #0b4fc3;
    color: #ffffff;
}

/* =========================
   Services Layout Final Override
   Full Width + 4 Cards Per Row + Smaller Text
========================= */

/* حاوية الخدمات ملء الصفحة */
.rf-services {
    width: 100%;
    padding-left: 18px !important;
    padding-right: 18px !important;
}

.rf-services-shell {
    width: 100% !important;
    max-width: none !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
    margin: 0 auto !important;
}

/* عنوان خدماتنا أصغر قليلًا */
.rf-services .rf-section-title h2 {
    font-size: clamp(30px, 2.8vw, 44px) !important;
}

/* شبكة الأقسام الرئيسية: 4 بطاقات في السطر */
.rf-main-services-grid,
.rf-services-grid {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

/* شبكة الخدمات الفرعية أيضًا 4 بطاقات */
.rf-child-services-grid {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

/* البطاقة أصغر وأكثر توازنًا */
.rf-service-card {
    min-height: 150px !important;
    padding: 12px !important;
    grid-template-columns: 132px 1fr !important;
    gap: 12px !important;
    border-radius: 16px !important;
}

/* صورة البطاقة */
.rf-service-img {
    width: 132px !important;
    height: 132px !important;
    border-radius: 13px !important;
}

/* عنوان البطاقة أصغر */
.rf-service-info h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

/* وصف البطاقة أصغر */
.rf-service-info p {
    font-size: 13px !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
}

/* زر البطاقة أصغر */
.rf-service-more {
    min-height: 34px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
}

/* حاوية الخدمات الفرعية ملء الصفحة */
.rf-subservices-panel {
    width: 100% !important;
    max-width: none !important;
    padding: 24px !important;
}

/* عنوان الخدمات الفرعية أصغر */
.rf-subservices-heading h3 {
    font-size: clamp(22px, 2vw, 30px) !important;
}

.rf-subservices-heading p {
    font-size: 14px !important;
}

/* =========================
   Responsive Services
========================= */

/* الشاشات المتوسطة: 3 بطاقات */
@media (max-width: 1450px) {
    .rf-main-services-grid,
    .rf-services-grid,
    .rf-child-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* التابلت: بطاقتان */
@media (max-width: 1050px) {
    .rf-services-shell {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .rf-main-services-grid,
    .rf-services-grid,
    .rf-child-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .rf-service-card {
        grid-template-columns: 125px 1fr !important;
    }

    .rf-service-img {
        width: 125px !important;
        height: 125px !important;
    }
}

/* الجوال: بطاقة واحدة */
@media (max-width: 650px) {
    .rf-services {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .rf-services-shell {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .rf-main-services-grid,
    .rf-services-grid,
    .rf-child-services-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .rf-service-card {
        grid-template-columns: 118px 1fr !important;
        min-height: 132px !important;
        padding: 10px !important;
    }

    .rf-service-img {
        width: 118px !important;
        height: 118px !important;
    }

    .rf-service-info h3 {
        font-size: 16px !important;
    }

    .rf-service-info p {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    .rf-subservices-heading {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
}

/* التنسيق الأساسي لاسم المبرمج - متوافق مع خلفية إنجاز الشامخ */
.rf-dev-link {
    color: #cbd5e0; /* رمادي فاتح مائل للأبيض ليظهر بوضوح على الخلفية الداكنة */
    text-decoration: none;
    font-weight: 600;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* التنسيق عند تمرير الماوس (Hover) */
.rf-dev-link:hover {
    color: #3b82f6; /* لون أزرق سماوي مشرق يشبه لون زر الصعود للأعلى في الصورة */
    transform: translateY(-2px);
}

/* إنشاء الخط السفلي الوهمي */
.rf-dev-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    right: 0;
    background-color: #3b82f6; /* نفس لون التوهج الأزرق */
    transition: width 0.3s ease-in-out;
}

/* إظهار الخط السفلي عند التمرير */
.rf-dev-link:hover::after {
    width: 100%;
}

/* =========================
   Link Underline Cleanup - Final Override
   يمنع ظهور خطوط تحت الأزرار والروابط التشغيلية
   مع إبقاء ألوان النظام والمتغيرات كما هي
========================= */

/* إزالة الخط الافتراضي من جميع روابط الواجهة العامة */
.rf-site-header a,
.rf-page a,
.rf-footer a,
.rf-scroll-top,
.rf-btn,
.rf-service-more,
.rf-child-service-contact,
.rf-system-login,
.rf-social a {
    text-decoration: none !important;
}

/* حالات المرور والتركيز والزيارة */
.rf-site-header a:hover,
.rf-site-header a:focus,
.rf-site-header a:active,
.rf-site-header a:visited,
.rf-page a:hover,
.rf-page a:focus,
.rf-page a:active,
.rf-page a:visited,
.rf-footer a:hover,
.rf-footer a:focus,
.rf-footer a:active,
.rf-footer a:visited,
.rf-btn:hover,
.rf-btn:focus,
.rf-btn:active,
.rf-service-more:hover,
.rf-service-more:focus,
.rf-service-more:active,
.rf-child-service-contact:hover,
.rf-child-service-contact:focus,
.rf-child-service-contact:active,
.rf-system-login:hover,
.rf-system-login:focus,
.rf-system-login:active {
    text-decoration: none !important;
}

/* منع أي خط سفلي مولّد داخل الهدر والقوائم والأزرار */
.rf-site-header a::before,
.rf-site-header a::after,
.rf-main-nav a::before,
.rf-main-nav a::after,
.rf-btn::before,
.rf-btn::after,
.rf-service-more::before,
.rf-service-more::after,
.rf-child-service-contact::before,
.rf-child-service-contact::after,
.rf-system-login::before,
.rf-system-login::after {
    display: none !important;
    content: none !important;
}

/* إزالة خط active القديم من الرئيسية نهائيًا */
.rf-main-nav a.is-active::after,
.rf-main-nav a:hover::after {
    display: none !important;
    content: none !important;
}

/* شكل الرابط النشط بدون خط */
.rf-main-nav a.is-active {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* زر طلب الخدمة داخل البطاقات */
.rf-service-more,
.rf-service-more:visited,
.rf-child-service-contact,
.rf-child-service-contact:visited {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

/* أزرار الهيرو و CTA مثل اتصل الآن / تواصل معنا */
.rf-btn,
.rf-btn:visited,
.rf-btn:hover,
.rf-btn:focus,
.rf-btn:active {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

/* روابط الفوتر لا يظهر تحتها خط إلا رابط المطور حسب تصميمه الخاص */
.rf-footer a:not(.rf-dev-link),
.rf-footer a:not(.rf-dev-link):hover,
.rf-footer a:not(.rf-dev-link):focus,
.rf-footer a:not(.rf-dev-link):active {
    text-decoration: none !important;
}

/* رابط المطور فقط يحتفظ بتأثيره الخاص */
.rf-dev-link {
    text-decoration: none !important;
}
