/* ===== DARK BLUE GRADIENT THEME — GLOBAL STYLES =====
   Home page sections (hero, overview, solutions, services, cta, news)
   have been moved to assets/css/home.css
   ========================================================== */

/* ─────────────────────────────────────────────────────────────
   CSS VARIABLES
   ───────────────────────────────────────────────────────────── */
:root {
    --body: #050508;
    --black: #000;
    --white: #fff;
    --theme: #223d8d;
    --theme-secondary: #5b7fff;
    --header: #ffffff;
    --text: #8a8f98;
    --border: #141418;
    --bg: #050508;
    --bg2: #0a0a0f;
    --card-bg: #0c0c12;
    --card-hover: #111118;
    --box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
    --gradient-1: linear-gradient(
        135deg,
        #050508 0%,
        #111118 50%,
        #050508 100%
    );
    --gradient-2: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
}

/* ─────────────────────────────────────────────────────────────
   ARABIC FONT — Noto Kufi Arabic (global rules only)
   Home-page-specific Arabic overrides live in home.css
   ───────────────────────────────────────────────────────────── */
[lang="ar"] body,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4,
[lang="ar"] h5,
[lang="ar"] h6,
[lang="ar"] p,
[lang="ar"] a,
[lang="ar"] span,
[lang="ar"] input,
[lang="ar"] textarea,
[lang="ar"] button,
[lang="ar"] .theme-btn,
[lang="ar"] .btn-learn-more {
    font-family: "Noto Kufi Arabic", sans-serif;
}

[lang="ar"] body {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

[lang="ar"] h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.4;
}
[lang="ar"] h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
}
[lang="ar"] h3 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.5;
}
[lang="ar"] h4 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
}
[lang="ar"] h5,
[lang="ar"] h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

[lang="ar"] p {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.85;
}

[lang="ar"] .main-menu nav ul li a {
    font-size: 13px !important;
    font-weight: 500;
}
[lang="ar"] .main-menu nav ul li .submenu li a {
    font-size: 12px !important;
    font-weight: 400;
}

[lang="ar"] .theme-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px !important;
}
[lang="ar"] .btn-learn-more {
    font-size: 12.5px;
    font-weight: 600;
}

/* Footer Arabic */
[lang="ar"] .footer-widget-items h3 {
    font-size: 17px;
    font-weight: 600;
}
[lang="ar"] .footer-widget-items .list-area li a {
    font-size: 13px;
    font-weight: 400;
}
[lang="ar"] .footer-bottom-wrapper p {
    font-size: 12.5px;
}

/* Language switcher stays Latin */
[lang="ar"] .language-switcher .lang-btn {
    font-family: system-ui, sans-serif;
}

