@font-face {
  font-family: "inter400";
  src: url(../fonts/Almarai-Regular.ttf);
}

@font-face {
  font-family: "inter700";
  src: url(../fonts/Almarai-Bold.ttf);
}

@font-face {
  font-family: "inter800";
  src: url(../fonts/Almarai-ExtraBold.ttf);
}

:root {
  --top-bar-backgroundColor: #1c4b55;
  --top-bar-color: #ffffff;

  --navbar-backgroundColor: #ffffff;
  --navbar-color: #12223B;

  --button-mainbg-color: #1c4b55;
  --button-maincolor: #ffffff;

  --button-secondbg-color: #ffffff;
  --button-secondcolor: #FF324D;
  --text-color: #164E6E;
  --main-color: #df9f2a;
  --light-main-color: #FFF1F1;
  --white-color: #fff;
  --second-color: #e6a427;
  --light-second-color: #EEFEFF;
  --unread-color: #FF324D;
  --background-color: #F5F5F5;
  --highlight-color: #FCE4E4;
}

.textMain {
  color: var(--text-color);
}

.textSecond {
  color: var(--second-color);
}

.textthird {
  color: var(--main-color);
}

.textGray {
  color: #8A8A8E;
}

* {
  font-family: 'inter400', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none !important;
  -webkit-transition: all .2s linear;
  -o-transition: all .2s linear;
  transition: all .2s linear;

}

html {

  font-size: 16px;
  direction: rtl;
  scroll-padding-top: 8rem;
  scroll-behavior: smooth;
}

body {}

/* html::-webkit-scrollbar {
  width: 1rem;
}

html::-webkit-scrollbar-track {
  background: #e1e1e1;
}

html::-webkit-scrollbar-thumb {
  background: #ff0040;
} */


/* upper-nav */
.upper-nav {
  background-color: var(--top-bar-backgroundColor);
  color: var(--top-bar-color) !important;
}

.upper-nav a {
  color: var(--top-bar-color);
}

.dropdown-item {
  color: #6f6f6f !important;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--main-color) !important;
}

.icons .icon {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  cursor: pointer;
  background-color: rgba(255, 255, 255, .1);
}

.icons .icon a i {
  color: #fff;
}

.icons .icon:hover {
  background-color: white;

}

.icons .icon:hover a i {
  color: #df9f2a;
}

nav {

  background-color: #fff;

}

nav .nav-link {
  color: #262626;
  font-family: "inter700";
  font-size: .9rem;
  line-height: 1.51488rem;
}

nav .nav-link.active {
  color: #ff0040 !important;
  font-family: "inter800";
  font-size: .9rem;
  line-height: 1.51488rem;
}

.nav-link:focus,
.nav-link:hover {
  color: #ff0040 !important;
}

.navbar-nav {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;

}

.header-section {
    margin-top: 25px;
    text-align: center;
    margin-bottom: 25px;
}

/* Title styling */
.header-title {
  font-size: 2.1rem;
  font-weight: bold;
  font-family: "inter800";
  margin: 0;
  color: var(--text-color);
}


/* Subtitle styling */
.header-subtitle {
  font-size: 1rem;
  color: var(--second-color);
  margin-top: 10px;
}

.btn-custom1 {
  font-family: "inter700";
  font-size: 0.75rem;
  line-height: 0.8rem;
  color: white;
  background-color: var(--second-color);
  border-radius: 3px;
  border: none;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}

.btn-custom1:hover {
    background-color: #cc890d;
}


.btn-main {
  background-color: #164E6E;
}

.btn-sec {
  background-color: var(--second-color);
}



.button-container-collapes {
  display: none;
}

#home {
  background-color: #fff;
}

.vh-90 {
  height: 84vh;
}

#home h1 {
  color: #1c4b55;
  font-size: 3rem;
  font-family: "inter800";

}

#home p {
  color: #8D8D8D;
  text-align: center;
  font-size: 1.2rem;

  font-family: "inter700";

}

#home .btn-custom1 {
  font-size: 1.125rem;

}


/* end home section */

#about p {
  color: #8A8A8A;


  font-size: 1.125rem;



}

#about .about-card h4 {
  color: #25C0C5;

  font-family: "inter800";

  font-size: 1rem;


  line-height: 1.5rem;

}

