/* Arabic RTL Support */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Naskh Arabic', 'Poppins', sans-serif;
    text-align: right;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-arabic {
    font-size: 20px;
    font-weight: bold;
    color: #29265F;
    line-height: 1.2;
    font-family: 'Noto Naskh Arabic', serif;
}

.logo-english {
    font-size: 14px;
    color: #29265F;
    font-weight: 500;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.navbar-nav {
    direction: rtl;
    flex-direction: row-reverse !important;
}

.nav-link {
    font-family: 'Noto Naskh Arabic', serif;
}

.follow-text {
    font-family: 'Noto Naskh Arabic', serif;
}

.contact-info span {
    font-family: 'Noto Naskh Arabic', serif;
}

.btn-hire {
    font-family: 'Noto Naskh Arabic', serif;
}

/* RTL specific adjustments */
.social-links {
    direction: rtl;
}

/* Language Selector RTL Styles */
.language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Language Switch Button Styles */
.language-switch {
    display: flex;
    align-items: center;
}

.language-outer-wrapper {
    background-color: var(--secondary);
    padding: 2px;
    border-radius: 20px 5px 20px 5px;
}

.switch {
    display: inline-flex;
    overflow: hidden;
}

.switch-btn {
    padding: 7px 18px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    background-color: transparent;
    border: none;
    border-radius: 20px 5px 20px 5px;
    color: #ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
}

.switch-btn.active {
    background-color: #fff;
    /* filled purple */
    color: var(--secondary);
}

.switch-btn:not(.active):hover {
    background-color: rgba(191, 170, 210, 0.15);
    /* light hover effect */
}

@media(max-width: 992px){
    .switch-btn {
        width: 50%;
    }
}

.language-dropdown {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    padding: 6px 12px 6px 32px;
    border-radius: 6px;
    cursor: pointer;
    width: auto;
    min-width: 120px;
    max-width: 150px;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 16px;
}

.language-dropdown:focus {
    outline: none;
    border-color: #FDA31B;
    box-shadow: 0 0 0 2px rgba(253, 163, 27, 0.2);
}

.language-dropdown option {
    background-color: #29265F;
    color: #ffffff;
    padding: 8px;
}

.language-dropdown:hover {
    border-color: #FDA31B;
}

.contact-info {
    direction: rtl;
}

.logo-container {
    flex-direction: row-reverse;
}

/* Header alignment fixes */
.top-bar {
    direction: ltr;
}

.top-bar .social-links {
    direction: ltr;
}

.top-bar .contact-info {
    direction: ltr;
}

.main-nav {
    direction: ltr;
}

.navbar-nav-container {
    direction: ltr;
}

.navbar-nav {
    direction: ltr;
}

.hire-button-container {
    direction: ltr;
}

/* Hero Section Arabic Support */
.hero-text {
    text-align: right;
}

.hero-subtitle {
    font-family: 'Noto Naskh Arabic', serif;
}

.hero-title {
    font-family: 'Noto Naskh Arabic', serif;
}

.hero-description {
    font-family: 'Noto Naskh Arabic', serif;
}

.hero-buttons .btn {
    font-family: 'Noto Naskh Arabic', serif;
}

/* Service Cards Arabic Support */
.service-title {
    font-family: 'Noto Naskh Arabic', serif;
}

.service-description {
    font-family: 'Noto Naskh Arabic', serif;
}

/* Fix service cards positioning for RTL */
.services-section {
    left: 20px !important;
}

.service-card {
    flex: 0 0 auto;
    width: 265px;
}

/* Swiper Navigation for Arabic */
.swiper-button-next,
.swiper-button-prev {
    direction: ltr;
}

/* Fix swiper navigation positioning for RTL */
.swiper-button-next {
    right: 20px !important;
    left: auto !important;
}

.swiper-button-prev {
    left: 20px !important;
    right: auto !important;
}

/* About Section Arabic Support */
.about-label {
    font-family: 'Noto Naskh Arabic', serif;
}

.about-title {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.about-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.feature-title {
    font-family: 'Noto Naskh Arabic', serif;
}

.feature-description {
    font-family: 'Noto Naskh Arabic', serif;
}

.btn-contact-us {
    font-family: 'Noto Naskh Arabic', serif;
}

.call-label {
    font-family: 'Noto Naskh Arabic', serif;
}

/* Vision Section Arabic Support */
.vision-label {
    font-family: 'Noto Naskh Arabic', serif;
}

.vision-title {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.vision-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.btn-learn-more {
    font-family: 'Noto Naskh Arabic', serif;
}

/* Goals Section Arabic Support */
.goals-label {
    font-family: 'Noto Naskh Arabic', serif;
}

.goals-title {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: center;
}

.goals-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: center;
}

.goal-title {
    font-family: 'Noto Naskh Arabic', serif;
}

.goal-description {
    font-family: 'Noto Naskh Arabic', serif;
}

.btn-read-more {
    font-family: 'Noto Naskh Arabic', serif;
    right: 10px !important;
    left: unset !important;
}

/* Message Section Arabic Support */
.message-title {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: center;
}

.message-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: center;
}

/* Services Main Section Arabic Support */
.services-label {
    font-family: 'Noto Naskh Arabic', serif;
}

.services-title {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: center;
}

.services-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: center;
}

