* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: fontBWD;
  src: url(/assets/font/00119-UTM-HelvetIns/00119-UTM-HelvetIns.ttf);
}

body {
  font-family: fontBWD; /* Thay đổi font chữ nếu cần */
}
.container .background .head .img {
  width: auto;
  height: 3cm;
}
.navbar li {
  list-style: none;
  font-size: 1rem;
}
.navbar a {
  text-decoration: none;
  color: black;
  font-size: 1.1rem;
  line-height: 1.6;
}
.navbar a:hover {
  color: #46a4d2;
}
#header {
  padding: 0 2rem;
  font-family: fontBWD;
}
.navbar {
  background-color: whitesmoke;
  position: fixed;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: -32px;
  z-index: 1000; /* Đảm bảo tiêu đề nằm trên cùng */
}
.navbar .logo img {
  width: 160px;
  margin-top: 10px;
}
.navbar .links {
  display: flex;
  gap: 2rem;
}
.navbar .toggle_btn {
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}
.action_btn {
  background-image: linear-gradient(
    180deg,
    rgb(22, 167, 239),
    rgb(148, 45, 212)
  );
  color: whitesmoke !important;
  padding: 0.5rem 1rem;
  border: none;
  outline: none;
  border-radius: 20px;
  font-size: 1rem !important;
  cursor: pointer;
  transition: scale 0.2 ease;
  margin-right: 32px;
}

.action_btn:hover {
  scale: 1.05;
  opacity: 0.8;
}
.action_btn:active {
  scale: 0.95;
}
.action_btn2 {
  background-image: linear-gradient(
    180deg,
    rgb(22, 167, 239),
    rgb(148, 45, 212)
  );
  color: whitesmoke !important;
  padding: 0.5rem 1rem;
  border: none;
  outline: none;
  border-radius: 20px;
  font-size: 0.8rem !important;
  cursor: pointer;
  transition: scale 0.2 ease;
}

.action_btn2:hover {
  scale: 1.05;
  opacity: 0.8;
}
.action_btn2:active {
  scale: 0.95;
}
.dropdown_menu {
  display: none;
  position: absolute;
  height: 0px;
  top: 60px;
  width: 100%;
  background-color: rgb(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 10px;
  overflow: hidden;
  transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.open {
  height: 550px;
}
.dropdown_menu li {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropdown_menu .action_btn2 {
  width: 100%;
  display: flex;
  justify-content: center;
}
/* end header  */

/* Container chính */
/* .container {
  display: flex;
  flex-direction: column;
  background-position: center;
} */

/* Phần header */
.background .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.head .img {
  width: 150px;
  height: 150px;
  padding: 0cm;
}

.head .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#timkiem {
  height: 64px;
  width: 100%;
}
#findmentor {
  height: auto;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(
    180deg,
    rgb(22, 167, 239),
    rgb(148, 45, 212)
  );
  border-radius: 5px;
  padding: 16px;
}
#findmentor input {
  border-radius: 10px;
}
#findmentor select {
  border-radius: 10px;
}
#findmentor .find {
  padding-bottom: 16px;
  padding-top: 12px;
  padding-left: 64px;
  padding-right: 64px;
  background-color: black;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-family: fontBWD;
  border-radius: 10px;
  margin-bottom: 16px;
  align-items: center;
  margin-left: 7px;
}
#findmentor .find:hover {
  transform: scale(0.95);
}
#findmentor .EnterName {
  width: 98%;
  margin-left: 7px;
  padding: 16px 64px;
}

#findmentor .title_4 {
  height: auto;
  width: 100%;
  color: rgb(255, 255, 255);
  font-family: fontBWD;
  font-size: 30px;
  text-overflow: ellipsis;
  text-align: center;
  margin-bottom: 16px;
}

#findmentor .Khoa {
  padding: 16px 64px;
  margin: 8px 6px;
}

