.site-header {
  border-bottom: 1px solid #e8e8e8;
  min-height: 55px;
  position: relative;
}

.site-title {
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
  text-decoration: none;
}

[data-theme="dark"] .site-title {
  color: #ffffff !important;
}

.right-container {
  float: right;
  display: flex;
  align-items: center;
}

.site-nav {
  line-height: 54px;
  display: flex;
  align-items: center;
}

.site-nav .nav-trigger {
  display: none;
}

.language-toggle {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.language-toggle .toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.language-toggle .toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.language-toggle .toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4CAF50;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.language-toggle .toggle-label::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  z-index: 1;
}

.language-toggle .toggle-text {
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  right: 9px;
  color: white;
  transition: .4s;
  z-index: 2;
}

.language-toggle .toggle-input:checked + .toggle-label {
  background-color: #FF6B6B;
}

.language-toggle .toggle-input:checked + .toggle-label::before {
  transform: translateX(32px);
}

.language-toggle .toggle-input:checked + .toggle-label .toggle-text {
  color: white;
  right: 32px;
}

.dark-mode-toggle {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.toggle-label::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  z-index: 1;
}

.toggle-text {
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  right: 9px;
  color: #333;
  transition: .4s;
  z-index: 2;
}

.toggle-input:checked + .toggle-label {
  background-color: #2196F3;
}

.toggle-input:checked + .toggle-label::before {
  transform: translateX(32px);
}

.toggle-input:checked + .toggle-label .toggle-text {
  color: white;
  right: 32px;
}

[data-theme="dark"] .toggle-input:not(:checked) + .toggle-label {
  background-color: #2196F3;
}

[data-theme="dark"] .toggle-input:not(:checked) + .toggle-label::before {
  transform: translateX(32px);
}

[data-theme="dark"] .toggle-input:not(:checked) + .toggle-label .toggle-text {
  color: white;
  right: 32px;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav .page-link {
  color: #111;
  line-height: 1.5;
  margin-right: 20px;
}

.site-nav .page-link:last-child {
  margin-right: 0;
}

@media screen and (max-width: 600px) {
  .right-container {
    float: none;
    position: absolute;
    top: 9px;
    right: 15px;
    display: flex;
    align-items: center;
  }
  
  .site-nav {
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: right;
  }
  
  .site-nav label[for="nav-trigger"] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
  }
  
  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }
  
  .site-nav input ~ .trigger {
    clear: both;
    display: none;
  }
  
  .site-nav input:checked ~ .trigger {
    display: block;
    padding-bottom: 5px;
  }
  
  .site-nav .page-link {
    display: block;
    padding: 5px 10px;
    margin-left: 20px;
  }
  
  .site-nav .page-link:not(:last-child) {
    margin-right: 0;
  }

  .language-toggle {
    margin-left: 15px;
    margin-right: 0;
  }

  .dark-mode-toggle {
    margin-left: 15px;
    margin-right: 5px;
  }
}