/* 언어설정 */
@charset 'utf-8';

@font-face {
    font-family: 'SUIT-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KCCHyerim-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 전체설정 */
* {
    margin: 0;
    padding: 0;
    font-family: 'SUIT-Regular';
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

img {
    vertical-align: bottom;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;

}

.body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    /* 스크롤 막기 */
    touch-action: none;
    /* 터치 시 흔들림 방지 (모바일 UX 향상) */
}

/* 색상설정 */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
}

/* 상세설정 ---------------------------------------------------------------------------- */

main {
    margin-top: 60px;
}

.txt {
    background-image: url(/img/news_bg.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    /* 또는 원하는 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.txt h1 {
    font-size: 60px;
    margin-top: 50px;
    font-weight: bold;
    display: inline-block;
    color: #fff;
}

/* 검색박스 */
.filter-search {
    max-width: 1200px;
    margin: 60px auto 30px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    height: 2vw;
}

.search-box {
    position: relative;
    background-color: #e3ecf2;
    border-radius: 30px;
    padding: 10px 40px 10px 20px;
    width: 300px;
    height: 20px;
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #456;
    cursor: pointer;
}


/* 카드 형태 후기 */

.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* ✅ 가로 4칸 고정 */
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.review-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    object-position: top;
}

.card-info {
    padding: 15px;
}

.profile-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.profile-row img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.user-text {
    display: flex;
    flex-direction: column;
}

.user-text strong {
    font-size: 14px;
}

.user-text span {
    font-size: 12px;
    color: #888;
}

.hashtag {
    font-size: 13px;
    color: #0070c9;
    font-weight: bold;
    margin-bottom: 5px;
}

.desc {
    font-size: 14px;
    color: #333;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;           /* 보여줄 줄 수 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;                   /* line-height × 줄 수 (1.4 × 2 = 2.8em) */
}

.user-info {
    font-size: 14px;
    line-height: 1.4;
}

.user-info .date {
    font-size: 12px;
    color: #888;
}



/* 페이지네이션 */

.pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 80px;
}

.pagination button {
    background: #eee;
    border: none;
    margin: 0 5px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination button:hover {
    background-color: #ccc;
    color: #000;
}

.pagination button.active {
    background: #204B62;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* << >> 전용 버튼 */
.pagination button.nav-btn {
    background: #ddd;
    font-weight: bold;
    color: #444;
}

.pagination button.nav-btn:hover {
    background: #bbb;
}

.pagination a {
    background: #eee;
    color: #333;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.pagination a:hover {
    background: #ccc;
}

.pagination a.active {
    background: #204B62;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}


/* 미디어 쿼리 구간------------------------------------------------------------------------------------- */


/* PC 전용 */
@media screen and (min-width: 1440px) {}

/* 노트북 전용 */
@media screen and (min-width: 1025px) and (max-width: 1439px) {
    .txt h1 {
        font-size: 45px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }
}

/* 태블릿 전용 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .txt h1 {
        font-size: 45px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }
}

/* 모바일 전용 */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .txt h1 {
        font-size: 40px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {

    .txt {
        height: 250px;          /* 배경 영역 축소 */
    }

    .txt h1 {
        font-size: 35px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .search-box{
        width: 270px;
    }
    .review-grid {
        grid-template-columns: repeat(2, 1fr); /* 가로 2개 */
        gap: 10px;
        padding: 0 10px;
    }

    .review-card {
        height: auto;
    }

    .card-img img {
        height: 100px; /* 이미지 높이 축소 */
    }

    .card-info {
        padding: 10px;
    }

    .desc {
        font-size: 12px;
        line-height: 1.3;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.6em;  /* 1.3 × 2 */
    }

    .hashtag {
        font-size: 12px;        /* 해시태그 글씨 축소 */
    }

    .user-info .date {
        font-size: 11px;        /* 날짜 작게 */
    }


}