/**
 * UOC — global layout (header, footer, shared utilities)
 */

body {
  font-family: 'Segoe UI', Arial, sans-serif;
}

.large_icon {
  font-size: 4em !important;
}

/* --- Header / navigation --- */
.main-uoc-nav {
  background-color: #ffffff;
  border-bottom: 4px solid #2f4f3e;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  min-height: 85px;
}

@media (min-width: 992px) {
  .main-uoc-nav .container {
    width: 95%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main-uoc-nav .navbar-header {
    float: none;
    display: flex;
    align-items: center;
    height: 85px;
  }

  .main-uoc-nav .navbar-collapse {
    float: none !important;
    display: flex !important;
    align-items: center;
  }

  .main-uoc-nav .navbar-nav {
    float: none !important;
    margin-left: 40px;
    display: flex;
    align-items: center;
  }

  .main-uoc-nav .navbar-brand {
    padding: 0 !important;
    margin-top: -8px;
  }
}

@media (max-width: 991px) {
  .main-uoc-nav .navbar-header {
    display: block;
    text-align: center;
    padding: 12px 0;
    height: auto;
    width: 100%;
  }

  .main-uoc-nav .navbar-brand {
    float: none;
    display: inline-block;
    height: auto;
    padding: 0 !important;
    margin: 0 auto;
  }

  .main-uoc-nav .navbar-brand img {
    height: 55px !important;
    width: auto;
  }

  .main-uoc-nav .navbar-toggle {
    margin-top: 12px;
    margin-bottom: 12px;
    position: absolute;
    right: 15px;
  }

  .main-uoc-nav .navbar-collapse.collapse.in {
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
}

.navbar-brand img {
  height: 70px;
  width: auto;
  transition: 0.3s;
}

.navbar-default .navbar-nav > li > a {
  color: #005c47;
  font-weight: 700;
  font-size: 16px;
  padding: 0 12px;
  line-height: 85px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  color: #5c0015 !important;
  background: transparent !important;
}

.mega-dropdown {
  position: static !important;
}

.mega-dropdown-menu {
  width: 100%;
  padding: 35px 50px;
  background: #fff;
  border-top: 3px solid #2f4f4f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.open > .mega-dropdown-menu {
  display: block;
  opacity: 1;
}

.mega-dropdown-menu .dropdown-header {
  color: #005c47 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  padding: 0 0 8px 0 !important;
  margin-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.mega-dropdown-menu ul {
  padding: 0;
  list-style: none;
}

.mega-dropdown-menu ul li a {
  display: block;
  padding: 6px 0;
  color: #000;
  font-size: 14px;
  text-decoration: none;
}

.mega-dropdown-menu ul li a:hover {
  color: #5c0015;
  font-weight: bold;
}

#header.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: uocSlideDown 0.4s ease-out;
}

#header.sticky-nav .main-uoc-nav {
  min-height: 72px;
}

#header.sticky-nav .navbar-brand img {
  height: 58px;
}

#header.sticky-nav .navbar-default .navbar-nav > li > a {
  line-height: 72px;
}

@keyframes uocSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

body.uoc-header-sticky {
  padding-top: 85px;
}

/* --- Footer --- */
.footer-divider {
  padding: 1px 0;
}

#footer-divider {
  text-align: center;
  position: relative;
  color: #fff;
}

#footer-divider h4 {
  text-align: center;
  color: #fff;
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid #fff;
  line-height: 1;
  background: #005c47;
  z-index: 1;
  position: relative;
  font-weight: 400;
}

#footer-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 0;
  border-top: 1px solid #fff;
  background: #fff;
  z-index: 0;
}

.container-footer {
  max-width: 100%;
  margin: 0 auto;
}

.uoc-footer-banner {
  width: 100%;
  display: block;
}

.uoc-footer {
  background-color: #005c47;
  position: relative;
}

.uoc-footer__sketch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/sketch.png') no-repeat center center;
  background-size: contain;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.uoc-footer .container {
  position: relative;
  z-index: 1;
}
