/* Table of Contents
1.  Variables & Global Styles
2.  Preloader
3.  Header & Navigation
4.  Buttons
5.  Titles & General Layout
6.  Banner / Hero Section
7.  Service Section
7.5. Service Modal
8.  About & Expertise Sections
8.5. Trusted Clients Section
8.6. Business Case / Project Section
9.  Sidebar / Off-canvas Menu
10. Footer Section
11. Progress Wrap (Back to Top)
12. RTL (ARABIC) STYLES
13. Language Switcher (Redesigned)
14. RESPONSIVE STYLES
*/

/* 1. VARIABLES & GLOBAL STYLES */
:root {
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-dark: #3f4040; 
    --color-darker: #3f4040;
    --color-dark-rgb: 63, 64, 64;
    --color-body-light: #aeb9c4;
    --color-body-dark: #5f646b; 
    --color-accent: #00b8a9; 
    --font-primary: 'Red Hat Display', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;
}

body { 
    background: var(--color-white); 
    color: var(--color-body-dark); 
    font-family: var(--font-secondary); 
    font-size: 16px; 
    line-height: 1.7; 
    -ms-overflow-style: none;
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none;
}

h1, h2, h3, h4, h5, h6 { color: var(--color-darker); font-family: var(--font-primary); font-weight: 700; }
a { text-decoration: none; color: var(--color-darker); transition: color 0.3s ease; }
a:hover { color: var(--color-accent); }
.bg_light { background-color: var(--color-light-gray) !important; }
.text-accent { color: var(--color-dark) !important; }
section[id], footer[id] { scroll-margin-top: 140px; }

.rts-section-gap { 
    padding-top: clamp(60px, 8vw, 120px);
    padding-bottom: clamp(60px, 8vw, 120px);
}
.rts-section-gapTop { 
    padding-top: clamp(60px, 8vw, 120px);
}

