@charset "UTF-8";

/* ============================
   1. 상단 탭 & 레이아웃
   ============================ */
/* ===== 상단 경로 표시 영역 ===== */
section.index {
    width: 100%;
    margin-top: 100px;        /* 헤더 높이 */
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
    z-index: 20;              /* 🔥 wrap보다 높게 */
}

/* 경로 텍스트 래퍼 */
section.index .tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #9ca3af;
}

/* 기본 경로 텍스트 */
section.index .tabs p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* > 기호 */
section.index .tabs span {
    margin: 0 4px;
    color: #d1d5db;
}

/* 현재 선택된 페이지 */
section.index .tabs .selection {
    color: #111827;
    font-weight: 600;
}

/* ===== 페이지 타이틀 영역 ===== */
.page-title {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 56px;
    font-weight: 600;
    color: #055C4D;
    letter-spacing: -1px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

/* ============================
   2. 검색창 (프론트 디자인 유지)
   ============================ */
.search-area h2 {
    font-size: 50px;
    font-weight: 500;
    margin: 60px 0 50px;
    text-align: center;
    color: #055C4D;
}

.searchbg {
    width: 500px;
    margin: 0 auto 80px;
    position: relative;
    display: flex;
    align-items: center;
}

.searchbg .search {
    width: 100%;
    height: 50px;
    border: 1px solid #B8B3B3;
    border-radius: 25px;
    padding-left: 20px;
    padding-right: 50px;
    outline: none;
    color: #333;
    font-size: 15px;
    transition: 0.3s;
}

.searchbg .search:focus {
    border-color: #055C4D;
    box-shadow: 0 0 5px rgba(5, 92, 77, 0.2);
}

.searchbg .search-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #055C4D;
    font-size: 18px;
}

/* ============================
   3. 뉴스 카드 그리드 (백엔드 스타일 + 프론트 색감)
   ============================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #055C4D;
    box-shadow: 0 10px 25px rgba(5, 92, 77, 0.15);
}

.news-thumb-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-thumb {
    transform: scale(1.05);
}

.default-img {
    object-fit: contain;
    padding: 40px;
    opacity: 0.5;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-badge {
    font-size: 11px;
    color: #055C4D;
    font-weight: 700;
    margin-bottom: 8px;
    background: #055C4D15;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* ============================
   4. 기타
   ============================ */
.no-data {
    text-align: center;
    padding: 100px 0;
    color: #ccc;
}

.admin-btn-area {
    margin-top: 40px;
    text-align: right;
}

.write-btn {
    background: #055C4D;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.write-btn:hover {
    background: #04463a;
}