/**
 * Intro landing enhancements — loads after style.css / style-ltr.css.
 * Fonts loaded from layout head (Cairo). Dashboard CSS vars --main, --hover, --main2 stay in inline :root.
 */

:root {
    /* النص الأساسي والكحلي من إعدادات الموقع (--main)؛ البرتقالي من (--brand-accent) في الهيدر */
    --intro-navy: var(--main);
    --intro-navy-soft: #334155;
    --intro-text: var(--main);
    --intro-muted: #64748b;
    --intro-line: rgba(15, 27, 46, 0.09);
    --intro-card-shadow: 0 14px 45px rgba(15, 23, 42, 0.07);
    --intro-card-shadow-hover: 0 22px 55px rgba(15, 23, 42, 0.11);
    --intro-radius: 16px;
    --intro-radius-lg: 22px;
    --intro-radius-xl: 28px;
    --intro-section-pad-y: clamp(3rem, 9vw, 5.75rem);
    --intro-panel-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 28px 56px -20px rgba(15, 23, 42, 0.12),
        0 12px 24px -14px rgba(15, 23, 42, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes intro-fade-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes intro-hero-glow {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.03);
    }
}

body {
    font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--intro-text);
    background-color: #f1f5f9;
    background-image: radial-gradient(
            ellipse 100% 65% at 100% -20%,
            rgba(148, 163, 184, 0.14),
            transparent 52%
        ),
        radial-gradient(
            ellipse 85% 55% at 0% 45%,
            rgba(51, 65, 85, 0.06),
            transparent 50%
        ),
        radial-gradient(
            ellipse 115% 75% at 50% -28%,
            rgba(148, 163, 184, 0.12),
            transparent 58%
        ),
        linear-gradient(185deg, #fafafa 0%, #f4f6f9 45%, #eef2f7 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

@supports (color: color-mix(in srgb, white, black)) {
    body {
        background-image: radial-gradient(
                ellipse 110% 70% at 95% -15%,
                color-mix(in srgb, var(--brand-accent) 10%, transparent),
                transparent 52%
            ),
            radial-gradient(
                ellipse 90% 60% at 0% 40%,
                rgba(51, 65, 85, 0.06),
                transparent 48%
            ),
            radial-gradient(
                ellipse 120% 80% at 50% -30%,
                rgba(148, 163, 184, 0.14),
                transparent 55%
            ),
            linear-gradient(185deg, #fefefe 0%, #f4f7fb 42%, #eef3f8 100%);
    }
}

.body-content {
    position: relative;
}

.grey-color {
    color: var(--intro-muted) !important;
}

/* --- Header (already fixed in legacy CSS) --- */
header {
    position: fixed !important;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 255, 255, 0.86) 100%
        ) !important;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 10px 38px rgba(15, 23, 42, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.05),
        transparent
    );
    opacity: 0.8;
}

/* صندوق خفيف للشعار في الهيدر — يظهر الشعار بوضوح على أي خلفية */
header .the-logo {
    max-height: 52px;
    width: auto;
    padding: 8px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

header .the-logo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.nav_bar li a {
    font-weight: 600;
    font-size: 15px;
    padding: 10px 14px !important;
    border-radius: 999px;
    color: var(--intro-navy-soft) !important;
    position: relative;
}

.nav_bar li a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--main) !important;
}

@media (min-width: 992px) {
    .nav_bar li a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        width: 42%;
        height: 3px;
        border-radius: 999px;
        background: var(--main);
        opacity: 0;
        transform: translateX(-50%) scaleX(0.35);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }

    .nav_bar li a:hover::after {
        opacity: 0.55;
        transform: translateX(-50%) scaleX(1);
    }
}

.dropdown-toggle {
    font-weight: 600;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(26, 51, 82, 0.12) !important;
    background: #fff !important;
    color: var(--intro-navy-soft) !important;
}

.btn-main {
    border-radius: 999px !important;
    width: auto !important;
    min-width: 140px;
    padding: 0 22px !important;
    height: 46px !important;
    line-height: 46px !important;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14),
        0 4px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease,
        filter 0.22s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18),
        0 6px 14px rgba(15, 23, 42, 0.08);
}

