/* 블로그 전용 스타일 */

/* 블로그 헤더 */
.blog-header {
    background: linear-gradient(135deg, #40798C 0%, #1F363D 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(64, 121, 140, 0.15);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* 카드 컨테이너 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
    padding: 0;
    justify-items: stretch;
}

/* 카드 스타일 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    max-height: 500px;
    width: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(64, 121, 140, 0.15);
}

/* 카드 이미지 */
.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

/* 언론동향 전용 이미지 스타일 */
.press-card .card-image {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-card .card-image a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-card .card-image img {
    object-fit: contain;
    object-position: center;
    padding: 10px;
    box-sizing: border-box;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    justify-content: flex-start;
}

.card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    flex-shrink: 0;
    text-align: left;
    word-break: keep-all;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card h3 a {
    color: #1F363D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card h3 a:hover {
    color: #40798C;
}

.card-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.card-meta p {
    margin: 0;
    font-size: 0.875rem;
    color: #70A9A1;
    font-weight: 500;
}

.card-date {
    color: #70A9A1;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.card-date::before {
    content: "📅";
    font-size: 0.875rem;
}

.card-description {
    color: #4B5563;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-align: left;
    word-break: keep-all;
    padding-bottom: 0.5rem;
}

.card-description a {
    color: inherit;
    text-decoration: none;
}

/* 태그 스타일 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    background: #E2E8F0;
    color: #40798C;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #40798C;
    color: white;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
}

.pagination a,
.pagination strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.875rem;
}

.pagination a {
    color: #40798C;
    background: white;
    border-color: #E2E8F0;
}

.pagination a:hover {
    background: #40798C;
    color: white;
    border-color: #40798C;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(64, 121, 140, 0.2);
}

.pagination strong {
    background: linear-gradient(135deg, #40798C 0%, #1F363D 100%);
    color: white;
    border-color: #40798C;
    box-shadow: 0 2px 8px rgba(64, 121, 140, 0.3);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6B7280;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* 블로그 본문 페이지 스타일 */
.blog-post-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1F363D;
    margin: 0 0 1rem 0;
}

.blog-post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #70A9A1;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post-date::before {
    content: "📅 ";
    margin-right: 0.25rem;
}

.blog-post-category::before {
    content: "🏷️ ";
    margin-right: 0.25rem;
}

.blog-post-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 3rem;
}

/* 본문 내 이미지: 컨테이너 폭에 맞춰 반응형으로 축소 표시 */
.blog-post-content img {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 1rem auto;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    color: #1F363D;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #40798C;
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid #40798C;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6B7280;
}

.blog-post-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #40798C;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-to-blog a:hover {
    background: #1F363D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 121, 140, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .card {
        min-height: 360px;
        max-height: 480px;
    }
    
    .card-image {
        height: 140px;
    }
    
    .press-card .card-image {
        background: #f8fafc;
    }
    
    .press-card .card-image img {
        padding: 8px;
    }
    
    .blog-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .card {
        min-height: 350px;
        max-height: 500px;
    }
    
    .card-image {
        height: 120px;
    }
    
    .press-card .card-image {
        background: #f8fafc;
    }
    
    .press-card .card-image img {
        padding: 6px;
    }
    
    .blog-header {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 0.95rem;
    }
    
    .card-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 4;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .pagination a,
    .pagination strong {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    /* 블로그 본문 페이지 모바일 스타일 */
    .blog-post-title {
        font-size: 1.75rem;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .blog-post-content {
        font-size: 1rem;
        line-height: 1.7;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .blog-post-content h3 {
        font-size: 1.25rem;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .blog-post-content p {
        margin-bottom: 1.25rem;
        word-break: keep-all;
    }
    
    .blog-post-content ul,
    .blog-post-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .blog-post-content li {
        margin-bottom: 0.5rem;
        word-break: keep-all;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-post-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .blog-post-featured-image {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-container {
        padding: 0 0.75rem;
        gap: 1.25rem;
    }
    
    .blog-header {
        padding: 1rem 0.75rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .card-content {
        padding: 0.875rem;
    }
    
    .card h3 {
        font-size: 0.9rem;
        min-height: 2.5rem;
    }
    
    .card-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
}