﻿/* ==== 
 --------- (4.1) header styles start ---------
 ==== */

 header {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    background-color: transparent;
    z-index: 99;
    transition: all 0.3s ease-out;
  }
  
  .header__active {
    box-shadow: 0px 4px 24px 0px rgba(19, 33, 110, 0.25);
    background-color: #ffffff;
  }
  
  .header--secondary {
    background-color: #ffffff;
  }
  
  .navbar {
    padding: 18px 0px;
    background-color: transparent;
    @media (min-width: 1200px) and (max-width: 1399px) {
      padding: 19px 0px;
    }
    @media only screen and (max-width: 1199px) {
      padding: 17px 0px;
    }
    li {
      margin-top: 0px;
    }
  }
  
  .navbar__active {
    box-shadow: 0px 4px 24px 0px rgba(19, 33, 110, 0.25);
    background-color: #ffffff;
  }
  
  .navbar-brand {
    margin: 0px;
    padding: 0px;
  }
  
  .logo {
    max-width: 112px;
    height: auto;
    @media only screen and (max-width: 1399px) {
      height: 36px;
    }
  }
  
  .navbar__out {
    display: flex;
    align-items: center;
    gap: 24px;
    @media only screen and (max-width: 767px) {
      gap: 16px;
    }
  }

  .nav__group__btn {
    display: flex;
    align-items: center;
    gap: 24px;
    @media only screen and (max-width: 767px) {
      gap: 16px;
    }
    .log {
      color: #0c266c;
      font-weight: 600;
      &:hover {
        color: #1657B6;
      }
    }
    .button {
      @media only screen and (max-width: 1199px) {
        padding: 10px 20px;
      }
    }
    a {
      @media only screen and (max-width: 1399px) {
        font-size: 13px;
        line-height: 18px;
      }
    }
  }
  
  .navbar-collapse {
    margin-left: 48px;
    @media only screen and (max-width: 1399px) {
      margin-left: 32px;
    }
    @media only screen and (max-width: 1199px) {
      margin-left: 0px;
      margin-top: 12px;
      max-height: 240px;
      overflow-y: auto;
      width: 100%;
      &::-webkit-scrollbar {
        width: 4px;
      }
      &::-webkit-scrollbar-track {
        background-color: #e4e4e4;
        border-radius: 8px;
      }
      &::-webkit-scrollbar-thumb {
        background-color: #1657B6;
        border-radius: 8px;
      }
    }
  }
  
  .nav-item {
    @media only screen and (max-width: 1199px) {
      margin-bottom: 2px;
    }
    @media only screen and (max-width: 1199px) {
      .button {
        max-width: 100%;
        width: 100%;
        display: block;
        border-radius: 0px;
        text-align: left;
        padding: 6px 13px;
      }
      &:last-of-type {
        margin-bottom: 0px;
        .button--last {
          display: block;
          width: 100%;
          border-radius: 0px;
        }
      }
    }
    &:nth-last-of-type(2) {
      @media only screen and (max-width: 1199px) {
        margin-bottom: 0px;
      }
      @media only screen and (max-width: 575px) {
        margin-bottom: 2px;
      }
    }
  }

  .hide-navbar-not-loggedin-buttons {

    @media only screen and (max-width: 1199px) {
      display: none !important;
    }
  }
  
  .navbar-not-loggedin {
    display: none;
  
    @media only screen and (max-width: 1199px) {
      display: inline-block;
    }
  }
  
  .nav-link {
    color: #0c266c;
    font-weight: 600;
    padding: 6px 8px !important;
    transition: all 0.3s ease-in;
    @media only screen and (max-width: 1399px) {
      font-size: 13px;
      line-height: 18px;
    }
    @media only screen and (max-width: 1199px) {
      padding: 6px 13px !important;
      background-color: #F3F9FF;
    }
    &:hover {
      color: #1657B6;
    }
  }
  
  .dropdown {
    .dropdown-toggle {
      color: #0c266c !important;
      @media only screen and (max-width: 1199px) {
        color: #13216e !important;
      }
      &:hover {
        color: #1657B6 !important;
      }
      @media only screen and (max-width: 1199px) {
        position: relative;
      }
      &::after {
        font-family: "custom";
        font-weight: 900;
        content: "\0041";
        border: none;
        font-size: 13px;
        /* // vertical-align: 0px !important; */
        vertical-align: bottom !important;
        @media only screen and (max-width: 1399px) {
          font-size: 11px;
        }
        @media only screen and (max-width: 1199px) {
          position: absolute;
          right: 0px;
          top: 0px;
          bottom: 0px;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 40px;
          height: 100%;
          margin: 0px;
          border-left: 2px solid #ffffff;
        }
      }
    }
    .show {
      color: #0c266c !important;
      transition: all 0.3s ease-out;
      &::after {
        transform: rotate(180deg);
        @media only screen and (max-width: 1199px) {
          border-right: 2px solid #ffffff;
          border-left: 0px;
        }
      }
      @media (min-width: 1200px) {
        color: #0c266c !important;
        &::after {
          transform: rotate(0deg);
        }
      }
    }
    .dropdown-menu {
      margin: 0px;
      padding: 0px;
      background-color: #ffffff;
      margin-top: 0px;
      border-top: 3px solid #1657B6;
      box-shadow: 0px 4px 24px 0px rgba(19, 33, 110, 0.25);
      border-radius: 0px;
      transition: all 0.4s ease-in;
      max-height: 160px;
      overflow-y: auto;
      min-width: 179px;
      @media (min-width: 1200px) {
        display: block;
        opacity: 0;
        visibility: hidden;
      }
      &::-webkit-scrollbar {
        width: 4px;
      }
      &::-webkit-scrollbar-track {
        background-color: #f0f8fa;
        border-radius: 8px;
      }
      &::-webkit-scrollbar-thumb {
        background-color: #1657B6;
        border-radius: 8px;
      }
      @media only screen and (max-width: 1199px) {
        width: 90%;
        margin: 12px auto;
      }
      .dropdown-item {
        font-size: 13px;
        line-height: 18px;
        font-weight: 600;
        padding: 8px 13px;
        color: #0c266c;
        border-bottom: 1px solid #e4e4e4;
        transition: all 0.3s ease-out;
        @media only screen and (max-width: 1399px) {
          font-size: 11px;
          line-height: 16px;
        }
        &:hover {
          background-color: #1657B6;
          color: #ffffff;
          padding-left: 16px;
        }
      }
      .dropdown-item-active {
        background-color: #265a42;
        color: #ffffff;
        padding-left: 16px;
      }
      li {
        &:last-of-type {
          .dropdown-item {
            border-bottom: 0px;
          }
        }
      }
    }
    @media (min-width: 1200px) {
      &:hover {
        .dropdown-menu {
          margin-top: 0px;
          opacity: 1;
          visibility: visible;
        }
      }
    }
  }
  
  .navbar-toggler {
    border: none;
    padding: 0px;
    line-height: 0px;
    @media only screen and (max-width: 575px) {
      margin: 0px;
    }
    &:focus {
      box-shadow: none;
      outline: none;
    }
    span {
      transform: translateY(0px);
    }
    .icon-bar {
      width: 28px;
      height: 2px;
      background-color: #1657B6;
      margin: 0px;
      display: block;
      transition: all 0.3s;
      @media only screen and (max-width: 575px) {
        width: 24px;
      }
    }
    .middle-bar {
      margin: 5px 0px;
      opacity: 1;
    }
  }

  .toggle-active {
    .top-bar {
      transform: rotate(-45deg) translate(-6px, 3px);
      background: #1657B6;
    }
    .middle-bar {
      opacity: 0;
    }
    .bottom-bar {
      transform: rotate(45deg) translate(-6px, -3px);
      background: #1657B6;
    }
  }
  
  .dashboard-language {
    &.select {
      position: relative;
      background-color: transparent;
      display: flex;
      align-items: center;
      width: 80px !important;

      select {
        height: 50px !important;
      }

      @media only screen and (max-width: 1199px) {
        height: 50px !important;
        width: 70px !important;
      }

      /*&::after {
        content: "";
        vertical-align: 0;
        background-image: url("../assets/images/menu-down.png");
        background-repeat: no-repeat;
        background-position: center;
        width: 20px;
        height: 100%;
        position: absolute;
        top: 0;
        right: 10%;
        @media only screen and (max-width: 1199px) {
          right: 5%;
        }
      }*/
    }
  }

  /* // dashboard header styles start */
  .dashboard-header {
    background-color: #ffffff;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    padding: 20px 0px 19px;
    border-bottom: 1px solid #bdbfee;
    .dashboard-header__area {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
  
    .header-logo {
      img {
        @media only screen and (max-width: 575px) {
          max-width: 100px;
          height: 36px;
        }
      }
    }
  
    .dashboard-header__area-content {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 30px;
  
      .dashboard-language {
        &.select {
          position: relative;
          background-color: transparent;
          display: flex;
          align-items: center;
          width: 80px !important;
  
          select {
            height: 50px !important;
          }
  
          @media only screen and (max-width: 1199px) {
            height: 50px !important;
            width: 70px !important;
          }
  
          &::after {
            content: "";
            vertical-align: 0;
            background-image: url("../../../public/images/icons/menu-down.png");
            background-repeat: no-repeat;
            background-position: center;
            width: 20px;
            height: 100%;
            position: absolute;
            top: 0;
            right: 10%;
            @media only screen and (max-width: 1199px) {
              right: 5%;
            }
          }
        }
      }
  
      @media only screen and (max-width: 991px) {
        gap: 20px;
      }
      @media only screen and (max-width: 575px) {
        gap: 15px;
      }
      .button {
        display: flex;
        align-items: center;
        gap: 10px;
        @media only screen and (max-width: 767px) {
          display: none;
        }
        img {
          width: 30px;
          height: 20px;
        }
      }
    }
  
    .notification-area {
      position: relative;
      .icon__wrapper {
        line-height: 0px;
        display: inline-block;
        position: relative;
        margin-right: 10px;
        i {
          font-size: 24px;
          color: #13216e;
          @media only screen and (max-width: 767px) {
            font-size: 20px;
          }
        }
        span {
          position: absolute;
          top: -5px;
          right: -10px;
          font-size: 12px;
          width: 20px;
          height: 20px;
          line-height: 20px;
          text-align: center;
          font-size: 10px;
          font-weight: 600;
          color: #0f1954;
          background-color: #f29170;
          border-radius: 50%;
          @media only screen and (max-width: 767px) {
            font-size: 8px;
            width: 18px;
            height: 18px;
          }
        }
      }
      .notification__wrapper {
        position: absolute;
        top: calc(100% + 32px);
        right: 0%;
        width: 276px;
        height: 360px;
        background-color: #0c266c;
        border-radius: 10px;
        visibility: hidden;
        opacity: 0;
        box-shadow: 0px 4px 24px 0px rgba(19, 33, 110, 0.25);
        transition: all 0.3s ease-out;
        @media only screen and (max-width: 1399px) {
          top: calc(100% + 40px);
        }
        @media only screen and (max-width: 767px) {
          right: -100px;
          width: 240px;
          height: 300px;
        }
        .notification__head {
          padding: 12px 20px;
          text-align: center;
          background-color: #0c266c;
          border-radius: 10px 10px 0px 0px;
          @media only screen and (max-width: 767px) {
            padding: 8px 15px;
          }
          p {
            font-size: 18px;
            font-weight: 600;
            color: #ffffff;
            @media only screen and (max-width: 767px) {
              font-size: 16px;
            }
            &:first-of-type {
              font-size: 16px;
              color: #2dca73;
              margin-bottom: 0px;
              font-weight: 500;
              @media only screen and (max-width: 767px) {
                font-size: 14px;
              }
            }
          }
        }
        .notification__single-wrapper {
          height: 220px;
          overflow-y: auto;
          background-color: #1657B6;
          @media only screen and (max-width: 767px) {
            height: 183px;
          }
          &::-webkit-scrollbar {
            width: 5px;
          }
          &::-webkit-scrollbar-track {
            background-color: #ffffff;
            border-radius: 10px;
          }
          &::-webkit-scrollbar-thumb {
            background-color: #2dca73;
            border-radius: 10px;
          }
        }
        .notification__single {
          padding: 25px 20px 23px;
          border-top: 1px solid #ffffff50;
          @media only screen and (max-width: 767px) {
            padding: 15px 15px 13px;
          }
          &:nth-of-type(1) {
            border-top: 0px solid transparent;
          }
          h6 {
            margin-bottom: 10px;
            color: #ffffff;
            @media only screen and (max-width: 767px) {
              margin-bottom: 5px;
            }
          }
          p {
            color: #ffffff;
            font-size: 14px;
            @media only screen and (max-width: 767px) {
              font-size: 12px;
            }
          }
          .time {
            margin-top: 10px;
            text-align: right;
            font-size: 14px;
            @media only screen and (max-width: 767px) {
              margin-top: 5px;
            }
          }
        }
        .mark__read {
          position: absolute;
          bottom: 0px;
          left: 0px;
          right: 0px;
          padding: 20px 20px 19px;
          border-top: 1px solid #ffffff50;
          text-align: right;
          background-color: #0c266c;
          border-radius: 0px 0px 10px 10px;
          @media only screen and (max-width: 767px) {
            padding: 15px 15px;
          }
          a {
            display: inline-block;
            line-height: 1;
            font-size: 16px;
            font-weight: 400;
            color: #2dca73;
            @media only screen and (max-width: 767px) {
              font-size: 14px;
            }
            &:hover {
              color: #ffffff;
            }
          }
        }
      }
      .notification__wrapper__active {
        visibility: visible;
        opacity: 1;
        top: calc(100% + 42px);
        @media only screen and (max-width: 1399px) {
          top: calc(100% + 30px);
        }
      }
    }
  
    .profile {
      img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        @media only screen and (max-width: 575px) {
          width: 40px;
          height: 40px;
        }
      }
    }
  }
  
  .dashboard-header__active {
    background-color: #ffffff;
    box-shadow: 0px 4px 24px 0px rgba(19, 33, 110, 0.25);
  }
  /* ==== 
   --------- (4.1) header styles end ---------
   ==== */
  