/* =========================
   🎨 메인 컬러 오버라이드
   ========================= */

:root{
  --color-primary-500:0,119,254;
  --color-primary-600:0,98,210;
  --color-primary-400:60,150,255;
  --hex-primary-500:#0077fe;
}

.tw-py-10{
  display:none;
}

/* =========================
   공통 기본
   ========================= */

#wrapper{
  padding:1.5rem 1rem !important;
}

@media (min-width:1200px){
  #wrapper{
    padding:0rem !important;
  }
}

#hd_spacer{
  display:none !important;
}

#dt-header{
  position:relative;
  width:100%;
  z-index:100;
  background:#fff;
  font-family:"Noto Sans KR", sans-serif;
}

.tw-text-2xl{
  font-size:1.25rem !important;
}

/* =========================
   헤더 메인 기본
   ========================= */

.dt-header-main{
  background:#fff;
}

.dt-header-inner{
  max-width:1280px;
  margin:0 auto;
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
}

.dt-logo{
  margin:0;
  flex:0 0 150px;
}

.dt-logo a{
  display:block;
}

.dt-logo img{
  display:block;
  height:48px;
  width:auto;
}

.dt-search-wrap{
  flex:0 1 400px;
  max-width:400px;
  margin-right:auto;
}

.dt-search-form{
  position:relative;
  width:100%;
}

.dt-search-input{
  width:100%;
  height:54px;
  border:1px solid #ededed;
  border-radius:12px;
  background:#ffffff;
  padding:0 60px 0 24px;
  font-size:15px;
  color:#222;
  outline:none;
}

.dt-search-input::placeholder{
  color:#7b7b7b;
}

.dt-search-btn{
  position:absolute;
  top:50%;
  right:18px;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  color:#12377c;
}

.dt-search-btn svg{
  width:100%;
  height:100%;
}

.dt-header-ad{
  flex:0 0 auto;
  margin-left:8px;
}

.dt-header-ad a{
  display:block;
}

.dt-header-ad img{
  display:block;
  width:320px;
  max-width:100%;
  height:auto;
  border-radius:16px;
}

.dt-mobile-actions{
  display:none;
}

.dt-mobile-menu-btn{
  display:none;
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}

.dt-mobile-menu-btn span{
  display:block;
  width:24px;
  height:2px;
  background:#12377c;
  margin:0 auto;
}

/* 모바일 5개 퀵메뉴 완전 제거 */
.dt-mobile-quick{
  display:none !important;
  height:0 !important;
  overflow:hidden !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* =========================
   PC 상단 메뉴
   ========================= */

.dt-pc-nav{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:28px;
  flex:0 0 auto;
}

.dt-pc-nav-item{
  position:relative;
}

.dt-pc-nav-link{
  display:flex;
  align-items:center;
  height:112px;
  color:#111;
  font-size:16px;
  font-weight:500;
  line-height:1;
  letter-spacing:-0.3px;
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s ease;
}

.dt-pc-nav-link:hover,
.dt-pc-nav-link.is-active{
  color:#12377c;
  font-weight:900;
}

.dt-pc-submenu{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  min-width:170px;
  padding:8px 0;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 14px 28px rgba(0,0,0,.10);
  display:none;
  z-index:1000;
}

.dt-pc-nav-item:hover .dt-pc-submenu{
  display:block;
}

.dt-pc-submenu-link{
  display:block;
  padding:11px 16px;
  color:#222 !important;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none !important;
  white-space:nowrap;
}

.dt-pc-submenu-link:hover,
.dt-pc-submenu-link.is-active{
  background:#f4f7ff;
  color:#12377c !important;
}

.dt-pc-sns{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}

.dt-pc-sns-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  text-decoration:none !important;
}

.dt-pc-sns-link img{
  display:block;
  width:36px;
  height:36px;
  object-fit:contain;
}

/* =========================
   기존 PC GNB 영역
   구조 보존용
   ========================= */

.dt-gnb-wrap{
  position:relative;
  background:#fff;
  border-bottom:1px solid #d9d9d9;
  transition:background .25s ease, box-shadow .25s ease;
  z-index:120;
}