#about .about-card p {
  color: #848484;

  font-size: 0.875rem;


}

/* start service section */
#service {
  background-color: #25C0C5;
  z-index: 99;
}

#service .tri {
  top: -2%;
  left: 0%;
  z-index: -1;
}

#service svg {
  top: 0%;
  left: 0%;
  z-index: -1;
}

#service h4 {
  color: #FFF;

  font-size: 2rem;
  font-family: "inter800";
  line-height: 4.5rem;
}

#service p {
  color: #FFF;

  font-size: 1.15rem;
  font-family: "inter700";
  line-height: 2.3125rem;

  letter-spacing: -0.00625rem;
}

#service h3 {
  display: inline-block;
  background-color: #1c4b55;
  padding: .5rem 2rem;
  border-radius: 1.6875rem;
  color: #FFF;

  font-family: "inter700";
  font-size: 1.5rem;

  line-height: 1.725rem;
  letter-spacing: -0.0075rem;


}

.slide-container {
  margin: 0 50px;
  overflow: hidden;
}

.swiper-navBtn {
  color: #eeeeee;
  height: 40px;
  width: 40px;
  background: #1c4b55;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-navBtn::before,
.swiper-navBtn::after {
  font-size: 1.2rem;
  font-weight: 700;
}

.swiper-pagination-bullet {
  background-color: #1c4b55;
  width: .8rem;
  height: .8rem;
}

@media screen and (max-width: 768px) {
  .swiper-navBtn {
    display: none;
  }
}

#service .card {
  filter: grayscale(100%);
  transition: all linear 0.2s;
  border-radius: 16px;
}

#service .card:hover {
  filter: grayscale(0%);
}

#service .card h5 {
  color: #FFF;

  font-family: "inter400";
  font-size: 1.22188rem;

  line-height: 1.83281rem;
  letter-spacing: -0.00613rem;
}

#service .card h5 span {
  color: #FFF;
  font-family: "inter800";
  font-size: 1.4255rem;
  line-height: 1.83281rem;
  letter-spacing: -0.00713rem;
}

#service .card p {
  color: #FFF;


  font-size: 0.83369rem;
  font-family: "inter700";
  line-height: 1.25056rem;
  letter-spacing: -0.00419rem;
}

#service .card-body {
  background-color: #1c4b55;
  border-radius: 0px 0 16px 16px;

}

#grade .grade-card {

  border: #25C0C5 solid 3.6px;

}

#grade .grade-card h5 {
  color: #25C0C5;

  font-size: 1.125rem;
  font-family: "inter800";

}

#grade .grade-card a {
  color: #1c4b55;

  font-size: .975rem;

}

#service .service-card {
  min-height: 28rem;
  border: white solid 3.6px;

}

#service .service-card h5 {
  color: #FFF;

  font-size: 1.5rem;
  font-family: "inter800";
  line-height: 2.625rem
}

#service .service-sec .tris .sec {
  left: -40%;

}

#service .service-sec .tris .third {
  right: -20%;

}

#service .service-card p {
  color: #FFF;
  font-family: "inter700";
  font-size: 1rem;

  line-height: 1.5rem;
}








/* end service section */



#touch h2 {
  font-family: "inter800";
  color: #25C0C5;
  display: inline-block;
  font-size: 3rem;

  position: relative;

}

#touch h2::after {
  content: "";
  width: 15%;
  height: 0.25rem;
  background: #1c4b55;
  position: absolute;
  left: -19%;
  top: 50%;
  transform: translateY(-50%);

}

#touch p {
  color: #6D6D6D;

  font-size: 1.25rem;
  font-family: "inter700";
  line-height: 2.3125rem;
  letter-spacing: -0.00625rem;
}

#touch h6 {
  color: #6D6D6D;
  font-family: "inter700";
  font-size: 1.075rem;
  display: inline-block;
  line-height: 1.6125rem;
  letter-spacing: -0.00538rem;
  position: relative;
}

#touch h6::after {
  content: "";
  width: 15%;
  height: 0.25rem;
  background: #1c4b55;
  position: absolute;
  left: -19%;
  top: 50%;
  transform: translateY(-50%);

}

