/**
 * Global Solutions Custom Styles
 * Compatible with Bootstrap 5 and Odoo-style classes
 */

:root {
    /* Global Solutions Brand Colors */
    --primary-color: #875A7B;
    --brand-purple: #A54A7B;
    --brand-dark-purple: #2C123D;
    --brand-light-purple: #d7b4d0;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Ensure scrolling works */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

html {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    position: relative;
}

/* ============================================
   FIX: White CTA buttons in dark mode (Sector pages)
   Some global dark-mode link styles can override text color, making it invisible on white buttons.
   ============================================ */
html[data-theme="dark"] .sector-cta .cta-button,
html[data-theme="dark"] .sector-cta .cta-button span,
html[data-theme="dark"] .sector-cta .cta-button i {
    color: #2C123D !important;
    -webkit-text-fill-color: #2C123D !important;
}

/* ============================================
   CLEAN NAVIGATION BAR - Built from Scratch
   ============================================ */

/* Top Utility Bar */
.header-utility-bar {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    color: #fff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-bar-left,
.utility-bar-right {
    display: flex;
    align-items: center;
}

.utility-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.utility-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.utility-link i {
    font-size: 0.9rem;
}

.utility-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.5rem;
    font-weight: 300;
}

.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .navbar {
    padding: 1rem 0;
}

.main-header .navbar-brand {
    padding: 0;
}

.main-header .navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.main-header .navbar-brand:hover img {
    transform: scale(1.05);
}

.main-header .navbar-nav {
    align-items: center;
}

.main-header .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.main-header .nav-link:hover {
    color: var(--brand-purple);
}

.main-header .dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    z-index: 1050;
    min-width: 200px;
    background: #fff;
    position: absolute;
}

.main-header .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.main-header .dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #555;
    transition: all 0.3s ease;
}

.main-header .dropdown-item:hover {
    background: rgba(165, 74, 123, 0.1);
    color: var(--brand-purple);
}

.main-header .dropdown-header {
    color: var(--brand-purple);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem 0.5rem;
}

.main-header .navbar-toggler {
    border: 1px solid #ddd;
    padding: 0.25rem 0.5rem;
}

.main-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(165, 74, 123, 0.25);
}

/* Mobile Offcanvas Sidebar - Polished UI/UX */
#mobileNavbar.offcanvas {
    width: 320px;
    max-width: 85vw;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileNavbar.offcanvas.show {
    transform: translateX(0);
}

#mobileNavbar .offcanvas-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mobileNavbar .offcanvas-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

#mobileNavbar .offcanvas-title {
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

#mobileNavbar .offcanvas-title img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

#mobileNavbar .offcanvas-title:hover img {
    transform: scale(1.05);
}

#mobileNavbar .btn-close {
    padding: 0.5rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    opacity: 1;
    filter: brightness(0) invert(1);
    cursor: pointer;
    pointer-events: auto;
    border: none;
    flex-shrink: 0;
}

#mobileNavbar .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#mobileNavbar .btn-close:active {
    transform: rotate(90deg) scale(0.95);
}

#mobileNavbar .btn-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

#mobileNavbar .offcanvas-body {
    padding: 0.5rem 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobileNavbar .navbar-nav {
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
}

#mobileNavbar .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

#mobileNavbar .nav-item:last-child:not(.nav-item-cta) {
    border-bottom: none;
}

#mobileNavbar .nav-item:not(.nav-item-cta)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

#mobileNavbar .nav-link {
    padding: 1.125rem 1.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    min-height: 52px;
}

#mobileNavbar .nav-link span {
    flex: 1;
    display: flex;
    align-items: center;
}

#mobileNavbar .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--brand-purple);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#mobileNavbar .nav-link:hover .nav-icon {
    transform: scale(1.15);
    color: var(--brand-purple);
}

#mobileNavbar .nav-link.active .nav-icon {
    color: var(--brand-purple);
    transform: scale(1.1);
}

#mobileNavbar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-purple), var(--brand-dark-purple));
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

#mobileNavbar .nav-link:hover::before,
#mobileNavbar .nav-link.active::before {
    transform: scaleY(1);
    transform-origin: top;
}

#mobileNavbar .nav-link:hover {
    background: linear-gradient(90deg, rgba(165, 74, 123, 0.08) 0%, rgba(165, 74, 123, 0.03) 100%);
    color: var(--brand-purple);
    padding-left: 1.75rem;
    transform: translateX(4px);
}

#mobileNavbar .nav-link.active {
    background: linear-gradient(90deg, rgba(165, 74, 123, 0.12) 0%, rgba(165, 74, 123, 0.05) 100%);
    color: var(--brand-purple);
    font-weight: 600;
}

#mobileNavbar .nav-link.dropdown-toggle::after {
    display: none;
}

#mobileNavbar .dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #999;
    margin-left: auto;
    flex-shrink: 0;
}

#mobileNavbar .nav-link.dropdown-toggle:hover .dropdown-arrow {
    color: var(--brand-purple);
}

#mobileNavbar .nav-link.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--brand-purple);
}

#mobileNavbar .nav-item-cta {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(165, 74, 123, 0.1);
}

#mobileNavbar .nav-link.btn-primary {
    margin: 0 1.5rem 1.25rem;
    text-align: center;
    justify-content: center;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(165, 74, 123, 0.3);
    position: relative;
    overflow: hidden;
    gap: 0.75rem;
    min-height: 52px;
}

#mobileNavbar .nav-link.btn-primary i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

#mobileNavbar .nav-link.btn-primary:hover i {
    transform: translateX(4px);
}

#mobileNavbar .nav-link.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#mobileNavbar .nav-link.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

#mobileNavbar .nav-link.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 74, 123, 0.4);
}

#mobileNavbar .nav-link.btn-primary:active {
    transform: translateY(0);
}

#mobileNavbar .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#mobileNavbar .dropdown-menu.show {
    max-height: 2000px !important;
    padding: 0.75rem 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

#mobileNavbar .dropdown-item {
    padding: 0.875rem 1.5rem 0.875rem 3.25rem;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
}

#mobileNavbar .dropdown-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--brand-purple);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#mobileNavbar .dropdown-item span {
    flex: 1;
}

#mobileNavbar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-purple);
    opacity: 0;
    transition: all 0.3s ease;
}

#mobileNavbar .dropdown-item:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

#mobileNavbar .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(165, 74, 123, 0.12) 0%, rgba(165, 74, 123, 0.06) 100%);
    color: var(--brand-purple);
    border-left-color: var(--brand-purple);
    padding-left: 3.5rem;
    font-weight: 500;
    transform: translateX(4px);
}

#mobileNavbar .dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.15);
    color: var(--brand-purple);
}

#mobileNavbar .dropdown-header {
    padding: 1.25rem 1.5rem 0.875rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-purple);
    margin-top: 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#mobileNavbar .dropdown-header::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple), var(--brand-dark-purple));
    border-radius: 2px;
    flex-shrink: 0;
}

