/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Food OK News - Orange Theme */
    --primary-color: #FF8C00;
    --secondary-color: #e67e00;
    --accent-color: #ffa500;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --hover-color: #ff9900;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header-main {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    background: #fff;
}

.logo h1 {
    font-size: 36px;
    color: var(--primary-color);
    letter-spacing: -1px;
    margin-bottom: 5px;
}

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

/* Main Navigation */
.main-nav {
    background: #fff;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 17px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Main Container */
.main-container {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    align-items: flex-start;
}

.content-area {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 80px;
}

/* 기사 리스트 스타일 */
.news-card {
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.news-card-link {
    display: flex !important;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

.news-thumbnail {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f8f8f8;
}

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.4;
    color: #1a202c;
    margin-bottom: 12px;
}

.news-excerpt {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

.section-title {
    font-size: 22px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* View Page Styles */
.view-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.view-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.view-category {
    color: var(--primary-color);
    font-weight: bold;
}

.view-title {
    font-size: 2.5rem;
    margin: 10px 0;
    line-height: 1.3;
    word-break: keep-all;
}

.view-meta {
    color: #999;
    font-size: 0.9rem;
}

.view-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.view-content {
    font-size: 1.15rem;
    color: #333;
    /* white-space: pre-wrap; 삭제됨 */
}

.back-btn {
    display: inline-block;
    margin-top: 50px;
    padding: 10px 20px;
    background: #eee;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
}

.back-btn:hover {
    background: #ddd;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.family-sites {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.family-sites h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.family-sites ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.family-sites a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.family-sites a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .news-card-link {
        flex-direction: column;
    }

    .news-thumbnail {
        width: 100%;
        height: 200px;
    }
}
/* Article Content Custom Styles */
.view-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.view-content th, .view-content td {
    padding: 12px 15px !important;
    border: 1px solid #e2e8f0 !important;
    text-align: center;
}

.view-content th {
    background-color: #fffaf0 !important; /* 연한 주황빛 배경 */
    color: var(--primary-color) !important;
    font-weight: bold;
}

.view-content tr:nth-child(even) {
    background-color: #fcfcfc;
}

.view-content ul, .view-content ol {
    padding-left: 25px !important;
    margin: 20px 0 !important;
}

.view-content li {
    margin-bottom: 12px !important;
}

.view-content strong {
    color: #1a202c;
    background: linear-gradient(to top, #fff4e6 40%, transparent 40%); /* 강조 텍스트 밑줄 효과 */
}