/* /////////////////////////////////////////////  fonts and variables /////////////////// */

@font-face {
  font-family: 'font-light';
  src: url('../fonts/IRANSansWeb_Light.woff2') format('woff2');
}

@font-face {
  font-family: 'font';
  src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
  font-family: 'font-medium';
  src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'font-bold';
  src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'font-faNum';
  src: url('../fonts/IRANSansWeb\(FaNum\).woff2') format('woff2');
}

@font-face {
  font-family: 'font-Nastaliq';
  src: url('../fonts/IranNastaliq.woff2') format('woff2');
}

:root {
  --primary: #1f6193;
  --dark-primary: #11446e;
  --light-primary: #e7eeee;
  --lighter-gray: #f8fafa;
  --light-gray: #edf2f2;
  --dark-gray: #2e3c46;
  --darker-gray: #1d2730;
  --accent: #e49224;
}

/* ////////////////////////////////////////////// Global Classes //////////////////////// */

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: 'font';
}

html {
  font-size: 62.5%;
}

body {
  background: url('../img/back3.jpg');
  position: relative;
}

body::before {
  content: '';
  background-color: rgba(46, 111, 158, 0.91);
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.heading-2 {
  font-size: 2.1rem;
  color: var(--dark-primary);
  text-align: center;
}

.heading-3 {
  font-size: 2.1em;
  font-weight: 900;
  color: var(--primary);
  width: 100%;
  text-align: center;
}

.wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 7px #000000e3;
  background: white;
}

button,
button:hover,
button:active,
button:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.primary-button {
  background-color: var(--primary);
  color: #fff;
  border-radius: 0px;
  border: 1.5px solid var(--primary) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s all;
  box-shadow: none;
  cursor: pointer;
  padding: 10px 0;
}

.secondary-button {
  background-color: #fff;
  color: var(--primary);
  border-radius: 0px;
  border: 2px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s all;
  box-shadow: none;
  cursor: pointer;
  padding: 0.5rem;
}

.secondary-button:hover {
  background-color: var(--primary);
  color: #fff;
  border: 1.5px solid #ffffff;
}

.primary-button:hover {
  background-color: var(--lighter-gray);
  color: var(--dark-primary) !important;
}

.animate-opacity {
  animation: opac 0.8s;
}

@keyframes opac {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.main-section {
  padding: 5rem 10%;
  width: 100%;
  font-size: 1.6rem;
  direction: rtl;
  background-color: #d5dcdc;
}

.main-section__container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.heading-2--main-section {
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  padding-top: 1rem;
  position: relative;
  border-bottom: 1.5px solid hsl(180 17% 87% / 1);
}

.heading-2--main-section::before {
  content: '';
  width: 50px;
  height: 2px;
  position: absolute;
  z-index: 1;
  right: 50%;
  top: 100%;
  background-color: var(--primary);
}

.heading-2--main-section::after {
  content: '';
  width: 50px;
  height: 2px;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 100%;
  background-color: var(--primary);
}

.main-section__paragraph {
  text-align: justify;
  line-height: 35px;
  color: var(--darker-gray);
}

.card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 4px #2e3c4614;
  background-color: var(--lighter-gray);
  margin: 2.5%;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-between;
}

a {
  text-decoration: none;
}

a:visited {
  color: inherit;
}

a:link {
  color: inherit;
}

a.highlight {
  color: var(--primary);
  display: inline-block;
}

a.highlight:hover {
  color: var(--dark-primary);
}

/* //////////////////////////////////////////////// Header  ////////////////////////////////// */

header {
  overflow-x: hidden;
}

.header__container {
  width: 100%;
  height: 150px;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  justify-items: center;
  align-content: center;
}

.header__wrapper {
  width: 92%;
  height: 125px;
  margin: auto;
  display: grid;
  grid-template: 1fr 1fr/ 1fr;
  font-weight: 500;
}

.header__logo-wrapper {
  display: flex;
  direction: rtl;
  justify-content: center;
  align-items: center;
  grid-row: 1 / 2;
}

