header .navbar ul li a.front-lang:hover {
  color: var(--bs-primary);
  background: transparent;
}

/* Ensure dropdown aligns correctly in RTL */
[dir="rtl"] .dropdown-menu .front-lang {
  text-align: right !important;
  right: 0 !important;
  left: auto !important;
}


/*start banner section (07-08-2025)*/
#home-banner-slider .home-slider .banner-home-swiper-image{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
#home-banner-slider .home-slider .banner-home-swiper-image video{
  position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.video-block.con-detl .card-style-slider .swiper-card .swiper-wrapper{
  height: inherit;
}
/*end banner section*/

/*category related css*/
 /* Fix Arabic/RTL category card clickability for all screen sizes */
  [dir="rtl"] .home-category .img-box
  .position-absolute.top-0.bottom-0.start-0.end-0,
  [dir="rtl"] .home-category .img-box
  .position-absolute.top-0.bottom-0.left-0.right-0 {
      left: 0 !important;
      right: 0 !important;
      top: 0 !important;
      bottom: 0 !important;
      position: absolute !important;
      z-index: 1 !important;
  }

  /* Ensure the overlay works on all mobile devices */
  @media (max-width: 768px) {
      [dir="rtl"] .home-category .img-box
  .position-absolute.top-0.bottom-0.start-0.end-0,
      [dir="rtl"] .home-category .img-box
  .position-absolute.top-0.bottom-0.left-0.right-0 {
          left: 0 !important;
          right: 0 !important;
          top: 0 !important;
          bottom: 0 !important;
          position: absolute !important;
          z-index: 2 !important;
          display: block !important;
      }
  }

  /* Extra specific targeting for mobile RTL */
  @media (max-width: 576px) {
      [dir="rtl"] .upcomimg-block.home-category .category-single-slider .img-box     
   a.position-absolute {
          left: 0 !important;
          right: 0 !important;
          top: 0 !important;
          bottom: 0 !important;
          width: 100% !important;
          height: 100% !important;
          z-index: 3 !important;
      }
  }

  /* Fallback for any remaining positioning issues */
  [dir="rtl"] .home-category .category-single-slider .iq-card .block-images
  .img-box {
      position: relative !important;
  }

  [dir="rtl"] .home-category .category-single-slider .iq-card .block-images
  .img-box > a {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100% !important;
      height: 100% !important;
      z-index: 10 !important;
  }
/**/

