/*--------------------------------------------------------------
# Top Bar
--------------------------------------------------------------*/
 :root {

    --text-light: #ecf0f1;
    --transition-speed: 0.3s;
  }


#topbar {

    /* background: var(--maincolor); */
    background-color: white;
    padding: 0.5rem 0;
    height: 50px;
    /* position: fixed; */
    /* top: 0; */
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#topbar.topbar-scrolled {
    top: -80px;
}
.dynamic-contact {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.dynamic-contact a {
    /* color: white; */
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}
#topbar .btn-main
{
    background-color: var(--thirdcolor);
    border: 1px solid #ccc;
    padding: .4rem 1rem;
    border-radius: 0;
    /* box-shadow: 5px 5px 40px var(--thirdcolor); */
    /* margin-bottom: 1rem; */
}

@media (max-width: 992px) {
    .dynamic-contact {
        /* flex-direction: column; */
        gap: 0.7rem;
        /* text-align: center; */
    }
    #topbar{
    position: fixed;
     top: 70px;
    }
    #topbar .fa-location-dot
    {
        display: none;
    }
    #topbar.topbar-scrolled {
    top: 0px;
}
    .dynamic-contact a span{
        display: none;
    }
    #topbar .container {
        justify-content: space-between!important;
        padding: 0 15px;
      }
      #topbar .btn-main
      {
        background-color: transparent;
        padding: 0;
        border: none;
      }


    }
  .neon-accent {
      position: fixed;
      pointer-events: none;
      background: radial-gradient(600px at 50% 50%, rgba(42, 157, 143, 0.15), transparent 80%);
      z-index: -1;
  }
   /* ===========search header====================== */
  /*  */
.searchindex
{
    position: relative;
}
.search-form-wrap {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 999;
    transition: 0.5s all ease;
    visibility: hidden;
    opacity: 0;

    /* padding: 10px; */
  }
  a.js-search-open{color: white;}
  .search-form-wrap .search-form {
    position: relative;
    z-index: 999;
  }
  /* .search-form-wrap .search-form .form-control {
    width: 320px;
    border: 1px solid #ccc;
    line-height: 28px;
    box-shadow: 0 15px 20px -10px #ccc;
    padding-left: 40px;
    padding-right: 40px;
  } */
  .search-form-wrap .search-form .form-control:active,
  .search-form-wrap .search-form .form-control:focus {
    outline: none;
    box-shadow: none;
  }
  .search-form-wrap .search-form .icon {
    position: absolute;
    top: 20px;
    opacity: 0.5;
    right: 10px;
    color:white;
  }

   .search-form-wrap .search-form .btn {
    position: absolute;
    top: 3px;
    left: 4px;
    padding: 0;
    margin: 0;
    /* line-height: 1; */
    /* font-size: 30px; */
  }
  .search-form-wrap .search-form .btn span
  {
    font-size: 20px;
    -webkit-text-stroke-width: .04rem;
  }
  .search-form-wrap .search-form .btn:active,
  .search-form-wrap .search-form .btn:focus {
    outline: none;
    box-shadow: none;
  }

  .search-form-wrap.active {
    visibility: visible;
    opacity: 1;
  }

/* ============end search================== */

  .search-form-wrap {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: var(--maincolor);
    padding: 2rem;
    transition: top 0.4s ease;
    z-index: 999;
  }

  .search-form-wrap.active {
    top: 0;
  }

  .search-form {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
  }

  .search-form input[type="search"] {
    background: transparent;
    border: none;
    border-bottom: 2px solid white;
    color: white;
    font-size: 1rem;
    padding: 1rem 3rem;
  }
  .search-form input[type="search"]::placeholder
  {
    color:#fff;
    opacity: .5;
  }
  .search-form .bi-x {
    color: white;
    font-size: 2rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  /*--------------------------------------------------------------
  # Header
  --------------------------------------------------------------*/
  #header {
    height: 80px;
    transition: all 0.5s;
    background: var(--maincolor);
     position: fixed;
    /* top: 50px; */
     /* background: rgba(255,255,255,0.97); */
     /* background-color: var(--maincolor); */
    backdrop-filter: blur(10px);
    width: 100%;
    z-index: 997;
     border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: .5rem 0;
    border-top: 1px solid #ccc;
  }
#header .nav-link {
    color:white!important;
    /* position: relative; */
    transition: all 1s;
    font-size: 15px;

  }
  #header .nav-link:hover {
    color:#fbfbfb!important;
    border-bottom: 1px solid white;
    /* position: relative; */

  }
  #header h1 {
    color:white!important;
    /* position: relative; */

  }


