/* ==========================================================================
   OVID Architectural - Custom Stylesheet (Colors, RTL/LTR, Dark Mode, UI)
   Brand Colors: Deep Navy (#0e4570 / #0b2239) & Steel Cyan-Blue (#1e78b4 / #3b9ad9)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --rr-theme-primary: #1e78b4 !important;
    --rr-heading-primary: #0b1e33 !important;
    --ovid-navy: #0e4570;
    --ovid-blue: #1e78b4;
    --ovid-cyan: #59a5d8;
    --ovid-dark: #071320;
    --ovid-card-dark: #0d1f33;
}

/* ==========================================================================
   1. Logo & Header Styling
   ========================================================================== */
.ovid-logo-wrap {
    display: inline-flex;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.ovid-logo-wrap img.logo-emblem {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.ovid-logo-wrap img.logo-text {
    height: 28px;
    width: auto;
    object-fit: contain;
}
.ovid-logo-wrap:hover img.logo-emblem {
    transform: scale(1.06);
}

/* Ensure all 6 desktop menu items are visible above 1200px */
@media (min-width: 1200px) {
    .header-3 .header__main .main-menu ul li {
        display: inline-block !important;
    }
    .header-3 .header__main .main-menu ul li .submenu li {
        display: block !important;
    }
}
@media (min-width: 1200px) and (max-width: 1400px) {
    .main-menu ul li {
        margin-inline-end: 22px !important;
    }
}

/* Header Action Buttons (Lang Switcher, Theme Toggle, Search Icon & CTA Button) */
.header-3 .header__action {
    display: flex;
    align-items: center;
    gap: 14px !important;
}
.ovid-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-inline-end: 0;
}
.ovid-search-trigger-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(30, 120, 180, 0.28);
    background: rgba(30, 120, 180, 0.08);
    color: var(--rr-heading-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.25s ease;
}
.ovid-search-trigger-btn:hover {
    background: var(--rr-theme-primary);
    color: #ffffff !important;
    border-color: var(--rr-theme-primary);
}
body.dark-mode .ovid-search-trigger-btn {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.header-3 .rr-btn__header,
.rr-btn__header {
    background-color: var(--rr-theme-primary) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--rr-theme-primary) !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(30, 120, 180, 0.22);
}
.header-3 .rr-btn__header .btn-wrap .text-one,
.header-3 .rr-btn__header .btn-wrap .text-two,
.rr-btn__header .btn-wrap .text-one,
.rr-btn__header .btn-wrap .text-two {
    color: #ffffff !important;
    font-weight: 700;
}
.header-3 .rr-btn__header:hover,
.rr-btn__header:hover {
    background-color: var(--rr-heading-primary) !important;
    border-color: var(--ovid-cyan) !important;
}
.ovid-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(30, 120, 180, 0.28);
    background: rgba(30, 120, 180, 0.08);
    color: var(--rr-heading-primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.ovid-tool-btn:hover {
    background: var(--rr-theme-primary);
    color: #ffffff !important;
    border-color: var(--rr-theme-primary);
    transform: translateY(-2px);
}
.ovid-tool-btn.icon-only {
    width: 42px;
    padding: 0;
}
.ovid-lang-btn,
.ovid-lang-btn span {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

/* ==========================================================================
   2. Subtitle Separators, Section Titles & Balanced Section Spacing (LTR & RTL)
   ========================================================================== */
.section__subtitle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 8px !important;
    position: relative;
}
.section__subtitle .left-separetor,
.section__subtitle .right-separetor {
    position: static !important;
    display: inline-block !important;
    width: 40px !important;
    height: 2px !important;
    background: var(--rr-theme-primary) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
}
.title-animation,
.title-animation div,
.title-animation span,
.section__title,
.breadcrumb__title {
    opacity: 1 !important;
    visibility: visible !important;
}
.section-space:not(.banner-3) {
    padding-top: 65px !important;
    padding-bottom: 65px !important;
}
.section-space__top:not(.banner-3) {
    padding-top: 65px !important;
}
.section-space__bottom:not(.banner-3) {
    padding-bottom: 65px !important;
}
@media (max-width: 991px) {
    .section-space:not(.banner-3) {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .section-space__top:not(.banner-3) {
        padding-top: 50px !important;
    }
    .section-space__bottom:not(.banner-3) {
        padding-bottom: 50px !important;
    }
}
.section-space .row.mb-50,
.section-space .row.mb-45,
.section-space .section__title-wrapper.mb-60 {
    margin-bottom: 32px !important;
}

/* ==========================================================================
   3. Arabic & RTL Typography and Layout Reversals
   ========================================================================== */
html[dir="rtl"],
html[lang="ar"],
html[dir="rtl"] body,
html[lang="ar"] body {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] li,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .section__title,
html[dir="rtl"] .section__subtitle,
html[dir="rtl"] .banner-3__content-title,
html[dir="rtl"] .banner-3__content-subtitle,
html[dir="rtl"] .breadcrumb__title,
html[dir="rtl"] .what-we-do-3__list a,
html[dir="rtl"] .what-we-do-3__content-des,
html[dir="rtl"] .support__list-item .text p,
html[dir="rtl"] .rr__faq .accordion-button,
html[dir="rtl"] .rr__faq .accordion-body > p,
html[dir="rtl"] .skill-one__progress .count-text,
html[dir="rtl"] .footer-3__widget-title h4,
html[dir="rtl"] .footer-3__content p,
html[dir="rtl"] .footer-3__numbers .title,
html[dir="rtl"] .footer-3__numbers p,
html[dir="rtl"] .footer-3__link ul li,
html[dir="rtl"] .footer-3__link ul li a,
html[dir="rtl"] .footer-3__copyright p,
html[dir="rtl"] .footer-3__copyright-menu ul li a,
html[dir="rtl"] .breadcrumb__menu ul li {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] .banner-3__content-title {
    line-height: 1.38 !important;
}
html[dir="rtl"] .section__title {
    line-height: 1.42 !important;
}

/* Fix Bootstrap text-lg-start / text-xl-start in RTL */
html[dir="rtl"] .text-start {
    text-align: right !important;
}
html[dir="rtl"] .text-end {
    text-align: left !important;
}
@media (min-width: 992px) {
    html[dir="rtl"] .text-lg-start {
        text-align: right !important;
    }
    html[dir="rtl"] .text-lg-end {
        text-align: left !important;
    }
}
@media (min-width: 1200px) {
    html[dir="rtl"] .text-xl-start {
        text-align: right !important;
    }
    html[dir="rtl"] .text-xl-end {
        text-align: left !important;
    }
}

/* Header Top Bar Layout & Spacing (LTR & RTL) */
.header-3 .header__top::before {
    width: 35% !important;
}
.header-3 .header__top::after {
    left: 34.6% !important;
}
html[dir="rtl"] .header-3 .header__top::before {
    left: auto !important;
    right: 0 !important;
    width: 35% !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 3% 99%) !important;
}
html[dir="rtl"] .header-3 .header__top::after {
    left: auto !important;
    right: 34.6% !important;
    rotate: -23.75deg !important;
}
.header-3 .header__top-menu li a {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    font-size: 14.5px !important;
    gap: 8px !important;
}
.header-3 .header__top-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
}
.header-3 .header__top-email {
    padding-right: 22px !important;
    padding-left: 0 !important;
    margin-right: 22px !important;
    margin-left: 0 !important;
    position: relative;
    white-space: nowrap !important;
}
.header-3 .header__top-email a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}
.header-3 .header__top-socail {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    align-items: center;
    gap: 14px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}
