// Social Media
.social-media {
  padding: 30px 0;
  text-align: center;
}

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

.social-media ul li {
  margin: 0 10px;
  display: inline-block;
}

.social-media ul li a {
  color: #fff;
  border: 2px solid #fff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 17px;
  border-radius: 360px;
  padding: 10px;
  width: 40px;
  text-align: center;
}

.social-media ul li a:hover {
  transform: rotate(360deg);
  color: #fff;
}

.fab.fa-facebook.so-m:hover {
  background: #3b5998 !important;
}

.fab.fa-twitter.so-m:hover {
  background: #55acee !important;
}

.fab.fa-google-plus.so-m:hover {
  background: #dd4b39 !important;
}

.fab.fa-behance.so-m:hover {
  background: #1769ff !important;
}

.fab.fa-youtube.so-m:hover {
  background: #bb0000 !important;
}

.fab.fa-instagram.so-m:hover {
  background: #fccc63 !important;
}

.block-sidebar-function {
  width: 100%;
  display: block;
  margin-bottom: 30px;
  border: 1px solid #f3f5f9;
  padding: 30px;

  // Heading
  .wid-title,
  .wp-block-group__inner-container>h2,
  .wp-block-search__label {
    position: relative;

    &:after {
      content: "";
      display: block;
      width: 20px;
      height: 1px;
      margin: 20px 0 22px;
      background: #d8dde6;
    }
  }

  .wid-title h2,
  .wid-title a,
  .wid-title h2>a,
  .wp-block-group__inner-container>h2,
  .wp-block-search__label {
    margin: 0;
    display: block;
    font-size: 18px !important;
    font-family: var(--main-font);
    font-weight: 600;
    color: #204056;
    line-height: 1.5em;

  }

  // Search Widget
  .wp-block-search__inside-wrapper {
    .wp-block-search__input {
      background: #fff;
      border: 1px solid #f3f5f9;
      font-family: var(--text-font);
      font-size: 15px;
      padding: 11px 15px;
      font-weight: 400;
    }

    .wp-block-search__button {
      width: auto;
      color: #fff;
    }
  }

  // Lists
  ul,
  ol {
    li {

      a,
      span {
        font-family: var(--text-font);
        font-size: 15px;
        font-weight: 400;
        color: #6d7d9a;
        transition: all 0.3s;
        text-decoration: none;
        word-break: break-word;
      }
    }
  }

  &:last-child {
    margin-bottom: 0;
  }
}

// Footer Case
.widget-footer {

  // Search Widget
  .wp-block-search__label {
    margin: 0;
    display: block;
    font-size: 18px !important;
    font-family: var(--main-font);
    font-weight: 600;
    color: #fff;
    line-height: 1.5em;
    margin-bottom: 20px;
  }

  .wp-block-search__inside-wrapper {
    .wp-block-search__input {
      background: #132a39;
      border: 1px solid #132a39;
      color: #fff;
      font-family: var(--text-font);
      font-size: 15px;
      padding: 11px 15px;
      font-weight: 400;
    }

    .wp-block-search__button {
      width: auto;
      color: #fff;
      margin-left: 10px;
    }
  }
}

/* Blog Widgets */

.sidebar-area {
  width: 30%;
  margin: 0 1.3%;
  color: var(--sub-color);

  .wid-title h2,
  .wid-title a {
    font-size: 18px;
    text-transform: initial;
  }
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  width: 1px;
  height: 1px;
}

.block-sidebar-function select {
  background: #fff;
  border: 1px solid #f3f5f9;
  width: 100%;
  border-radius: 2px;
  font-size: 14px;
  font-family: var(--text-font);
  color: #6d7d9a;
  outline: none;
  line-height: 23px;
  transition: background 0.3s, border 0.3s;
  padding: 5px 10px;
}

.sidebar-area {

  .widget_nav_menu,
  .widget_nav_menu {
    li {
      margin: 10px 0 0 0;
      padding: 0 0 0 10px;

      &:first-child {
        padding: 0;
      }
    }

    .sub-menu {
      li {
        &:first-child {
          padding: 0 0 0 10px;
        }
      }
    }
  }
}

.block-sidebar-function ul {
  margin: 0;
  padding: 0;
  list-style: inside circle;
}

.block-sidebar-function ol {
  margin: 0;
  padding: 0;
}