.header__logo-wrapper > div {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__logo-wrapper hgroup {
  margin-top: 20px;
  position: relative;
  height: 100%;
  display: flex;
}

.header__logo {
  height: 66px;
}

.header__title {
  font-family: 'font-Nastaliq';
  font-size: 3.5em;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 3px rgb(73, 73, 73);
  margin-right: 5px;
  line-height: 15px;
}

.header__title span {
  font-size: 14px;
  margin-bottom: 12%;
}

.header__title-detail {
  position: absolute;
  top: 50%;
  right: 0%;
  color: #fff;
  width: 85%;
  text-align: center;
  font-size: 10px;
}

.header__title--english {
  display: none;
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem !important;
  letter-spacing: 0.5px;
  line-height: 1 !important;
  margin: 0.5rem 0 0 0 !important;
}

.header__buttons {
  padding-top: 10px;
  grid-row: 2 / 3;
  display: grid;
  grid-template: 1fr / 1fr 1fr;
  grid-gap: 20px;
  background-color: var(--primary);
}

.secondary-button--header-menu {
  font-size: 1.7em;
  font-family: 'font-medium';
  cursor: pointer;
  border: 1.5px solid #ffffff;
}

.secondary-button--header-search {
  font-size: 1.7em;
  font-family: 'font-medium';
  cursor: pointer;
  border: 1.5px solid #ffffff;
}

.header__buttons i {
  font-size: 0.9em;
  padding-left: 5px;
}

/* //////////////////////////////////////////////  Sidbar ////////////////////////////////////// */

.sidebar {
  width: 90%;
  max-width: 600px;
  background-color: #1f6193ed;
  display: flex;
  flex-direction: column;
  color: #fff;
  -webkit-box-shadow: 0 0 5px #464646;
  -moz-box-shadow: 0 0 5px #464646;
  box-shadow: 0 0 5px #464646;
  position: absolute;
  top: 144px;
  transition: right 0.7s;
  right: -900px;
  z-index: 20;
}

.menu-input {
  display: none;
}

.menu-input:checked ~ .sidebar {
  right: 0;
}

.sidebar__mob-search {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;
  direction: rtl;
}

.sidebar__mob-search-input {
  height: 35px;
  width: 65%;
  border: 1px solid #616161;
}

.sidebar__mob-search a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  font-size: 2em;
  width: 20%;
  display: flex;
  justify-content: center;
  justify-self: center;
}

/* -------------------------- navbar --------------------------- */

.navbar {
  margin-bottom: 15px;
}

.navbar::before {
  content: '';
  width: 100%;
  height: 2rem;
  background-image: url('../img/white-stripes-hd.png');
  display: block;
}

.navbar__item {
  display: grid;
  grid-template: 1fr auto / 1fr 1fr 1fr 1fr 1fr 1fr;
  border-bottom: 2px solid #21445e66;
  overflow: hidden;
  transition: all 0.5s;
}

.navbar__item:first-of-type {
  border-top: 2px solid #21445e66;
}

.navbar__checkbox {
  display: none;
}

.navbar__item-label {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  position: relative;
  font-size: 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0px 15px 0px;
  background-color: rgb(0 0 0 / 18%);
  height: 100%;
  width: 100%;
  transition: all 0.6s;
}

.navbar__item-label i {
  color: var(--lighter-gray);
  border: 1.5px solid var(--lighter-gray);
  border-radius: 50%;
  padding: 10px 11px 10px 11px;
  font-weight: bold;
  transition: all 0.5s;
}

.navbar__item-link {
  grid-column: 3 / 6;
  grid-row: 1 / 2;
  font-size: 1.6em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--lighter-gray);
  cursor: default;
}

.navbar__item--no-sublist .navbar__item-link {
  height: 70px;
  grid-column: 2 / 6;
  cursor: pointer;
}

.navbar__list-wrapper {
  max-height: 0px;
  grid-column: 1 / 7;
  grid-row: 2 / 3;
  background-color: white;
  transition: 0.3s linear 0s;
  overflow: hidden;
}

.navbar__list-content--mega {
  display: flex;
  flex-direction: column;
}

.navbar__list-col {
  padding: 0 10px;
}

.navbar__subitem--megaL1 {
  height: unset !important;
  justify-content: space-between !important;
}

.navbar__subitem--megaL1 > .navbar__subitem-link {
  flex: 0 1 35%;
  padding-right: 10px;
  color: var(--accent) !important;
  text-shadow: 0 1px 1px var(--light-gray);
  font-weight: 500 !important;
  cursor: default !important;
}

.navbar__subitem--reset {
  border-top: none !important;
  margin-top: 0 !important;
}

.navbar__subitem--megaL2 {
  height: 40px !important;
  font-size: 1.5rem !important;
  justify-content: flex-start !important;
}

.navbar__subitem--megaL2:first-of-type {
  border-top: none !important;
  margin-top: 15px !important;
}

.navbar__subitem--megaL2:last-of-type {
  border-bottom: none !important;
  margin-bottom: 15px;
}

.navbar__subitem--megaL2 .navbar__subitem-link {
  line-height: 17px;
}

.navbar__subitems {
  direction: rtl;
  flex: 0 1 60%;
}

.navbar__subitem {
  height: 55px;
  font-size: 1.6rem;
  display: flex;
  color: var(--primary);
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid rgba(70, 70, 70, 0.4);
}

.navbar__subitem-link {
  color: var(--dark-primary);
}

.navbar__subitem:first-of-type {
  border-top: 2px solid rgba(70, 70, 70, 0.4);
  margin-top: 20px;
}