/* #header {
  height: 70px;
  z-index: 997;
  transition: all 0.5s;
  background: #fff;
  top: 44px;
} */

#header.header-scrolled {
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
  top: 0;
  background-color: var(--maincolor);
}
 #header.header-scrolled .nav-link {
    color:white!important;
    /* position: relative; */

  }
  #header.header-scrolled h1 {
    color:white!important;
    /* position: relative; */

  }
  /*--------------------------------------------------------------
  # Navigation Menu
  --------------------------------------------------------------*/
  /**
  * Desktop Navigation
  */
  #header .navbar {
    padding: 0;
    /* position: relative; */
    display: flex;
    gap: 1rem;
  }
  /* #header .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
  } */

  #header .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    gap: .5rem;
  }
  #header .navbar li {
    position: relative;
  }
  #header .navbar a,
  #header .navbar a:focus {
    /* display: flex;
    align-items: center;
    justify-content: space-rightween; */
    /* padding: 10px 30px 20px 0; */
    /* font-family: "Raleway", sans-serif; */
    /* font-size: 16px;
    font-weight: 600;
    color: #ccc; */
    /* white-space: nowrap;
    text-transform: uppercase; */
    font-weight: 600;
    transition: 0.3s;

    text-decoration: none;
    padding: 0.5rem .7rem!important;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    /* opacity: .8; */
  }
  .nav-link {
    /* color: var(--maincolor)!important; */
    /* position: relative; */

  }

  #header .navbar a::before {
      content: '';
      position: absolute;
      /* top:1rem; */
      bottom: -.2rem;
      right: 0;
      width: 0;
      height: 3px;
      /* background: var(--thirdcolor); */
      transition: width 0.3s ease;
  }

  #header .navbar a:hover::before,
  #header .navbar a.active::before
  {
      width: 100%;
  }
  #header .navbar a i,
  #header .navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-right: 5px;
    opacity: .6;
  }

  /* #header .navbar a:hover,
  #header .navbar .active,
  #header .navbar .active:focus,
  #header .navbar li:hover>a {
    color: #fff;
  } */

  #header .navbar .dropdown ul{
    display: block;
    position: absolute;
    right: -10px;
    top: calc(100% + 0px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: var(--maincolor);
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    /* transition: 0.3s; */
    border-radius: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    backdrop-filter: blur(15px);
  }
  /* .holographic-dropdown {
    position: absolute;
    background: var(--glass);

    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;

} */
#header .navbar .dropdown:hover>ul {
    opacity: 1;
    right: 0px;
    top: 83%;
    visibility: visible;
    /* transform: translateY(15); */
  }
