﻿/*
 * NEXROOT — Brand-aligned site styles
 * Primary: Emerald #0F5B46
 * Secondary: Steel Blue #2C4A6E
 * Graphite: #1A1D1F
 * Ivory: #F2F0EA
 * Desert Stone: #D9D1C2
 *
 * These local fallbacks preserve compatibility with the existing global
 * design tokens while removing the previous purple/teal visual language.
 */

:root {
    --nx-primary: #0f5b46;
    --nx-secondary: #D9D1C2;
    --nx-bg: #101415;
    --nx-bg-soft: #182022;
    --nx-surface: #1a2224;
    --nx-text: #f2f0ea;
    --nx-text-muted: #b9c0bd;
    --nx-border: rgba(217, 209, 194, 0.18);
    --nx-success: #3f8f6b;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    background: rgba(16, 20, 21, 0.78);
    backdrop-filter: blur(18px);
    transition: var(--nx-transition);
}

    .site-header.scrolled {
        border-bottom-color: var(--nx-border);
        background: rgba(16, 20, 21, 0.96);
    }

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: visible;
}

.footer-logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}

html[dir="rtl"] .footer-logo {
    position: relative;
    inset-inline-start: 12px;
}

html[dir="ltr"] .footer-logo {
    position: relative;
    inset-inline-start: -12px;
}

html[dir="rtl"] .footer-brand,
html[dir="ltr"] .footer-brand {
    justify-content: flex-start;
}

.navbar-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: 190px;
    min-width: 190px;
    height: 52px;
    margin-inline-end: 1rem;
    padding: 0;
    background: transparent;
}

.site-logo {
    display: block;
    width: 180px;
    height: 44px;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.navbar-brand:hover,
.navbar-brand:focus,
.navbar-brand:active {
    background: transparent !important;
    box-shadow: none !important;
}

    .navbar-brand:hover .site-logo {
        opacity: 0.96;
    }

@media (max-width: 1199.98px) {
    .site-logo {
        height: 40px;
        max-width: 170px;
    }

    .navbar-brand {
        margin-inline-end: 1rem;
    }
}

@media (max-width: 991.98px) {
    .site-logo {
        height: 38px;
        max-width: 160px;
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 34px;
        max-width: 145px;
    }
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.15rem;
    margin-inline: auto;
}

    .navbar-nav .nav-item {
        flex: 0 0 auto;
    }

.nav-link {
    color: var(--nx-text-muted);
    font-weight: 500;
}

    .nav-link:hover,
    .nav-link.active {
        color: white;
    }

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
}

.btn-consultation {
    width: auto;
    min-width: 138px;
    padding-inline: 1.15rem;
    white-space: nowrap;
}

.language-switch {
    flex: 0 0 auto;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav {
        gap: 0;
    }

        .navbar-nav .nav-link {
            padding-inline: 0.48rem;
            font-size: 0.84rem;
        }

    .btn-consultation {
        min-width: 118px;
        padding-inline: 0.85rem;
        font-size: 0.88rem;
    }

    .brand-name {
        font-size: 1.15rem;
    }
}

.site-footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--nx-border);
    background: #0d1112;
}

.footer-description {
    max-width: 460px;
    color: var(--nx-text-muted);
}

.site-footer h5 {
    margin-bottom: 1.25rem;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: var(--nx-text-muted);
    }

        .footer-links a:hover {
            color: white;
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--nx-border);
    color: var(--nx-text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.ai-assistant {
    position: fixed;
    z-index: 1100;
    right: 24px;
    bottom: 24px;
}

body.rtl .ai-assistant {
    right: auto;
    left: 24px;
}

.ai-assistant-trigger {
    position: relative;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--nx-primary), var(--nx-secondary) );
    color: white;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ai-pulse {
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(15, 91, 70, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.ai-assistant-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    display: none;
    flex-direction: column;
    width: min(380px, calc(100vw - 32px));
    height: min(680px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
    overflow: hidden;
    border: 1px solid var(--nx-border);
    border-radius: 22px;
    background: var(--nx-surface);
    box-shadow: var(--nx-shadow);
}

body.rtl .ai-assistant-panel {
    right: auto;
    left: 0;
}

.ai-assistant-panel.open {
    display: flex;
}

.ai-panel-header,
.ai-panel-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.ai-panel-header {
    justify-content: space-between;
    border-bottom: 1px solid var(--nx-border);
}

    .ai-panel-header small {
        display: block;
        color: var(--nx-text-muted);
    }

    .ai-panel-header button {
        border: 0;
        background: transparent;
        color: white;
        font-size: 1.5rem;
    }

.ai-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
    color: var(--nx-text-muted);
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

    .ai-panel-body::-webkit-scrollbar {
        width: 6px;
    }

    .ai-panel-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .ai-panel-body::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
    }

.ai-panel-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--nx-border);
    background: var(--nx-surface);
}

    .ai-panel-footer input {
        flex: 1;
        min-width: 0;
        padding: 0.8rem 1rem;
        border: 1px solid var(--nx-border);
        border-radius: 12px;
        outline: none;
        background: var(--nx-bg-soft);
        color: white;
    }

        .ai-panel-footer input::placeholder {
            color: var(--nx-text-muted);
        }

    .ai-panel-footer button {
        flex-shrink: 0;
        padding: 0.8rem 1rem;
        border: 0;
        border-radius: 12px;
        background: var(--nx-primary);
        color: white;
    }

@media (max-width: 576px) {
    .ai-assistant {
        right: 12px;
        bottom: 12px;
    }

    body.rtl .ai-assistant {
        right: auto;
        left: 12px;
    }

    .ai-assistant-panel {
        bottom: 74px;
        width: calc(100vw - 24px);
        height: calc(100vh - 110px);
        max-height: calc(100vh - 110px);
        border-radius: 18px;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }

    70% {
        opacity: 0;
        transform: scale(1.22);
    }

    100% {
        opacity: 0;
        transform: scale(1.22);
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        max-height: calc(100vh - 100px);
        margin-top: 0.75rem;
        padding: 1.25rem;
        overflow-y: auto;
        border: 1px solid var(--nx-border);
        border-radius: 18px;
        background: rgba(24, 32, 34, 0.98);
        box-shadow: var(--nx-shadow);
    }

    .header-actions {
        margin-top: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

.home-hero {
    position: relative;
    display: flex;
    min-height: 820px;
    overflow: hidden;
    align-items: center;
    padding: 9rem 0 5rem;
    background: radial-gradient( circle at 20% 20%, rgba(15, 91, 70, 0.2), transparent 35%), linear-gradient( 180deg, #101415, #131a1c);
}

.home-hero-grid,
.cta-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: linear-gradient( rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient( 90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient( to bottom, black, transparent);
}

.home-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    object-fit: cover;
}

.home-hero-image {
    background-position: center;
    background-size: cover;
}

.home-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient( 90deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.72), rgba(7, 17, 31, 0.9));
}

body.rtl .home-hero::after {
    background: linear-gradient( 270deg, rgba(7, 17, 31, 0.98), rgba(7, 17, 31, 0.72), rgba(7, 17, 31, 0.9));
}

.home-hero-glow {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(12px);
}

.home-hero-glow-one {
    top: 20%;
    left: 8%;
    width: 280px;
    height: 280px;
    background: rgba(15, 91, 70, 0.18);
}

.home-hero-glow-two {
    right: 12%;
    bottom: 15%;
    width: 240px;
    height: 240px;
    background: rgba(44, 74, 110, 0.15);
}

.home-hero-content {
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    color: var(--nx-secondary);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nx-secondary);
    box-shadow: 0 0 18px rgba(44, 74, 110, 0.8);
}