/* News grid page (inner page, not home) */
[lang="ar"] .filter-tag {
    font-size: 12.5px;
    font-weight: 500;
}
[lang="ar"] .news-card-title {
    font-size: 16px;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL BASE STYLES
   ───────────────────────────────────────────────────────────── */
body {
    background: var(--bg);
    background-image:
        radial-gradient(
            circle at 20% 50%,
            rgba(65, 105, 225, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(91, 127, 255, 0.05) 0%,
            transparent 50%
        );
    color: var(--text);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
}
p {
    color: var(--text);
}

/* ─────────────────────────────────────────────────────────────
   THEME BUTTONS — used sitewide
   ───────────────────────────────────────────────────────────── */
.theme-btn {
    background: linear-gradient(135deg, #019bff 0%, #5b7fff 100%);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
    position: relative;
    overflow: hidden;
}
.theme-btn::before {
    background: linear-gradient(135deg, #5b7fff 0%, #7b9fff 100%);
}
.theme-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.theme-btn:hover::after {
    transform: translateX(100%);
}

/* ─────────────────────────────────────────────────────────────
   INNER PAGE CARD EFFECTS
   (used on about, services, and other non-home pages)
   ───────────────────────────────────────────────────────────── */
.service-box-item,
.counter-box-item,
.about-image {
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}
.service-box-item:hover {
    background: var(--card-hover);
    box-shadow: 0 10px 40px rgba(65, 105, 225, 0.3);
    transform: translateY(-5px);
}

/* ─────────────────────────────────────────────────────────────
   SECTION BACKGROUNDS — inner pages
   ───────────────────────────────────────────────────────────── */
.about-section,
.section-padding {
    background: var(--bg) !important;
    position: relative;
}

/* ─────────────────────────────────────────────────────────────
   SWIPER / MISC SHARED
   ───────────────────────────────────────────────────────────── */
.swiper-wrapper {
    align-items: center;
    justify-content: center;
}

/* ===================================================================
   HEADER
   =================================================================== */

/* Live Search Results Dropdown */
.live-search-results {
    background: #fff;
    border-radius: 12px;
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 14px;
}
.search-loading i {
    margin-right: 8px;
    color: #5b7fff;
}

.search-category-section {
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
}
.search-category-section:last-child {
    border-bottom: none;
}

.search-category-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}
.search-result-item:hover {
    background: #f3f4f6;
}
.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-icon {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.search-result-icon i {
    font-size: 16px;
    color: #5b7fff;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}
.search-result-info p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.search-no-results {
    text-align: center;
    padding: 60px 30px;
    color: #6b7280;
}
.search-no-results i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}
.search-no-results p {
    font-size: 14px;
    margin: 0;
}

.search_popup {
    background-color: var(--black) !important;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 3px;
    align-items: center;
    margin-right: 15px;
}
.language-switcher .lang-btn {
    padding: 5px 2px !important;
    font-size: 11px !important;
    font-weight: 600;
    border-radius: 3px;
    color: #fff;
    transition: all 0.3s ease;
}
.language-switcher span {
    margin: 0 3px;
    color: #fff;
    transition: all 0.3s ease;
}
.header-1.sticky .language-switcher .lang-btn {
    color: #1e293b !important;
}
.header-1.sticky .language-switcher span {
    color: #1e293b !important;
}
.language-switcher .lang-btn.active {
    font-weight: 700;
}

/* Header Logo swap on sticky */
.header-logo {
    display: block;
}
.header-logo-2 {
    display: none;
}
.header-1.sticky .header-logo {
    display: none;
}
.header-1.sticky .header-logo-2 {
    display: block;
    filter: invert(1);
}

/* Header icon colours */
.menu_search .search_btn {
    width: 38px;
    height: 38px;
    color: #fff;
    transition: all 0.3s ease;
}
.header-1.sticky .menu_search .search_btn {
    color: #1e293b !important;
}

.sidebar__toggle i {
    color: #fff;
    transition: all 0.3s ease;
}
.header-1.sticky .sidebar__toggle i {
    color: #1e293b !important;
}

/* Sticky nav link colours */
.header-1.sticky .main-menu nav ul li a {
    color: #1e293b !important;
}
.header-1.sticky .main-menu nav ul li .submenu {
    background: #fff !important;
}
.header-1.sticky .main-menu nav ul li .submenu li a {
    color: #1e293b !important;
}
.header-main .main-menu ul li .submenu li a {
    color: var(--black);
}
.header-1.sticky .main-menu nav ul li .submenu li a:hover {
    color: #4169e1 !important;
}

/* Header button sizing */
.header-button .theme-btn {
    padding: 10px 18px !important;
    font-size: 13px !important;
}
.header-btn h6,
.header-btn h6 a {
    font-size: 13px !important;
}

/* Nav spacing */
.main-menu nav ul li {
    margin-right: 25px !important;
}
.main-menu nav ul li:last-child {
    margin-right: 0 !important;
}
.main-menu nav ul li a {
    font-size: 14px !important;
    padding: 10px 0 !important;
}
.main-menu nav ul li .submenu li a {
    padding: 8px 15px !important;
    font-size: 13px !important;
}

/* Contact form inside header sidebar */
.contact-item > form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hero/header spacing */
.hero-1 {
    margin-top: 0;
}
.header-1 {
    margin-top: 0;
    border-bottom: none;
}

/* Mega menu */
.mega-menu-wrapper {
    max-width: 1323px;
    margin-right: auto;
    margin-left: auto;
}

.header-main .header-right {
    gap: 10px;
}

/* Mobile submenu text colours */
@media (max-width: 991px) {
    .mobile-menu ul li a,
    .mobile-menu ul li .submenu li a,
    .mean-container .mean-nav ul li a,
    .mean-container .mean-nav ul li li a {
        color: rgba(0, 0, 0, 0.75) !important;
    }
    .mobile-menu ul li a:hover,
    .mobile-menu ul li .submenu li a:hover,
    .mean-container .mean-nav ul li a:hover,
    .mean-container .mean-nav ul li li a:hover {
        color: #5b7fff !important;
    }
}

/* ===================================================================
   FOOTER
   =================================================================== */
/* ─── Footer Gradient & Watermark Logo ─── */
.footer-section {
    background: linear-gradient(
        180deg,
        #020a18 0%,
        #051225 30%,
        #143358 60%,
        #019bff 100%
    ) !important;
    position: relative;
    overflow: hidden;
}

.footer-area {
    background: transparent !important;
    background-image: none !important;
}

.footer-watermark {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    max-width: 1323px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
}

.footer-watermark img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(2);
    transform: translateY(25%);
}

/* Make sure footer content stays above the watermark */
.footer-area,
.footer-bottom-wrapper {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .footer-watermark {
        opacity: 0.4;
        max-width: 100%;
        bottom: 25px;
    }
}

.footer-widget-items h3 {
    color: var(--white);
}

.footer-widget-items .list-area li a {
    color: var(--text);
    transition: all 0.3s ease;
}
.footer-widget-items .list-area li a:hover {
    color: #5b7fff;
    transform: translateX(5px);
}

.footer-widget-wrapper .footer-widget-items .contact-item .social-icon a {
    background: rgba(91, 127, 255, 0.1);
    border: 1px solid rgba(91, 127, 255, 0.3);
    color: var(--white);
    transition: all 0.3s ease;
}
.footer-widget-wrapper .footer-widget-items .contact-item .social-icon a:hover {
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    border-color: #5b7fff;
    box-shadow: 0 5px 20px rgba(91, 127, 255, 0.4);
}

.footer-bottom-wrapper {
    border-top: 1px solid rgba(91, 127, 255, 0.2);
}
.footer-bottom-wrapper p {
    color: white;
}

.footer-list li a {
    color: var(--text);
}
.footer-list li a:hover {
    color: #5b7fff;
}

/* Newsletter input in footer */
.contact-item input {
    background: rgba(12, 12, 18, 0.8);
    border: 1px solid rgba(91, 127, 255, 0.15);
    color: var(--white);
}
.contact-item input::placeholder {
    color: var(--text);
}
.contact-item input:focus {
    border-color: #5b7fff;
    box-shadow: 0 0 20px rgba(91, 127, 255, 0.3);
}

/* Social icons (global / footer) */
.social-icon a {
    background: rgba(12, 12, 18, 0.8);
    border: 1px solid rgba(91, 127, 255, 0.15);
    color: var(--text);
}
.social-icon a:hover {
    background: linear-gradient(135deg, #4169e1 0%, #5b7fff 100%);
    border-color: #5b7fff;
    color: white;
    box-shadow: 0 5px 20px rgba(91, 127, 255, 0.4);
}
