.semi-bold {
  font-weight: 600;
}

/* Language Switcher Styles */

.language-switcher {
  display: inline-block;
  margin-left: 15px;
}

.language-switcher a {
  color: #222;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 300ms ease;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a.active {
  color: #ff6b70;
  background: rgba(255, 107, 112, 0.1);
}

.language-switcher span {
  color: #666;
  margin: 0 2px;
}

[dir='rtl'] .language-switcher {
  margin-left: 0;
  margin-right: 15px;
}

/* Sticky header language switcher */
.sticky-header .language-switcher-sticky {
  margin-left: 16px;
  position: relative;
  z-index: 5;
}
.sticky-header .language-dropdown {
  position: relative;
  display: inline-block;
}
.sticky-header .language-btn {
  background: linear-gradient(135deg, #ff7162, #ff4b5c);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 113, 98, 0.35);
  transition: 0.25s ease;
}
.sticky-header .language-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 113, 98, 0.45);
}
.sticky-header .language-btn .fa-globe {
  font-size: 12px;
  opacity: 0.9;
}
.sticky-header .language-btn .fa-chevron-down {
  font-size: 10px;
  transition: transform 0.25s ease;
}
.sticky-header .language-dropdown.active .fa-chevron-down {
  transform: rotate(180deg);
}
.sticky-header .language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.25s ease;
  overflow: hidden;
}
.sticky-header .language-dropdown.active .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sticky-header .lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: #222;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s ease;
}
.sticky-header .lang-option:hover {
  background: #fff1ef;
  color: #ff4b5c;
}
.sticky-header .lang-option.active {
  background: rgba(255, 113, 98, 0.1);
  color: #ff4b5c;
}
@media (max-width: 991px) {
  .sticky-header .language-switcher-sticky {
    margin: 12px 0 0;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
  }
  .sticky-header .language-dropdown {
    width: 100%;
  }
  .sticky-header .language-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
  }
  .sticky-header .language-options {
    position: relative;
    top: 8px;
    left: auto;
    right: auto;
    min-width: 100%;
    transform: translateY(-6px);
  }
  .sticky-header .language-dropdown.active .language-options {
    transform: translateY(0);
  }
  .sticky-header .lang-option {
    padding: 10px 14px;
    font-size: 14px;
  }
}
[dir='rtl'] .sticky-header .language-options {
  right: auto;
  left: 0;
}

/* Pricing Section Styles */
.pricing-section .category-title h2 {
  color: #333;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.pricing-section .category-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff7162;
}

.pricing-section .installment-info {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #ff7162;
}

.pricing-table {
  margin-bottom: 30px;
  height: 100%;
}

.pricing-section {
  padding: 80px 0;
}

.mb-5 {
  margin-bottom: 3rem;
}

@media (max-width: 767px) {
  .pricing-section .category-title h2 {
    font-size: 2rem;
  }
  .pricing-table {
    margin: 15px auto;
    max-width: 400px;
  }
}

/* RTL Support for Pricing */
[dir='rtl'] .pricing-section .installment-info {
  border-left: none;
  border-right: 3px solid #ff7162;
}

/* Responsive pricing tables */
@media (max-width: 768px) {
  .pricing-section .row.mb-5 {
    margin-bottom: 2rem !important;
  }

  .pricing-table {
    margin-bottom: 2rem;
  }

  .pricing-section .installment-info {
    font-size: 0.85rem;
  }
}

