@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* =========================================================
   Base
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  padding-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.inner {
  width: 1180px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}


/* =========================================================
   Header
========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 96px;
  background: rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.header.hide {
  transform: translateY(-100%);
}

.header.active {
  background: #fff;
  backdrop-filter: blur(6px);
}

.header:hover {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.header-wrap {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  white-space: nowrap;
}

.logo img {
  height: 46px;
  display: block;
}

.header.active .logo a,
.header:hover .logo a {
  color: #0c6b4f;
}


/* =========================================================
   Global Navigation
========================================================= */
.gnb {
  display: flex;
  align-items: center;
  gap: 52px;
}

.gnb > a,
.gnb .menu > a {
  height: 96px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.header.active .gnb > a,
.header.active .gnb .menu > a {
  color: #0c6b4f;
}

.header:hover .gnb > a,
.header:hover .gnb .menu > a {
  color: #222;
}

.header:hover .gnb > a:hover,
.header:hover .gnb .menu > a:hover {
  color: #0c8c63;
}

.menu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 80px;
  left: 50%;
  z-index: 1001;
  min-width: 150px;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
}

.submenu a {
  padding: 13px 18px;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
}

.submenu a:last-child {
  border-bottom: 0;
}

.submenu a:hover {
  background: #f5f8f6;
  color: #0c8c63;
}

.menu:hover .submenu {
  display: flex;
}


/* =========================================================
   Mobile Menu Button
========================================================= */
.mobile-menu-btn {
  display: none;
}


/* =========================================================
   Section Title
========================================================= */
.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title p {
  margin-bottom: 10px;
  color: #0c8c63;
  font-weight: 800;
  letter-spacing: 2px;
}

.section-title h3 {
  font-size: 36px;
  font-weight: 800;
}

.section-title span {
  color: #666;
  font-size: 17px;
}


/* =========================================================
   Sub Visual
========================================================= */
.sub-visual {
  position: relative;
  height: 58vh;
  min-height: 500px;
  max-height: 620px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-top: 70px;

  color: #fff;
  overflow: hidden;
}

.sub-visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 35, 25, 0.52), rgba(0, 35, 25, 0.52)),
    url("/resources/user/img/sub-visual-bg1.jpg") center 35% / cover no-repeat;
}

.sub-visual-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sub-visual-text h2 {
  margin-bottom: 14px;

  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -3px;
}

.sub-visual-text p {
  margin-top: 4px;

  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,.72);

  letter-spacing: 6px;
  text-transform: uppercase;
  
  color: rgba(255,255,255,.7);
}

/* =========================================================
   Sub Tab
========================================================= */
.sub-tab {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.sub-tab .inner {
  display: flex;
  justify-content: center;
}

.sub-tab a {
  width: 180px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-weight: 700;
  border-left: 1px solid #ddd;
}

.sub-tab a:last-child {
  border-right: 1px solid #ddd;
}

.sub-tab a.active {
  background: #0c8c63;
  color: #fff;
}


/* =========================================================
   Footer
========================================================= */
.footer {
  padding: 50px 0;
  background: #222;
  color: #aaa;
}

.footer h2 {
  margin-bottom: 18px;
  color: #fff;
}

.footer p {
  margin-bottom: 6px;
  font-size: 14px;
}

.copy {
  margin-top: 20px;
  color: #777;
}


/* =========================================================
   Custom Alert
========================================================= */
.custom-alert {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.custom-alert-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.custom-alert-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  max-width: calc(100% - 40px);
  padding: 34px 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.custom-alert-content p {
  margin-bottom: 24px;
  color: #333;
  font-size: 17px;
}

.custom-alert-content button {
  width: 120px;
  height: 42px;
  border: 0;
  background: #0c8c63;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}


/* =========================================================
   Tablet / Mobile Header
========================================================= */
@media (max-width: 900px) {
  .header {
    position: fixed;
    height: 72px;
    background: #fff;
  }

  .header-wrap {
    height: 72px;
    padding: 0;
    flex-direction: row;
  }

  .logo a {
    color: #0c6b4f;
    font-size: 20px;
  }

  .logo img {
    height: 36px;
  }

  .mobile-menu-btn {
    width: 34px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    width: 100%;
    height: 3px;
    display: block;
    background: #0c6b4f;
    transition: 0.3s;
  }

  .gnb {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  }

  .gnb.open {
    display: flex;
  }

  .gnb > a,
  .gnb .menu > a {
    width: 100%;
    height: 54px;
    justify-content: center;
    color: #222;
    font-size: 16px;
  }

  .menu {
    width: 100%;
  }

  .menu:hover .submenu {
    display: none;
  }

  .menu.open .submenu {
    display: flex;
  }

  .submenu {
    position: static;
    width: 100%;
    display: none;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .submenu a {
    background: #f7faf8;
    text-align: center;
  }

  .sub-visual {
    height: 280px;
  }

  .sub-visual-text h2 {
    font-size: 34px;
  }

  .sub-tab .inner {
    flex-wrap: wrap;
  }

  .sub-tab a {
    flex: 1 1 33.333%;
  }
}


/* =========================================================
   POPUPP
========================================================= */
.popup-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all ease 0.3s;
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.1);
}
.popup-bg.on {
  visibility: visible;
  opacity: 1;
  z-index: 2000;
}

.msg-popup {
  width: 90%;
  max-width: 280px;
  background-color: #fff;
  border-radius: 0.5rem;
  position: absolute;
  visibility: hidden;
  padding: 1rem;
}
.msg-popup.show {
  visibility: visible;
}
.msg-popup .message {
  padding: 0.5rem 0 1.5rem;
  font-size: 0.875rem;
}
.msg-popup .message .title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.msg-popup .message p {
  line-height: 1.2;
}
.msg-popup .msg-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}
.msg-popup .msg-btns button {
  border-color: transparent;
  background-color: transparent;
  font-size: 0.875rem;
  color: #5f5f67;
}
.msg-popup .msg-btns button:hover, .msg-popup .msg-btns button:active {
  background-color: rgba(0, 0, 0, 0.05);
}
.msg-popup .msg-btns button.confirm {
  color: #773147;
  font-weight: bold;
}



/* =========================================================
   Mobile
========================================================= */
@media (max-width: 560px) {
  .section {
    padding: 70px 0;
  }

  .section-title h3 {
    font-size: 28px;
  }

  .section-title span {
    font-size: 15px;
  }

  .sub-visual {
    height: 230px;
    margin-top: 72px;
  }

  .sub-visual-bg {
    background-position: center center;
  }

  .sub-visual-text p {
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 5px;
  }

  .sub-visual-text h2 {
    font-size: 34px;
    line-height: 1.2;
  }

  .sub-tab {
    border-bottom: 1px solid #e5e5e5;
  }

  .sub-tab .inner {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .sub-tab a {
    width: 100%;
    height: 54px;
    flex: none;
    border-left: 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
  }

  .sub-tab a:last-child {
    border-right: 0;
  }

  .sub-tab a.active {
    background: #0c8c63;
    color: #fff;
  }
}