/* Adjust flag alignment */
[dir="rtl"] .duropdown-item img .front-lang {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

.home-category .iq-card .block-images .card-description.with-transition {
  bottom: -3.25rem;
  padding: 1rem 0 0.5rem 0;
}

.home-category .iq-card .block-images::after {
  bottom: -4rem;
}

.con-detl .iq-card .block-images .card-description.with-transition {
  bottom: -3.25rem;
  padding: 1rem 0 0.5rem 0;
}

.con-detl .iq-card .block-images::after {
  bottom: -4rem;
}

.con-detl .iq-card .block-social-info {
  bottom: 5.25rem !important;
}

.form-control {
  border-radius: 0 !important;
  height: 2.7em;
  padding: 0.4375em 1em 0.5em 1em;
  padding: 0.782rem 1rem;
}

.category-content .iq-card .block-images .card-description.with-transition {
  bottom: -3.25rem;
  padding: 1rem 0 0.5rem 0;
}

.category-content .iq-card .block-images::after {
  bottom: -4rem;
}

/* ========== MOBILE PERFORMANCE OPTIMIZATION FOR CATEGORY SLIDER ========== */
/* Fix for slow and buggy scrolling on mobile devices */

/* Optimize card-style-slider for mobile performance */
@media (max-width: 768px) {
  
  /* Disable expensive 3D transforms and animations on mobile */
  .card-style-slider .card-hover:hover .block-images,
  .card-style-slider li.swiper-slide.swiper-slide-active .card-hover:hover .block-images,
  .card-style-slider li.swiper-slide.swiper-active.last .card-hover:hover .block-images {
    /* Replace expensive 3D transforms with simple 2D scale */
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
    
    /* Faster transition with specific properties only */
    -webkit-transition: transform 0.2s ease;
         -o-transition: transform 0.2s ease;
            transition: transform 0.2s ease;
    
    /* Remove layout-triggering properties */
    margin-top: 0 !important;
    
    /* Optimize for GPU compositing */
    will-change: transform;
  }
  
  /* Simplify hover effects for better touch performance */
  .card-style-slider .iq-card:hover .block-images {
    margin-top: 0 !important;
    -webkit-transform: scale(1.02);
            transform: scale(1.02);
  }
  
  /* Remove transition delays that cause sluggish feel */
  .card-style-slider .card-hover:hover .block-images {
    -webkit-transition-delay: 0s !important;
         -o-transition-delay: 0s !important;
            transition-delay: 0s !important;
  }
  
  /* Optimize swiper container for mobile scrolling */
  .card-style-slider .swiper-wrapper {
    /* Enable hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
    will-change: transform;
  }
  
  /* Reduce padding for better touch targets */
  .card-style-slider li.swiper-slide {
    padding: 0 0.5rem !important;
  }
  
  /* Optimize images for faster loading */
  .card-style-slider .iq-card .block-images img {
    /* Enable GPU acceleration for smooth scrolling */
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    will-change: auto;
  }
}

/* Additional optimizations for very small screens */
@media (max-width: 480px) {
  
  /* Further simplify animations on small mobile devices */
  .card-style-slider .card-hover:hover .block-images,
  .card-style-slider li.swiper-slide.swiper-slide-active .card-hover:hover .block-images,
  .card-style-slider li.swiper-slide.swiper-active.last .card-hover:hover .block-images {
    /* Minimal scale for low-end devices */
    -webkit-transform: scale(1.02);
            transform: scale(1.02);
    
    /* Even faster transitions */
    -webkit-transition: transform 0.15s ease;
         -o-transition: transform 0.15s ease;
            transition: transform 0.15s ease;
  }
  
  /* Disable perspective on low-end devices */
  .card-style-slider .block-images {
    perspective: none !important;
  }
}



.category-content .iq-card .block-social-info {
  top: 25.25rem !important;
}

.content-details .iq-card .block-social-info {
  top: 19.25rem !important;
}

.content-details .iq-card .block-images .card-description.with-transition {
  bottom: -3.25rem;
  padding: 1rem 0 0.5rem 0;
}


.coach-content .iq-card .block-images .card-description.with-transition {
  bottom: -3.25rem;
  padding: 1rem 0 0.5rem 0;
}

.coach-content .iq-card .block-images::after {
  bottom: -4rem;
}

.coach-content .iq-card .block-social-info {
/*  top: 9.25rem !important;*/
top: 0% !important;
left: 40%;
}
/*this is for center the play button in desktop in arabic*/
[dir="rtl"] .coach-content .iq-card .block-social-info {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  justify-content: center !important;
}
/**/
.category-content .iq-card .block-social-info {
    /* top: 9.25rem !important; */
    top: 0% !important;
    bottom: 0%;
}
.form-control {
  border-radius: 0 !important;
  height: 2.7em;
  font-size: 16px;
}

hr {
  color: #fff;
}

@media (min-width:931px) {
  div#my-video iframe {
    width: 930px;
    height: 524px;
    display: block;
    margin: 0 auto;
  }
  
  div#my-video {
    height: auto !important;
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    margin: 0 auto;
  }
}

  /*Different Heights for Different Mobile Sizes for video */
  
  @media (max-width: 480px) {
    div#my-video {
      height: 40vh !important;
      min-height: 220px !important;
      max-height: 300px !important;
    }
  }

  @media (min-width: 481px) and (max-width: 768px) {
    div#my-video {
      height: 48vh !important;
      min-height: 280px !important;
      max-height: 380px !important;
    }
  }

  @media (min-width: 769px) and (max-width: 930px) {
    div#my-video {
      height: 52vh !important;
      min-height: 320px !important;
      max-height: 420px !important;
    }
  }

  @media (max-width: 930px) {
    div#my-video {
      width: 100% !important;
      position: relative !important;
      padding-bottom: 0 !important;
      overflow: hidden !important;
    }

    div#my-video iframe {
      width: 100% !important;
      height: 100% !important;
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
    }
  }