#findmentor .Ngành {
  padding: 16px 64px;
  margin: 8px 6px;
}
#findmentor .Môn {
  padding: 16px 64px;
  margin: 8px 6px;
}
/* tiêu đề */
.mentor-text {
  display: inline-block;
  padding: 16px 32px;
  color: whitesmoke;
  border-radius: 20px;
  margin: 32px;
  background-image: linear-gradient(
    180deg,
    rgb(22, 167, 239),
    rgb(148, 45, 212)
  );
}
.center {
  text-align: center;
}
@media (max-width: 1026px) {
  .navbar .links {
    display: none;
  }
  .navbar {
    display: none;
    display: flex;
  }
  .navbar .action_btn {
    display: none;
  }
  .navbar .toggle_btn {
    display: block;
  }
  .dropdown_menu {
    display: block;
  }
}
.nav {
  width: 100%;
  height: 250px;
  background-color: #c2e5f8;
}
.exam {
  font-family: fontBWD;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
  padding: 2rem;
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.card {
  position: relative;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 300px;
  margin: 1rem;
  transition: transform 0.2s;
}
.card a {
  text-decoration: none;
  /* position: absolute; */
  bottom: 0;
  right: 0;
  /* margin-right: 8px;
  margin-bottom: 8px; */
  color: black;
}

.card p {
   overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card a:hover {
  text-decoration: underline;
}
.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h2 {
  margin-top: 0;
  font-size: 1.5rem;


  overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.card-content p {
  color: #555;
}
.card-content a {
  text-decoration: none;
}
.testevent {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fff;
  font-family: fontBWD;
  font-weight: 400;
  font-style: normal;
}
section {
  padding-block: min(20vh, 2rem);
  width: calc(min(76.5rem, 90%));
  margin-inline: auto;
  color: #111;

  h2 {
    text-transform: capitalize;
    letter-spacing: 0.025em;
    font-size: clamp(2rem, 1.8125rem + 0.75vw, 2.6rem);
  }

  a {
    display: inline-block;
    text-decoration: none;
  }
  .container {
    margin-top: 5em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 2rem;

    .card {
      &:nth-child(1) .box .icon .iconBox {
        background: #d3b19a;
      }
      &:nth-child(2) .box .icon .iconBox {
        background: #70b3b1;
      }
      &:nth-child(3) .box .icon .iconBox {
        background: #d05fa2;
      }

      ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.625rem;
        position: absolute;
        bottom: 0;
        margin-bottom: 8px;
        li {
          text-transform: uppercase;
          background: var(--clr-tag);
          color: #282828;
          font-weight: 700;
          font-size: 0.8rem;
          padding: 0.375rem 0.625rem;
          border-radius: 0.188rem;
        }
        .branding {
          color: darken(#d3b19a, 40%);
        }

        .packaging {
          color: darken(#70b3b1, 40%);
        }

        .marketing {
          color: darken(#d05fa2, 40%);
        }
      }

      .content {
        padding: 0.938rem 0.625rem;

        h3 {
          text-transform: capitalize;
          font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
        }

        p {
          margin: 0.625rem 0 1.25rem;
          color: #565656;
        }
      }
    }

    .card-inner {
      position: relative;
      width: inherit;
      height: 18.75rem;
      background: var(--clr);
      border-radius: 1.25rem;
      border-bottom-right-radius: 0;
      overflow: hidden;

      .box {
        width: 100%;
        height: 100%;
        background: #fff;
        border-radius: 1.25rem;
        overflow: hidden;

        .imgBox {
          position: absolute;
          inset: 0;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }

        .icon {
          position: absolute;
          bottom: -0.375rem;
          right: -0.375rem;
          width: 6rem;
          height: 6rem;
          background: var(--clr);
          border-top-left-radius: 50%;

          &:hover .iconBox {
            transform: scale(1.1);
          }

          &::before {
            position: absolute;
            content: "";
            bottom: 0.375rem;
            left: -1.25rem;
            background: transparent;
            width: 1.25rem;
            height: 1.25rem;
            border-bottom-right-radius: 1.25rem;
            box-shadow: 0.313rem 0.313rem 0 0.313rem #fff;
          }

          &::after {
            position: absolute;
            content: "";
            top: -1.25rem;
            right: 0.375rem;
            background: transparent;
            width: 1.25rem;
            height: 1.25rem;
            border-bottom-right-radius: 1.25rem;
            box-shadow: 0.313rem 0.313rem 0 0.313rem var(--clr);
          }

          .iconBox {
            position: absolute;
            inset: 0.625rem;
            background: #282828;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: 0.3s;

            span {
              color: #fff;
              font-size: 1.5rem;
            }
          }
        }
      }
    }
  }
}
.b24-widget-button-wrapper {
  right: 20px !important;
  bottom: 100px !important;
}
.search .input input {
  width: 600px;
  padding: 20px;
  margin-left: 50px;
  border-radius: 15px;
  border-color: white;
  color: black;
  font-size: 20px;
  font-weight: 400;
}
.search h2 {
  font-size: 35px;
  font-weight: 600;
  color: #fff;
}
.fix-xemthem {
  text-align: center;
}
.xemthem {
  font-family: fontBWD;
  cursor: pointer;
  display: inline;
  padding: 16px 32px;
  color: whitesmoke;
  border-radius: 20px;
  margin: 32px;
  background-image: linear-gradient(
    180deg,
    rgb(22, 167, 239),
    rgb(148, 45, 212)
  );
  border: none;
}
.xemthem:hover {
  opacity: 0.8;
}
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: fontBWD;
  box-sizing: border-box;
}

/* .selectidea {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
} */

.selectidea p {
  width: 300px;
  text-align: left;
  margin-bottom: 30px;
}

.options {
  cursor: pointer;
  width: 300px;
  min-height: 60px;
  max-height: 300px;
  border-radius: 15px;
  background-color: rgb(250, 250, 250);
  box-shadow: 2px 4px 8px #c5c5c5;
  transition: all 300ms;
}

.options.opened {
  overflow-y: scroll;
}

.option {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  transition: all 300ms;
}

.option:nth-child(1) {
  border-radius: 15px;
}

.option:hover {
  background-color: brown;
  color: white;
}

.button {
  cursor: pointer;
  margin-top: 30px;
  width: 300px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(184, 255, 112);
  color: #212121;
  font-weight: 600;
  box-shadow: 2px 4px 8px rgba(45, 87, 5, 0.247);
}

.message {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 255px;
  height: 60px;
  position: absolute;
  right: -255px;
  bottom: 5vh;
  animation: showMessage ease-out 5s;
}

.message.success {
  background-color: rgb(184, 255, 112);
}

.message.danger {
  background-color: crimson;
}

@keyframes showMessage {
  0%,
  100% {
    right: -255px;
  }
  10% {
    right: 0;
  }
  90% {
    right: 0;
  }
}
/* Default styles for larger screens */
.flex_col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
}

.input {
  flex: 1;
}

.selectidea {
  display: flex;
  align-items: center;
  margin-top: -58px;
  margin-left: -150px;
}

.button {
  margin-left: 500px;
}

/* Tablet styles (for screens 768px and smaller) */
@media (max-width: 768px) {
  .selectidea {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    margin-left: 0;
  }

  .button {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Phone styles (for screens 480px and smaller) */
@media (max-width: 480px) {
  .selectidea {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    margin-left: 0;
  }

  .button {
    margin-left: 0;
    margin-top: 10px;
  }

  .input input {
    width: 100%;
    margin-bottom: 20px;
  }

  .options {
    width: 100%;
  }
}
/* footer */
.copyright {
  display: inline;
  font-family: sans-serif;
}
.logo-img {
  width: 450px;
}
.lienhe li {
  margin: 8px 0px;
}
.col-xs-6 {
  float: left;
  width: 33.33333%;
}
#site-footer {
  background-color: #97bade;
  padding: 45px 0 20px;
  color: whitesmoke;
  font-family: fontBWD;
  line-height: 1.8;
  font-size: 18px;
  text-transform: uppercase;
}
.tieude {
  font-size: 32px;
  text-transform: uppercase;
}
.phude {
  font-size: 28px;
  margin: 4px 0px;
  text-transform: uppercase;
}
#site-footer hr {
  border-top-color: whitesmoke;
}
#site-footer hr.small {
  margin: 20px 0;
}
#site-footer h6 {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 2px;
}
#site-footer a {
  color: whitesmoke;
}
#site-footer a:hover {
  color: #3366cc;
  text-decoration: none;
}
.footer-links {
  padding-left: 0;
  list-style: none;
}
.footer-links li {
  display: block;
}
.footer-links a {
  color: whitesmoke;
  text-decoration: none;
}
.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
  color: #3366cc;
  text-decoration: none;
}
.footer-links.inline li {
  display: inline-block;
}
#site-footer .social-icons {
  text-align: right;
  padding: 8px;
}
#site-footer .social-icons a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-left: 6px;
  margin-right: 0;
  border-radius: 100%;
  background-color: whitesmoke;
}
.copyright-text {
  margin: 0;
  margin: 8px 0px;
}
@media (min-width: 740px) and (max-width: 1023px) {
  #site-footer [class^="col-"] {
    margin-bottom: 30px;
  }
  .logo-img {
    width: 330px;
  }
}
@media (max-width: 739px) {
  #site-footer {
    padding-bottom: 0;
  }
  #site-footer .copyright-text,
  #site-footer .social-icons {
    text-align: center;
  }
  .logo-img {
    width: 250px;
    margin-left: 55px;
    margin-bottom: -64px;
    margin-top: -64px;
  }
  .col-xs-6 {
    text-align: center;
    width: auto;
    float: none;
    margin-bottom: 16px;
  }
}
.social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  margin-right: 64px;
}
.social-icons li {
  display: inline-block;
  margin-bottom: 4px;
}
.social-icons li.title {
  margin-right: 15px;
  text-transform: uppercase;
  color: black;
  font-weight: 700;
  font-size: 13px;
}
#site-footer .social-icons a {
  background-color: #eceeef;
  color: black;
  font-size: 16px;
  display: inline-block;
  line-height: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #29aafe;
}
.social-icons.size-sm a {
  line-height: 34px;
  height: 34px;
  width: 34px;
  font-size: 14px;
}
#site-footer .social-icons a.facebook:hover {
  background-color: #3b5998;
}
#site-footer .social-icons a.twitter:hover {
  background-color: #00aced;
}
#site-footer .social-icons a.linkedin:hover {
  background-color: #007bb6;
}
#site-footer .social-icons a.dribbble:hover {
  background-color: #ea4c89;
}
@media (max-width: 767px) {
  .social-icons li.title {
    display: block;
    margin-right: 0;
    font-weight: 600;
  }
}