.testimonial-list {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
}
.testimonial-list li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.testimonial-list.checkmark {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.testimonial-list.checkmark li {
  margin-bottom: 0.5em;
  line-height: 1.6;
  position: relative;
  padding-left: 1.8em;
}
.testimonial-list.checkmark li::before {
  content: '\2714';
  color: #ff7162;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Responsive and high-contrast styles for pricing cards */

.pricing-table {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2em 1.5em 1.5em 1.5em;
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid #ff7162;
}

.pricing-table .table-header h4 {
  /* color: #ff7162; */
  font-size: 22px !important;
  margin-bottom: 0.3em !important;
  font-weight: bold;
  text-align: center;
}
.pricing-table .age-range {
  color: #fff;
  font-size: 1em;
  margin-bottom: 0.9em !important;
  font-weight: 500;
  text-align: center;
}
.pricing-table .fee-row {
  color: #222;
  background: #ffeae7;
  border-radius: 6px;
  padding: 0.3em 0.7em;
  margin-bottom: 0.3em;
  font-size: 1em;
  font-weight: 500;
  display: inline-block;
}
.pricing-table .includes-title {
  color: #ff7162;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
}
.pricing-table ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
.pricing-table ul li {
  color: #333;
  margin-bottom: 0.3em;
  font-size: 0.98em;
}
.pricing-table .table-footer {
  margin-top: auto;
  text-align: center;
}
.pricing-table .theme-btn {
  background: #ff7162;
  color: #fff;
  border-radius: 24px;
  padding: 0.7em 2em;
  font-weight: bold;
  font-size: 1em;
  border: none;
  transition: background 0.2s;
}
.pricing-table .theme-btn:hover {
  background: #222;
  color: #fff;
}

/* Styles for the portfolio content boxes */

.gallery-page-section .content-box {
  background: #fff;
  max-width: 23.2rem;
  /* border-radius: 20px; */
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-page-section .content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-page-section .content-box h3 {
  color: #2b3c6b;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.gallery-page-section .content-box p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.gallery-page-section .activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-page-section .activity-list li {
  color: #666;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 25px;
}

.gallery-page-section .activity-list li:before {
  content: '•';
  color: #ff7162;
  position: absolute;
  left: 0;
  top: 10px;
}

.gallery-page-section .activity-list li:last-child {
  border-bottom: none;
}

.gallery-page-section .filter-tabs li {
  font-size: 18px;
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 25px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-page-section .filter-tabs li.active,
.gallery-page-section .filter-tabs li:hover {
  background: #ff7162;
  color: #fff;
}

/* Gallery filtering */
.masonry-item {
  opacity: 1;
  transform: scale(1);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  width: 100%;
  float: left;
}

.masonry-item.isotope-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.sortable-masonry .items-container {
  position: relative;
}

/* Ensure smooth transitions */
.isotope-item {
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out !important;
}

/* Force proper column widths for isotope */
.gallery-page-section .masonry-item.small-column {
  width: 33.333333%;
  box-sizing: border-box;
}

.gallery-page-section .masonry-item {
  width: 50%;
  box-sizing: border-box;
}

/* Responsive isotope layout fixes */
@media (max-width: 991px) {
  .gallery-page-section .masonry-item.small-column,
  .gallery-page-section .masonry-item {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .gallery-page-section .masonry-item.small-column,
  .gallery-page-section .masonry-item {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .pricing-block {
    margin-bottom: 2em;
  }
}
@media (max-width: 767px) {
  .pricing-block {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 2em;
  }
  .pricing-table {
    padding: 1.2em 0.7em 1em 0.7em;
  }
}

/* Smooth Scrolling Enhancements */
html {
  scroll-behavior: smooth;
}

/* Navigation link transition effects */
.navigation li a {
  transition: all 0.3s ease;
  position: relative;
}

.navigation li a:hover {
  transform: translateY(-2px);
}

/* Active navigation item highlighting */
.navigation li.current a {
  color: #ff7162 !important;
}

/* Add subtle animation to sections when scrolling into view */
.about-section,
.gallery-page-section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* Scroll indicator for better UX */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff7162 0%, #ff9a56 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
  z-index: 9999;
}

/* RTL Support for Testimonial Video Section */
[dir='rtl'] .testimonial-video .video-column {
  left: auto;
  right: 0px;
}

[dir='rtl'] .testimonial-video .testimonial-column {
  float: left;
}

[dir='rtl'] .testimonial-video .testimonial-column .testimonial-content {
  padding: 144px 150px 116px 15px;
}

[dir='rtl']
  .testimonial-video
  .testimonial-column
  .testimonial-block
  .inner-box
  .text:before {
  left: auto;
  right: 2px;
}

/* RTL Support for Content Direction */
[dir='rtl'] .testimonial-list {
  text-align: right;
  padding-right: 0;
  padding-left: 20px;
}

[dir='rtl'] .testimonial-list li {
  text-align: right;
  direction: rtl;
}

/* RTL Support for Checkmark positioning */
[dir='rtl'] .testimonial-list.checkmark li {
  padding-left: 0;
  padding-right: 1.8em;
}

[dir='rtl'] .testimonial-list.checkmark li::before {
  left: auto;
  right: 0;
}

/* Additional RTL support for testimonial section */
[dir='rtl'] .testimonial-video .sec-title {
  text-align: right;
}

[dir='rtl'] .testimonial-video .sec-title h5,
[dir='rtl'] .testimonial-video .sec-title h1 {
  text-align: right;
}

[dir='rtl'] .outer-container {
  direction: rtl;
}

/* Fix for testimonial list items in RTL */
[dir='rtl'] .testimonial-list li strong {
  font-weight: bold;
}

/* Ensure proper spacing in RTL */
[dir='rtl'] .testimonial-content {
  text-align: right;
}

/* Animation icons positioning for RTL */
[dir='rtl'] .anim-icon .icon {
  transform: scaleX(-1);
}

/* RTL Support for Icon Animation */
[dir='rtl'] .video-column .video-inner a {
  animation: pulse-rtl 3s infinite;
}

@keyframes pulse-rtl {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Fixed height grid system for consistent card layout */
.gallery-page-section .inner-block {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-page-section .content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.gallery-page-section .image-box {
    /* height: 226px; */
    overflow: hidden;
    margin-bottom: 14px;
}

.gallery-page-section .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-page-section .content-box h3 {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 60px;
  margin-bottom: 30px;
}

.gallery-page-section .info-box {
  margin-top: auto;
}

/* Ensure consistent spacing between cards */
.gallery-page-section .masonry-item {
  margin-bottom: 30px;
}

/* Grid system consistency */
.gallery-page-section .row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.gallery-page-section .masonry-item {
  padding: 15px;
  display: flex;
}

/* Responsive card heights */
@media (min-width: 992px) {
  .gallery-page-section .inner-block {
    min-height: 350px;
  }
}

@media (max-width: 991px) {
  .gallery-page-section .inner-block {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .gallery-page-section .inner-block {
    min-height: 300px;
  }
}

/* Language Switcher Styling */
.language-switcher {
  margin-left: 20px;
}

.language-switcher a {
  color: #777;
  text-decoration: none;
  padding: 0 5px;
  transition: color 0.3s ease;
}

.language-switcher a.active,
.language-switcher a:hover {
  color: #ff7162;
  font-weight: bold;
}

.language-switcher span {
  color: #ccc;
  margin: 0 5px;
}

/* RTL Navigation Support */
[dir='rtl'] .navigation {
  direction: rtl;
}

[dir='rtl'] .filter-tabs {
  direction: rtl;
}

[dir='rtl'] .navigation li {
  float: right;
}

[dir='rtl'] .filter-tabs li {
  float: right;
}

/* RTL Language Switcher */
[dir='rtl'] .language-switcher {
  margin-right: 20px;
  margin-left: 0;
}

/* Ensure proper text alignment for RTL */
[dir='rtl'] .centred {
  text-align: center;
}

[dir='rtl'] .pull-right {
  float: left !important;
}

[dir='rtl'] .pull-left {
  float: right !important;
}

/* Header-top RTL Support */
[dir='rtl'] .header-top .inner-container {
  direction: rtl;
}

[dir='rtl'] .header-top .social-links {
  float: right !important;
}

[dir='rtl'] .header-top .header-info {
  float: left !important;
}

[dir='rtl'] .header-top .info-list {
  text-align: left;
}

[dir='rtl'] .header-top .info-list li {
  direction: rtl;
  text-align: right;
}

[dir='rtl'] .header-top .info-list li i {
  margin-left: 8px;
  margin-right: 0;
}

[dir='rtl'] .header-top .social-list li {
  float: right;
}

/* Language switcher RTL positioning in header-top */
[dir='rtl'] .header-top .language-switcher {
  margin-right: 15px;
  margin-left: 0;
  direction: rtl;
}

/* RTL Support for header-top spacing and alignment */
[dir='rtl'] .header-top .social-links ul {
  text-align: right;
}

[dir='rtl'] .header-top .header-info ul {
  text-align: left;
}

/* RTL Phone number direction */
[dir='rtl'] .header-top .info-list li a[href^="tel:"],
[dir='rtl'] .header-top .info-list li a[href^="https://wa.me/"]
{
  direction: ltr;
  display: inline-block;
}

/* RTL Email direction */
[dir='rtl'] .header-top .info-list li a[href^='mailto:'] {
  direction: ltr;
  display: inline-block;
}

/* Mobile responsive RTL header-top */
@media (max-width: 767px) {
  [dir='rtl'] .header-top .inner-container {
    text-align: center;
  }

  [dir='rtl'] .header-top .social-links,
  [dir='rtl'] .header-top .header-info {
    float: none !important;
    text-align: center;
    margin-bottom: 10px;
  }

  [dir='rtl'] .header-top .info-list li {
    text-align: center;
  }
}

/* Gallery Page Responsive Tabs */
.gallery-page-section .filter-tabs {
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  display: flex;
}

.gallery-page-section .filter-tabs li {
  margin: 0.25rem 0.5rem;
  flex-shrink: 0;
}

/* Responsive breakpoints for gallery tabs */
@media (max-width: 991px) {
  .gallery-page-section .filter-tabs li {
    margin: 0.2rem 0.3rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  .gallery-page-section .filter-tabs {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
  }

  .gallery-page-section .filter-tabs li {
    margin: 0.25rem 0.3rem;
    font-size: 0.85rem;
    min-width: auto;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .gallery-page-section .filter-tabs li {
    font-size: 18px;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0.25rem;
    white-space: nowrap;
  }
}

/* RTL support for gallery tabs */
[dir='rtl'] .gallery-page-section .filter-tabs {
  direction: rtl;
}

[dir='rtl'] .gallery-page-section .filter-tabs li {
  float: right;
}

/* Contact Form RTL Support and Centering Fix */
.contact-form-section .form-column {
  display: flex;
  justify-content: center;
}

.contact-form {
  width: 100%;
  max-width: 100%;
}

/* Ensure proper centering in both LTR and RTL */
.contact-form-section .offset-lg-2 {
  margin-left: auto;
  margin-right: auto;
}

[dir='rtl'] .contact-form-section .offset-lg-2 {
  margin-left: auto;
  margin-right: auto;
}

/* Form input RTL support */
[dir='rtl'] .contact-form input,
[dir='rtl'] .contact-form textarea {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .contact-form input::placeholder,
[dir='rtl'] .contact-form textarea::placeholder {
  text-align: right;
  direction: rtl;
}

/* Enhanced form styling for better appearance */
.contact-form input,
.contact-form textarea {
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff7162;
  box-shadow: 0 0 5px rgba(255, 113, 98, 0.3);
  outline: none;
}

/* Submit button centering */
.contact-form .message-btn {
  text-align: center;
}

[dir='rtl'] .contact-form .message-btn {
  text-align: center;
}

/* Contact info section RTL support */
[dir='rtl'] .contact-info-section .single-info-box .text {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .contact-info-section .single-info-box h3 {
  text-align: right;
}

/* Breadcrumb RTL support */
[dir='rtl'] .page-title .bread-crumb {
  direction: rtl;
}

[dir='rtl'] .page-title .bread-crumb li {
  float: right;
}

[dir='rtl'] .page-title .bread-crumb li:before {
  content: '';
}

[dir='rtl'] .page-title .bread-crumb li:after {
  content: '/';
  margin: 0 5px;
}

[dir='rtl'] .page-title .bread-crumb li:last-child:after {
  content: '';
}

/* Center breadcrumb navigation */
.page-title .bread-crumb {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.page-title .bread-crumb li {
  float: none;
  display: inline-flex;
  align-items: center;
}
/* 
.page-title .bread-crumb li:not(:last-child):after {
  content: '/';
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.7);
}

[dir='rtl'] .page-title .bread-crumb li:not(:last-child):after {
  content: '/';
  margin: 0 8px;
} */

/* Responsive breadcrumb */
@media (max-width: 767px) {
  .page-title .bread-crumb {
    font-size: 14px;
  }

  .page-title .bread-crumb li:not(:last-child):after {
    margin: 0 5px;
  }
}

/* Section titles RTL support */
[dir='rtl'] .sec-title {
  text-align: center; /* Keep section titles centered in Arabic */
}

[dir='rtl'] .sec-title.centred {
  text-align: center;
}

/* Contact info section titles - center in Arabic */
[dir='rtl'] .contact-info-section .single-info-box h3 {
  text-align: center;
}

/* Contact info section content - keep right-aligned */
[dir='rtl'] .contact-info-section .single-info-box .text {
  text-align: right;
  direction: rtl;
}

/* Responsive form adjustments */
@media (max-width: 767px) {
  .contact-form-section .form-column {
    padding: 0 15px;
  }

  .contact-form {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 auto;
  }

  /* Ensure form stays centered on mobile */
  .contact-form-section .offset-lg-2 {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .contact-form-section .container {
    padding: 0 10px;
  }

  .contact-form {
    padding: 15px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Footer RTL Support */
[dir='rtl'] .main-footer .widget-title {
  text-align: right;
}

[dir='rtl'] .main-footer .about-widget .text,
[dir='rtl'] .main-footer .contact-widget .info-list {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .main-footer .link-widget ul {
  text-align: right;
}

[dir='rtl'] .main-footer .link-widget ul li {
  text-align: right;
}

[dir='rtl'] .main-footer .contact-widget .info-list li {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .main-footer .contact-widget .info-list li i {
  margin-left: 10px;
  margin-right: 0;
}

/* Footer responsive adjustments */
@media (max-width: 767px) {
  .main-footer .footer-column {
    margin-bottom: 30px;
  }

  [dir='rtl'] .main-footer .widget-title {
    text-align: center;
  }
}

/* Arabic Font Implementation - Cairo Font */
/* IMPORTANT: Icon-safe font application for Arabic text */

/* Apply Cairo font only to text elements when Arabic is active */
[dir='rtl'] body {
  font-family: 'Cairo', 'Open Sans', sans-serif;
}

/* Specific text elements for Arabic */
[dir='rtl'] p,
[dir='rtl'] span:not([class*='fa']):not([class*='flaticon']),
[dir='rtl']
  div:not([class*='icon']):not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] a:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] h1:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] h2:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] h3:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] h4:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] h5:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] h6:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] li:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] td:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] th:not([class*='fa']):not([class*='flaticon']) {
  font-family: 'Cairo', sans-serif;
}

/* Navigation and menu text */
[dir='rtl'] .navigation a,
[dir='rtl'] .main-menu a,
[dir='rtl'] .sticky-header .navigation a,
[dir='rtl'] .breadcrumb a,
[dir='rtl'] .bread-crumb a {
  font-family: 'Cairo', sans-serif;
}

/* Form elements */
[dir='rtl'] input:not([type='submit']):not([type='button']),
[dir='rtl'] textarea,
[dir='rtl'] select {
  font-family: 'Cairo', sans-serif;
}

/* Button text (but not icon buttons) */
[dir='rtl'] .theme-btn,
[dir='rtl'] button:not(.icon-btn):not([class*='fa']):not([class*='flaticon']) {
  font-family: 'Cairo', sans-serif;
}

/* Footer and widget text */
[dir='rtl'] .widget-title,
[dir='rtl'] .footer-widget p,
[dir='rtl'] .footer-widget span:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] .footer-widget a:not([class*='fa']):not([class*='flaticon']),
[dir='rtl'] .copyright {
  font-family: 'Cairo', sans-serif;
}

/* CRITICAL: Preserve ALL icon fonts */
i,
i[class*='fa'],
i[class*='flaticon'],
[class*='fa-'],
[class*='flaticon-'],
.fa,
.fas,
.far,
.fab,
.fal,
.social-list i,
.footer-social i,
.social-style-one i,
.icon-box i,
.flaticon-address,
.flaticon-vintage-hand-phone,
.flaticon-mail {
  font-family: inherit !important;
}

/* Flaticon pseudo-elements */
[class*='flaticon-']:before,
[class*='flaticon-']:after {
  font-family: 'Flaticon' !important;
}

/* Font Awesome pseudo-elements */
[class*='fa-']:before,
[class*='fa-']:after {
  font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Pro',
    'Font Awesome 5 Brands' !important;
}

/* Ensure icon containers don't inherit Arabic font */
.icon-box,
.social-list,
.footer-social,
.social-style-one {
  font-family: inherit !important;
}

/* Font weight optimization for Arabic text */
[dir='rtl'] {
  font-weight: 400;
}

[dir='rtl'] strong,
[dir='rtl'] b,
[dir='rtl'] .bold {
  font-weight: 600;
}

[dir='rtl'] .semi-bold {
  font-weight: 500;
}

/* Optimize text rendering for Arabic */
[dir='rtl'] {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* New layout styles for testimonial-video section */
.testimonial-video .testimonial-content-section {
  padding: 0 15px;
  margin-bottom: 20px;
}

.testimonial-video .video-section .video-inner {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RTL Support for About Section */
[dir='rtl'] .about-section .content-box {
  text-align: right;
}

[dir='rtl'] .about-section .sec-title h5,
[dir='rtl'] .about-section .sec-title h1 {
  text-align: right;
}

[dir='rtl'] .about-section .about-highlights .vision,
[dir='rtl'] .about-section .about-highlights .values {
  text-align: right;
}

[dir='rtl'] .about-section .btn-box {
  text-align: right;
}

/* RTL Support for testimonial content */
[dir='rtl'] .testimonial-content .testimonial-list {
  text-align: right;
  direction: rtl;
}

[dir='rtl'] .testimonial-content .testimonial-list li {
  text-align: right;
}

/* Mobile responsive adjustments for new layout */
@media (max-width: 768px) {
  .about-section .content-box {
    padding-top: 30px;
    text-align: center;
  }

  [dir='rtl'] .about-section .content-box {
    text-align: center;
  }

  .testimonial-video .testimonial-content-section {
    text-align: center;
  }

  [dir='rtl'] .testimonial-video .testimonial-content-section {
    text-align: center;
  }

  .testimonial-video .video-section {
    margin-top: 30px !important;
  }

  .testimonial-video .video-inner {
    min-height: 250px;
    border-radius: 10px;
  }

  .testimonial-video .overlay-link {
    width: 70px;
    height: 70px;
  }

  .testimonial-video .overlay-link i {
    font-size: 24px;
    line-height: 70px;
  }
}

/* Mobile navbar language switcher */
@media (max-width: 991px) {
  .navbar-collapse .language-switcher-mobile {
    padding: 12px 0 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 8px;
  }
  .navbar-collapse .language-switcher-mobile .language-dropdown {
    width: 100%;
  }
  .navbar-collapse .language-switcher-mobile .language-btn {
    width: 100%;
    justify-content: space-between;
    background: linear-gradient(135deg, #ff7162, #ff4b5c);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 113, 98, 0.25);
  }
  .navbar-collapse .language-switcher-mobile .language-options {
    position: relative;
    top: 8px;
    right: auto;
    left: auto;
    min-width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.25s ease;
    overflow: hidden;
  }
  .navbar-collapse
    .language-switcher-mobile
    .language-dropdown.active
    .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .navbar-collapse .language-switcher-mobile .lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }
  .navbar-collapse .language-switcher-mobile .lang-option:hover {
    background: #fff1ef;
    color: #ff4b5c;
  }
  .navbar-collapse .language-switcher-mobile .lang-option.active {
    background: rgba(255, 113, 98, 0.1);
    color: #ff4b5c;
  }
}

.services-card {
  width: 23rem !important;
  height: 31rem !important;
}

/* Hide sticky header on mobile to prevent double header display */
@media only screen and (max-width: 991px) {
  .sticky-header {
    display: none !important;
  }
}
[dir='rtl'] p, [dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3, [dir='rtl'] h4, [dir='rtl'] h5, [dir='rtl'] h6, [dir='rtl'] span, [dir='rtl'] li, [dir='rtl'] a, [dir='rtl'] button {
  direction: rtl;
}
[dir='rtl'] .about-section .content-box p
{
  font-size: 16px;
  text-align: right;
}
.logo{
  max-width: 100px;
  max-height: 180px;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
    display: flex;
  justify-content: center;
  align-items: center;
}
.logo img{
  max-width: 100px;
  max-height: 180px;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;

}
@media only screen and (max-width: 991px) {
    .main-menu .navbar-header {
        text-align: center !important;
        margin-top: 10px !important;
    }
}
@media only screen and (max-width: 991px) {
    .main-menu .navbar-header .navbar-toggle {
        text-align: center !important;
        margin-top: 10px !important;
    }
}
/* --- ultra-simple floating buttons --- */
.floating-buttons {
position: fixed;
right: 16px;
bottom: 16px;
display: flex;
flex-direction: column;
gap: 12px;
z-index: 9999;
}
.floating-buttons a {
width: 54px;
height: 54px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
color: #fff;
text-decoration: none;
font-size: 24px;
box-shadow: 0 6px 18px rgba(0,0,0,.18);
transition: transform .15s ease;
}
.floating-buttons a:hover { transform: translateY(-2px); }
.btn-wa { background:#25D366; }
.btn-ig { background:#E1306C; }


/* minimal test output styles */
#test-results { position: fixed; left: 16px; bottom: 16px; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; background:#111; color:#e6e6e6; padding:10px 12px; border-radius:8px; max-width: 60vw; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
#test-results b { color:#9BEF9B; }
#test-results .fail { color:#ff6b6b; }


/* optional: small screens */
@media (max-width:480px){
.floating-buttons a{ width:50px; height:50px; font-size:22px; }
.floating-buttons{ right:12px; bottom:12px; gap:10px; }
#test-results{ left:12px; bottom:76px; }
}
@media (max-width:767px){
  .main-slider .slide {
    min-height: 400px;
    max-height: 400px;
    overflow: hidden;
  }
  .main-slider h1{
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  .main-slider h3{
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .main-slider .btn-box{
    font-size: 16px;
    line-height: 1;
    margin-top: 20px;
  }
  .main-slider .content-box{
    padding: 20px 0;
  }
  .sec-title h5{
    font-size: 30px;
    margin-bottom: 8px;
  }
    .testimonial-block .inner-box{
  padding: 42px 30px 41px 26px;
  margin-bottom: 20px;
  }
}