/* --- Hero / slider: تخطيط احترافي + إلغاء الإطار البيضاوي المائل من legacy --- */
.intro-hero {
    position: relative;
    isolation: isolate;
}

.intro-hero::before {
    content: "";
    position: absolute;
    inset: -15% -25% auto auto;
    width: min(480px, 65vw);
    height: min(480px, 65vw);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(148, 163, 184, 0.2) 0%,
        rgba(15, 23, 42, 0.04) 48%,
        transparent 72%
    );
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
    animation: intro-hero-glow 10s ease-in-out infinite;
}

@supports (color: color-mix(in srgb, white, black)) {
    .intro-hero::before {
        background: radial-gradient(
            circle,
            color-mix(in srgb, var(--brand-accent) 22%, transparent) 0%,
            rgba(15, 23, 42, 0.05) 48%,
            transparent 72%
        );
    }
}

.intro-hero .owl-carousel {
    position: relative;
    z-index: 1;
}

/* صف واحد: نص + صورة بجانب بعض — بدون دوران ولا شكل بيضاوي ضخم */
.intro-hero .owl-index .info_owl {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(1.25rem, 4vw, 2.75rem);
    min-height: min(540px, 88vh);
    height: auto !important;
    padding-block: clamp(2rem, 5vw, 4rem);
    padding-inline: clamp(10px, 3vw, 20px);
    overflow: visible !important;
    background: linear-gradient(
            125deg,
            #ffffff 0%,
            #f8fafc 45%,
            #fafaf9 100%
        ),
        radial-gradient(
            ellipse 75% 95% at 100% 40%,
            rgba(148, 163, 184, 0.12),
            transparent 58%
        );
    border-bottom: 1px solid rgba(15, 27, 46, 0.06);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}

.intro-hero .info_owl > .container {
    flex: 1 1 min(340px, 100%);
    max-width: min(560px, 100%) !important;
    width: auto !important;
    margin: 0 auto !important;
    padding-left: 15px;
    padding-right: 15px;
}

.intro-hero .ads_wol {
    position: relative;
    padding-top: 0;
    padding-inline-end: 0;
    padding-inline-start: 0;
    margin-inline-end: 0 !important;
    margin-inline-start: 0 !important;
    max-width: none !important;
}

.intro-hero .ads_wol h3 {
    font-weight: 900;
    letter-spacing: -0.035em;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    line-height: 1.25;
    color: var(--main) !important;
    text-shadow: none;
}

.intro-hero .ads_wol p {
    font-size: 1.07rem;
    line-height: 1.92;
    max-width: 40rem;
    color: var(--intro-muted) !important;
    margin-bottom: 0;
}

/* شريط تأكيد — لون الأزرار من لوحة التحكم */
.intro-hero .ads_wol::before {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--brand-accent),
        var(--brand-accent-hover)
    );
    margin-bottom: 1rem;
}

/* بطاقة صورة نظيفة بدلاً من الإطار الدوار */
.intro-hero .info_owl > .img_owl_index {
    position: relative !important;
    flex: 1 1 min(280px, 100%);
    max-width: min(560px, 100%);
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    border-radius: var(--intro-radius-xl) !important;
    overflow: hidden;
    order: 2;
    box-shadow: 0 24px 56px rgba(15, 27, 46, 0.14),
        0 10px 28px rgba(15, 27, 46, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    border: 3px solid rgba(255, 255, 255, 0.95);
    outline: 1px solid rgba(26, 51, 82, 0.08);
    outline-offset: 4px;
}

.intro-hero .info_owl > .img_owl_index img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: none !important;
}

/* طبقة قراءة بلون الهوية بدل الذهبي القديم */
.intro-hero .info_owl > .img_owl_index::after {
    background: linear-gradient(
            180deg,
            transparent 40%,
            rgba(15, 23, 42, 0.2) 100%
        ) !important;
    opacity: 1;
}

@supports (color: color-mix(in srgb, white, black)) {
    .intro-hero .info_owl > .img_owl_index::after {
        background: linear-gradient(
                180deg,
                transparent 42%,
                color-mix(in srgb, var(--main) 35%, transparent) 100%
            ),
            linear-gradient(
                135deg,
                color-mix(in srgb, var(--brand-accent) 12%, transparent) 0%,
                transparent 48%
            ) !important;
    }
}