/* reponsive tìm kiếm */
@media (max-width: 739px) {
  #findmentor {
    display: grid;
    padding: 10px;
  }
  #findmentor .EnterName {
    width: 100%;
    margin-bottom: 16px;
  }
  #findmentor .Khoa,
  #findmentor .Ngành,
  #findmentor .Môn {
    margin-bottom: 16px;
    width: 100%;
  }
  #findmentor .title_4 {
    color: #8b56e9;
  }
  .ipad {
    display: block;
    padding: 16px 32px;
  }
  #site-footer {
    text-align: center;
  }
}
/* reponsive envent mobile  */
@media (max-width: 739px) {
  section {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.back-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;

  color: #000;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: whitesmoke;
  border: 3px solid rgb(61, 61, 231);
  transition: 0.25s ease;
  /* visibility: hidden;
  opacity: 0; */
  z-index: 4;
  visibility: visible;
  opacity: 1;
  transform: translateY(-10px);
}

.back-top-btn:is(:hover, :focus-visible) {
  box-shadow: 0px 3px 20px hsla(180, 90%, 43%, 0.2);
}

.back-top-btn.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(-10px);
}
/* animation  */
.animation-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Đặt phía sau tất cả các phần tử khác */
  overflow: hidden;
}
.box-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.box-area li {
  position: absolute;
  display: block;
  list-style: none;
  width: 25px;
  height: 25px;
  background-image: linear-gradient(
    180deg,
    rgb(22, 167, 239),
    rgb(148, 45, 212)
  );
  animation: animate 5s linear infinite;
  bottom: -150px;
}
.box-area li:nth-child(1) {
  left: 86%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}
.box-area li:nth-child(2) {
  left: 12%;
  width: 30px;
  height: 30px;
  animation-delay: 1.5s;
  animation-duration: 10s;
}
.box-area li:nth-child(3) {
  left: 70%;
  width: 100px;
  height: 100px;
  animation-delay: 5.5s;
}
.box-area li:nth-child(4) {
  left: 42%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 15s;
}
.box-area li:nth-child(5) {
  left: 65%;
  width: 40px;
  height: 40px;
  animation-delay: 0s;
}
.box-area li:nth-child(6) {
  left: 15%;
  width: 110px;
  height: 110px;
  animation-delay: 3.5s;
}
@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-800px) rotate(360deg);
    opacity: 0;
  }
}

/* end animation  */
