html, body {
  overflow-x: hidden;
}

.main-color {
  color: #5157C7;  
}

.text-hover {
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}
  
/* 호버 시 스타일 */
.text-hover:hover {
  color: #5157C7 !important;
}
  
/* 호버 시 동그란 점 애니메이션 */
.text-hover:hover::after {
    opacity: 1; /* 불투명 */
    transform: scale(1); /* 원래 크기로 */
}

.button-hover span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button-hover span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button-hover:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.button-hover:hover span {
  padding-right: 25px;
}

.button-hover:hover span:after {
  opacity: 1;
  right: 0;
}

#header {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 9;
  transition: background-color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
  background-color: transparent; 
  border-bottom: 0px solid transparent; 
}

#header.scroll {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-wrap {
  width: calc(100% - 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 10px 0px;
}

.header-wrap .logo {
  width: 180px;
}

.menu-wrap{
  position: absolute;
  width: 28px;
  height: 16px;
  cursor: pointer;
  right: 20px;
  top: 22px;
  display: none;
}

.menu-wrap .line{
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  left: 0;
}

.menu-wrap.open .line, #header.scroll .menu-wrap .line{
  background: #222;
} 

.menu-wrap .line:first-child{
  top: 0;
  transform-origin: 25% 50%;
  transition: .3s;
}
.menu-wrap .line:nth-child(2){
  top: calc(50% - 1px);
}

.menu-wrap .line:last-child{
  bottom: 0;
  transform-origin: 25% 50%;
  transition: .3s;
}

.menu-wrap.open .line:first-child{
  transform: rotate(45deg) translateX(10%);
}
.menu-wrap.open .line:nth-child(2){
  opacity: 0;
}
.menu-wrap.open .line:last-child{
  transform: rotate(-45deg) translateX(10%);
}

.link-box-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.link-logo {

}

.link-box {
  display: flex;
  align-items: center;
  gap: 40px;
}

.link-box a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header.scroll .link-box a {
  color: #000;
}

.link-box a.active {
  color: #5157C7 !important;
  font-weight: 800;
}

/* 드롭다운 메뉴의 부모가 될 컨테이너 */
.nav-item {
  position: relative; /* 자식인 .drop-menu의 위치 기준점이 됨 */
  display: inline-block; /* 다른 메뉴들과 같은 줄에 있도록 함 */
}

/* 드롭다운 메뉴의 기본 스타일 */
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -33%;
  background-color: white;
  border: 1px solid #eee;
  padding: 20px 10px;
  min-width: 100px;
  z-index: 10;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  color: #000 !important;
}

.drop-menu a {
  color: #000;
  display: block;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  width: 80%;
  text-align: center;
  height: unset;
  font-size: 14px;
}

.drop-menu.m-1 {
  left: -34%;
}

.drop-menu.m-2 {
  left: -68%;
}

.drop-menu.m-3 {
  left: -68%;
}

.drop-menu.m-4 {
  left: -68%;
}

#footer {
  background: #FFF;
  border-top: 1px solid #eee;
}

.company-wrap {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 1200px;
  margin: 0 auto;
  padding: 50px 0;
}

.company-wrap .logo {
  width: 300px;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-info p {
  color: #949494;
  font-size: 14px;
}

.company-info p a {
  color: #949494;
}

.company-info p.copyright {
  margin-top: 10px;
}

.company-info p.policies {
  display: flex;
  gap: 5px;
}

.company-info p.small {
  font-size: 11px;
}

.top-banner {
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* `url()` 부분을 var() 함수로 대체합니다. */
  background: 
    linear-gradient(0deg, rgba(105, 94, 81, 0.40) 0%, rgba(105, 94, 81, 0.40) 100%), 
    var(--banner-image-url, url('/img/program/banner.png')) /* 👈 수정된 부분 */
    lightgray 50% / cover no-repeat;
}
.top-banner h1 {
  color: #FFF;
  font-family: "GmarketSansMedium";
  font-size: 50px;
  -webkit-text-stroke: 2px;
}


.sub-category {
  border-bottom: 1px solid #C8C8C8;
  background: #FFF;
}

.sub-category-wrap {
  width: 1200px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  gap: 55px;
}

.sub-category-wrap a {
  font-size: 14px;
  font-weight: 300;
  position: relative;
}

.sub-category-wrap a.active::before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -18px;
  width: calc(100% + 40px);
  height: 3px;
  background-color: #5157C7;
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.search-box select {
  background-color: #fff;
  color: #4B515B;
  outline: 1px solid #DBDEE3;
  border-radius: 5px;
  font-size: 14px;
  padding: 5px;
}

.search-box input {
  background-color: #fff;
  color: #4B515B;
  outline: 1px solid #DBDEE3;
  border-radius: 5px;
  font-size: 14px;
  padding: 5px;
  width: 200px;
  padding-left: 10px;
}

.search-box button {
  background-color: #5157C7;
  color: #fff;
  outline: 1px solid #DBDEE3;
  border-radius: 5px;
  font-size: 14px;
  padding: 5px 15px;
}

.policies-text {
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.policies-text:hover {
  text-decoration: underline;
}


@media (max-width: 1250px) { 
  .company-wrap {
    width: unset;
    padding: 40px 20px;
  }

  .sub-category-wrap {
    width: unset;
    padding: 16px 30px;
    overflow: auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
  }

  .sub-category-wrap a {
    min-width: 50px;  
    text-align: center;
  }
}

@media (max-width: 900px) { 
  #header .link-box-wrap.open {
    opacity: 0.98;
    visibility: visible;
    overflow: auto;
  }


  .link-box-wrap {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0;
    visibility: hidden;
    display: flex;
    height: 100vh;
    background: #ffffff;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 99;
  }
  
  .drop-menu {
    display: none;
    position: static;
    border: none;
    background-color: transparent;
    min-width: unset;
    gap: 15px;
    padding: 0;
    margin-top: 25px;
  }

  .drop-menu a {
    font-size: 12px !important;
  }

  .main-link.active + .drop-menu {
    display: flex;
  }

  .header-wrap .logo {
    width: 150px;
  }

  .header-wrap {
    justify-content: center;
  }
  
  .menu-wrap {
    z-index: 100;
    display: block;
    top: 23px;
  }

  .link-box {
    display: none;
  }

  .link-box-wrap.open {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .link-box-wrap.open .link-box{
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .link-box a {
    color: #000;
    height: unset;
    width: 100%;
    font-size: 16px;
  }

  .sub-category-wrap a {
    font-size: 12px;
  }

  .company-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .company-wrap .logo {
    width: 150px;
  }

  .company-info {
    justify-content: center;
    align-items: center;
  }

  .company-info p span {
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }

  .company-info .f-line {
    display: none;
  }

  .company-info p {
    font-size: 10px;
  }

  .top-banner {
    height: 250px;
    background-size: cover;
  }

  .top-banner h1 {
    font-size: 30px;
  }

  .search-box input {
      width: 150px;
  }
}