#touch .icons .icon {
  width: 2.6rem;
  height: 2.6rem;

  border-radius: 50%;
  cursor: pointer;
  border: #1c4b55 solid 2px;

}

#touch .icons .icon a i {
  color: #1c4b55;

}

#touch .icons .icon:hover {
  background-color: #1c4b55;

}

#touch .icons .icon:hover a i {
  color: white;

}

#footer {
  background-color: #1c4b55;
}

#footer p {
  color: #FFF;

  font-size: 0.875rem;
  font-family: "inter700";

  line-height: 1.61875rem;
  letter-spacing: -0.00438rem;
}

#footer h6 {
  color: #FFF;

  font-size: 1rem;
  font-family: "inter800";
  line-height: 1.5rem;
  letter-spacing: -0.005rem;
  position: relative;
  display: inline-block;
}

#footer h6::after {
  content: "";
  width: 45%;
  height: 0.20rem;
  background: #ffffff;
  position: absolute;
  left: -60%;
  top: 50%;
  transform: translateY(-50%);

}

#footer ul {
  list-style: none;
}

#footer .icons .icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  cursor: pointer;
  background-color: rgba(255, 255, 255, .1);
}

#footer .icons .icon a i {
  color: #fff;
}

#footer .icons .icon:hover {
  background-color: white;

}

#footer .icons .icon:hover a i {
  color: #ff0040;

}

.textInput i {
  top: 50%;
  left: 4%;
  transform: translateY(-50%);
  cursor: pointer;
}

.textInput label {
  color: #535353;
  font-size: .975rem;
  font-family: "inter700";

}

.textInput input {
  color: #000;
  font-size: 1rem;
  line-height: 1.375rem;
  letter-spacing: -0.0255rem;
}

.textInput .invalidAlert {

  color: #E91D26;
  font-size: 1rem;
  font-family: "inter700";
  line-height: 1.5rem;
  letter-spacing: -0.005rem;
}

.textInput .inputAlert {
  border: 2px solid #E91D26 !important;

}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border: 2px solid #164E6E;
  outline: 0;
  box-shadow: 0 0 0 0 rgba(13, 110, 253, .25);
}

.form-select:focus {
  color: #212529;
  background-color: #fff;
  border: 2px solid #164E6E;
  outline: 0;
  box-shadow: 0 0 0 0 rgba(13, 110, 253, .25);
}

#login h2 {
  color: #25C0C5;

  font-size: 3.09531rem;
  font-family: "inter800";
  line-height: 4.643rem;
}

#login p {
  color: #8A8A8E;

  font-size: 1.23813rem;
  font-family: "inter700";
  line-height: 2.29056rem;
  letter-spacing: -0.00619rem;
}

#login label {
  color: #535353;

  font-size: 1.44356rem;
  font-family: "inter700";
  line-height: 2.16538rem;
  letter-spacing: -0.00719rem;
}

#login h6 {
  color: #303030;

  font-size: 1rem;
  font-family: "inter700";
  line-height: 1.5rem;
  letter-spacing: -0.005rem;

}

#login input {}

/* SHAERD CSS */
.lessonCard h5 {
  display: inline-block;
  color: #16da3d;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: #eefff1;
  font-family: "inter700";
  font-size: 1rem;
}

.subjectCard h6 {
  display: inline-block;
  color: #25C0C5;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: var(--light-second-color);
  font-family: "inter700";
  font-size: 1rem;
}

.subjectCard h5 {
  display: inline-block;
  color: #16da3d;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: #eefff1;
  font-family: "inter700";
  font-size: 1rem;
}

.cartCard h6 {
  display: inline-block;
  color: #25C0C5;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: var(--light-second-color);
  font-family: "inter700";
  font-size: 1rem;
}

.cartCard h5 {
  display: inline-block;
  color: #16da3d;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: #eefff1;
  font-family: "inter700";
  font-size: 1rem;
}

.cartCard .subjectimg {
  width: 4rem;
  height: 4rem;
  background-color: var(--second-color);
  border-radius: 1rem;
}

.cartCard {
  text-align: center;
}

.cartCard .delete-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.cartCard .delete-icon:hover {
  color: #ff0000;
  /* Change color on hover */
}