.service-main-title {
    font-family: 'Noto Naskh Arabic', serif;
}

.service-main-description {
    font-family: 'Noto Naskh Arabic', serif;
}

.service-read-more {
    font-family: 'Noto Naskh Arabic', serif;
}

.service-main-card {
    text-align: right !important;
}

.service-read-more {
    right: 25px !important;
    left: unset !important;
}

/* Contact Section Arabic Support */
.contact-label {
    font-family: 'Noto Naskh Arabic', serif;
}

.contact-title {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.contact-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.contact-label-text {
    font-family: 'Noto Naskh Arabic', serif;
}

.contact-item span {
    font-size: 16px !important;
}

.contact-value {
    font-family: 'Noto Naskh Arabic', serif;
}

.btn-submit {
    font-family: 'Noto Naskh Arabic', serif;
}

/* Contact form placeholders Arabic support */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

/* Contact section RTL layout adjustments */
.contact-info-content {
    text-align: right;
}

.contact-details .contact-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 20px;
}

.contact-text {
    text-align: right;
    margin-right: 15px;
    margin-left: 0;
    flex: 1;
}

.contact-icon-circle {
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    order: 2;
}

.contact-label-text {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-value {
    display: block;
    font-weight: 400;
}

/* Footer Arabic Support */
.footer-heading {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
    position: relative;
    margin-bottom: 20px;
}

.footer-heading::after {
    right: 30px !important;
    left: unset !important;
}

.footer-heading::before {
    right: 0px !important;
    left: unset !important;
}

.newsletter-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.btn-subscribe {
    font-family: 'Noto Naskh Arabic', serif;
}

.footer-links {
    text-align: right;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-family: 'Noto Naskh Arabic', serif;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFD700;
}

.company-description {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
    line-height: 1.6;
}

.footer-copyright p {
    font-family: 'Noto Naskh Arabic', serif;
}

/* Newsletter form Arabic support */
.newsletter-form input::placeholder {
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

/* Footer RTL layout */
.footer-section {
    text-align: right;
}

.footer-company {
    text-align: right;
}

/* Footer row reverse for RTL layout */
.footer-row-reverse {
    flex-direction: row-reverse;
}

/* Ensure proper spacing in RTL footer */
.footer-row-reverse .col-lg-4 {
    margin-right: 0;
    margin-left: auto;
}

.footer-row-reverse .col-lg-2 {
    margin-right: 0;
    margin-left: 0;
}

.footer-row-reverse .col-lg-3 {
    margin-right: 0;
    margin-left: 0;
}

/* Arabic Offcanvas Mobile Menu Styles */
.offcanvas {
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    width: 320px !important;
    max-width: 90vw;
    direction: rtl;
}

.offcanvas-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    text-align: right;
}

.offcanvas-title {
    color: #29265F;
    font-weight: 600;
    font-size: 18px;
    font-family: 'Noto Naskh Arabic', serif;
}

.btn-close {
    background-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-right: auto;
    margin-left: 0;
}

.btn-close:hover {
    opacity: 1;
}

.offcanvas-body {
    padding: 0;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.mobile-menu-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

/* Mobile Logo */
.mobile-logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-logo-img {
    width: 120px;
    height: auto;
}

/* Mobile Navigation */
.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: block;
    padding: 18px 0;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.mobile-nav-link:hover {
    color: #FDA31B;
    background-color: rgba(253, 163, 27, 0.05);
    padding-right: 15px;
}

.mobile-nav-link.active {
    color: #FDA31B;
    font-weight: 600;
    background-color: rgba(253, 163, 27, 0.1);
    padding-right: 15px;
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #FDA31B;
}

/* Mobile Hire Button */
.btn-hire-mobile {
    background-color: #FDA31B;
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 20px 5px 20px 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
    font-family: 'Noto Naskh Arabic', serif;
}

.btn-hire-mobile:hover {
    background-color: #e6952e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 163, 27, 0.3);
}

/* Mobile Contact Info */
.mobile-contact-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
    flex-direction: row-reverse;
}

.mobile-contact-item:last-child {
    border-bottom: none;
}

.mobile-contact-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%);
}

