/**
 * ZanCo. ltd Theme RTL Styles
 * Right-to-Left support for Arabic and other RTL languages
 *
 * @package ZanCo
 * @since 1.0.0
 */

/* ==========================================================================
   RTL Base Styles
   ========================================================================== */

html[dir="rtl"],
body.rtl {
    direction: rtl;
    text-align: right;
}

/* ==========================================================================
   Header RTL
   ========================================================================== */

.rtl .site-header {
    /* Header stays fixed on the right side in RTL */
}

.rtl .header-branding {
    /* Logo position adjusted for RTL */
}

.rtl .main-navigation {
    gap: 48px;
}

.rtl .main-navigation .wp-block-navigation-item a::after {
    /* Underline animation from right to left */
    right: 0;
    left: auto;
}

.rtl .header-actions {
    flex-direction: row-reverse;
}

.rtl .language-switcher {
    /* Language dropdown position */
}

.rtl .language-switcher .wp-block-group {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Navigation RTL
   ========================================================================== */

.rtl .wp-block-navigation__responsive-container-content {
    text-align: right;
}

.rtl .wp-block-navigation__submenu-container {
    right: 0;
    left: auto;
}

/* ==========================================================================
   Hero Section RTL
   ========================================================================== */

.rtl .hero-content {
    /* Hero content alignment for RTL */
    text-align: right;
}

.rtl .hero-content .wp-block-buttons {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .rtl .hero-content {
        text-align: center;
    }
    
    .rtl .hero-content .wp-block-buttons {
        justify-content: center;
    }
}

/* ==========================================================================
   Hero Carousel RTL
   ========================================================================== */

.rtl .hero-slide-overlay {
    /* Reverse gradient direction for RTL */
    background: linear-gradient(
        to left,
        rgba(15, 15, 15, 0.6) 0%,
        rgba(15, 15, 15, 0.4) 50%,
        transparent 100%
    );
}

/* Investment full-bleed cover: mirror LTR left-to-right fade for RTL */
.rtl .zanco-investment-cover .wp-block-cover__background {
    transform: scaleX(-1);
}

.rtl .hero-slide-content {
    text-align: right;
}

.rtl .hero-slide-content .wp-block-buttons {
    justify-content: flex-start;
}

/* Carousel Navigation - swap positions in RTL */
.rtl .hero-carousel-navigation {
    right: auto;
    left: clamp(1.25rem, 4vw, 3rem);
}

.rtl .hero-carousel-dots {
    left: auto;
    right: clamp(1.25rem, 4vw, 3rem);
}

/* Swap prev/next button icons in RTL */
.rtl .hero-carousel-prev svg {
    transform: rotate(180deg);
}

.rtl .hero-carousel-next svg {
    transform: rotate(180deg);
}

/* Up-chevron scroll control uses same class; do not flip like horizontal carousel arrows. */
.rtl .zanco-scroll-top.hero-carousel-next svg {
    transform: none;
}

/* Progress bar starts from right in RTL */
.rtl .hero-carousel-progress-bar {
    right: 0;
    left: auto;
}

@keyframes progressFillRTL {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.rtl .hero-carousel-progress-bar.animating {
    animation: progressFillRTL 6s linear forwards;
}

/* Hero Carousel Responsive RTL */
@media (max-width: 768px) {
    .rtl .hero-slide-content {
        text-align: center;
    }
    
    .rtl .hero-slide-content .wp-block-buttons {
        justify-content: center;
    }
    
    .rtl .hero-carousel-navigation {
        left: max(0.75rem, env(safe-area-inset-left));
        right: auto;
    }
    
    .rtl .hero-carousel-dots {
        right: max(0.75rem, env(safe-area-inset-right));
        left: auto;
    }
}

/* ==========================================================================
   Article Card RTL
   ========================================================================== */

.rtl .zanco-article-card {
    text-align: right;
}

.rtl .article-meta {
    flex-direction: row;
}

.rtl .article-link .link-arrow {
    margin-left: 0;
    margin-right: 12px;
    transform: rotate(180deg);
}

.rtl .article-link a:hover .link-arrow {
    transform: rotate(180deg) translateX(8px);
}

/* ==========================================================================
   Property Card RTL
   ========================================================================== */

.rtl .zanco-property-card {
    text-align: right;
}

.rtl .property-badge {
    left: auto;
    right: 24px;
}

.rtl .property-location {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl .property-location .location-icon {
    margin-left: 8px;
    margin-right: 0;
}

.rtl .property-meta {
    flex-direction: row-reverse;
}

.rtl .property-specs {
    flex-direction: row-reverse;
}

.rtl .spec-item {
    flex-direction: row-reverse;
}

.rtl .property-specs .spec-icon {
    margin-right: 0;
    margin-left: 6px;
}

/* ==========================================================================
   Featured Properties Section RTL
   ========================================================================== */

.rtl .featured-properties-section {
    /* Section maintains proper RTL flow */
}

.rtl .featured-properties-section .section-header {
    text-align: right;
}

.rtl .properties-grid {
    /* Grid flows right to left */
    direction: rtl;
}

.rtl .property-column {
    /* Columns respect RTL direction */
}

/* Responsive adjustments for RTL */
@media (max-width: 768px) {
    .rtl .properties-grid {
        direction: rtl;
    }
    
    .rtl .featured-properties-section .section-header {
        text-align: right;
    }
}

/* ==========================================================================
   Service Card RTL
   ========================================================================== */

.rtl .zanco-service-card {
    text-align: right;
}

.rtl .service-link .link-arrow,
.rtl .service-link .arrow {
    margin-left: 0;
    margin-right: 16px;
    transform: rotate(180deg);
}

.rtl .service-link a:hover .link-arrow,
.rtl .service-link a:hover .arrow {
    transform: rotate(180deg) translateX(8px);
}

.rtl .zanco-service-card:hover .link-arrow,
.rtl .zanco-service-card:hover .arrow {
    transform: rotate(180deg) translateX(8px);
}

.rtl .zanco-service-card hr.wp-block-separator {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   Services Overview Section RTL
   ========================================================================== */

.rtl .zanco-services-overview .section-header {
    text-align: center;
}

/* Services Grid - flows right to left in RTL */
.rtl .zanco-services-overview .services-grid {
    direction: rtl;
}

/* Service cards within the grid maintain RTL direction */
.rtl .zanco-services-overview .services-grid > * {
    direction: rtl;
}

/* Responsive Services Overview RTL */
@media (max-width: 1024px) {
    .rtl .zanco-services-overview .section-header {
        text-align: center;
    }
    
    .rtl .zanco-services-overview .services-grid {
        direction: rtl;
    }
}

@media (max-width: 768px) {
    .rtl .zanco-services-overview .section-header {
        text-align: right;
    }
}

/* ==========================================================================
   Stats Section RTL
   ========================================================================== */

.rtl .zanco-stats-section .wp-block-column {
    text-align: center; /* Stats remain centered */
}

/* ==========================================================================
   Footer RTL
   ========================================================================== */

.rtl .site-footer {
    text-align: right;
}

.rtl .footer-links {
    padding: 0;
    margin: 0;
}

.rtl .social-links,
.rtl .zanco-footer-social {
    flex-direction: row-reverse;
}

.rtl .zanco-footer-brand__lockup {
    flex-direction: row-reverse;
}

.rtl .social-link {
    margin-right: 0;
    margin-left: 16px;
}

.rtl .footer-bottom {
    flex-direction: row-reverse;
}

.rtl .footer-legal,
.rtl .footer-legal-links {
    flex-direction: row-reverse;
}

.rtl .language-links {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Buttons RTL
   ========================================================================== */

.rtl .wp-block-buttons {
    justify-content: flex-start;
}

.rtl .wp-block-buttons.aligncenter,
.rtl .wp-block-buttons .aligncenter {
    justify-content: center;
}

/* ==========================================================================
   Lists RTL
   ========================================================================== */

.rtl ul,
.rtl ol {
    padding-left: 0;
    padding-right: 0;
}

.rtl .footer-links ul {
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Forms RTL
   ========================================================================== */

.rtl input,
.rtl textarea,
.rtl select {
    text-align: right;
}

.rtl .newsletter-input input {
    text-align: right;
}

/* ==========================================================================
   Icons RTL
   ========================================================================== */

.rtl .fa-arrow-right::before {
    content: "\f060"; /* Arrow left in RTL */
}

.rtl .fa-chevron-right::before {
    content: "\f053"; /* Chevron left in RTL */
}

/* ==========================================================================
   Spacing Adjustments for RTL
   ========================================================================== */

.rtl .wp-block-group {
    /* Adjust padding for RTL */
}

.rtl .article-meta .wp-block-paragraph {
    margin-left: 12px;
    margin-right: 0;
}

.rtl .property-specs p {
    margin-left: 24px;
    margin-right: 0;
}

/* ==========================================================================
   Flex Layout RTL
   ========================================================================== */

.rtl .wp-block-group[style*="flex"] {
    /* Flex direction adjustments */
}

.rtl .site-header .header-content,
.rtl .header-inner {
    flex-direction: row-reverse;
}

.rtl .header-branding {
    order: 2;
}

.rtl .main-navigation {
    order: 1;
}

.rtl .header-actions {
    order: 3;
}

/* ==========================================================================
   Grid Layout RTL
   ========================================================================== */

.rtl .properties-grid,
.rtl .articles-grid {
    direction: rtl;
}

.rtl .properties-grid > *,
.rtl .articles-grid > * {
    direction: rtl;
}

/* ==========================================================================
   Responsive RTL
   ========================================================================== */

/* Large Desktop to Tablet Transition (1200px) */
@media (max-width: 1200px) {
    .rtl .main-navigation {
        gap: 32px;
    }
    
    .rtl .header-actions {
        gap: 24px;
    }
}

/* Tablet RTL (1024px) */
@media (max-width: 1024px) {
    .rtl .header-actions {
        flex-direction: row-reverse;
    }
    
    .rtl .hero-content {
        text-align: right;
    }
    
    /* Services grid RTL on tablet */
    .rtl .zanco-services-overview .wp-block-columns,
    .rtl .services-grid-section .wp-block-columns {
        direction: rtl;
    }
    
    /* Properties grid RTL on tablet */
    .rtl .properties-grid {
        direction: rtl;
    }
    
    /* Stats grid RTL on tablet */
    .rtl .stats-grid {
                direction: rtl;
    }
    
    /* Trust logos RTL on tablet */
    .rtl .trust-logos-grid {
        flex-direction: row-reverse;
    }
}
@media (max-width: 768px) {
    .rtl .site-header .header-content,
    .rtl .header-inner {
        flex-direction: row-reverse;
    }
    
    .rtl .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .rtl .footer-legal {
        flex-direction: column;
    }
    
    .rtl .property-meta {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .rtl .property-specs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hero carousel mobile RTL (matches theme.css safe-area) */
    .rtl .hero-carousel-navigation {
        left: max(0.75rem, env(safe-area-inset-left));
        right: auto;
    }
    
    .rtl .hero-carousel-dots {
        right: max(0.75rem, env(safe-area-inset-right));
        left: auto;
    }
    
    .rtl .hero-slide-content {
        text-align: center;
    }
    
    .rtl .hero-slide-content .wp-block-buttons {
        justify-content: center;
    }
    
    /* Stats grid single column on very small screens */
    .rtl .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Typography RTL
   ========================================================================== */

.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6 {
    font-family: var(--zanco-font-serif);
    /* Arabic fonts may need different line-height */
}

.rtl p,
.rtl li,
.rtl span {
    font-family: var(--zanco-font-sans);
}

/* ==========================================================================
   Animation RTL
   ========================================================================== */

.rtl .fade-in {
    animation: fadeInRTL var(--zanco-transition-slow) forwards;
}

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

/* ==========================================================================
   Arabic Typography Enhancements
   ========================================================================== */

html[lang="ar"] body,
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] span {
    /* Better Arabic font stack if needed */
    font-family: 'Noto Sans Arabic', 'Segoe UI', var(--zanco-font-sans), sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Noto Serif Arabic', 'Amiri', var(--zanco-font-serif), serif;
}

/* ==========================================================================
   Utility Classes RTL
   ========================================================================== */

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

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

.rtl .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.rtl .mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* ==========================================================================
   Hover Effects RTL
   ========================================================================== */

.rtl .hover-lift:hover {
    transform: translateY(-4px);
}

.rtl .img-zoom:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Search Entry RTL
   ========================================================================== */

.rtl .search-entry-container {
    text-align: right;
}

/* Search tabs - reverse order in RTL */
.rtl .search-tabs {
    flex-direction: row-reverse;
}

/* Active tab border from right in RTL */
.rtl .search-tab-active {
    border-bottom-color: var(--wp--preset--color--gold);
}

/* Search fields - reverse order in RTL */
.rtl .search-fields {
    flex-direction: row-reverse;
}

/* Search field text alignment */
.rtl .search-field label,
.rtl .search-field p {
    text-align: right;
}

/* Input and select text alignment */
.rtl .search-input,
.rtl .search-select {
    text-align: right;
    background-position: left 16px center;
}

/* Select dropdown arrow position for RTL */
.rtl .search-select-wrapper {
    position: relative;
}

.rtl .search-select-wrapper::after {
    content: '';
    position: absolute;
    left: 16px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--wp--preset--color--taupe);
    pointer-events: none;
}

/* Search button position in RTL */
.rtl .search-entry-inner .wp-block-buttons {
    order: -1;
}

/* Search entry inner flex direction for RTL */
.rtl .search-entry-inner {
    flex-direction: row-reverse;
}

/* Focus state for RTL inputs */
.rtl .search-input:focus,
.rtl .search-select:focus {
    border-color: var(--wp--preset--color--gold);
}

/* Responsive Search Entry RTL */
@media (max-width: 1024px) {
    .rtl .search-entry-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rtl .search-tabs {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }
    
    .rtl .search-fields {
        flex-direction: column;
    }
    
    .rtl .search-entry-inner .wp-block-buttons {
        order: 1;
    }
}

@media (max-width: 768px) {
    .rtl .search-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rtl .search-fields {
        flex-direction: column;
    }
    
    .rtl .search-field {
        min-width: 100%;
    }
}

/* ==========================================================================
   Trust Statistics Section RTL
   ========================================================================== */

.rtl .zanco-stats-section,
.rtl [data-name="Trust & Statistics"] {
    text-align: center;
}

.rtl .stats-grid {
    direction: rtl;
}

.rtl .stat-item {
    text-align: center;
}

/* Trust logos section RTL */
.rtl .trust-logos-section {
    text-align: center;
}

.rtl .trust-logos-grid {
    direction: rtl;
    flex-direction: row-reverse;
}

.rtl .trust-logo-item {
    text-align: center;
}

/* ==========================================================================
   Investment Advisory Section RTL
   ========================================================================== */

.rtl .investment-advisory-section,
.rtl .zanco-investment-section,
.rtl [data-name="Investment & Commercial"] {
    text-align: right;
}

/* Two-column layout - reverse order in RTL */
.rtl .investment-advisory-section .wp-block-columns,
.rtl .zanco-investment-section .wp-block-columns,
.rtl [data-name="Investment & Commercial"] .wp-block-columns {
    direction: rtl;
}

/* Content column appears first (right) in RTL, image second (left) */
.rtl .investment-advisory-section .wp-block-column:first-child,
.rtl .zanco-investment-section .wp-block-column:first-child,
.rtl [data-name="Investment & Commercial"] .wp-block-column:first-child {
    order: 2;
}

.rtl .investment-advisory-section .wp-block-column:last-child,
.rtl .zanco-investment-section .wp-block-column:last-child,
.rtl [data-name="Investment & Commercial"] .wp-block-column:last-child {
    order: 1;
}

/* Checkmark list RTL */
.rtl .investment-advisory-section ul,
.rtl .zanco-investment-section ul,
.rtl [data-name="Investment & Commercial"] ul {
    padding-right: 0;
    padding-left: 0;
}

.rtl .investment-advisory-section ul li,
.rtl .zanco-investment-section ul li,
.rtl [data-name="Investment & Commercial"] ul li {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .investment-advisory-section ul li svg,
.rtl .zanco-investment-section ul li svg,
.rtl [data-name="Investment & Commercial"] ul li svg {
    margin-right: 0;
    margin-left: 0;
}

/* CTA button alignment */
.rtl .investment-advisory-section .wp-block-button,
.rtl .zanco-investment-section .wp-block-button,
.rtl [data-name="Investment & Commercial"] .wp-block-button {
    text-align: right;
}

/* Investment background image overlay */
.rtl .investment-advisory-section .background-image,
.rtl .zanco-investment-section .background-image {
    right: 0;
    left: auto;
}

/* Responsive Investment Advisory RTL */
@media (max-width: 1024px) {
    .rtl .investment-advisory-section .wp-block-columns,
    .rtl .zanco-investment-section .wp-block-columns,
    .rtl [data-name="Investment & Commercial"] .wp-block-columns {
        direction: rtl;
    }
    
    .rtl .investment-advisory-section .wp-block-column:first-child,
    .rtl .zanco-investment-section .wp-block-column:first-child,
    .rtl [data-name="Investment & Commercial"] .wp-block-column:first-child {
        order: 1;
    }
    
    .rtl .investment-advisory-section .wp-block-column:last-child,
    .rtl .zanco-investment-section .wp-block-column:last-child,
    .rtl [data-name="Investment & Commercial"] .wp-block-column:last-child {
        order: 2;
    }
}

/* ==========================================================================
   Student Services Section RTL
   ========================================================================== */

.rtl .student-services-section,
.rtl [data-name="Student Services"] {
    text-align: right;
}

/* Student services: RTL reading direction + mirror icon gutter (matches home_2 flex row) */
.rtl .student-services-section .zanco-student-services-columns,
.rtl [data-name="Student Services"] .zanco-student-services-columns {
    direction: rtl;
}

@media (max-width: 1023px) {
    .rtl .student-services-section .zanco-student-services-columns > .wp-block-column:first-child,
    .rtl [data-name="Student Services"] .zanco-student-services-columns > .wp-block-column:first-child {
        order: 2;
    }

    .rtl .student-services-section .zanco-student-services-columns > .wp-block-column:nth-child(2),
    .rtl [data-name="Student Services"] .zanco-student-services-columns > .wp-block-column:nth-child(2) {
        order: 1;
    }
}

.rtl .student-services-section .zanco-student-service-row .zanco-student-service-icon,
.rtl [data-name="Student Services"] .zanco-student-service-row .zanco-student-service-icon {
    margin-right: 0;
    margin-left: 20px;
}

.rtl .student-services-section .zanco-student-services-cta,
.rtl [data-name="Student Services"] .zanco-student-services-cta {
    text-align: right;
}

/* Legacy service-feature rows */
.rtl .student-services-section .service-feature,
.rtl [data-name="Student Services"] .service-feature {
    flex-direction: row-reverse;
}

.rtl .student-services-section .service-feature-icon,
.rtl [data-name="Student Services"] .service-feature-icon {
    margin-right: 0;
    margin-left: 1.25rem;
}

/* ==========================================================================
   Journal Grid Section RTL
   ========================================================================== */

.rtl .journal-grid-section,
.rtl [data-name="Journal Grid"] {
    text-align: right;
}

/* Section header RTL */
.rtl .journal-grid-section .section-header,
.rtl [data-name="Journal Grid"] .wp-block-columns:first-child {
    text-align: right;
}

/* View All Articles button alignment */
.rtl .journal-grid-section .section-header .wp-block-button,
.rtl [data-name="Journal Grid"] .wp-block-column:last-child .wp-block-button {
    text-align: left;
}

/* Article cards grid RTL */
.rtl .journal-grid-section .articles-grid,
.rtl [data-name="Journal Grid"] .wp-block-columns:not(:first-child) {
    direction: rtl;
}

/* Article card RTL */
.rtl .article-card {
    text-align: right;
}

.rtl .article-card .article-meta {
    flex-direction: row;
}

.rtl .article-card .article-category {
    text-align: right;
}

/* Article link arrow RTL */
.rtl .article-card .article-link a,
.rtl .article-card .article-link {
    flex-direction: row-reverse;
}

.rtl .article-card .fa-arrow-right {
    margin-left: 0;
    margin-right: 12px;
    transform: rotate(180deg);
}

.rtl .article-card:hover .fa-arrow-right {
    transform: rotate(180deg) translateX(-8px);
}

/* Mobile View All button */
.rtl .journal-grid-section .mobile-view-all,
.rtl [data-name="Journal Grid"] .md\:hidden {
    text-align: center;
}

/* Responsive Journal Grid RTL */
@media (max-width: 1024px) {
    .rtl .journal-grid-section .section-header,
    .rtl [data-name="Journal Grid"] .wp-block-columns:first-child .wp-block-column {
        text-align: right;
    }
    
    .rtl .journal-grid-section .articles-grid,
    .rtl [data-name="Journal Grid"] .wp-block-columns:not(:first-child) {
        direction: rtl;
    }
}

@media (max-width: 768px) {
    .rtl .journal-grid-section .section-header,
    .rtl [data-name="Journal Grid"] .wp-block-columns:first-child {
        text-align: center;
    }
    
    .rtl .journal-grid-section .section-header .wp-block-button,
    .rtl [data-name="Journal Grid"] .wp-block-column:last-child .wp-block-button {
        text-align: center;
    }
}

/* ==========================================================================
   FAQ Section RTL
   ========================================================================== */

.rtl .faq-section,
.rtl .zanco-faq-section,
.rtl [data-name="FAQ Section"] {
    text-align: right;
}

/* FAQ section header RTL */
.rtl .faq-section .section-header,
.rtl .zanco-faq-section > .wp-block-group:first-child,
.rtl [data-name="FAQ Section"] > .wp-block-group:first-child {
    text-align: center;
}

/* FAQ items container RTL */
.rtl .faq-section .faq-items,
.rtl .zanco-faq-item,
.rtl [data-name="FAQ Section"] .zanco-faq-item {
    text-align: right;
}

/* Individual FAQ item RTL */
.rtl .zanco-faq-item {
    padding-right: 40px;
    padding-left: 40px;
}

.rtl .zanco-faq-item h3 {
    text-align: right;
}

.rtl .zanco-faq-item p {
    text-align: right;
}

/* FAQ expand/collapse icon RTL */
.rtl .faq-item-icon {
    right: auto;
    left: 24px;
}

.rtl .faq-item-icon .plus-icon,
.rtl .faq-item-icon .minus-icon {
    transform: rotate(0deg);
}

/* Responsive FAQ RTL */
@media (max-width: 768px) {
    .rtl .zanco-faq-item {
        padding-right: 24px;
        padding-left: 24px;
    }
    
    .rtl .faq-item-icon {
        left: 16px;
    }
}

/* ==========================================================================
   CTA Consultation Section RTL
   ========================================================================== */

.rtl .cta-consultation-section,
.rtl [data-name="CTA Consultation"] {
    text-align: center;
}

/* CTA heading remains centered in RTL */
.rtl .cta-consultation-section h2,
.rtl [data-name="CTA Consultation"] h2 {
    text-align: center;
}

/* CTA description remains centered in RTL */
.rtl .cta-consultation-section p,
.rtl [data-name="CTA Consultation"] p {
    text-align: center;
}

/* CTA button container centered */
.rtl .cta-consultation-section .wp-block-buttons,
.rtl [data-name="CTA Consultation"] .wp-block-buttons {
    justify-content: center;
}

/* ==========================================================================
   SEO Intro Section RTL
   ========================================================================== */

.rtl .seo-intro-section,
.rtl [data-name="SEO Intro"] {
    text-align: center;
}

/* SEO intro content centered in both LTR and RTL */
.rtl .seo-intro-section h2,
.rtl [data-name="SEO Intro"] h2 {
    text-align: center;
}

.rtl .seo-intro-section p,
.rtl [data-name="SEO Intro"] p {
    text-align: center;
}

/* ==========================================================================
   Partner Logos Strip RTL
   ========================================================================== */

.rtl .partner-logos-section,
.rtl .trust-logos-wrapper {
    text-align: center;
}

.rtl .partner-logos-grid {
    direction: rtl;
    flex-direction: row-reverse;
}

.rtl .partner-logo {
    text-align: center;
}

/* ==========================================================================
   Newsletter Section RTL (Footer)
   ========================================================================== */

.rtl .newsletter-section {
    text-align: right;
}

.rtl .newsletter-form {
    flex-direction: column;
}

.rtl .newsletter-input input {
    text-align: right;
}

.rtl .newsletter-button {
    text-align: center;
}

/* ==========================================================================
   Additional RTL Utility Classes
   ========================================================================== */

/* Float utilities RTL */
.rtl .float-left {
    float: right !important;
}

.rtl .float-right {
    float: left !important;
}

/* Padding utilities RTL */
.rtl .pl-4 {
    padding-left: 0 !important;
    padding-right: 1rem !important;
}

.rtl .pr-4 {
    padding-right: 0 !important;
    padding-left: 1rem !important;
}

/* Margin utilities RTL */
.rtl .ml-4 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

.rtl .mr-4 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

/* Border utilities RTL */
.rtl .border-l {
    border-left: none !important;
    border-right: 1px solid currentColor !important;
}

.rtl .border-r {
    border-right: none !important;
    border-left: 1px solid currentColor !important;
}

/* ==========================================================================
   Responsive RTL Adjustments
   ========================================================================== */

@media (max-width: 1024px) {
    .rtl .investment-advisory-section,
    .rtl .zanco-investment-section,
    .rtl .student-services-section {
        text-align: right;
    }
    
    .rtl .journal-grid-section .section-header {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .rtl .investment-advisory-section,
    .rtl .zanco-investment-section,
    .rtl .student-services-section,
    .rtl .journal-grid-section {
        text-align: center;
    }
    
    .rtl .investment-advisory-section ul li,
    .rtl .zanco-investment-section ul li,
    .rtl .student-services-section .service-feature {
        justify-content: center;
        text-align: center;
    }
    
    .rtl .cta-consultation-section,
    .rtl .faq-section {
        text-align: center;
    }
}

/* ==========================================================================
   Single Post Template RTL
   ========================================================================== */

.rtl .post-meta {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.rtl .post-meta .wp-block-group {
    flex-direction: row-reverse;
}

.rtl .post-meta .wp-block-post-author-name {
    margin-left: 0;
    margin-right: 4px;
}

.rtl .post-tags {
    text-align: right;
}

.rtl .post-tags .wp-block-post-terms {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.rtl .post-share {
    text-align: right;
}

.rtl .post-share .wp-block-social-links {
    justify-content: flex-start;
}

/* Post Navigation RTL */
.rtl .post-navigation .wp-block-columns {
    direction: rtl;
}

.rtl .post-navigation .wp-block-column:first-child {
    text-align: right;
}

.rtl .post-navigation .wp-block-column:last-child {
    text-align: left;
}

.rtl .post-navigation-link[type="previous"]::before {
    content: "→ ";
}

.rtl .post-navigation-link[type="next"]::after {
    content: " ←";
}

/* Author Box RTL */
.rtl .author-box {
    text-align: right;
}

.rtl .author-box .wp-block-columns {
    direction: rtl;
}

.rtl .author-box .wp-block-column:first-child {
    order: 2;
}

.rtl .author-box .wp-block-column:last-child {
    order: 1;
}

/* Related Posts RTL */
.rtl .related-posts {
    text-align: right;
}

.rtl .related-posts .wp-block-query {
    direction: rtl;
}

.rtl .related-posts .wp-block-post-template {
    direction: rtl;
}

/* Responsive Single Post RTL */
@media (max-width: 768px) {
    .rtl .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rtl .post-navigation .wp-block-column:first-child,
    .rtl .post-navigation .wp-block-column:last-child {
        text-align: center;
    }
    
    .rtl .author-box .wp-block-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .rtl .author-box .wp-block-column:first-child,
    .rtl .author-box .wp-block-column:last-child {
        order: unset;
    }
}

/* ==========================================================================
   Page Template RTL
   ========================================================================== */

.rtl .has-page-content {
    text-align: right;
}

.rtl .has-page-content .wp-block-post-title {
    text-align: right;
}

.rtl .has-page-content .wp-block-post-content {
    text-align: right;
}

/* Page featured image RTL */
.rtl .has-page-content + .wp-block-post-featured-image {
    margin-left: auto;
}

/* Responsive Page Template RTL */
@media (max-width: 768px) {
    .rtl .has-page-content {
        text-align: center;
    }
    
    .rtl .has-page-content .wp-block-post-title {
        text-align: center;
    }
}

/* ==========================================================================
   Archive Template RTL
   ========================================================================== */

.rtl .archive-header {
    text-align: right;
}

.rtl .archive-header .wp-block-query-title {
    text-align: right;
}

.rtl .archive-header .wp-block-term-description {
    text-align: right;
}

/* Archive posts grid RTL */
.rtl .wp-block-query .wp-block-post-template {
    direction: rtl;
}

/* Archive pagination RTL */
.rtl .wp-block-query-pagination {
    flex-direction: row-reverse;
}

.rtl .wp-block-query-pagination-previous {
    transform: rotate(180deg);
}

.rtl .wp-block-query-pagination-next {
    transform: rotate(180deg);
}

/* Archive no results RTL */
.rtl .wp-block-query-no-results {
    text-align: center;
}

/* Responsive Archive RTL */
@media (max-width: 768px) {
    .rtl .archive-header {
        text-align: center;
    }
    
    .rtl .archive-header .wp-block-query-title {
        text-align: center;
    }
    
    .rtl .wp-block-query-pagination {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   General Post Content RTL
   ========================================================================== */

.rtl .entry-content {
    text-align: right;
}

.rtl .entry-content h1,
.rtl .entry-content h2,
.rtl .entry-content h3,
.rtl .entry-content h4,
.rtl .entry-content h5,
.rtl .entry-content h6 {
    text-align: right;
}

.rtl .entry-content ul,
.rtl .entry-content ol {
    padding-right: 24px;
    padding-left: 0;
}

.rtl .entry-content blockquote {
    border-left: none;
    border-right: 4px solid var(--zanco-gold);
    padding-left: 0;
    padding-right: 24px;
    text-align: right;
}

.rtl .entry-content img {
    margin-left: auto;
    margin-right: 0;
}

.rtl .entry-content .alignleft {
    float: right;
    margin-left: 24px;
    margin-right: 0;
}

.rtl .entry-content .alignright {
    float: left;
    margin-right: 24px;
    margin-left: 0;
}

.rtl .entry-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

/* Tables in RTL */
.rtl .entry-content table {
    text-align: right;
}

.rtl .entry-content table th,
.rtl .entry-content table td {
    text-align: right;
}

/* Code blocks in RTL */
.rtl .entry-content pre,
.rtl .entry-content code {
    text-align: left;
    direction: ltr;
}

/* ==========================================================================
   Breadcrumbs RTL
   ========================================================================== */

.rtl .breadcrumbs {
    flex-direction: row-reverse;
}

.rtl .breadcrumbs .separator {
    transform: rotate(180deg);
}

/* ==========================================================================
   Sidebar RTL (if applicable)
   ========================================================================== */

.rtl .widget {
    text-align: right;
}

.rtl .widget ul,
.rtl .widget ol {
    padding-right: 0;
    padding-left: 0;
}

.rtl .widget_search .search-form {
    flex-direction: row-reverse;
}

.rtl .widget_search .search-field {
    text-align: right;
}

/* ==========================================================================
   Comments RTL
   ========================================================================== */

.rtl .comments-area {
    text-align: right;
}

.rtl .comment-list {
    padding-right: 0;
}

.rtl .comment-author {
    flex-direction: row-reverse;
}

.rtl .comment-author img {
    margin-left: 16px;
    margin-right: 0;
}

.rtl .comment-metadata {
    text-align: left;
}

.rtl .comment-reply-link {
    text-align: left;
}

.rtl .children {
    padding-right: 32px;
    padding-left: 0;
}

/* Comment form RTL */
.rtl .comment-form label {
    text-align: right;
}

.rtl .comment-form input,
.rtl .comment-form textarea {
    text-align: right;
}

/* ==========================================================================
   HEADER RTL FIXES - Comprehensive
   ========================================================================== */

/* Header row (middle group or legacy .header-inner) */
.rtl .site-header .header-content,
.rtl .header-inner {
    flex-direction: row-reverse;
}

/* Header branding (logo) - should be on the right in RTL */
.rtl .header-branding {
    order: 1;
    margin-left: 0;
    margin-right: 0;
}

/* Main navigation - center in RTL */
.rtl .main-navigation {
    order: 2;
    direction: rtl;
}

/* Navigation items flow right-to-left */
.rtl .main-navigation .wp-block-navigation__container {
    flex-direction: row-reverse;
}

/* Header actions (language + contact) - should be on the left in RTL */
.rtl .header-actions {
    order: 3;
    flex-direction: row-reverse;
}

/* Language switcher dropdown - open from left in RTL */
.rtl .language-switcher {
    direction: rtl;
}

.rtl .language-switcher .wp-block-group {
    flex-direction: row-reverse;
}

/* If there's a dropdown menu, position it from the left */
.rtl .language-switcher .language-dropdown,
.rtl .language-switcher .submenu {
    left: 0;
    right: auto;
}

/* Contact button in header */
.rtl .header-actions .wp-block-buttons {
    flex-direction: row-reverse;
}

/* ==========================================================================
   NAVIGATION SUBMENU RTL FIXES
   ========================================================================== */

/* Submenu containers should open from the left in RTL */
.rtl .wp-block-navigation__submenu-container,
.rtl .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
    left: 0;
    right: auto;
}

/* Nested submenus */
.rtl .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
    right: 100%;
    left: auto;
}

/* ==========================================================================
   BUTTON ICONS RTL FIXES
   ========================================================================== */

/* Arrow icons in buttons - flip direction */
.rtl .wp-block-button .fa-arrow-right,
.rtl .wp-block-button__link .fa-arrow-right,
.rtl a .fa-arrow-right {
    transform: rotate(180deg);
    display: inline-block;
}

/* Chevron icons - flip direction */
.rtl .fa-chevron-right {
    transform: rotate(180deg);
    display: inline-block;
}

/* Button with icon and text - reverse order */
.rtl .wp-block-button__link.has-icon {
    flex-direction: row-reverse;
}

.rtl .wp-block-button__link .wp-block-button__link-icon {
    margin-right: 0;
    margin-left: 8px;
}

/* Learn More / Read More type links with arrows */
.rtl .article-link a,
.rtl .service-link a,
.rtl a.learn-more {
    flex-direction: row-reverse;
}

.rtl .article-link a .fa-arrow-right,
.rtl .service-link a .fa-arrow-right,
.rtl a.learn-more .fa-arrow-right {
    margin-left: 0;
    margin-right: 12px;
}

/* ==========================================================================
   FORM FIELDS RTL FIXES
   ========================================================================== */

/* All form inputs */
.rtl input[type="text"],
.rtl input[type="email"],
.rtl input[type="password"],
.rtl input[type="search"],
.rtl input[type="number"],
.rtl input[type="tel"],
.rtl input[type="url"],
.rtl textarea,
.rtl select {
    text-align: right;
    direction: rtl;
}

/* Placeholder text alignment */
.rtl input::placeholder,
.rtl textarea::placeholder {
    text-align: right;
}

/* Select dropdown arrow position */
.rtl select {
    background-position: left 16px center;
    padding-left: 40px;
    padding-right: 16px;
}

/* Search form */
.rtl .search-form,
.rtl .wp-block-search {
    flex-direction: row-reverse;
}

.rtl .wp-block-search__inside-wrapper {
    flex-direction: row-reverse;
}

.rtl .wp-block-search__button {
    margin-left: 0;
    margin-right: 8px;
}

/* Newsletter input in footer */
.rtl .newsletter-input input {
    text-align: right;
    direction: rtl;
}

/* ==========================================================================
   CARD LAYOUTS RTL FIXES
   ========================================================================== */

/* Property cards */
.rtl .zanco-property-card {
    text-align: right;
    direction: rtl;
}

/* Property badge position - right side in RTL */
.rtl .property-badge {
    left: auto;
    right: 24px;
}

/* Property image hover direction */
.rtl .zanco-property-card img {
    transform-origin: right center;
}

/* Service cards */
.rtl .zanco-service-card {
    text-align: right;
    direction: rtl;
}

/* Service card icon box */
.rtl .zanco-service-card .service-icon-box {
    margin-right: 0;
    margin-left: auto;
}

/* Service card divider line */
.rtl .zanco-service-card .divider-line {
    margin-left: 0;
    margin-right: 0;
}

/* Article cards */
.rtl .zanco-article-card {
    text-align: right;
    direction: rtl;
}

/* Card grids flow right to left */
.rtl .properties-grid,
.rtl .services-grid,
.rtl .articles-grid {
    direction: rtl;
}

.rtl .properties-grid > *,
.rtl .services-grid > *,
.rtl .articles-grid > * {
    direction: rtl;
}

/* ==========================================================================
   METADATA ROWS RTL FIXES
   ========================================================================== */

/* Property metadata row (beds, baths, sqft) */
.rtl .property-meta {
    flex-direction: row-reverse;
    justify-content: space-between;
}

/* Property specs with icons */
.rtl .property-specs {
    flex-direction: row-reverse;
}

.rtl .property-specs .spec-item {
    flex-direction: row-reverse;
}

.rtl .property-specs .spec-icon {
    margin-right: 0;
    margin-left: 6px;
}

/* Property location with icon */
.rtl .property-location {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl .property-location .location-icon,
.rtl .property-location i {
    margin-right: 0;
    margin-left: 8px;
}

/* Article meta (category, read time) */
.rtl .article-meta {
    flex-direction: row;
}

.rtl .article-meta .separator {
    margin-left: 12px;
    margin-right: 12px;
}

/* Post meta in single posts */
.rtl .post-meta {
    flex-direction: row-reverse;
}

.rtl .post-meta .meta-item {
    flex-direction: row-reverse;
}

.rtl .post-meta .meta-icon {
    margin-right: 0;
    margin-left: 8px;
}

/* ==========================================================================
   FOOTER RTL FIXES
   ========================================================================== */

/* Footer columns flow right to left */
.rtl .site-footer .wp-block-columns {
    direction: rtl;
}

/* Footer branding column (first column) should be on the right */
.rtl .site-footer .wp-block-column:first-child {
    text-align: right;
}

/* Footer navigation columns */
.rtl .site-footer .wp-block-column:nth-child(2),
.rtl .site-footer .wp-block-column:nth-child(3) {
    text-align: right;
}

/* Footer newsletter column (last column) should be on the left */
.rtl .site-footer .wp-block-column:last-child {
    text-align: right;
}

/* Footer links */
.rtl .footer-links {
    text-align: right;
    padding-right: 0;
    padding-left: 0;
}

.rtl .footer-links li {
    text-align: right;
}

/* Social links - reverse order */
.rtl .social-links,
.rtl .zanco-footer-social {
    flex-direction: row-reverse;
}

.rtl .zanco-footer-brand__lockup {
    flex-direction: row-reverse;
}

.rtl .social-link {
    margin-right: 0;
    margin-left: 16px;
}

/* Footer bottom section */
.rtl .footer-bottom {
    flex-direction: row-reverse;
}

/* Language links in footer */
.rtl .language-links {
    flex-direction: row-reverse;
}

/* Legal links */
.rtl .footer-legal,
.rtl .footer-legal-links {
    flex-direction: row-reverse;
}

.rtl .footer-legal .wp-block-group {
    flex-direction: row-reverse;
}

/* Newsletter form in footer */
.rtl .newsletter-form {
    text-align: right;
}

/* ==========================================================================
   SPACING BALANCE RTL FIXES
   ========================================================================== */

/* Swap left/right margins */
.rtl .ml-2 { margin-left: 0; margin-right: 0.5rem; }
.rtl .ml-4 { margin-left: 0; margin-right: 1rem; }
.rtl .ml-6 { margin-left: 0; margin-right: 1.5rem; }
.rtl .ml-8 { margin-left: 0; margin-right: 2rem; }

.rtl .mr-2 { margin-right: 0; margin-left: 0.5rem; }
.rtl .mr-4 { margin-right: 0; margin-left: 1rem; }
.rtl .mr-6 { margin-right: 0; margin-left: 1.5rem; }
.rtl .mr-8 { margin-right: 0; margin-left: 2rem; }

/* Swap left/right padding */
.rtl .pl-2 { padding-left: 0; padding-right: 0.5rem; }
.rtl .pl-4 { padding-left: 0; padding-right: 1rem; }
.rtl .pl-6 { padding-left: 0; padding-right: 1.5rem; }
.rtl .pl-8 { padding-left: 0; padding-right: 2rem; }

.rtl .pr-2 { padding-right: 0; padding-left: 0.5rem; }
.rtl .pr-4 { padding-right: 0; padding-left: 1rem; }
.rtl .pr-6 { padding-right: 0; padding-left: 1.5rem; }
.rtl .pr-8 { padding-right: 0; padding-left: 2rem; }

/* Gap adjustments for RTL flex containers */
.rtl .gap-4 { gap: 1rem; }
.rtl .gap-6 { gap: 1.5rem; }
.rtl .gap-8 { gap: 2rem; }
.rtl .gap-12 { gap: 3rem; }

/* Space between elements */
.rtl .space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

.rtl .space-x-6 > * + * {
    margin-left: 0;
    margin-right: 1.5rem;
}

.rtl .space-x-8 > * + * {
    margin-left: 0;
    margin-right: 2rem;
}

/* ==========================================================================
   LIST STYLES RTL FIXES
   ========================================================================== */

/* Unordered lists */
.rtl ul {
    padding-left: 0;
    padding-right: 24px;
}

/* Ordered lists */
.rtl ol {
    padding-left: 0;
    padding-right: 24px;
}

/* List markers position */
.rtl ul,
.rtl ol {
    list-style-position: inside;
}

/* Checkmark lists (like in investment section) */
.rtl ul.has-checkbox li,
.rtl ul.checkmark-list li {
    padding-left: 0;
    padding-right: 0;
    flex-direction: row-reverse;
}

.rtl ul li .fa-check,
.rtl ul li i.fa-check {
    margin-right: 0;
    margin-left: 1.25rem;
}

/* ==========================================================================
   MOBILE NAVIGATION RTL FIXES
   ========================================================================== */

/* Mobile menu container */
.rtl .wp-block-navigation__responsive-container.is-menu-open {
    text-align: right;
}

.rtl .wp-block-navigation__responsive-container-content {
    text-align: right;
    direction: rtl;
}

/* Mobile menu items */
.rtl .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    text-align: right;
}

/* Mobile menu close button — compact header dropdown */
.rtl .site-header .wp-block-navigation__responsive-container-close {
    right: auto;
    left: 0.75rem;
    top: 0.35rem;
}

.rtl .wp-block-navigation__responsive-container-close {
    right: auto;
    left: 24px;
}

/* ==========================================================================
   RESPONSIVE RTL FIXES
   ========================================================================== */

@media (max-width: 1024px) {
    /* Header adjustments for tablet RTL */
    .rtl .header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    /* Footer columns stack properly in RTL */
    .rtl .site-footer .wp-block-columns {
        flex-direction: column;
    }
    
    .rtl .site-footer .wp-block-column {
        text-align: right;
        margin-bottom: 48px;
    }
}

@media (max-width: 768px) {
    /* Header mobile adjustments */
    .rtl .site-header .header-content,
    .rtl .header-inner {
        flex-direction: row-reverse;
    }
    
    /* Footer bottom stacks vertically */
    .rtl .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .rtl .footer-legal,
    .rtl .footer-legal-links {
        flex-direction: column;
        align-items: center;
    }
    
    .rtl .language-links {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Property archive filter — toggle + reset */
    .rtl .zanco-pidx-filter__head-actions {
        flex-direction: row-reverse;
    }

    /* Property cards mobile RTL */
    .rtl .property-meta {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .rtl .property-specs {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    /* Social links centered */
    .rtl .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   ADDITIONAL ICON FIXES FOR RTL
   ========================================================================== */

/* Font Awesome icons that need flipping */
.rtl .fa-angle-right { transform: rotate(180deg); }
.rtl .fa-caret-right { transform: rotate(180deg); }
.rtl .fa-long-arrow-right { transform: rotate(180deg); }
.rtl .fa-arrow-circle-right { transform: rotate(180deg); }

/* Icons that should NOT be flipped */
.rtl .fa-phone { transform: none; }
.rtl .fa-envelope { transform: none; }
.rtl .fa-map-marker { transform: none; }
.rtl .fa-bed { transform: none; }
.rtl .fa-bath { transform: none; }
.rtl .fa-ruler-combined { transform: none; }
.rtl .fa-key { transform: none; }
.rtl .fa-handshake { transform: none; }
.rtl .fa-chart-line { transform: none; }
.rtl .fa-shield-halved { transform: none; }
.rtl .fa-building { transform: none; }
.rtl .fa-globe { transform: none; }
.rtl .fa-graduation-cap { transform: none; }
.rtl .fa-file-contract { transform: none; }
.rtl .fa-headset { transform: none; }
.rtl .fa-check { transform: none; }

/* ==========================================================================
   GRADIENT OVERLAYS RTL FIXES
   ========================================================================== */

/* Hero gradient should fade to the left in RTL */
.rtl .hero-slide-overlay,
.rtl .has-gradient-overlay::before {
    background: linear-gradient(
        to left,
        rgba(15, 15, 15, 0.6) 0%,
        rgba(15, 15, 15, 0.4) 50%,
        transparent 100%
    );
}

/* ==========================================================================
   ANIMATION DIRECTION RTL FIXES
   ========================================================================== */

/* Hover translate directions */
.rtl .hover\:translate-x-2:hover {
    transform: translateX(-0.5rem);
}

.rtl .group:hover .group-hover\:translate-x-2 {
    transform: translateX(-0.5rem);
}

/* Slide in animations */
.rtl .slide-in-right {
    animation: slideInRightRTL 0.3s ease forwards;
}

@keyframes slideInRightRTL {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.rtl .slide-in-left {
    animation: slideInLeftRTL 0.3s ease forwards;
}

@keyframes slideInLeftRTL {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scroll to top: corner is set in scripts.js from dir=rtl / .rtl (icon stays up-chevron; no swap like carousel arrows). */