.dt-gnb-inner{
  max-width:1280px;
  margin:0 auto;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.dt-gnb{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1 1 auto;
}

.dt-gnb-item{
  position:relative;
}

.dt-gnb-link{
  display:inline-flex;
  align-items:center;
  height:58px;
  color:#111;
  font-size:16px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
  padding:0 20px 0 0;
}

.dt-gnb-link.is-active,
.dt-gnb-link:hover{
  color:#12377c;
  font-weight:600;
}

.dt-submenu{
  position:absolute;
  top:100%;
  left:0;
  min-width:180px;
  background:#fff;
  border:1px solid #e5e5e5;
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
  border-radius:10px;
  padding:8px 0;
  display:none;
  z-index:200;
}

.dt-gnb-item:hover .dt-submenu{
  display:block;
}

.dt-submenu-link{
  display:block;
  padding:10px 14px;
  color:#222;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
}

.dt-submenu-link:hover,
.dt-submenu-link.is-active{
  background:#f5f7ff;
  color:#1a47d9;
}

.dt-sticky-search{
  display:none;
}

.dt-sticky-sns{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.dt-sns-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.dt-sns-link img{
  display:block;
  height:34px;
  width:auto;
}

/* =========================
   모바일 메뉴
   ========================= */

.dt-mobile-menu{
  display:none;
  border-top:1px solid #e5e5e5;
  background:#fff;
}

.dt-mobile-menu-inner{
  padding:10px 16px 18px;
}

.dt-mobile-item + .dt-mobile-item{
  border-top:1px solid #f1f1f1;
}

.dt-mobile-link{
  display:block;
  padding:14px 6px;
  color:#111;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
}

.dt-mobile-submenu{
  padding:0 0 10px 10px;
}

.dt-mobile-sublink{
  display:block;
  padding:8px 6px;
  color:#666;
  font-size:14px;
  text-decoration:none;
}

/* =========================
   공통 페이지 타이틀 영역
   ========================= */

#container > .tw-pt-4.tw-mb-6{
  position:relative !important;
  z-index:0 !important;
  display:flex;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  width:100% !important;
  margin:0 0 0px !important;
  padding:18px 0 !important;
  background:transparent !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

#container > .tw-pt-4.tw-mb-6::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:#ffffff;
  /*border-top:1px solid #eef0f7;*/
  /*border-bottom:1px solid #e3e6f0;*/
  z-index:-1;
}

#container > .tw-pt-4.tw-mb-6 nav{
  order:2 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:7px !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
  background:transparent !important;
}

#container > .tw-pt-4.tw-mb-6 nav a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  color:#94a3b8 !important;
  text-decoration:none !important;
  transition:all .2s ease !important;
}

#container > .tw-pt-4.tw-mb-6 nav a:hover{
  color:#12377c !important;
}

#container > .tw-pt-4.tw-mb-6 nav .tw-text-gray-300{
  color:#cbd5e1 !important;
}

#container > .tw-pt-4.tw-mb-6 nav .tw-text-gray-600{
  color:#475569 !important;
  font-size:13px !important;
  font-weight:600 !important;
  letter-spacing:-0.2px !important;
}

#container > .tw-pt-4.tw-mb-6 #container_title{
  order:1 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
  color:#0f172a !important;
  font-size:20px !important;
  line-height:1.2 !important;
  font-weight:800 !important;
  letter-spacing:-0.03em !important;
}

/* =========================
   PC 헤더 최종 완성형
   프로모션바 제거 + 스크롤 전후 높이 고정
   ========================= */

