:root {
  --primary-color: #1f6193;
  --lighter-gray: #f8fafa;
  --dark-primary: #11446e;
  --light-gray: #edf2f2;
  --dark-gray: #2e3c46;
}

@media (max-width: 991px) {
  .navbar__checkbox:checked ~ .navbar__list-wrapper {
    max-height: 400px !important;
  }
  .navbar__checkbox:checked ~ .navbar__list-wrapper--mega {
    max-height: 1000px !important;
  }

  .navbar__checkbox:checked ~ .navbar__item-label {
    background-color: white !important;
    color: var(--primary-color) !important;
  }

  .navbar__checkbox:checked ~ label i {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }
}

@media (min-width: 345px) {
  .header__title {
    font-size: 3.7em;
  }
  .header__title span {
    font-size: 15px;
  }
  .header__title-detail {
    font-size: 12px;
    top: 45%;
  }
}

@media (min-width: 375px) and (max-width: 499px) {
  .header__container {
    height: 160px;
  }

  .header__wrapper {
    height: 130px;
  }

  .header__logo {
    height: 70px;
  }

  .secondary-button--header-search,
  .secondary-button--header-menu {
    margin: 0px 5px;
    font-size: 1.9em;
  }

  .sidebar {
    top: 160px;
  }

  .events__news-article--first .primary-button--events,
  .events__news .primary-button--events {
    width: 40%;
  }

  .events__notif-header .primary-button--events {
    width: 40%;
  }
}

@media (min-width: 500px) and (max-width: 767px) {
  .header__container {
    height: 200px;
  }

  .header__wrapper {
    height: 160px;
  }

  .header__logo {
    height: 93px;
  }

  .header__title {
    font-size: 5em;
    margin-right: 20px;
  }
  .header__title span {
    margin-left: 15px;
    font-size: 20px;
  }
  .header__title-detail {
    font-size: 15px;
  }
  .header__buttons i {
    padding-left: 10px;
  }
  .header__buttons label {
    font-size: 2.1em !important;
  }

  .secondary-button--header-search {
    margin: 0px 7px 0px 15px;
  }

  .secondary-button--header-menu {
    margin: 0px 15px 0px 7px;
  }

  .sidebar {
    top: 200px;
  }

  .navbar__item--no-sublist .navbar__item-link {
    grid-column: 3 / 6;
  }

  .navbar__subitems {
    flex: 1 0 40%;
  }

  .navbar__subitem--megaL1 > .navbar__subitem-link {
    flex: 1 0 50%;
    text-align: center;
    padding-right: 0;
  }
  .events__news-article > .eevents__news-link:first-of-type {
    display: flex;
    flex: 2;
    flex-direction: row;
  }

  .events__news-article--first .primary-button--events,
  .events__news .primary-button--events {
    width: 25%;
  }

  .events__notif-header .primary-button--events {
    width: 25%;
  }

  .footer__container {
    flex-direction: row;
  }

  .footer__bio {
    margin: 0 0 0 3%;
    flex: 47%;
  }
}

