/*
RTL Stylesheet for Asas Theme
Handles edge cases not covered by CSS logical properties
*/

/*--------------------------------------------------------------
# RTL Font
--------------------------------------------------------------*/
body {
	font-family: var(--font-family-arabic);
}

/*--------------------------------------------------------------
# Direction-specific adjustments
--------------------------------------------------------------*/

/* Section title underline - align to start in RTL for non-centered titles */
.section-title::after {
	margin-inline-start: 0;
}

/* Centered section titles should have centered underline in RTL too */
.section-title.text-center::after,
.section-header .section-title::after {
	margin-inline: auto;
}

/* Vision/Mission/Goals border */
.vmg-item {
	border-inline-start: 4px solid var(--color-primary);
	border-inline-end: none;
}

/* Lists */
.entry-content ul,
.entry-content ol {
	padding-inline-start: var(--spacing-xl);
	padding-inline-end: 0;
}

/* Form validation message */
.wpcf7-not-valid-tip {
	text-align: start;
}

/* Spinner position */
.wpcf7-spinner {
	margin-inline-start: var(--spacing-sm);
	margin-inline-end: 0;
}

/* Swiper navigation arrows - swap content for RTL */
.swiper-button-prev::after {
	content: 'next' !important;
}

.swiper-button-next::after {
	content: 'prev' !important;
}

/* Contact items icon */
.contact-item {
	flex-direction: row;
}

/* Footer contact items */
.footer-contact svg {
	margin-block-start: 2px;
}

/* Quote marks for testimonials (if added later) */
blockquote {
	border-inline-start: 4px solid var(--color-primary);
	border-inline-end: none;
	padding-inline-start: var(--spacing-lg);
	padding-inline-end: 0;
}

/* Checkbox and radio alignment */
input[type="checkbox"],
input[type="radio"] {
	margin-inline-end: var(--spacing-sm);
	margin-inline-start: 0;
}

/* Service card hover effect - ensure natural direction */
.service-card:hover {
	transform: translateY(-5px);
}

/* Feature card hover effect */
.feature-card:hover {
	transform: translateY(-5px);
}

/* Social links in footer */
.social-links {
	justify-content: flex-start;
}

/* Menu items with icons */
.menu-item-has-children > a::after {
	margin-inline-start: var(--spacing-xs);
	margin-inline-end: 0;
}

/* Search form button */
.search-form .search-submit {
	border-start-start-radius: 0;
	border-end-start-radius: 0;
	border-start-end-radius: var(--border-radius-md);
	border-end-end-radius: var(--border-radius-md);
}

/* Pagination */
.pagination .page-numbers {
	margin-inline: var(--spacing-xs);
}

/* Gallery icon position */
.gallery-item .gallery-icon {
	left: 50%;
	right: auto;
	transform: translate(-50%, -50%);
}

/* WhatsApp CTA icon spacing */
.whatsapp-cta svg {
	margin-inline-end: var(--spacing-sm);
	margin-inline-start: 0;
}

/* Button icon spacing */
.btn svg {
	margin-inline-end: var(--spacing-sm);
	margin-inline-start: 0;
}

/* Back to top button (if added) */
.back-to-top {
	inset-inline-end: var(--spacing-lg);
	inset-inline-start: auto;
}

/* Admin bar adjustment */
.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