@media (min-width:992px){

  #dt-header{
    position:sticky !important;
    top:0 !important;
    left:auto !important;
    width:100% !important;
    max-width:none !important;
    z-index:9999 !important;
    background:#fff !important;
    box-shadow:none !important;
    transform:none !important;
  }

  .dt-header-main{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    background:#fff !important;
  }

  .dt-header-inner{
    width:100% !important;
    max-width:none !important;
    min-height:76px !important;
    margin:0 !important;
    padding:0 22px !important;
    box-sizing:border-box !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:30px !important;
  }

  .dt-logo{
    flex:0 0 auto !important;
    margin:0 !important;
  }

  .dt-logo a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .dt-logo img{
    display:block !important;
    height:38px !important;
    width:auto !important;
  }

  .dt-pc-nav{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:30px !important;
    flex:0 1 auto !important;
    min-width:0 !important;
  }

  .dt-pc-nav-item{
    position:relative;
    flex:0 0 auto !important;
  }

  .dt-pc-nav-link{
    display:flex !important;
    align-items:center !important;
    height:76px !important;
    color:#111 !important;
    font-size:15px !important;
    font-weight:500 !important;
    line-height:1 !important;
    letter-spacing:-0.3px !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    transition:color .2s ease;
  }

  .dt-pc-nav-link:hover,
  .dt-pc-nav-link.is-active{
    color:#0869f9 !important;
    font-weight:900 !important;
  }

  .dt-pc-submenu{
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    min-width:170px;
    padding:8px 0;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    box-shadow:0 14px 28px rgba(0,0,0,.10);
    display:none;
    z-index:1000;
  }

  .dt-pc-nav-item:hover .dt-pc-submenu{
    display:block;
  }

  .dt-pc-submenu-link{
    display:block;
    padding:11px 16px;
    color:#222 !important;
    font-size:14px;
    font-weight:600;
    line-height:1.2;
    text-decoration:none !important;
    white-space:nowrap;
  }

  .dt-pc-submenu-link:hover,
  .dt-pc-submenu-link.is-active{
    background:#f4f7ff;
    color:#12377c !important;
  }

  .dt-search-wrap{
    display:block !important;
    flex:0 1 340px !important;
    max-width:340px !important;
    min-width:260px !important;
    margin-left:auto !important;
    margin-right:0 !important;
  }

  .dt-search-form{
    position:relative !important;
    width:100% !important;
  }

  .dt-search-input{
    width:100% !important;
    height:40px !important;
    border:1px solid #e5e7eb !important;
    border-radius:8px !important;
    background:#f5f7fa !important;
    padding:0 46px 0 16px !important;
    color:#222 !important;
    font-size:14px !important;
    font-weight:500 !important;
    outline:none !important;
  }

  .dt-search-input::placeholder{
    color:#777 !important;
  }

  .dt-search-btn{
    position:absolute !important;
    top:50% !important;
    right:13px !important;
    transform:translateY(-50%) !important;
    width:22px !important;
    height:22px !important;
    border:0 !important;
    background:transparent !important;
    padding:0 !important;
    color:#222 !important;
    cursor:pointer !important;
  }

  .dt-search-btn svg{
    width:100% !important;
    height:100% !important;
  }

  .dt-pc-sns{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    flex:0 0 auto !important;
    margin-left:0 !important;
  }

  .dt-pc-sns-link{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:34px !important;
    height:34px !important;
    text-decoration:none !important;
  }

  .dt-pc-sns-link img{
    display:block !important;
    width:34px !important;
    height:34px !important;
    object-fit:contain !important;
  }

  .dt-header-ad{
    display:none !important;
  }

  .dt-gnb-wrap{
    display:none !important;
  }

  .dt-mobile-actions,
  .dt-mobile-menu-btn,
  .dt-mobile-quick,
  .dt-mobile-menu{
    display:none !important;
  }

  body.dt-scrolled #dt-header{
    position:sticky !important;
    top:0 !important;
    left:auto !important;
    width:100% !important;
    max-width:none !important;
    z-index:9999 !important;
    background:#fff !important;
    box-shadow:0 2px 12px rgba(0,0,0,.08) !important;
  }

  body.dt-scrolled .dt-header-main{
    display:block !important;
    position:relative !important;
    top:auto !important;
    left:auto !important;
    width:100% !important;
    max-width:none !important;
    background:#fff !important;
    border-bottom:1px solid #e5e7eb !important;
    box-shadow:none !important;
    z-index:2 !important;
  }

  body.dt-scrolled .dt-header-inner{
    width:100% !important;
    max-width:none !important;
    min-height:76px !important;
    padding:0 22px !important;
  }

  body.dt-scrolled .dt-pc-nav-link{
    height:76px !important;
  }

  body.dt-scrolled .dt-logo img{
    height:38px !important;
  }

  body.dt-scrolled #wrapper{
    padding-top:0 !important;
  }
}