.block-sidebar-function ul li,
.block-sidebar-function ol li {
  margin-top: 11px;
  line-height: 21px;
  font-family: var(--text-font);
  font-size: 13px;
  font-weight: 400;
  color: #6d7d9a;
}

.block-sidebar-function ul li::after,
.block-sidebar-function ol li::after {
  clear: both;
  display: table;
  content: "";
}

.sidebar-area {
  .widget_categories {
    li {
      text-align: right;

      a {
        float: left;
      }
    }
  }
}

.widget_archive {
  ul {
    margin: 0;
    list-style: none;

    li {
      text-align: right;
      font-size: 13px;
      color: #6d7d9a;
      font-family: var(--text-font);
      font-weight: 400;
      margin-top: 11px;

      a {
        float: left;

        &:before {
          content: "\f105";
          font-family: "Font Awesome 5 Free";
          font-weight: 900;
          font-size: 13px;
          margin-right: 10px;
        }
      }
    }
  }
}

.comment-author-link,
.recentcomments a {
  font-size: 15px !important;
}

.widget_categories {
  ul {
    margin: 0;
    list-style: none;

    li {
      ul.children {
        margin: 0 0 0 14px;
      }
    }

    a {
      &:before {
        content: "\f07c";
        font-family: "Font Awesome 5 Free";
        font-size: 14px;
        color: #204056;
        margin-right: 10px;
      }
    }
  }
}

.date-post-wid span {
  font-weight: 400;
  font-size: 12px;
}

.mejs-container,
.mejs-container .mejs-controls,
.mejs-embed,
.mejs-embed body {
  background: $s-c !important;
}

.widget-footer {
  margin: 0 0 50px;
  display: inline-block;
  width: 100%;

  // Calendar
  #wp-calendar {
    thead {
      border: 1px solid #082333;

      th {
        background: #132a39;
        color: #e7e7e7;
        border-right: 1px solid #082333;
      }
    }

    tfoot td {
      border: 1px solid #082333;
    }

    tbody {
      border: 1px solid #082333;
      color: #fff;

      td {
        border: 1px solid #082333;
        color: #fff;

        a {
          color: #fff;
        }
      }
    }

    caption {
      color: #e7e7e7;
    }
  }

  table th {
    border: 1px solid #082333;
  }

  table td {
    background: #132a39;
  }

  // Search
  #wdes-fullscreen-search-input {
    background: #132a39;
    border: 1px solid #082333;
    width: 80%;
    margin-right: 2%;

    &::placeholder {
      color: #fff;
    }
  }

  #wdes-fullscreen-search-input:focus {
    box-shadow: none !important;
  }

  .cat-item {
    text-align: right;
    font-weight: 400;
    font-size: 13px;
    line-height: 21px;
    display: inline-block;
    width: 100%;

    a {
      float: left;
    }
  }

  // Select [ DropDown ]
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="url"],
  input[type="date"],
  input[type="number"],
  input[type="tel"],
  input[type="file"],
  textarea,
  select {
    padding: 9px 15px;
  }
}

// RSS Widget
.widget-footer.widget_rss {
  li {
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  a {
    font-size: 15px;
  }

  span {
    font-size: 13px;
  }

  .rssSummary {
    font-size: 13px;
    margin: 5px 0 1px;
  }

  cite {
    font-size: 13px;
    color: $m-c;
  }
}

.block-sidebar-function {
  .rssSummary {
    margin: 10px 0;
    line-height: 26px;
  }
}

#wp-calendar {
  width: 100%;
}

#wp-calendar caption {
  color: #204056;
  text-align: center;
  caption-side: top;
  font-family: var(--main-font);
  font-size: 14px;
  padding: 0 0 15px 0;
}

.wp-calendar-nav-prev a {
  font-family: var(--main-font);
  font-size: 14px;
}

#wp-calendar thead {
  border: 1px solid #e7e7e7;
}

#wp-calendar thead th {
  background: #fff;
  font-family: var(--text-font);
  vertical-align: middle;
  text-align: center;
  color: #204056;
  font-size: 14px;
  padding: 10px 0;
  border-right: 1px solid #e7e7e7;
}

#wp-calendar tbody {
  border: 1px solid #e7e7e7;
  text-align: center;
  vertical-align: middle;
  font-family: var(--text-font);
  font-size: 13px;
  color: #7e7e7e;
}

#wp-calendar tbody td {
  text-align: center;
  padding: 8px 0;
  border: 1px solid #e7e7e7;
  font-size: 15px;
}

