/**
 * Theme Name:     MTI 2025
 * Author:         Anastasia Berg
 * Text Domain:    mti-2025
 * Description:    MTI Relaunch 2025 - Header
 */

/* ===== Top Bar Styles ===== */
.top-header {
	background-color: #ffffff;
    padding: 8px 0;
    font-size: 14px;
    position: fixed;
	width: 100%;
    z-index: 1040; 
	opacity: 1;
}

.top-bar-nav {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar-menu {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-menu li {
    margin-left: 20px;
}

.top-bar-menu a {
	color: #879BA4!important;
    text-decoration: none;
    transition: opacity 0.3s ease;
	margin-right: 15px;
}

.top-bar-menu a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }
}

/* ===== Navigation Styles ===== */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  align-items: flex-end;
  height: 70px;
  padding-top: 80px;
  background-color: #fff;
}

.navbar.fixed-top {
  top: 32px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 15px;
  overflow: visible;
  position: relative;
}

.header-left,
.header-right {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 40px;
}

.header-left .custom-logo-link:first-child {
  margin-left: -20px; 
}

.header-right {
  gap: 30px;
}

.custom-logo-link img {
  width: auto;
  max-height: 50px;
  margin-bottom: 5px;
}

.navbar-nav {
  display: flex;
  height: 100%;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-nav > li {
  display: flex;
  align-items: flex-end;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.navbar-nav > li > a,
.header-right a {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 0 1rem 10px;
  color: #041e42;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
}

.navbar-nav > li > a:hover,
.header-right a:hover {
  color: #9F1438;
}

/* Header Responsive Styles */
@media (max-width: 991.98px) {
  .navbar.fixed-top {
    position: relative;
    height: auto;
    align-items: center;
  }

  .navbar .container {
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav {
    flex-direction: column;
    height: auto;
    align-items: center;
  }

  .navbar-nav > li {
    height: auto;
    align-items: center;
  }

  .navbar-nav > li > a {
    height: auto;
    padding: 1rem;
    line-height: normal;
  }

  .header-left {
    flex-direction: column;
    align-items: center;
  }

  .header-right {
    display: none;
  }

  .custom-logo-link img {
    margin-bottom: 0;
  }
}
