@charset "utf-8";

/* 기본 설정 */
* {
    box-sizing: border-box;
}

/* 컨테이너 */
.latest_container {
    width: 1600px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px;
}

/* 카드 그리드 레이아웃 */
.latest_card_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}

/* 카드 아이템 */
.card_item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
	border: 1px solid #ddd
}



/* 카드 이미지 */
.card_image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card_img_link {
    display: block;
    width: 100%;
    height: 100%;
}

.card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card_item:hover .card_image img {
    transform: scale(1.1);
}

/* 이미지가 없을 때 */
.no_image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
}

/* 카드 콘텐츠 */
.card_content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* 날짜 */
.card_date {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 제목 */
.card_title {
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.card_title a {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.card_title a:hover {
    color: #2c5aa0;
}

/* 내용 요약 */
.card_excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* 카드 메타 정보 */
.card_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* 아이콘들 */
.card_icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card_icons .fa-lock {
    color: #666;
    font-size: 12px;
}

.new_badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hot_badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.comment_count {
    background: #f8f9fa;
    color: #666;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment_count i {
    font-size: 10px;
}

/* Read More 링크 */
.read_more {
    color: #2c5aa0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.read_more:hover {
    color: #1a4080;
}

.read_more::after {
    content: '→';
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.read_more:hover::after {
    transform: translateX(4px);
}

/* 빈 상태 */
.empty_state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty_state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty_state p {
    font-size: 16px;
    margin: 0;
}

/* 반응형 설정 */
@media (max-width: 1650px) {
    .latest_container {
        width: 100%;
        max-width: 1600px;
        padding: 20px;
    }
}

@media (max-width: 1200px) {
    .latest_container {
        padding: 20px;
    }
    
    .latest_card_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .card_content {
        padding: 20px;
    }
    
    .card_title a {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .latest_container {
        padding: 16px;
    }
    
    .latest_card_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .card_image {
        height: 200px;
    }
    
    .card_content {
        padding: 18px;
    }
    
    .card_title a {
        font-size: 17px;
    }
    
    .card_excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .latest_container {
        padding: 12px;
    }
    
    .latest_card_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card_image {
        height: 180px;
    }
    
    .card_content {
        padding: 16px;
    }
    
    .card_title a {
        font-size: 16px;
    }
    
    .card_excerpt {
        font-size: 12px;
    }
    
    .card_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* 접근성 개선 */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .card_item {
        background: #1a1a1a;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .card_title a {
        color: #fff;
    }
    
    .card_excerpt {
        color: #ccc;
    }
    
    .card_date {
        color: #999;
    }
    
    .card_meta {
        border-color: #333;
    }
    
    .comment_count {
        background: #333;
        color: #ccc;
    }
}

/* 애니메이션 */
/*@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card_item {
    animation: fadeInUp 0.6s ease forwards;
}*/

/*.card_item:nth-child(1) { animation-delay: 0.1s; }
.card_item:nth-child(2) { animation-delay: 0.2s; }
.card_item:nth-child(3) { animation-delay: 0.3s; }
.card_item:nth-child(4) { animation-delay: 0.4s; }
.card_item:nth-child(5) { animation-delay: 0.5s; }
.card_item:nth-child(6) { animation-delay: 0.6s; }*/