/* ==========================================================================
   LANGUAGE SWITCHER STYLES
   ========================================================================== */

.lang-switcher-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
    position: relative;
}

.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-switcher-btn:hover, .lang-switcher-btn:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

.lang-switcher-btn .current-lang {
    text-transform: uppercase;
}

.lang-switcher-btn .lang-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: #1a1a2e; /* Dark theme match */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown form {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.lang-option {
    background: transparent;
    border: none;
    color: #b0b0c0;
    padding: 12px 20px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.lang-option.active {
    background-color: rgba(0, 123, 255, 0.1); /* Primary color low opacity */
    color: #007bff; /* Primary color */
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 16px;
}


/* ==========================================================================
   RTL SUPPORT (ARABIC)
   ========================================================================== */

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Tajawal', sans-serif; /* Good Arabic fonts if imported */
}

/* Fix navbar for RTL */
body.rtl .navbar-collapse {
    justify-content: flex-start !important;
}

body.rtl .site-logo {
    margin-right: 0;
    margin-left: auto;
}

body.rtl .lang-switcher-wrapper {
    margin-left: 0;
    margin-right: 15px;
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

body.rtl .lang-option {
    text-align: right;
}

/* Fix margins and paddings for RTL */
body.rtl .mr-3,
body.rtl .mr-md-3,
body.rtl .mr-sm-0 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

body.rtl .ml-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

body.rtl .text-left {
    text-align: right !important;
}

body.rtl .text-right {
    text-align: left !important;
}

/* Fix icons spacing */
body.rtl .lang-switcher-btn {
    flex-direction: row-reverse;
}

body.rtl .social-icons .list-inline-item {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl .social-icons .list-inline-item:last-child {
    margin-left: 0;
}

/* Fix lists and items */
body.rtl ul {
    padding-right: 0;
}

body.rtl .about-info {
    display: flex;
}

body.rtl .about-info .desc {
    margin-right: 0;
    margin-left: 10px;
}

/* Fix progress bars RTL text */
body.rtl .progresss-info {
    flex-direction: row-reverse;
}

body.rtl .testimonial-box {
    text-align: right;
}

body.rtl .testimonial_icon {
    margin-right: 0 !important;
    margin-left: 1.5rem !important;
    transform: scaleX(-1); /* Flip the quote icon */
}

/* Fix forms */
body.rtl .form-control {
    text-align: right;
}

/* ==========================================================================
   MODERN FOOTER STYLES
   ========================================================================== */

.modern-footer {
    background-color: #1a1e21; /* Slightly darker than page background #1e2326 */
    border-top: 1px solid #2d3439;
    padding: 60px 0 40px;
    color: #b5b5b5;
}

.modern-footer .footer-logo {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.modern-footer .footer-logo span {
    color: #f07f81;
}

.modern-footer .footer-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #a0a0a0;
}

.modern-footer .footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.modern-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: #f07f81;
}

body.rtl .modern-footer .footer-title::after {
    left: auto;
    right: 0;
}

.modern-footer .footer-links {
    padding-left: 0;
}

.modern-footer .footer-links li {
    margin-bottom: 12px;
    list-style: none;
}

.modern-footer .footer-links a {
    color: #a0a0a0;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modern-footer .footer-links a:hover {
    color: #f07f81;
    padding-left: 5px;
}

body.rtl .modern-footer .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.modern-footer .footer-contact {
    padding-left: 0;
}

.modern-footer .footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #a0a0a0;
    list-style: none;
}

.modern-footer .footer-contact li i {
    color: #f07f81;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.modern-footer .copyright-text {
    font-size: 13px;
    color: #808080;
    border-top: 1px solid #2d3439;
    padding-top: 20px;
}

body.rtl .modern-footer {
    text-align: right;
}