@media only screen and (min-width: 768px) {
  .header__container {
    height: 115px;
  }

  .header__wrapper {
    height: 100%;
    width: 96.5%;
    display: grid;
    grid-template: 1fr / 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 15px;
  }

  .header__logo-wrapper {
    grid-column: 5 / 10;
    font-size: 1.2em;
  }

  .header__logo-wrapper > div {
    overflow: hidden;
  }

  .header__logo-wrapper hgroup {
    margin-top: 25px;
  }

  .header__title {
    font-size: 4.5em;
    margin-right: 15px;
  }

  .header__title span {
    font-size: 16px;
  }

  .header__title-detail {
    font-size: 14px;
  }

  .header__logo {
    height: 100px;
  }

  .header__buttons {
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    padding: 30px 0 28px 0;
    direction: rtl;
  }

  .secondary-button--header-search {
    font-size: 2.1em;
    direction: ltr;
  }

  .secondary-button--header-menu {
    font-size: 2.1em;
    direction: ltr;
  }

  .header__buttons i {
    padding-left: 13px;
    font-size: 1em;
  }

  .sidebar {
    top: 115px;
  }

  .navbar__subitems {
    flex: 1 0 40%;
  }

  .navbar__subitem--megaL1 > .navbar__subitem-link {
    flex: 1 0 50%;
    text-align: center;
    padding-right: 0;
  }

  .slider {
    height: 680px;
    border-bottom: 6px solid var(--primary-color);
    border-top: 6px solid var(--primary-color);
    margin-bottom: 60px;
  }

  .slider__img {
    height: 100%;
  }

  .slider__btns {
    margin-top: 15px;
  }

  .events__news {
    display: flex;
    flex-wrap: wrap;
  }
  .events__news .primary-button--events {
    width: 20%;
  }
  .events__news-article--first .primary-button--events {
    width: 30%;
  }

  .events__notif-header .primary-button--events {
    width: 20%;
  }
  .events__news-list {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
    flex: 1;
  }

  .events__news-article-list {
    width: 49%;
    flex-direction: column;
    display: flex;
    justify-content: space-between;
  }

  .events__news-article {
    flex: 1 0 10%;
    margin-bottom: 4%;
  }

  .events__news-article--first {
    width: 49% !important;
    margin-left: 2%;
    margin-bottom: 0;
  }

  .events__news-article:last-child {
    margin-bottom: 0;
  }

  .main-section__container {
    flex-direction: row;
  }

  .open-course__description {
    margin-left: 3%;
  }

  .open-course__card-container {
    margin-right: 3%;
  }

  .card--samaneha {
    margin: 1.5%;
    flex: 0 1 30%;
  }

  .footer__container {
    flex-direction: row;
  }

  .footer__bio {
    margin: 0 0 0 3%;
    flex: 47%;
  }

  .footer__links {
    padding-right: 2rem;
  }
}

