/* Urdu font - MUST be first */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* RTL Support for Urdu Language */

/* Base RTL adjustments */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .navbar-nav {
    margin-right: 0;
    margin-left: auto;
    list-style: none;
}

[dir="rtl"] .navbar-nav .nav-item {
    list-style: none;
}

[dir="rtl"] .dropdown-menu {
    list-style: none;
    padding-left: 0;
    text-align: right;
}

[dir="rtl"] .dropdown-menu li {
    list-style: none;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
}

/* Top bar RTL */
[dir="rtl"] .top-bar-contact {
    direction: rtl;
}

[dir="rtl"] .top-bar-address {
    direction: rtl;
}

/* Hero section RTL */
[dir="rtl"] .hero-content .col-md-6.hero-english {
    text-align: right;
}

/* Cards RTL */
[dir="rtl"] .card-body {
    text-align: right;
}

/* Forms RTL */
[dir="rtl"] .form-label,
[dir="rtl"] label {
    text-align: right;
}

[dir="rtl"] .form-check {
    text-align: right;
}

/* Back button RTL */
[dir="rtl"] .page-back-btn {
    direction: rtl;
    display: inline-flex;
    align-items: center;
}

[dir="rtl"] .page-back-btn i {
    margin-right: 0;
    margin-left: 0.5rem;
    transform: scaleX(-1);
}

/* Language switcher RTL */
[dir="rtl"] .lang-switcher-wrapper {
    margin-left: 0;
    margin-right: auto;
    text-align: center;
}

/* Footer RTL */
[dir="rtl"] footer {
    text-align: right;
}

[dir="rtl"] footer .text-center {
    text-align: center !important;
}

/* About photos RTL */
[dir="rtl"] .about-photo-grid {
    direction: rtl;
}

/* Star rating RTL */
[dir="rtl"] .star-rating {
    direction: ltr;
    display: inline-block;
}

/* Admin panel RTL */
[dir="rtl"] .content-wrapper {
    direction: rtl;
}

[dir="rtl"] .page-back-btn i.fas.fa-arrow-left::before {
    content: "\f061";
}

/* Bootstrap RTL overrides */
[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .pe-1 { padding-right: 0 !important; padding-left: 0.25rem !important; }
[dir="rtl"] .pe-2 { padding-right: 0 !important; padding-left: 0.5rem !important; }
[dir="rtl"] .ps-1 { padding-left: 0 !important; padding-right: 0.25rem !important; }
[dir="rtl"] .ps-2 { padding-left: 0 !important; padding-right: 0.5rem !important; }
[dir="rtl"] .float-end { float: left !important; }
[dir="rtl"] .float-start { float: right !important; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }

/* Urdu font */
[dir="rtl"] body {
    font-family: 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* WhatsApp float RTL */
[dir="rtl"] .whatsapp-float {
    left: 20px;
    right: auto;
}

/* Breadcrumb RTL */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    padding-right: 0;
    padding-left: 0.5rem;
}

/* Brand/Logo RTL */
[dir="rtl"] .brand-signature {
    flex-direction: row-reverse;
}
[dir="rtl"] .brand-wordmark {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
[dir="rtl"] .brand-signature-footer {
    flex-direction: row-reverse;
}

/* Hero section RTL */
[dir="rtl"] .hero-content {
    direction: rtl;
}
[dir="rtl"] .hero-english {
    text-align: right;
}
[dir="rtl"] .hero-arabic {
    text-align: right;
}
[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

/* Card RTL */
[dir="rtl"] .card-ribbon {
    right: auto;
    left: 0;
    transform: rotate(-45deg);
}
[dir="rtl"] .about-photo-item figcaption {
    left: auto;
    right: 0;
}

/* Dropdown RTL */
[dir="rtl"] .dropdown-menu.show {
    left: auto;
    right: 0;
}
[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

/* Footer quick actions RTL */
[dir="rtl"] .footer-quick-actions-grid {
    direction: rtl;
}

/* Page header RTL */
[dir="rtl"] .page-header {
    flex-direction: row-reverse;
}
[dir="rtl"] .review-header {
    flex-direction: row-reverse;
}
[dir="rtl"] .admin-page-header {
    flex-direction: row-reverse;
}

/* Form actions RTL */
[dir="rtl"] .form-actions {
    flex-direction: row-reverse;
}
[dir="rtl"] .admin-form-actions {
    flex-direction: row-reverse;
}

/* Hero section subtitle RTL */
[dir="rtl"] .hero-section .lead {
    text-align: right;
}

/* Admin table RTL */
[dir="rtl"] .admin-wrapper .table th,
[dir="rtl"] .admin-wrapper .table td {
    text-align: right;
}
