/* #content */
section .main_title {letter-spacing: -0.02em; line-height: 56px; margin-bottom: 20px;}
section .main_title.on {display: none;}
section .sub_text {letter-spacing: -0.02em;}
.img_box img {width: 100%;}


/* 상단 배너 : 배경만 이미지, 문구는 HTML (PC 1920x420 / TB 768x420 / MO 375x206) */
.sub_visual {height: 420px; display: flex; align-items: center; justify-content: center; text-align: center;
    background: #4A5A6E url(../images/sub_visual_pc.png) center center no-repeat; background-size: cover;}
/* 피그마 : 텍스트 블록 470 x 151, gap 24, 가로/세로 정중앙 (PC·TB 동일) */
.sub_visual .visual_text {width: 470px; max-width: 88%; color: #fff;}
.sub_visual h1 {font-size: 48px; font-weight: 700; line-height: 1.5; letter-spacing: -1px; color: #fff; margin: 0 0 24px;}
.sub_visual p {font-size: 15px; font-weight: 400; line-height: 1.8; letter-spacing: -0.5px; color: #fff;}

/* 카테고리 + 검색 */
.board_util {display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 60px 16.66% 0;}
.board_util .category_box {display: flex; align-items: center; gap: 20px; min-width: 0;}
.board_util .category_label {flex: none; font-size: 18px; font-weight: 600; letter-spacing: -0.5px; color: #1A1A1A;}
.board_util .tab_box {display: flex; flex-wrap: wrap; gap: 8px;}
.board_util .tab_box li a {display: block; height: 40px; line-height: 40px; padding: 0 22px; box-sizing: border-box; white-space: nowrap;
    border-radius: 100px; background-color: #F4F5F6; color: #777C81; font-size: 16px; font-weight: 500; letter-spacing: -0.5px; transition: all .15s;}
.board_util .tab_box li a:hover {background-color: #EFEAFF; color: #713FFF;}
.board_util .tab_box li a.on {background-color: #EFEAFF; color: #713FFF; font-weight: 600;}

.board_util .search_box {flex: none; position: relative; width: 290px;}
.board_util .search_box input[type="text"] {width: 100%; height: 40px; box-sizing: border-box; padding: 0 44px 0 18px;
    border: 1px solid #DFE0E2; border-radius: 100px; background-color: #fff; color: #1A1A1A; font-size: 15px; letter-spacing: -0.5px;}
.board_util .search_box input[type="text"]::placeholder {color: #AAADB0;}
.board_util .search_box input[type="text"]:focus {border-color: #713FFF; outline: none;}
.board_util .search_box .btn_search {position: absolute; top: 0; right: 0; width: 44px; height: 40px; padding: 0;
    border: 0; background: none; color: #777C81; cursor: pointer; display: flex; align-items: center; justify-content: center;}
.board_util .search_box .btn_search::after {display: none !important;}
.board_util .search_box .btn_search:hover {color: #713FFF;}

.list_box {padding: 32px 16.66% 160px; position: relative;}
.list_box > .img_box {margin-bottom: 60px;}
.list_box > ul {display: grid; grid-template-columns: repeat(3, 2fr); column-gap: 20px; row-gap: 52px;}
.list_box > ul > li {padding: 16px 4% 25px; border: 1px solid #DFE0E2; border-radius: 16px;}
.list_box > ul > li .img_box {position: relative; margin-bottom: 16px;}
/* 카드 이미지는 피그마 카드 비율(373:240)로 고정. 다른 비율을 올려도 그리드가 안 깨지게 잘라서 표시 */
.list_box > ul > li .img_box img {display: block; width: 100%; aspect-ratio: 373 / 240; object-fit: cover; border-radius: 16px;}
.list_box > ul > li .img_box .no_image {aspect-ratio: 373 / 240; line-height: normal !important; display: flex !important;
    align-items: center; justify-content: center; border-radius: 16px !important;}
.list_box > ul > li .img_box .badge {display: inline-block; line-height: 29px; height: 29px; box-sizing: border-box; padding: 0 12px; border-radius: 4px;
     font-weight: 500; font-size: 14px; position: absolute; top: 20px; left: 5%; color: #fff;}
.list_box > ul > li .img_box .badge.ing_badge {background: rgba(113, 63, 255, .75); border: 1px solid #490AFF;}
.list_box > ul > li .img_box .badge.end_badge {background: rgba(170, 173, 176, .75); border: 1px solid #777C81;}
.list_box > ul > li .text_box > .tit {font-weight: 500; font-size: 17px; line-height: 1.5; letter-spacing: -.3px; color: #1A1A1A;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px;}
.list_box > ul > li .text_box > .date {display: block; font-weight: 400; font-size: 13px; letter-spacing: -.3px; color: #AAADB0;}
.list_box > ul > li .text_box .more_btn {display: block; font-weight: 500; font-size: 18px; color: #fff; padding: 16px 0; text-align: center;
    background: #713FFF; border-radius: 100px; margin-top: 16px;}
.list_box > ul > li .text_box .more_btn.end {pointer-events: none; cursor: default;}

.btn_write {display: inline-block; outline: none; line-height: 50px; height: 50px; padding: 0 30px; border: 1px solid #777C81; border-radius: 100px; background: #fff;
    font-size: 18px;  letter-spacing: -1px; white-space: nowrap; position: relative; left: calc(100% - 105px); margin-bottom: 32px;}
.btn_write::after {display: none !important;}

/* PC (해상도 1440px ~ 1540px) */
@media screen and (max-width:1540px) {
    .board_util {padding: 50px 12% 0;}
    .list_box {padding: 28px 12% 100px;}
}
/* PC (해상도 1058px ~ 1440px) */
@media screen and (max-width:1440px) {
    .board_util {padding: 50px 8% 0;}
    .list_box {padding: 28px 8% 100px;}
}
/* PC (해상도 1024px ~ 1058px) */
@media screen and (max-width:1058px) {
    .board_util {padding: 50px 6% 0;}
    .list_box {padding: 28px 6% 100px;}
}


/* 태블릿 (해상도 769px ~ 1024px) */
@media screen and (max-width:1024px) {
    /* content */
    section .main_title {font-size: 28px; margin-bottom: 12px; line-height: 36px;}
    section .main_title i {display: block;}

    /* TB 는 피그마상 텍스트 블록이 PC 와 동일(470 x 151) 이라 배경만 교체 */
    .sub_visual {height: 420px; background-image: url(../images/sub_visual_tb.png);}

    /* 카테고리 한 줄, 검색은 아래 전체폭 */
    .board_util {flex-direction: column; align-items: stretch; gap: 16px; padding: 40px 5% 0;}
    .board_util .category_box {gap: 16px;}
    .board_util .category_label {font-size: 17px;}
    .board_util .search_box {width: 100%;}
    .board_util .search_box input[type="text"] {height: 44px; font-size: 15px;}
    .board_util .search_box .btn_search {height: 44px;}

    .btn_write {display: none;}

    .list_box {padding: 24px 5% 80px;}
    .list_box > .img_box {margin-bottom: 40px;}
    .list_box > ul {grid-template-columns: repeat(2, 2fr); gap: 12px;}
    .list_box > ul > li .text_box > .tit {font-size: 16px; margin-bottom: 10px;}
}

/* 모바일 가로, 모바일 세로 (해상도 375px ~ 768px)*/
@media screen and (max-width:768px) {
    .wrap { min-width: 375px; }
    #content {position: relative;}
    /* content */
    /* 피그마 : 텍스트 블록 272 x 113, gap 12, 정중앙 */
    .sub_visual {height: 206px; background-image: url(../images/sub_visual_mo.png);}
    .sub_visual .visual_text {width: 272px; max-width: 84%;}
    .sub_visual h1 {font-size: 28px; line-height: 1.4; margin-bottom: 12px;}
    .sub_visual p {font-size: 12px; line-height: 1.7;}

    /* 카테고리 라벨 → 칩 → 검색 순서로 세로 배치 */
    .board_util {gap: 12px; padding: 32px 5% 0;}
    .board_util .category_box {flex-direction: column; align-items: flex-start; gap: 10px;}
    .board_util .category_label {font-size: 16px;}
    .board_util .tab_box {width: 100%; gap: 6px;}
    .board_util .tab_box li a {height: 36px; line-height: 36px; padding: 0 18px; font-size: 14px;}
    .board_util .search_box input[type="text"] {height: 40px; font-size: 14px; padding-right: 42px;}
    .board_util .search_box .btn_search {width: 42px; height: 40px;}

    .list_box {padding: 20px 5% 60px;}
    .list_box > .img_box {margin-bottom: 30px;}
    .list_box > ul {grid-template-columns: repeat(1, 3fr); gap: 12px;}
    .list_box > ul > li {padding: 12px 4% 24px; border-radius: 8px;}
    .list_box > ul > li .img_box {margin-bottom: 12px;}
    .list_box > ul > li .img_box img {border-radius: 8px;}
    .list_box > ul > li .img_box .no_image {border-radius: 8px !important;}
    .list_box > ul > li .img_box .badge {height: 22px; line-height: 20px; padding: 0 8px; top: 12px; left: 4%;}
    .list_box > ul > li .text_box > .tit {font-size: 15px; margin-bottom: 8px;}
    .list_box > ul > li .text_box > .date {font-size: 12px;}
    .list_box > ul > li .text_box .more_btn {font-size: 16px; line-height: 15px; padding: 12.5px 0; margin-top: 12px;}
}