/* =========================
   PC 중간 해상도 보정
   ========================= */

@media (min-width:992px) and (max-width:1320px){

  .dt-header-inner{
    width:100% !important;
    max-width:none !important;
    padding:0 18px !important;
    gap:22px !important;
  }

  .dt-pc-nav{
    gap:22px !important;
  }

  .dt-pc-nav-link{
    font-size:14px !important;
  }

  .dt-search-wrap{
    flex-basis:300px !important;
    max-width:300px !important;
    min-width:240px !important;
  }

  body.dt-scrolled .dt-header-inner{
    padding:0 18px !important;
    gap:22px !important;
  }
}

/* =========================
   PC 작은 화면 보정
   메뉴 많을 때 깨짐 방지
   ========================= */

@media (min-width:992px) and (max-width:1120px){

  .dt-header-inner{
    padding:0 14px !important;
    gap:16px !important;
  }

  .dt-pc-nav{
    gap:16px !important;
  }

  .dt-pc-nav-link{
    font-size:13px !important;
  }

  .dt-search-wrap{
    flex-basis:240px !important;
    max-width:240px !important;
    min-width:220px !important;
  }

  .dt-pc-sns{
    gap:6px !important;
  }

  .dt-pc-sns-link,
  .dt-pc-sns-link img{
    width:30px !important;
    height:30px !important;
  }

  body.dt-scrolled .dt-header-inner{
    padding:0 14px !important;
    gap:16px !important;
  }
}

/* =========================
   태블릿 이하
   ========================= */

@media (max-width:991px){

  .dt-header-inner{
    min-height:88px;
    gap:14px;
    padding:0 16px;
  }

  .dt-header-ad{
    display:none;
  }

  .dt-search-wrap{
    flex:1 1 auto;
    max-width:none;
    margin-right:0;
  }

  .dt-gnb{
    display:none;
  }

  .dt-sticky-sns{
    display:none;
  }

  .dt-mobile-menu-btn{
    display:inline-flex;
  }

  #dt-header{
    position:sticky;
    top:0;
    z-index:9999;
    background:#fff;
    overflow:visible !important;
  }

  .dt-header-main{
    position:relative;
    z-index:3;
    overflow:visible !important;
  }

  .dt-header-inner{
    position:relative;
    overflow:visible !important;
  }

  .dt-gnb-wrap{
    display:none !important;
  }

  .dt-pc-nav,
  .dt-pc-sns{
    display:none !important;
  }

  body.dt-mobile-scrolled .dt-header-main{
    display:block !important;
  }

  body.dt-mobile-scrolled .dt-mobile-quick{
    display:none !important;
    height:0 !important;
  }

  .dt-mobile-menu-btn{
    display:inline-flex !important;
    position:relative;
    z-index:10001;
  }

  .dt-mobile-menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border-top:1px solid #e5e5e5;
    box-shadow:0 10px 24px rgba(0,0,0,0.08);
    z-index:10000;
  }

  body.dt-mobile-open .dt-mobile-menu{
    display:block !important;
  }

  .dt-mobile-menu-inner{
    padding:8px 14px 16px;
  }

  .dt-mobile-item + .dt-mobile-item{
    border-top:1px solid #f1f1f1;
  }

  .dt-mobile-link{
    display:block;
    padding:14px 4px;
    color:#111;
    text-decoration:none;
    font-size:15px;
    font-weight:700;
  }

  .dt-mobile-submenu{
    padding:0 0 10px 10px;
  }

  .dt-mobile-sublink{
    display:block;
    padding:8px 4px;
    color:#666;
    text-decoration:none;
    font-size:13px;
    font-weight:500;
  }

  #wrapper{
    padding-top:0rem !important;
  }
}

/* =========================
   모바일 최종 헤더 UI
   ========================= */

