/* Modern Updates & Enhancements */

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Modern Button Hover */
.tg-btn {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tg-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: width 0.3s ease;
}

.tg-btn:hover::before {
  width: 100%;
}

/* Enhanced Section Headings */
.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--tg-theme-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section-title:hover h2::after {
  width: 100px;
}

/* Premium Shadows */
.premium-shadow {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

/* Smooth entry animation class (if SAL not used) */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .section-title h2::after {
  left: auto;
  right: 0;
}

/* Modern Typography */
body {
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
}

/* Enhanced Responsive Design */
@media (max-width: 1199px) {
  .container.custom-container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 991px) {
  .tgmenu__navbar-wrap {
    display: none !important;
  }

  .mobile-nav-toggler {
    display: block !important;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .tg-header__top-menu ul {
    flex-direction: column;
    gap: 10px;
  }

  .footer__widget {
    margin-bottom: 30px;
  }
}

/* RTL Support Enhancements */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] * {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Fix Arabic text rendering */
html[dir="rtl"] body {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important;
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] div {
  unicode-bidi: embed;
  direction: rtl;
  line-height: 1.8;
  word-spacing: 0.1em;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation {
  flex-direction: row-reverse;
}

html[dir="rtl"] .tg-header__top-menu ul {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer__top .row {
  direction: rtl;
}

html[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

html[dir="rtl"] .slider__content {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .slider__content .title {
  text-align: right !important;
  direction: rtl !important;
  line-height: 1.3 !important;
  word-spacing: 0.1em;
  letter-spacing: 0;
}

html[dir="rtl"] .slider__content p {
  text-align: right !important;
  direction: rtl !important;
  line-height: 1.8 !important;
  word-spacing: 0.1em;
}

html[dir="rtl"] .slider__btn {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
  gap: 15px;
}

html[dir="rtl"] .section-title {
  text-align: right;
}

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

html[dir="rtl"] .form-control,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .tg-btn svg {
  margin-right: 8px;
  margin-left: 0;
  transform: scaleX(-1);
}

/* Fix Arabic text alignment in all elements */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  text-align: right;
  direction: rtl;
}

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

html[dir="rtl"] .section__title .title,
html[dir="rtl"] .section__title .sub-title {
  text-align: right;
}

/* Fix service, team, blog cards */
html[dir="rtl"] .service__item,
html[dir="rtl"] .team__item,
html[dir="rtl"] .blog__item,
html[dir="rtl"] .portfolio__item {
  direction: rtl;
  text-align: right;
}

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

/* Fix contact form */
html[dir="rtl"] .contact__form {
  direction: rtl;
}

html[dir="rtl"] .contact__form .form-group {
  text-align: right;
}

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

/* Fix breadcrumb */
html[dir="rtl"] .breadcrumb__content {
  text-align: right;
  direction: rtl;
}

/* Fix testimonials */
html[dir="rtl"] .testimonial__item {
  text-align: right;
  direction: rtl;
}

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

/* Fix pricing */
html[dir="rtl"] .pricing__box {
  text-align: right;
  direction: rtl;
}

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

/* Fix about section */
html[dir="rtl"] .about__content {
  text-align: right;
  direction: rtl;
}

/* Fix counter statistics */
html[dir="rtl"] .counter__item {
  text-align: center;
}

html[dir="rtl"] .counter__item .counter__content {
  text-align: center;
}

/* Fix why choose us */
html[dir="rtl"] .why-choose-us__item {
  text-align: right;
  direction: rtl;
}

/* Fix FAQ accordion */
html[dir="rtl"] .accordion-item {
  text-align: right;
  direction: rtl;
}

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

/* Fix table */
html[dir="rtl"] .table {
  direction: rtl;
}

html[dir="rtl"] .table th,
html[dir="rtl"] .table td {
  text-align: right;
}

/* Fix modal */
html[dir="rtl"] .modal-content {
  direction: rtl;
}

html[dir="rtl"] .modal-header {
  flex-direction: row-reverse;
}

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

html[dir="rtl"] .modal-footer {
  flex-direction: row-reverse;
}

html[dir="rtl"] .swiper-container {
  direction: rtl;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-right: 0;
  padding-left: 20px;
}

/* RTL Additional Fixes */
html[dir="rtl"] .row {
  direction: rtl;
}

html[dir="rtl"] .col-lg-1,
html[dir="rtl"] .col-lg-2,
html[dir="rtl"] .col-lg-3,
html[dir="rtl"] .col-lg-4,
html[dir="rtl"] .col-lg-5,
html[dir="rtl"] .col-lg-6,
html[dir="rtl"] .col-lg-7,
html[dir="rtl"] .col-lg-8,
html[dir="rtl"] .col-lg-9,
html[dir="rtl"] .col-lg-10,
html[dir="rtl"] .col-lg-11,
html[dir="rtl"] .col-lg-12 {
  direction: rtl;
}

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

html[dir="rtl"] .footer__link li {
  text-align: right;
}

html[dir="rtl"] .brand__item {
  text-align: center;
}

html[dir="rtl"] .slider__btn {
  direction: rtl;
}

html[dir="rtl"] .slider__btn .tg-btn {
  margin-left: 15px;
  margin-right: 0;
}

html[dir="rtl"] .slider__btn .tg-btn:first-child {
  margin-left: 0;
}

/* RTL Layout Fixes - Additional */
html[dir="rtl"] .tgmenu__nav {
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .tgmenu__navbar-wrap {
  order: 2;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation {
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li {
  margin-left: 30px;
  margin-right: 0;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li:first-child {
  margin-left: 0;
}

html[dir="rtl"] .tgmenu__action {
  order: 1;
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .tgmenu__action ul {
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .tgmenu__action ul li {
  margin-left: 20px;
  margin-right: 0;
}

html[dir="rtl"] .tgmenu__action ul li:first-child {
  margin-left: 0;
}

html[dir="rtl"] .logo {
  order: 3;
}

html[dir="rtl"] .slider__bg {
  direction: rtl;
}

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

html[dir="rtl"] .slider__btn {
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .slider__shape {
  direction: ltr;
  pointer-events: none;
  z-index: 1;
}

html[dir="rtl"] .slider__shape img {
  max-width: 100%;
  height: auto;
  opacity: 0.3;
}

html[dir="rtl"] .row {
  direction: rtl;
}

html[dir="rtl"] [class*="col-"] {
  direction: rtl;
}

html[dir="rtl"] .service__item,
html[dir="rtl"] .team__item,
html[dir="rtl"] .portfolio__item,
html[dir="rtl"] .blog__item {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .footer__top {
  direction: rtl;
}

html[dir="rtl"] .footer__link {
  direction: rtl;
}

html[dir="rtl"] .social__links,
html[dir="rtl"] .footer__social ul {
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .search__form {
  direction: rtl;
}

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

html[dir="rtl"] .section__title .sub-title {
  text-align: right;
}

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

/* Fix slider overlay issues */
html[dir="rtl"] .slider__bg-img::before,
html[dir="rtl"] .slider__bg-img::after {
  display: none;
}

/* Fix any absolute positioned decorative elements */
html[dir="rtl"] .about__img-five .shape,
html[dir="rtl"] .portfolio__item .portfolio__thumb::after {
  direction: ltr;
}

/* RTL Mobile Menu */
@media (max-width: 991px) {
  html[dir="rtl"] .mobile-nav {
    direction: rtl;
    text-align: right;
  }
}

/* RTL Additional Layout Fixes */
html[dir="rtl"] .sub-menu {
  right: 0 !important;
  left: auto !important;
  text-align: right;
}

html[dir="rtl"] .sub-menu li {
  text-align: right;
}

html[dir="rtl"] .menu-item-has-children>a::after {
  margin-right: 5px;
  margin-left: 0;
}

html[dir="rtl"] .contact__form .form-group label {
  text-align: right;
}

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

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

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

html[dir="rtl"] .accordion-button {
  text-align: right;
}

html[dir="rtl"] .nav-tabs {
  direction: rtl;
  flex-direction: row-reverse;
}

html[dir="rtl"] .pagination {
  direction: rtl;
  flex-direction: row-reverse;
}

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

html[dir="rtl"] .modal-footer {
  flex-direction: row-reverse;
}

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

html[dir="rtl"] .table {
  direction: rtl;
}

html[dir="rtl"] .table th,
html[dir="rtl"] .table td {
  text-align: right;
}

/* Fix slider overflow issues */
html[dir="rtl"] .slider__bg {
  overflow: hidden;
}

html[dir="rtl"] .slider__bg-img {
  position: absolute;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

html[dir="rtl"] .slider__content {
  position: relative;
  z-index: 2;
}

html[dir="rtl"] .icon {
  margin-left: 10px;
  margin-right: 0;
}

html[dir="rtl"] .tg-btn svg {
  margin-right: 8px;
  margin-left: 0;
}

html[dir="rtl"] ul.list-wrap li::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .tg-header__top-menu ul li {
  margin-left: 30px;
  margin-right: 0;
}

html[dir="rtl"] .tg-header__top-menu ul li:first-child {
  margin-left: 0;
}

html[dir="rtl"] .tg-header__top-menu ul li svg {
  margin-left: 8px;
  margin-right: 0;
}

html[dir="rtl"] .breadcrumb-item+.breadcrumb-item::before {
  content: "\\";
  padding-right: 0.5rem;
  padding-left: 0;
}

html[dir="rtl"] .pagination {
  direction: rtl;
}

html[dir="rtl"] .page-link {
  text-align: center;
}

html[dir="rtl"] .modal-header .close {
  margin: -1rem auto -1rem -1rem;
}

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

html[dir="rtl"] .badge {
  direction: rtl;
}

html[dir="rtl"] .table {
  direction: rtl;
}

html[dir="rtl"] .table th,
html[dir="rtl"] .table td {
  text-align: right;
}

html[dir="rtl"] .input-group-prepend,
html[dir="rtl"] .input-group-append {
  direction: rtl;
}

html[dir="rtl"] .custom-control-label::before,
html[dir="rtl"] .custom-control-label::after {
  right: 0;
  left: auto;
}

html[dir="rtl"] .custom-switch .custom-control-label::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .custom-switch .custom-control-input:checked~.custom-control-label::after {
  transform: translateX(-1.5rem);
}

html[dir="rtl"] .list-group-item {
  text-align: right;
}

html[dir="rtl"] .nav-tabs .nav-item {
  margin-right: 0;
  margin-left: 2px;
}

html[dir="rtl"] .nav-tabs .nav-link {
  border-top-right-radius: 0.25rem;
  border-top-left-radius: 0;
}

html[dir="rtl"] .nav-pills .nav-link {
  border-radius: 0.25rem;
}

html[dir="rtl"] .carousel-control-prev {
  right: 0;
  left: auto;
}

html[dir="rtl"] .carousel-control-next {
  left: 0;
  right: auto;
}

html[dir="rtl"] .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
}

html[dir="rtl"] .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}

/* Modern Card Animations */
.card,
.tg-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover,
.tg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Image Lazy Loading */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Form Enhancements */
input,
textarea,
select {
  transition: all 0.3s ease;
  border: 1px solid var(--tg-border-2);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--tg-theme-primary);
  box-shadow: 0 0 0 3px rgba(37, 98, 86, 0.1);
  outline: none;
}

/* Button Enhancements */
.btn,
.tg-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::after,
.tg-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after,
.tg-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease;
}

.notification-error {
  background: #e74c3c;
}

.notification-success {
  background: #27ae60;
}

.notification-info {
  background: #3498db;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* RTL Notification */
html[dir="rtl"] .notification {
  right: auto;
  left: 20px;
  animation: slideInLeft 0.3s ease;
}

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

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced Scroll Animations */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
}

.fade-in-up-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left-scroll {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right-scroll {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in-scroll {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in-scroll.visible {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced Hover Effects */
.tg-btn,
.btn-primary,
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-btn:hover,
.btn-primary:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tg-btn:active,
.btn-primary:active,
.btn:active {
  transform: translateY(0);
}

/* Link Hover Animation */
a {
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--tg-theme-primary);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* RTL Link Animation */
html[dir="rtl"] a::after {
  left: auto;
  right: 0;
}

/* Disable Hover Underline for Logos and Specific Icons */
.logo a::after,
.footer__logo a::after,
.nav-logo a::after,
.offCanvas__logo a::after,
.menu-tigger::after,
.search-open-btn::after {
  display: none !important;
}

/* Image Hover Effects */
img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

/* Card Stagger Animation */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Shake Animation */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Bounce In Animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounceIn 0.6s ease-out;
}

/* Rotate In Animation */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-200deg);
  }

  to {
    opacity: 1;
    transform: rotate(0);
  }
}

.rotate-in {
  animation: rotateIn 0.6s ease-out;
}

/* Smooth Page Transitions */
.page-transition {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--tg-theme-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Progress Bar Animation */
.progress-bar {
  transition: width 0.6s ease;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--tg-theme-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* RTL Scroll Indicator */
html[dir="rtl"] .scroll-indicator {
  left: auto;
  right: 0;
}

/* Footer Spacing Fix - تقليل المساحات الكبيرة في الفوتر */
.footer__bg {
  padding: 60px 0 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 991.98px) {
  .footer__bg {
    padding: 50px 0 0 !important;
  }
}

@media (max-width: 767.98px) {
  .footer__bg {
    padding: 40px 0 0 !important;
  }
}

.footer__cta-wrap {
  padding-bottom: 30px !important;
}

@media (max-width: 767.98px) {
  .footer__cta-wrap {
    padding-bottom: 20px !important;
  }
}

.footer__top {
  padding: 30px 0 25px !important;
}

@media (max-width: 991.98px) {
  .footer__top {
    padding: 25px 0 20px !important;
  }
}

@media (max-width: 767.98px) {
  .footer__top {
    padding: 20px 0 15px !important;
  }
}

.footer__widget {
  margin-bottom: 25px !important;
}

@media (max-width: 767.98px) {
  .footer__widget {
    margin-bottom: 20px !important;
  }
}

.footer__widget-title {
  margin-bottom: 15px !important;
}

@media (max-width: 767.98px) {
  .footer__widget-title {
    margin-bottom: 12px !important;
  }
}

.footer__bottom {
  padding: 20px 0 !important;
}

@media (max-width: 767.98px) {
  .footer__bottom {
    padding: 15px 0 !important;
  }
}

/* ============================================
   Footer Layout Comprehensive Fixes
   ============================================ */

/* Footer Logo */
.footer__logo {
  margin-bottom: 20px;
}

.footer__logo img {
  max-height: 200px;
  width: auto;
}

/* Footer Content */
.footer__content {
  margin-bottom: 15px;
}

.footer__content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Footer Widget Title */
.footer__widget-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer__widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--tg-theme-primary, #256256);
}

/* RTL Footer Title underline */
html[dir="rtl"] .footer__widget-title::after {
  left: auto;
  right: 0;
}

/* Footer Links */
.footer__link {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link li {
  margin-bottom: 12px;
}

.footer__link li:last-child {
  margin-bottom: 0;
}

.footer__link li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.footer__link li a:hover {
  color: var(--tg-theme-primary, #256256);
  padding-left: 5px;
}

html[dir="rtl"] .footer__link li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

/* Remove underline animation from footer links */
.footer__link li a::after {
  display: none !important;
}

/* Footer Contact */
.footer__contact {
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  line-height: 1.7;
}

.footer__contact .phone,
.footer__contact .mail {
  display: block;
  color: var(--tg-theme-primary, #256256);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer__contact .phone::after,
.footer__contact .mail::after {
  display: none !important;
}

.footer__contact .phone:hover,
.footer__contact .mail:hover {
  color: #fff;
}

/* Footer Social */
.footer__social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.footer__social ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer__social ul li a::after {
  display: none !important;
}

.footer__social ul li a:hover {
  background: var(--tg-theme-primary, #256256);
  transform: translateY(-3px);
}

/* RTL Social Icons */
html[dir="rtl"] .footer__social ul {
  justify-content: flex-start;
}

/* Footer Bottom */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer__bottom .row {
  align-items: center;
}

/* Copyright Text */
.copyright__text {
  text-align: left;
}

.copyright__text p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 14px;
}

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

/* LTR Specific Layout */
html[dir="ltr"] .footer__widget {
  text-align: left;
}

html[dir="ltr"] .footer__link li {
  text-align: left;
}

html[dir="ltr"] .footer__contact {
  text-align: left;
}

/* RTL Specific Layout */
html[dir="rtl"] .footer__widget {
  text-align: right;
}

html[dir="rtl"] .footer__link li {
  text-align: right;
}

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

html[dir="rtl"] .footer__contact .phone,
html[dir="rtl"] .footer__contact .mail {
  direction: ltr;
  unicode-bidi: embed;
  display: flex;
}

/* Fix Footer Row Direction */
html[dir="rtl"] .footer__top .row {
  direction: rtl;
}

html[dir="rtl"] .footer__bottom .row {
  direction: rtl;
}

/* Mobile Footer Responsive */
@media (max-width: 767.98px) {
  .footer__social ul {
    justify-content: center;
    margin-bottom: 15px;
  }

  html[dir="rtl"] .footer__social ul {
    justify-content: center;
  }

  .copyright__text {
    text-align: center;
  }

  html[dir="rtl"] .copyright__text {
    text-align: center;
  }

  .footer__widget {
    text-align: center !important;
  }

  html[dir="rtl"] .footer__widget {
    text-align: center !important;
  }

  .footer__link li {
    text-align: center !important;
  }

  html[dir="rtl"] .footer__link li {
    text-align: center !important;
  }

  .footer__widget-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  html[dir="rtl"] .footer__widget-title::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================
   LTR Specific Styling Fixes
   ============================================ */

/* LTR Navigation */
html[dir="ltr"] .tgmenu__nav {
  flex-direction: row;
}

html[dir="ltr"] .tgmenu__navbar-wrap .navigation {
  flex-direction: row;
}

html[dir="ltr"] .tgmenu__action ul {
  flex-direction: row;
}

/* LTR Header Top Menu */
html[dir="ltr"] .tg-header__top-menu ul {
  flex-direction: row;
  justify-content: flex-end;
}

html[dir="ltr"] .tg-header__top-menu ul li {
  margin-right: 30px;
  margin-left: 0;
}

html[dir="ltr"] .tg-header__top-menu ul li:last-child {
  margin-right: 0;
}

html[dir="ltr"] .tg-header__top-menu ul li svg {
  margin-right: 8px;
  margin-left: 0;
}

/* LTR Slider */
html[dir="ltr"] .slider__content {
  text-align: left;
}

html[dir="ltr"] .slider__btn {
  flex-direction: row;
  justify-content: flex-start;
}

html[dir="ltr"] .slider__btn .tg-btn {
  margin-right: 15px;
  margin-left: 0;
}

html[dir="ltr"] .slider__btn .tg-btn:last-child {
  margin-right: 0;
}

/* LTR Section Titles */
html[dir="ltr"] .section__title {
  text-align: left;
}

html[dir="ltr"] .section__title.text-center {
  text-align: center;
}

/* LTR Cards */
html[dir="ltr"] .service__item,
html[dir="ltr"] .team__item,
html[dir="ltr"] .portfolio__item,
html[dir="ltr"] .blog__item {
  text-align: left;
}

/* LTR Forms */
html[dir="ltr"] .form-control,
html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
  text-align: left;
  direction: ltr;
}

/* LTR Icon placement */
html[dir="ltr"] .tg-btn svg {
  margin-left: 8px;
  margin-right: 0;
}

/* Testimonials layout fix */
.testimonial__area .testimonial-active {
  margin-right: 0;
}

.testimonial__area .testimonial__item-wrap,
.testimonial__area .testimonial-active {
  overflow: hidden;
}

/* LTR List styling */
html[dir="ltr"] ul,
html[dir="ltr"] ol {
  padding-left: 20px;
  padding-right: 0;
}

/* LTR Breadcrumb */
html[dir="ltr"] .breadcrumb__content {
  text-align: left;
}

/* LTR Scroll to Top */
html[dir="ltr"] .scroll__top {
  right: 30px;
  left: auto;
}

/* LTR Dropdown */
html[dir="ltr"] .dropdown-menu {
  left: 0;
  right: auto;
  text-align: left;
}

html[dir="ltr"] .sub-menu {
  left: 0;
  right: auto;
  text-align: left;
}

/* ============================================
   Image Hover Effect Exception for Footer
   ============================================ */
.footer__logo img:hover,
.footer__social ul li a img:hover {
  transform: none;
}

/* Fix all anchor underline animations in footer */
.footer__area a::after {
  display: none !important;
}

/* ============================================
   OffCanvas & Mobile Menu RTL Fixes
   ============================================ */

/* OffCanvas Info Panel Fixes */
.offCanvas__info {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-out;
}

.offCanvas__info.active {
  visibility: visible;
  opacity: 1;
}

html[dir="rtl"] .offCanvas__info {
  left: 0 !important;
  right: auto !important;
  transform: translateX(-100%) !important;
  text-align: right !important;
  direction: rtl !important;
  visibility: hidden;
  opacity: 0;
}

html[dir="rtl"] .offCanvas__info.active {
  transform: translateX(0) !important;
  visibility: visible;
  opacity: 1;
}

html[dir="rtl"] .offCanvas__close-icon {
  left: auto !important;
  right: 20px !important;
}

html[dir="rtl"] .offCanvas__logo {
  text-align: right !important;
}

html[dir="rtl"] .offCanvas__content {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .offCanvas__content p {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .offCanvas__title {
  text-align: right !important;
}

html[dir="rtl"] .offCanvas__info-wrap {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .offCanvas__info-list {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .offCanvas__info-list-item {
  flex-direction: row-reverse !important;
  text-align: right !important;
}

html[dir="rtl"] .offCanvas__info-list-item .icon {
  margin-left: 0 !important;
  margin-right: 15px !important;
}

html[dir="rtl"] .offCanvas__info-list-item p,
html[dir="rtl"] .offCanvas__info-list-item a {
  text-align: right !important;
  direction: rtl !important;
}

/* Keep phone numbers/emails LTR for readability */
html[dir="rtl"] .offCanvas__info-list-item a[href^="tel:"],
html[dir="rtl"] .offCanvas__info-list-item a[href^="mailto:"] {
  direction: ltr !important;
  display: inline-block !important;
}

html[dir="rtl"] .offCanvas__social-wrap {
  text-align: right !important;
}

html[dir="rtl"] .offCanvas__social-wrap ul {
  justify-content: flex-start !important;
  flex-direction: row-reverse !important;
}

/* Mobile Menu RTL */
html[dir="rtl"] .tgmobile__menu {
  left: 0 !important;
  right: auto !important;
  transform: translateX(-100%) !important;
  visibility: hidden;
  opacity: 0;
}

html[dir="rtl"] .tgmobile__menu.active,
html[dir="rtl"].mobile-menu-visible .tgmobile__menu {
  transform: translateX(0) !important;
  visibility: visible;
  opacity: 1;
}

html[dir="rtl"] .tgmobile__menu-box {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .tgmobile__menu-box .close-btn {
  left: auto !important;
  right: 20px !important;
}

html[dir="rtl"] .tgmobile__menu-box .nav-logo {
  text-align: right !important;
}

html[dir="rtl"] .tgmobile__search {
  direction: rtl !important;
}

html[dir="rtl"] .tgmobile__search input {
  text-align: right !important;
  padding-left: 50px !important;
  padding-right: 20px !important;
}

html[dir="rtl"] .tgmobile__search button {
  left: 15px !important;
  right: auto !important;
}

html[dir="rtl"] .tgmobile__menu-outer {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .tgmobile__menu-outer ul li {
  text-align: right !important;
}

html[dir="rtl"] .tgmobile__menu-outer ul li a {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .tgmobile__menu-outer .dropdown-btn {
  left: 0 !important;
  right: auto !important;
}

html[dir="rtl"] .tgmobile__menu .social-links ul {
  justify-content: flex-start !important;
  flex-direction: row-reverse !important;
}

/* Desktop Navigation RTL Fixes */
html[dir="rtl"] .tgmenu__navbar-wrap .navigation {
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li {
  margin-left: 30px !important;
  margin-right: 0 !important;
  float: none !important;
  /* Ensure no float interference */
}

/* Override arabic-design css which removes margin from first child */
html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li:first-child {
  margin-left: 30px !important;
}

/* Robust spacing: Any li following another li gets margin-right (pushing away from the previous one in RTL row-reverse context) */
html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li+li {
  margin-right: 30px !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li:last-child {
  margin-left: 0 !important;
}

/* Dropdown Sub-menu RTL */
html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li .sub-menu {
  right: 0 !important;
  left: auto !important;
  text-align: right !important;
  transform-origin: top right !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li .sub-menu li {
  text-align: right !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li .sub-menu li a {
  text-align: right !important;
  padding-right: 0 !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li .sub-menu li a::before {
  left: auto !important;
  right: 0 !important;
}

/* Top Bar RTL */
html[dir="rtl"] .tg-header__top-menu ul {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
}

html[dir="rtl"] .tg-header__top-menu ul li {
  margin-left: 30px !important;
  margin-right: 0 !important;
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .tg-header__top-menu ul li:first-child {
  margin-left: 0 !important;
}

html[dir="rtl"] .tg-header__top-menu ul li svg {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

/* Header Actions RTL */
html[dir="rtl"] .tgmenu__action ul {
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .tgmenu__action ul li {
  margin-left: 15px !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .tgmenu__action ul li:first-child {
  margin-left: 0 !important;
}

/* Services Section RTL Fixes */
html[dir="rtl"] .services__icon-wrap {
  right: auto !important;
  left: 0 !important;
  transform: scaleX(-1) !important;
}

html[dir="rtl"] .services__icon {
  transform: scaleX(-1) !important;
}

html[dir="rtl"] .services__item:hover .services__icon {
  transform: scaleX(-1) rotateY(180deg) !important;
}

html[dir="rtl"] .services__item::after {
  right: auto !important;
  left: 93px !important;
  transform: rotate(270deg) scaleY(-1) !important;
  /* Flip vertically essentially mirrors horizontal for encoded shape? Testing scaleX(-1) rotated */
  transform: scaleX(-1) rotate(270deg) !important;
}

/* Ensure title doesn't overlap if width calculation is tight */
html[dir="rtl"] .services__content .title {
  width: 70% !important;
  margin-left: auto !important;
  /* Push to right */
  margin-right: 0 !important;
}

/* Search Popup RTL */
html[dir="rtl"] .search__popup {
  direction: rtl;
}

html[dir="rtl"] .search__wrapper {
  direction: rtl;
}

html[dir="rtl"] .search__form {
  direction: rtl;
}

html[dir="rtl"] .search__input {
  direction: rtl;
}

html[dir="rtl"] .search-input-field {
  text-align: right;
  padding-left: 60px;
  padding-right: 20px;
}

html[dir="rtl"] .search__input button {
  left: 20px;
  right: auto;
}

html[dir="rtl"] .search__close {
  left: 20px;
  right: auto;
}

/* ============================================
   Contact Info RTL Fixes
   ============================================ */

html[dir="rtl"] .contact__info-item {
  flex-direction: row !important;
  text-align: right !important;
}

html[dir="rtl"] .contact__info-item .icon {
  margin-left: 0 !important;
  margin-right: 0 !important;
  /* Gap handles spacing, or let gap do it. Main.css has gap:20px */
}

html[dir="rtl"] .contact__info-item .content {
  text-align: right !important;
  padding-right: 20px !important;
  /* Add padding if gap isn't supported or behaves weirdly */
  padding-left: 0 !important;
}

html[dir="rtl"] .contact__info-item .content h4 {
  text-align: right !important;
}

html[dir="rtl"] .contact__info-item .content p,
html[dir="rtl"] .contact__info-item .content a {
  text-align: right !important;
}

/* Keep phone numbers/emails LTR */
html[dir="rtl"] .contact__info-item .content a[href^="tel:"],
html[dir="rtl"] .contact__info-item .content a[href^="mailto:"] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block !important;
}

/* General RTL Layout Improvements */

/* Hide mobile toggler on desktop in RTL */
@media (min-width: 1200px) {
  html[dir="rtl"] .mobile-nav-toggler {
    display: none !important;
  }
}

/* Fix contact section in RTL */
html[dir="rtl"] .contact__content {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .form-grp input,
html[dir="rtl"] .form-grp textarea {
  text-align: right !important;
  direction: rtl !important;
}

/* ============================================
   About Section RTL Fixes
   ============================================ */

/* About Image Wrapper */
html[dir="rtl"] .about__img {
  margin-left: 0 !important;
  margin-right: -30px !important;
  /* Mirror negative margin */
  padding-right: 0 !important;
  padding-left: 40px !important;
  /* Mirror padding */
}

/* Experience Badge Position */
html[dir="rtl"] .experience__wrap {
  left: auto !important;
  right: 0 !important;
  border-radius: 24px 0 15px 0 !important;
  /* Mirror border radius */
}

/* About Shape Position */
html[dir="rtl"] .about__img .shape {
  right: auto !important;
  left: -79px !important;
}

/* About Content */
html[dir="rtl"] .about__content {
  text-align: right !important;
}

html[dir="rtl"] .about__list-item {
  text-align: right !important;
  flex-direction: row-reverse !important;
}

html[dir="rtl"] .about__list-item .icon {
  margin-right: 0 !important;
  margin-left: 20px !important;
}

html[dir="rtl"] .about__content-inner {}

html[dir="rtl"] .about__content-video {
  margin-right: 30px !important;
  margin-left: 0 !important;
}

html[dir="rtl"] .contact__form-wrap {
  direction: rtl;
}

html[dir="rtl"] .contact__form {
  direction: rtl;
}

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

html[dir="rtl"] .contact__form .form-grp {
  text-align: right;
}

/* About Section - video image overlay */
.about__img-video {
  position: relative;
}

.about__img-video .video__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.about__img-video .img-two {
  display: block;
}

/* Fix glass card in RTL */
html[dir="rtl"] .glass-card {
  direction: rtl;
  text-align: right;
}

/* Fix inner contact wrap */
html[dir="rtl"] .contact__inner-wrap {
  direction: rtl;
}

html[dir="rtl"] .contact__inner-wrap .shape {
  transform: scaleX(-1);
}

/* ============================================
   Language Button Styling Override
   ============================================ */

.lang-btn {
  background: #fff !important;
  border: 1px solid #eaeaea !important;
  color: var(--tg-heading-color, #1a1a1a) !important;
  padding: 14px 24px !important;
  /* Match tg-btn height */
  border-radius: 50px !important;
  /* Pill shape */
  font-weight: 700 !important;
  font-family: "Cairo", sans-serif !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  height: auto !important;
  justify-content: center !important;
  min-width: 130px;
  /* Ensure minimum width */
}

.lang-btn::before {
  display: none !important;
  /* Remove gradient overlay from custom.css */
}

.lang-btn:hover {
  border-color: var(--tg-theme-primary) !important;
  color: var(--tg-theme-primary) !important;
  background: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.lang-btn .lang-icon {
  width: 20px !important;
  height: 20px !important;
  color: inherit !important;
}

.lang-btn .lang-text {
  font-size: 15px !important;
  line-height: 1 !important;
  margin-top: 2px !important;
  /* Visual alignment */
}

/* RTL Specific adjustments for Lang Button */
html[dir="rtl"] .lang-btn {
  flex-direction: row !important;
  /* Keep icon left, text right? Or standard */
}

/* Dropdown Menu Polish */
.header-lang .dropdown-menu {
  border: 1px solid #eaeaea !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  padding: 10px !important;
  margin-top: 15px !important;
}

.header-lang .dropdown-item {
  border-radius: 8px !important;
  padding: 10px 15px !important;
  font-weight: 600 !important;
}

.header-lang .dropdown-item:hover,
.header-lang .dropdown-item.active {
  background-color: rgba(37, 98, 86, 0.05) !important;
  /* Light primary */
  color: var(--tg-theme-primary) !important;
}

.header-lang .dropdown-item.active {
  background-color: var(--tg-theme-primary) !important;
  color: #fff !important;
}

/* Ensure nice spacing in action area */
html[dir="rtl"] .tgmenu__action ul {
  gap: 15px !important;
  /* Space between search, button, lang */
}

html[dir="rtl"] .tgmenu__action ul li {
  margin: 0 !important;
  /* Reset margins, use gap */
}

/* ============================================
   Arabic Header & Language Dropdown RTL Fixes
   ============================================ */

/* Hide Google Translate elements that may appear */
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
font[style="background-color: rgb(255, 255, 224);"],
.goog-te-menu-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

/* RTL Language Button Improvements */
html[dir="rtl"] .header-lang {
  position: relative;
  z-index: 1000;
}

html[dir="rtl"] .header-lang .dropdown {
  position: relative;
}

html[dir="rtl"] .header-lang .dropdown-menu {
  left: auto !important;
  right: 0 !important;
  text-align: right !important;
  min-width: 150px !important;
  transform: none !important;
  top: 100% !important;
  margin-top: 10px !important;
  z-index: 1001 !important;
}

html[dir="rtl"] .header-lang .dropdown-item {
  text-align: right !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

html[dir="rtl"] .header-lang .lang-flag {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Fix header top menu alignment in Arabic */
html[dir="rtl"] .tg-header__top-menu ul {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
}

html[dir="rtl"] .tg-header__top-menu ul li {
  display: flex !important;
  align-items: center !important;
  flex-direction: row-reverse !important;
  gap: 8px !important;
}

html[dir="rtl"] .tg-header__top-menu ul li svg {
  order: 2 !important;
  margin-left: 8px !important;
  margin-right: 0 !important;
}

/* Navigation menu RTL fixes */
html[dir="rtl"] .tgmenu__nav {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: space-between !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap.tgmenu__main-menu {
  order: 2 !important;
}

html[dir="rtl"] .tgmenu__action {
  order: 1 !important;
}

html[dir="rtl"] .logo {
  order: 3 !important;
}

/* Sub-menu RTL positioning */
html[dir="rtl"] .navigation>li.menu-item-has-children>.sub-menu {
  left: auto !important;
  right: 0 !important;
  text-align: right !important;
}

/* Dropdown arrow RTL */
html[dir="rtl"] .lang-btn .lang-arrow {
  transition: transform 0.3s ease;
}

html[dir="rtl"] .header-lang .dropdown.show .lang-arrow {
  transform: rotate(180deg);
}

/* About Page (Area Four) RTL refinements */
html[dir="rtl"] .about__area-four {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .about__content-four {
  padding-right: 40px;
  padding-left: 0;
  text-align: right;
}

@media (max-width: 991.98px) {
  html[dir="rtl"] .about__content-four {
    padding-right: 0;
    margin-top: 50px;
    text-align: center;
  }
}

html[dir="rtl"] .about__img-four {
  margin-left: 30px;
  margin-right: 0;
  position: relative;
}

@media (max-width: 991.98px) {
  html[dir="rtl"] .about__img-four {
    margin-left: 0;
  }
}

/* Satisfaction Badge RTL */
html[dir="rtl"] .satisfaction__wrap {
  left: auto !important;
  right: -20px !important;
  bottom: 30px !important;
  border-radius: 0 21px 21px 21px !important;
  background: linear-gradient(135deg,
      var(--tg-theme-primary) 0%,
      #1a453d 100%) !important;
  padding: 30px 25px !important;
  box-shadow: 0 15px 35px rgba(37, 98, 86, 0.3) !important;
}

@media (max-width: 767.98px) {
  html[dir="rtl"] .satisfaction__wrap {
    right: 0 !important;
    left: 0 !important;
    bottom: -20px !important;
    margin: 0 auto;
    max-width: 180px;
    padding: 20px 15px !important;
  }
}

/* Feature List RTL on About Page */
html[dir="rtl"] .about__content-inner-three ul.choose__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  padding: 0;
}

html[dir="rtl"] .about__content-inner-three ul.choose__list li {
  display: flex !important;
  flex-direction: row !important;
  /* Keep icon right of text */
  align-items: center !important;
  gap: 15px !important;
  background: #f8f9fa;
  padding: 12px 20px !important;
  border-radius: 10px;
  border-right: 4px solid var(--tg-theme-primary);
  font-weight: 700 !important;
  color: var(--tg-heading-color);
  transition: all 0.3s ease;
}

html[dir="rtl"] .about__content-inner-three ul.choose__list li:hover {
  transform: translateX(-10px);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

html[dir="rtl"] .about__content-inner-three ul.choose__list li svg {
  flex-shrink: 0;
  color: var(--tg-theme-primary);
}

/* About Page Bottom Section */
html[dir="rtl"] .about__content-bottom.about__content-bottom-two {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 767.98px) {
  html[dir="rtl"] .about__content-bottom.about__content-bottom-two {
    flex-direction: column !important;
    gap: 30px;
  }
}

html[dir="rtl"] .about__rating {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 15px;
}

html[dir="rtl"] .about__rating .thumb img:not(:first-child) {
  margin-right: -20px;
  margin-left: 0;
}

/* Services Area RTL fixes */
html[dir="rtl"] .services__area .section__title p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Testimonial Area Four RTL */
html[dir="rtl"] .testimonial__area-four .section__title h2 {
  font-size: 38px;
}

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

html[dir="rtl"] .testimonial__avatar-two {
  flex-direction: row !important;
}

html[dir="rtl"] .testimonial__avatar-two .content {
  padding-right: 15px;
  padding-left: 0;
}

/* Contact Area Three RTL */
html[dir="rtl"] .contact__area-three .contact__content-two {
  text-align: right;
}

html[dir="rtl"] .contact__info-item-two {
  flex-direction: row !important;
  gap: 20px;
}

html[dir="rtl"] .contact__form-wrap-three {
  text-align: right;
}

html[dir="rtl"] .contact__form-two .form-grp input,
html[dir="rtl"] .contact__form-two .form-grp textarea {
  text-align: right;
}

/* Breadcrumb RTL */
html[dir="rtl"] .breadcrumb__content {
  text-align: center;
}

html[dir="rtl"] .breadcrumb {
  justify-content: center;
  flex-direction: row-reverse;
}

html[dir="rtl"] .breadcrumb-separator {
  margin: 0 10px;
}

/* ============================================
   Enhanced RTL Navbar Fixes
   ============================================ */

/* Main navbar wrapper - RTL layout */
html[dir="rtl"] .tgmenu__wrap {
  direction: rtl;
}

html[dir="rtl"] .tgmenu__nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
}

/* Logo on the right for RTL */
html[dir="rtl"] .logo {
  order: 3 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Navigation menu in center */
html[dir="rtl"] .tgmenu__navbar-wrap.tgmenu__main-menu {
  order: 2 !important;
  margin: 0 auto !important;
}

/* Action buttons on the left for RTL */
html[dir="rtl"] .tgmenu__action {
  order: 1 !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Navigation items reverse order */
html[dir="rtl"] .tgmenu__navbar-wrap .navigation {
  display: flex !important;
  flex-direction: row-reverse !important;
  gap: 5px;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 15px;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li>a {
  direction: rtl;
  text-align: right;
}

/* Action items RTL */
html[dir="rtl"] .tgmenu__action ul.list-wrap {
  display: flex !important;
  flex-direction: row-reverse !important;
  gap: 15px !important;
}

html[dir="rtl"] .tgmenu__action ul.list-wrap>li {
  margin: 0 !important;
}

/* Sub-menu positioning for RTL */
html[dir="rtl"] .navigation>li.menu-item-has-children>.sub-menu {
  left: auto !important;
  right: 0 !important;
  text-align: right !important;
}

html[dir="rtl"] .navigation>li.menu-item-has-children>.sub-menu li {
  text-align: right;
}

html[dir="rtl"] .navigation>li.menu-item-has-children>.sub-menu li a {
  text-align: right;
  direction: rtl;
}

/* Header top bar RTL */
html[dir="rtl"] .tg-header__top {
  direction: rtl;
}

html[dir="rtl"] .tg-header__top-menu {
  direction: rtl;
}

html[dir="rtl"] .tg-header__top-menu ul {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
}

html[dir="rtl"] .tg-header__top-menu ul li {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 15px 0 0 !important;
}

html[dir="rtl"] .tg-header__top-menu ul li:last-child {
  margin-right: 0 !important;
}

html[dir="rtl"] .tg-header__top-menu ul li svg {
  margin-left: 8px !important;
  margin-right: 0 !important;
}

/* Mobile menu RTL */
html[dir="rtl"] .mobile-nav-toggler {
  order: 0 !important;
}

/* Language dropdown specific RTL */
html[dir="rtl"] .header-lang {
  direction: ltr;
}

html[dir="rtl"] .header-lang .dropdown-menu {
  left: 0 !important;
  right: auto !important;
  text-align: left !important;
}

html[dir="rtl"] .header-lang .dropdown-item {
  direction: ltr;
  text-align: left !important;
}

/* Breadcrumb area improvements */
html[dir="rtl"] .breadcrumb__area {
  direction: rtl;
}

html[dir="rtl"] .breadcrumb__content {
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .breadcrumb__content .title {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .breadcrumb {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px;
}

html[dir="rtl"] .breadcrumb span {
  direction: rtl;
}

/* Services RTL */
html[dir="rtl"] .services__item {
  direction: rtl;
  text-align: right;
}

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

html[dir="rtl"] .services__content .title {
  text-align: right;
}

html[dir="rtl"] .tg-text-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 8px;
}

html[dir="rtl"] .tg-text-btn svg {
  transform: scaleX(-1);
}

/* ============================================
   Complete RTL Navbar Fix - Arabic Layout (Clean Rewrite)
   ============================================ */

/* 1. Main Container - Force RTL Direction */
html[dir="rtl"] .tgmenu__wrap,
html[dir="rtl"] .tgmenu__nav {
  direction: rtl !important;
  text-align: right;
}

html[dir="rtl"] .tgmenu__nav {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  flex-wrap: nowrap !important;
  /* Prevent wrapping */
}

/* 2. Logo - Should be on the Right naturally in RTL */
html[dir="rtl"] .logo {
  order: 0 !important;
  /* Default visual order */
  margin-left: 30px !important;
  /* Space between logo and menu */
  margin-right: 0 !important;
  flex-shrink: 0;
}

/* 3. Main Menu - Hidden on mobile, Flex on Desktop */
html[dir="rtl"] .tgmenu__navbar-wrap.tgmenu__main-menu {
  order: 1 !important;
  flex-grow: 1;
  display: none !important;
  /* Hide by default for mobile */
  justify-content: flex-start !important;
  margin: 0 !important;
}

@media (min-width: 1200px) {
  html[dir="rtl"] .tgmenu__navbar-wrap.tgmenu__main-menu {
    display: flex !important;
    /* Show on desktop */
  }
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  gap: 25px !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  float: none !important;
}

html[dir="rtl"] .tgmenu__navbar-wrap .navigation>li>a {
  display: block !important;
  padding: 10px 0 !important;
  /* Clickable area */
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: "Cairo", sans-serif !important;
  white-space: nowrap !important;
  /* Prevent text wrap */
  position: relative;
  /* Ensure no huge margins */
  margin: 0 !important;
}

/* 4. Action Buttons - Should be on the Left naturally in RTL */
html[dir="rtl"] .tgmenu__action {
  order: 2 !important;
  margin-right: auto !important;
  /* Push to left if needed, or just let flex handle it */
  margin-left: 0 !important;
  flex-shrink: 0;
}

html[dir="rtl"] .tgmenu__action .list-wrap {
  display: flex !important;
  flex-direction: row !important;
  /* Natural RTL */
  align-items: center !important;
  gap: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[dir="rtl"] .tgmenu__action .list-wrap>li {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
}

/* ----------------------------------------------------
   Dropdown & Submenu Fixes
   ---------------------------------------------------- */

/* Submenu positioning */
html[dir="rtl"] .navigation>li.menu-item-has-children>.sub-menu {
  top: 100% !important;
  /* Standard drop down */
  right: 0 !important;
  /* Align right edge with parent */
  left: auto !important;
  text-align: right !important;
  transform-origin: top right !important;
  min-width: 220px !important;
}

html[dir="rtl"] .sub-menu li a {
  text-align: right !important;
  padding-right: 20px !important;
  padding-left: 10px !important;
  display: block;
}

/* Language Dropdown */
html[dir="rtl"] .header-lang {
  position: relative;
}

/* Keep Lang Button LTR internally if needed for icon/text order, or RTL */
html[dir="rtl"] .header-lang .lang-btn {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  /* Keep natural RTL flow: Icon-Text-Arrow? */
  gap: 5px !important;
}

/* Force specific visual order for Lang button if needed */
html[dir="rtl"] .header-btn .tg-btn {
  margin: 0 !important;
  font-family: "Cairo", sans-serif !important;
}

/* Header Top Bar */
html[dir="rtl"] .tg-header__top-menu ul {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
}

html[dir="rtl"] .tg-header__top-menu ul li {
  display: flex !important;
  flex-direction: row !important;
}

/* Mobile Toggler */
html[dir="rtl"] .mobile-nav-toggler {
  margin-left: 20px !important;
}

/* Fix sticky header overrides */
html[dir="rtl"] .sticky-menu .tgmenu__nav {
  display: flex !important;

  justify-content: space-between !important;
}

/* ============================================
   Enhanced Arabic About Us Section Design
   ============================================ */

/* Section Layout & Spacing */
html[dir="rtl"] .about__area {
  direction: rtl;
  text-align: right;
  padding-top: 100px;
  /* Enhanced spacing */
  padding-bottom: 80px;
}

html[dir="rtl"] .about__content {
  padding-right: 40px;
  /* Add breathing room from image */
  padding-left: 0;
}

/* Typography Enhancements */
html[dir="rtl"] .about__content .sub-title {
  font-family: "Cairo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--tg-theme-primary);
  margin-bottom: 10px;
  display: inline-block;
}

html[dir="rtl"] .about__content .title {
  font-family: "Cairo", sans-serif;
  font-size: 36px;
  /* Larger title */
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 25px;
  color: var(--tg-heading-color);
}

html[dir="rtl"] .about__content p {
  font-family: "Cairo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--tg-body-color);
  margin-bottom: 30px;
  text-align: justify;
  /* Better reading flow */
}

/* Image Styling Improvements */
/* --- Premium About Section RTL Redesign --- */
html[dir="rtl"] .about__img {
  margin-right: 0 !important;
  margin-left: 30px !important;
  position: relative;
}

html[dir="rtl"] .about__img .main-img {
  border-radius: 30px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12) !important;
  border: 8px solid #fff !important;
  transition: transform 0.5s ease;
  width: 100% !important;
  height: auto;
}

html[dir="rtl"] .about__img:hover .main-img {
  transform: translateY(-10px);
}

html[dir="rtl"] .experience__wrap {
  left: -40px !important;
  right: auto !important;
  bottom: 50px !important;
  writing-mode: horizontal-tb !important;
  transform: rotate(0deg) !important;
  width: auto !important;
  min-height: auto !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px rgba(37, 98, 86, 0.3) !important;
  background: linear-gradient(135deg,
      var(--tg-theme-primary) 0%,
      #1a453d 100%) !important;
  padding: 25px 35px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  z-index: 10;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

html[dir="rtl"] .experience__wrap .count {
  font-family: "Cairo", sans-serif !important;
  font-weight: 800 !important;
  font-size: 45px !important;
  margin-bottom: 0 !important;
  color: #fff !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
}

html[dir="rtl"] .experience__wrap .count span {
  font-size: 28px !important;
  margin-left: 8px !important;
  opacity: 0.9;
}

html[dir="rtl"] .experience__wrap .text {
  font-family: "Cairo", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #fff !important;
  max-width: 120px;
  text-align: right;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  padding-right: 15px;
  margin-right: 15px;
}

html[dir="rtl"] .about__content {
  padding-right: 40px !important;
}

html[dir="rtl"] .about__content .title {
  font-size: 44px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  margin-bottom: 30px !important;
  color: var(--tg-heading-color);
}

html[dir="rtl"] .about__content p {
  font-size: 19px !important;
  line-height: 1.9 !important;
  color: #4a5568 !important;
  margin-bottom: 40px !important;
}

/* Features List Styling Improvement */
html[dir="rtl"] .about__list-wrap .list-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

html[dir="rtl"] .about__list-wrap .list-wrap li {
  background: #fcfcfc;
  padding: 12px 20px !important;
  border-radius: 12px;
  font-weight: 700 !important;
  font-size: 17px !important;
  border-right: 4px solid var(--tg-theme-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

html[dir="rtl"] .about__list-wrap .list-wrap li:hover {
  transform: translateX(-8px);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Responsive Handling */
@media (max-width: 991.98px) {
  html[dir="rtl"] .about__content {
    padding-right: 0 !important;
    margin-top: 60px;
    text-align: center !important;
  }

  html[dir="rtl"] .about__img {
    margin-left: 0 !important;
  }

  html[dir="rtl"] .experience__wrap {
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto;
    bottom: -30px !important;
    max-width: 280px;
    justify-content: center !important;
  }
}

/* ============================================
   Repair Arabic Mobile Menu (RTL)
   ============================================ */

html[dir="rtl"] .tgmobile__menu {
  left: 0 !important;
  right: auto !important;
  transform: translateX(-101%) !important;
  /* Hide on the Left */
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86) !important;
  z-index: 9999 !important;
}

body.mobile-menu-visible .tgmobile__menu {
  transform: translateX(0) !important;
  /* Slide in to 0 */
  visibility: visible !important;
  opacity: 1 !important;
}

html[dir="rtl"] .tgmobile__menu-box {
  left: 0 !important;
  right: auto !important;
  text-align: right !important;
  border-radius: 0 0 0 0 !important;
  /* Reset */
}

html[dir="rtl"] .tgmobile__menu .close-btn {
  left: 15px !important;
  /* Close button on the top-left for RTL side menu */
  right: auto !important;
}

html[dir="rtl"] .tgmobile__menu-outer ul li a {
  text-align: right !important;
  padding: 10px 25px 10px 60px !important;
  /* Mirror of LTR padding */
}

html[dir="rtl"] .tgmobile__menu-outer ul li.menu-item-has-children .dropdown-btn {
  left: 20px !important;
  /* Dropdown arrow on the left */
  right: auto !important;
}

html[dir="rtl"] .tgmobile__menu-outer ul li ul li a {
  padding-right: 45px !important;
}

html[dir="rtl"] .tgmobile__menu-backdrop {
  left: 0 !important;
  right: 0 !important;
}

/* Ensure mobile header stays balanced */
@media (max-width: 1199.98px) {
  html[dir="rtl"] .tgmenu__nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    height: 70px !important;
  }
}

/* ============================================
   Arabic Off-Canvas & Logo Enhancements
   ============================================ */

/* 1. Force Off-Canvas to open from the Right in RTL */
html[dir="rtl"] .offCanvas__info {
  left: auto !important;
  right: 0 !important;
  transform: translateX(100%) !important;
  /* Start off-screen on the right */
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86) !important;
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .offCanvas__info.active {
  transform: translateX(0) !important;
  /* Slide in to the edge */
  visibility: visible;
  opacity: 1;
}

/* 2. Larger Logo in Off-Canvas */
.offCanvas__logo img {
  max-height: 230px !important;
  /* Significantly larger as requested */
  width: auto !important;
  transition: transform 0.3s ease;
}

.offCanvas__logo img:hover {
  transform: scale(1.05);
}

@media (max-width: 767.98px) {
  .offCanvas__logo img {
    max-height: 80px !important;
    /* Balanced for mobile */
  }
}

/* Internal alignment fixes for Arabic content in off-canvas */
html[dir="rtl"] .offCanvas__title {
  text-align: right !important;
}

html[dir="rtl"] .offCanvas__info-list-item {
  flex-direction: row !important;
}

html[dir="rtl"] .offCanvas__info-list-item .content {
  padding-right: 15px;
  padding-left: 0;
}

html[dir="rtl"] .offCanvas__close-icon {
  left: 30px !important;
  /* Cross button to the left in RTL */
  right: auto !important;
}

html[dir="rtl"] .offCanvas__close-icon button {
  position: absolute;
  left: 0 !important;
  right: auto !important;
}