.header-3 .header__top-socail li.title {
    white-space: nowrap !important;
    margin: 0 !important;
}
html[dir="rtl"] .header-3 .header__top-email {
    padding-right: 0 !important;
    padding-left: 22px !important;
    margin-right: 0 !important;
    margin-left: 22px !important;
}
html[dir="rtl"] .header-3 .header__top-email::before {
    right: auto !important;
    left: 0 !important;
}
html[dir="rtl"] .header-3 .header__top-socail {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Main Menu & Submenu Dash RTL Fix */
html[dir="rtl"] .main-menu ul li {
    margin-left: 26px;
    margin-right: 0;
}
html[dir="rtl"] .main-menu ul li .submenu {
    left: auto !important;
    right: 0 !important;
    text-align: right !important;
}
html[dir="rtl"] .main-menu ul li .submenu li a {
    text-align: right !important;
    padding-right: 30px !important;
    padding-left: 25px !important;
}
html[dir="rtl"] .main-menu ul li .submenu li a::before {
    left: auto !important;
    right: 25px !important;
}
html[dir="rtl"] .main-menu ul li .submenu li.active > a,
html[dir="rtl"] .main-menu ul li .submenu li:hover > a {
    padding-right: 43px !important;
    padding-left: 25px !important;
}

/* Breadcrumb Dot Separator in RTL */
html[dir="rtl"] .breadcrumb__menu ul li:after {
    right: auto !important;
    left: -13px !important;
}

/* Hero Banner (banner-3) RTL Fix - Prevents background circle from overlapping showcase card */
.banner-3__content::before {
    background: rgba(11, 30, 51, 0.78) !important;
}
html[dir="rtl"] .banner-3__content::before,
html[dir="rtl"] .banner-3__content::after {
    left: auto !important;
    right: -181px !important;
}
html[dir="rtl"] .banner-3__shape-1 {
    left: auto !important;
    right: -441px !important;
}
html[dir="rtl"] .banner-3__shape-2 {
    right: auto !important;
    left: -388px !important;
}
html[dir="rtl"] .banner-3__shape-3 {
    right: auto !important;
    left: -300px !important;
}

/* Skill Progress Bar Percentage in RTL */
html[dir="rtl"] .skill-one__progress .count-text {
    right: auto !important;
    left: 0 !important;
}
html[dir="rtl"] .pl-110 {
    padding-left: 0 !important;
    padding-right: 110px !important;
}
@media (max-width: 1199px) {
    html[dir="rtl"] .pl-110 {
        padding-right: 0 !important;
    }
}

/* Mission Video Section & Play Button Box (LTR & RTL) */
.mission__video {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.mission__video img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 16px;
}
.mission__video-bg {
    background-repeat: no-repeat !important;
    z-index: 1 !important;
    pointer-events: none;
}
html[dir="rtl"] .mission__video-bg {
    left: auto !important;
    right: -498px !important;
    transform: scaleX(-1);
}
.mission__video:after {
    background: linear-gradient(90.09deg, rgba(11, 30, 51, 0.82) 0.09%, rgba(21, 24, 27, 0) 99.93%) !important;
    z-index: 1;
    pointer-events: none;
}
html[dir="rtl"] .mission__video:after {
    background: linear-gradient(270deg, rgba(11, 30, 51, 0.82) 0.09%, rgba(21, 24, 27, 0) 99.93%) !important;
}
.mission__video .ovid-video-trigger {
    top: 50%;
    left: 183px;
    position: absolute;
    z-index: 5;
    display: block;
    transform: translate(0, -50%);
    text-decoration: none;
}
html[dir="rtl"] .mission__video .ovid-video-trigger {
    left: auto !important;
    right: 183px !important;
}
@media (max-width: 767px) {
    .mission__video .ovid-video-trigger,
    html[dir="rtl"] .mission__video .ovid-video-trigger {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }
}
.mission__video .ovid-video-trigger .icon {
    background: #ffffff !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.mission__video .ovid-video-trigger .icon svg path {
    fill: var(--rr-theme-primary) !important;
    transition: fill 0.3s ease;
}
.mission__video .ovid-video-trigger:hover .icon {
    background: var(--rr-theme-primary) !important;
    transform: scale(1.08);
}
.mission__video .ovid-video-trigger:hover .icon svg path {
    fill: #ffffff !important;
}

/* Interactive Services List & What We Do 3 RTL Fixes (Fixes "قطاعاتنا الهندسية المتكاملة" Clipping) */
html[dir="rtl"] .service__list-item .number {
    margin-right: 0 !important;
    margin-left: 35px !important;
}
html[dir="rtl"] .what-we-do-3__media {
    margin-left: 0 !important;
    margin-right: -315px !important;
    padding-right: 0 !important;
    padding-left: 15px !important;
}
@media (max-width: 991px) {
    html[dir="rtl"] .what-we-do-3__media {
        margin-right: 0 !important;
        padding-left: 0 !important;
    }
}
html[dir="rtl"] .what-we-do-3__content-box,
html[dir="rtl"] .pl-40,
html[dir="rtl"] .pl-45,
html[dir="rtl"] .pl-30 {
    padding-left: 0 !important;
    padding-right: 35px !important;
}
@media (max-width: 1199px) {
    html[dir="rtl"] .what-we-do-3__content-box,
    html[dir="rtl"] .pl-40,
    html[dir="rtl"] .pl-45,
    html[dir="rtl"] .pl-30 {
        padding-right: 0 !important;
    }
}
html[dir="rtl"] .what-we-do-3__list {
    padding-right: 0 !important;
    padding-left: 40px !important;
}
@media (max-width: 1199px) {
    html[dir="rtl"] .what-we-do-3__list {
        padding-left: 0 !important;
    }
}

/* Support & FAQ RTL Fixes */
html[dir="rtl"] .support__list-item .icon {
    margin-right: 0 !important;
    margin-left: 15px !important;
    transform: scaleX(-1);
}
html[dir="rtl"] .rr__faq .accordion-button {
    text-align: right !important;
    padding-right: 10px !important;
    padding-left: 50px !important;
}
html[dir="rtl"] .rr__faq .accordion-button::after {
    right: auto !important;
    left: 15px !important;
}

/* Testimonials RTL Fixes */
html[dir="rtl"] .clients-testimonial__wrapper {
    flex-direction: row;
    gap: 15px;
}
html[dir="rtl"] .clients-testimonial__author {
    margin-right: 0 !important;
    margin-left: 15px !important;
}
html[dir="rtl"] .clients-testimonial__shape {
    right: auto !important;
    left: -400px !important;
}

/* About Us Box RTL Fix */
html[dir="rtl"] .about-us__box {
    left: auto !important;
    right: -50px !important;
}
@media (max-width: 767px) {
    html[dir="rtl"] .about-us__box {
        right: 0 !important;
    }
}

/* Footer 3 RTL Fixes (Links Arrows, Moving Truck, Newsletter Input, Column Spacing) */
.footer-3__shape-1,
.footer-3__shape-2 {
    position: absolute !important;
    pointer-events: none;
    z-index: 0;
}
.footer-3__main-wrapper {
    padding-top: 55px !important;
    padding-bottom: 30px !important;
    position: relative;
    z-index: 2;
}
.ovid-footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}
.ovid-footer-contact-link:hover {
    color: var(--rr-theme-primary) !important;
}
body.dark-mode .ovid-footer-contact-link {
    color: #cbd5e1 !important;
}
body.dark-mode .ovid-footer-contact-link:hover {
    color: var(--ovid-cyan) !important;
}
.footer-3__social a {
    color: var(--rr-theme-primary) !important;
    border-color: rgba(30, 120, 180, 0.28) !important;
}
.footer-3__social a i {
    font-size: 16px;
    color: var(--rr-theme-primary);
    transition: color 0.25s ease;
}
.footer-3__social a:hover {
    background: var(--rr-theme-primary) !important;
    border-color: var(--rr-theme-primary) !important;
}
.footer-3__social a:hover i {
    color: #ffffff !important;
}
body.dark-mode .footer-3__social a i {
    color: #f8fafc;
}
html[dir="rtl"] .footer-3__widget.footer-3__widget-item-1 {
    margin-right: 0 !important;
}
html[dir="rtl"] .footer-3__widget.footer-3__widget-item-2 {
    padding-left: 0 !important;
    padding-right: 50px !important;
}
html[dir="rtl"] .footer-3__widget.footer-3__widget-item-3 {
    padding-right: 0 !important;
    padding-left: 20px !important;
}
html[dir="rtl"] .footer-3__widget.footer-3__widget-item-4 {
    margin-left: 0 !important;
}
@media (max-width: 991px) {
    html[dir="rtl"] .footer-3__widget.footer-3__widget-item-2,
    html[dir="rtl"] .footer-3__widget.footer-3__widget-item-3 {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* Footer Links Arrows in Arabic: before word (on the right) pointing left */
html[dir="rtl"] .footer-3__link ul li {
    padding-left: 0 !important;
    padding-right: 26px !important;
    text-align: right;
}
html[dir="rtl"] .footer-3__link ul li::before {
    left: auto !important;
    right: 0 !important;
    transform: translateY(-45%) scaleX(-1) !important;
}

/* Footer Moving Truck Animation Fix in Both LTR & RTL */
.footer-3__truck {
    right: auto !important;
    left: 0;
}

/* Footer Newsletter Subscribe Input (Always dir="ltr" for Email) */
.footer-3__widget-subscribe input[dir="ltr"] {
    direction: ltr !important;
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 78px !important;
}
html[dir="rtl"] .footer-3__widget-subscribe .rr-btn {
    right: 0 !important;
    left: auto !important;
}

/* Search Popup RTL */
html[dir="rtl"] .search__input input {
    padding-right: 0 !important;
    padding-left: 40px !important;
    text-align: right;
}
html[dir="rtl"] .search__input button {
    right: auto !important;
    left: 0 !important;
}

/* ==========================================================================
   4. Visible Form Input Borders (Light & Dark Modes)
   ========================================================================== */
.ovid-bordered-input,
.form-control,
#ovidContactPageForm input,
#ovidContactPageForm textarea,
#ovidContactPageForm select,
.footer-3__widget-subscribe input {
    border: 1.5px solid rgba(14, 69, 112, 0.32) !important;
    background-color: #ffffff;
    color: var(--rr-heading-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ovid-bordered-input:focus,
.form-control:focus,
#ovidContactPageForm input:focus,
#ovidContactPageForm textarea:focus,
#ovidContactPageForm select:focus,
.footer-3__widget-subscribe input:focus {
    border-color: var(--rr-theme-primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 120, 180, 0.18) !important;
    outline: none;
}

/* ==========================================================================
   5. Hero Showcase Card (Replaces Homepage Contact Form)
   ========================================================================== */
.ovid-hero-showcase {
    background: rgba(11, 30, 51, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(89, 165, 216, 0.38);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    position: relative;
    z-index: 12;
    overflow: hidden;
}
.ovid-hero-showcase::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(30, 120, 180, 0.45) 0%, transparent 70%);
    pointer-events: none;
}
.ovid-hero-showcase__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.ovid-hero-showcase__media img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.ovid-hero-showcase:hover .ovid-hero-showcase__media img {
    transform: scale(1.05);
}
.ovid-hero-showcase__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(11, 30, 51, 0.15) 0%, rgba(11, 30, 51, 0.65) 100%);
}
.ovid-hero-showcase__play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--rr-theme-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 0 10px rgba(30, 120, 180, 0.28);
    transition: all 0.3s ease;
}
.ovid-hero-showcase__play-btn:hover {
    transform: scale(1.12);
    background: #fff;
    color: var(--rr-theme-primary);
}
.ovid-hero-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 575px) {
    .ovid-hero-pillars-grid {
        grid-template-columns: 1fr;
    }
}
.ovid-hero-pillar-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}
.ovid-hero-pillar-pill i {
    color: var(--ovid-cyan);
    font-size: 18px;
    flex-shrink: 0;
}
.ovid-hero-pillar-pill:hover {
    background: var(--rr-theme-primary);
    border-color: var(--rr-theme-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. Live Search Results in Header Search Popup
   ========================================================================== */
.search__popup {
    height: auto !important;
    min-height: 45vh;
    max-height: 92vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 40px 50px 55px !important;
    background-color: rgba(7, 19, 32, 0.96) !important;
    border-bottom: 2px solid rgba(89, 165, 216, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-105%) !important;
    transition: transform 0.45s ease, opacity 0.35s ease, visibility 0.35s ease !important;
}
.search__popup.search-opened {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0%) !important;
}
.search__top {
    margin-bottom: 35px !important;
}
@media (max-width: 767px) {
    .search__popup {
        padding: 25px 20px 35px !important;
    }
}
.ovid-live-search-results {
    margin-top: 25px;
    max-height: 55vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 15px;
    padding: 4px;
}
.ovid-live-search-results:empty {
    display: none;
    margin-top: 0;
    padding: 0;
}
.ovid-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(16, 38, 63, 0.95);
    border: 1px solid rgba(89, 165, 216, 0.28);
    text-decoration: none;
    transition: all 0.25s ease;
}
.ovid-search-item:hover {
    background: rgba(30, 120, 180, 0.28);
    border-color: var(--rr-theme-primary);
    transform: translateY(-2px);
}
.ovid-search-item img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.ovid-search-item-info {
    flex: 1;
    min-width: 0;
}
.ovid-search-item-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--rr-theme-primary);
    color: #fff;
    margin-bottom: 4px;
}
.ovid-search-item-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ovid-search-item-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   7. Cards, Portfolio & Testimonials Refinements
   ========================================================================== */