.intro-hero .owl-carousel .owl-dots {
    bottom: 28px !important;
}

.intro-hero .owl-carousel .owl-dot.active {
    background: var(--main) !important;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(15, 27, 46, 0.15);
}

.intro-hero .owl-carousel .owl-nav > div {
    background: #ffffff !important;
    border: 1px solid rgba(26, 51, 82, 0.12) !important;
    color: var(--intro-navy-soft) !important;
}

.intro-hero .owl-carousel .owl-nav > div:hover {
    transform: scale(1.06);
    background: var(--main) !important;
    color: #fff !important;
    border-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
    .intro-hero::before {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .intro-hero .owl-index .info_owl {
        flex-direction: column;
        align-items: stretch !important;
        min-height: auto;
        padding-block: clamp(1.75rem, 6vw, 2.5rem);
        gap: 1.5rem;
    }

    .intro-hero .info_owl > .container {
        max-width: 100% !important;
        order: 2;
    }

    .intro-hero .info_owl > .img_owl_index {
        order: 1;
        max-width: 100%;
        aspect-ratio: 16 / 10;
        outline-offset: 2px;
    }
}

@media (max-width: 767.98px) {
    /* legacy كان يفرض ارتفاعاً ضيقاً — نسمح بالارتفاع الطبيعي */
    .intro-hero .owl-index .info_owl {
        min-height: auto !important;
    }
}

/* --- Section framing (modern panels) --- */
.sec-padd {
    padding-top: var(--intro-section-pad-y) !important;
    padding-bottom: var(--intro-section-pad-y) !important;
}

.intro-section {
    position: relative;
    overflow: hidden;
}

.intro-section > .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .intro-section > .container {
        animation: intro-fade-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .body-content > .intro-section:nth-child(2) > .container {
        animation-delay: 0.04s;
    }

    .body-content > .intro-section:nth-child(3) > .container {
        animation-delay: 0.08s;
    }

    .body-content > .intro-section:nth-child(4) > .container {
        animation-delay: 0.12s;
    }

    .body-content > .intro-section:nth-child(5) > .container {
        animation-delay: 0.16s;
    }

    .body-content > .intro-section:nth-child(6) > .container {
        animation-delay: 0.2s;
    }

    .body-content > .intro-section:nth-child(7) > .container {
        animation-delay: 0.24s;
    }
}

/* Light sections: floating white panel */
.intro-section--surface {
    padding-inline: clamp(12px, 3vw, 28px) !important;
}

.intro-section--surface > .container {
    background: linear-gradient(
        165deg,
        #ffffff 0%,
        #fbfcfe 55%,
        #f8fafc 100%
    );
    border-radius: var(--intro-radius-xl);
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.75rem) !important;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: var(--intro-panel-shadow);
    overflow: hidden;
}

.intro-section--surface > .container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--main),
        transparent
    );
    opacity: 0.38;
    pointer-events: none;
}

.intro-section--surface .the_title h3::before {
    content: "";
    display: block;
    width: 52px;
    height: 5px;
    border-radius: 999px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, var(--main), rgba(0, 0, 0, 0));
    opacity: 0.95;
}

.intro-section--surface .the_title h3::after {
    display: none;
}

.intro-section--surface .the_title h3 {
    padding-bottom: 0;
}

/* قسم الخدمات (brand): خلفية كحلية احترافية — يستبدل برتقالي var(--main2) من style.css */
.intro-section--brand {
    padding-inline: clamp(12px, 3vw, 28px) !important;
}

.intro-section--brand > .container {
    padding-top: clamp(2rem, 5vw, 3rem) !important;
    padding-bottom: clamp(2rem, 5vw, 3rem) !important;
}

.intro-section--brand .the_title h3::before {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 999px;
    margin: 0 auto 14px;
    background: linear-gradient(
        90deg,
        var(--brand-accent),
        var(--brand-accent-hover)
    );
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.intro-section--brand .the_title h3::after {
    display: none;
}

.intro-section--brand .the_title h3 {
    padding-bottom: 0;
}

/* FAQ: frosted panel */
.intro-section--muted {
    padding-inline: clamp(12px, 3vw, 28px) !important;
}

.intro-section--muted > .container {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.72) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--intro-radius-xl);
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2.75rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--intro-panel-shadow);
    overflow: hidden;
}

