html[dir="ltr"] .region-primary-menu .block-we-megamenu-blocktop-secondary-menu .navbar-we-mega-menu ul.we-mega-menu-ul>li>a {
  text-transform: capitalize;
  padding: 22px var(--global-spacing-4xl) 22px var(--global-spacing-2xl);
}
.we-mega-menu-submenu-inner .type-of-block .block-inner ul.menu>.menu-item>a {
  /* background-image: url('../images/sub_menu_icon.svg');
    background-repeat: no-repeat;
    border: 2px solid transparent; */
  padding-bottom: var(--global-spacing-sm);
  padding-top: var(--global-spacing-sm);
  padding-right: var(--global-spacing-xl);
  padding-left: var(--global-spacing-xl);
  font: var(--type-scale-desktop-text-md-medium);
  display: block;
  color: var(--text-color-text-display);
}


@media screen and (min-width: 320px) and (max-width: 420.98px) {
    html[dir="rtl"] div.cu-new-logo-mobile {
        max-width: 221px;
        margin-left: 13%;
    } 
 }
@media screen and (min-width: 992px) and (max-width: 1229.98px) {
  /* Mobile menu layout for medium screens */
  .navbar-toggle {
    display: block !important;
  }
  
  .navbar-we-mega-menu.navbar {
    display: none;
  }
  
  .navbar-we-mega-menu.navbar.we-mobile-megamenu-active {
    display: block !important;
  }
  
  html[dir="ltr"] .region-we-mega-menu {
    justify-content: space-between;
  }
  html[dir="rtl"] .region-we-mega-menu {
    justify-content: end;
  }
}

 
@media screen and (min-width: 421px) and (max-width: 479.98px) {
    html[dir="rtl"] div.cu-new-logo-mobile {
      max-width: 300px;
      margin-left: 14%;
    } 
    html[dir="ltr"] .cu-new-logo-mobile {
      margin-left: 6%;
      max-width: 246px;
      order: 3;
      display: flex;
      justify-content: center;
      width: 100%;
    }
 }
 @media screen and (min-width: 320px) and (max-width: 383.98px) {
  html[dir="ltr"] .cu-new-logo-mobile {
        margin-left: 5%;
        max-width: 300px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    html[dir="rtl"] .cu-new-logo-mobile {
        margin-right: 5%;
        max-width: 300px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
 }
 @media screen and (min-width: 384px) and (max-width: 479.98px) {
 html[dir="ltr"] .cu-new-logo-mobile {
        margin-left: 5%;
        max-width: 400px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    html[dir="rtl"] .cu-new-logo-mobile {
        margin-right: 5%;
        max-width: 400px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
 }
 @media screen and (min-width: 480px) and (max-width: 559.98px) {
  html[dir="ltr"] .cu-new-logo-mobile {
        margin-left: 5%;
        max-width: 500px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    html[dir="rtl"] .cu-new-logo-mobile {
        margin-right: 0%;
        max-width: 380px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-left: 5%;
    }
 }
 @media screen and (min-width: 560px) and (max-width: 639.98px) {
  html[dir="ltr"] .cu-new-logo-mobile {
        margin-left: 5%;
        max-width: 600px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    html[dir="rtl"] .cu-new-logo-mobile {
              margin-left: 8%;
        max-width: 400px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }

 }
 @media screen and (min-width: 640px) and (max-width: 767.98px) {
      html[dir="ltr"] .cu-new-logo-mobile {
       margin-right: 2%;
        max-width: 586px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    html[dir="rtl"] .cu-new-logo-mobile {
        margin-left: 5%;
        max-width: 607px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }
 }
 @media screen and (min-width: 768px) and (max-width: 1099.98px) { 
  html[dir="ltr"] .cu-new-logo-mobile {
          margin-right: 0%;
          max-width: 1000px;
          order: 3;
          display: flex;
          justify-content: center;
          width: 100%;
    }
    html[dir="rtl"] .cu-new-logo-mobile {
        margin-left: 5%;
        max-width: 1000px;
        order: 3;
        display: flex;
        justify-content: center;
        width: 100%;
    }

 }
@media screen and (min-width: 1100px) and (max-width: 1310px) {
  html[dir="ltr"] .cu-new-logo-mobile {
      margin-right: 2%;
      max-width: 1200px;
      order: 3;
      display: flex;
      justify-content: center;
      width: 100%;
  }
  html[dir="rtl"] .cu-new-logo-mobile {
    margin-left: 5%;
    max-width: 1000px;
    order: 3;
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 1229.98px) { 
  
  .navbar-toggle {
    display: block;
  }
    html[dir="ltr"] .region-we-mega-menu {
    justify-content: space-between;
  }
  html[dir="rtl"] .region-we-mega-menu {
    justify-content: end;
  }
 
  .navbar-we-mega-menu .type-of-block, .we-mega-menu-ul > .dropdown-menu > .we-mega-menu-submenu {
    display: none;
  }
      .overlay {
        cursor: pointer;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 999;
        background-color: rgba(0, 0, 0, .2);
        width: 100%;
        height: 100%;
    }
    .top-secondary-menu.navbar {
    position: fixed !important;
    width: 90%;
    left: 0;
    right: 0px !important;
    margin: auto;
    top: 4.6rem;
    bottom: unset;
  }
      .navbar-toggle {
        background-image: url("../images/menu-button.svg");
        background-repeat: no-repeat;
        background-size: 36px;
        background-position: center;
    }
    .navbar-we-mega-menu.navbar.we-mobile-megamenu-active {
        right: 0;
        display: block;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
        -webkit-animation-duration: .5s;
        animation-duration: .5s;
        -webkit-animation-timing-function: 
ease-in-out;
        animation-timing-function: 
ease-in-out;
        -webkit-animation-name: slideInRight;
        animation-name: slideInRight;
    }
    .overlay {
    background-color: #f9fafb ;
    /* background-color: #e6eaed; */
  }
    html[dir="rtl"] body.toggled .btn-close {
        right: 89%;
    }
     html[dir="ltr"] body.toggled .btn-close {
        right: 1vw;
    }
    body.toggled .btn-close{
        right: 8vw;
        z-index: 9999;
        top: 16px;
        background-color: transparent;
        background-image: url(../images/new-menu-close.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 40px;
        box-shadow: 0 0px 0px rgba(0, 0, 0, .15);
        height: 40px;
        width: 40px;
    }
    .btn-close:after, .btn-close:before {
        background-color: transparent;
        margin-left: 0;
    }
    body.toggled .btn-close {
        opacity: 1;
        visibility: visible;
        display: block;
    }
        .btn-close {
        opacity: 0;
        visibility: hidden;
        display: none;
        background: #ccc;
        -webkit-box-shadow: 0 12px 27px rgba(0, 0, 0, .15);
        box-shadow: 0 12px 27px rgba(0, 0, 0, .15);
        cursor: pointer;
        right: 270px;
        z-index: 1000;
        -moz-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
        -webkit-animation-duration: .2s;
        animation-duration: .2s;
        -webkit-animation-timing-function: 
ease-in-out;
        animation-timing-function: 
ease-in-out;
        -webkit-animation-name: fadeInFromNone;
        animation-name: fadeInFromNone;
        -webkit-animation-delay: .5s;
        animation-delay: .5s;
        border-radius: 50%;
        position: fixed;
        top: 15px;
        width: 48px;
        height: 48px;
    }
    .btn-close, .btn-close:after, .btn-close:before {
        -webkit-transition: all .3s 
ease-in-out;
        transition: all .3s 
ease-in-out;
    }
    .region-primary-menu .block-we-megamenu-blocktop-secondary-menu .navbar-we-mega-menu ul.we-mega-menu-ul > li > a {
    text-shadow: unset;
    box-shadow: 0 0px 0 rgba(255,255,255,.05) inset;
  }
   
      .region-primary-menu {
    padding-top: var(--global-spacing-md);
    padding-bottom: var(--global-spacing-md);
    position: relative;
  }
  [dir="ltr"] .top_secondary_menu {
    order: 3;
  }

 
  .navbar-we-mega-menu.navbar {
    /* display: none; */
  }
  html[dir="ltr"] #block-uni-theme-topsecondarymenu-2 .dropdown-menu>.we-mega-menu-submenu {
        margin-left: 0px;
    }
      .top_secondary_menu .region-we-mega-menu {
        background: transparent;
    }
        .region-we-mega-menu {
        background-color: transparent;
        padding: 13px 15px;
        margin-bottom: 20px;
        border-radius: 3px;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
        .navbar-we-mega-menu.navbar ul {
        padding: 0;
        margin: 0;
        border: 0;
    }
        .navbar-we-mega-menu.navbar .container, .navbar-we-mega-menu.navbar .container-fluid {
        padding: 0;
        position: static;
        width: auto;
    }
    .navbar-we-mega-menu.navbar {
        /* max-width: 400px; */
        max-width: 100%;
        width: 100%;
    }
    .navbar-we-mega-menu.navbar ul {
        padding: 0;
        margin: 0;
        border: 0;
    }
    .navbar-we-mega-menu.navbar .nav-tabs .dropdown-menu {
        margin-top: 0;
    }
        .navbar-we-mega-menu.navbar .dropdown-menu {
        position: static;
        min-width: inherit;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }
        .navbar-we-mega-menu.navbar .dropdown-menu, .navbar-we-mega-menu.navbar .nav-tabs .nav-tabs>li>.we-megamenu-nolink, .navbar-we-mega-menu.navbar .nav-tabs .nav-tabs>li>a {
        border: 0;
        background-color: transparent;
        -webkit-box-shadow: inherit;
        box-shadow: inherit;
    }
        .navbar-we-mega-menu.navbar ul>li {
        display: block;
        float: none;
        list-style: none;
        margin: 0;
        padding: 0;
    }
}
@media (min-width: 1230px) {
    .we-mega-menu-ul, .we-mega-menu-ul>.we-mega-menu-li {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
}
@media (max-width: 1229.98px) { 
    html[dir="ltr"] .region-primary-menu .block-we-megamenu-blocktop-secondary-menu .navbar-we-mega-menu ul.we-mega-menu-ul>li>a {
    text-transform: capitalize;
    padding: var(--global-spacing-xl) var(--global-spacing-4xl) var(--global-spacing-xl) var(--global-spacing-xl);
    }
    .navbar-we-mega-menu.navbar {
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }
  .region-primary-menu .block-we-megamenu-blocktop-secondary-menu .navbar-we-mega-menu ul.we-mega-menu-ul>li>a:hover {
    background-color: transparent !important;
  }
 
    .navbar-we-mega-menu.navbar {
        background-color: var(--colors-base-white) !important;
    }
    .top-secondary-menu.navbar {
        width: 100%;
    }
    
    
    html[dir="rtl"] .region-primary-menu .block-we-megamenu-blocktop-secondary-menu .navbar-we-mega-menu ul.we-mega-menu-ul>li>a {
        text-align: right;
    }
    html[dir="rtl"] .region-primary-menu .block-we-megamenu-blocktop-secondary-menu .navbar-we-mega-menu ul.we-mega-menu-ul>li>a {
    padding: var(--global-spacing-lg) var(--global-spacing-xl) var(--global-spacing-lg) var(--global-spacing-xl);
    font-size: 14px;
  }
  
   html[dir="rtl"] .block-we-megamenu-blocktop-secondary-menu .we-megamenu-nolink.after {
    background-image: url(../images/arrow-up.svg);
    background-repeat: no-repeat;
    background-position-x: 13px;
    background-position-y: center;
    background-size: 18px;
  }
  
   html[dir="ltr"] #block-uni-theme-collegemenu .type-of-block h2, 
   html[dir="ltr"] #block-uni-theme-topsecondarymenu-2 .type-of-block h2 {
        padding : var(--global-spacing-lg) var(--global-spacing-2xl) var(--global-spacing-lg) var(--global-spacing-2xl);
        
    }
    html[dir="rtl"] #block-uni-theme-collegemenu .type-of-block h2, 
    html[dir="rtl"] #block-uni-theme-topsecondarymenu-2 .type-of-block h2 {
        padding : var(--global-spacing-lg) var(--global-spacing-2xl) var(--global-spacing-lg) var(--global-spacing-2xl);
        
    }
    #block-uni-theme-topsecondarymenu-2 .type-of-block h2 {
        position: relative;
    }
    .we-mega-menu-ul .we-mega-menu-li>a {
        background-image: url(../images/Chevron-down.svg) !important;
        background-repeat: no-repeat;
        background-size: 24px;
    }
    html[dir="ltr"] .we-mega-menu-ul .we-mega-menu-li>a {
        background-position-x: 95%;
    }
    html[dir="rtl"] .we-mega-menu-ul .we-mega-menu-li>a {
        background-position-x: 22px;
    }
     .we-mega-menu-ul .we-mega-menu-li>a.we-megamenu-nolink.after {
        background-image: url(../images/Chevron-up.svg) !important;
        background-repeat: no-repeat;
        background-size: 24px !important;
     }
     html[dir="ltr"] .we-mega-menu-ul .we-mega-menu-li>a {
         background-position-x: 95%;
        background-position-y: center;
     }
     .is-collapsible {
         background-image: url(../images/Chevron-down.svg);
        background-repeat: no-repeat;
        background-size: 24px;
     }
     .is-collapsible.is-open {
        background-image: url(../images/Chevron-up.svg);
     }
     
    .region-primary-menu .block-we-megamenu-blocktop-secondary-menu .navbar-we-mega-menu ul.we-mega-menu-ul>li>a {
      font: var(--type-scale-desktop-text-sm-semibold) !important;
      color: var(--text-color-text-default) !important;
    }
    .we-mega-menu-submenu-inner .type-of-block .block-inner ul.menu>.menu-item>a {
        padding-bottom: var(--global-spacing-sm);
        padding-top: var(--global-spacing-sm);
        padding-right: var(--global-spacing-xl);
        padding-left: var(--global-spacing-xl);
        font: var(--type-scale-desktop-text-sm-regular);
        display: block;
        color: var(--text-color-text-display);
    }
    html[dir="ltr"] #block-uni-theme-topsecondarymenu-2 .type-of-block h2.is-collapsible {
        background-position: 98% 12px;
    }
    html[dir="rtl"] #block-uni-theme-topsecondarymenu-2 .type-of-block h2.is-collapsible {
        background-position: 4px;
    }
 
  .top_secondary_menu .region-we-mega-menu .icon-bar {
    background-color: transparent;
  }
  .navbar-we-mega-menu.navbar .we-mega-menu-ul>li>.we-megamenu-nolink, 
  .navbar-we-mega-menu.navbar .we-mega-menu-ul>li>a {
    border-top: none;
  }
  .we-mega-menu-submenu-inner .we-mega-menu-col .type-of-block .view .view-content .views-row a:hover, .we-mega-menu-submenu-inner .we-mega-menu-col ul.nav>.we-mega-menu-li> a:hover, .we-mega-menu-submenu-inner .type-of-block .block-inner ul.menu>.menu-item>a:hover {
    background-color: transparent;
    border-top: none;
    }
    .menu-for-allcolleges .we-mega-menu-submenu, #block-uni-theme-topsecondarymenu-2 .we-mega-menu-submenu {
        box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.1) !important;
    }
    .menu-for-allcolleges div.we-mega-menu-submenu, #block-uni-theme-topsecondarymenu-2 div.we-mega-menu-submenu {
        padding-top: 0;
        padding-bottom: var(--global-spacing-2xl);
        padding-right: var(--global-spacing-2xl);
        padding-left: var(--global-spacing-2xl);
    }
    #block-uni-theme-collegemenu .type-of-block h2, #block-uni-theme-topsecondarymenu-2 .type-of-block h2 {
        padding-top: var(--global-spacing-md);
        padding-right: var(--global-spacing-md);
        padding-bottom: var(--global-spacing-none);
        padding-left: var(--global-spacing-md);
        font: var(--type-scale-desktop-text-sm-semibold);
         
        margin-bottom: 0;
    }
        .navbar-we-mega-menu.navbar ul .we-megamenu-nolink, .navbar-we-mega-menu.navbar ul a {
        display: block;
        color: #ccc;
        padding: 10px 0;
        text-decoration: none;
    }
 }  
@media (min-width: 992px) and (max-width: 1229.98px) {
    .we-mega-menu-ul, .we-mega-menu-ul>.we-mega-menu-li {
        display: block;
    }
    
    .navbar-we-mega-menu.navbar ul>li {
        display: block;
        float: none;
        list-style: none;
    }
}
.search-icon {
    background-image: url(../images/search_icon.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    padding-top: 28px;
    border-radius: var(--radius-radius-sm);
    padding-bottom: 28px;
    padding-left: 32px;
    padding-right: 32px;
    font: var(--text-md-medium);
    color: var(--text-color-text-default);
    background-size: 23px;
    cursor: pointer;
    position: relative;
}
.search-icon::after {
  content: "";
  display: block;
  height: 6px;
  width: 80%;
  position: absolute;
  top: 96%;
  left: 0;
  right: 0;
  margin: 0 auto;
  background-color: transparent;
  border-radius: var(--radius-radius-sm);
}

.search-icon:hover::after {
  background-color: #9da4ae;
}
@media (max-width: 1310px) { 
  .field--name-field-copywrite {
    padding-top: 0 !important;
  }
}
.new-cu-mobile-menu-collages {
  display: none;
}
/* Hide original menu and show new mobile menu on mobile */
@media (max-width: 1310px) {
  html[dir="rtl"] .mobile-menu-logo {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
  }
  html[dir="ltr"] .mobile-menu-logo {
    flex-direction: row-reverse;
  }
  .mobile-menu-logo .mobile-menu-college-name a {
        font: var(--type-scale-mobile-text-xs-semibold);
    color: #764104;
  }
  .group--colleges .new-green-section .field--name-field-university-colleges-sectio .paragraph--type--block {
    max-width: 100%;
  }
  div.new-cu-mobile-menu-collages {
    display: block;
  }
  body.path-group .cu-sitename {
    display: none;
  }
  html[dir="rtl"] .new-cu-mobile-menu-collages,
  html[dir="ltr"] .new-cu-mobile-menu-collages {
    order: 3;
  }
  body.path-group .logo_section {
    display: none;
  }
  .topnavigationmenutwo .region-we-mega-menu,
  .user_account_menu  {
      display: none;
  }
  .cu-new-logo {
      display: none;
  }
   html[dir="ltr"] .language-switcher-language-url {
    order: 1;
  }

  html[dir="ltr"] .logo_section {
    order: 2;
  }

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

  html[dir="rtl"] .language-switcher-language-url {
    order: 1;
  }

  html[dir="rtl"] .logo_section {
    order: 2;
  }
  .top_secondary_menu {
    display: none !important;
  }
  
  .new-cu-mobile-menu {
    display: block !important;
  }
  html[dir="ltr"] .new-cu-mobile-menu {
    order: 3;
  } 
  html[dir="rtl"] .new-cu-mobile-menu {
    order: 3;
  }
  .cu-new-logo-mobile img {
      max-width: 54px;
  }
  .cu-new-logo-mobile {
    display: block;
    }
    html[dir="rtl"] .search-block-form,
    html[dir="ltr"] .search-block-form {
        order: 1;
    }
    html[dir="rtl"] .language-switcher-language-url,
    html[dir="ltr"] .language-switcher-language-url {
        order: 2;
    }
    .region-primary-menu {
        /* justify-content: space-between; */
        padding-right: var(--container-padding-mobile);
        padding-left: var(--container-padding-mobile);
        gap: 0;
    }
    div.search-icon {
        padding: var(--global-spacing-sm) var(--global-spacing-lg) var(--global-spacing-lg) var(--global-spacing-lg)  ;
    }
}

/* New Mobile Menu Styles */
.new-cu-mobile-menu {
  position: relative;
  display: none;
}

/* Burger Menu Icon - Always visible outside menu */
.new-mobile-burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 999;
  position: relative;
}

.new-mobile-burger-menu .burger-line {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu Navigation */
.new-custom-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background-color: #f9fafb;
  box-shadow: 0px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 0;
}

.new-custom-mobile-menu.active {
  left: 0;
}

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Menu List */
.mobile-menu-list {
  list-style: none;
  margin: 0 15px;
  padding: 0;
}

.mobile-menu-item {
  border-bottom: 0px solid #e0e0e0;
}

.mobile-menu-item.has-submenu {
  position: relative;
  padding-left: var(--global-spacing-2xl);
  padding-right: var(--global-spacing-2xl);
  border-bottom: 1px solid var(--border-border-neutral-secondary);
}
html[dir="ltr"] .mobile-menu-link {
  padding:  var(--global-spacing-lg) var(--global-spacing-xl) var(--global-spacing-lg) 0;
}
html[dir="rtl"] .mobile-menu-link {
  padding:  var(--global-spacing-lg) 0 var(--global-spacing-lg) var(--global-spacing-xl);
}
.mobile-menu-link {
  display: block;
  padding:  var(--global-spacing-lg) var(--global-spacing-xl) var(--global-spacing-lg) var(--global-spacing-xl);
  text-transform: capitalize;
  text-decoration: none;
        font: var(--type-scale-desktop-text-sm-semibold) !important;
        color: var(--text-color-text-default) !important;
  transition: background-color 0.2s ease;
}
.mobile-submenu-section.has-title .mobile-submenu-title {
  padding: 6px 14px 6px 16px;
}
.mobile-menu-link:hover {
  background-color: #f5f5f5;
}

/* Submenu Toggle Button */
.submenu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.submenu-toggle .toggle-icon {
  width: 24px;
  height: 24px;
  background-image: url(../images/Chevron-down.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
  display: block;
}

.submenu-toggle.active .toggle-icon {
  background-image: url(../images/Chevron-up.svg);
  transform: rotate(0deg);
}

/* Mobile Submenu */
.mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  /* background-color: #f9f9f9; */
}

.mobile-submenu.active {
  max-height: 5000px;
}

.mobile-submenu-section {
  padding: 10px 0;
  border-bottom: 0px solid #e8e8e8;
}

.mobile-submenu-section:last-child {
  border-bottom: none;
}

.mobile-submenu-title {
  padding: 6px 50px 6px 30px;
  margin: 0;
  font: var(--type-scale-desktop-text-sm-semibold); 
  color: var(--text-color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
}
.mobile-submenu-title:hover {
  background-color: transparent;
}
/* Add toggle icon for h3 */
html[dir="ltr"] .mobile-submenu-title::after  {
  right: -5px;
}
html[dir="rtl"] .mobile-submenu-title::after  {
  left: -5px;
}
.mobile-submenu-title::after {
  content: '';
  position: absolute;
  
  top: 50%;
  transform: translateY(-50%);
    width: 24px;
    height: 24px;
  background-image: url(../images/Chevron-down.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.mobile-submenu-title.active::after {
  background-image: url(../images/Chevron-up.svg);
}

/* Hide submenu links by default when h3 exists */
.mobile-submenu-section.has-title .mobile-submenu-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-submenu-section.has-title .mobile-submenu-links.active {
  max-height: 2000px;
}

/* RTL Support updates */
html[dir="rtl"] .new-custom-mobile-menu {
  left: auto;
  right: -100%;
}
html[dir="rtl"] .new-cu-mobile-menu-collages .new-custom-mobile-menu {
  left: auto;
  right: -100%;
}

html[dir="rtl"] .new-custom-mobile-menu.active {
  right: 0;
  left: auto;
}

[dir="rtl"] .submenu-toggle {
  right: auto;
  left: 0;
}

[dir="rtl"] .mobile-submenu-title {
  padding: 10px 30px 10px 50px;
}

[dir="rtl"] .mobile-submenu-title::after {
  right: auto;
  left: 20px;
}

.mobile-submenu-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-submenu-links li {
  margin: 0;
}

.mobile-submenu-links a {
  padding: 10px 50px 10px 30px;
  font: var(--type-scale-desktop-text-sm-regular);
  display: block;
    color: var(--text-color-text-display);
  display: block;
 
  text-decoration: none;
  
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-submenu-links a:hover {
  background-color: #efefef;
  color: #333;
}

/* RTL Support */
[dir="rtl"] .new-custom-mobile-menu {
  left: auto;
  right: -100%;
}

[dir="rtl"] .new-custom-mobile-menu.active {
  right: 0;
  left: auto;
}

[dir="rtl"] .submenu-toggle {
  right: auto;
  left: 0;
}

[dir="rtl"] .mobile-submenu-title {
  padding: 10px 30px 10px 20px;
}

[dir="rtl"] .mobile-submenu-links a {
  padding: 10px 40px 10px 20px;
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}
/* Mobile Menu Header - Inside the sliding menu */
.mobile-menu-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--global-spacing-2xl);
  z-index: 1001;
  
}

/* Mobile Menu Logo */
.mobile-menu-logo {
  display: flex;
  align-items: center;
}

.mobile-menu-logo img {
  max-height: 40px;
  width: auto;
}

/* Close Button with X - Inside menu */
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0px solid #333;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background-color: #333;
}

.mobile-menu-close .close-text {
  font-size: 24px;
  font-weight: bold;
  color: transparent;
  line-height: 1;
  transition: color 0.3s ease;
  background-image: url("../images/new-close-btn.svg");
  background-position: center;
  background-repeat: no-repeat;
}

.mobile-menu-close:hover .close-text {
  color: #fff;
}

/* RTL Support for header */
[dir="rtl"] .mobile-menu-header {
  /* flex-direction: row-reverse; */
}

[dir="rtl"] .new-custom-mobile-menu {
  left: auto;
  right: -100%;
}

[dir="rtl"] .new-custom-mobile-menu.active {
  right: 0;
  left: auto;
}
/* Footer menu accordion styles */
@media (max-width: 768px) {
  footer .field--name-field-menu > .field__item .inner-container .paragraph .view .view-header {
    position: relative;
     cursor: pointer;
  }
  html[dir="ltr"] .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible {
    padding-right: 0px;
  }
  html[dir="rtl"] .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible {
    padding-left: 0px;
  }
  .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible {
    cursor: pointer;
    position: relative;
    
  }
  
  /* Add toggle icon */
  html[dir="ltr"] footer .field--name-field-menu > .field__item .inner-container .paragraph .view .view-header.is-collapsible::after,
  html[dir="ltr"] .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible::after {
      right: 0;
  }
  html[dir="rtl"] footer .field--name-field-menu > .field__item .inner-container .paragraph .view .view-header.is-collapsible::after,
  html[dir="rtl"] .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible::after {
      left: 0;
  }
  footer .field--name-field-menu > .field__item .inner-container .paragraph .view .view-header.is-collapsible::after,
  .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible::after {
    content: '';
    position: absolute;
    
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 32px;
    height: 32px;
    background-image: url(../images/Chevron-dow-white.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
  }
  footer .field--name-field-menu > .field__item .inner-container .paragraph .view .view-header.is-collapsible {
    background-image: none;
  }
  /* Rotate icon when open */
   footer .field--name-field-menu > .field__item .inner-container .paragraph .view .view-header.is-collapsible.is-open::after,
  .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible.is-open::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  /* Optional: Add hover effect */
  footer .field--name-field-menu > .field__item .inner-container .paragraph .view .view-header:nth-child(1).is-collapsible:hover,
  .region-footer .field--name-field-menu .field__item .paragraph--type--menu .field--name-field-menu-items .field__item ul li:nth-child(1).is-collapsible:hover {
    opacity: 0.8;
  }
}
footer .field--name-field-menu > .field__item .inner-container .paragraph .field__item ul > li.is-collapsible {
  background-image: none;
}