body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8fafc;
}
.faq-header {
    background: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
    color: white;
}
.faq-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.faq-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.faq-question {
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    color: #4a5568;
    padding: 0.75rem 0;
    display: none;
    border-top: 1px solid #edf2f7;
    margin-top: 0.5rem;
}
.faq-answer.show {
    display: block;
}
.faq-card i {
    color: #4299e1;
    transition: transform 0.3s ease;
}
.search-container {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.search-input {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
}
.search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 0.25rem rgba(66, 153, 225, 0.25);
}
.no-result-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(66, 153, 225, 0.15);
    text-align: center;
    margin-top: 2rem;
    border: 1px solid #bee3f8;
}
.help-section {
    background-color: #ebf8ff;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
}
.rotate-icon {
    transform: rotate(180deg);
}
.answer-steps {
    padding-right: 1.5rem;
}
.answer-steps li {
    margin-bottom: 0.5rem;
    position: relative;
}
.answer-steps li:before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: -1em;
    position: absolute;
    right: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

html[dir="rtl"] .faq-question h3 { 
    text-align: right; 
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 128, 237, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2F80ED;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2F80ED;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2F80ED;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #666;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-switcher a.active,
.language-switcher a:hover {
    background: #2F80ED;
    color: white;
}

.cta-button {
    background: linear-gradient(135deg, #2F80ED, #1565C0);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 128, 237, 0.3);
}

.cta-button.white {
    background: white;
    color: #2F80ED;
}

.cta-button.white:hover {
    background: #f8f9fa;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2F80ED, #1565C0);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
    z-index: 1001;
}

.mobile-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(47, 128, 237, 0.4);
}

.mobile-menu .hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 16px;
}

.mobile-menu .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .hamburger span:nth-child(1) { top: 0; }
.mobile-menu .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu .hamburger span:nth-child(3) { bottom: 0; }

.mobile-menu.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
}

.mobile-menu.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Drawer */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 100%);
    backdrop-filter: blur(25px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    right: 0;
}

html[dir="rtl"] .mobile-nav-drawer {
    right: auto;
    left: -100%;
}

html[dir="rtl"] .mobile-nav-drawer.active {
    left: 0;
}

.drawer-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(47, 128, 237, 0.1);
    background: linear-gradient(135deg, #2F80ED, #1565C0);
    color: white;
    position: relative;
    overflow: hidden;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.drawer-logo img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
}

.drawer-nav {
    padding: 2rem 0;
}

.drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-nav li {
    margin: 0;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInNavItem 0.5s ease-out forwards;
}

.drawer-nav li:nth-child(1) { animation-delay: 0.1s; }
.drawer-nav li:nth-child(2) { animation-delay: 0.2s; }
.drawer-nav li:nth-child(3) { animation-delay: 0.3s; }
.drawer-nav li:nth-child(4) { animation-delay: 0.4s; }
.drawer-nav li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInNavItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

html[dir="rtl"] .drawer-nav li {
    transform: translateX(-30px);
}

.drawer-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
}

html[dir="rtl"] .drawer-nav a {
    border-radius: 25px 0 0 25px;
    margin-right: 0;
    margin-left: 1rem;
}

.drawer-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #2F80ED, #1565C0);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

html[dir="rtl"] .drawer-nav a::before {
    left: auto;
    right: 0;
}

.drawer-nav a:hover {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.05), rgba(21, 101, 192, 0.05));
    color: #2F80ED;
    transform: translateX(10px);
}

html[dir="rtl"] .drawer-nav a:hover {
    transform: translateX(-10px);
}

.drawer-nav a:hover::before,
.drawer-nav a.active::before {
    transform: scaleY(1);
}

.drawer-nav a.active {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.1), rgba(21, 101, 192, 0.1));
    color: #2F80ED;
    font-weight: 600;
}

/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.6) 50%, rgba(41, 128, 185, 0.8) 100%);
    z-index: 1;
}