/* #header .navbar li:hover .dropdown ul {
    opacity: 1;
    visibility: visible;

} */
  #header .navbar .dropdown ul li {
    min-width: 200px;
    transition: all .5s;
  }
  #header .navbar .dropdown ul li:hover {
     /* background-color: var(--secondcolor); */
     color:white;
    }
  #header .navbar .dropdown ul a {
    padding: 15px 20px;
    font-size: 14px;
    text-transform: none;
    font-weight: 400;
    color: #ccc;
  }
 #header .navbar .dropdown ul li {
    padding-right:10px;
 }
  #header .navbar .dropdown ul a i {
    font-size: 12px;
  }

  #header .navbar .dropdown ul a:hover,
  #header .navbar .dropdown ul .active:hover,
  #header .navbar .dropdown ul li:hover>a {
    color: white;
  }



  #header .navbar .dropdown .dropdown ul {
    top: 0;
    right: calc(100% - 30px);
    visibility: hidden;
  }

  #header .navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    right: 100%;
    visibility: visible;
  }

  @media (max-width: 1366px) {
    #header .navbar .dropdown .dropdown ul {
      right: -90%;
    }

    #header .navbar .dropdown .dropdown:hover>ul {
      right: -100%;
    }
  }

  /**
  * Mobile Navigation
  */
  .mobile-nav-toggle {
    color: #354144;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
  }

  .mobile-nav-toggle.bi-x {
    color: #fff;
  }

  @media (max-width: 991px) {

    .mobile-nav-toggle {
      display: block;

    }
    .mobile-nav-toggle.bi-x
    {
      position: fixed;
      left: 25px;
      top: 60px;
      z-index: 9999;
      color: var(--maincolor);
    }

    #header .navbar ul {

      display: none;


    }

  }
 #header .btn-language
    {
        display: none;
        color:white;
        font-size: 20px;
    }
    #header .btn-language:hover
    {

        color:var(--text-light);
      }
  #header .navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 38, 39, 0.9);
    transition: 0.3s;
    z-index: 999;
  }

  #header .navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
  }

  #header .navbar-mobile ul {
    display: block;
    position: absolute;
    top: 55px;
    left: 15px;
    bottom: 15px;
    right: 15px;
    padding: 10px 0;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;

  }

  #header .navbar-mobile a,
  #header .navbar-mobile a:focus {
    padding: 10px 20px;
    font-size: 15px;
    color: #354144;
  }

  #header .navbar-mobile a:hover,
  #header .navbar-mobile .active,
  #header .navbar-mobile li:hover>a {
    color: var(--maincolor);
  }

  #header .navbar-mobile .getstarted,
  #header .navbar-mobile .getstarted:focus {
    margin: 15px;
  }

  #header .navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  }

  #header .navbar-mobile .dropdown ul li {
    min-width: 200px;
  }

  #header .navbar-mobile .dropdown ul a {
    padding: 10px 20px;
  }

  #header .navbar-mobile .dropdown ul a i {
    font-size: 12px;
  }

  #header .navbar-mobile .dropdown ul a:hover,
  #header .navbar-mobile .dropdown ul .active:hover,
  #header .navbar-mobile .dropdown ul li:hover>a {
    color: var(--secondcolor);
  }

  #header .navbar-mobile .dropdown>.dropdown-active {
    display: block;
  }

  /* .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondcolor);
    transition: width var(--transition-speed);
  } */

  /* .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  } */

  /* .dropdown ul {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
  } */

  /* القائمة الجانبية للجوال */
  .mobile-nav-toggle {
    font-size: 2rem;
    color: var(--primary-color);
    display: none!important;
    cursor: pointer;
  }

  @media (max-width: 991px) {
    .mobile-nav-toggle {
      display: block!important;
    }
        #header .btn-language
    {
        display: block;
    }



    #header .navbar.active {
      right: 0;
    }

    #header .navbar ul {
      flex-direction: column;
      gap: 1rem;
    }
  }

  .logo-container {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      perspective: 1000px;
  }

  .floating-logo {
      transform-style: preserve-3d;
      /* animation: float 6s ease-in-out infinite; */
  }

  @keyframes float {
      0%, 100% { transform: translateY(0) rotateX(0deg); }
      50% { transform: translateY(-10px) rotateX(5deg); }
  }



  /* تحسينات التجاوب */
  @media (max-width: 992px) {
      .quantum-nav {
          display: none;
      }

      .mobile-toggle {
          display: flex !important;
          font-size: 1.8rem;
          color: var(--secondcolor);
          cursor: pointer;
          transition: transform 0.3s;
      }
     #header {
top: 0px;
  background-color: var(--maincolor);
}
#header .nav-link,#header h1,.fa-bars {

  color:white;
}
     /* #header.header-scrolled {
  top: 0px;
  background-color: var(--maincolor);
} */

      .logo-container {
          gap: 1rem;
      }

      .floating-logo {
          animation: none;
      }
  }

  /* =============end header============================= */
  /*--------------------------------------------------------------
# colleges Section
--------------------------------------------------------------*/
.colleges .card {
    background-color: #fff;
    border: 0;
    padding: 0 30px;
    margin-bottom: 60px;
    position: relative;
  }

  .colleges .card-img {
    width: calc(100% + 60px);
    margin-right: -30px;
    overflow: hidden;
    z-index: 9;
    border-radius: 0;
  }

  .colleges .card-img img {
    max-width: 100%;
    transition: all 0.3s ease-in-out;
  }

  .colleges .card-body {
    z-index: 10;
    background: #fff;
    border-top: 4px solid #fff;
    padding: 30px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    transition: 0.3s;
  }

  .colleges .card-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
  }

  .colleges .card-title a {
    color: var(--default-color);
    transition: 0.3s;
  }

  .colleges .card-text {
    color: color-mix(in srgb, var(--default-color), transparent 30%);
  }

  .colleges .card:hover img {
    transform: scale(1.1);
  }

  .colleges .card:hover .card-body {
    border-color: var(--maincolor);
  }

  .colleges .card:hover .card-body .card-title a {
    color: var(--maincolor);
  }
/*--------------------------------------------------------------
# end colleges Section
--------------------------------------------------------------*/
/*** Service ***/
.service-item {
    background: #d4efe6;
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--maincolor);
}