.intro-section--muted > .container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--main),
        transparent
    );
    opacity: 0.42;
    pointer-events: none;
}

.intro-section--muted .the_title h3::before {
    content: "";
    display: block;
    width: 52px;
    height: 5px;
    border-radius: 999px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, var(--main), rgba(0, 0, 0, 0));
}

.intro-section--muted .the_title h3::after {
    display: none;
}

.intro-section--muted .the_title h3 {
    padding-bottom: 0;
}

.the_title {
    max-width: 680px;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem) !important;
}

.the_title h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
}

/* Sections without intro-section wrapper keep legacy underline */
.intro-hero + .sec-padd:not(.intro-section) .the_title h3::after,
.body-content .sec-padd:not(.intro-section) .the_title h3::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: var(--main);
    opacity: 0.85;
}

.intro-section .the_title {
    margin-inline: auto;
}

.the_title .grey-color,
.the_title p {
    margin-top: 12px;
    line-height: 1.85 !important;
    font-size: 1.02rem;
}

/* --- About --- */
#who_we .info_JM h4.main-color {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.6;
}

#who_we .info_JM p {
    font-size: 1.02rem;
    line-height: 1.9;
}

.img_info_JM img {
    box-shadow: var(--intro-card-shadow);
}

.img_info_JM img:first-of-type {
    border-radius: var(--intro-radius-lg) !important;
}

.img_info_JM img:last-of-type {
    border-radius: var(--intro-radius) !important;
}

/* --- Services --- */
.bacg_section {
    position: relative;
    overflow: hidden;
}

/* خلفية القسم + طبقة زخرفية (كحلي + لمسة كهرمانية خفيفة) */
.bacg_section.intro-section--brand {
    background: linear-gradient(
        162deg,
        var(--main) 0%,
        #0a1524 46%,
        #050a10 100%
    ) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bacg_section.intro-section--brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(
            circle at 20% 28%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 48%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(217, 119, 6, 0.22) 0%,
            transparent 50%
        ),
        repeating-linear-gradient(
            -9deg,
            transparent,
            transparent 26px,
            rgba(255, 255, 255, 0.028) 26px,
            rgba(255, 255, 255, 0.028) 27px
        );
}

.box-servess {
    border-radius: var(--intro-radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--intro-card-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.intro-section--brand .box-servess::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--intro-radius-lg) var(--intro-radius-lg) 0 0;
    background: linear-gradient(
        90deg,
        var(--brand-accent),
        var(--brand-accent-hover)
    );
    opacity: 0.95;
    z-index: 4;
    pointer-events: none;
}

.box-servess:hover {
    transform: translateY(-10px);
    box-shadow: var(--intro-card-shadow-hover);
    border-color: rgba(255, 255, 255, 0.85);
}

.box-servess h6.f-b {
    font-weight: 800 !important;
    font-size: 1.05rem;
}

.box-servess p {
    line-height: 1.85 !important;
}

.bacg_section .the_title h3,
.bacg_section .the_title p {
    position: relative;
    z-index: 1;
}

.bacg_section.intro-section--brand .the_title h3 {
    color: #ffffff !important;
}

.bacg_section.intro-section--brand .the_title p {
    color: rgba(248, 250, 252, 0.9) !important;
}

/* --- How it works --- */
.how_work li div {
    font-weight: 700;
    margin-top: 12px;
    color: var(--intro-text);
}

.how_work img {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border: 4px solid #fff;
}

/* --- FAQ --- */
.bacg_section2 {
    background: linear-gradient(180deg, #fefcf8 0%, #f8fafc 100%) !important;
}

.nav-pills .nav-link {
    font-weight: 600 !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    margin: 6px;
    border: 1px solid var(--intro-line) !important;
    color: var(--intro-text) !important;
    background: #fff !important;
}

.nav-pills .nav-link.active {
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.accordion .card {
    border: 1px solid var(--intro-line) !important;
    border-radius: var(--intro-radius) !important;
    overflow: hidden;
    margin-bottom: 12px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.accordion .card-header {
    background: #fff !important;
    border-bottom: none !important;
}

.accordion .card-header button {
    font-weight: 700 !important;
    width: 100%;
    text-align: inherit !important;
    padding: 16px 18px !important;
    color: var(--intro-text) !important;
    transition: background 0.22s ease, color 0.22s ease;
}

.accordion .card-header button:hover {
    background: rgba(15, 23, 42, 0.03) !important;
    color: var(--main) !important;
}

.accordion .card-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--intro-muted) !important;
    padding-top: 0 !important;
}

/* --- Partners carousel --- */
.owl-brands .item {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--intro-radius);
    border: 1px solid var(--intro-line);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    padding: 20px 16px;
    min-height: 96px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.owl-brands .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.09);
}

