:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666;
    --accent-color: #c8102e;
    --text-dark: #222;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --border-dark: #ccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

.header {
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    gap: 1.5rem;
    color: var(--secondary-color);
}

.header-social a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}



.logo {
    text-align: center;
}

.logo h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
    font-family: 'Noto Sans KR', sans-serif;
}

.logo-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.7rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.main-content {
    background-color: var(--bg-white);
}

.headline-section {
    padding: 2.5rem 0;
    border-bottom: 2px solid var(--border-color);
}

.headline-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.main-article {
    position: relative;
}

.article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
}

.article-image {
    height: 400px;
    background-color: #e8e8e8;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1rem;
    background: linear-gradient(135deg, #d8d8d8 0%, #c0c0c0 100%);
}

.article-content {
    padding: 0 0.5rem;
}

.article-category {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.article-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.article-meta .author {
    font-weight: 600;
}

.side-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-article {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.side-article:last-child {
    border-bottom: none;
}

.side-article h3 {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0.8rem 0 0.5rem 0;
    font-weight: 600;
    color: var(--primary-color);
}

.side-article .meta {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.news-grid-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.section-tabs {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: 'Noto Sans KR', sans-serif;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    overflow: hidden;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.news-image {
    height: 200px;
    background-color: #e8e8e8;
    overflow: hidden;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.columns-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
}

.section-header {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.column-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s;
}

.column-card:hover {
    background-color: #ececec;
    border-left-width: 6px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.column-type {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.column-category {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.column-card h3 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.column-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.column-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.column-meta .author {
    font-weight: 600;
    color: var(--primary-color);
}

.publisher-info {
    padding: 3rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.publisher-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.publisher-content h2 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.publisher-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.read-more-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    background-color: #a00d26;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-weight: 900;
}

.footer-brand p {
    font-size: 0.75rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.footer-desc {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-col a,
.footer-col p {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 968px) {
    .headline-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .columns-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: 1fr; }
    .headline-section { grid-template-columns: 1fr !important; }
    .headline-side { padding: 1rem; }
    .headline-side-item .side-thumbnail { width: 120px; height: 80px; }
}

@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .nav-container { padding: 0.8rem 1rem !important; flex-direction: column !important; align-items: flex-start !important; gap: 0.8rem !important; }
    .logo h1 { font-size: 1.4rem !important; }
    .logo h1 a { font-size: 1.4rem !important; }
    .logo-subtitle { font-size: 0.6rem !important; letter-spacing: 1px !important; }
    .nav-menu { display: flex !important; flex-wrap: wrap !important; flex-direction: row !important; gap: 0.5rem 1rem !important; width: 100% !important; position: static !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
    .nav-menu a { font-size: 0.8rem !important; padding: 0.2rem 0 !important; }
    .article-title { font-size: 1.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .section-tabs { gap: 0.4rem; }
    .tab-btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
    .article_skin { grid-template-columns: 1fr !important; }
    .list_content:first-child { grid-column: span 1; }
    .headline-section { grid-template-columns: 1fr !important; }
    .headline-main .list_thumbnail { height: 220px; }
    .headline-main .title { font-size: 1.2rem; }
    .headline-side-item { flex-direction: column; }
    .headline-side-item .side-thumbnail { width: 100%; height: 160px; }
    .entry-header .title { font-size: 1.5rem; }
    .entry_body { font-size: 1rem; }
    .section-title { font-size: 1.3rem; }
    .footer-content { grid-template-columns: 1fr !important; }
}

/* 클릭을 방해하는 투명 레이어 무시 설정 (테스트용) */
#header, #content, #sidebar {
    position: relative;
    z-index: 9999 !important;
}

/* 인카네이션 하위 카테고리 드롭다운 스타일 */
.has-submenu { 
    position: relative !important; 
}

.custom-sub-menu {
    display: none; /* 평소에는 숨김 */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 170px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #1e293b !important; /* 다크톤 포인트 */
    border-radius: 4px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    text-align: left !important;
}

/* 마우스 올리면 나타남 */
.has-submenu:hover .custom-sub-menu { 
    display: block !important; 
}

.custom-sub-menu li a {
    display: block !important;
    padding: 8px 20px !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.custom-sub-menu li a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    padding-left: 25px !important;
}

/* 서브메뉴 스타일링 설정 */
.has-submenu {
    position: relative !important;
}

.custom-sub-menu {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 170px !important;
    padding: 10px 0 !important;
    list-style: none !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #1e293b !important;
    border-radius: 4px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    text-align: left !important;
}

.has-submenu:hover .custom-sub-menu {
    display: block !important;
}

.custom-sub-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.custom-sub-menu li a:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    padding-left: 25px !important;
}

/* 🎯 코다리표 헤드라인 명품 에디토리얼 레이아웃 (테두리 제거 및 라인 구분형) */
#kodari-headline-section {
    max-width: 1080px; 
    margin: 60px auto 80px auto !important;
    padding: 0; 
    font-family: 'Noto Sans KR', sans-serif;
    /* 하단 주요기사와의 경계선 (기존 유지) */
    border-bottom: 1.5px solid #e2e8f0 !important;
    padding-bottom: 60px !important;
}

.headline-container {
    display: grid;
    /* 좌우 비율 조절 */
    grid-template-columns: 1.6fr 1fr; 
    gap: 50px; /* 좌우 사이 넓은 간격 */
    position: relative;
}

/* 💥 좌우 수직 구분선 💥 */
.main-headline-col {
    position: relative;
    padding-right: 25px;
    /* 오른쪽에 얇은 회색 수직선 추가 */
    border-right: 1.2px solid #ddd;
}

/* 🎯 왼쪽 메인 헤드라인 (오른쪽 4개 높이에 맞춰 키 줄임!) */
.main-editorial-thumb {
    width: 100%;
    /* 💥 사진 높이를 430px -> 350px로 과감히 줄여서 우측 4개 기사 총합 높이에 맞춤! 💥 */
    height: 350px !important; 
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.main-editorial-text h2 {
    font-size: 1.55rem !important; 
    font-weight: 800;
    /* 제목 위쪽 여백을 10px로 조절해서 전체 높이 정밀 튜닝 */
    margin: 10px 0 0 0 !important; 
    line-height: 1.35;
    color: #1a1a1a !important;
    letter-spacing: -1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 🎯 우측 서브 헤드라인 (높이 계산 기준 확인) */
.sub-editorial-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0; 
    text-decoration: none !important;
    border-bottom: 1px solid #eeeeee;
}


.sub-editorial-row {
    display: flex;
    align-items: center;
    gap: 15px;
    /* 💥 기사 간격을 20px -> 5px로 대폭 줄여서 5mm가량 밀착! 💥 */
    padding: 10px 0; 
    text-decoration: none !important;
    border-bottom: 1px solid #eeeeee;
}

.sub-editorial-title h3 {
    /* 💥 서브 제목 폰트도 1.05rem -> 0.95rem으로 더 오밀조밀하게! 💥 */
    font-size: 0.95rem !important; 
    font-weight: 700;
    color: #333 !important;
    line-height: 1.4;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 💥 첫 번째 기사 위쪽 선은 없애서 깔끔하게! 💥 */
.sub-editorial-row:first-child {
    padding-top: 0;
}

.sub-editorial-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-editorial-thumb {
    width: 130px; /* 섬네일을 10px 더 키워 시원하게! */
    height: 90px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.sub-editorial-title h3 {
    font-size: 1.05rem !important; /* 폰트를 조금 더 오밀조밀하게 조절 */
    font-weight: 700;
    color: #333 !important;
    line-height: 1.45;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.sub-editorial-row:last-child {
    border-bottom: none; /* 마지막 기사 밑에는 줄 안 그음 */
}

.sub-editorial-thumb {
    width: 120px;
    height: 85px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.sub-editorial-title h3 {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: #333 !important;
    line-height: 1.45;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 모바일 대응 */
@media (max-width: 968px) {
    .article_skin { grid-template-columns: repeat(2, 1fr); }
    .list_content:first-child { grid-column: span 2; }
    .headline-section { grid-template-columns: 1fr; }
    .headline-side { padding: 1rem; }
    .headline-side-item .side-thumbnail { width: 120px; height: 80px; }
}

@media (max-width: 640px) {
    .nav-menu { gap: 0.8rem; flex-wrap: wrap; }
    .nav-menu a { font-size: 0.8rem; }
    .logo h1 a { font-size: 1.5rem; }
    .article_skin { grid-template-columns: 1fr; }
    .list_content:first-child { grid-column: span 1; }
    .headline-section { grid-template-columns: 1fr; }
    .headline-main .list_thumbnail { height: 220px; }
    .headline-main .title { font-size: 1.2rem; }
    .headline-side-item { flex-direction: column; }
    .headline-side-item .side-thumbnail { width: 100%; height: 160px; }
    .entry-header .title { font-size: 1.5rem; }
    .entry_body { font-size: 1rem; }
    .section-title { font-size: 1.3rem; }
    .container { padding: 0 1rem; }
    .nav-container { padding: 0.8rem 1rem; }
    .footer-content { grid-template-columns: 1fr !important; }
}

.logo h1 a { font-size: 1.8rem !important; }
.logo h1 { font-size: 1.4rem !important; }
.logo-subtitle { font-size: 1.1rem !important; letter-spacing: 1px !important; }

/* 🎯 살색 배경 안쪽의 광활한 여백(padding) 강제 축소 */
#mArticle, .area_main, .inner_index, .content-wrap {
    /* 원래 100px 가까이 되던 윗공간을 15px(약 5mm)로 확! 줄여서 바짝 붙입니다. */
    /* 만약 글자가 상단 배경 끝선에 탁! 걸리길 원치 않으시면 20px~30px 로 늘리세요 */
    padding-top: 5px !important; 
}

/* 🎯 "최근 주요기사" 텍스트 머리 위 뻥 뚫린 공간 박멸! */
.section-title {
    /* 기존 margin: 3rem 0 2rem; 으로 되어있던 이마 공간을 0으로 꽉 누릅니다. */
    /* 만약 너무 천장에 붙는 게 싫으시면 0 대신 1rem 이나 15px 로 살짝만 띄워주세요! */
    margin-top: 1rem !important; 
}

/* 추가로 살색 박스 자체의 위쪽 여백(padding)도 있다면 같이 눌러줍니다 */
.area_main {
    padding-top: 50px !important;
}

/* 🎯 헤드라인과 주요기사 사이의 감각적인 선 (Misty Line) */
#kodari-headline-section {
    /* 위아래 간격을 넉넉히 70px~80px 줘서 선이 숨을 쉴 수 있게 합니다. */
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;

    /* 💥 양 끝은 투명하고 가운데는 선명한, 명품 그라데이션 라인 💥 */
    border-bottom: none !important; /* 일반 보더는 지우고... */
    background-image: linear-gradient(to right, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 1px; /* 선 굵기를 1px로 가늘고 날카롭게! */
}

/* 만약 밑의 "최근 주요기사" 제목에 제가 예전에 넣었던 선이 남아있다면 
   그건 아래 코드로 지워주시면 훨씬 더 깔끔해집니다! */
.section-title {
    border-top: none !important;
    margin-top: 0 !important;
}

/* 왼쪽 메인 사진 높이 (오른쪽 4개 기사와 칼같이 맞춤) */
.main-editorial-thumb {
    width: 100%;
    height: 385px !important; 
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* 🎯 중앙 배너 영역 - 시원한 하늘색 최종본 */
#kodari-mid-banner {
    max-width: 1080px;
    height: 120px;
    margin: 0px auto 30px auto !important; /* 위아래 간격을 적절히 30px씩 줬습니다 */
    
    /* 💥 대표님이 픽하신 세련된 하늘색(Soft Sky Blue) 💥 */
    background-color: #f0f9ff !important; 
    border: 1.2px solid #bae6fd !important; 
    
    display: flex !important; 
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    
    color: #4387af;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
    clear: both;
}