.navbar__list-wrapper a:hover {
  color: var(--accent) !important;
  text-shadow: 0 1px 2px var(--light-gray);
  font-weight: 600;
  cursor: pointer;
}
/* ----------------------- Navbar : FINISH -------------------------*/

.sidebar__subnav-list {
  height: 215px;
  margin-bottom: 0;
  width: 100%;
}

.sidebar__subnav-item {
  width: calc(100% - 4rem);
  margin: 0 auto;
  list-style: none;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 4px 0;
  position: relative;
  margin-bottom: 2px;
  cursor: pointer;
}

.sidebar__subnav-item:last-of-type {
  padding-bottom: 4px;
}

.sidebar__subnav-item:first-of-type {
  padding-top: 4px;
}

.sidebar__subnav-item div {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background-color: #002d57;
  z-index: -1;
  transition: all 0.3s;
}

.sidebar__subnav-item:hover div {
  width: 100%;
}

.sidebar__subnav-link {
  text-decoration: none;
  width: 100%;
  transition: all 0.25s;
  font-family: 'font-medium';
  font-size: 1.5rem;
  line-height: 3.5rem;
  padding: 0.1rem 1rem;
  color: var(--lighter-gray);
}

.sidebar__subnav-link:hover {
  color: var(--lighter-gray);
  border: none;
}

.sidebar__subnav-item:last-of-type:hover .sidebar__subnav-link {
  background-color: transparent;
  color: var(--lighter-gray);
}

/* //////////////////////////////////  Toolbar  ////////////////////////////////////*/

.toolbar {
  display: none;
}

/* //////////////////////////////////////// Main ////////////////////////////////// */

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ------------------------- Image Slider ------------------------- */

.slider {
  width: 100%;
  margin-bottom: 10px;
}

.slider__img {
  height: 97vw;
  cursor: pointer;
  width: 100%;
  outline-offset: 0px;
  transition: all 0.4s;
}

.slider__img:hover {
  outline: 4px solid #c4dcee;
  outline-offset: -10px;
}

.slider__btns {
  margin-top: 10px;
  height: 40px;
  display: flex;
  justify-content: center;
}

.slider__btns-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 130px;
}

.slider__btn {
  width: 40px;
  font-size: 3em;
  border: none;
  outline: 1px solid var(--primary);
  outline-offset: 0px;
  background-position: center;
  background-size: 60% 65%;
  background-repeat: no-repeat;
  -moz-box-shadow: 0 0 5px rgba(100, 100, 100, 0.6);
  -webkit-box-shadow: 0 0 5px rgba(100, 100, 100, 0.6);
  box-shadow: 0 0 5px rgba(100, 100, 100, 0.6);
  transition: all 0.1s;
  cursor: pointer;
}

.slider__btn:hover {
  background-color: #fff;
  outline: 1px solid var(--primary);
  outline-offset: -4px;
}

.slider__btn--left {
  background-image: url('../img/003-left-arrow-1.png');
}

.slider__btn--middle {
  background-image: url('../img/001-pause.png');
}
.slider__btn--right {
  background-image: url('../img/001-right-arrow.png');
}

/* ------------------------------ events ------------------------------ */

.events {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-content: space-between;
  direction: rtl;
  padding: 40px 0;
}

.events__notif-header,
.events__news-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 15px;
}

.heading-3--events {
  margin: 2px auto;
  padding-bottom: 0.5rem;
  text-align: right;
}

.heading-3--events i {
  margin-left: 15px;
}
.primary-button--events {
  width: 50%;
  padding: 5px 0px;
  margin: 2px auto;
  justify-self: left;
  font-size: 1.2rem;
  border-radius: 5px;
}

.primary-button--events:link,
.primary-button--events:visited {
  color: #fff;
}