.hero-title {
    max-width: 960px;
    margin: 0;
    font-size: clamp(2.5rem,5vw,5rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

body.rtl .hero-title {
    letter-spacing: -0.03em;
}

.hero-description {
    max-width: 760px;
    margin-top: 2rem;
    color: var(--nx-text-muted);
    font-size: clamp(1.08rem, 1.5vw, 1.35rem);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.2rem;
}

.btn-ghost {
    border: 1px solid var(--nx-border);
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

    .btn-ghost:hover {
        border-color: rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    color: var(--nx-text-muted);
    font-size: 0.9rem;
}

    .hero-trust-row span {
        position: relative;
        padding-inline-start: 1rem;
    }

        .hero-trust-row span::before {
            position: absolute;
            top: 50%;
            inset-inline-start: 0;
            width: 5px;
            height: 5px;
            content: "";
            border-radius: 50%;
            background: var(--nx-secondary);
            transform: translateY(-50%);
        }

.hero-intelligence-card {
    overflow: hidden;
    border: 1px solid var(--nx-border);
    border-radius: 28px;
    background: linear-gradient( 180deg, rgba(26, 34, 36, 0.96), rgba(20, 28, 30, 0.96));
    box-shadow: var(--nx-shadow);
    backdrop-filter: blur(20px);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--nx-border);
    color: var(--nx-text-muted);
    font-size: 0.85rem;
}

.navbar-toggler {
    padding: 0.5rem;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-collapse {
    min-width: 0;
    flex-grow: 1;
}

.navbar-nav .nav-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.7rem;
    color: var(--nx-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    border-radius: 10px;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--nx-text);
        background: rgba(255, 255, 255, 0.05);
    }

main {
    display: block;
    min-height: 60vh;
}

.hero-card-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nx-success);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.75);
}

.hero-card-body {
    padding: 1.5rem;
}

.hero-metric {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

    .hero-metric span {
        color: var(--nx-text-muted);
    }

    .hero-metric strong {
        font-size: 2.25rem;
        line-height: 1;
    }

.hero-card-progress {
    height: 7px;
    margin: 1rem 0 1.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

    .hero-card-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient( 90deg, var(--nx-primary), var(--nx-secondary));
    }

.hero-card-list {
    display: grid;
    gap: 0.8rem;
}

    .hero-card-list > div {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem;
        border: 1px solid var(--nx-border);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.025);
    }

.hero-list-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: rgba(15, 91, 70, 0.15);
    color: #d9d1c2;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-card-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--nx-secondary);
    font-weight: 700;
}

.statistics-strip {
    border-top: 1px solid var(--nx-border);
    border-bottom: 1px solid var(--nx-border);
    background: rgba(255, 255, 255, 0.02);
}

.statistic-item {
    min-height: 150px;
    padding: 2.3rem 1.5rem;
    border-inline-end: 1px solid var(--nx-border);
    text-align: center;
}

.statistic-value {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
}

.statistic-title {
    margin-top: 0.8rem;
    color: var(--nx-text-muted);
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.section-link,
.product-link {
    flex: 0 0 auto;
    color: var(--nx-secondary);
    font-weight: 700;
}

.service-card {
    position: relative;
    height: 100%;
    min-height: 310px;
    padding: 1.75rem;
    overflow: hidden;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-md);
    background: linear-gradient( 180deg, rgba(26, 34, 36, 0.86), rgba(20, 28, 30, 0.96));
    transition: var(--nx-transition);
}

    .service-card::before {
        position: absolute;
        right: -70px;
        bottom: -100px;
        width: 190px;
        height: 190px;
        content: "";
        border-radius: 50%;
        background: rgba(15, 91, 70, 0.13);
        filter: blur(6px);
    }

    .service-card:hover {
        border-color: rgba(15, 91, 70, 0.48);
        transform: translateY(-8px);
    }

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4.5rem;
}

.service-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(15, 91, 70, 0.25);
    border-radius: 14px;
    background: rgba(15, 91, 70, 0.12);
    color: #d9d1c2;
    font-weight: 700;
}

.service-arrow {
    color: var(--nx-text-muted);
    font-size: 1.35rem;
}

.service-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--nx-text-muted);
}

.products-section {
    background: rgba(255, 255, 255, 0.018);
}

.product-card {
    display: grid;
    min-height: 360px;
    overflow: hidden;
    grid-template-columns: 1.1fr 0.9fr;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius-lg);
    background: var(--nx-surface);
}

.product-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.25rem;
}