.planning-execute__item {
    border-radius: 14px;
    transition: all 0.35s ease;
    border: 1px solid rgba(30, 120, 180, 0.12);
    text-decoration: none;
}
.planning-execute__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(14, 69, 112, 0.15);
    border-color: var(--rr-theme-primary);
}
.recent-works__item-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}
.clients-testimonial__author img {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--rr-theme-primary);
}
.blog-2__item {
    border-radius: 14px;
    overflow: hidden;
}
.blog-2__item-media img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
}

/* ==========================================================================
   8. Dark Mode (body.dark-mode)
   ========================================================================== */
body.dark-mode {
    background-color: var(--ovid-dark) !important;
    color: #e2e8f0 !important;
}
body.dark-mode .header__area.header-3,
body.dark-mode .header__main,
body.dark-mode #header-sticky.rr-sticky {
    background-color: #091829 !important;
    border-bottom: 1px solid rgba(89, 165, 216, 0.16);
}
body.dark-mode .main-menu-3 ul li a {
    color: #f1f5f9 !important;
}
body.dark-mode .main-menu-3 ul li .submenu {
    background-color: #0d2138 !important;
    border: 1px solid rgba(89, 165, 216, 0.2);
}
body.dark-mode .main-menu-3 ul li .submenu li a {
    color: #e2e8f0 !important;
}
body.dark-mode .ovid-tool-btn {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
body.dark-mode .section-bg-1,
body.dark-mode .section-bg-2,
body.dark-mode .section-bg-5,
body.dark-mode .support,
body.dark-mode .footer-3__area-common {
    background-color: var(--ovid-card-dark) !important;
}
body.dark-mode .planning-execute__item,
body.dark-mode .blog-2__item,
body.dark-mode .contact-us__info-item,
body.dark-mode .rr__faq .accordion-item,
body.dark-mode .rr__faq .accordion-button,
body.dark-mode .ovid-surface-card {
    background-color: #10263f !important;
    color: #f8fafc !important;
    border-color: rgba(89, 165, 216, 0.2) !important;
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .section__title,
body.dark-mode .planning-execute__item .title,
body.dark-mode .blog-2__item-title a,
body.dark-mode .footer-3__widget-title h4,
body.dark-mode .footer-3__numbers .title,
body.dark-mode .footer-3__social-wrapper .social-title {
    color: #f8fafc !important;
}
body.dark-mode p,
body.dark-mode li,
body.dark-mode .footer-3__link ul li a,
body.dark-mode .footer-3__content p,
body.dark-mode .footer-3__numbers p a,
body.dark-mode .footer-3__copyright p,
body.dark-mode .footer-3__copyright-menu ul li a,
body.dark-mode .skill-one__progress-title,
body.dark-mode .rr__faq .accordion-body p {
    color: #cbd5e1 !important;
}
body.dark-mode input:not(.search-input-field),
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .ovid-bordered-input,
body.dark-mode .form-control {
    background-color: #0b1c30 !important;
    color: #f8fafc !important;
    border: 1.5px solid rgba(89, 165, 216, 0.4) !important;
}
body.dark-mode .footer-3__social a {
    background-color: #132c47 !important;
    border-color: rgba(89, 165, 216, 0.25) !important;
}
body.dark-mode .footer-3__social a svg path {
    stroke: #f8fafc !important;
}
body.dark-mode .big-text__scroll {
    color: rgba(255, 255, 255, 0.04) !important;
}

/* ==========================================================================
   9. Project Information Card (service.blade.php - LTR & RTL, Light & Dark)
   ========================================================================== */
.ovid-project-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}
.ovid-project-info-item {
    display: grid;
    grid-template-columns: 128px 1fr;
    align-items: start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.ovid-project-info-item:first-child {
    padding-top: 4px;
}
.ovid-project-info-item:last-child {
    padding-bottom: 2px;
    border-bottom: none;
}
.ovid-project-info-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.ovid-project-info-label i {
    width: 18px;
    text-align: center;
    color: var(--rr-theme-primary);
    font-size: 15px;
    flex-shrink: 0;
}
.ovid-project-info-value {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--rr-heading-primary);
    text-align: start;
    word-break: break-word;
}
html[dir="rtl"] .ovid-project-info-value {
    text-align: right;
}
html[dir="ltr"] .ovid-project-info-value {
    text-align: left;
}
body.dark-mode .ovid-project-info-item {
    border-bottom-color: rgba(89, 165, 216, 0.18);
}
body.dark-mode .ovid-project-info-label {
    color: #94a3b8;
}
body.dark-mode .ovid-project-info-label i {
    color: var(--ovid-cyan);
}
body.dark-mode .ovid-project-info-value {
    color: #f8fafc;
}

/* ==========================================================================
   10. Image & Media Protection (Prevent Dragging / Saving Images)
   ========================================================================== */
img,
video {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}