.rating i {
  color: #141314 !important;
  cursor: pointer;
  font-size: 40px;
  margin-right: 10px;
}

.rating i.filled {
  color: #ecbb12 !important;
}

#rating-form .text-danger-review-form {
  color: red !important;
  font-size: 16px;
}

#contact-form .text-danger-review-form {
  color: red !important;
  font-size: 16px;
}


.login-text-danger {
  color: red !important;
  font-size: 16px;
}

#submitReview .modal-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: 100%;
}

.section-padding {
  padding: 4.25rem 0;
}

.vp-center {
  background-color: black;
}

.swiper {
  margin-bottom: 4.25rem;
}

hr {
  background: #fff;
  padding: 1px 0;
  margin: 0;
}


.swiper[data-loop="false"] .iq-card.card-hover:hover {
  margin-bottom: 45px;
}

.title-box h2,
.title-box h3 {
  text-transform: capitalize;
}

/* .home-category .swiper {
    margin-bottom: 0;
} */

.navbar-expand-xl .navbar-nav .nav-link {
  text-transform: capitalize;
}

.iq-nav-menu>li>a {
  text-transform: uppercase !important;
}

@media (max-width: 1367px) {
  /*.container-fluid {*/
  /*  padding: 0 5.208vw;*/
  /*}*/
}

@media (max-width: 1199px) {
  .iq-nav-menu>li>a {
    padding: 0 0 0.5rem;
  }
}

@media only screen and (max-width: 1300px) and (min-width: 1200px) {
  .iq-nav-menu li {
    margin-right: 1.2125em;
  }
}

@media only screen and (max-width: 991px) and (min-width: 768px) {
  .block-description {
    padding: 0 3.25em;
  }
}

@media (max-width: 1024px) {
  .section-padding {
    padding: 2.125rem 0;
  }
}

@media (max-width: 991px) {
  .texture-text {
    font-size: 2.1375rem !important;
  }
}

@media (min-width: 992px) {
  .social-icons .d-flex.align-items-center {
    justify-content: end;
  }
}

@media only screen and (max-width: 767px) and (min-width: 651px) {
  .block-description {
    padding: 3rem 2rem;
  }

  /*.container-fluid {*/
  /*  padding: 0px 4.25em;*/
  /*}*/
}
@media (min-width: 576px) and (max-width: 768px)
{
    iframe[src*="vimeo.com"] {
        min-width: 400px !important;
        min-height: 225px !important;
    }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 1.875rem 0;
  }

  .verticle-slider .slider-images .description .iq-title a {
    font-size: 2.5615rem;
  }
/* 
  .iq-main-slider #my-video {
    height: 50vh;
  } */
  .iq-main-slider.site-video #my-video.video-banner.responsive-video-container{
      height: 100vh !important;
      max-height: 680px !important;
  }
  .vp-controls .vp-control {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
}


@media (max-width: 650px) {
  /*.container-fluid {*/
  /*  padding: 0 2.25em;*/
  /*}*/

  /* .iq-main-slider #my-video {
    height: 50vh;
  } */

  .social-icons .d-flex.align-items-center {
    flex-direction: column;
    align-items: baseline !important;
  }

  .iq-ltr-direction {
    padding: 0 25px;
  }

  .verticle-slider .slider-images .description {
    padding: 3rem 3rem;
  }
}

@media (max-width: 420px) {
  /* .iq-main-slider #my-video {
    height: 25vh;
  } */
}


.user_preferences_form {
  border: 1px solid var(--bs-primary);
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  padding: 20px;
  box-sizing: border-box;
  text-align: left;
}

.user_preferences_form h2 {
  font-size: 30px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0;
  margin: 0 0 30px;
}

.lable-lft:before {
  position: absolute;
  content: ":";
  right: 10px;
}

