
/*        html, body {
            height: 100%;
            overflow-y: hidden;  Disables vertical scrolling completely 
        }*/
        
        html, body {
            min-height: 100vh; /* Changed from height: 100% to allow expansion if needed */
            overflow-y: auto;  /* Change to auto so content can expand cleanly if cards overflow */
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #000;
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

       

        .label-strip {
            color: #9aa7b3;
            font-size: 12px;
            padding: 8px 24px 4px;
            letter-spacing: .2px;
        }

        /* ===== HEADER (from your first code, adapted to assets/ paths) ===== */
        .header {
            position: relative;
            padding: 10px 28px;
            /* nav-bg like your image */
            background: #edf2fb;
            border-top: 1px solid rgba(0, 0, 0, .1);
            box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
        }

        .header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-direction: row !important;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .center-logo-text {
            color: #335b92;
            font-size: 24px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            max-width: 40vw;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .center-logo-text img {
            width: 28px;
            height: 28px;
        }

        html[lang="ar"] .center-logo-text {
            flex-direction: row;
            text-align: right;
        }

        html[lang="en"] .center-logo-text {
            flex-direction: row;
            text-align: right;
            direction: rtl;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
            direction: ltr !important;
        }

        html[lang="ar"] .logo-section {
            flex-direction: row-reverse;
        }

        html[lang="ar"] .logo-text .line {
            text-align: right;
        }

        /* English: logo then text (left side text) */
        html[lang="en"] .logo-section {
            flex-direction: row;
        }

        html[lang="en"] .logo-text .line {
            text-align: left;
        }

        .logo-badge {
            width: 50px;
            height: 50px;
            display: grid;
            place-items: center
        }

        .logo-badge img {
            width: 50px;
            height: 50px;
            object-fit: contain
        }

        .logo-text {
            line-height: 1.3;
        }

        .logo-text .line {
            color: #6b7280;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            text-align: left;
        }

        .icon-btn {
            width: 40px;
            height: 40px;
            background: #fff;
            border: 1px solid #cfd6e3;
            border-radius: 50%;
            display: grid;
            place-items: center;
            cursor: pointer;
            transition: transform .12s ease;
            flex-shrink: 0;
        }

        .icon-btn:hover {
            transform: translateY(-1px)
        }

        .icon-btn img {
            width: 40px;
            height: 40px;
            display: block
        }

        .lang-switch {
            display: flex;
            border-radius: 9999px;
            border: 1px solid #32507b;
            background: #fff;
            padding: 2px;
            gap: 2px;
            flex-shrink: 0;
        }

        .lang-switch button {
            border: 0;
            background: transparent;
            color: #6b7280;
            padding: 6px 14px;
            border-radius: 9999px;
            font-size: 12px;
            cursor: pointer
        }

        .lang-switch button.active {
            background: #223c63;
            color: #fff
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 998;
            display: none;
        }

        .sidebar-overlay.show {
            display: block;
        }

        .sidebar {
            position: fixed;
            top: 0;
            right: -100%;
            width: 320px;
            max-width: 85vw;
            height: 100%;
            background: #fff;
            z-index: 999;
            transition: right 0.3s ease;
            overflow-y: auto;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        }

        .sidebar.show {
            right: 0;
        }

        html[dir="ltr"] .sidebar {
            right: auto;
            left: -100%;
            transition: left 0.3s ease;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        }

        html[dir="ltr"] .sidebar.show {
            left: 0;
        }

        .sidebar-header {
            padding: 20px;
            background: linear-gradient(180deg, #335b92 0%, #2a4a75 100%);
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
        }

        .sidebar-close {
            background: transparent;
            border: none;
            color: #fff;
            font-size: 28px;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .sidebar-menu {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .sidebar-menu li a {
            display: block;
            padding: 16px 20px;
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #eee;
            transition: background 0.2s;
        }

        .sidebar-menu li a:hover {
            background: #f5f5f5;
            color: #003DA6;
        }

        .sidebar-menu li a.active {
            background: #003DA6;
            color: #fff;
        }

        /* ===== MAIN PAGE (from your second file) ===== */
        .hero {
            padding: 10px 40px 150px;
            text-align: center;
            position: relative;
            background-size: cover;
            background-position: center;
        }

        .hero-title {
            color: #1A3269;
            font-size: 48px;
            font-weight: 400;
            margin-bottom: 40px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .search-container {
            width: 950px;
            max-width: 90%;
            margin: 0 auto;
        }

        .search-bar {
            background: #fff;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            direction: ltr;
        }

        .search-input-section {
            display: flex;
            align-items: center;
            flex: 1;
            gap: 8px;
        }

        .search-icon {
            width: 18px;
            height: 18px;
            color: #000;
            flex-shrink: 0;
        }

        .search-input {
            border: none;
            outline: none;
            background: transparent;
            font-size: 15px;
            flex: 1;
            text-align: right;
            color: #000;
            direction: rtl;
        }

        .search-input::placeholder {
            color: #aaa;
        }

        .ai-badge {
            background: rgba(245, 247, 255, 1);
            color: #000;
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all .2s ease;
            border: 1px solid rgba(220, 220, 255, 0.6);
        }

        .ai-badge:hover {
            transform: scale(1.03);
        }

        .ai-badge img {
            width: 14px;
            height: 14px;
            display: inline-block;
        }

        .background-bg {
            background-image: url('assets/NewTopImage.png'), url('assets/Background.png');
            background-size: cover, cover;
            background-position: center, center;
            background-repeat: no-repeat, no-repeat;
            position: relative;
            width: 100%;
            /* CHANGE THIS: */
            min-height: 100vh; /* Changed from fixed 88vh to min-height so it expands with your 10 cards */
            padding-bottom: 60px; /* Gives breathing room before the footer */
        }
        
/*        .background-bg {
            background-image: url('assets/NewTopImage.png'), url('assets/Background.png');
            background-size: cover, cover;
            background-position: center, center;
            background-repeat: no-repeat, no-repeat;
            position: relative;
            width: 100%;
            height: 88vh;
        }*/

        .background-bg::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(to bottom,
                    rgba(255, 255, 255, 0.55) 40%,
                    rgba(255, 255, 255, 0.9) 100%);
            pointer-events: none;
            z-index: 0;
        }

        .hero,
        .services-section {
            position: relative;
            z-index: 1;
        }

        .services-section {
            position: relative;
            padding: 0 24px 60px;
            max-width: 1200px;
            margin: -120px auto 0;
            z-index: 10;
        }

        .services-grid {
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(5, 1fr);
        }

        .service-card {
            background: #f5f8ff82;
            border: 1px solid rgba(255, 255, 255, .22);
            border-radius: 16px;
            padding: 18px 16px;
            text-align: center;
            transition: transform .18s ease, box-shadow .18s ease;
        }

        .service-card:hover {
            background: linear-gradient(135deg, #4A65B2 0%, #365090 100%);
            box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
            transform: translateY(-6px);
        }

        .service-icon img {
            width: 72px;
            height: 72px;
            object-fit: contain;
        }

        .service-title {
            color: #fff;
            font-size: 22px;
            font-weight: 800;
        }

        .service-subtitle {
            color: rgba(255, 255, 255, .9);
            font-size: 22px;
            font-weight: 800;
        }

        .all-services-panel {
            display: none;
            position: fixed;
            left: 50%;
            bottom: 0;
            transform: translate(-50%);
            width: min(1100px, 100%);
            max-height: 80vh;
            overflow: auto;
            background: #fff;
            width: 100%;
            border-radius: 12px;
            z-index: 1001;
            padding: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
        }

        .all-services-panel {
            background: linear-gradient(180deg,
                    #F5F8FF 0%,
                    #E5ECFB 45%,
                    #D2DDF6 100%);
        }

        .all-panel-close {
            position: absolute;
            top: 16px;
            background: none;
            border: none;
            font-size: 22px;
            color: #144767;
            cursor: pointer;
            transition: .3s;
        }

        /* Arabic: button on the LEFT */
        html[lang="ar"] .all-panel-close {
            left: 16px;
            right: auto;
        }

        /* English: button on the RIGHT */
        html[lang="en"] .all-panel-close {
            right: 16px;
            left: auto;
        }


        .all-panel-close:hover {
            transform: rotate(90deg);
        }

        .all-panel-title {
            font-size: 22px;
            font-weight: 700;
            display: flex;
            gap: 10px;
            align-items: center;
            color: #144767;
            margin-bottom: 30px;
        }

        .all-panel-title .panel-icon {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }

        .all-dot {
            width: 10px;
            height: 10px;
            background: #144767;
            border-radius: 50%;
            display: inline-block;
        }

        .all-service-card {
            background: #ffffff7d;
            border: 1px solid rgba(20, 71, 103, 0.2);
            border-radius: 14px;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all .3s ease;
            cursor: pointer;
        }

        .all-service-card:hover {
            background: #fff;
            transform: translateY(-6px);
            box-shadow: 0 8px 20px rgba(20, 71, 103, 0.15);
        }

        .all-service-text {
            flex: 1;
            text-align: right;
            padding: 10px;
        }

        html[lang="ar"] .all-service-text {
            text-align: right;
        }

        html[lang="en"] .all-service-text {
            text-align: left;
        }

        .all-service-title {
            font-size: 16px;
            font-weight: 600;
            color: #144767;
            margin-bottom: 6px;
        }

        .all-service-sub {
            font-size: 13px;
            color: #555;
            line-height: 1.4;
        }

        .all-service-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .all-service-icon img {
            width: 70px;
            height: 70px;
            padding: 5px;
            object-fit: contain;
        }

        .all-services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            padding: 24px;
        }

        /* added: make icons + text white on hover */
        .service-title,
        .service-subtitle {
            color: #1A3269;
        }

        .service-card:hover .service-title,
        .service-card:hover .service-subtitle {
            color: #ffffff;
        }

        .service-card:hover .service-icon img {
            filter: brightness(0) invert(1);
        }

        .footer {
            background: linear-gradient(to bottom, #4A65B2, #365090);
            border-top: 1px solid #c9c9c9;
            padding: 12px 24px;
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: #fff;
            direction: rtl;
            gap: 12px;
            flex-wrap: wrap;
        }

        .footer-left,
        .footer-right {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap
        }

        .footer-item {
            cursor: pointer;
            transition: color .2s ease
        }

        .footer-left .footer-item:hover {
            color: #144767
        }

        .footer-right .footer-item {
            cursor: default;
        }

        /* New Documentation Services Panel */
        .documentation-panel {
            display: none;
            position: fixed;
            top: 75%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: min(1100px, 92%);
            max-height: 80vh;
            overflow: auto;
            background: #fff;
            border-radius: 12px;
            z-index: 1001;
            padding: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
        }

        .doc-panel-close {
            position: absolute;
            top: 16px;
            left: 16px;
            background: none;
            border: none;
            font-size: 22px;
            color: #144767;
            cursor: pointer;
            transition: .3s;
        }

        .doc-panel-close:hover {
            transform: rotate(90deg);
        }

        .doc-panel-title {
            font-size: 22px;
            font-weight: 700;
            display: flex;
            gap: 10px;
            align-items: center;
            color: #144767;
            margin-bottom: 30px;
        }

        .doc-panel-title .panel-icon {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }

        .documentation-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            padding: 24px;
        }

        .doc-service-card {
            background: rgba(20, 71, 103, 0.05);
            border: 1px solid rgba(20, 71, 103, 0.2);
            border-radius: 14px;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all .3s ease;
            cursor: pointer;
        }

        .doc-service-card:hover {
            background: #fff;
            transform: translateY(-6px);
            box-shadow: 0 8px 20px rgba(20, 71, 103, 0.15);
        }

        .doc-service-text {
            flex: 1;
            text-align: right;
            padding: 10px;
        }

        .doc-service-title {
            font-size: 16px;
            font-weight: 600;
            color: #144767;
            margin-bottom: 6px;
        }

        .doc-service-sub {
            font-size: 13px;
            color: #555;
            line-height: 1.4;
        }

        .doc-service-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .doc-service-icon img {
            width: 70px;
            height: 70px;
            padding: 5px;
            object-fit: contain;
        }

        /* === language-specific search layout for search bar === */
        html[lang="ar"] .search-bar {
            flex-direction: row;
            /* AI badge then input (current Arabic layout) */
            direction: rtl;
        }

        html[lang="en"] .search-bar {
            flex-direction: row-reverse;
            /* swap: input + icon first, AI badge last */
            direction: ltr;
        }

        html[lang="ar"] .search-input {
            text-align: right;
            direction: rtl;
        }

        html[lang="en"] .search-input {
            text-align: left;
            direction: ltr;
        }

        html[lang="ar"] .search-bar .search-input-section {
            order: 1;
        }

        html[lang="ar"] .search-bar .ai-badge {
            order: 2;
        }

        html[lang="ar"] .search-input {
            text-align: right;
            direction: rtl;
        }

        /* EN: AI badge on the left, search on the right */
        html[lang="en"] .search-bar .ai-badge {
            order: 1;
        }

        html[lang="en"] .search-bar .search-input-section {
            order: 2;
        }

        html[lang="en"] .search-input {
            text-align: left;
            direction: ltr;
        }

        /* responsive */
        @media (max-width: 768px) {
            .header {
                padding: 12px 16px;
            }

            .header-row {
                display: grid;
                grid-template-columns: auto 1fr auto;
                grid-template-areas: "actions title logo";
                align-items: center;
                gap: 10px;
            }

            .header-actions {
                grid-area: actions;
                gap: 8px;
            }

            .center-logo-text {
                grid-area: title;
                position: static;
                transform: none;
                justify-content: center;
                font-size: 16px;
                max-width: none;
            }

            .center-logo-text img {
                width: 20px;
                height: 20px;
            }

            .logo-section {
                grid-area: logo;
                gap: 8px;
            }

            .logo-badge {
                width: 40px;
                height: 40px;
            }

            .logo-badge img {
                width: 40px;
                height: 40px;
            }

            .logo-text {
                display: none;
            }

            .icon-btn {
                width: 36px;
                height: 36px;
            }

            .icon-btn img {
                width: 36px;
                height: 36px;
            }

            .header-actions .icon-btn:not(#hambBtn) {
                display: none;
            }

            .lang-switch button {
                padding: 6px 10px;
                font-size: 11px;
            }

            .background-bg {
                height: auto;
                min-height: 100vh;
            }

            .hero {
                padding: 40px 16px 140px;
            }

            .hero-title {
                font-size: 22px;
                margin-bottom: 30px;
            }

            .search-container {
                width: 100%;
                padding: 0 8px;
            }

            .search-bar {
                padding: 8px 12px;
            }

            .search-input {
                font-size: 14px;
            }

            .ai-badge {
                padding: 5px 10px;
                font-size: 12px;
            }

            .services-section {
                margin-top: -100px;
                padding: 0 16px 40px;
                z-index: 10;
            }

            .services-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .service-card {
                padding: 16px 12px;
                border: 1px solid rgba(0, 0, 0, .1);
            }

            .service-title,
            .service-subtitle {
                color: #0f172a;
            }

            .service-icon img {
                width: 52px;
                height: 52px;
            }

            .service-title {
                font-size: 14px;
                margin-top: 8px;
            }

            .service-subtitle {
                font-size: 11px;
            }

            .all-services-panel,
            .documentation-panel {
                top: 50%;
                width: 95%;
                max-height: 85vh;
                padding: 16px;
            }

            .all-panel-title,
            .doc-panel-title {
                font-size: 18px;
                margin-bottom: 20px;
            }

            .all-services-grid,
            .documentation-grid {
                grid-template-columns: 1fr;
                gap: 12px;
                padding: 0;
            }

            .all-service-card,
            .doc-service-card {
                padding: 16px;
            }

            .all-service-title,
            .doc-service-title {
                font-size: 15px;
            }

            .all-service-sub,
            .doc-service-sub {
                font-size: 12px;
            }

            .all-service-icon img,
            .doc-service-icon img {
                width: 50px;
                height: 50px;
            }

            .footer {
                padding: 14px 16px;
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }

            .footer-left,
            .footer-right {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .center-logo-text {
                font-size: 14px;
            }

            .center-logo-text img {
                width: 18px;
                height: 18px;
            }

            .hero {
                padding: 30px 12px 120px;
            }

            .hero-title {
                font-size: 20px;
                margin-bottom: 24px;
            }

            .search-bar {
                padding: 8px 10px;
                border-radius: 10px;
            }

            .ai-badge {
                padding: 4px 8px;
                font-size: 11px;
            }

            .ai-badge img {
                width: 12px;
                height: 12px;
            }

            .services-section {
                margin-top: -80px;
                padding: 0 12px 32px;
            }

            .services-grid {
                gap: 10px;
            }

            .service-card {
                padding: 14px 10px;
                border-radius: 12px;
            }

            .service-icon img {
                width: 48px;
                height: 48px;
            }

            .service-title {
                font-size: 13px;
                margin-top: 6px;
            }

            .service-subtitle {
                font-size: 10px;
            }

            .header-actions {
                gap: 6px;
            }

            .lang-switch button {
                padding: 5px 10px;
                font-size: 10px;
            }

            .icon-btn {
                width: 34px;
                height: 34px;
            }

            .icon-btn img {
                width: 34px;
                height: 34px;
            }

            .logo-badge {
                width: 36px;
                height: 36px;
            }

            .logo-badge img {
                width: 36px;
                height: 36px;
            }

            .all-services-panel,
            .documentation-panel {
                width: 96%;
                padding: 12px;
                border-radius: 10px;
            }

            .all-panel-title,
            .doc-panel-title {
                font-size: 16px;
                margin-bottom: 16px;
            }

            .all-panel-title .panel-icon,
            .doc-panel-title .panel-icon {
                width: 20px;
                height: 20px;
            }

            .all-service-card,
            .doc-service-card {
                padding: 14px;
                border-radius: 12px;
            }

            .all-service-title,
            .doc-service-title {
                font-size: 14px;
            }

            .all-service-sub,
            .doc-service-sub {
                font-size: 11px;
            }

            .all-service-icon img,
            .doc-service-icon img {
                width: 45px;
                height: 45px;
            }

            .footer {
                font-size: 11px;
                padding: 12px;
            }
        }

        @media (max-width: 1024px) {

            .all-services-grid,
            .documentation-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {

            .all-services-grid,
            .documentation-grid {
                grid-template-columns: 1fr;
            }
        }

  