.cartCard .subjectimg img {
  display: block;
  margin: 0 auto;
}

.cartCard .textSecond,
.cartCard .textMain,
.cartCard .textthird {
  text-align: center;
}

.productContent .subjectCard .delete-icon {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.productContent .subjectCard .delete-icon i {
  color: #dc3545;
  /* Red color for delete icon */
}

.productContent .subjectCard .delete-icon:hover i {
  color: #ff0000;
  /* Brighter red on hover */
}

.teacherCard h5 {
  display: inline-block;
  color: #16da3d;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: #eefff1;
  font-family: "inter700";
  font-size: 1rem;
}

.teacherCard h6 {
  display: inline-block;
  color: #25C0C5;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: var(--light-second-color);
  font-family: "inter700";
  font-size: 1rem;
}

.lessonCard h6 {
  display: inline-block;
  color: #25C0C5;
  padding: 0.25rem 2rem;

  border-radius: 1.5rem;
  background-color: var(--light-second-color);
  font-family: "inter700";
  font-size: 1rem;
}

.teacherimg {
  width: 6rem;
  height: 6rem;
  background-color: var(--second-color);
  border-radius: 50%;
}

.subjectimg {
  width: 6rem;
  height: 6rem;
  background-color: var(--second-color);
  border-radius: 1rem;
}

.sec-header h3 {
  display: inline-block;
  color: #25C0C5;
  padding: 0.25rem 3rem;

  border-radius: 1.6875rem;
  background-color: #25c0c534;
  font-family: "inter700";
  font-size: 1rem;

}

.sec-header h2 {
  font-family: "inter800";
  color: #1c4b55;
  font-size: 1.9rem;

}

.sec-header p {
  color: #464646;
  font-size: 1rem;
  line-height: 1.875rem;
  letter-spacing: -0.01063rem;
}



/* chatPage */
body {
  /*background-color: var(--background-color);*/
  font-family: Arial, sans-serif;
}

/* Full height for chat area */
.chat-container {
  height: 83vh;
  overflow: hidden;
}

/* Chat list styles */
.chat-list {
  height: 67vh;
  /* Fixed height for scrolling */
  overflow-y: auto;
  /* Enable scrolling */
  border-right: 1px solid #ddd;
}

.chat-card {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.chat-card.unread .chat-name {
  font-weight: bold;
  color: var(--unread-color);
}

.chat-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 10px;
}

.chat-info {
  flex: 1;
}

.chat-info p {
  margin: 0;
}

.chat-time {
  font-size: 0.8rem;
  color: var(--text-color);
}

.chat-unread {
  font-size: 0.8rem;
  color: var(--unread-color);
  font-weight: bold;
}

/* Chat area styles */
.chat-area {
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.chat-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 10px;
}

.chat-messages {
  height: 60vh;
  /* Fixed height for scrolling */
  overflow-y: auto;
  /* Enable scrolling */
  padding: 10px 0;
  scroll-behavior: smooth;
  /* Smooth scrolling */
}

.chat-message {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.chat-message.message-sent {
  justify-content: flex-end;
}

.chat-message.message-received {
  justify-content: flex-start;
}

.chat-message img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-inline: 10px;
}

.message-content {
  padding: 8px;
  border-radius: 5px;
  max-width: 70%;
  position: relative;
}

.message-sent .message-content {
  background-color: var(--main-color);
  color: white;
  text-align: right;
}

.message-sent .message-content::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -9px;
  width: 0;
  height: 0;
  border-right: 10px solid var(--main-color);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.message-received .message-content {
  background-color: var(--second-color);
  color: white;
}

.message-received .message-content::before {
  content: "";
  position: absolute;
  top: 4px;
  right: -9px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--second-color);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.chat-footer {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #ddd;
}

.chat-footer input[type="text"] {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-left: 5px;
}

.chat-footer button {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
}

/* end chatPage */






@media (max-width: 991px) {
  html {
    font-size: 14px;
  }

  .button-container-collapes {
    display: block;
  }

  .button-container {
    display: none;
  }

  .navbar-brand {
    order: 2;
  }

}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 12px;
  }

}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: white !important;
    background-color: #164e6e !important;
}