.owl-brands .item img {
    max-height: 64px;
    width: auto !important;
    margin: 0 auto;
    filter: grayscale(15%);
    opacity: 0.92;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.owl-brands .item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
}

/* --- Contact --- */
#connect_us .form-content {
    background: #fff;
    border-radius: var(--intro-radius-lg);
    border: 1px solid var(--intro-line);
    box-shadow: var(--intro-card-shadow);
    padding: 36px 32px !important;
}

.form-control {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--main) !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04) !important;
    outline: none !important;
}

textarea.form-control {
    min-height: 160px;
}

.form-content .btn-main {
    margin-top: 8px !important;
}

/* --- Footer: كحلي من الهوية (--main) بدل البرتقالي بالكامل؛ الشعار على خلفية بيضاء ليظهر --- */
footer {
    padding-top: 56px !important;
    padding-bottom: 8px !important;
    /* إلغاء var(--main2) البرتقالي من style.css */
    background: linear-gradient(
            168deg,
            var(--main) 0%,
            #0a1628 42%,
            #060d18 100%
        ) !important;
    color: #f8fafc !important;
    border-top: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        var(--brand-accent),
        var(--brand-accent-hover),
        transparent
    );
    opacity: 0.95;
}

.link-footer a,
.link-footer li,
.link-footer li a {
    color: rgba(248, 250, 252, 0.95) !important;
}

.link-footer a:hover {
    opacity: 1;
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.Tfooter {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    margin-bottom: 1rem !important;
}

/* صندوق أبيض للشعار حتى لا يختفي اللون البرتقالي داخل الخلفية */
footer .container .row > .col-md-4:first-child > a.mb-20 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    padding: 14px 22px !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    margin-bottom: 1.5rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

footer .container .row > .col-md-4:first-child > a.mb-20:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.logo_footer {
    max-width: min(200px, 85vw) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    filter: none !important;
    display: block;
}

/* أيقونات التواصل: دوائر واضحة على الخلفية الكحلية */
footer .social-m li a {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        background 0.2s ease, border-color 0.2s ease;
}

footer .social-m li a i {
    color: #ffffff !important;
}

footer .social-m li a:hover {
    transform: translateY(-3px);
    background: var(--brand-accent) !important;
    border-color: transparent !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.under_footer {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 2rem !important;
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
}

.under_footer a {
    color: rgba(248, 250, 252, 0.95) !important;
}

.under_footer a:hover {
    color: #ffffff !important;
}

/* --- Inner pages (privacy, login, etc.) --- */
.body-content .container h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.body-content .container .p-5 {
    background: #fff;
    border-radius: var(--intro-radius-lg);
    border: 1px solid var(--intro-line);
    box-shadow: var(--intro-card-shadow);
}

/* --- Mobile menu uses brand color --- */
@media (max-width: 991.98px) {
    .nav_bar {
        background: var(--main) !important;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
    }

    .nav_bar li a {
        color: #fff !important;
    }

    .nav_bar a.active {
        color: #fff !important;
        font-weight: 800 !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }
}

@media (max-width: 767.98px) {
    .intro-hero .ads_wol h3 {
        color: var(--main) !important;
    }

    .intro-hero .ads_wol p {
        color: var(--intro-muted) !important;
    }

    .sec-padd {
        padding-top: clamp(2.5rem, 12vw, 3.5rem) !important;
        padding-bottom: clamp(2.5rem, 12vw, 3.5rem) !important;
    }

    .intro-section--surface > .container,
    .intro-section--muted > .container {
        padding: 1.75rem 1.1rem !important;
    }

    #connect_us .form-content {
        padding: 28px 20px !important;
    }
}