/* 2. PRELOADER */
.loader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; background-color: var(--color-white); opacity: 1; visibility: visible; transition: opacity 0.7s ease, visibility 0.7s ease; }
.loader { display: block; position: relative; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--color-accent); animation: spin 2s linear infinite; z-index: 1001; }
.loaded .loader-wrapper { opacity: 0; visibility: hidden; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* 3. HEADER & NAVIGATION */
.header--sticky { position: fixed; top: 0; left: 0; width: 100%; z-index: 999; transition: all .4s ease-in-out; }
.header-top-area {
    border-bottom: 1px solid #eee;
    background: var(--color-white);
    padding: 10px 0;
    max-height: 100px;
    transition: all .4s ease-in-out;
    overflow: hidden;
    font-size: clamp(12px, 1.2vw, 14px);
}
.top-left p, .top-right a { margin: 0; color: var(--color-body-dark); }
.top-left p { color: var(--color-accent); }
.top-left a { color: var(--color-darker); font-weight: 700; }
.top-right { gap: clamp(10px, 2vw, 25px); }
.info-item { display: flex; align-items: center; gap: 8px; }
.top-right i { color: var(--color-accent); }
.header-main { padding: 15px 0; transition: all .4s ease; background: var(--color-white); }
.navbar-brand .logo-dark { display: block; max-height: 95px; transition: max-height .4s ease-in-out; }

/* NEW CRITICAL FIX */
.header-right-wrapper {
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--color-darker) !important;
    font-family: var(--font-primary);
    font-weight: 600;
    margin: 0 clamp(10px, 1.2vw, 15px);
    padding: 5px 0 !important;
    position: relative;
    font-size: clamp(15px, 1.3vw, 16px);
}
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-right-actions { display: flex; align-items: center; gap: 15px; }
.menu-btn { background-color: #f1f1f1; color: var(--color-darker); border: none; width: 50px; height: 50px; border-radius: 8px; font-size: 20px; transition: all .3s ease; }
.menu-btn:hover { background: var(--color-darker); color: var(--color-white); }
.header--sticky.sticky { box-shadow: 0 5px 20px rgba(0,0,0,0.07); }
.header--sticky.sticky .header-top-area { 
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    border-color: transparent;
}
.header--sticky.sticky .header-main { padding: 5px 0; }
.header--sticky.sticky .navbar-brand .logo-dark { max-height: 70px; }

/* 4. BUTTONS */
.rts-btn {
    padding: 12px clamp(20px, 3vw, 35px);
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-primary);
    display: inline-block;
    transition: all .3s ease;
    text-align: center;
    font-size: clamp(14px, 1.4vw, 16px);
}
.rts-btn.btn-dark { background-color: var(--color-darker); color: var(--color-white); border: 2px solid var(--color-darker); }
.rts-btn.btn-dark:hover { background-color: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }
.rts-btn.btn-light { background-color: #f1f3f5; color: var(--color-darker); border: 2px solid #f1f3f5; font-weight: 600; }
.rts-btn.btn-light:hover { background-color: var(--color-darker); border-color: var(--color-darker); color: var(--color-white); }
.rts-btn.btn-accent { background-color: var(--color-accent); color: var(--color-white); border: 2px solid var(--color-accent); }
.rts-btn.btn-accent:hover { background-color: var(--color-darker); border-color: var(--color-darker); color: var(--color-white); }

/* 5. TITLES & GENERAL LAYOUT */
.title-style-one .title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--color-dark);
}
.text-gray { color: #8a9097 !important; }
.title .text-gray { font-weight: 400 !important; }

/* 6. BANNER / HERO SECTION */
.rts-banner-area {
    padding-top: clamp(140px, 15vw, 220px);
    padding-bottom: clamp(80px, 10vw, 120px);
    position: relative;
    display: flex;
    align-items: center;
}
.banner-inner-content .title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-darker);
    text-transform: uppercase;
}
.banner-inner-content .disc {
    max-width: 500px;
    margin-bottom: 35px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.8;
}
.banner-right-image { text-align: center; }
.banner-right-image img {
    max-width: 100%;
    height: auto;
}
.single-counter { flex: 1; }
.single-counter .counter-title { font-size: 42px; font-weight: 700; margin-bottom: 5px; }
.single-counter .counter-label { font-size: 12px; font-weight: 700; color: #888; letter-spacing: 1px; }

/* 7. SERVICE SECTION */
.service-card { background-color: var(--color-white); border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); transition: all 0.3s ease-in-out; text-align: center; overflow: hidden; height: 100%; display: flex; flex-direction: column; padding: 0; border: 1px solid #f0f0f0; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 184, 169, 0.2); }
.service-card .card-image-wrapper { position: relative; padding-bottom: 35px; }
.service-card .card-image-wrapper .card-image { width: 100%; aspect-ratio: 4 / 3;object-fit: cover; display: block; filter: grayscale(100%); transition: filter 0.4s ease-in-out; }
.service-card:hover .card-image-wrapper .card-image { filter: grayscale(0); }
.service-card .card-icon { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 70px; background-color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 15px rgba(0,0,0,0.1); border: 1px solid #eee; }
.service-card .card-icon img { height: 35px; }
.service-card .card-content { padding: 20px 25px 30px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card .card-content .card-title { font-size: 22px; font-weight: 700; margin-bottom: 25px; color: var(--color-darker); }
.service-card .card-content .rts-btn { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; margin-top: auto; }
.service-card:hover .card-content .rts-btn { opacity: 1; visibility: visible; transform: translateY(0); }

/* 7.5. SERVICE MODAL */
#serviceModal .modal-dialog { max-width: 550px; }
#serviceModal .modal-content { background-color: var(--color-white); border: none; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); text-align: center; position: relative; }
#serviceModal .btn-close { position: absolute; top: 15px; right: 15px; z-index: 10; width: 32px; height: 32px; border-radius: 8px; background-color: #f1f3f5; opacity: 1; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233f4040'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e"); transition: all 0.3s ease; }
#serviceModal .btn-close:hover { background-color: var(--color-dark); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e"); }
#serviceModal .btn-close:focus { box-shadow: 0 0 0 0.25rem rgba(0, 184, 169, 0.5); }
#serviceModal .modal-body { padding: 40px 30px; display: flex; flex-direction: column; max-height: 75vh; }
.modal-icon-wrapper { width: 80px; height: 80px; margin: 0 auto 20px auto; border-radius: 50%; border: 2px solid var(--color-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-icon-wrapper img { height: 40px; width: auto; display: none; }
.modal-icon-wrapper i { font-size: 38px; color: var(--color-accent); display: none; }
#serviceModal .modal-title { font-size: 28px; font-family: var(--font-primary); font-weight: 700; color: var(--color-darker); margin-bottom: 15px; flex-shrink: 0; }
#serviceModal .modal-details { color: var(--color-body-dark); font-size: 15px; line-height: 1.7; margin-bottom: 30px; overflow-y: auto; text-align: left; padding-right: 15px; white-space: normal; }
#serviceModal .modal-details ul,
#serviceModal .modal-details ol { padding-left: 25px; margin-top: 10px; margin-bottom: 20px; }
#serviceModal .modal-details li { margin-bottom: 8px; }
#serviceModal .modal-details strong { display: block; margin-top: 20px; font-family: var(--font-primary); color: var(--color-darker); }
#serviceModal .modal-details::-webkit-scrollbar { width: 6px; }
#serviceModal .modal-details::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
#serviceModal .modal-details::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
#serviceModal .modal-details::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* 8. ABOUT & EXPERTISE SECTIONS */
.section-intro-text { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 17px; color: var(--color-body-dark); }
.vision-mission-wrapper { text-align: left; }
.vision-mission-box { padding: 25px; border-left: 4px solid var(--color-accent); background-color: var(--color-white); height: 100%; border-radius: 0 8px 8px 0; }
.vision-mission-box .box-header { display: flex; align-items: center; margin-bottom: 15px; }
.vision-mission-box .box-icon { font-size: 24px; color: var(--color-accent); margin-right: 15px; line-height: 1; }
.vision-mission-box h4 { margin-bottom: 0; font-family: var(--font-primary); font-weight: 700; font-size: 22px; color: var(--color-darker); }
#about .counter-up-wrapper { display: flex; gap: 20px; justify-content: center; }
#about .single-counter { text-align: center; }
#about .single-counter .counter-title { color: var(--color-accent); font-size: 52px; font-weight: 900; }
#about .single-counter .counter-label { font-size: 13px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.about-cta-area p { font-size: 18px; font-family: var(--font-primary); font-weight: 500; color: var(--color-darker); }
.our-expertise-area .title-style-one .title { font-size: clamp(30px, 3.5vw, 42px); }
.expertise-item { display: flex; align-items: center; gap: 20px; }
.progress-circle { flex-shrink: 0; }
.radial-progress { width: 100px; height: 100px; transform: rotate(-90deg); }
.radial-progress .bar-static { fill: none; stroke: #eee; stroke-width: 6; }
.radial-progress .bar--animated { fill: none; stroke: var(--color-accent); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
.radial-progress .countervalue { font-family: var(--font-primary); font-size: 18px; font-weight: 700; fill: var(--color-darker); transform: rotate(90deg); }
.expertise-item .item-title { font-size: 20px; margin-bottom: 5px; }
.expertise-item .item-disc { font-size: 15px; margin: 0; color: var(--color-body-dark); }

/* 8.5. TRUSTED CLIENTS SECTION */
.client-logo-circle {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.client-logo-circle:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--color-accent); }
.client-logo-circle img { max-width: 90%; max-height: 60%; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: all 0.3s ease; }
.client-logo-circle:hover img { filter: grayscale(0); opacity: 1; }
.client-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; height: auto; }
.client-swiper .swiper-wrapper { align-items: center; }
.client-swiper { padding-top: 10px; padding-bottom: 10px; }

/* 8.6. BUSINESS CASE / PROJECT SECTION */
.swiper-nav-wrapper { display: flex; justify-content: flex-end; }
.swiper-nav-buttons { display: flex; gap: 10px; }
.swiper-nav-buttons button { width: 45px; height: 45px; background-color: #f1f3f5; border: 1px solid #e0e0e0; border-radius: 5px; color: var(--color-darker); font-size: 16px; cursor: pointer; transition: all 0.3s ease; }
.swiper-nav-buttons button:hover { background-color: var(--color-darker); color: var(--color-white); }
.case-study-card { border-radius: 15px; overflow: hidden; position: relative; display: block; }
.case-study-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.4s ease, filter 0.4s ease;
}
.case-study-card:hover img { transform: scale(1.05); filter: grayscale(0); }
.case-study-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(var(--color-dark-rgb), 0.85) 0%, rgba(var(--color-dark-rgb), 0.1) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; text-align: left; opacity: 0; transition: opacity 0.4s ease; }
.case-study-card:hover .case-study-overlay { opacity: 1; }
.case-study-overlay .category { display: inline-block; background-color: var(--color-accent); color: var(--color-white); padding: 3px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; transform: translateY(20px); transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0; }
.case-study-overlay .title { color: var(--color-white); font-size: 24px; margin-bottom: 15px; transform: translateY(20px); transition: transform 0.4s 0.1s ease, opacity 0.4s 0.1s ease; opacity: 0; }
.case-study-overlay .read-more-btn { width: 50px; height: 50px; background-color: var(--color-white); color: var(--color-darker); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transform: translateY(20px); transition: transform 0.4s 0.2s ease, opacity 0.4s 0.2s ease, background-color 0.3s ease, color 0.3s ease; opacity: 0; }
.case-study-card:hover .category, .case-study-card:hover .title, .case-study-card:hover .read-more-btn { transform: translateY(0); opacity: 1; }
.read-more-btn:hover { background-color: var(--color-accent); color: var(--color-white); }

/* 9. SIDEBAR / OFF-CANVAS MENU */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; opacity: 0; visibility: hidden; transition: all .5s ease; }
.sidebar-overlay.show { opacity: 1; visibility: visible; }
.side-bar { position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background: #fff; z-index: 10001; padding: 40px; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.side-bar.show { right: 0; }
.side-bar .close-icon-menu { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 24px; color: var(--color-darker); }
.side-bar .logo-sidebar img { max-height: 45px; }
.sidebar-nav { list-style: none; padding: 0; margin: 30px 0 0; }
.sidebar-nav .nav-item { border-bottom: 1px solid #eee; }
.sidebar-nav .nav-link { display: block; padding: 15px 0 !important; font-size: 18px; font-weight: 600; }
.sidebar-nav .nav-link:hover { color: var(--color-accent); }
.lang-switcher-mobile {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    background-color: #f1f3f5;
    border-radius: 30px;
    padding: 5px;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
}
.lang-switcher-mobile button {
    flex-grow: 1;
    background: transparent;
    border: none;
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-darker);
}
.lang-switcher-mobile button.active {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 184, 169, 0.4);
}
.side-bar .sidebar-desc { margin-bottom: 30px; font-size: 15px; }
.side-bar .get-in-touch .title { color: var(--color-darker); font-size: 18px; margin-bottom: 20px; font-weight: 700; }
.side-bar .get-in-touch .single { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.side-bar .get-in-touch .single i { color: var(--color-accent); font-size: 18px; }
.social-wrapper-two { margin-top: 30px; display: flex; gap: 10px; }
.social-wrapper-two a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #f1f3f5; color: var(--color-darker); border-radius: 50%; }
.social-wrapper-two a:hover { background: var(--color-accent); color: var(--color-white); }
/* 10. FOOTER SECTION */
.site-footer { background-color: var(--color-dark); color: var(--color-body-light); font-size: 15px; }
.site-footer .footer-logo img { max-height: 75px; }
.site-footer .footer-description { line-height: 1.8; }
.site-footer .footer-widget-title { color: #ffffff; font-size: 20px; font-weight: 600; margin-bottom: 30px; position: relative; padding-bottom: 10px; }
.site-footer .footer-widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background-color: #ffffff; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); color: #ffffff; border-radius: 5px; margin-right: 10px; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; }
.social-icons a:hover { background-color: #ffffff; color: var(--color-darker); }
.footer-links { list-style: none; padding-left: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { 
    color: var(--color-body-light); 
    text-decoration: none; 
    transition: color 0.3s ease, padding-left 0.3s ease; 
    display: flex;
    align-items: center;
}
.footer-links a:hover { color: #ffffff; }
.footer-links a i { font-size: 12px; margin-right: 10px; }
.footer-contact-info { list-style: none; padding-left: 0; }
.footer-contact-info li { display: flex; align-items: flex-start; margin-bottom: 25px; }
.footer-contact-info .icon-box { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background-color: rgba(255, 255, 255, 0.1); color: #ffffff; border-radius: 5px; margin-right: 15px; font-size: 18px; }
.footer-contact-info .info-text { line-height: 1.4; }
.footer-contact-info .info-title { display: block; font-weight: 600; color: #ffffff; margin-bottom: 5px; }
.site-footer .footer-contact-info a, .site-footer .footer-contact-info span { color: var(--color-body-light); text-decoration: none; }
.site-footer .footer-contact-info a:hover { color: #ffffff; }
.copyright-bar { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; font-size: 14px; }
.copyright-links a { color: var(--color-body-light); text-decoration: none; margin-left: 20px; transition: color 0.3s ease; }
.copyright-links a:hover { color: #ffffff; }

/* 11. PROGRESS WRAP (BACK TO TOP) */
.progress-wrap { position: fixed; right: 50px; bottom: 50px; height: 46px; width: 46px; cursor: pointer; display: block; border-radius: 50px; z-index: 10000; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 200ms linear; background-color: var(--color-darker); box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.progress-wrap.active-progress { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-wrap::after { 
    position: absolute; 
    font-family: 'Font Awesome 7 Free'; 
    content: '\f106'; 
    font-weight: 900; 
    text-align: center; 
    line-height: 46px; 
    font-size: 16px; 
    color: var(--color-white); 
    left: 0; top: 0; 
    height: 46px; 
    width: 46px; 
    cursor: pointer; 
    display: block; 
    z-index: 1; 
    transition: all 200ms linear; 
}
.progress-wrap svg { position: absolute; top: 0; left: 0; }
.progress-wrap svg path { fill: none; stroke: var(--color-accent); stroke-width: 2; box-sizing: border-box; transition: all 200ms linear; }

/* MAP MODAL */
#mapModal .modal-body { padding: 0; overflow: hidden; }
#mapModal .map-responsive iframe { width: 100%; height: 50vh; min-height: 400px; display: block; }

/* 12. RTL (ARABIC) STYLES */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');
html[dir="rtl"] body,
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"] .rts-btn, html[dir="rtl"] .nav-link { font-family: 'Cairo', sans-serif !important; }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .header-main .row { flex-direction: row-reverse; }
html[dir="rtl"] .d-flex.justify-content-end { justify-content: flex-start !important; }
html[dir="rtl"] .ms-lg-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
html[dir="rtl"] .text-lg-start { text-align: right !important; }
html[dir="rtl"] .justify-content-lg-end { justify-content: flex-start !important; }
html[dir="rtl"] .top-right { flex-direction: row-reverse; }
html[dir="rtl"] .info-item { flex-direction: row-reverse; }
html[dir="rtl"] .info-item i { margin-left: 8px; margin-right: 0; }
html[dir="rtl"] .top-left p a i { transform: scaleX(-1); }
html[dir="rtl"] .side-bar { right: auto; left: -400px; transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1); }
html[dir="rtl"] .side-bar.show { right: auto; left: 0; }
html[dir="rtl"] .side-bar .close-icon-menu { right: auto; left: 20px; }
html[dir="rtl"] .side-bar .close-icon-menu i { transform: scaleX(-1); }
html[dir="rtl"] .side-bar .get-in-touch .single { flex-direction: row-reverse; justify-content: flex-start; }
html[dir="rtl"] .side-bar .get-in-touch .single i { margin-right: 0; margin-left: 15px; }
html[dir="rtl"] .side-bar .social-wrapper-two { flex-direction: row-reverse; }
html[dir="rtl"] .vision-mission-wrapper { text-align: right; }
html[dir="rtl"] .vision-mission-box { border-left: none; border-right: 4px solid var(--color-accent); border-radius: 8px 0 0 8px; }
html[dir="rtl"] .vision-mission-box .box-icon { margin-right: 0; margin-left: 15px; }
html[dir="rtl"] .swiper-nav-wrapper { justify-content: flex-start; }
html[dir="rtl"] .swiper-nav-buttons button i { transform: scaleX(-1); }
html[dir="rtl"] .case-study-overlay { text-align: right; }
html[dir="rtl"] .case-study-overlay .read-more-btn i { transform: scaleX(-1); }
html[dir="rtl"] .site-footer .container > .row { flex-direction: row-reverse; }
html[dir="rtl"] .footer-quick-links .row { flex-direction: row; }
html[dir="rtl"] .site-footer .social-icons { text-align: right; }
html[dir="rtl"] .site-footer .social-icons a { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .site-footer .footer-widget-title::after { left: auto; right: 0; }
html[dir="rtl"] .footer-links a { flex-direction: row; padding-left: 0; }
html[dir="rtl"] .footer-links a:hover { padding-right: 5px; }
html[dir="rtl"] .footer-links a i { transform: scaleX(-1); margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .footer-contact-info .info-text { text-align: right; }
html[dir="rtl"] .footer-contact-info .icon-box { margin-right: 0; margin-left: 15px; }
html[dir="rtl"] .copyright-links a { margin-left: 0; margin-right: 20px; }
html[dir="rtl"] .copyright-bar > .container { flex-direction: row-reverse; }
html[dir="rtl"] #serviceModal .modal-details { text-align: right; padding-left: 15px; padding-right: 0; }
html[dir="rtl"] #serviceModal .btn-close { right: auto; left: 15px; }

/* 13. LANGUAGE SWITCHER (Redesigned) */
.lang-switcher { display: flex; align-items: center; background-color: #f1f3f5; border-radius: 30px; padding: 3px; margin-left: 15px; }
.lang-switcher button {
    background: transparent;
    border: none;
    border-radius: 30px;
    padding: 2px clamp(10px, 1.2vw, 14px);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-darker);
    line-height: 1.5;
}
.lang-switcher button.active { background-color: var(--color-accent); color: var(--color-white); box-shadow: 0 2px 8px rgba(0, 184, 169, 0.4); }
html[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: 15px; }

/* 14. RESPONSIVE STYLES */
@media (max-width: 991.98px) {
    section[id], footer[id] { scroll-margin-top: 80px; }
    .section-intro-text { font-size: 16px; }
    .rts-banner-area { text-align: center; }
    .banner-right-image { display: none; }
    .banner-inner-content .disc { margin-left: auto; margin-right: auto; }
    .banner-inner-content br { display: none; }
    /* MODIFIED: The initial mobile logo size is now handled in the 767px breakpoint */
    .navbar-brand .logo-dark { max-height: 80px; }
    .header--sticky.sticky .navbar-brand .logo-dark { max-height: 60px; }
    #about .counter-up-wrapper { flex-direction: column; }
    .site-footer .text-lg-start { text-align: center !important; }
    .site-footer .footer-widget-title { text-align: center; }
    .site-footer .footer-widget-title::after { left: 50%; transform: translateX(-50%); }
    html[dir="rtl"] .site-footer .footer-widget-title::after { right: 50%; transform: translateX(50%); }
    .footer-contact-info li { justify-content: center; }
}

@media (max-width: 767px) {
    .expertise-item { flex-direction: column; text-align: center; }
    .progress-wrap { right: 20px; bottom: 20px; }
    .client-logo-circle { max-width: 120px; }
    .side-bar { width: 300px; padding: 30px; }
    html[dir="rtl"] .side-bar { right: auto; left: -300px; }
    .footer-links { text-align: center; }
    html[dir="rtl"] .footer-links a { justify-content: center; }
    .copyright-bar .container { flex-direction: column; text-align: center; }
    .copyright-bar p { margin-bottom: 10px; }
    .copyright-links a { margin: 0 10px; }
    
    /* NEW FIX: Ensure the logo is smaller on mobile devices */
    .navbar-brand .logo-dark {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .rts-btn { padding: 10px 25px; }
    .top-right { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .lang-switcher { margin-left: 5px; }
    
    /* NEW FIX: Make the logo even smaller on very narrow screens if needed */
    .navbar-brand .logo-dark {
        max-height: 60px;
    }
}