/*grey-white color variable for consistent usage */
:root {
  --grey-white: #e0e0e0;
  --grey-white-rgb: 224, 224, 224;
}

.category_title {
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: var(--grey-white);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Only apply hover effects on devices with precise hover capability */
@media (hover: hover) and (pointer: fine) {
  .category-slider .iq-card:hover .block-images .img-box img {
    mix-blend-mode: inherit;
    /* height: calc(100vh - 4rem); */
    object-fit: cover;
  }
}

.home-category .category-slider .iq-card .block-images::after {
  bottom: 0;
}

/* Disable hover effects on touch devices to prevent iOS issues */
@media (hover: hover) and (pointer: fine) {
  .category-slider .card-hover:hover .block-images {
    margin-top: 12px;
  }
}

/* iOS-specific fixes for category title stability on touch devices */
@media (hover: none) and (pointer: coarse) {
  .category-slider .iq-card .block-images .card-description.with-transition,
  .category-slider .iq-card:hover .block-images .card-description.with-transition {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    -webkit-transition: none !important;
    transition-delay: 0s !important;
    -webkit-transition-delay: 0s !important;
  }
  
  .category-slider .iq-card .category_title,
  .category-slider .iq-card .iq-title.category_title {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    -webkit-transition: none !important;
    display: flex !important;
  }
  
  .category-slider .iq-card .block-images::after {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
    -webkit-transition: none !important;
  }
}

@media (min-width:1026px) {
  .mega_menu {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
  
  .mega_menu_container {
    display: flex;
  }
  .iq-nav-menu.list-unstyled{
    position: relative;
  }
  
  .iq-nav-menu li{
    position: static;
  }
  .iq-nav-menu li > ul{
    width: 16rem;
  }
  .iq-nav-menu li > ul.multi_mega_menu {
    min-width: 18rem;
    width: calc(18rem * 3);
    left: 0;
  }
}


@media (min-width:992px) and (max-width:1025px) {
  .multi_mega_menu {
    height: 220px;
    overflow: auto;
}
}


@media (max-width: 991px) {
  .list-unstyled {
    padding-bottom: 15px;
}
}

.swiper-nav:hover i {
  transform: scale(1.2) !important;
  transition: all 0.5s ease;
}
.iq-main-slider .video-banner {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin:  0;
}
.iq-main-slider .video-banner  iframe {
  position:static;
}
/*.iq-main-slider #my-video {*/
/*  height: auto;*/
/*}*/

@media (max-width:575px) {
  .details-part .trending-info {
    padding: 0.75em 0;
  }
}

/* ========== GREY-WHITE TEXT OVERRIDES ========== */
/* Apply grey-white color to plain white text elements*/

/* Target specific white text elements that should be grey-white */
.text-white:not(.btn):not([class*="bg-"]):not(.badge):not(.alert) {
  color: var(--grey-white) !important;
}

/* Category-related text should use grey-white */
.home-category .category_title,
.home-category .iq-title {
  color: var(--grey-white) !important;
}

/* Coach section mobile cards text */
.mobile-coach-card h3,
.mobile-coach-card p {
  color: var(--grey-white) !important;
}

/* Vertical slider text elements */
.verticle-slider .slider-images .description .iq-title a,
.verticle-slider .slider-images .description p {
  color: var(--grey-white) !important;
}

/* General card descriptions and titles */
.card-description h6.iq-title a,
.block-description .iq-title a,
.block-description p {
  color: var(--grey-white) !important;
}

/* Content detail text elements */
.content-details .text-white:not(.btn),
.category-content .text-white:not(.btn) {
  color: var(--grey-white) !important;
}

/* Maintain white color for important UI elements (buttons, badges, alerts) */
.btn,
.badge,
.alert,
.bg-primary,
.bg-secondary,
.bg-success,
.bg-danger,
.bg-warning,
.bg-info {
  color: var(--bs-white) !important; /* Keep these white for contrast */
}

/* Form labels and input-related text */
label.text-white,
.form-control::placeholder {
  color: var(--grey-white) !important;
}

/* Menu and navigation text */
.iq-nav-menu a,
.navbar .text-white:not(.btn) {
  color: var(--grey-white) !important;
}

/* SweetAlert modal text customization */
.swal2-modal .swal2-title,
.swal2-modal .swal2-content {
  color: var(--grey-white) !important;
}

/* Ensure better contrast for grey-white text on dark backgrounds */
[data-bs-theme="dark"] .category_title,
[data-bs-theme="dark"] .text-white:not(.btn):not([class*="bg-"]):not(.badge):not(.alert) {
  color: var(--grey-white) !important;
}

/* Footer text adjustments */
footer .text-white:not(.btn) {
  color: var(--grey-white) !important;
}

/* ========== RESTORED ORIGINAL COACHES SLIDER ========== */
/* Desktop vertical slider + Mobile horizontal cards with navigation */

/* Mobile coaches slider with navigation arrows */
@media (max-width: 768px) {
  .verticle-slider-mobile-fix {
    display: none !important; /* Hide complex vertical slider on mobile */
  }
  
  .mobile-coaches-horizontal {
    display: block !important;
    padding: 1.5rem 0 2rem 0;
    position: relative;
  }
  
  .mobile-coaches-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
/*    padding: 0 3rem; */
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  
     /* Fix arrow direction for RTL */
    [dir="rtl"] .mobile-coaches-nav-prev i {
      transform: scaleX(-1);
    }
    
    [dir="rtl"] .mobile-coaches-nav-next i {
      transform: scaleX(-1);
    }
    
    [dir="rtl"] .mobile-coach-card {
      text-align: right;
    }
  
  .mobile-coaches-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-coach-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
  }
  
  .mobile-coach-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .mobile-coach-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--grey-white);
  }
  
  .mobile-coach-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--grey-white);
    opacity: 0.9;
  }
  
  .mobile-coach-card .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Navigation arrows for mobile slider */
  .mobile-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(var(--bs-primary-rgb), 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-arrow:hover {
    background: var(--bs-primary);
    transform: translateY(-50%) scale(1.1);
  }
  
  .mobile-nav-arrow i {
    color: white;
    font-size: 1rem;
  }
  
  .mobile-coaches-nav-prev {
    left: 10px;
  }
  
  .mobile-coaches-nav-next {
    right: 10px;
  }
}