.product-badge {
    display: inline-flex;
    margin-bottom: 1.25rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(44, 74, 110, 0.22);
    border-radius: 999px;
    background: rgba(44, 74, 110, 0.08);
    color: var(--nx-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.product-card h3 {
    font-size: 2rem;
}

.product-card p {
    color: var(--nx-text-muted);
}

.product-card-visual {
    display: grid;
    min-height: 280px;
    place-items: center;
    overflow: hidden;
    background: radial-gradient( circle at center, rgba(15, 91, 70, 0.22), transparent 60%), #182225;
}

    .product-card-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-placeholder {
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background: linear-gradient( 135deg, rgba(15, 91, 70, 0.5), rgba(44, 74, 110, 0.36));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    font-size: 4rem;
    font-weight: 700;
    transform: rotate(-8deg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.industry-card {
    display: flex;
    min-height: 130px;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--nx-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    transition: var(--nx-transition);
}

    .industry-card:hover {
        border-color: rgba(44, 74, 110, 0.42);
        background: rgba(44, 74, 110, 0.05);
        transform: translateY(-4px);
    }

.industry-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: rgba(44, 74, 110, 0.1);
    color: var(--nx-secondary);
}

.industry-arrow {
    margin-inline-start: auto;
    color: var(--nx-text-muted);
}

.approach-section {
    background: linear-gradient( 180deg, transparent, rgba(15, 91, 70, 0.045), transparent);
}

.approach-steps {
    border-top: 1px solid var(--nx-border);
}

.approach-step {
    display: grid;
    padding: 1.5rem 0;
    grid-template-columns: 70px 1fr;
    border-bottom: 1px solid var(--nx-border);
}

    .approach-step > span {
        color: var(--nx-secondary);
        font-weight: 700;
    }

    .approach-step h3 {
        margin-bottom: 0.4rem;
    }

    .approach-step p {
        margin: 0;
        color: var(--nx-text-muted);
    }

.cta-card {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 34px;
    background: linear-gradient( 135deg, #0f5b46, #2c4a6e);
    box-shadow: var(--nx-shadow);
}

.cta-grid {
    opacity: 0.16;
    mask-image: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

    .cta-content .section-label {
        color: #3f6c95;
    }

    .cta-content h2 {
        font-size: clamp(2.2rem, 5vw, 4.8rem);
        font-weight: 700;
        line-height: 1.08;
    }

    .cta-content p {
        max-width: 680px;
        margin: 1.3rem 0 2rem;
        color: rgba(255, 255, 255, 0.82);
        font-size: 1.1rem;
    }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 1199px) {
    .industries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .navbar {
        min-height: 74px;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5.5rem);
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .home-hero {
        padding-bottom: 3rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

        .hero-actions .btn,
        .cta-actions .btn {
            width: 100%;
        }

    .hero-trust-row {
        gap: 0.75rem 1rem;
    }

    .statistics-strip .col-6:nth-child(odd)
    .statistic-item {
        border-inline-end: 1px solid var(--nx-border);
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .approach-step {
        grid-template-columns: 50px 1fr;
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
}

    .reveal-item.revealed {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 650ms ease var(--reveal-delay), transform 650ms ease var(--reveal-delay);
    }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }

        .reveal-item.revealed {
            transition: none;
        }
}

.inner-hero,
.service-details-hero {
    position: relative;
    overflow: hidden;
    padding: 11rem 0 5rem;
    border-bottom: 1px solid var(--nx-border);
    background: radial-gradient( circle at 20% 10%, rgba(15, 91, 70, 0.18), transparent 35%), linear-gradient( 180deg, #101415, #172024);
}

    .inner-hero h1,
    .service-details-hero h1 {
        max-width: 1000px;
        margin-bottom: 1.5rem;
        font-size: clamp(2rem, 5vw, 5rem);
        font-weight: 700;
        letter-spacing: -0.045em;
        line-height: 1.04;
    }

body.rtl .inner-hero h1,
body.rtl .service-details-hero h1 {
    letter-spacing: -0.02em;
}

.inner-hero p,
.service-details-hero .lead {
    max-width: 760px;
    color: var(--nx-text-muted);
    font-size: 1.18rem;
    line-height: 1.9;
}

.back-link {
    display: inline-flex;
    margin-bottom: 2.5rem;
    color: var(--nx-secondary);
    font-weight: 700;
}

.service-details-visual {
    display: grid;
    min-height: 390px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nx-border);
    border-radius: 28px;
    background: radial-gradient( circle, rgba(15, 91, 70, 0.25), transparent 65%), var(--nx-surface);
    box-shadow: var(--nx-shadow);
}

    .service-details-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-details-visual span {
        display: grid;
        width: 150px;
        height: 150px;
        place-items: center;
        border-radius: 38px;
        background: linear-gradient( 135deg, var(--nx-primary), var(--nx-secondary));
        font-size: 3rem;
        font-weight: 800;
        transform: rotate(-7deg);
    }

.rich-content {
    color: var(--nx-text-muted);
    font-size: 1.08rem;
    line-height: 2;
}

    .rich-content h2,
    .rich-content h3 {
        margin-top: 2rem;
        color: var(--nx-text);
    }

.service-summary-card,
.feature-card {
    border: 1px solid var(--nx-border);
    border-radius: 20px;
    background: var(--nx-surface);
}

.service-summary-card {
    position: sticky;
    top: 110px;
    padding: 1.75rem;
}

    .service-summary-card ul {
        display: grid;
        gap: 0.9rem;
        margin: 1.5rem 0 0;
        padding: 0;
        list-style: none;
    }

    .service-summary-card li {
        position: relative;
        padding-inline-start: 1.4rem;
        color: var(--nx-text-muted);
    }

        .service-summary-card li::before {
            position: absolute;
            top: 0.65rem;
            inset-inline-start: 0;
            width: 7px;
            height: 7px;
            content: "";
            border-radius: 50%;
            background: var(--nx-secondary);
        }

.service-features {
    margin-top: 6rem;
}

.feature-card {
    height: 100%;
    padding: 1.5rem;
}

.feature-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 1.3rem;
    place-items: center;
    border-radius: 13px;
    background: rgba(44, 74, 110, 0.1);
    color: var(--nx-secondary);
    font-weight: 700;
}

.feature-card h3 {
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: var(--nx-text-muted);
}

@media (max-width: 991px) {
    .service-summary-card {
        position: static;
    }
}

.product-list-grid {
    display: grid;
    gap: 1.5rem;
}

.product-showcase-card {
    display: grid;
    min-height: 400px;
    overflow: hidden;
    grid-template-columns: 1.05fr 0.95fr;
    border: 1px solid var(--nx-border);
    border-radius: 28px;
    background: linear-gradient( 135deg, rgba(26, 34, 36, 0.97), rgba(18, 26, 28, 0.99));
    transition: var(--nx-transition);
}

    .product-showcase-card:hover {
        border-color: rgba(15, 91, 70, 0.48);
        transform: translateY(-5px);
    }

.product-showcase-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(2rem, 5vw, 4rem);
}

    .product-showcase-content h2 {
        margin-bottom: 1rem;
        font-size: clamp(2rem, 4vw, 3.6rem);
        font-weight: 700;
        line-height: 1.12;
    }

    .product-showcase-content p {
        max-width: 650px;
        color: var(--nx-text-muted);
        font-size: 1.05rem;
    }

.product-showcase-visual,
.product-details-visual {
    display: grid;
    min-height: 360px;
    place-items: center;
    overflow: hidden;
    background: radial-gradient( circle at center, rgba(15, 91, 70, 0.28), transparent 62%), #172024;
}

    .product-showcase-visual img,
    .product-details-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-details-hero {
    position: relative;
    overflow: hidden;
    padding: 11rem 0 5rem;
    border-bottom: 1px solid var(--nx-border);
    background: radial-gradient( circle at 80% 25%, rgba(44, 74, 110, 0.16), transparent 34%), radial-gradient( circle at 15% 15%, rgba(15, 91, 70, 0.2), transparent 38%), linear-gradient( 180deg, #101415, #152024);
}

    .product-details-hero h1 {
        max-width: 900px;
        margin: 1.25rem 0 1.5rem;
        font-size: clamp(2rem, 4vw, 3.6rem);
        font-weight: 700;
        letter-spacing: -0.05em;
        line-height: 0.98;
    }

body.rtl .product-details-hero h1 {
    letter-spacing: -0.02em;
}

.product-details-hero .lead {
    max-width: 750px;
    color: var(--nx-text-muted);
    font-size: 1.2rem;
    line-height: 1.9;
}

.product-details-visual {
    min-height: 450px;
    border: 1px solid var(--nx-border);
    border-radius: 30px;
    box-shadow: var(--nx-shadow);
}

.product-placeholder-large {
    width: 180px;
    height: 180px;
    font-size: 5rem;
}

@media (max-width: 991px) {
    .product-showcase-card {
        grid-template-columns: 1fr;
    }

    .product-showcase-visual {
        min-height: 280px;
        order: -1;
    }
}

.form-section {
    background: radial-gradient( circle at 80% 20%, rgba(44, 74, 110, 0.07), transparent 30%);
}

.form-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--nx-border);
    border-radius: 26px;
    background: var(--nx-surface);
    box-shadow: var(--nx-shadow);
}

.form-label {
    margin-bottom: 0.65rem;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 52px;
    border: 1px solid var(--nx-border);
    border-radius: 13px;
    background: var(--nx-bg-soft);
    color: var(--nx-text);
}

textarea.form-control {
    min-height: 150px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nx-primary);
    background: var(--nx-bg-soft);
    color: var(--nx-text);
    box-shadow: 0 0 0 0.22rem rgba(15, 91, 70, 0.14);
}

.form-control::placeholder {
    color: #858e8b;
}

.form-select option {
    background: var(--nx-bg-soft);
    color: var(--nx-text);
}

.contact-information h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.contact-information > p {
    color: var(--nx-text-muted);
}

.contact-detail-card {
    display: flex;
    margin-top: 1.25rem;
    padding: 1.25rem;
    flex-direction: column;
    border: 1px solid var(--nx-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

    .contact-detail-card span {
        margin-bottom: 0.35rem;
        color: var(--nx-text-muted);
        font-size: 0.82rem;
    }

    .contact-detail-card a {
        color: var(--nx-secondary);
        font-weight: 700;
    }

.alert-success {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.1);
    color: #c9ead9;
}

.honeypot-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.about-hero {
    position: relative;
    overflow: hidden;
    padding: 10.5rem 0 5.25rem;
    border-bottom: 1px solid var(--nx-border);
    background: radial-gradient( circle at 75% 20%, rgba(44, 74, 110, 0.15), transparent 34%), radial-gradient( circle at 10% 10%, rgba(15, 91, 70, 0.22), transparent 40%), #101415;
}

.about-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: linear-gradient( rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient( 90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(3.25rem, 5.8vw, 6.15rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

html[dir="rtl"] .about-hero h1 {
    letter-spacing: -0.018em;
    line-height: 1.08;
}

.about-hero-description {
    max-width: 520px;
    margin: 0;
    color: var(--nx-text-muted);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 2;
}

.about-story-section {
    position: relative;
}

.about-story-visual {
    position: relative;
    display: grid;
    min-height: 490px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--nx-border);
    border-radius: 30px;
    background: radial-gradient( circle, rgba(15, 91, 70, 0.25), transparent 55%), var(--nx-surface);
}

.root-core {
    position: relative;
    z-index: 3;
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border-radius: 40px;
    background: linear-gradient( 135deg, var(--nx-primary), var(--nx-secondary));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    font-size: 4.5rem;
    font-weight: 800;
    transform: rotate(-3deg);
}

    .root-core img {
        display: block;
        width: 76px;
        height: 76px;
        object-fit: contain;
    }

.root-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.root-orbit-one {
    width: 290px;
    height: 290px;
}

.root-orbit-two {
    width: 430px;
    height: 430px;
}

.root-label {
    position: absolute;
    z-index: 2;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--nx-border);
    border-radius: 999px;
    background: rgba(20, 28, 30, 0.92);
    color: var(--nx-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.root-label-ai {
    top: 17%;
    left: 20%;
}

.root-label-data {
    top: 25%;
    right: 12%;
}

.root-label-grc {
    right: 18%;
    bottom: 21%;
}

.root-label-platform {
    bottom: 16%;
    left: 13%;
}

.about-rich-text {
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 2;
}

.purpose-section {
    background: rgba(255, 255, 255, 0.018);
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.purpose-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.25rem);
    border: 1px solid var(--nx-border);
    border-radius: 28px;
}

.purpose-card-vision {
    background: radial-gradient( circle at 80% 20%, rgba(15, 91, 70, 0.25), transparent 42%), var(--nx-surface);
}

.purpose-card-mission {
    background: radial-gradient( circle at 20% 80%, rgba(44, 74, 110, 0.2), transparent 42%), var(--nx-surface);
}

.purpose-number {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    font-size: 4rem;
    font-weight: 800;
}

.purpose-card h2 {
    max-width: 760px;
    margin-top: 2.5rem;
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    font-weight: 700;
    line-height: 1.25;
}

.purpose-card p {
    max-width: 720px;
    font-weight: 400;
    line-height: 1.9;
}

.value-card > span,
.purpose-number,
.why-list article > span {
    color: var(--nx-primary);
}

.value-card {
    min-height: 245px;
    padding: 1.5rem;
    border: 1px solid var(--nx-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    transition: var(--nx-transition);
}

    .value-card:hover {
        border-color: rgba(15, 91, 70, 0.45);
        transform: translateY(-5px);
    }

    .value-card > span {
        color: var(--nx-primary);
        font-size: 0.8rem;
        font-weight: 700;
    }

    .value-card h3 {
        margin: 2.5rem 0 0.85rem;
        font-size: 1.4rem;
    }

    .value-card p {
        font-weight: 400;
        line-height: 1.85;
    }

.why-panel {
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid var(--nx-border);
    border-radius: 32px;
    background: linear-gradient( 135deg, rgba(18, 32, 51, 0.98), rgba(16, 23, 25, 0.99));
}

    .why-panel h2 {
        font-weight: 700;
        line-height: 1.15;
    }

    .why-panel .col-lg-5 > p {
        margin-bottom: 2rem;
        color: var(--nx-text-muted);
    }

.why-list {
    border-top: 1px solid var(--nx-border);
}

    .why-list article {
        display: grid;
        padding: 1.35rem 0;
        grid-template-columns: 55px 1fr;
        border-bottom: 1px solid var(--nx-border);
    }

        .why-list article > span {
            color: var(--nx-primary);
            font-weight: 700;
        }

    .why-list h3 {
        font-size: 1.15rem;
    }

    .why-list p {
        margin: 0;
        color: var(--nx-text-muted);
    }

@media (max-width: 991px) {
    .purpose-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-story-visual {
        min-height: 420px;
    }

    .root-orbit-two {
        width: 350px;
        height: 350px;
    }
}

.legal-page {
    min-height: 100vh;
    padding: 11rem 0 7rem;
    background: radial-gradient( circle at 15% 10%, rgba(15, 91, 70, 0.13), transparent 30%), var(--nx-bg);
}

    .legal-page .container {
        max-width: 900px;
    }

    .legal-page h1 {
        margin-bottom: 1rem;
        font-size: clamp(2.8rem, 6vw, 5.5rem);
        font-weight: 700;
        line-height: 1.05;
    }

.legal-updated {
    margin-bottom: 3rem;
    color: var(--nx-text-muted);
}

.legal-content {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--nx-border);
    border-radius: 24px;
    background: var(--nx-surface);
}

    .legal-content h2 {
        margin-top: 2.5rem;
        margin-bottom: 0.8rem;
        font-size: 1.35rem;
    }

        .legal-content h2:first-child {
            margin-top: 0;
        }

    .legal-content p {
        color: var(--nx-text-muted);
        line-height: 2;
    }

    .legal-content a {
        color: var(--nx-secondary);
    }

.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 9rem 0 5rem;
    text-align: center;
    background: radial-gradient( circle, rgba(15, 91, 70, 0.2), transparent 40%), var(--nx-bg);
}

.error-code {
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(8rem, 25vw, 20rem);
    font-weight: 800;
    line-height: 0.8;
}

.error-page h1 {
    margin-top: -2rem;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
}

.error-page p {
    color: var(--nx-text-muted);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.article-card {
    overflow: hidden;
    border: 1px solid var(--nx-border);
    border-radius: 22px;
    background: var(--nx-surface);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

    .article-card:hover {
        border-color: rgba(15, 91, 70, 0.48);
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
        transform: translateY(-6px);
    }

.article-image {
    display: block;
    height: 230px;
    overflow: hidden;
    background: var(--nx-bg-soft);
}

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 500ms ease;
    }

.article-card:hover .article-image img {
    transform: scale(1.04);
}

.article-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: radial-gradient(circle, rgba(15, 91, 70, 0.32), transparent 55%), var(--nx-bg-soft);
}

    .article-image-placeholder span {
        display: grid;
        width: 90px;
        height: 90px;
        place-items: center;
        border-radius: 24px;
        background: linear-gradient(135deg, var(--nx-primary), var(--nx-secondary));
        font-size: 2.8rem;
        font-weight: 800;
        transform: rotate(-8deg);
    }

.article-card-body {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    color: var(--nx-text-muted);
    font-size: 0.8rem;
}

.article-card h2 {
    margin: 1rem 0;
    font-size: 1.45rem;
    line-height: 1.4;
}

.article-card p {
    color: var(--nx-text-muted);
}

.article-link {
    color: var(--nx-secondary);
    font-weight: 700;
}

.empty-state {
    padding: 5rem 2rem;
    border: 1px dashed var(--nx-border);
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.018);
}

    .empty-state p {
        color: var(--nx-text-muted);
    }

/* Article details */
.article-details-header {
    padding: 11rem 0 5rem;
    border-bottom: 1px solid var(--nx-border);
    background: radial-gradient(circle at 20% 10%, rgba(15, 91, 70, 0.2), transparent 35%), var(--nx-bg);
}

.article-container {
    width: min(100% - 2rem, 920px);
    margin-inline: auto;
}

.article-details-header h1 {
    max-width: 900px;
    margin: 1.5rem 0;
    color: var(--nx-text);
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    text-wrap: balance;
}

body.rtl .article-details-header h1 {
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.45;
    letter-spacing: 0;
}

.article-lead {
    max-width: 820px;
    margin: 0;
    color: var(--nx-text-muted);
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 2;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.article-author-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--nx-primary), var(--nx-secondary));
    color: #fff;
    font-weight: 800;
}