.events__news,
.events__notif {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events__notif {
  margin-top: 40px;
}

.events__news-article > .eevents__news-link:first-of-type {
  display: block;
}

.events__notif-article {
  border-radius: 5px;
  border: 2px solid #b9c6c6;
  border-right: 5px solid var(--primary);
  background-color: var(--lighter-gray);
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgb(0 0 0 / 5%);
  width: 100%;
}

.events__news-link,
.events__notif-link {
  color: var(--darker-gray);
  text-decoration: none;
  border-radius: 3px;
  padding: 7px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
}

.events__news-article {
  background-color: var(--light-primary);
  border-radius: 5px;
  border: 1px solid #b9c6c6;
  margin-bottom: 15px;
  box-shadow: 0 0 2px rgb(0 0 0 / 15%);
  width: 100%;
}

.events__news-article--first .events__news-link {
  width: 100%;
  height: 100%;
  margin-left: 15px;
  display: block;
  padding: 17px;
}

.events__news-article--first .events__news-img {
  width: 100%;
  height: auto;
  margin-left: 15px;
}

.events__notif-link {
  display: block;
  padding: 10px;
}

.events__news-link:hover,
.events__notif-link:hover {
  background-color: #cbd8d8 /*#c4d4d4*/;
}

.events__news-content {
  padding: 10px 0;
}
.events__news-img {
  width: 75px;
  height: 75px;
  margin-left: 15px;
  display: block;
}

.events__news-title,
.events__notif-title {
  font-family: 'font-faNum';
  font-size: 14px;
  font-weight: 500;
  color: var(--darker-gray);
  line-height: 21px;
}

.events__notif-title {
  font-weight: 600;
}

.events__news-date,
.events__notif-date {
  color: #797979;
  font-family: 'font-faNum';
  font-weight: 100;
  font-size: 12px;
}

.events__news-article--first .events__news-title {
  font-size: 15px;
  margin: 7px 0;
  font-weight: 700;
}

.events__news-Description {
  color: #797979;
  font-family: 'font-faNum';
  font-weight: 100;
  font-size: 13px;
}

.events__news-article--first .primary-button--events {
  margin: 10px 0 0 0;
}
/* ------------------------------ open courses ----------------------------*/
.open-course__description,
.open-course__card-container {
  width: 100%;
}

.open-course__cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.card--open-course {
  width: 45%;
  padding: 0 !important;
  transition: box-shadow 0.4s;
}

.card--open-course:hover{
  box-shadow: 0px 0px 20px #1f619380;
}

.card--open-course:hover img{
  filter: drop-shadow(0px 0px 5px var(--accent));
}

.card-link--open-course {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  color: var(--dark-gray);
}

.card-img--open-course {
  width: 60%;
  display: inline-block;
  margin: auto;
}

.card-label--open-course {
  padding-top: 1rem;
}

.primary-button--open-course {
  width: 50%;
  margin: 3rem auto;
}

.primary-button--open-course:visited {
  color: var(--light-gray);
}

/* -------------------------------- samaneha --------------------------------*/
.main-section--samaneha {
  background-color: #e3e8e8;
  padding: 3rem 10% 5rem 10%;
  margin-top: 25px;
}

.samaneha__items {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: space-around;
  width: 100%;
}

.card--samaneha {
  background-color: var(--lighter-gray);
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgb(46 60 70 / 20%), 0px 2px 2px rgb(46 60 70 / 10%);;
  transition: all 0.3s;
  color: var(--darker-gray);
  flex: 0 1 45%;
}

.card-img--samaneha {
  display: inline-block;
  margin: auto;
  width: 60%;
}

.card-label--samaneha {
  padding-top: 1rem;
}

.card--samaneh a:visited {
  color: var(--darker-gray);
}

.card--samaneha:hover {
  background-color: #fff;
  transform: scale(1.04);
}

.card--samaneha:hover img {
  filter: drop-shadow(0px 0px 3px var(--accent));
}

/*//////////////////////////////////////// footer ///////////////////////////////////////*/
.footer {
  direction: rtl;
  background: var(--primary);
  color: var(--lighter-gray);
  min-height: 250px;
}

.footer__container {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 25px 10%;
}

.footer__bio {
  flex: 50%;
  padding: 0 2.5rem;
  margin-bottom: 40px;
}
.heading-3--footer {
  padding: 1rem 0 2rem 0;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  text-align: right;
}

.footer__address {
  font-family: 'font-faNum';
  font-size: 1.5rem;
  padding: 10px 0px;
}

.footer__phone,
.footer__mail-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer__phone,
.footer__mail {
  padding-left: 10px;
}

.footer__phone span,
.footer__mail span {
  font-family: 'font-faNum';
  font-size: 1.6rem;
  color: var(--lighter-gray);
}

.footer__phone-logo,
.footer__mail-logo {
  display: inline-block;
  width: 25px !important;
  margin-right: 1rem;
}

.social__list--footer {
  padding: 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.social__item:hover .social__logo--footer {
  fill: var(--accent);
  filter: drop-shadow(0px 0px 2px var(--dark-gray));
}

.social__logo--footer {
  width: 35px;
  fill: var(--lighter-gray);
  transition: all 0.2s;

  height: 35px;
}

.footer__links {
  flex: 50%;
}
.footer__links-items {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.footer__links-item {
  padding-bottom: 1.5rem;
}

.footer__links-link {
  color: var(--lighter-gray);
  font-size: 14px;
  font-family: 'font-light';
  line-height: 18px;
  transition: padding 0.3s;
}

.footer__links-link:hover {
  color: var(--accent) !important;
  font-weight: 900;
  padding-right: 3px;
}

.footer__links-link:visited {
  color: var(--lighter-gray);
}

.footer__copyright {
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  padding: 25px 15px 25px 15px;
  border-top: 2px solid #edf2f259;
}

.footer__copyright span {
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}
