@charset "utf-8";

body{
    background-color: var(--color-background);
}

main{
    width: 100%;
}
    
header{
    width: 100%;
    display: flex;
    position: absolute;
    background: none;
    border-bottom: 1px solid #fff;
    z-index: 100;
}

header .container .header_logo h1 a{
    background-image: url(../../images/logo_w.svg);
}

header .container nav ul li a{color: #fff;}

.main_section {
    min-height: 690px;
}

.main_section::before {
    background-image: url(../../images/main_bg.png);
}

.section_top{
    padding-top: 8rem;
}

.section_top .title_section{
    color: #fff;
}

.section_top .title_section h2{
    font-size: 5.6rem;
    font-weight: var(--font-weight-bold);
    padding-bottom: 2.4rem;
}

.section_top .search_wrap{
    margin-top: 6rem;
}
.section_top .search_wrap .search{
    display:flex;
    justify-content: center;
    align-items:center;
    column-gap: 1.2rem;
}

.section_top .search_wrap .search .search_box{
    position: relative;
    width: 100%;
    max-width: 580px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items:center;
    border: 1px solid #dedede;
    background-color: #fff;
    border-radius: 12px;
}

.section_top .search_wrap .search .search_box .search_input{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items:center;
}

.section_top .search_wrap .search .search_box input[type="text"] {
    width: calc(100% - 60px);
    height: 100%;
    padding: 0 0.8rem;
    box-sizing: border-box;
    font-size: 1.6rem;
    border: none;
}

.section_top .search_wrap .search .search_box input[type="submit"]{
    border: none;
    background: none;
    position: absolute;
    right: 0;
    width: 60px;
    height: 60px;
    background-image: url(../../images/search.svg);
    background-size: 28px;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

.section_top .search_wrap .search a.btn {
    width: 140px;
    height: 60px;
    line-height: 60px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: var(--font-weight-medium);
    background-color: var(--color-primary);
}

.link_section{
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.link_section .section_bottom{
    width: 100%;
    text-align: center;
}

.link_section .section_bottom .main_link h3{
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 3rem;
}

.link_section .section_bottom .main_link ul{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 3.2rem;
}

.link_section .section_bottom .main_link ul li{
    display:flex;
    justify-content: center;
    align-items: center;
    width:200px;
    height: 80px;
    background-color: #F8FAFC;
    border:1px solid #DEE1EB;
    border-radius: 12px;
}

.link_section .section_bottom .main_link ul li a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link_section .section_bottom .main_link ul .nl a img{
    height: 30px;
}

.link_section .section_bottom .main_link ul .nanet a img{
    height: 30px;
}

.link_section .section_bottom .main_link ul .scienceon a img{
    height: 18px;
}

@media (max-width: 1024px) {
    /* 헤더: 데스크탑에 없는 모바일 전용이므로 유지 */
    header {
      width: 100%;
      display: flex;
      position: absolute;
      background: none;
      border-bottom: 1px solid #fff;
      z-index: 100;
    }
    header .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 56px;
    }
    header .container .header_logo h1 a {
      width: 77px;
      height: 16px;
      background-image: url(../../images/logo_w.svg);
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center;
      display: inline-block;
      position: relative;
      color: var(--color-white);
    }
    header .container .toggle_btn { display: block; width: 24px; height: 24px; }
    header .container .toggle_btn span {
      width: 100%;
      height: 2px;
      background-color: var(--color-white);
      display: block;
      margin-bottom: 6px;
    }

    header .container nav ul li a{color: var(--color-text);}
  
    /* 메인 */
    .main_section { min-height: 465px; } /* 690 → 465 */
    /* .main_section::before 의 background-image는 PC와 동일하므로 생략 */
  
    .section_top { padding: 10rem 2.4rem 0; box-sizing: border-box; }
    /* .section_top .title_section { color 동일 → 생략 } */
    .section_top .title_section h2 { padding-bottom: 0; font-size: var(--font-size32); } /* 크기/패딩만 변경 */
    .section_top .title_section p { font-size: 1.5rem; }
    .section_top .search_wrap { margin-top: 3.6rem; }
    .section_top .search_wrap .search .search_box{width: calc(100% - 9.2rem); height: 44px; border-radius: 4px; overflow: hidden;}
    .section_top .search_wrap .search .search_box input[type="text"] {
      width: 100%;
      height: 100%;
      padding: 0 1.6rem;
      font-size: 1.3rem;
    }
    .section_top .search_wrap .search .search_box input[type="submit"]{
        width: 44px;
        height: 44px;
    }
    .section_top .search_wrap .search a.btn {
        margin-left: auto;
        width: auto;
        min-width: 80px;
        padding: 8px 0;
        width: max-content;
        height: 44px;
        line-height: 44px;
        border-radius: 6px;
        margin: 0;
    }
  
    /* 링크 섹션 */
    .link_section { height: 160px; } /* 280 → 160 */
    /* .link_section/.section_bottom 공통 스타일은 동일 → 생략 */
    .link_section .section_bottom .main_link h3 { font-size: var(--font-size15); padding-bottom: 1.6rem; } /* 폰트/간격만 */
    .link_section .section_bottom .main_link ul { column-gap: 0.75rem; } /* 배치 동일, 간격만 */
    .link_section .section_bottom .main_link ul li { width: 100px; height: 40px; } /* 크기만 */
    .link_section .section_bottom .main_link ul li a {
      padding: 10px;
      display: flex; align-items: center; justify-content: center;
    }
    .link_section .section_bottom .main_link ul li a img { object-fit: cover; } /* width/height 100%는 PC와 동일 → 생략 */
    .link_section .section_bottom .main_link ul .nl a img { height: 19px; }
    .link_section .section_bottom .main_link ul .nanet a img { height: 19px; }
    .link_section .section_bottom .main_link ul .scienceon a img { height: 12px; }
  }
  