@media (max-width:767px){

  .dt-header-main{
    background:#ffffff;
  }

  .dt-header-inner{
    min-height:58px !important;
    padding:0 14px !important;
    gap:10px !important;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .dt-logo{
    flex:0 0 auto;
    margin:0;
  }

  .dt-logo a{
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .dt-logo img{
    height:30px !important;
    width:auto;
    display:block;
  }

  .dt-search-wrap{
    display:none !important;
  }

  .dt-header-ad{
    display:none !important;
  }

  .dt-mobile-actions{
    display:flex !important;
    align-items:center;
    justify-content:flex-end;
    margin-right:10px;
    gap:8px;
    flex:1 1 auto;
    min-width:0;
  }

  .dt-mobile-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:34px;
    padding:0 14px;
    border-radius:4px;
    background:rgb(245, 248, 250);
    color:rgb(16, 26, 46);
    font-size:13px;
    font-weight:700;
    line-height:1;
    text-decoration:none !important;
    white-space:nowrap;
    box-shadow:rgb(226, 232, 238) 0px 0px 0px 1px inset;
  }

  .dt-mobile-action-btn:hover,
  .dt-mobile-action-btn:focus{
    color:#12377c;
    border-color:#12377c;
    background:#fff;
  }

  .dt-mobile-menu-btn{
    display:inline-flex !important;
    width:28px;
    height:28px;
    padding:0;
    margin:0;
    border:0;
    background:transparent;
    flex:0 0 28px;
    align-items:center;
    justify-content:center;
    gap:4px;
  }

  .dt-mobile-menu-btn span{
    width:22px;
    height:3px;
    background:#1f2937;
    border-radius:2px;
  }

  .dt-mobile-quick{
    display:none !important;
    height:0 !important;
    overflow:hidden !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    border:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  .dt-mobile-menu{
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border-top:1px solid #e5e5e5;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
  }
}

/* =========================
   초소형 모바일
   ========================= */

@media (max-width:390px){

  .dt-header-inner{
    padding:0 20px !important;
    gap:6px !important;
  }

  .dt-logo img{
    height:26px !important;
  }

  .dt-mobile-actions{
    gap:6px;
  }

  .dt-mobile-action-btn{
    height:34px;
    padding:0 10px;
    font-size:14px;
  }

  .dt-mobile-menu-btn{
    flex:0 0 24px;
    width:24px;
    height:24px;
  }

  .dt-mobile-menu-btn span{
    width:20px;
  }
}

/* =========================
   모바일 페이지 타이틀 영역
   ========================= */

@media (max-width:768px){

  #container > .tw-pt-4.tw-mb-6{
    display:flex !important;
    /*display: none !important;*/
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin:0px 0 0px !important;
    padding:14px 0px !important;
  }

  #container > .tw-pt-4.tw-mb-6 #container_title{
    order:1 !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    margin:0 !important;
    font-size:15px !important;
    line-height:1.2 !important;
  }

  #container > .tw-pt-4.tw-mb-6 nav{
    order:2 !important;
    flex:0 0 auto !important;
    margin:0 0 0 auto !important;
    padding:0 !important;
    gap:5px !important;
  }

  #container > .tw-pt-4.tw-mb-6 nav .tw-text-gray-600{
    font-size:12px !important;
  }
}
/* =========================================================
   ✅ 모바일 스크롤 시 헤더 하단 쉐도우 효과
   - 맨 위: 쉐도우 없음
   - 스크롤 내리면: 헤더 구분용 쉐도우 생성
   ========================================================= */

@media (max-width:991px){

  #dt-header{
    box-shadow:none !important;
    transition:box-shadow .22s ease, border-color .22s ease !important;
  }

  body:not(.dt-mobile-scrolled) #dt-header{
    box-shadow:none !important;
  }

  body.dt-mobile-scrolled #dt-header{
    box-shadow:0 4px 14px rgba(0,0,0,0.10) !important;
  }

  body.dt-mobile-scrolled .dt-header-main{
    border-bottom:1px solid rgba(0,0,0,0.06) !important;
  }
}