* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Cairo", sans-serif;
  scroll-behavior: smooth;
}
:root {
  --main-color: #1c6ea4;
  --secondry-color: #154d71;
  --third-color: #33a1e0;
  --text-color: #f6f6f6;
}
body::selection {
  background-color: var(--secondry-color);
  color: white;
}
body {
  background-color: var(--text-color);
  text-align: center;
}

/*=============================== Start First NavBar Section ====================================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--main-color);
  width: 100%;
  padding: 0 50px;
  margin-right: 20px;
  position: relative;
  transition: all 2s;
}
@media (max-width: 767px) {
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .login {
    margin-left: -20px;
  }
}
.nav .links i {
  width: 28px;
  padding: 5px;
  height: 28px;
}
.login i {
  margin-top: 10px;
  transition-duration: 0.3s;
  display: inline-block;
}
.login p {
  margin-left: 20px;
}
.nav .links i:hover,
.nav .login span:hover i,
.nav .login span:hover p {
  color: var(--secondry-color);
  transform: scale(1.1);
}
.nav .links i,
.nav .login i {
  margin-left: 10px;
  color: white;
  font-size: 18px;
  padding: 5px;
}
.nav .login p {
  display: inline-block;
  color: white;
  font-weight: bold;
}

/*=============================== Start Second NavBar Section ====================================== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: white;
  position: fixed;
  z-index: 999;
  background-color: var(--text-color);
}
.navbar ul li a {
  text-decoration: none;
  padding: 10px 20px;
  margin-left: 50px;
  font-size: 18px;
  transition-duration: 0.5s;
}
.dropdown-menu {
  border-radius: 12px;
  border: none;
}
.dropdown-menu .dropdown-item {
  margin-left: 0;
  color: var(--main-color);
  display: flex;
  align-items: center;
  transition-duration: 0.3s;
  border-radius: 8px;
}
.navbar ul li a:hover {
  color: var(--secondry-color);
  font-size: 20px;
  border-bottom: var(--secondry-color) 3px solid;
}

.profile-icon,
.superAdminDashboardLink,
.adminDashboardLink {
  display: none;
}
section {
  padding: 20px;
}

/*=============================== Start Who We Are Section ====================================== */

.us {
  text-align: center;
  text-transform: capitalize;
  overflow: hidden;
}
.container {
  text-align: center;
}
.us .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 10px auto;
  text-align: center;
}
.us .container p {
  margin-bottom: 10px;
  padding: 10px;
  text-align: center;
  background-color: var(--main-color);
  color: var(--text-color);
  font-weight: bold;
  font-size: 20px;
}

/*=============================== Start Services Section ====================================== */

.services,
.library {
  text-align: center;
  text-transform: capitalize;
  overflow: hidden;
}
.special {
  margin-top: 15px;
  margin-bottom: 15px;
  display: inline-block;
  font-weight: bold;
  border-bottom: 3px solid var(--third-color);
  padding-bottom: 10px;
}
.services i,
.us i,
.library i,
.opinion i,
.team i {
  padding: 5px;
  font-size: 18px;
  margin-bottom: 15px;
  border: 3px solid black;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.services {
  background-color: var(--text-color);
}
.services .container {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.services .container .card {
  width: 30%;
  text-align: center;
  line-height: 1.9;
  padding: 10px;
  margin-top: 15px;
  margin-bottom: 40px;
  margin-left: 15px;
  box-shadow: 0px 0px 3px 3px gray;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .services .container {
    flex-direction: column;
  }
  .services .container .card {
    width: 90%;
  }
}
.container .card h3 {
  font-weight: bold;
  font-size: 20px;
  color: var(--secondry-color);
}
.container .card P {
  font-size: 18px;
  margin-top: 5px;
  font-weight: bold;
  color: var(--main-color);
}

/*=============================== Start Library Section ====================================== */

.library {
  background-color: var(--main-color);
}
.library .special {
  color: white;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  margin: auto;
}
.grid-container img,
.grid-container video {
  width: 100%;
  height: 350px;
  border-radius: 10px;
}
.library h2 {
  color: black;
}
.library h3 {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 25px;
  color: white;
  text-transform: capitalize;
}

/*=============================== Start Opinion Section ====================================== */

.opinion {
  padding: 40px 20px;
  background-color: var(--secondry-color);
  text-align: center;
  text-transform: capitalize;
  overflow: hidden;
}
.opinion .special {
  color: white;
}
.opinion h2 {
  font-size: 28px;
  font-weight: bold;
  color: black;
}
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}
.opinion-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.client-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.client-name {
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0 0;
  color: var(--main-color);
}
.client-title {
  font-size: 16px;
  color: var(--main-color);
  display: block;
  margin-bottom: 8px;
}
.rating {
  font-size: 18px;
  color: #ffc107;
  margin-bottom: 10px;
}
.text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--main-color);
  font-weight: bold;
}

/*=============================== Start Team Section ====================================== */

.team {
  text-align: center;
  text-transform: capitalize;
  overflow: hidden;
}
.team .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  padding: 20px;
  margin: 20px auto;
}

.team .container img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}
@media (max-width: 767px) {
  .team .container img {
    margin: 20px auto;
  }
}
.team .container .card h3 {
  color: var(--secondry-color);
  text-transform: capitalize;
  font-weight: bold;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}

/*=============================== Start Footer Section ====================================== */

.footer {
  background-color: var(--main-color);
  color: white;
  padding: 40px 20px 10px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}
.footer-section h3,
.footer-section h4 {
  color: white;
  font-weight: bold;
}
.footer-section p,
.footer-section ul {
  font-size: 16px;
  line-height: 1.8;
}
.footer-section ul {
  list-style: none;
  margin-top: 5px;
}
.footer-section ul li {
  margin-bottom: 10px;
}
.footer-section ul li a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  transition-duration: 0.3s;
  width: fit-content;
  margin-left: 30px;
}
.footer-section ul li a:hover,
.social-icons a:hover {
  color: var(--secondry-color);
  border-bottom: 2px solid var(--secondry-color);
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}
.social-icons a {
  font-size: 20px;
  margin-right: 10px;
  color: var(--text-color);
  text-decoration: none;
  transition-duration: 0.3s;
  display: inline-block;
  width: fit-content;
}
.footer-bottom {
  text-align: center;
  padding: 10px;
  border-top: 2px solid #444;
  font-size: 16px;
  margin-top: 20px;
}

/*================================== scroll To Move Up ====================================== */

.up {
  position: fixed;
  font-size: 40px;
  bottom: 10px;
  right: 10px;
  color: var(--secondry-color);
}
.up:hover {
  color: var(--main-color);
}
/* width */
::-webkit-scrollbar {
  width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--main-color);
}

/* ================================= show element when scroll ===================================*/

.box {
  opacity: 0;
  transition: all 0.6s linear;
}
.from-left {
  transform: translateX(-100px);
}
.from-right {
  transform: translateX(100px);
}
.show {
  opacity: 1;
  transform: translateX(0);
}
.hidden {
  display: none;
}

@media (max-width: 470px) {
  .footer-container {
    display: grid;
  }
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
  }
}