.mobile-contact-item span {
    color: #29265F;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Noto Naskh Arabic', serif;
}

/* Mobile Social Links */
.mobile-social-links {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

/* Mobile Language Selector for Arabic */
.mobile-language-text {
    display: block;
    color: #29265F;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.mobile-language-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px 10px 32px;
    font-size: 14px;
    background-color: #ffffff;
    color: #29265F;
    width: 100%;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2329265F' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 16px;
}

.mobile-language-dropdown:focus {
    border-color: #FDA31B;
    box-shadow: 0 0 0 0.2rem rgba(253, 163, 27, 0.25);
    outline: none;
}

.mobile-language-dropdown option {
    background-color: #ffffff;
    color: #29265F;
    padding: 8px;
}

.mobile-follow-text {
    display: block;
    color: #29265F;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Noto Naskh Arabic', serif;
    text-align: right;
}

.mobile-social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mobile-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #FDA31B;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-icon:hover {
    background-color: #29265F;
    transform: scale(1.1);
}

.mobile-social-icon .svg-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Responsive Design for Arabic Mobile Menu */
@media (max-width: 991px) {
    .navbar-nav-container {
        display: none !important;
    }

    .hire-button-container {
        display: none !important;
    }

    .navbar-toggler {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .footer-logo .logo-graphic{
        text-align: right !important;
    }
    .top-bar {
        display: none !important;
    }

    .main-nav {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo-graphic {
        height: 60px;
    }

    .logo-image {
        height: 60px;
    }
}

@media (max-width: 768px) {

    .services-section {
        padding: 0;
        background-color: transparent;
        position: unset !important;
        top: 100% !important;
        right: 40px;
        z-index: 3;
        width: auto;
        display: block !important;
        /* justify-content: flex-end; */
        /* align-items: stretch; */
        gap: 20px;
        /* flex-wrap: nowrap; */
    }

    .service-card {
        width: 100% !important;
    }

    .goal-card {
        height: auto !important;
        min-height: 450px !important;
    }

 

    .footer-logo .logo-graphic {
        text-align: left !important;

    }

    .feature-content {
        text-align: left !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    .footer-heading::after {
        right: 0px !important;
    }


    .company-description {
        padding-right: 15px;
    }


    .footer-section {
        padding-right: 15px;
    }


    .footer-social {
        padding-right: 5px;
    }

}


.services-section {
    padding-right: 180px;
}



.about-main-img {
    width: 100% !important;
}

/* Phone number link styling */
.call-number {
    text-decoration: none;
    transition: color 0.3s ease;
}

.call-number:hover {
    color: var(--secondary);
}

/* Contact link styling */
.contact-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary);
}

.mobile-contact-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.mobile-contact-link:hover {
    color: var(--secondary);
}

.contact-value-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.contact-value-link:hover {
    color: var(--secondary);
}

/* Footer contact styling */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-contact-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(100%);
}

.footer-contact-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-contact-link:hover {
    color: var(--secondary);
}


.goal-card {
    height: 500px !important;
}

/* Mobile responsive adjustments for goal cards */
@media (max-width: 576px) {
    .goal-card {
        height: auto !important;
        min-height: 400px !important;
    }
}