/* website/css/rtl.css: RTL Overrides for Arabic Layout */

body {
    direction: rtl;
    text-align: right;
}

/* Nav Link Underline Alignment */
.nav-link::after {
    left: auto;
    right: 0;
}

/* Footer alignment fixes */
.footer-title::after {
    right: 0;
    left: auto;
}

.footer-links a {
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    padding-right: 8px;
    padding-left: 0;
}

/* Timeline alignments */
.timeline {
    position: relative;
    padding-right: 2rem;
    padding-left: 0;
}

.timeline::before {
    right: 0;
    left: auto;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-right: 1.8rem;
    padding-left: 0;
}

.timeline-item::before {
    right: -2.35rem;
    left: auto;
    border: 3px solid var(--bg-dark);
}

/* Bullet list alignments */
.bullet-list {
    list-style: none;
}

.bullet-list li {
    position: relative;
    padding-right: 1.5rem;
    padding-left: 0;
    margin-bottom: 0.6rem;
}

.bullet-list li::before {
    content: "←";
    position: absolute;
    right: 0;
    left: auto;
    color: var(--primary);
    font-weight: 700;
}

/* Back Office and Dashboard Table Alignment */
th, td {
    text-align: right;
}

/* Form styles - floating label & icon alignment */
.form-group {
    text-align: right;
}
.form-icon {
    left: auto;
    right: 12px;
}
.form-input-with-icon {
    padding-left: 1rem;
    padding-right: 2.8rem;
}

/* Mobile & Tablet Drawer RTL adjustments */
@media (max-width: 1024px) {
    .nav-menu {
        clip-path: circle(0% at 10% 0%);
    }
    .nav-menu.open {
        clip-path: circle(150% at 10% 0%);
    }
}

