/* Arabic Font */
@font-face {
    font-family: 'DinNext';
    src: url('DinNext-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* RTL and Arabic-specific styles */
body {
    direction: rtl;
    font-family: 'DinNext', sans-serif;
    text-align: right;
}

/* Header adjustments */
.header__contact {
    justify-content: flex-start;
}

.header__contact-item {
    flex-direction: row-reverse;
}

.header__icon {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Navigation adjustments */
.nav__menu {
    padding-right: 0;
}

.nav__link {
    font-family: 'DinNext', sans-serif;
}

.btn--primary {
    flex-direction: row-reverse;
}

.btn__icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Hero section adjustments */
.hero__content {
    text-align: right;
}

.hero__social {
    justify-content: flex-end;
}

/* Override any LTR margins/paddings */
.hero__title span {
    margin-left: 0;
    margin-right: -0.5rem;
}

.hero__description {
    font-family: 'DinNext', sans-serif;
}

/* Adjust icons and buttons for RTL */
.social-link {
    margin-right: 0;
    margin-left: 1rem;
}

.social-link:last-child {
    margin-left: 0;
}

/* Language switcher RTL adjustments */
.nav__lang {
    margin-right: 1rem;
    margin-left: 0;
    padding-right: 1rem;
    padding-left: 0;
    border-right: 1px solid var(--color-border);
    border-left: none;
}

.nav__link--lang {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .nav__lang {
        margin: 0;
        padding: 0;
        border: none;
    }
}

/* Features Section RTL Adjustments */
.features__card-header {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.features__card-header h3 {
    margin-right: 0;
    margin-left: 1rem;
}

.features__list li {
    flex-direction: row-reverse;
    text-align: right;
    gap: 1.5rem;
}

/* Fix bullet points and content alignment */
.features__bullet {
    order: 2; /* Move bullet to the left in RTL */
}

.features__list li > div {
    order: 1; /* Move content to the right in RTL */
    flex: 1;
}

/* Card header icon alignment */
.features__card-header .features__icon {
    margin-left: 0;
    margin-right: 0;
}

/* Font assignments */
.features__title,
.features__card-header h3,
.features__list li strong,
.features__list li p {
    font-family: 'DinNext', sans-serif;
}

.features__list li strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Hover animations for RTL */
.features__list li:hover {
    transform: translateX(-5px);
}

.features__list li:hover .features__bullet {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .features__card-header {
        text-align: right;
    }
    
    .features__list li {
        padding: 0.75rem;
    }
}

/* Why URJOB Section RTL Adjustments */
.why-urjob__content {
    text-align: center;
}

.why-urjob__title {
    font-family: 'DinNext', sans-serif;
}

.why-urjob__card {
    text-align: center;
    direction: rtl;
}

.why-urjob__card h3 {
    font-family: 'DinNext', sans-serif;
    margin: 1rem 0;
}

.why-urjob__card p {
    font-family: 'DinNext', sans-serif;
}

/* Adjust gradient direction for RTL */
.why-urjob::before {
    background: radial-gradient(
        circle at 70% 30%,
        rgba(139, 92, 246, 0.15),
        transparent 70%
    );
}

/* CTA button RTL adjustments */
.why-urjob__cta .btn--primary {
    flex-direction: row-reverse;
}

.why-urjob__cta .btn--primary .btn__icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Animation adjustments for RTL */
.why-urjob__card:hover {
    transform: translateY(-5px);
}

.why-urjob__card:hover .why-urjob__icon {
    transform: rotateY(-180deg);
}

.why-urjob__card:hover .why-urjob__icon i {
    transform: rotateY(180deg);
}

@media (max-width: 768px) {
    .why-urjob__title {
        font-size: 2rem;
    }
    
    .why-urjob__card h3 {
        font-size: 1.25rem;
    }
}

/* Ultrawide RTL adjustments */
@media (min-width: 1921px) {
    /* Hero section */
    .hero__content {
        padding-left: 4rem;
    }

    /* Features section */
    .features__card-header h3 {
        margin-left: 2rem;
    }

    .features__list li {
        padding-right: 1.5rem;
    }

    /* Why URJOB section */
    .why-urjob__card {
        text-align: center;
    }
}

@media (min-width: 2560px) {
    .hero__content {
        padding-left: 6rem;
    }

    .features__list li {
        padding-right: 2rem;
    }
}

/* Partners Section RTL Adjustments */
.partners__title {
    font-family: 'DinNext', sans-serif;
}

/* Stats Section RTL Adjustments */
.stats__content {
    direction: rtl;
}

.stats__title,
.stats__description,
.stats__label,
.stats__trend {
    font-family: 'DinNext', sans-serif;
}

.stats__trend {
    flex-direction: row-reverse;
}

.stats__card {
    direction: rtl;
}

.stats__suffix {
    margin-right: 0.25rem;
    margin-left: 0;
}

/* Animation adjustments for RTL */
.stats__card:hover {
    transform: translateY(-5px);
}

.stats__card:hover .stats__icon {
    transform: rotateY(-180deg);
}

.stats__card:hover .stats__icon i {
    transform: rotateY(180deg);
}

@media (max-width: 768px) {
    .stats__title {
        font-size: 2.5rem;
    }
    
    .stats__description {
        font-size: 1.125rem;
    }
}

/* Testimonials Section RTL Adjustments */
.testimonials__content {
    direction: rtl;
}

.testimonials__title,
.testimonials__description {
    font-family: 'DinNext', sans-serif;
}

.testimonial__card {
    text-align: right;
    direction: rtl;
}

.testimonial__badge {
    left: 1rem;
    right: auto;
    flex-direction: row-reverse;
    gap: 0.5rem;
    font-family: 'DinNext', sans-serif;
}

.testimonial__info {
    text-align: right;
}

.testimonial__info h3,
.testimonial__info p,
.testimonial__text {
    font-family: 'DinNext', sans-serif;
}

/* Footer RTL Adjustments */
.footer {
    direction: rtl;
}

.footer__brand {
    text-align: right;
}

.footer__description,
.footer h4,
.footer__links a,
.footer__contact span,
.footer__copyright p,
.footer__legal a {
    font-family: 'DinNext', sans-serif;
}

.footer__contact li {
    flex-direction: row-reverse;
}

.footer__social {
    justify-content: flex-start;
}

.footer__bottom {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column;
    }
}