@media only screen and (min-width: 992px) {
  .wrapper {
    position: relative;
  }

  .header__container {
    padding: 10px 0;
    width: 280px;
    position: absolute;
    right: 40px;
    top: 0%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1f6193ed;
    z-index: 20;
  }

  .header__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 92%;
    text-align: center;
  }

  .sidebar::before,
  .header__container::before {
    content: '';
    background-image: url('../img/white-stripes-hd.png');
    opacity: 0.5;
    position: absolute;
    width: 40px;
    height: 100%;
    top: 0;
    left: 280px;
  }
  .header__logo-wrapper {
    flex-direction: column;
  }

  .header__logo {
    height: 120px;
  }

  .header__title {
    font-size: 5em;
    margin-top: -27px;
    margin-right: 0;
    line-height: 81px;
    font-weight: 500;
    display: inline-block;
  }

  .header__title-detail {
    top: 90%;
    right: -86%;
    font-size: 10px;
  }

  .header__title span {
    font-size: 11px;
    margin: 0;
  }

  .header__title--english {
    display: block;
  }

  .header__buttons {
    display: none;
  }

  .header__logo-wrapper hgroup {
    display: block;
    margin-top: 5px;
  }

  .sidebar {
    display: flex;
    justify-content: flex-start;
    width: 280px;
    height: 500px;
    position: absolute;
    left: unset;
    right: 40px;
    top: 180px;
    box-shadow: unset;
    transition: all 0s;
  }

  .sidebar__mob-search {
    display: none;
    float: left;
    background-color: rgba(167, 166, 166, 0.705);
    height: unset;
    padding: 4px;
  }

  .sidebar__mob-search-input {
    width: 80%;
  }

  .sidebar__mob-search a {
    width: 68px;
    font-size: 1.5em;
    margin-right: 7px;
    background-color: #b3182f;
    padding: 5px 10px;
    border: 1px solid #fff;
  }

  .sidebar__mob-search a:hover {
    background-color: rgb(128, 24, 24);
  }

  .sidebar__subnav {
    flex: 1;
  }

  .sidebar__subnav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }

  .sidebar__subnav-link {
    font-size: 1.4rem;
  }

  .navbar {
    margin-bottom: 0;
  }

  .navbar::before {
    display: none;
  }

  .navbar__item {
    height: 50px;
    grid-template: 1fr auto / 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  }

  .navbar__item--no-sublist .navbar__item-link {
    height: 50px;
  }

  .navbar__item:hover {
    background-color: var(--lighter-gray);
    color: var(--primary-color);
  }

  .navbar__item:hover label {
    background-color: var(--lighter-gray);
    color: var(--primary-color);
  }

  .navbar__item:hover label i {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .navbar__item:hover .navbar__item-link {
    color: var(--dark-primary);
  }

  .navbar__item:hover .navbar__list-wrapper {
    position: absolute !important;
    right: 100% !important;
    width: 580px !important;
    /* box-shadow:  0 0 5px #464646; */
  }

  .navbar__item:hover .navbar__subitems {
    position: unset !important;
    margin-left: 0px !important;
  }

  .navbar__item-label {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    padding: 0;
  }

  .navbar__item-link {
    grid-column: 3 / 10;
    grid-row: 1 / 2;
    font-size: 1.45em;
  }

  .navbar__item-link:last-of-type {
    grid-column: 2 / 10;
    grid-row: 1 / 2;
  }

  .navbar__item-label i {
    height: 35px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .navbar__list-wrapper {
    position: absolute;
    right: 100%;
    width: 0px;
    z-index: -999;
    max-height: 445px !important;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.4s ease-out;
  }

  .navbar__list-container {
    display: flex;
  }

  .navbar__list-container .before-content {
    width: 2rem;
    background: url('../img/stripesPattern2.png');
  }

  .navbar__list-content--mega {
    width: 100%;
    flex-direction: row;
  }

  .navbar__list-col {
    flex: 1;
    padding: 0;
  }

  .navbar__list-col:first-child {
    order: 1;
  }
  .navbar__list-col:last-child {
    order: 0;
  }

  .navbar__list-col > .navbar__subitems {
    width: 100% !important;
    height: 100%;
    padding-right: 2.5rem !important;
    flex-direction: column;
    flex-wrap: nowrap !important;
  }

  .navbar__subitem--megaL1 {
    flex-direction: column;
    width: 100%;
    flex-basis: unset !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .navbar__subitem--megaL1 > .navbar__subitems {
    width: 100% !important;
    flex-direction: column;
    padding: 0 25px 0 0 !important;
  }

  .navbar__subitem--megaL1 > .navbar__subitem-link {
    flex: unset !important;
  }

  .navbar__subitem--megaL2 {
    justify-content: flex-start !important;
    font-size: 13px !important;
    line-height: 23px;
    padding: 1px 0;
    height: 25px !important;
  }

  .navbar__subitem--megaL2:first-of-type {
    margin-top: 5px !important;
  }
  .navbar__subitem--megaL2:last-of-type {
    margin-bottom: 5px;
  }

  .navbar__subitem--megaL2 > .navbar__subitem-link {
    color: var(--dark-gray) !important;
    line-height: 23px;
  }
  .navbar__subitem--megaL2 > .navbar__subitem-link:hover {
    color: var(--dark-primary) !important;
  }

  .navbar__subitems {
    width: 560px;
    margin-left: 581px;
    background-color: var(--lighter-gray);
    transition: margin 0.4s ease-out;
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
  }

  .navbar__subitem {
    border-bottom: none;
    /* flex-basis: 50%; */
    height: 35px;
    font-size: 1.5rem;
  }

  .navbar__subitem:first-of-type {
    margin-top: 0;
    border-top: none;
  }

  .toolbar {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 7px;
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    direction: rtl;
    display: flex;
    z-index: 20;
  }

  .toolbar::before {
    content: '';
    background: url('../img/white-stripes-hd.png');
    opacity: 0.6;
    position: absolute;
    width: 20px;
    height: 100%;
    top: 0;
    margin: 0;
    left: -20px;
  }

  .toolbar__section {
    display: flex;
    width: 100%;
    margin-bottom: 5px;
  }

  .toolbar__section:last-of-type {
    margin-bottom: 0;
  }

  .toolbar__calendar {
    background: var(--lighter-gray);
    flex: 100%;
    box-shadow: 0 2px 5px rgba(70, 70, 70, 0.5);
    font-weight: 600;
    color: var(--dark-primary);
    line-height: 22px;
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    border-radius: 4px;
  }
  .toolbar__calendar-date span {
    margin-left: 20px;
  }
  .toolbar__calendar div {
    text-align: center;
    font-family: 'font-faNum';
  }

  .toolbar__search {
    background-color: var(--lighter-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid var(--primary);
    border-radius: 4px;
    height: 33px;
    padding-right: 2px;
    box-shadow: 0 2px 5px rgba(70, 70, 70, 0.5);
  }
  .toolbar__search-input {
    width: 160px;
    height: 30px;
    background-color: var(--lighter-gray);
    border: none;
    padding: 0 5px;
  }

  .toolbar__search-input:focus {
    outline: none;
    border: none;
  }

  .toolbar__search i {
    font-size: 2rem;
    margin: 5px;
    color: var(--primary);
  }

  .toolbar__search-icon:hover i {
    text-shadow: 0 0 10px var(--primary);
  }

  .toolbar__language {
    width: 37px;
    font-size: 1.5em;
    line-height: 1.5em;
    margin: 0 5px 0 0;
    background-color: var(--lighter-gray);
    padding: 2px 10px 2px 10px;
    border: 1.5px solid #11446e;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    justify-content: center;
    justify-self: center;
    box-shadow: 0 2px 5px rgba(70, 70, 70, 0.5);
    transition: all 0.3s linear;
    outline: 1px dotted transparent;
    border-radius: 15%;
    font-family: 'Roboto Slab', serif;
    transition: all 0.5s;
  }

  .toolbar__language:visited {
    color: var(--primary);
  }

  .toolbar__language:hover {
    background-color: var(--primary) !important;
    color: var(--lighter-gray);
  }

  .toolbar__calendar-date {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .slider {
    margin-bottom: 0px;
  }

  .slider__btns-container {
    position: absolute;
    height: 40px;
    left: 40px;
    top: 600px;
  }

  .events {
    margin-top: 0;
    flex-direction: row;
    width: 95%;
    padding: 4rem 0;
  }

  .events__news {
    /* margin-left: 15px; */
    flex: 1 0 65%;
  }
  .events__news .primary-button--events {
    width: 20%;
  }
  .events__news-article--first .primary-button--events {
    width: 35%;
  }
  .events__notif {
    padding-right: 40px;
    margin-top: 0;
  }

  .events__notif-header .primary-button--events {
    width: 45%;
  }

  .main-section--samaneha {
    padding: 3rem 5% 5rem 5%;
  }

  .samaneha__items {
    flex-wrap: nowrap;
  }

  .footer__container {
    padding: 25px 5%;
  }

  .footer__bio {
    margin: 0;
    padding-right: 2rem;
    padding-left: 5rem;
  }

  .footer__links {
    padding: 0;
  }

  .footer__links-items {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer__links-item {
    flex: 50%;
  }

  .social__list--footer {
    justify-content: center;
  }

  .social__item {
    margin: 0 4%;
  }
}

@media only screen and (min-width: 1200px) {
  .wrapper {
    width: 1200px;
    margin: auto;
  }

  body {
    padding-top: 10px;
  }

  main {
    background-color: white;
  }
}