#mobileNavbar .dropdown-header::after {
    content: '';
    position: absolute;
    left: 2.5rem;
    bottom: 0;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-purple) 0%, rgba(165, 74, 123, 0.3) 50%, transparent 100%);
}

#mobileNavbar .dropdown-divider {
    margin: 0.875rem 1.5rem;
    border-top: 1px solid rgba(165, 74, 123, 0.15);
    position: relative;
    height: 1px;
}

#mobileNavbar .dropdown-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--brand-purple);
    border-radius: 2px;
    opacity: 0.4;
}

/* Offcanvas backdrop - Enhanced */
.offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.offcanvas-backdrop.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
    /* Hide desktop navbar collapse on mobile */
    .main-header .navbar-collapse.d-none.d-lg-block {
        display: none !important;
    }
    
    /* Show mobile navbar toggler */
    .main-header .navbar-toggler.d-lg-none {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--brand-purple);
        border-radius: 8px;
        padding: 0.5rem;
        width: 44px;
        height: 44px;
    }
    
    .main-header .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 18, 61, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
    }
    
    /* Dark mode for hamburger icon - white color */
    html[data-theme="dark"] .main-header .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    html[data-theme="dark"] .main-header .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    /* Offcanvas adjustments for tablet */
    #mobileNavbar.offcanvas {
        width: 320px;
        max-width: 80vw;
    }
}

@media (max-width: 576px) {
    /* Offcanvas adjustments for mobile */
    #mobileNavbar.offcanvas {
        width: 100vw;
        max-width: 100vw;
    }
    
    #mobileNavbar .offcanvas-header {
        padding: 1.25rem 1rem;
    }
    
    #mobileNavbar .offcanvas-body {
        padding: 0.5rem 0;
    }
    
    #mobileNavbar .nav-link {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }
    
    #mobileNavbar .nav-link:hover {
        padding-left: 1.5rem;
    }
    
    #mobileNavbar .nav-icon {
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }
    
    #mobileNavbar .dropdown-item {
        padding: 0.75rem 1.25rem 0.75rem 2.75rem;
        font-size: 0.9rem;
        gap: 0.625rem;
    }
    
    #mobileNavbar .dropdown-item i {
        width: 18px;
        height: 18px;
        font-size: 0.8rem;
    }
    
    #mobileNavbar .dropdown-item::before {
        left: 2rem;
    }
    
    #mobileNavbar .dropdown-item:hover {
        padding-left: 3rem;
    }
    
    #mobileNavbar .dropdown-header {
        padding: 1rem 1.25rem 0.75rem 2rem;
    }
    
    #mobileNavbar .dropdown-header::before {
        height: 14px;
    }
    
    #mobileNavbar .nav-link.btn-primary {
        margin: 1rem 1.25rem;
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.hero-section h1 {
    color: #fff;
}

/* Hero Section - s_cover */
.s_cover {
    position: relative;
    overflow: visible !important;
    min-height: 70vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s_cover.parallax {
    position: relative;
    overflow: visible !important;
}

.s_cover.s_parallax_is_fixed {
    position: relative !important;
    overflow: visible !important;
}

/* Main container */
main#wrap {
    position: relative;
    overflow: visible;
    min-height: 0;
    padding-bottom: 2rem;
}

#wrapwrap {
    position: relative;
    overflow: visible;
    min-height: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Section spacing */
section {
    position: relative;
    overflow: visible;
    margin-bottom: 2rem;
}

section.s_embed_code,
section.s_title {
    padding: 3rem 0;
}

/* Ensure sections are visible */
section.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    visibility: visible !important;
}

/* Only apply animation if JS is enabled */
html.js-enabled section.animate-on-scroll:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
}

section.animate-on-scroll.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-body i {
    margin-bottom: 1rem;
}