.article-author small,
.article-author strong {
    display: block;
}

.article-author small {
    color: var(--nx-text-muted);
}

.article-cover-container {
    width: min(100% - 2rem, 1200px);
    margin: 3rem auto 0;
}

.article-cover {
    display: block;
    width: 100%;
    max-height: 650px;
    border: 1px solid var(--nx-border);
    border-radius: 24px;
    object-fit: cover;
}

/* Rich article body */
.article-content {
    padding: 5rem 0 2rem;
    color: #d9d1c2;
    font-size: 1.08rem;
    line-height: 2.05;
    overflow-wrap: anywhere;
}

    .article-content > :first-child {
        margin-top: 0;
    }

    .article-content p {
        margin: 0 0 1.45rem;
    }

    .article-content .article-lead {
        margin-bottom: 2rem;
        color: #e9e5dc;
        font-size: clamp(1.15rem, 1.8vw, 1.32rem);
        line-height: 2;
    }

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: var(--nx-text);
        font-weight: 700;
        text-wrap: balance;
    }

    .article-content h2 {
        margin: 4rem 0 1.35rem;
        padding-top: 0.3rem;
        font-size: clamp(1.75rem, 3vw, 2.25rem);
        line-height: 1.4;
    }

    .article-content h3 {
        margin: 2.7rem 0 1rem;
        font-size: clamp(1.35rem, 2vw, 1.65rem);
        line-height: 1.5;
    }

    .article-content h4 {
        margin: 2rem 0 0.8rem;
        font-size: 1.15rem;
        line-height: 1.6;
    }

    .article-content ul,
    .article-content ol {
        margin: 1rem 0 1.75rem;
        padding-inline-start: 1.45rem;
    }

    .article-content li {
        margin-bottom: 0.65rem;
        padding-inline-start: 0.3rem;
    }

        .article-content li::marker {
            color: var(--nx-primary);
            font-weight: 700;
        }

    .article-content a {
        color: #d9d1c2;
        text-decoration-color: rgba(217, 209, 194, 0.55);
        text-underline-offset: 0.22em;
    }

        .article-content a:hover {
            color: #fff;
            text-decoration-color: var(--nx-primary);
        }

    .article-content hr {
        width: 100%;
        height: 1px;
        margin: 3.5rem 0;
        border: 0;
        background: linear-gradient( 90deg, transparent, rgba(217, 209, 194, 0.24), transparent );
    }

    .article-content blockquote {
        margin: 2.2rem 0;
        padding: 1.45rem 1.6rem;
        border: 1px solid rgba(217, 209, 194, 0.12);
        border-inline-start: 4px solid var(--nx-primary);
        border-radius: 14px;
        background: linear-gradient( 135deg, rgba(15, 91, 70, 0.12), rgba(26, 34, 36, 0.92) );
        color: #e8e4dc;
    }

        .article-content blockquote p:last-child {
            margin-bottom: 0;
        }

        .article-content blockquote strong:first-child {
            color: #fff;
        }

    .article-content .article-highlight {
        margin: 2.5rem 0;
        padding: clamp(1.5rem, 3vw, 2.2rem);
        border: 1px solid rgba(15, 91, 70, 0.35);
        border-radius: 18px;
        background: linear-gradient( 135deg, rgba(15, 91, 70, 0.14), rgba(44, 74, 110, 0.08) );
    }

        .article-content .article-highlight h3 {
            margin-top: 0;
        }

    .article-content .table,
    .article-content table {
        width: 100%;
        margin: 2rem 0;
        overflow: hidden;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid var(--nx-border);
        border-radius: 14px;
        background: var(--nx-surface);
    }

    .article-content th,
    .article-content td {
        padding: 1rem 1.1rem;
        border-bottom: 1px solid var(--nx-border);
        border-inline-end: 1px solid var(--nx-border);
        text-align: start;
        vertical-align: top;
    }

    .article-content th {
        background: rgba(15, 91, 70, 0.13);
        color: var(--nx-text);
        font-weight: 700;
    }

    .article-content tr:last-child td {
        border-bottom: 0;
    }

    .article-content th:last-child,
    .article-content td:last-child {
        border-inline-end: 0;
    }

    /* FAQ and embedded article sections */
    .article-content .faq-item {
        margin: 0 0 1rem;
        padding: 1.35rem 1.5rem;
        border: 1px solid var(--nx-border);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
    }

        .article-content .faq-item h3 {
            margin: 0 0 0.65rem;
            font-size: 1.15rem;
        }

        .article-content .faq-item p:last-child {
            margin-bottom: 0;
        }

    .article-content .article-cta {
        margin: 4rem 0 2rem;
        padding: clamp(2rem, 5vw, 3.5rem);
        border: 1px solid rgba(217, 209, 194, 0.18);
        border-radius: 24px;
        background: linear-gradient( 135deg, rgba(15, 91, 70, 0.22), rgba(44, 74, 110, 0.14) );
    }

        .article-content .article-cta h2 {
            margin-top: 0;
        }

        .article-content .article-cta p:last-child {
            margin-bottom: 0;
        }

        .article-content .article-cta .btn {
            min-width: 170px;
            text-decoration: none;
        }

    .article-content .related-articles,
    .article-content .related-services,
    .article-content .related-products {
        margin: 3rem 0 0;
        padding: 1.6rem;
        border: 1px solid var(--nx-border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.018);
    }

        .article-content .related-articles h2,
        .article-content .related-services h2,
        .article-content .related-products h2 {
            margin-top: 0;
            font-size: 1.4rem;
        }

        .article-content .related-articles ul,
        .article-content .related-services ul,
        .article-content .related-products ul {
            margin-bottom: 0;
        }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.5rem 0 3rem;
}

    .article-tags span {
        padding: 0.45rem 0.8rem;
        border: 1px solid var(--nx-border);
        border-radius: 999px;
        color: var(--nx-text-muted);
        font-size: 0.85rem;
    }

