html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  * {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  ::-webkit-scrollbar {
    width: 12px;
    background-color: #fff;
    border-left: 2px solid #eee;
    -webkit-box-shadow: 0px 0px 21px 0px #0003 inset;
    box-shadow: 0px 0px 21px 0px #0003 inset;
  }
  ::-webkit-scrollbar-thumb {
    background-color: #000;
    -webkit-box-shadow: 0px 0px 10px 0px #eeeeee8c inset;
    box-shadow: 0px 0px 10px 0px #eeeeee8c inset;
    border-radius: 100vh;
  }
  #Courses picture:before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    background-image: url("../images/team-shape.svg");
    background-repeat: repeat-x;
    width: 100%;
    height: 60px;
  }
  .rtl{
    direction: rtl;
  }

  .card:hover h3, 
  .card:hover span, 
  .card:hover li {
      color: #fff !important;
  }
  .card:hover button {
      background-color: #fff !important;
      color: #000 !important;
  }
.ribbon {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}
.ribbon {
  --f: .5em; /* control the folded part */
  
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
  transform-origin: 100% 100%;
  background-color: #0e9f6e; /* the main color  */
}

#nav li a {
  position: relative;
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.3s ease; /* Smooth color transition */
}

nav[scroll="yes"] li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px; /* Border height */
  background-color: #2F80ED; /* Active border color */
  transition: width 0.4s ease; /* Smooth transition of border width */
}
nav[scroll="no"] li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px; /* Border height */
  background-color: #fff; /* Active border color */
  transition: width 0.4s ease; /* Smooth transition of border width */
}

nav[scroll="yes"] li a.active {
  color: #2F80ED; /* Change text color when active */
}


#nav li a.active::after {
  width: 100%; /* Full width when active */
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
  background-image: url(../../images/textured-metal-background.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

.social-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 30px;
  padding-top: 15px;
  list-style: none;
  margin-bottom: 0;
}
.social-links li {
  margin: 0 10px;
}
.social-links li a {
  color: #fff;
}