/* Footer */
.o_footer {
    background: #fff;
    color: #333;
    margin-top: 4rem;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.o_footer a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.o_footer a:hover {
    color: var(--brand-purple);
}

.o_footer h5 {
    color: #333;
    margin-bottom: 1rem;
}

/* Footer Main Section - 5 Columns */
.footer-main-section {
    padding: 3.5rem 0;
    background: #fff;
    color: #333;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

html[dir="rtl"] .footer-main-section .row {
    direction: rtl;
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-main-section .row > [class*="col-"] {
    direction: rtl;
}

.footer-main-section a {
    color: #333;
}

.footer-main-section a:hover {
    color: var(--primary-color);
}

/* Footer Company Section */
.footer-company-section {
    text-align: left;
}

html[dir="rtl"] .footer-company-section {
    text-align: right;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-company-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact-info {
    margin-top: 1.5rem;
}

.footer-contact-label {
    color: var(--brand-purple);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

html[dir="rtl"] .footer-contact-label {
    text-align: right;
}

/* Footer Contact Wrapper - Float left in English, right in Arabic */
.footer-contact-wrapper {
    display: inline-block;
    text-align: left;
}

html[dir="rtl"] .footer-contact-wrapper {
    text-align: right;
    float: right;
}

html[dir="ltr"] .footer-contact-wrapper,
html:not([dir]) .footer-contact-wrapper {
    float: left;
}

/* Phone numbers always display with + on the left, regardless of language direction */
.footer-phone-numbers,
a[href^="tel:"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

html[dir="rtl"] .footer-phone-numbers,
html[dir="rtl"] a[href^="tel:"] {
    text-align: right;
}

.footer-phone-numbers a,
a[href^="tel:"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

html[dir="rtl"] .footer-phone-numbers a,
html[dir="rtl"] a[href^="tel:"] {
    text-align: right;
}

.footer-phone-numbers a,
.footer-emails a {
    color: #333;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

html[dir="rtl"] .footer-phone-numbers a,
html[dir="rtl"] .footer-emails a {
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer-phone-numbers a:hover,
.footer-emails a:hover {
    color: var(--brand-purple);
    padding-left: 5px;
}

html[dir="rtl"] .footer-phone-numbers a:hover,
html[dir="rtl"] .footer-emails a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Footer Links Sections */
.footer-links-section {
    text-align: left;
}

html[dir="rtl"] .footer-links-section {
    text-align: right;
}

.footer-links-title {
    color: var(--brand-purple);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links-list {
    padding: 0;
    margin: 0;
}

.footer-links-list li a {
    color: #666;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
}

html[dir="rtl"] .footer-links-list li a {
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer-links-list li a:hover {
    color: var(--brand-purple);
    padding-left: 5px;
}

html[dir="rtl"] .footer-links-list li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Footer Buttons Section */
.footer-buttons-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 90, 123, 0.4);
}

/* Footer Actions Section */
.footer-actions-section {
    text-align: left;
}

html[dir="rtl"] .footer-actions-section {
    text-align: right;
}

.footer-buttons-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    border: none;
    color: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.footer-action-btn,
.footer-action-btn strong,
.footer-action-btn * {
    color: #fff !important;
}

.footer-action-btn:hover {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 74, 123, 0.4);
    color: #fff !important;
}

.footer-action-btn:hover,
.footer-action-btn:hover strong,
.footer-action-btn:hover * {
    color: #fff !important;
}

.footer-location-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-location-title {
    color: var(--brand-purple);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-address {
    color: #666;
    font-size: 0.9rem;
}

.footer-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    width: 100%;
}

.footer-map-iframe {
    border: none;
    display: block;
    width: 100%;
    height: 200px;
}

.footer-map-link {
    margin-top: 0.5rem;
    text-align: center;
}

.footer-view-map-link {
    color: var(--brand-purple);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-view-map-link:hover {
    color: var(--brand-dark-purple);
    text-decoration: underline;
}

/* Footer Newsletter Section */
.footer-newsletter-section {
    text-align: left;
}

/* Helpdesk menu button: disable hover/active effects (keep a stable outline look) */
a.helpdesk-nav-btn {
    transition: none !important;
}

a.helpdesk-nav-btn:hover,
a.helpdesk-nav-btn:focus,
a.helpdesk-nav-btn:focus-visible,
a.helpdesk-nav-btn:active,
a.helpdesk-nav-btn.active {
    background-color: transparent !important;
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    box-shadow: none !important;
    transform: none !important;
}

a.helpdesk-nav-btn:hover *,
a.helpdesk-nav-btn:focus *,
a.helpdesk-nav-btn:focus-visible *,
a.helpdesk-nav-btn:active *,
a.helpdesk-nav-btn.active * {
    color: var(--bs-primary) !important;
}

html[dir="rtl"] .footer-newsletter-section {
    direction: rtl;
    text-align: right;
}

.footer-newsletter-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

html[dir="rtl"] .footer-newsletter-description {
    direction: rtl;
    text-align: right;
}

.footer-newsletter-form {
    margin-bottom: 1.5rem;
}

.footer-newsletter-input {
    border: 1px solid #ddd;
    border-radius: 0.5rem 0 0 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.footer-newsletter-input:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 0.2rem rgba(165, 74, 123, 0.25);
    outline: none;
}

.footer-newsletter-btn {
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1rem;
    border-left: none;
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    border: none;
    color: #fff !important;
}

/* RTL Support: When button is before input (Arabic) */
html[dir="rtl"] .footer-newsletter-input-group .footer-newsletter-btn {
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

html[dir="rtl"] .footer-newsletter-input-group .footer-newsletter-input {
    border-radius: 0 0.5rem 0.5rem 0;
    border-left: none;
}

.footer-newsletter-btn,
.footer-newsletter-btn i,
.footer-newsletter-btn * {
    color: #fff !important;
}

.footer-newsletter-btn:hover {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    color: #fff !important;
}

.footer-newsletter-btn:hover,
.footer-newsletter-btn:hover i,
.footer-newsletter-btn:hover * {
    color: #fff !important;
}

.footer-subscribe-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    border: none;
    color: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-subscribe-btn,
.footer-subscribe-btn strong,
.footer-subscribe-btn * {
    color: #fff !important;
}

.footer-subscribe-btn:hover {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 74, 123, 0.4);
    color: #fff !important;
}

.footer-subscribe-btn:hover,
.footer-subscribe-btn:hover strong,
.footer-subscribe-btn:hover * {
    color: #fff !important;
}

/* Footer Social Section */
.footer-social-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-social-title {
    color: var(--brand-purple);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--brand-purple);
    background: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social-icon-circle,
.footer-social-icon-circle i,
.footer-social-icon-circle * {
    color: #fff !important;
}

.footer-social-icon-circle:hover {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    border-color: var(--brand-purple);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(165, 74, 123, 0.3);
}

.footer-social-icon-circle:hover,
.footer-social-icon-circle:hover i,
.footer-social-icon-circle:hover * {
    color: #fff !important;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background: var(--brand-dark-purple);
    color: #fff;
    padding: 1.25rem 0;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

html[dir="rtl"] .footer-bottom-bar .row {
    direction: rtl;
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-bottom-bar .row > [class*="col-"] {
    direction: rtl;
}

html[dir="rtl"] .footer-bottom-bar .text-md-end {
    text-align: left !important;
}

html[dir="rtl"] .footer-bottom-bar .col-md-6:first-child {
    order: 2;
}

html[dir="rtl"] .footer-bottom-bar .col-md-6:last-child {
    order: 1;
    text-align: right !important;
}

/* Ensure footer bottom bar is truly the last element */
.footer-bottom-bar:after,
.footer-bottom-bar::after {
    display: none !important;
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure footer is the last element with no space after */
footer#bottom {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer#bottom .oe_structure {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any space from scroll to top wrapper */
#o_footer_scrolltop_wrapper {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
    line-height: 0;
}

/* Ensure no space after footer - final cleanup */
footer#bottom:after,
footer#bottom::after,
.o_footer:after,
.o_footer::after {
    display: none !important;
    content: none !important;
}

/* Remove any default browser spacing */
body > footer:last-child {
    margin-bottom: 0 !important;
}

html > body > footer:last-child {
    margin-bottom: 0 !important;
}

/* Ensure wrapwrap closing div has no space */
#wrapwrap {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#wrapwrap:after,
#wrapwrap::after {
    display: none !important;
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove all space after footer and closing divs */
footer#bottom + *,
#wrapwrap > footer:last-child + *,
body > div:last-child:after {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* Social sidebar is fixed, shouldn't add space */
.social-sidebar {
    position: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Final cleanup - remove any white space at the very bottom */
body:after,
body::after,
html:after,
html::after {
    display: none !important;
    content: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Ensure scripts and other elements don't add space */
body > script:last-child,
body > style:last-child {
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}

.footer-bottom-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-bar a:hover {
    color: var(--brand-light-purple);
}

.footer-copyright {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    padding: 0;
    margin: 0;
    text-align: right;
}

html[dir="rtl"] .footer-bottom-links {
    text-align: left;
}

.footer-bottom-links li {
    margin: 0 0.5rem;
}

/* Footer Language Toggle Button */
.footer-language-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
}

.footer-language-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.footer-language-toggle-btn:active {
    transform: translateY(0);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

html[data-theme="dark"] .footer-language-toggle-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .footer-language-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.footer-bottom-links a {
    color: #fff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--brand-light-purple);
}

.footer-nav-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    border: none;
    color: #fff !important;
}

.btn-primary,
.btn-primary strong,
.btn-primary * {
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    border: none;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:hover strong,
.btn-primary:hover * {
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    border-color: var(--brand-purple);
    color: #fff;
}

/* Utilities */
.text-o-color-2 {
    color: var(--secondary-color);
}

.text-o-color-5 {
    color: var(--brand-purple);
}

.bg-o-color-1 {
    background: linear-gradient(135deg, var(--brand-light-purple), var(--brand-purple)) !important;
    color: #fff !important;
}

.pt16 {
    padding-top: 1rem;
}

.pb16 {
    padding-bottom: 1rem;
}

.pt4 {
    padding-top: 0.25rem;
}

.pb24 {
    padding-bottom: 1.5rem;
}

.pb0 {
    padding-bottom: 0;
}

.pt8 {
    padding-top: 0.5rem;
}

.pb8 {
    padding-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE STYLES - Mobile First Approach
   ============================================ */

/* Hero Section Responsive */
.hero-title-responsive {
    font-size: 2.5rem;
}

.hero-subtitle-responsive {
    font-size: 1.75rem;
}

.hero-lead-responsive {
    font-size: 1.25rem;
}

.btn-responsive {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
}

@media (max-width: 992px) {
    .hero-title-responsive {
        font-size: 2rem;
    }
    
    .hero-subtitle-responsive {
        font-size: 1.5rem;
    }
    
    .hero-lead-responsive {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .s_cover h1 {
        font-size: 1.75rem !important;
    }
    
    .s_cover .lead {
        font-size: 1rem !important;
    }
    
    .hero-title-responsive {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle-responsive {
        font-size: 1.25rem !important;
    }
    
    .hero-lead-responsive {
        font-size: 1rem !important;
    }
    
    .s_cover .display-4-fs {
        font-size: 1.5rem !important;
    }
    
    .s_cover .h3-fs {
        font-size: 1.1rem !important;
    }
    
    .o_full_screen_height {
        min-height: 60vh !important;
        max-height: 90vh !important;
        padding: 2rem 0 !important;
        overflow: visible !important;
    }
    
    .s_references .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .btn-responsive {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .s_cover h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-title-responsive {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle-responsive {
        font-size: 1.1rem !important;
    }
    
    .hero-lead-responsive {
        font-size: 0.95rem !important;
    }
    
    .s_cover .display-4-fs {
        font-size: 1.25rem !important;
    }
    
    .s_cover .h3-fs {
        font-size: 1rem !important;
    }
    
    .o_full_screen_height {
        min-height: 50vh !important;
        max-height: 85vh !important;
        padding: 1.5rem 0 !important;
        overflow: visible !important;
    }
    
    .btn-responsive {
        font-size: 0.85rem;
        padding: 0.35rem 1rem;
    }
}

/* About Cards Section - Styles are inline in index.php */

/* Shiny Text Responsive */
@media (max-width: 768px) {
    .shiny-text {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .shiny-text {
        font-size: 2rem !important;
    }
}

/* Counters Section Responsive */
@media (max-width: 768px) {
    .custom-counters-wrapper {
        padding: 30px 15px !important;
    }
    
    .custom-counters-wrapper .counter-box {
        flex: 1 1 calc(50% - 10px) !important;
        padding: 20px 12px !important;
    }
    
    .custom-counters-wrapper .number {
        font-size: 28px !important;
    }
    
    .custom-counters-wrapper .number span.symbol {
        font-size: 20px !important;
    }
    
    .custom-counters-wrapper .label {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .custom-counters-wrapper {
        padding: 25px 10px !important;
    }
    
    .custom-counters-wrapper .counter-box {
        flex: 1 1 100% !important;
        padding: 18px 10px !important;
        margin-bottom: 10px;
    }
    
    .custom-counters-wrapper .number {
        font-size: 24px !important;
    }
    
    .custom-counters-wrapper .number span.symbol {
        font-size: 18px !important;
    }
    
    .custom-counters-wrapper .label {
        font-size: 13px !important;
    }
}

/* Video Section Responsive */
@media (max-width: 992px) {
    .video-section-wrapper {
        flex-direction: column !important;
    }
    
    .video-section-wrapper > div:first-child {
        max-width: 100% !important;
        margin-bottom: 30px;
    }
    
    .video-section-wrapper > div:last-child {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .video-section-wrapper {
        padding: 30px 3% !important;
    }
    
    .video-section-wrapper > div:first-child p:first-child {
        font-size: 24px !important;
    }
    
    .video-section-wrapper > div:first-child h2 {
        font-size: 20px !important;
    }
    
    .video-section-wrapper > div:first-child p:last-of-type {
        font-size: 18px !important;
    }
    
    .video-section-wrapper > div:last-child > div {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .video-section-wrapper {
        padding: 20px 2% !important;
    }
    
    .video-section-wrapper > div:first-child {
        min-width: 100% !important;
    }
    
    .video-section-wrapper > div:first-child p:first-child {
        font-size: 20px !important;
    }
    
    .video-section-wrapper > div:first-child h2 {
        font-size: 18px !important;
    }
    
    .video-section-wrapper > div:first-child p:last-of-type {
        font-size: 16px !important;
    }
    
    .video-section-wrapper > div:last-child {
        min-width: 100% !important;
        padding: 20px !important;
    }
    
    .video-section-wrapper > div:last-child > div {
        height: 250px !important;
        max-width: 100% !important;
    }
    
    .button-hover {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* Partners Scrolling Section Responsive */
@media (max-width: 768px) {
    .scroll-content img {
        height: 60px !important;
    }
    
    .scroll-content {
        gap: 25px !important;
    }
}

@media (max-width: 576px) {
    .scroll-content img {
        height: 50px !important;
    }
    
    .scroll-content {
        gap: 20px !important;
    }
}

/* ============================================
   NAVIGATION RESPONSIVE STYLES
   ============================================ */

/* Utility Bar Responsive */
@media (max-width: 992px) {
    .header-utility-bar {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }
    
    .utility-link {
        padding: 0.2rem 0.4rem;
    }
    
    .utility-link span {
        display: none;
    }
    
    .utility-link i {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .header-utility-bar {
        display: none !important;
    }
}

/* Mega Menu Responsive */
@media (max-width: 1200px) {
    .o_mega_menu {
        min-width: 750px;
        max-width: 95vw;
    }
    
    .s_mega_menu_odoo_menu {
        padding: 2.5rem 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem;
    }
    
    .nav-cta-btn {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .o_mega_menu {
        min-width: 100%;
        max-width: 100%;
        border-radius: 0;
        margin-top: 0;
    }
    
    .s_mega_menu_odoo_menu {
        border-radius: 0;
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 991px) {
    /* Ensure mobile nav is always visible */
    .o_header_mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide desktop nav on mobile */
    .navbar.d-none.d-lg-block {
        display: none !important;
    }
    
    /* Ensure mobile menu button is visible */
    .mobile-menu-toggle,
    .navbar-toggler {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .o_header_mobile {
        padding: 0.5rem 0.75rem !important;
        margin: 0.5rem !important;
        border-radius: 12px !important;
    }
    
    .o_header_mobile .navbar-brand img {
        max-height: 38px !important;
    }
    
    .mobile-menu-toggle {
        width: 40px !important;
        height: 40px !important;
        padding: 0.5rem !important;
    }
    
    .mobile-contact-btn {
        font-size: 0.8rem !important;
        padding: 0.45rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .offcanvas.o_navbar_mobile {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .offcanvas-header {
        padding: 1.25rem 1rem !important;
    }
    
    .offcanvas-body {
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .offcanvas-body .navbar-nav,
    .offcanvas-body .mobile-menu-nav {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .offcanvas-body .nav-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .offcanvas-body .nav-link {
        padding: 1rem 1.25rem !important;
        font-size: 0.95rem !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .offcanvas-body .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .offcanvas-body .dropdown-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .o_header_mobile {
        padding: 0.5rem !important;
        margin: 0.25rem !important;
    }
    
    .o_header_mobile .navbar-brand img {
        max-height: 35px !important;
    }
    
    #o_main_nav_mobile {
        gap: 0.5rem !important;
    }
    
    .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
        padding: 0.4rem !important;
    }
    
    .mobile-contact-btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.85rem !important;
    }
}

@media (max-width: 400px) {
    .o_header_mobile .navbar-brand img {
        max-height: 32px !important;
    }
    
    .mobile-menu-toggle {
        width: 36px !important;
        height: 36px !important;
    }
    
    .mobile-contact-btn {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

@media (max-width: 992px) {
    .o_mega_menu {
        min-width: 100%;
        max-width: 100%;
        left: 0 !important;
        right: 0 !important;
    }
    
    .navbar-nav .btn-primary,
    .nav-cta-btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.8rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.9rem !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .o_header_standard {
        padding: 0.5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        max-height: 38px;
    }
}

/* Header & Navigation Responsive */
@media (max-width: 991px) {
    .o_mega_menu {
        min-width: 100%;
        max-width: 100%;
    }
    
    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
    }
    
    /* Force mobile nav visibility */
    .o_header_mobile {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure utility bar is hidden on mobile */
    .header-utility-bar {
        display: none !important;
    }
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-main-section {
        padding: 3rem 0;
    }
    
    .footer-logo-img {
        max-width: 120px;
    }
}

@media (max-width: 992px) {
    .footer-main-section {
        padding: 2.5rem 0;
    }
    
    .footer-company-section,
    .footer-links-section,
    .footer-actions-section,
    .footer-newsletter-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-links-list {
        text-align: center;
    }
    
    .footer-buttons-section {
        align-items: center;
    }
    
    .footer-action-btn {
        max-width: 300px;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .o_footer {
        padding-top: 2rem;
    }
    
    .footer-main-section {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-company-section,
    .footer-links-section,
    .footer-actions-section,
    .footer-newsletter-section {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    .footer-logo-img {
        max-width: 100px;
    }
    
    .footer-company-description {
        font-size: 0.9rem;
    }
    
    .footer-links-title {
        font-size: 1rem;
    }
    
    .footer-action-btn {
        max-width: 100%;
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    .footer-newsletter-input {
        font-size: 0.85rem;
    }
    
    .footer-subscribe-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    .footer-social-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-bottom-bar {
        padding: 1rem 0;
    }
    
    .footer-copyright {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom-links {
        text-align: center;
        justify-content: center;
    }
    
    /* Center contact info on mobile */
    .footer-contact-info {
        text-align: center !important;
    }
    
    .footer-contact-wrapper {
        display: block !important;
        text-align: center !important;
        float: none !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .footer-contact-label {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .footer-contact-label strong {
        text-align: center !important;
        display: block !important;
    }
    
    .footer-phone-numbers {
        text-align: center !important;
        direction: ltr !important;
        margin: 0 auto !important;
    }
    
    .footer-phone-numbers a {
        text-align: center !important;
        direction: ltr !important;
        display: block !important;
        margin: 0.5rem auto !important;
        width: fit-content !important;
    }
    
    .footer-emails {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .footer-emails a {
        text-align: center !important;
        display: block !important;
        margin: 0.5rem auto !important;
        width: fit-content !important;
    }
}

@media (max-width: 576px) {
    .o_footer {
        padding-top: 1.5rem;
    }
    
    .footer-main-section {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-logo-img {
        max-width: 90px;
    }
    
    .footer-company-description {
        font-size: 0.85rem;
    }
    
    .footer-contact-label {
        font-size: 0.85rem;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .footer-contact-label strong {
        text-align: center !important;
        display: block !important;
    }
    
    .footer-contact-info {
        text-align: center !important;
    }
    
    .footer-contact-wrapper {
        display: block !important;
        text-align: center !important;
        float: none !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .footer-phone-numbers {
        text-align: center !important;
        direction: ltr !important;
        margin: 0 auto !important;
    }
    
    .footer-phone-numbers a {
        text-align: center !important;
        direction: ltr !important;
        display: block !important;
        margin: 0.5rem auto !important;
        width: fit-content !important;
        font-size: 0.85rem;
    }
    
    .footer-emails {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .footer-emails a {
        text-align: center !important;
        display: block !important;
        margin: 0.5rem auto !important;
        width: fit-content !important;
        font-size: 0.85rem;
    }
    
    .footer-company-section {
        text-align: center !important;
    }
    
    .footer-links-title {
        font-size: 0.95rem;
    }
    
    .footer-links-list li a {
        font-size: 0.85rem;
    }
    
    .footer-action-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .footer-location-title {
        font-size: 0.9rem;
    }
    
    .footer-address {
        font-size: 0.85rem;
    }
    
    .footer-map-iframe {
        height: 150px !important;
    }
    
    .footer-newsletter-description {
        font-size: 0.85rem;
    }
    
    .footer-newsletter-input {
        font-size: 0.8rem;
        padding: 0.65rem 0.85rem;
    }
    
    .footer-newsletter-btn {
        padding: 0.65rem 0.85rem;
    }
    
    .footer-subscribe-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .footer-social-title {
        font-size: 0.85rem;
    }
    
    .footer-social-icon-circle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .footer-bottom-bar {
        padding: 0.75rem 0;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
    
    .footer-bottom-links li {
        margin: 0 0.25rem;
    }
}

/* Social Sidebar Responsive */
@media (max-width: 768px) {
    .social-sidebar {
        display: none; /* Hide on tablets and mobile */
    }
}

/* ============================================
   THEME & LANGUAGE TOGGLES
   ============================================ */

.theme-language-toggles {
    display: flex;
    align-items: center;
}

.theme-toggle-btn,
.language-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    min-width: 40px;
    height: 36px;
}

.theme-toggle-btn:hover,
.language-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.theme-toggle-btn i {
    font-size: 1.1rem;
}

.language-toggle-btn {
    font-weight: 600;
    min-width: 45px;
}

.mobile-toggles {
    display: flex;
    align-items: center;
}

.mobile-toggles .theme-toggle-btn,
.mobile-toggles .language-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #333;
    padding: 0.35rem 0.65rem;
    height: 38px;
}

.mobile-toggles .theme-toggle-btn:hover,
.mobile-toggles .language-toggle-btn:hover {
    background: #e9ecef;
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

html[data-theme="dark"],
html[data-theme="dark"] body {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background-color: #121212;
    color: #ffffff;
}

html[data-theme="dark"] .main-header {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .header-utility-bar {
    background: linear-gradient(135deg, #121212, #1e1e1e);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .navbar-brand,
html[data-theme="dark"] .nav-link {
    color: #ffffff;
}

html[data-theme="dark"] .nav-link:hover {
    color: var(--brand-purple);
}

html[data-theme="dark"] .dropdown-menu {
    background: #1e1e1e;
    border-color: #333333;
}

html[data-theme="dark"] .dropdown-item {
    color: #ffffff;
}

html[data-theme="dark"] .dropdown-item:hover {
    background: #2a2a2a;
    color: #ffffff;
}

html[data-theme="dark"] #mobileNavbar.offcanvas {
    background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
    color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] #mobileNavbar .offcanvas-header {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] #mobileNavbar .offcanvas-title img {
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] #mobileNavbar .btn-close {
    background: rgba(255, 255, 255, 0.15);
    filter: brightness(0) invert(1);
}

html[data-theme="dark"] #mobileNavbar .btn-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] #mobileNavbar .nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] #mobileNavbar .nav-link {
    color: #e0e0e0;
}

html[data-theme="dark"] #mobileNavbar .nav-link::before {
    background: linear-gradient(180deg, var(--brand-purple), var(--brand-dark-purple));
}

html[data-theme="dark"] #mobileNavbar .nav-link:hover {
    background: linear-gradient(90deg, rgba(165, 74, 123, 0.15) 0%, rgba(165, 74, 123, 0.08) 100%);
    color: #fff;
}

html[data-theme="dark"] #mobileNavbar .nav-link.active {
    background: linear-gradient(90deg, rgba(165, 74, 123, 0.2) 0%, rgba(165, 74, 123, 0.1) 100%);
    color: #fff;
}

html[data-theme="dark"] #mobileNavbar .nav-link.btn-primary {
    box-shadow: 0 4px 15px rgba(165, 74, 123, 0.4);
}

html[data-theme="dark"] #mobileNavbar .nav-link.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(165, 74, 123, 0.5);
}

html[data-theme="dark"] #mobileNavbar .dropdown-menu {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
}

html[data-theme="dark"] #mobileNavbar .nav-icon {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] #mobileNavbar .nav-link:hover .nav-icon,
html[data-theme="dark"] #mobileNavbar .nav-link.active .nav-icon {
    color: var(--brand-purple);
}

html[data-theme="dark"] #mobileNavbar .dropdown-arrow {
    color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] #mobileNavbar .nav-link.dropdown-toggle:hover .dropdown-arrow,
html[data-theme="dark"] #mobileNavbar .nav-link.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    color: var(--brand-purple);
}

html[data-theme="dark"] #mobileNavbar .dropdown-item {
    color: #d0d0d0;
    border-left-color: transparent;
}

html[data-theme="dark"] #mobileNavbar .dropdown-item i {
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] #mobileNavbar .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(165, 74, 123, 0.15) 0%, rgba(165, 74, 123, 0.08) 100%);
    color: #fff;
    border-left-color: var(--brand-purple);
}

html[data-theme="dark"] #mobileNavbar .dropdown-item:hover i {
    color: var(--brand-purple);
    opacity: 1;
}

html[data-theme="dark"] #mobileNavbar .nav-item-cta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] #mobileNavbar .dropdown-header {
    color: var(--brand-purple);
}

html[data-theme="dark"] #mobileNavbar .dropdown-header::after {
    background: linear-gradient(90deg, var(--brand-purple), transparent);
}

html[data-theme="dark"] #mobileNavbar .dropdown-divider {
    border-top-color: rgba(165, 74, 123, 0.3);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1);
}

html[data-theme="dark"] .section-divider {
    background: linear-gradient(90deg, transparent, rgba(165, 74, 123, 0.2), transparent);
}

html[data-theme="dark"] .card {
    background: #1e1e1e;
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] footer {
    background: #121212;
    color: #ffffff;
    border-top: 1px solid #333333;
}

html[data-theme="dark"] footer a {
    color: #ffffff;
}

html[data-theme="dark"] footer a:hover {
    color: var(--brand-purple);
}

/* Dark mode for footer contact info */
html[data-theme="dark"] .footer-phone-numbers a,
html[data-theme="dark"] .footer-emails a {
    color: #ffffff;
}

html[data-theme="dark"] .footer-phone-numbers a:hover,
html[data-theme="dark"] .footer-emails a:hover {
    color: var(--brand-purple);
}

html[data-theme="dark"] .footer-contact-label,
html[data-theme="dark"] .footer-company-description {
    color: #ffffff;
}

html[data-theme="dark"] .footer-links-title {
    color: #ffffff;
}

html[data-theme="dark"] .footer-links-list a {
    color: #e8e8e8;
}

html[data-theme="dark"] .footer-links-list a:hover {
    color: var(--brand-purple);
}

html[data-theme="dark"] .footer-newsletter-description {
    color: #e8e8e8;
}

html[data-theme="dark"] .footer-social-title {
    color: #ffffff;
}

html[data-theme="dark"] .footer-copyright {
    color: #ffffff;
}

html[data-theme="dark"] .footer-bottom-links a {
    color: #ffffff;
}

html[data-theme="dark"] .footer-bottom-links a:hover {
    color: var(--brand-purple);
}

html[data-theme="dark"] .theme-toggle-btn,
html[data-theme="dark"] .language-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

html[data-theme="dark"] .mobile-toggles .theme-toggle-btn,
html[data-theme="dark"] .mobile-toggles .language-toggle-btn {
    background: #1e1e1e;
    border-color: #333333;
    color: #ffffff;
}

html[data-theme="dark"] .mobile-toggles .theme-toggle-btn:hover,
html[data-theme="dark"] .mobile-toggles .language-toggle-btn:hover {
    background: #2a2a2a;
}

/* Dark mode for main content areas */
html[data-theme="dark"] main#wrap {
    background-color: #121212;
    color: #ffffff;
}

html[data-theme="dark"] .s_embed_code,
html[data-theme="dark"] .s_title,
html[data-theme="dark"] section {
    background-color: #121212;
    color: #ffffff;
}

/* Exception: Integration section cards must be dark, not section background */
html[data-theme="dark"] section:has(.integrations-swiper) {
    background-color: #121212 !important;
}

/* Exception: Partners carousel wrapper must stay white */
html[data-theme="dark"] .partners-carousel-wrapper {
    background: #ffffff !important;
}

html[data-theme="dark"] .shiny-text,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #ffffff;
}

html[data-theme="dark"] p {
    color: #e8e8e8;
}

/* Dark mode for about cards */
html[data-theme="dark"] .about-card {
    background: #1e1e1e;
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .about-card h2 {
    color: #ffffff;
}

html[data-theme="dark"] .about-card p {
    color: #e8e8e8;
}

/* Dark mode for sector cards */
html[data-theme="dark"] .sector-card {
    background: #1e1e1e;
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .sector-card h4 {
    color: #ffffff;
}

html[data-theme="dark"] .sector-card .sector-link {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

html[data-theme="dark"] .sector-card .sector-link:hover {
    background: var(--brand-purple);
    color: #fff;
}

/* Dark mode for service cards */
html[data-theme="dark"] .service-home-card {
    background: #1e1e1e;
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .service-home-card h4 {
    color: #ffffff;
}

html[data-theme="dark"] .service-home-card p {
    color: #e8e8e8;
}

html[data-theme="dark"] .service-home-link {
    color: var(--brand-purple);
}

html[data-theme="dark"] .service-home-link:hover {
    color: #fff;
    background: var(--brand-purple);
}

/* Dark mode for video section */
html[data-theme="dark"] .video-text-content p,
html[data-theme="dark"] .video-text-content h2 {
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .button-hover {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    color: #fff;
}

html[data-theme="dark"] .button-hover:hover {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
}

/* Dark mode for integration cards - Redesigned - Force Dark Background */
html[data-theme="dark"] .integration-card,
html[data-theme="dark"] .swiper-slide .integration-card,
html[data-theme="dark"] .swiper-wrapper .integration-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%) !important;
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .integration-card:hover {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%) !important;
    background-color: #1e1e1e !important;
    border-color: rgba(165, 74, 123, 0.5) !important;
    box-shadow: 0 15px 40px rgba(165, 74, 123, 0.3) !important;
}

html[data-theme="dark"] .integration-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .integration-description {
    color: #e8e8e8 !important;
}

html[data-theme="dark"] .integration-description strong {
    color: var(--brand-purple) !important;
}

html[data-theme="dark"] .integration-btn {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple)) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(165, 74, 123, 0.5) !important;
}

html[data-theme="dark"] .integration-btn:hover {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple)) !important;
    box-shadow: 0 8px 25px rgba(165, 74, 123, 0.7) !important;
}

html[data-theme="dark"] .integration-logo {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .integration-card:hover .integration-logo {
    box-shadow: 0 8px 25px rgba(165, 74, 123, 0.4) !important;
}

/* CRITICAL: Force integration cards dark in dark mode - Highest specificity override */
html[data-theme="dark"] .integrations-swiper .swiper-wrapper .swiper-slide .integration-card,
html[data-theme="dark"] .swiper.integrations-swiper .swiper-wrapper .swiper-slide .integration-card,
html[data-theme="dark"] section .integrations-swiper .swiper-slide .integration-card,
html[data-theme="dark"] .s_embed_code .integrations-swiper .integration-card,
html[data-theme="dark"] .s_embed_code.o_colored_level .integrations-swiper .integration-card,
html[data-theme="dark"] .swiper-wrapper .integration-card,
html[data-theme="dark"] .swiper-slide .integration-card,
html[data-theme="dark"] .integration-card,
html[data-theme="dark"] .integration-card-modern {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%) !important;
    background-color: #1e1e1e !important;
    background-image: none !important;
    border: 1px solid rgba(50, 50, 50, 0.9) !important;
    border-color: rgba(50, 50, 50, 0.9) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
    outline: none !important;
}

html[data-theme="dark"] .integrations-swiper .swiper-wrapper .swiper-slide .integration-card:hover,
html[data-theme="dark"] .swiper-wrapper .integration-card:hover,
html[data-theme="dark"] .swiper-slide .integration-card:hover,
html[data-theme="dark"] .integration-card:hover {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%) !important;
    background-color: #1e1e1e !important;
    background-image: none !important;
}

/* Dark mode for partners section */
html[data-theme="dark"] .partners-title,
html[data-theme="dark"] .partners-subtitle {
    color: #ffffff;
}

html[data-theme="dark"] .partners-subtitle .highlight {
    color: var(--brand-purple);
}

/* Partners carousel stays white in dark mode */
html[data-theme="dark"] .partners-carousel-wrapper {
    background: #ffffff !important;
}

html[data-theme="dark"] .scroll-content img {
    background: #ffffff !important;
}

html[data-theme="dark"] .scroll-content img:hover {
    background: #ffffff !important;
}

/* Dark mode for counters */
html[data-theme="dark"] .counter-box {
    background: #1e1e1e;
    border-color: #333333;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .counter-box .number {
    color: #ffffff;
}

html[data-theme="dark"] .counter-box .label {
    color: #e8e8e8;
}

/* Dark mode for buttons */
html[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    border-color: var(--brand-purple);
    color: #fff;
}

html[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
    border-color: var(--brand-dark-purple);
}

html[data-theme="dark"] .btn {
    color: #fff;
}

/* Dark mode for links */
html[data-theme="dark"] a {
    color: #ffffff;
}

html[data-theme="dark"] a:hover {
    color: var(--brand-purple);
}

/* Dark mode for utility bar links */
html[data-theme="dark"] .utility-link {
    color: #ffffff;
}

html[data-theme="dark"] .utility-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Dark mode for hero content */
html[data-theme="dark"] .hero-content-text h2,
html[data-theme="dark"] .hero-content-text p {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .hero-cta-btn {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple)) !important;
    color: #fff !important;
}

html[data-theme="dark"] .hero-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

/* Dark mode for view all links */
html[data-theme="dark"] .view-all-sectors a,
html[data-theme="dark"] .view-all-services a {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

html[data-theme="dark"] .view-all-sectors a:hover,
html[data-theme="dark"] .view-all-services a:hover {
    background: var(--brand-purple);
    color: #fff;
}

html[data-theme="dark"] .integrations-view-more {
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

html[data-theme="dark"] .integrations-view-more:hover {
    background: var(--brand-purple);
    color: #fff;
}

/* Dark mode for footer */
html[data-theme="dark"] .footer-main-section {
    background: #1a1a1a;
}

html[data-theme="dark"] .footer-bottom-bar {
    background: #151515;
    border-top-color: #404040;
}

html[data-theme="dark"] .footer-links-title,
html[data-theme="dark"] .footer-links-title strong {
    color: #fff;
}

html[data-theme="dark"] .footer-links-list a {
    color: #d0d0d0;
}

html[data-theme="dark"] .footer-links-list a:hover {
    color: var(--brand-purple);
}

html[data-theme="dark"] .footer-newsletter-input {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

html[data-theme="dark"] .footer-newsletter-input::placeholder {
    color: #999;
}

html[data-theme="dark"] .footer-action-btn {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-dark-purple));
    color: #fff;
}

html[data-theme="dark"] .footer-action-btn:hover {
    background: linear-gradient(135deg, var(--brand-dark-purple), var(--brand-purple));
}

/* Dark mode for swiper */
html[data-theme="dark"] .swiper-button-next,
html[data-theme="dark"] .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .swiper-pagination-bullet-active {
    background: var(--brand-purple);
}

/* ============================================
   RTL (RIGHT-TO-LEFT) SUPPORT
   ============================================ */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .navbar-nav {
    padding-right: 0;
    padding-left: initial;
}

html[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

html[dir="rtl"] .utility-bar-right {
    justify-content: flex-start !important;
}

html[dir="rtl"] .utility-bar-left {
    justify-content: flex-end !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

html[dir="rtl"] .float-start {
    float: right !important;
}

html[dir="rtl"] .float-end {
    float: left !important;
}

html[dir="rtl"] .offcanvas-start {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

html[dir="rtl"] .offcanvas-start.show {
    transform: translateX(0);
}

/* Hero carousel navigation buttons stay in same position regardless of language direction */
html[dir="rtl"] .hero-carousel-nav.prev {
    /* Keep on left side - same as LTR */
    left: 30px;
    right: auto;
}

html[dir="rtl"] .hero-carousel-nav.next {
    /* Keep on right side - same as LTR */
    right: 30px;
    left: auto;
}

/* Keep arrow directions the same in RTL mode - do not reverse */
html[dir="rtl"] .hero-carousel-nav.prev i {
    transform: none; /* Keep original direction */
}

html[dir="rtl"] .hero-carousel-nav.next i {
    transform: none; /* Keep original direction */
}

/* Floating buttons stay in same position regardless of language direction */
html[dir="rtl"] .floating-contact-btn {
    /* Keep on right side - same as LTR */
    right: 30px;
    left: auto;
}

html[dir="rtl"] .floating-share-btn {
    /* Keep on left side - same as LTR */
    left: 30px;
    right: auto;
}

/* Floating menus stay in same position regardless of language direction */
html[dir="rtl"] .floating-contact-menu {
    /* Keep on right side - same as LTR */
    right: 30px;
    left: auto;
}

html[dir="rtl"] .floating-share-menu {
    /* Keep on left side - same as LTR */
    left: 100px;
    right: auto;
    transform: translateX(-20px) scale(0.8);
}

/* ============================================
   Floating Contact / Share Buttons (Global)
   Moved from index.css so it works on all pages
   ============================================ */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A54A7B, #2C123D);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(165, 74, 123, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(165, 74, 123, 0.7);
}

.floating-contact-btn.active {
    background: #dc3545;
    transform: rotate(45deg) scale(1.1);
}

.floating-contact-menu {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9998;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.floating-contact-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-contact-menu-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    color: #2C123D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.floating-contact-menu-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-contact-menu-item.whatsapp {
    background: #25D366;
    color: #fff;
}

.floating-contact-menu-item.chatbot {
    background: linear-gradient(135deg, #2C123D, #A54A7B);
    color: #fff;
}

.floating-share-btn {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C123D, #A54A7B);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(44, 18, 61, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(44, 18, 61, 0.7);
}

.floating-share-btn.active {
    background: #A54A7B;
}

.floating-share-btn i {
    transition: transform 0.4s ease;
}

.floating-share-btn.active i {
    transform: rotate(180deg);
}

.floating-share-menu {
    position: fixed;
    left: 100px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9998;
    opacity: 0;
    transform: translateX(-20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.floating-share-menu.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.floating-share-menu-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #fff;
    color: #2C123D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}

.floating-share-menu-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-share-menu-item.facebook { background: #1877F2; color: #fff; }
.floating-share-menu-item.twitter { background: #1DA1F2; color: #fff; }
.floating-share-menu-item.linkedin { background: #0077B5; color: #fff; }
.floating-share-menu-item.whatsapp-share { background: #25D366; color: #fff; }
.floating-share-menu-item.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}
.floating-share-menu-item.copy-link { background: #6c757d; color: #fff; }

/* Copy notification (used by floating share) */
.copy-notification {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: linear-gradient(135deg, #2C123D, #A54A7B);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    animation: slideInLeft 0.3s ease;
}

.copy-notification.is-hiding {
    animation: slideOutLeft 0.3s ease;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

/* Chatbot Modal */
.chatbot-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.chatbot-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-modal-content {
    background-color: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    background: linear-gradient(135deg, #2C123D, #A54A7B);
    color: #fff;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 20px;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close:hover { transform: scale(1.2); }

.chatbot-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-message {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.chatbot-message.bot {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    align-self: flex-start;
}

.chatbot-message.user {
    background: linear-gradient(135deg, #A54A7B, #2C123D);
    color: #fff;
    align-self: flex-end;
}

.chatbot-input-area {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input:focus { border-color: #A54A7B; }

.chatbot-send {
    background: linear-gradient(135deg, #A54A7B, #2C123D);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(165, 74, 123, 0.5);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Chatbot dark mode */
html[data-theme="dark"] .chatbot-modal-content {
    background-color: #1e1e1e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
html[data-theme="dark"] .chatbot-body { color: #e8e8e8; }
html[data-theme="dark"] .chatbot-message.bot {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    color: #e8e8e8;
}
html[data-theme="dark"] .chatbot-input-area { border-top-color: rgba(255,255,255,0.12); }
html[data-theme="dark"] .chatbot-input {
    background: #121212;
    color: #ffffff;
    border-color: rgba(255,255,255,0.18);
}

/* Floating buttons responsive */
@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .floating-contact-menu {
        bottom: 80px;
        right: 20px;
    }
    .floating-contact-menu-item {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .floating-share-btn {
        left: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .floating-share-menu {
        left: 80px;
        bottom: 20px;
    }
    .floating-share-menu-item {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .chatbot-modal-content {
        width: 95%;
        max-height: 500px;
    }
}

/* ============================================
   Sector pages: Hero section with image (Global)
   Some sector pages use inline styles, others rely on this block.
   ============================================ */
.sector-hero-image {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.sector-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(44, 18, 61, 0.85) 0%, rgba(165, 74, 123, 0.9) 100%);
}

.sector-hero-image .sector-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

/* Section Padding Responsive */
@media (max-width: 768px) {
    .s_embed_code,
    .s_title {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .pt104 {
        padding-top: 3rem !important;
    }
    
    .pb128 {
        padding-bottom: 3rem !important;
    }
    
    .pt64 {
        padding-top: 2rem !important;
    }
}

@media (max-width: 576px) {
    .pt104 {
        padding-top: 2rem !important;
    }
    
    .pb128 {
        padding-bottom: 2rem !important;
    }
    
    .pt64 {
        padding-top: 1.5rem !important;
    }
    
    .pb48 {
        padding-bottom: 1.5rem !important;
    }
    
    .pt32 {
        padding-top: 1rem !important;
    }
}

/* Container Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Typography Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem !important;
    }
    
    .display-4-fs {
        font-size: 1.75rem !important;
    }
    
    .h1, h1 {
        font-size: 2rem !important;
    }
    
    .h2, h2 {
        font-size: 1.75rem !important;
    }
    
    .h3, h3 {
        font-size: 1.5rem !important;
    }
    
    .h4, h4 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 1.75rem !important;
    }
    
    .display-4-fs {
        font-size: 1.5rem !important;
    }
    
    .h1, h1 {
        font-size: 1.75rem !important;
    }
    
    .h2, h2 {
        font-size: 1.5rem !important;
    }
    
    .h3, h3 {
        font-size: 1.25rem !important;
    }
    
    .h4, h4 {
        font-size: 1.1rem !important;
    }
}

/* Swiper Customization */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loading States */
.o_menu_loading {
    opacity: 0.6;
}

/* Skip to Content */
.visually-hidden-focusable:focus {
    position: absolute;
    z-index: 9999;
    width: auto;
    height: auto;
    clip: auto;
    padding: 0.5rem 1rem;
}


