/**
 * NextBio Website - News Page Styles
 */

.news-page,
.news-detail-page {
    padding: 160px 0;
    background: #ffffff;
}

.news-page .inner,
.news-detail-page .inner {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 검색 및 카운트 영역 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.news-count {
    color: #000000;
    font-family: 'SUIT', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.news-search {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-input {
    width: 300px;
    padding: 12px 16px;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    color: #000000;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #8DC63F;
}

.search-input::placeholder {
    color: #808284;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.search-btn:hover {
    opacity: 0.7;
}

/* 게시글 리스트 */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-bottom: 80px;
}

.news-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    width: 100%;
    height: 240px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.news-thumbnail-placeholder img {
    width: 120px;
    height: auto;
    opacity: 0.3;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-title {
    color: #000000;
    font-family: 'SUIT', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 18px;
}

/* 페이지네이션 */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    border-color: #8DC63F;
    color: #8DC63F;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: #8DC63F;
    color: #8DC63F;
}

.pagination-number.active {
    background: #8DC63F;
    border-color: #8DC63F;
    color: #ffffff;
}

.pagination-ellipsis {
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    padding: 0 8px;
}

/* 상세 페이지 */
.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-title {
    color: #000000;
    font-family: 'SUIT', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.news-author svg {
    width: 20px;
    height: 20px;
    color: #808284;
}

.news-date {
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.news-detail-divider {
    width: 100%;
    height: 1px;
    background: #dfdfdf;
    margin: 30px 0;
}

.news-detail-content {
    margin-bottom: 30px;
}

.news-detail-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.news-detail-image-placeholder {
    width: 100%;
    padding: 80px 20px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-detail-image-placeholder img {
    width: 200px;
    height: auto;
    opacity: 0.3;
}

.news-detail-body {
    color: #000000;
    font-family: 'SUIT', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.news-detail-body p {
    margin: 0 0 24px 0;
}

.news-detail-content-image {
    width: 100%;
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.news-detail-content-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.news-detail-content-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 60px 0;
    align-items: center;
}

/* 이전/다음 게시글 네비게이션 */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.news-nav-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-nav-label {
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}

.news-nav-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.news-nav-link:hover {
    color: #8DC63F;
}

.news-nav-title {
    color: #000000;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-nav-date {
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.news-nav-empty {
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.news-nav-item.next {
    text-align: right;
}

.news-nav-item.next .news-nav-label {
    text-align: right;
}

/* 목록 버튼 */
.news-detail-footer {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: #333333;
    color: #ffffff;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.list-btn:hover {
    background: #8DC63F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 198, 63, 0.3);
}

/* 반응형 */
@media (max-width: 1440px) {
    .news-page .inner,
    .news-detail-page .inner {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    .news-page,
    .news-detail-page {
        padding: 100px 0 80px;
    }

    .news-page .inner,
    .news-detail-page .inner {
        padding: 0 32px;
    }
    
    .news-header {
        margin-bottom: 48px;
    }
    
    .news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
        margin-bottom: 60px;
    }
    
    .news-thumbnail {
        height: 220px;
        margin-bottom: 16px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-excerpt {
        font-size: 15px;
    }
    
    .news-detail-title {
        font-size: 28px;
    }
    
    .news-detail-body {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .news-page,
    .news-detail-page {
        padding: 80px 0 60px;
    }
    
    .news-page .inner,
    .news-detail-page .inner {
        padding: 0 20px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .news-search {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        flex: 1;
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 48px;
    }
    
    .news-thumbnail {
        height: 200px;
        margin-bottom: 14px;
    }
    
    .news-title {
        font-size: 17px;
        line-height: 1.4;
    }
    
    .news-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .news-date {
        font-size: 13px;
    }
    
    .news-detail-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .news-detail-meta {
        gap: 16px;
    }
    
    .news-detail-body {
        font-size: 17px;
        line-height: 1.7;
    }
    
    .news-detail-image,
    .news-detail-content-image {
        margin-bottom: 28px;
    }
    
    .news-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-nav-item.next {
        text-align: left;
    }
    
    .news-nav-item.next .news-nav-label {
        text-align: left;
    }
    
    .news-pagination {
        margin-top: 48px;
    }
    
    .pagination-numbers {
        gap: 4px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 14px;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
    }
}

/* 480px: 초소형 화면 */
@media (max-width: 480px) {
    .news-page,
    .news-detail-page {
        padding: 60px 0 48px;
    }
    
    .news-page .inner,
    .news-detail-page .inner {
        padding: 0 16px;
    }
    
    .news-header {
        margin-bottom: 28px;
        gap: 16px;
    }
    
    .news-count {
        font-size: 16px;
    }
    
    .search-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 44px;
        height: 44px;
    }
    
    .news-list {
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .news-thumbnail {
        height: 180px;
        margin-bottom: 12px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-excerpt {
        font-size: 13px;
    }
    
    .news-date {
        font-size: 12px;
    }
    
    .no-posts {
        padding: 60px 16px;
        font-size: 16px;
    }
    
    .news-detail-title {
        font-size: 20px;
    }
    
    .news-detail-body {
        font-size: 16px;
    }
    
    .news-detail-footer {
        margin-top: 40px;
    }
    
    .list-btn {
        padding: 12px 32px;
        font-size: 15px;
    }
    
    .pagination-number {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
    }
}

/* ========== 인재채용 리스트 (테이블 형식) ========== */
.career-page .section-01,
.career-page .section-01 *,
.news-page .section-01,
.news-page .section-01 * {
    box-sizing: border-box;
}
.news-page .section-01 {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}
.news-page .career-top.top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 1440px;
    max-width: 100%;
    flex-shrink: 0;
    position: relative;
}
.news-page .career-count._3 {
    text-align: left;
    font-family: 'SUIT', 'SuitVariable-Regular', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}
.news-page ._3-span {
    color: #000000;
}
.news-page ._3-span2 {
    color: var(--main, #8dc63f);
    font-weight: 600;
}
.news-page .career-top form.search {
    border-radius: 8px;
    border: 1px solid var(--gray-02, #dfdfdf);
    padding: 18px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 400px;
    max-width: 100%;
}
.news-page .select-wrap {
    flex: 1;
    min-width: 0;
}
.news-page .search-input-inline {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    background: transparent;
}
.news-page .search-input-inline::placeholder {
    color: #555555;
    opacity: 0.5;
}
.news-page .search-icon-btn {
    flex-shrink: 0;
    margin-left: 12px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-page .search-icon {
    width: 20px;
    height: 20px;
}
.career-page .section-01 {
    display: flex;
    flex-direction: column;
    gap: 120px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}
.career-page .career-top.top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 1440px;
    max-width: 100%;
    flex-shrink: 0;
    position: relative;
}
.career-page .career-count._3 {
    text-align: left;
    font-family: 'SUIT', 'SuitVariable-Regular', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}
.career-page ._3-span {
    color: #000000;
}
.career-page ._3-span2 {
    color: var(--main, #8dc63f);
    font-weight: 600;
}
.career-page .career-top form.search {
    border-radius: 8px;
    border: 1px solid var(--gray-02, #dfdfdf);
    padding: 18px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 400px;
    max-width: 100%;
}
.career-page .select-wrap {
    flex: 1;
    min-width: 0;
}
.career-page .search-input-inline {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'SUIT', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    background: transparent;
}
.career-page .search-input-inline::placeholder {
    color: #555555;
    opacity: 0.5;
}
.career-page .search-icon-btn {
    flex-shrink: 0;
    margin-left: 12px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}
.career-page .search-icon {
    width: 20px;
    height: 20px;
}
.career-page .career-table.table {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}
.career-page .career-table .thead {
    border-style: solid;
    border-color: #000;
    border-width: 2px 0px 1px 0px;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}
.career-page .career-table .th {
    padding: 30px 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 216px;
    flex-shrink: 0;
    position: relative;
}
.career-page .career-table .th2 {
    padding: 30px 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 1008px;
    flex-shrink: 0;
    position: relative;
}
.career-page .career-table .thead .div2 {
    color: #000;
    font-family: 'SUIT', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}
.career-page .career-table .tbody {
    border-style: solid;
    border-color: #000;
    border-width: 0px 0px 1px 0px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.career-page .career-table .tr,
.career-page .career-table .tr2 {
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}
.career-page .career-table .tr,
.career-page .career-table .tr2 {
    border-style: solid;
    border-color: #dfdfdf;
    border-width: 0px 0px 1px 0px;
    background: #fff;
    transition: background-color 0.2s ease;
}
.career-page .career-table .tr:hover,
.career-page .career-table .tr2:hover {
    background: var(--sub, #f4faec);
}
.career-page .career-table .td {
    padding: 30px 24px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 216px;
    height: 92px;
    flex-shrink: 0;
    position: relative;
}
.career-page .career-table .td2 {
    padding: 30px 24px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    width: 1008px;
    flex-shrink: 0;
    position: relative;
}
.career-page .career-table .date-cell,
.career-page .career-table ._25-08-11 {
    color: #000;
    font-family: 'SUIT', sans-serif;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    text-align: center;
    position: relative;
}
.career-page .career-table .div3 {
    color: #000;
    font-family: 'SUIT', sans-serif;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    text-align: center;
    position: relative;
}
.career-page .career-title-link {
    color: #000;
    text-align: left;
    font-family: 'SUIT', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}
.career-page .career-title-link:hover {
    color: var(--main, #8dc63f);
}
.career-page .career-table .td2 .div2 {
    color: #000;
    font-family: 'SUIT', sans-serif;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    position: relative;
}
.career-page .career-table .tbody .career-no-posts-tr {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 120px;
    border-bottom: 1px solid #dfdfdf;
    box-sizing: border-box;
}
.career-page .career-table .tbody .career-no-posts-cell {
    flex: 1;
    min-width: 0;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.career-page .career-no-posts {
    text-align: center;
    color: #808284;
    font-family: 'SUIT', sans-serif;
    font-size: 18px;
    width: 100%;
}
.career-page .pagination-wrap {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}
.career-page .pagination-arrow,
.career-page .div4,
.career-page .div5 {
    flex-shrink: 0;
    width: 6px;
    height: 10px;
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.career-page .pagination-arrow.disabled {
    cursor: default;
}
.career-page .pagination {
    border-radius: 999px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}
.career-page .pagination2,
.career-page .pagination3 {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 6px 0px;
    width: 32px;
    position: relative;
    text-decoration: none;
}
.career-page .pagination2 {
    background: var(--main, #8dc63f);
    border: none;
}
.career-page .pagination3 {
    border-style: solid;
    border-color: #dfdfdf;
    border-width: 1px;
    background: transparent;
}
.career-page .pagination2 ._1,
.career-page .pagination3 ._12 {
    font-family: 'SUIT', 'SuitVariable-Medium', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-align: center;
    position: relative;
}
.career-page .pagination2 ._1 {
    color: #fff;
}
.career-page .pagination3 ._12 {
    color: #808284;
}
.career-page .pagination-ellipsis {
    color: #808284;
    font-size: 14px;
    padding: 0 4px;
}

@media (max-width: 1024px) {
    .career-page .career-table .th,
    .career-page .career-table .td {
        width: 140px;
        padding: 20px 12px;
    }
    .career-page .career-table .thead .div2,
    .career-page .career-title-link {
        font-size: 18px;
        line-height: 26px;
    }
    .career-page .career-top form.search {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .news-page .section-01 {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .news-page .career-top.top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    .news-page .career-top form.search {
        width: 100%;
        max-width: none;
    }
    .career-page .career-top.top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .career-page .career-top form.search {
        width: 100%;
        max-width: none;
    }
    .career-page .career-table .thead .div2 {
        font-size: 16px;
    }
    .career-page .career-table .th,
    .career-page .career-table .td {
        width: 90px;
        padding: 16px 8px;
        font-size: 14px;
    }
    .career-page .career-table .th2,
    .career-page .career-table .td2 {
        padding: 16px 12px;
    }
    .career-page .career-title-link {
        font-size: 16px;
        line-height: 24px;
    }
    .career-page .career-table .date-cell {
        font-size: 14px;
    }
}