.article-end-cta {
    margin-bottom: 6rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--nx-border);
    border-radius: 26px;
    background: linear-gradient( 135deg, rgba(15, 91, 70, 0.17), rgba(44, 74, 110, 0.1) );
}

    .article-end-cta h2 {
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 700;
    }

    .article-end-cta p {
        color: var(--nx-text-muted);
    }

@media (max-width: 991px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-details-header {
        padding: 9rem 0 4rem;
    }

    .article-content {
        padding-top: 4rem;
    }
}

@media (max-width: 767px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.95;
    }

        .article-content h2 {
            margin-top: 3.25rem;
        }

        .article-content table {
            display: block;
            overflow-x: auto;
            white-space: nowrap;
        }

        .article-content blockquote,
        .article-content .faq-item {
            padding: 1.2rem;
        }
}

@media (max-width: 575px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-details-header h1 {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
    }

    .article-cover {
        border-radius: 18px;
    }

    .article-content {
        padding-top: 3rem;
    }
}

.jobs-list {
    display: grid;
    gap: 1rem;
}

.job-card {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem;
    border: 1px solid var(--nx-border);
    border-radius: 18px;
    background: var(--nx-surface);
    transition: var(--nx-transition);
}

    .job-card:hover {
        border-color: rgba(15, 91, 70, 0.45);
        transform: translateY(-4px);
    }

.job-department {
    color: var(--nx-secondary);
    font-size: 0.85rem;
    font-weight: 700;
}

.job-card h2 {
    margin: 0.6rem 0;
    font-size: 1.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--nx-text-muted);
    font-size: 0.9rem;
}

.job-arrow {
    color: var(--nx-secondary);
    font-size: 1.5rem;
}

.job-details-hero {
    padding: 11rem 0 5rem;
    border-bottom: 1px solid var(--nx-border);
    background: radial-gradient( circle at 20% 10%, rgba(15, 91, 70, 0.2), transparent 35%), var(--nx-bg);
}

    .job-details-hero h1 {
        max-width: 900px;
        margin: 1rem 0 1.5rem;
        font-size: clamp(3rem, 7vw, 6rem);
        font-weight: 700;
        line-height: 1.02;
    }

.job-content-block {
    margin-bottom: 4rem;
}

    .job-content-block h2 {
        margin-bottom: 1.25rem;
        font-size: 2rem;
    }

.job-application-card {
    position: sticky;
    top: 110px;
}

.form-text {
    color: var(--nx-text-muted);
}

@media (max-width: 991px) {
    .job-application-card {
        position: static;
    }
}

.insights-search {
    display: flex;
    width: min(100%, 680px);
    margin: 2rem auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

    .insights-search input {
        flex: 1;
        min-width: 0;
        padding: 1rem 1.25rem;
        border: 0;
        outline: 0;
        background: transparent;
        color: #ffffff;
    }

        .insights-search input::placeholder {
            color: rgba(255, 255, 255, 0.55);
        }

    .insights-search button {
        padding: 0 1.6rem;
        border: 0;
        background: #0f5b46;
        color: #ffffff;
        font-weight: 700;
    }

@media (max-width: 600px) {
    .insights-search {
        flex-direction: column;
    }

        .insights-search button {
            padding: 0.9rem;
        }
}

.home-insights {
    position: relative;
    overflow: hidden;
}

    .home-insights .section-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 2rem;
        margin-bottom: 2.5rem;
    }

        .home-insights .section-heading > div {
            max-width: 720px;
        }

        .home-insights .section-heading h2 {
            margin-top: 0.75rem;
        }

        .home-insights .section-heading p {
            margin-top: 1rem;
            color: var(--text-muted);
            line-height: 1.9;
        }

.section-heading-link {
    flex-shrink: 0;
    color: var(--accent-color, #2c4a6e);
    font-weight: 700;
    text-decoration: none;
}

    .section-heading-link:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .home-insights .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

.related-insights-section {
    width: 100%;
    max-width: 1120px;
    margin: 5rem auto 0;
    padding-top: 3.5rem;
    border-top: 1px solid var(--nx-border);
}

.related-insights-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.related-insights-label {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--nx-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.related-insights-heading h2 {
    margin: 0;
    color: var(--nx-text);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
}

.related-insights-all {
    flex: 0 0 auto;
    color: var(--nx-secondary);
    font-weight: 700;
    text-decoration: none;
}

    .related-insights-all:hover {
        color: #fff;
    }

.related-insights-list {
    display: grid;
    gap: 1.25rem;
}

.related-insight-card {
    display: grid;
    min-height: 270px;
    overflow: hidden;
    grid-template-columns: 320px minmax(0, 1fr);
    border: 1px solid var(--nx-border);
    border-radius: 24px;
    background: linear-gradient( 135deg, rgba(26, 34, 36, 0.97), rgba(18, 26, 28, 0.99) );
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .related-insight-card:hover {
        border-color: rgba(15, 91, 70, 0.48);
        box-shadow: var(--nx-shadow);
        transform: translateY(-4px);
    }

.related-insight-visual {
    display: block;
    min-height: 270px;
    overflow: hidden;
    background: #172124;
}

    .related-insight-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.related-insight-card:hover .related-insight-visual img {
    transform: scale(1.045);
}

.related-insight-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 270px;
    place-items: center;
    background: radial-gradient( circle at 30% 25%, rgba(15, 91, 70, 0.35), transparent 42% ), radial-gradient( circle at 80% 75%, rgba(44, 74, 110, 0.22), transparent 40% ), #1b2529;
}

    .related-insight-placeholder span {
        display: grid;
        width: 76px;
        height: 76px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        background: linear-gradient( 135deg, var(--nx-primary), var(--nx-secondary) );
        color: #fff;
        font-size: 2rem;
        font-weight: 800;
        transform: rotate(-6deg);
    }

.related-insight-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(1.6rem, 4vw, 2.8rem);
}

.related-insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-bottom: 1rem;
    color: var(--nx-text-muted);
    font-size: 0.82rem;
}

    .related-insight-meta span {
        position: relative;
    }

        .related-insight-meta span:not(:last-child)::after {
            position: absolute;
            top: 50%;
            inset-inline-end: -0.55rem;
            width: 4px;
            height: 4px;
            content: "";
            border-radius: 50%;
            background: var(--nx-secondary);
            transform: translateY(-50%);
        }