.faq-hero .container {
    position: relative;
    z-index: 2;
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.faq-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Search Box */
.faq-search {
    margin-bottom: 3rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: #2F80ED;
    box-shadow: 0 4px 20px rgba(47, 128, 237, 0.2);
    transform: translateY(-2px);
}

.faq-search i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.faq-search input:focus + i {
    color: #2F80ED;
}

html[dir="rtl"] .faq-search i {
    left: auto;
    right: 1.2rem;
}

html[dir="rtl"] .faq-search input {
    padding: 1rem 3.5rem 1rem 1.5rem;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    border-color: rgba(47, 128, 237, 0.1);
}

.faq-item.active {
    border-color: #2F80ED;
    box-shadow: 0 10px 30px rgba(47, 128, 237, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

html[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #2F80ED, #1565C0);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

html[dir="rtl"] .faq-question::before {
    left: auto;
    right: 0;
}

.faq-item.active .faq-question::before {
    transform: scaleY(1);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
    transition: color 0.3s ease;
}

html[dir="rtl"] .faq-question h3 {
    padding-right: 0;
    padding-left: 1rem;
}

.faq-item.active .faq-question h3 {
    color: #2F80ED;
}

.faq-question .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-question i {
    color: #2F80ED;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon-wrapper {
    background: linear-gradient(135deg, #2F80ED, #1565C0);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    display: none;
    padding: 0 2rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

html[dir="rtl"] .faq-answer ul {
    padding-left: 0;
    padding-right: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* No Results Messages */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
}

/* Contact CTA */
.back-to-contact {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, white, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid rgba(47, 128, 237, 0.1);
    transition: all 0.3s ease;
}

.back-to-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: rgba(47, 128, 237, 0.2);
}

.back-to-contact h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.back-to-contact p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-column p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .nav-links,
    .header-actions .language-switcher,
    .header-actions .cta-button {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .faq-hero {
        padding: 120px 0 60px;
    }
    
    .faq-hero h1 {
        font-size: 2.2rem;
    }
    
    .faq-hero p {
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-search {
        margin-bottom: 2rem;
    }
    
    .faq-search input {
        padding: 0.9rem 1.2rem 0.9rem 3rem;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 0;
        padding-left: 0;
        width: 100%;
    }
    
    .faq-question .icon-wrapper {
        align-self: flex-end;
        width: 35px;
        height: 35px;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .no-results {
        padding: 2rem 1.5rem;
    }
    
    .back-to-contact {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 1.8rem;
    }
    
    .faq-search input {
        padding: 0.8rem 1rem 0.8rem 2.5rem;
    }
    
    .faq-search i {
        left: 1rem;
    }
    
    html[dir="rtl"] .faq-search i {
        right: 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.2rem;
    }
    
    .faq-answer {
        padding: 0 1.2rem 1.2rem;
    }
    
    .mobile-nav-drawer {
        width: 280px;
    }
}

/* Animation for mobile cards */
@media (max-width: 768px) {
    .faq-item {
        animation: slideUpMobile 0.6s ease-out;
    }
    
    .faq-item:nth-child(1) { animation-delay: 0.1s; }
    .faq-item:nth-child(2) { animation-delay: 0.2s; }
    .faq-item:nth-child(3) { animation-delay: 0.3s; }
    .faq-item:nth-child(4) { animation-delay: 0.4s; }
    .faq-item:nth-child(5) { animation-delay: 0.5s; }
    .faq-item:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes slideUpMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Creative mobile touch interactions */
@media (hover: none) and (pointer: coarse) {
    .faq-item {
        transition: all 0.2s ease;
    }
    
    .faq-item:active {
        transform: scale(0.98);
    }
    
    .faq-question:active {
        background: #e3f2fd;
    }
    
    .cta-button:active {
        transform: scale(0.95);
    }
    
    .back-to-contact:active {
        transform: scale(0.98);
    }
}

/* Search input enhancements for mobile */
@media (max-width: 768px) {
    .faq-search input:focus {
        transform: scale(1.02);
        border-color: #2F80ED;
        box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.15);
    }
}

/* Loading animation for search */
.faq-search.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #2F80ED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

html[dir="rtl"] .faq-search.loading::after {
    right: auto;
    left: 1rem;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* FAQ Category badges (if needed for future enhancement) */
.faq-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565C0;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Highlight search results */
.faq-item.search-highlight {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fffbf0, #ffffff);
}

.faq-item.search-highlight .faq-question h3 {
    color: #FF8C00;
}

.back_to_setting {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    background: linear-gradient(135deg, #2F80ED, #1565C0);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    direction: ltr; /* Always LTR for proper icon alignment */
}

/* English text */
html[lang="en"] .back_to_setting::before {
    content: "Back to Settings";
}

/* Arabic text */
html[lang="ar"] .back_to_setting::before {
    content: "العودة إلى الإعدادات";
    font-family: 'Cairo', 'Tajawal', sans-serif;
    letter-spacing: normal;
}

.back_to_setting:hover {
    background: linear-gradient(135deg, #1565C0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 128, 237, 0.4);
    color: white;
    text-decoration: none;
}

.back_to_setting:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
}

.back_to_setting i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.back_to_setting:hover i {
    transform: translateX(-2px);
}

/* RTL Support for Arabic */
html[dir="rtl"] .back_to_setting {
    left: auto;
    right: 2rem;
    flex-direction: row-reverse;
}

html[dir="rtl"] .back_to_setting i {
    transform: scaleX(-1); /* Flip arrow for RTL */
}

html[dir="rtl"] .back_to_setting:hover i {
    transform: scaleX(-1) translateX(2px);
}

/* Icon positioning and animation */
.back_to_setting i {
    order: 2; /* Place icon after text */
    margin-left: 0.3rem;
}

html[dir="rtl"] .back_to_setting i {
    order: -1; /* Place icon before text in RTL */
    margin-left: 0;
    margin-right: 0.3rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .back_to_setting {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    html[dir="rtl"] .back_to_setting {
        left: auto;
        right: 1rem;
    }
}