header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  margin: 0 auto;
  padding: 0 18%;
  position: relative;
}


.logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #195BA6;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

#log {
  height: 50px;
  display: block;
}

.navlinks {
  display: flex;
  gap: 7rem;
  margin-left: auto;
}

.navlinks a {
  color: #000;
  text-decoration: none;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 19px;
  transition: color 0.2s;
}

.navlinks a:hover {
  color: #0089CF;
}

.navlinks a[href="/login"] {
  background-color: #195BA6;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
}

.navlinks a[href="/login"]:hover {
  background-color: #0089CF;
}

.dropdown {
  position: relative;
  line-height: 70px;
}

.dropdown:last-child {
  position: relative;
}

.dropdown:last-child:hover #megaBar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#megaBar {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem 18% 1.5rem 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

#megaBar .mega-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0;
}

#megaBar a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

#megaBar a:hover {
  color: #0089CF;
}

.navlinks:hover~#megaBar,
#megaBar:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger {
  display: none;
}

.mobileh-only {
  display: none;
}

@media (max-width: 1425px) {
  .mobileh-only {
    display: inline;
    font-size: 1rem;
  }

  header nav.container {
    padding: 0 2rem !important;
    height: 80px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }

  .logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #185aa5;
    order: 2;
    cursor: pointer;
  }

  .navlinks {
    position: fixed;
    margin-left: 0;
    top: 0;
    left: 0;
    width: min(86vw, 300px);
    height: 100%;
    background: #003663;
    flex-direction: column;
    padding: 0;
    gap: 0;
    align-items: flex-start;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2001;
  }

  .navlinks.show {
    transform: translateX(0);
  }

  .navlinks .dropdown {
    width: 100%;
    position: relative;
  }

  .navlinks a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 0.8rem 2rem;
    width: 100%;
    display: block;
  }

  .navlinks a:hover {
    color: #fff;
  }

  .navlinks a[href="/login"] {
    background-color: #003663;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 0.8rem 2rem;
    width: 100%;
    display: block;
  }


  .navlinks a[href="/login"]:hover {
    background-color: #003663;
    color: #fff;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .dropdown {
    position: relative;
  }

  #megaBar {
    display: contents;
    flex-direction: column;
    width: 100%;
    padding: 0;
    background: none;
    box-shadow: none;
    z-index: 2004;
  }

  .navlinks .mega-column,
  #megaBar .mega-column {
    display: none !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    padding: 0.5rem 2rem !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    background-color: #185aa5 !important;
    color: #fff !important;
    line-height: 1.5rem !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .navlinks .mega-column.show,
  #megaBar .mega-column.show {
    display: flex !important;
  }

  .navlinks .mega-column a,
  #megaBar .mega-column a {
    color: #fff !important;
    padding: 0.3rem 0 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    font-size: 0.95rem !important;
  }

  .navlinks .mega-column,
  #megaBar .mega-column {
    position: relative !important;
    z-index: 2100 !important;
  }

  #megaBar .mega-column.show {
    display: flex;
  }

  #megaBar .mega-column a {
    font-size: 0.95rem;
    color: #fff;
    padding: 0.3rem 0;
    white-space: nowrap;
  }

}


/*-------------footer------------*/
#footer2 {
  background-color: #F9F9F9;
  color: #000;
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
}

.footer-btn {
  width: 100%;
  background-color: #0089CF;
  color: #fff;
  text-align: center;
  padding: 3.2rem 0;
}

.footer-btn p {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 32px;
}

.footer-btn-link {
  display: inline-block;
  background-color: #195BA6;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 45px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.footer-btn-link:hover {
  background-color: #134277;
  color: #dfdfdf;
  transform: translateY(-2px);
}

.footer-inner {
  max-width: 1200px;
  padding: 4rem 0;
  margin: 0 auto;
}

.footer-contact {
  display: flex;
  gap: 12rem;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.contact-item {
  min-width: 220px;
}

.contact-label {
  font-size: 18px;
  margin: 0 0 27px 0;
  font-weight: 700;
  color: #000;
  letter-spacing: -.02em;
}

.contact-value {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.footer-hr {
  border: none;
  border-top: 1px solid #DEDEDE;
  margin: 32px 0;
}

.footer-policies {
  font-weight: 600;
}

.footer-company {
  text-align: left;
  font-size: 14px;
  color: #000;
  line-height: 3;
}

.mobile-only {
  display: none;
}

@media (max-width: 1425px) {
  .footer-btn {
    padding: 1.5rem 0;
  }

  .footer-btn p {
    font-size: 20px;
  }

  .footer-btn-link {
    font-size: 20px;
    padding: 0.6rem 1.2rem;
  }

  .footer-inner {
    padding: 2rem 1rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .contact-item {
    text-align: left;
    width: 100%;
  }

  .contact-label {
    margin: 0 0 10px 0;
    font-size: 14px;
  }

  .contact-value {
    font-size: 24px;
  }

  .footer-company {
    font-size: 14px;
    line-height: 1.4;
  }

  .footer-policies {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .mobile-only {
    display: inline;
  }
}

.mobilef-only {
  display: none;
}

@media (max-width: 432px) {
  .mobilef-only {
    display: inline;
  }

  .footer-btn p {
    line-height: 1.2;
  }
}