#wp-calendar #today {
  color: #fff;
}

#wp-calendar #today a {
  color: #fff;
}

#wp-calendar td a {
  color: #204056;
  text-decoration: none;
  font-size: 12px;
}

#wp-calendar tfoot td {
  border: 1px solid #e7e7e7;
  padding: 4px 10px;
}

#wp-calendar tfoot #prev {
  text-align: left;
}

#wp-calendar tfoot #next {
  text-align: right;
}

#wp-calendar tfoot td a {
  font-family: var(--text-font);
  font-size: 13px;
  color: #333;
  font-weight: 400;
  transition: all 0.3s;
}

#wp-calendar tfoot td a:hover {
  color: $s-c;
}

.wp-caption {
  max-width: 100%;
  width: auto !important;
}

.block-sidebar-function img {
  max-width: 100%;
  margin: 5px 0;
}

.gallery-icon img {
  border: 0 !important;
  height: auto;
  border-radius: 4px;
  margin: 10px auto;
}

.gallery-item {
  margin: 0;
  padding: 4px;
}

.gallery-caption {
  font-family: var(--main-font);
}

.wp-caption-text {
  font-family: var(--text-font);
  font-size: 13px;
  color: #7e7e7e;
  margin: 10px 0;
  font-style: italic;
  line-height: 27px;
}

.widget_rss img.rss-widget-icon {
  display: none;
}

a.rsswidget {
  color: #333;
  text-decoration: none;
}

.tagcloud a.tag-cloud-link {
  color: #6d7d9a;
  font-size: 14px !important;
  font-family: var(--text-font);
  display: inline-block;
  background: #f3f5f9;
  line-height: 14px;
  margin: 0 3px 7px 0;
  padding: 6px 10px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 400;
}

.tag-cloud-link:hover {
  color: #fff;
}

// Sidebar Widgets Improvements
.sidebar-area {

  // Banner
  .wdes-ads-block {
    .wdes-banner-280 {
      width: 280px;
      height: 250px;
      object-fit: cover;
    }

    .wdes-banner-280 {
      width: 280px;
      height: 90px;
      object-fit: cover;
      margin: 0;
    }
  }

  // Call To Action
  .widget-call-to-action-button {
    background-color: #fff;
    width: 100%;
    display: block;
    margin-bottom: 30px;
    border: 1px solid #f3f5f9;
    padding: 30px;

    h6 {
      font-family: var(--text-font);
      font-size: 15px;
      font-weight: 400;
      color: #6d7d9a;
      line-height: 26px;
      margin: 0;
    }

    a.job-modernlyo {
      margin-top: 20px;
    }
  }

}

.widget_search {
  #wdes-fullscreen-search-input {
    background: #fff;
    border: 1px solid #f3f5f9;
    width: 75%;
    margin-right: 2%;
    font-family: var(--text-font);
    font-size: 15px;
    padding: 11px 15px;
    float: left;
    font-weight: 400;
  }

  i.fullscreen-search-icon {
    width: 20%;
    padding: 15px 0;
    cursor: pointer;
    color: #fff;
    text-align: center;
    font-size: 16px;
    border: 0;
    position: relative;
    height: 46px;
  }

  button[type="submit"] {
    position: static !important;
    cursor: pointer;
    padding: 11px 20px !important;
    cursor: pointer;
    border: 0;
    background: #204056 !important;
    border-radius: 2px;
    position: relative;
    top: 1px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    right: initial;
    width: 23%;
    font-family: var(--main-font);

    i {
      color: #fff;
      font-size: 17px;
      padding: initial;
      position: static;
      height: initial;
      width: initial;
    }
  }
}

html[dir="rtl"] {

  .widget_archive ul li,
  .sidebar-area .widget_categories li {
    text-align: left;
  }

  .widget_archive ul li a,
  .sidebar-area .widget_categories li a {
    float: right;
  }

  .widget_archive ul li a:before {
    margin-left: 10px;
    margin-right: initial;
    transform: rotate(180deg);
    display: inline-table;
  }

  .widget_categories ul a:before {
    margin-left: 10px;
    margin-right: 0;
    float: right;
  }

  .widget_search #wdes-fullscreen-search-input {
    float: right;
    margin-left: 2%;
    margin-right: initial;
  }

  .widget-footer .cat-item {
    text-align: left;

    a {
      float: right;
    }
  }
}