.related-insight-content h3 {
    max-width: 720px;
    margin: 0 0 0.9rem;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    font-weight: 700;
    line-height: 1.45;
}

    .related-insight-content h3 a {
        color: var(--nx-text);
        text-decoration: none;
    }

        .related-insight-content h3 a:hover {
            color: var(--nx-secondary);
        }

.related-insight-content p {
    display: -webkit-box;
    max-width: 760px;
    margin: 0 0 1.35rem;
    overflow: hidden;
    color: var(--nx-text-muted);
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-insight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--nx-secondary);
    font-weight: 700;
    text-decoration: none;
}

    .related-insight-link:hover {
        color: #fff;
    }

@media (max-width: 991.98px) {
    .related-insight-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .related-insights-section {
        margin-top: 3.5rem;
        padding-top: 2.5rem;
    }

    .related-insights-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .related-insight-card {
        grid-template-columns: 1fr;
    }

    .related-insight-visual,
    .related-insight-placeholder {
        min-height: 220px;
    }
}

/* =========================================================
   Global form readability
   Excludes page-specific consultation form styling
   ========================================================= */

.form-control:not(.consultation-page.form-control),
.form-select:not(.consultation-page.form-select),
textarea.form-control:not(.consultation-pagetextarea.form-control) {
    color: var(--nx-text);
    -webkit-text-fill-color: var(--nx-text);
    caret-color: var(--nx-primary);
    opacity: 1;
}

    .form-control:not(.consultation-page.form-control)::placeholder,
    textarea.form-control:not(.consultation-pagetextarea.form-control)::placeholder {
        color: #9aa29f;
        -webkit-text-fill-color: #9aa29f;
        opacity: 1;
    }

    .form-select:not(.consultation-page.form-select) option {
        background: var(--nx-bg-soft);
        color: var(--nx-text);
    }

    .form-control:not(.consultation-page.form-control):focus,
    .form-select:not(.consultation-page.form-select):focus {
        border-color: var(--nx-primary);
        color: var(--nx-text);
        -webkit-text-fill-color: var(--nx-text);
        box-shadow: 0 0 0 0.22rem rgba(15, 91, 70, 0.16);
    }

/* Consultation form must use its light-page color system */
.consultation-page .consultation-form-card .form-control,
.consultation-page .consultation-form-card .form-select,
.consultation-page .consultation-form-card textarea.form-control {
    background-color: #ffffff !important;
    color: #1a1d1f !important;
    -webkit-text-fill-color: #1a1d1f !important;
    caret-color: #0f5b46;
    opacity: 1 !important;
}

    .consultation-page .consultation-form-card .form-control::placeholder,
    .consultation-page .consultation-form-card textarea.form-control::placeholder {
        color: #6b7371 !important;
        -webkit-text-fill-color: #6b7371 !important;
        opacity: 1 !important;
    }

    .consultation-page .consultation-form-card .form-select option {
        background-color: #ffffff;
        color: #1a1d1f;
    }

    .consultation-page .consultation-form-card .form-control:focus,
    .consultation-page .consultation-form-card .form-select:focus {
        background-color: #ffffff !important;
        color: #1a1d1f !important;
        -webkit-text-fill-color: #1a1d1f !important;
        border-color: #0f5b46;
        box-shadow: 0 0 0 0.22rem rgba(15, 91, 70, 0.12);
    }

/* Chrome and Edge autofill on consultation page */
.consultation-page .consultation-form-card input:-webkit-autofill,
.consultation-page .consultation-form-card input:-webkit-autofill:hover,
.consultation-page .consultation-form-card input:-webkit-autofill:focus,
.consultation-page .consultation-form-card textarea:-webkit-autofill,
.consultation-page .consultation-form-card textarea:-webkit-autofill:hover,
.consultation-page .consultation-form-card textarea:-webkit-autofill:focus,
.consultation-page .consultation-form-card select:-webkit-autofill,
.consultation-page .consultation-form-card select:-webkit-autofill:hover,
.consultation-page .consultation-form-card select:-webkit-autofill:focus {
    -webkit-text-fill-color: #1a1d1f !important;
    caret-color: #0f5b46;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

@media (prefers-reduced-motion: reduce) {
    .ai-pulse {
        animation: none !important;
    }
}

.dropdown-menu {
    border: none;
    border-radius: 18px;
    padding: 12px;
    min-width: 240px;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    margin-top: 18px;
}

.dropdown-item {
    padding: 12px 18px;
    border-radius: 12px;
    transition: .25s;
}

    .dropdown-item:hover {
        background: #F2F7F5;
        color: #0F5B46;
    }

.dropdown-toggle::after {
    margin-inline-start: 8px;
}

/* =========================================================
   Nexroot Enterprise Navigation
   ========================================================= */

.nexroot-navigation {
    align-items: center;
    gap: 0.15rem;
}

    .nexroot-navigation .nav-item {
        position: relative;
    }

    .nexroot-navigation .nav-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-height: 44px;
        padding: 0.65rem 0.8rem;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: rgba(242, 240, 234, 0.78);
        font: inherit;
        font-weight: 500;
        white-space: nowrap;
        transition: color 180ms ease, background-color 180ms ease;
    }

        .nexroot-navigation .nav-link:hover,
        .nexroot-navigation .nav-link:focus-visible,
        .nexroot-navigation .nav-link.show {
            background: rgba(255, 255, 255, 0.045);
            color: #f2f0ea;
        }

    .nexroot-navigation .dropdown-toggle::after {
        width: 6px;
        height: 6px;
        margin-inline-start: 0.45rem;
        margin-inline-end: 0;
        border: 0;
        border-inline-end: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        opacity: 0.7;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 180ms ease;
    }

html[dir="rtl"] .nexroot-navigation .dropdown-toggle::after {
    transform: rotate(45deg) translateY(-2px);
}

.nexroot-navigation .dropdown-toggle.show::after,
html[dir="rtl"] .nexroot-navigation .dropdown-toggle.show::after {
    transform: rotate(225deg) translate(-1px, -1px);
}

/* Standard dropdown */

