* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f1f5f9;
  direction: rtl;
  font-family: "Amiri", serif;
  font-size: 20px;
}

:root {
  --main-color: #2196f3;
  --main-alt-color: #1787e0;
  --second-color: #19283f;
  --section-color: #eee;
  --padding-section: 50px 0;
  --transition: 0.5s ease-in-out;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Header */

.header {
  position: relative;
  background-color: #fff;
}

.header .head {
  gap: 25%;
}

.header .info {
  position: relative;
  cursor: pointer;
}

.header .info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin: 5px;
}

.header .info ul {
  display: none !important;
  position: absolute;
  background-color: #fff;
  width: 200px;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
  border: 1px solid var(--main-color);
  border-radius: 10px;
  z-index: 2;
}

.header .info ul.open {
  display: block !important;
}

.header .info a {
  display: block;
}

.header ul a {
  padding: 15px 20px;
  color: #000;
  position: relative;
  overflow: hidden;
  font-size: 20px;
  transition: 0.3s;
}

.header ul a::after {
  content: "";
  width: 0;
  height: 4px;
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--main-color);
  transition: 0.3s;
}

.header ul a:hover::after {
  width: 100%;
}

.header ul a:hover {
  color: var(--main-color);
  background-color: #fafafa;
}

.header .lang {
  padding: 10px 15px;
  background-color: var(--main-color);
  color: #fff;
  border-radius: 20px;
  font-size: 20px;
  transition: 0.3s;
  margin-top: 10px;
  margin-left: 0;
}

.header .lang:hover {
  background-color: var(--main-alt-color);
}

.header button {
  display: none;
}

@media (max-width: 992px) {
  .header .head {
    justify-content: space-between;
  }

  .header button {
    display: block;
    font-size: 25px;
  }

  .header nav {
    position: absolute;
    display: block !important;
    right: 0;
    top: 100%;
    width: 100%;
    border-top: 3px solid var(--main-color);
    background-color: #fff;
    z-index: 2;
    min-height: 287px;
    padding: 10px;
    display: none !important;
  }

  .header nav ul {
    display: block !important;
  }

  .header nav ul a {
    display: block;
  }

  .header nav ul a::after {
    width: 4px !important;
    height: 0;
    right: 0;
  }

  .header ul a:hover::after {
    height: 100%;
  }

  .header .info ul {
    right: -100px;
  }

  .header .lang {
    display: block;
    width: fit-content;
  }

  .header button.open + nav {
    display: block !important;
  }
}
/* Header */

/* Start Words2 */

.words2 .content {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.words2 .content .controls {
  border: 1px solid #777;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.words2 .control-page {
  gap: 10px;
}

.words2 .control-page .page-num span:first-child {
  color: var(--main-color);
}

.words2 .control-page .page-num span:last-child {
  padding: 0px 30px;
  border: 1px solid #ddd;
  border-radius: 30px;
}

.words2 .controls .control-btn {
  gap: 10px;
}

.words2 .controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-size: 14px;
}

.words2 .controls #prog {
  width: 25%;
}

.words2 .controls .slider-btn {
  gap: 10px;
}

.words2 .controls .prev.disable,
.words2 .controls .next.disable {
  display: none;
}

.words2 .content .slide-show {
  width: 100%;
  height: 500px;
  border: 1px solid #777;
  border-top: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
  position: relative;
}

.words2 .content .slide-show .slide {
  text-align: center;
  position: absolute;
  left: -50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: 0.5s;
}

.words2 .content .slide-show .slide.active {
  left: 50%;
}

.words2 .content .slide-show .slide img {
  width: 400px;
  height: 400px;
}

.words2 .content .slide-show .slide h3 {
  margin-top: 15px;
}

@media (max-width: 768px) {
  .words2 .content .controls {
    flex-wrap: wrap;
    row-gap: 20px;
    justify-content: center !important;
  }

  .words2 .controls #prog {
    width: 85%;
  }

  .words2 .controls .control-page {
    flex-wrap: wrap;
    justify-content: center;
  }

  .words2 .content .slide-show .slide img {
    width: 200px;
    height: 200px;
  }
}

/* End Words2 */