.service-item * {
    transition: .5s;
}
.service-item i {
    color: var(--maincolor);
}
.service-item:hover * {
    color: #fff !important;
}
/*--------------------------------------------------------------
# Counts Section
--------------------------------------------------------------*/
.counts {
    padding: 25px 0;
    /* background-color: #264653; */
  }

  .counts .stats-item {
    padding: 30px;
    width: 100%;
  }

  .counts .stats-item span {
    font-size: 48px;
    display: block;
    color: var(--maincolor);
    font-weight: 700;
  }

  .counts .stats-item p {
    color: color-mix(in srgb, #444444, transparent 40%);
    padding: 0;
    margin: 0;
    /* font-family: var(--heading-font); */
    font-size: 15px;
    font-weight: 600;
    text-align: center;
  }
  /*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features {
    padding: 10px 0;
  }

  .features .features-item {
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 20px;
    transition: 0.3s;
    border: 1px solid color-mix(in srgb,#444444, transparent 90%);
    position: relative;
  }
  .features .features-item img
  {
    padding-left: 10px;
    line-height: 0;
    width: 3rem;
    height: 3rem;

  }
  /* .features .features-item i {
    font-size: 32px;
    padding-left: 10px;
    line-height: 0;
  } */

  .features .features-item h3 {
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 16px;
  }

  .features .features-item h3 a {
    color: var(--maincolor);
    transition: 0.3s;
  }

  .features .features-item:hover {
    border-color: var(--maincolor);
  }

  .features .features-item:hover h3 a {
    color:var(--secondcolor);
  }
  /* --------القائمة الجانبية---------------- */

.offcanvas.offcanvas-end {
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
}
.offcanvas-header {
    padding: 0;
}
.offcanvas-header .btn-close {
    position: absolute;
    /* color: white; */
    background-color: white;
    top: 23px;
    left: 30px;
}
aside .smart-sidebar {
    padding: .5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

aside .campus-card {
    background: linear-gradient(45deg, var(--maincolor), var(--secondcolor));
    color: white;
    border-radius: 5px;
    padding: 1rem;
    /* margin-bottom: 1rem; */
    position: relative;
    overflow: hidden;
}

aside .campus-card::after {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

aside .nav-item {
    margin: 0.2rem 0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

aside .nav-link {
    color: var(--maincolor);
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    /* border-radius: 12px; */
    border-bottom: 1px solid #eee;
}

aside .nav-link:hover {
    background: rgba(42, 157, 143, 0.05);
    transform: translateX(5px);
}

aside .nav-link i {
    width: 30px;
    text-align: center;
    color: var(--maincolor);
}

aside .sub-menu {
    margin-right: 2rem;
    border-right: 2px solid var(--maincolor);
    transition: all 0.3s ease;
}

aside .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.95em;
    color: #5a5a5a;
    display: block;
    text-decoration: none;
    position: relative;
}

aside .sub-menu a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

aside .sub-menu a:hover {
    background: rgba(42, 157, 143, 0.05);
    padding-right: 1.5rem;
}

aside .collapsing {
    transition: height 0.3s ease;
}
aside .nav-item.has-submenu .nav-link::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: auto;
    margin-left: 10px;
    transition: all 0.3s ease;
    color: var(--primary);
}

aside .nav-item.has-submenu .nav-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--thirdcolor);
}

aside .nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

aside .nav-link:hover::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--thirdcolor);
    border-radius: 2px;
}

/* تحسينات على القوائم الفرعية */
aside .sub-menu {
    margin-right: 1.5rem;
    border-right: 2px solid rgba(42, 157, 143, 0.2);
}

aside .sub-menu a {
    padding: 0.8rem 2rem;
    transition: all 0.2s ease;
}

aside .sub-menu a:hover {
    transform: translateX(-5px);
}
aside .has-submenu > .nav-link::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: auto;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 0.8em;
}

aside .has-submenu > .nav-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--thirdcolor);
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }

    aside {
        width: 100%;
        height: auto;
    }

    aside .smart-sidebar {
        /* height: auto; */
        padding: 1rem;
    }

    /* main {
        padding: 1.5rem;
    } */
}

/* عند تصغير الشاشة قليلاً (أقل من 1200px) */
@media (max-width: 1200px) {
  #header .navbar  a {
    font-size: 14px;
    padding: 0.4rem 0.5rem !important;
  }
}


@media (max-width: 1324px) {
  #header .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  #header .navbar > ul >li> a {
    font-size: 14px;
    padding: 0.3rem 0.4rem !important;
  }
}