.nexroot-dropdown-menu {
    min-width: 300px;
    margin-top: 0.8rem !important;
    padding: 0.75rem;
    border: 1px solid rgba(26, 29, 31, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(2, 13, 24, 0.18), 0 6px 18px rgba(2, 13, 24, 0.08);
}

    .nexroot-dropdown-menu.show {
        animation: nexrootMenuReveal 180ms ease both;
    }

.nexroot-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: 14px;
    color: #1a1d1f;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

    .nexroot-dropdown-item:hover,
    .nexroot-dropdown-item:focus-visible {
        background: rgba(15, 91, 70, 0.075);
        color: #0f5b46;
        transform: translateY(-1px);
        outline: none;
    }

.nexroot-menu-icon {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(15, 91, 70, 0.12);
    border-radius: 12px;
    background: rgba(15, 91, 70, 0.07);
    color: #0f5b46;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nexroot-menu-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

    .nexroot-menu-content strong {
        color: inherit;
        font-size: 0.96rem;
        font-weight: 600;
    }

    .nexroot-menu-content small {
        color: #667078;
        font-size: 0.78rem;
        line-height: 1.55;
    }

/* Mega menu */

.nexroot-mega-menu {
    inset-inline: 0;
    top: calc(100% + 0.8rem) !important;
    width: min(1120px, calc(100vw - 3rem));
    margin-inline: auto !important;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 29, 31, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 34px 100px rgba(2, 13, 24, 0.2), 0 8px 24px rgba(2, 13, 24, 0.08);
}

    .nexroot-mega-menu.show {
        display: block;
        animation: nexrootMenuReveal 190ms ease both;
    }

.nexroot-mega-menu__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(235px, 0.7fr);
    min-height: 290px;
}

.nexroot-mega-column {
    padding: 1.4rem 1.75rem;
}

    .nexroot-mega-column + .nexroot-mega-column {
        border-inline-start: 1px solid rgba(26, 29, 31, 0.08);
    }

.nexroot-mega-heading {
    margin-bottom: 0.9rem;
}

.nexroot-mega-heading__eyebrow {
    display: block;
    margin-bottom: 0.4rem;
    color: #0f5b46;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.nexroot-mega-heading h2 {
    margin: 0;
    color: #1a1d1f;
    font-size: 1.25rem;
    font-weight: 700;
}

.nexroot-mega-link {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(26, 29, 31, 0.08);
    border-radius: 16px;
    color: #1a1d1f;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

    .nexroot-mega-link:hover,
    .nexroot-mega-link:focus-visible {
        border-color: rgba(15, 91, 70, 0.2);
        background: rgba(15, 91, 70, 0.055);
        color: #0f5b46;
        transform: translateY(-2px);
        outline: none;
    }

.nexroot-mega-link__number {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: #0f5b46;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

.nexroot-mega-link > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nexroot-mega-link strong {
    font-size: 0.95rem;
    font-weight: 650;
}

.nexroot-mega-link small {
    color: #687279;
    font-size: 0.76rem;
    line-height: 1.55;
}

.nexroot-mega-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

    .nexroot-mega-tags span {
        padding: 0.45rem 0.65rem;
        border: 1px solid rgba(44, 74, 110, 0.1);
        border-radius: 999px;
        background: rgba(44, 74, 110, 0.055);
        color: #435363;
        font-size: 0.72rem;
        line-height: 1;
    }

.nexroot-mega-feature {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem 1.75rem;
    background: radial-gradient( circle at 80% 10%, rgba(44, 74, 110, 0.42), transparent 42% ), linear-gradient( 145deg, #102521 0%, #0d171d 55%, #09131f 100% );
    color: #f2f0ea;
    min-height: 260px;
}

.nexroot-mega-feature__label {
    margin-bottom: auto;
    color: rgba(242, 240, 234, 0.56);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.nexroot-mega-feature h2 {
    max-width: 340px;
    margin: 2.5rem 0 0.9rem;
    color: #f2f0ea;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 650;
    line-height: 1.35;
}

.nexroot-mega-feature p {
    margin: 0 0 1.35rem;
    color: rgba(242, 240, 234, 0.68);
    font-size: 0.84rem;
    line-height: 1.75;
}

.nexroot-mega-feature__action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #f2f0ea;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

    .nexroot-mega-feature__action:hover,
    .nexroot-mega-feature__action:focus-visible {
        color: #ffffff;
        outline: none;
    }

/* Animation */

@keyframes nexrootMenuReveal {
    from {
        opacity: 0;
        transform: translateY(-7px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 991.98px) {

    .nexroot-navigation {
        align-items: stretch;
        gap: 0.25rem;
        padding-block: 1rem;
    }

        .nexroot-navigation .nav-link {
            display: flex;
            width: 100%;
            justify-content: space-between;
            padding: 0.85rem 0.9rem;
        }

    .nexroot-dropdown-menu,
    .nexroot-mega-menu {
        position: static !important;
        width: 100%;
        min-width: 0;
        margin: 0.35rem 0 0 !important;
        transform: none !important;
        border-radius: 16px;
        box-shadow: none;
    }

    .nexroot-dropdown-menu {
        padding: 0.5rem;
    }

    .nexroot-mega-menu {
        overflow: visible;
    }

    .nexroot-mega-menu__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .nexroot-mega-column + .nexroot-mega-column {
        border-inline-start: 0;
        border-top: 1px solid rgba(26, 29, 31, 0.08);
    }

    .nexroot-mega-feature h2 {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {

    .nexroot-dropdown-menu {
        min-width: 0;
    }

    .nexroot-dropdown-item {
        padding: 0.75rem;
    }

    .nexroot-menu-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .nexroot-mega-column {
        padding: 1rem;
    }

    .nexroot-mega-tags {
        display: none;
    }
}

/* =========================================================
   Fix RTL dropdown alignment
   يجب أن يكون في نهاية ملف CSS
   ========================================================= */

/* محاذاة القائمة مع الطرف الأيمن لزر الشركة */
html[dir="rtl"] .nexroot-dropdown {
    position: relative;
}

    html[dir="rtl"] .nexroot-dropdown > .nexroot-dropdown-menu,
    html[dir="rtl"] .nexroot-dropdown > .dropdown-menu[data-bs-popper] {
        right: 0 !important;
        left: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: 0 !important;
        transform: none !important;
    }

/* الإنجليزية: محاذاة مع الطرف الأيسر */
html[dir="ltr"] .nexroot-dropdown > .nexroot-dropdown-menu,
html[dir="ltr"] .nexroot-dropdown > .dropdown-menu[data-bs-popper] {
    right: auto !important;
    left: 0 !important;
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    transform: none !important;
}

/* اتجاه القائمة ومحتواها */
.nexroot-dropdown-menu {
    direction: inherit;
    text-align: start !important;
}

/* محاذاة كل عنصر */
.nexroot-dropdown-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    text-align: start !important;
}

/* النص يأخذ بقية المساحة ويلتصق باتجاه اللغة */
.nexroot-menu-content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: flex-start !important;
    text-align: start !important;
}

    /* منع أي text-align موروث */
    .nexroot-menu-content strong,
    .nexroot-menu-content small {
        display: block;
        width: 100%;
        margin: 0;
        text-align: start !important;
    }

/* العربية تحديدًا */
html[dir="rtl"] .nexroot-dropdown-menu,
html[dir="rtl"] .nexroot-dropdown-item,
html[dir="rtl"] .nexroot-menu-content,
html[dir="rtl"] .nexroot-menu-content strong,
html[dir="rtl"] .nexroot-menu-content small {
    direction: rtl;
    text-align: right !important;
}

/* الإنجليزية تحديدًا */
html[dir="ltr"] .nexroot-dropdown-menu,
html[dir="ltr"] .nexroot-dropdown-item,
html[dir="ltr"] .nexroot-menu-content,
html[dir="ltr"] .nexroot-menu-content strong,
html[dir="ltr"] .nexroot-menu-content small {
    direction: ltr;
    text-align: left !important;
}



/* =========================================================
   About Page — Safe Final Refinements
   Scoped selectors only; no route or shared component changes.
   ========================================================= */

.about-story-section .section-title {
    max-width: 860px;
}

.about-rich-text p:last-child,
.purpose-card p:last-child,
.value-card p:last-child,
.why-list p:last-child {
    margin-bottom: 0;
}

.why-panel .col-lg-5 > p {
    line-height: 1.9;
}

.why-list h3 {
    font-weight: 700;
    line-height: 1.45;
}

.why-list p {
    font-weight: 400;
    line-height: 1.8;
}

@media (max-width: 991.98px) {
    .about-hero {
        padding: 9rem 0 4.5rem;
    }

        .about-hero h1 {
            font-size: clamp(2.5rem, 8vw, 4rem);
        }

    .about-hero-description {
        max-width: 680px;
    }

    .about-story-visual {
        min-height: 440px;
    }

    .purpose-card {
        min-height: 350px;
    }
}

@media (max-width: 575.98px) {
    .about-hero {
        padding: 8.5rem 0 3.75rem;
    }

        .about-hero h1 {
            font-size: clamp(2.65rem, 12vw, 4rem);
            line-height: 1.12;
        }

    .about-hero-description {
        font-size: 1rem;
        line-height: 1.9;
    }

    .about-story-visual {
        min-height: 390px;
    }

    .root-core img {
        width: 62px;
        height: 62px;
    }

    .purpose-card {
        min-height: 0;
    }

        .purpose-card h2 {
            font-size: 2rem;
        }

    .value-card {
        min-height: 220px;
    }
}

/* =========================================================
   NEXROOT — Branded Service Icon System
   The SVG files already contain the Nexroot tile, colors,
   border, glow, and internal artwork.
   ========================================================= */

.service-icon {
    position: relative;
    display: flex;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    transition: transform 220ms ease;
}

    /* Disable the decorative layer from the old line-icon system. */
    .service-icon::before {
        display: none;
        content: none;
    }

    /* Branded SVG tile: show the complete file without recoloring or cropping. */
    .service-icon img {
        position: static;
        inset: auto;
        z-index: auto;
        display: block;
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
        margin: 0;
        padding: 0;
        object-fit: contain;
        object-position: center;
        opacity: 1;
        filter: none;
        transform: none;
    }

    /* Inline SVG fallback, when used later. */
    .service-icon > svg {
        display: block;
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
    }

/* Animate the complete branded tile only. */
.service-card:hover .service-icon {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    transform: translateY(-3px) scale(1.025);
}

    .service-card:hover .service-icon::before {
        display: none;
        opacity: 0;
        transform: none;
    }

    .service-card:hover .service-icon img {
        filter: none;
        transform: none;
    }

/* Optional reusable sizes. */
.service-icon--sm {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

    .service-icon--sm img,
    .service-icon--sm > svg {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        max-width: 48px;
        max-height: 48px;
    }

.service-icon--lg {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
}

    .service-icon--lg img,
    .service-icon--lg > svg {
        width: 88px;
        height: 88px;
        min-width: 88px;
        min-height: 88px;
        max-width: 88px;
        max-height: 88px;
    }

.nx-brand-icon {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: none;
}

.nx-brand-icon--sm {
    width: 48px;
    height: 48px;
}

.nx-brand-icon--lg {
    width: 88px;
    height: 88px;
}

@media (max-width: 575.98px) {
    .service-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

        .service-icon img,
        .service-icon > svg {
            width: 56px;
            height: 56px;
            min-width: 56px;
            min-height: 56px;
            max-width: 56px;
            max-height: 56px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .service-icon {
        transition: none;
    }

    .service-card:hover .service-icon {
        transform: none;
    }
}

.product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    min-height: 270px;
    overflow: hidden;
}

.product-card-content {
    min-width: 0;
}

.product-card-icon-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-icon-shell {
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient( 145deg, rgba(15, 91, 70, 0.78), rgba(44, 74, 110, 0.42) );
    border: 1px solid rgba(217, 209, 194, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 40px rgba(0, 0, 0, 0.22);
    transform: rotate(-7deg);
}

.product-card-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    transform: rotate(7deg) scale(1.03);
}

[dir="rtl"] .product-card {
    grid-template-columns: 150px minmax(0, 1fr);
}

[dir="rtl"] .product-card-icon-visual {
    grid-column: 1;
    grid-row: 1;
}

[dir="rtl"] .product-card-content {
    grid-column: 2;
    grid-row: 1;
}

@media (max-width: 767.98px) {
    .product-card,
    [dir="rtl"] .product-card {
        grid-template-columns: 110px minmax(0, 1fr);
        min-height: 230px;
    }

    .product-card-icon-visual {
        padding: 18px;
    }

    .product-icon-shell {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }
}

.product-screenshots-section {
    position: relative;
    padding: 40px 0 20px;
}

.product-screenshots-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

    .product-screenshots-heading h2 {
        margin: 12px 0 10px;
        font-size: clamp(1.8rem, 3vw, 2.6rem);
        font-weight: 700;
    }

    .product-screenshots-heading p {
        margin: 0;
        color: var(--text-muted, #9ca8ad);
        line-height: 1.8;
    }

.product-gallery-wrapper {
    max-width: 1120px;
    margin: 0 auto;
}

.product-gallery-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: #101719;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.product-gallery-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 24px;
    background: radial-gradient( circle at center, rgba(21, 126, 109, 0.12), transparent 60% ), #0d1416;
}

.product-gallery-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 14px;
}

.product-gallery-content {
    position: relative;
    padding: 22px 90px 24px;
    text-align: center;
    background: rgba(8, 14, 16, 0.98);
}

    .product-gallery-content h3 {
        margin: 0 0 8px;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .product-gallery-content p {
        max-width: 760px;
        margin: 0 auto;
        color: var(--text-muted, #a9b3b7);
        line-height: 1.7;
    }

.product-gallery-counter {
    margin-bottom: 8px;
    color: var(--text-muted, #8b989d);
    font-size: 0.85rem;
}

.product-gallery-carousel .carousel-control-prev,
.product-gallery-carousel .carousel-control-next {
    width: 58px;
    height: 58px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(5, 11, 13, 0.78);
    opacity: 1;
}

    .product-gallery-carousel .carousel-control-prev:hover,
    .product-gallery-carousel .carousel-control-next:hover {
        background: rgba(20, 112, 94, 0.95);
    }

.product-gallery-thumbnails {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding: 4px 2px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.product-gallery-thumbnail {
    flex: 0 0 145px;
    padding: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .product-gallery-thumbnail:hover,
    .product-gallery-thumbnail.active {
        border-color: #21b49a;
        opacity: 1;
        transform: translateY(-2px);
    }

    .product-gallery-thumbnail img {
        display: block;
        width: 100%;
        height: 82px;
        object-fit: cover;
        border-radius: 8px;
    }

@media (max-width: 767.98px) {
    .product-gallery-image-wrapper {
        min-height: 260px;
        padding: 12px;
    }

    .product-gallery-image {
        max-height: 400px;
        border-radius: 10px;
    }

    .product-gallery-content {
        padding: 18px 20px 22px;
    }

    .product-gallery-carousel .carousel-control-prev,
    .product-gallery-carousel .carousel-control-next {
        width: 42px;
        height: 42px;
        margin: 0 8px;
    }

    .product-gallery-thumbnail {
        flex-basis: 110px;
    }

        .product-gallery-thumbnail img {
            height: 65px;
        }
}

.article-content table td,
.article-content table th {
    color: #F2F0EA;
}

.industry-details-page {
    min-height: 100vh;
    background: #0d1212;
    color: #f2f0ea;
}

.industry-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient( circle at 50% 40%, rgba(15, 91, 70, 0.28), transparent 55% ), #0d1212;
}

.industry-hero__background {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.32;
}

.industry-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(13, 18, 18, 0.25), rgba(13, 18, 18, 0.92) );
}

.industry-hero__content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding-top: 150px;
    padding-bottom: 100px;
}

.industry-hero__eyebrow,
.section-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #d9d1c2;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.industry-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: 1.05;
    font-weight: 600;
}

.industry-hero p {
    max-width: 760px;
    margin-top: 26px;
    margin-bottom: 0;
    color: rgba(242, 240, 234, 0.8);
    font-size: 1.25rem;
    line-height: 1.9;
}

.industry-hero__icon {
    margin-bottom: 24px;
    font-size: 2.4rem;
    color: #d9d1c2;
}

.industry-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.industry-overview {
    padding: 110px 0;
    background: #f2f0ea;
    color: #1a1d1f;
}

.industry-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
    gap: 72px;
    align-items: start;
}

.industry-overview__content h2 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.15;
}

.industry-overview__content p {
    max-width: 760px;
    color: rgba(26, 29, 31, 0.72);
    font-size: 1.1rem;
    line-height: 1.9;
}

.industry-overview__card {
    padding: 38px;
    border: 1px solid #d9d1c2;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.55);
}

    .industry-overview__card h3 {
        margin-bottom: 18px;
        font-size: 1.55rem;
    }

    .industry-overview__card p {
        margin-bottom: 24px;
        color: rgba(26, 29, 31, 0.72);
        line-height: 1.8;
    }

.industry-overview__link {
    color: #0f5b46;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 991px) {
    .industry-hero {
        min-height: 620px;
    }

    .industry-overview__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .industry-hero {
        min-height: 560px;
    }

    .industry-hero__content {
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .industry-hero h1 {
        font-size: 2.7rem;
    }

    .industry-hero p {
        font-size: 1.05rem;
    }

    .industry-overview {
        padding: 75px 0;
    }

    .industry-overview__card {
        padding: 26px;
    }
}