/* Hide mobile version on desktop */
@media (min-width: 769px) {
  .mobile-coaches-horizontal {
    display: none !important;
  }
}

/* Arabic/RTL specific adjustments */
[dir="rtl"] .mobile-coaches-nav-prev {
  left: auto;
  right: 10px;
}

[dir="rtl"] .mobile-coaches-nav-next {
  right: auto;
  left: 10px;
}

[dir="rtl"] .mobile-coach-card {
  text-align: right;
}

/* iOS-specific optimizations for mobile coaches slider */
/*@supports (-webkit-touch-callout: none) {*/
/*  .mobile-coaches-scroll {*/
/*    -webkit-overflow-scrolling: touch;*/
/*    overscroll-behavior: contain;*/
/*  }*/
  
/*  .mobile-coach-card {*/
/*    -webkit-transform: translate3d(0, 0, 0);*/
/*    transform: translate3d(0, 0, 0);*/
/*    will-change: auto;*/
/*  }*/
/*}*/

/* Android-specific touch optimizations for mobile slider */
@media (pointer: coarse) {
  .mobile-coaches-scroll {
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobile-coach-card {
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* ========== MOBILE HAMBURGER MENU IMPROVEMENTS ========== */
/* Fix visual hierarchy and grouping issues in mobile menu */

/* Mobile menu container improvements */
@media (max-width: 1199px) {
    
    /* Main navigation menu styling */
    .iq-nav-menu.list-unstyled {
        padding: 0;
        margin: 0;
    }
    
    /* Main menu items (level 1) */
    .iq-nav-menu > li.nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0;
    }
    
    /* Main menu item links */
    .iq-nav-menu > li.nav-item > div > a.nav-link {
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    /* Main menu item hover effect */
    .iq-nav-menu > li.nav-item > div > a.nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 25px;
    }
    
    /* Toggle menu icon improvements */
    .menu-icon {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        cursor: pointer;
        transition: all 0.3s ease;
        position: static !important;
    }
    
    /* Better toggle icon styling - Perfect circles */
    .menu-icon .toggle-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        background: rgba(229, 9, 20, 0.9);
        border-radius: 50%;
        border: 1px solid rgba(229, 9, 20, 1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        vertical-align: middle;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        overflow: hidden;
    }
    
    /* Hover effects for toggle buttons */
    .menu-icon .toggle-menu:hover {
        background: rgba(229, 9, 20, 1);
        box-shadow: 0 3px 8px rgba(229, 9, 20, 0.4);
        transform: scale(1.05);
    }
    
    /* Expanded state icon */
    .menu-icon[aria-expanded="true"] .toggle-menu {
        background: rgba(229, 9, 20, 1);
        box-shadow: 0 2px 6px rgba(229, 9, 20, 0.3);
    }
    
    .menu-icon[aria-expanded="true"] .arrow-active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Perfect + and - symbols in circles - consolidated */
    .arrow-active {
        transform: none !important;
        transition: all 0.3s ease;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        color: #ffffff !important;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
        font-family: 'Arial', sans-serif;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 10;
    }
    
    /* Navigation links with toggle buttons */
    .nav-link[data-bs-toggle="collapse"] {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px 20px !important;
    }
    
    /* Ensure text and icon are properly spaced */
    .nav-link[data-bs-toggle="collapse"] .item-name {
        flex-grow: 1;
    }
    
    /* Override any RTL or positioning interference */
    .toggle-menu,
    [dir="rtl"] .toggle-menu,
    header .navbar .iq-nav-menu.navbar-nav li ul.sub-nav li a.nav-link .menu-icon,
    [dir="rtl"] header .navbar .iq-nav-menu.navbar-nav li ul.sub-nav li a.nav-link .menu-icon {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 !important;
        transform: none !important;
    }
    
    /* Ensure menu icon doesn't get positioned absolutely */
    .menu-icon,
    [dir="rtl"] .menu-icon {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-left: auto !important;
    }
    
    /* Mobile search form styling */
    .mobile-search-container {
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 5px;
    }
    
    .mobile-search-container .form-control {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--bs-body-color);
        border-radius: 6px;
    }
    
    .mobile-search-container .form-control:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
        color: var(--bs-body-color);
    }
    
    .mobile-search-container .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .mobile-search-container .btn-primary {
        padding: 8px 12px;
        border-radius: 6px;
    }
    
    /* ========== SUBMENU STYLING FOR USER ACCOUNT & LANGUAGE ========== */
    
    /* User Info Header Styling */
    .user-info-header {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px 8px 0 0;
    }
    
    .user-info-header .border-bottom {
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Submenu Item Styling */
    .submenu-item {
        padding: 12px 20px !important;
        margin: 2px 10px;
        border-radius: 6px;
        transition: all 0.3s ease;
        color: rgba(255, 255, 255, 0.8) !important;
        background: transparent;
        border: none;
    }
    
    .submenu-item:hover {
        background: rgba(229, 9, 20, 0.1) !important;
        color: var(--bs-primary) !important;
        transform: translateX(5px);
    }
    
    .submenu-item:active,
    .submenu-item:focus {
        background: rgba(229, 9, 20, 0.2) !important;
        color: var(--bs-primary) !important;
    }
    
    /* Special styling for logout */
    .logout-item:hover {
        background: rgba(220, 53, 69, 0.1) !important;
        color: #dc3545 !important;
    }
    
    /* Language menu active state */
    .submenu-item.front-lang.active,
    .submenu-item.front-lang[data-lan].active {
        background: rgba(229, 9, 20, 0.15) !important;
        color: var(--bs-primary) !important;
    }
    
    /* Submenu icons */
    .submenu-item svg {
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    
    .submenu-item:hover svg {
        opacity: 1;
    }
    
    /* Submenu text */
    .submenu-item span {
        font-size: 14px;
        font-weight: 400;
    }
    
    /* Checkmark icon for active language */
    .submenu-item .ms-auto svg {
        opacity: 1;
    }
    
    /* SUB-MENU (DROPDOWN) IMPROVEMENTS */
    /* Level 2 menu items - the ones that appear under Coaches/Workouts */
    .sub-nav.collapse {
        /* Visual indentation for submenus */
        margin-left: 15px;
        border-left: 3px solid var(--bs-primary);
        padding-left: 10px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0 8px 8px 0;
        margin-top: 5px;
        padding: 10px 0;
    }
    
    /* Level 2 menu item styling */
    .sub-nav .mega_menu .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 0;
    }
    
    /* Level 2 menu links - these are the workout categories */
    .sub-nav .mega_menu .nav-item .nav-link {
        padding: 12px 15px 12px 40px !important; /* Indentation for hierarchy */
        font-size: 14px !important;
        font-weight: 400 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: transparent !important;
        transition: all 0.3s ease;
        position: relative;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
    }
    
    /* Visual indicator for sub-items */
    .sub-nav .mega_menu .nav-item .nav-link::before {
        content: "▸";
        position: absolute;
        left: 20px;
        color: var(--bs-primary);
        font-size: 12px;
        transition: all 0.3s ease;
    }
    
    /* Sub-menu item hover effect */
    .sub-nav .mega_menu .nav-item .nav-link:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        padding-left: 45px !important;
        color: #ffffff !important;
    }
    
    /* Active sub-menu item */
    .sub-nav .mega_menu .nav-item .nav-link.active {
        background: rgba(229, 9, 20, 0.2) !important;
        color: #ffffff !important;
        border-left: 2px solid var(--bs-primary);
    }
    
    /* Mega menu container adjustments */
    .mega_menu_container {
        display: block !important; /* Stack vertically on mobile */
        padding: 0;
    }
    
    /* Individual mega menu sections */
    .mega_menu {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    
    /* Smooth expand/collapse animation */
    .sub-nav.collapse {
        transition: all 0.4s ease-in-out;
    }
    
    .sub-nav.collapsing {
        transition: height 0.4s ease-in-out;
    }
    
    /* Visual separator between main sections */
    .iq-nav-menu > li.nav-item:not(:last-child) {
        margin-bottom: 5px;
    }
    
    /* Special styling for expanded main items */
    .iq-nav-menu > li.nav-item:has(.sub-nav.show) > div > a.nav-link {
        background: rgba(229, 9, 20, 0.1);
        font-weight: 600;
    }
}

/* ========== ARABIC/RTL LANGUAGE SUPPORT ========== */
/* Specific improvements for Arabic language mobile menu */

[dir="rtl"] .iq-nav-menu > li.nav-item > div > a.nav-link:hover {
    padding-right: 25px;
    padding-left: 20px;
}

[dir="rtl"] .sub-nav .mega_menu .nav-item .nav-link {
    padding: 12px 40px 12px 15px !important; /* Reverse indentation for RTL */
    text-align: right;
}

[dir="rtl"] .sub-nav .mega_menu .nav-item .nav-link::before {
    content: "◂";
    left: auto;
    right: 20px;
}

[dir="rtl"] .sub-nav .mega_menu .nav-item .nav-link:hover {
    padding-right: 45px !important;
    padding-left: 15px !important;
}

[dir="rtl"] .sub-nav.collapse {
    border-left: none;
    border-right: 3px solid var(--bs-primary);
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .sub-nav .mega_menu .nav-item .nav-link.active {
    border-left: none;
    border-right: 2px solid var(--bs-primary);
}

/* Menu icon positioning for RTL */
[dir="rtl"] .menu-icon {
    order: -1; /* Move toggle to the left in RTL */
}

/* ========== ENHANCED VISUAL GROUPING ========== */
/* Additional improvements for better visual hierarchy */

@media (max-width: 1199px) {
    
    /* Add subtle shadows for depth */
    .iq-nav-menu {
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    /* Group separator lines */
    .iq-nav-menu > li.nav-item:nth-child(3)::after,
    .iq-nav-menu > li.nav-item:nth-child(5)::after {
        content: "";
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin: 10px 20px;
    }
    
    /* Improve mobile search and user items styling */
    .iq-nav-menu > li.nav-item.d-xl-none .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Better dropdown divider */
    .iq-nav-menu .dropdown-divider {
        margin: 10px 20px;
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* ========== MOBILE MENU SCROLLING FIX ========== */
/* Fix mobile menu internal scrolling when content is long */
@media (max-width: 1199px) {
    /* Make the entire offcanvas scrollable */
    .mobile-offcanvas.offcanvas {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    /* Reset any height constraints on the container */
    .mobile-offcanvas .container-fluid {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    /* Ensure the nav menu list can grow */
    .mobile-offcanvas .iq-nav-menu {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 5rem !important;
    }
    
    /* Make sure sub-menus don't interfere with scrolling */
    .mobile-offcanvas .sub-nav {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Fast smooth accordion animations */
    .mobile-offcanvas .collapse {
        transition: height 0.15s ease-out !important;
    }
    
    .mobile-offcanvas .collapsing {
        transition: height 0.15s ease-out !important;
    }
}

/* ========== BREADCRUMB TEXT SHADOW IMPROVEMENTS ========== */
/* Add text shadows to breadcrumb text for better visibility over background images */

/* Main breadcrumb title/header text */
.iq-breadcrumb .title,
.iq-breadcrumb h1,
.iq-breadcrumb h2,
.iq-breadcrumb h3,
.iq-breadcrumb h4,
.iq-breadcrumb h5,
.iq-breadcrumb h6 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 1px 1px 2px rgba(0, 0, 0, 0.9),
                 0 0 8px rgba(0, 0, 0, 0.5) !important;
    font-weight: 600 !important;
}

/* Breadcrumb navigation text */
.iq-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

.iq-breadcrumb .breadcrumb-item,
.iq-breadcrumb .breadcrumb-item a,
.iq-breadcrumb .breadcrumb-item.active {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 1px 1px 2px rgba(0, 0, 0, 0.9),
                 0 0 6px rgba(0, 0, 0, 0.5) !important;
    font-weight: 500 !important;
}

/* Breadcrumb links hover effect */
.iq-breadcrumb .breadcrumb-item a:hover {
    color: var(--bs-primary) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 
                 1px 1px 2px rgba(0, 0, 0, 1),
                 0 0 8px rgba(0, 0, 0, 0.6),
                 0 0 12px rgba(229, 9, 20, 0.4) !important;
    transition: all 0.3s ease;
}

/* Breadcrumb separator styling */
.iq-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Additional text elements in breadcrumb area */
.iq-breadcrumb .container-fluid,
.iq-breadcrumb .container,
.iq-breadcrumb nav,
.iq-breadcrumb p,
.iq-breadcrumb span {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 1px 1px 2px rgba(0, 0, 0, 0.9) !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
    .iq-breadcrumb .title {
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 
                     1px 1px 3px rgba(0, 0, 0, 1),
                     0 0 10px rgba(0, 0, 0, 0.6) !important;
        font-weight: 700 !important;
    }
    
    .iq-breadcrumb .breadcrumb-item,
    .iq-breadcrumb .breadcrumb-item a {
        font-size: 14px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 
                     1px 1px 3px rgba(0, 0, 0, 1) !important;
    }
}

/* RTL/Arabic text shadow adjustments */
[dir="rtl"] .iq-breadcrumb .title,
[dir="rtl"] .iq-breadcrumb .breadcrumb-item,
[dir="rtl"] .iq-breadcrumb .breadcrumb-item a {
    text-shadow: -2px 2px 4px rgba(0, 0, 0, 0.8), 
                 -1px 1px 2px rgba(0, 0, 0, 0.9),
                 0 0 8px rgba(0, 0, 0, 0.5) !important;
}

