.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.header-bar .navbar-brand {
  margin-left: 0;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1 1 auto;
}

.header-search {
  width: 100%;
  max-width: 340px;
  flex: 1 1 auto;
}

.header-search-form {
  margin-bottom: 0;
}

.header-user {
  flex: 0 0 auto;
}

.header-user-toggle {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #1e5e65;
  font-family: "Tajawal", sans-serif;
}

.header-user-toggle:hover,
.header-user-toggle:focus {
  color: #17484e;
  text-decoration: none;
}

.search-shell {
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 3px 17px -11px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.search-shell .form-control {
  border: 0;
  background: transparent;
  padding: 0.75rem 1.1rem;
  height: auto;
  color: #434656;
}

.search-shell .form-control:focus {
  box-shadow: none;
}

.search-shell .form-control::placeholder {
  color: #867555;
}

.search-shell-append {
  margin-right: 0;
}

.search-shell-button {
  min-width: 54px;
  border: 0;
  border-radius: 0.6rem 0 0 0.6rem !important;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12)), #1e5e65;
}

.search-shell-button:hover,
.search-shell-button:focus {
  background-color: #17484e;
  box-shadow: none;
}

.footer-panel {
  padding: 2rem 1.5rem;
  overflow: hidden;
}

.footer-panel .row {
  margin-right: 0;
  margin-left: 0;
}

.footer-panel .row > [class*="col-"] {
  padding-right: 1rem;
  padding-left: 1rem;
}

.footer-block {
  height: 100%;
}

.footer-block-links {
  text-align: right;
}

.footer-heading {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a,
.footer-credit {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover,
.footer-credit:hover {
  color: #fff;
  text-decoration: none;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.7);
}

.footer-block-social {
  text-align: left;
}

.footer-social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social-icons a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  text-decoration: none;
}

.footer-social-icons h5 {
  color: #fff;
}

@media (max-width: 991.98px) {
  .header-bar {
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .header-bar .navbar-brand img {
    height: 72px;
  }

  .header-search {
    max-width: none;
  }

  .footer-panel {
    padding: 1.5rem 1rem;
  }

  .footer-block-links,
  .footer-block-social {
    text-align: center;
  }

  .footer-links,
  .footer-social-icons {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .header-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .header-bar .navbar-brand {
    align-self: center;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .header-user {
    align-self: center;
  }
}
