@use "../variables/variables" as *;
@use "../autoprefixer/autoprefixer" as *;

/*====================
   Top Header
  ====================*/
.top-header {
  background-image: url("../../assets/img/header-top/hader-bg-img.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  width: 97%;
  margin: 0 auto;
  padding: 20px 20px;
  @include d-flex;
  @include justify-content-center;
  border-radius: 0 0 100px 100px;
  flex-wrap: wrap;
  gap: 20px;

  .top-header-wrapper {
    flex-wrap: wrap
  }
}

.top-news-left-content {
  @include d-flex;
  @include justify-content-center;
  @include align-items;
  gap: 17px;
  flex-wrap: wrap;
  width: max-content;
}

.top-news-right-content {
  @include d-flex;
  @include align-items;
  @include justify-content-center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.news-social-links {
  @include d-flex;
  @include align-items;
  gap: 6px;

  li {
    overflow: hidden;
    a{
      overflow: hidden;
      width: 36px;
      height: 36px;
      @include d-flex;
      @include justify-content-center;
      @include align-items;
      color: $color-white;
      border-radius: 100px;
      font-size: 16px;
    }
    &:nth-child(1) {
      a{
        background: #1460FF;

      }
    }

    &:nth-child(2) {
      a{
        background: #2366B0;
      }
    }

    &:nth-child(3) {
      a{
        background: #F00;
      }
    }

    &:nth-child(4) {
      a{

        background: linear-gradient(180deg, #A40C77 0%, #C1281C 100%);
      }
    }
  }
}

/*====================
   Dropdown Button
  ====================*/
.dropdown button {
  background: transparent;
  min-width: 130px;
  width: max-content;
  height: 40px;
  border-radius: 5px;
  color: $color-white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  justify-content: space-evenly;
}

.dropdown button img {
  margin: 0 5px 0 0;
}

.dropdown button img,
.dropdown-content li img {
  width: 28px;
}

.dropdown button,
.dropdown-content li {
  @include d-flex;
  @include align-items;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  font-family: "Noto Sans JP", sans-serif;
  font-family: "Noto Sans Arabic", sans-serif;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 500;
}

.arrow-down {
  width: 0;
  height: 0;
  display: inline-block;
  vertical-align: middle;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: #fff transparent transparent transparent;
  margin: 0 0 0 5px;
}

.dropdown button:hover {
  cursor: pointer;
}

/* Style for the dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  margin: 1px 0 0 0;
  padding: 0;
  background-color: #f5f5f5;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  border-radius: 5px;
  overflow-y: scroll;
  max-height: 150px;
}

/* Style for the dropdown content items */
.dropdown-content li {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  justify-content: end;
}

.dropdown-content li img {
  margin: 0 20px 0px 20px;
}

/* Style for the dropdown content items on hover */
.dropdown-content li:hover {
  cursor: pointer;
  color:$color-primary;
  border-radius: 5px;
}

/* Show the dropdown content when the dropdown button is clicked */
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* Animate the dropdown content */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content {
  animation: slideIn 0.3s ease-out;
}



/*====================
   Menu Search Option
  ====================*/
.menu-search-option {
  display: none;
  width: 100px;
  margin: auto 0;

  .menu-search-wrapper {
    @include d-flex;
    @include align-items;

    input {
      width: 100px;
      padding-left: 14px;
    }

    .search-icon {
      margin-left: 15px;
      background: transparent;
      color: #7B7E86;
    }
  }
}


/*=======================
   Header Top Inner Page
  =======================*/
.header-top-inner-page {
  @include d-flex;
  @include justify-content-between;
  background: $color-secondary;
  padding: 15px 0;
}

ul#header-top {
  display: none;
}

.header-top-inner-left-category {
  @include d-flex;
  @include align-items;

  .inner-item-object-category {
    font-size: 14px;
    line-height: 24px;
    font-family: $body-font;

    a {
      display: inline-flex;
      padding: 6px 10px;
      color: $color-white;

      &:hover {
        background: $color-white;
        color: $color-secondary;
      }
    }
  }
}

.header-top-inner-wrapper {
  @include d-flex;
  @include justify-content-between;
  @include align-items;
  flex-wrap: wrap;

  .header-top-social {
    display: none;

    ul {
      @include d-flex;
      @include align-items;
      gap: 15px;
    }
  }
}

.header-logo-wrapper {
  .site-branding {
    .site-title {
      font-size: 50px;
      line-height: 60px;
      font-weight: 700;
      font-family: $title-font;

      a {
        color: $color-primary;
      }
    }
  }
}


/*===================
  Page Title Wrapper
  ===================*/
.page-title-wrapper {
  margin-top: 35px;
}

.page-title-wrapper {
  .page-title-inner {
    max-width: 80%;
    margin: auto;
    padding: 18px 20px;
    border: 1px solid $color-paragraph;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 0px 33px 0px rgba(0, 0, 0, 0.1019607843);
  }
}

.page-title-wrapper {
  .page-title-inner {
    ul {
      margin: 0;
      padding: 0;
      list-style: none;
    }
  }
}

.page-title-wrapper {
  .page-title-inner {
    ul {
      li {
        color: $color-secondary;
        -ms-word-break: break-word;
        word-break: break-word;
        display: inline-block;
      }
    }
  }
}

.page-title-wrapper {
  .page-title-inner {
    ul {
      li {
        a {
          color: $color-secondary;

          &:hover {
            color: $color-primary;
          }
        }
      }
    }
  }
}

.page-title-wrapper{
  .page-title-inner{
    ul{
      li {
        span{
          &.breadcrumb-delimiter {
            margin: 0 5px;
          }
        }
      }
    }
  }
}
/*====================
   Links
  ====================*/
:focus {
  color: $color-primary;
  z-index: 9999;
}

a:focus,
a:active {
  color: $color-secondary;
}

a:focus {
  outline: dotted $color-primary;
}

a:hover,
a:active {
  outline: 0;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=range]:focus,
input[type=date]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=time]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=color]:focus,
textarea:focus,
.theme-button:focus,
select:focus {
  color: $color-primary;
  outline: dotted;
}

.wp-block-search input[type=search]:focus {
  border: 2px solid $color-primary;
  outline: dotted;
}

nav.navigation.pagination .nav-links ul.page-numbers li a:focus-visible,
.wp-block-search .wp-block-search__button:focus-visible {
  border: $color-primary;
  outline-color: $color-primary;
}

.right-section a:focus {
  outline-color: $color-primary;
}
.header-search-box{
  a{
    color: $color-black;
    &:hover{
color: $color-primary;
    }
  }
}