/* KCREW 소식(블로그) 화면 — 첫 화면(page-kcrew-company-template.php)과 같은 색·글꼴 */
html, body.kcrew-news-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #040b16 !important;
    color: #ffffff !important;
}
body.kcrew-news-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.kn-page, .kn-page * { box-sizing: border-box; }
.kn-page, .kn-page h1, .kn-page h2, .kn-page h3, .kn-page h4, .kn-page h5, .kn-page h6, .kn-page p, .kn-page li, .kn-page a, .kn-page time, .kn-page strong {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif !important;
}
.kn-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 12% 0%, rgba(34,211,238,0.13), transparent 30%),
        radial-gradient(circle at 88% 4%, rgba(59,130,246,0.12), transparent 30%),
        #040b16;
    color: #ffffff;
}
.kn-page a { color: inherit; text-decoration: none; }
.kn-shell { max-width: 1440px; margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100%; }
.kn-narrow { max-width: 820px; }
.kn-wide { max-width: 1120px; }
.kn-main { flex: 1 0 auto; padding: 72px 0 96px; }

/* 위쪽 막대 */
.kn-top {
    position: sticky; top: 0; z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(4,11,22,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.kn-top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.kn-brand { font-weight: 800; font-size: 20px; letter-spacing: 0.14em; }
.kn-nav { display: flex; gap: 6px; }
.kn-nav a {
    padding: 8px 14px; border-radius: 12px; font-size: 15px; font-weight: 600;
    color: rgba(255,255,255,0.72) !important;
}
.kn-nav a:hover, .kn-nav a.is-on { color: #ffffff !important; background: rgba(255,255,255,0.07); }

/* 제목 */
.kn-kicker {
    font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(103,232,249,0.82) !important;
}
.kn-kicker a { color: inherit !important; }
.kn-title {
    margin: 14px 0 0;
    font-size: clamp(30px, 3.4vw, 52px);
    line-height: 1.18; font-weight: 800; letter-spacing: -0.01em;
    color: #ffffff !important; word-break: keep-all;
}
.kn-title-list { font-size: clamp(32px, 3vw, 48px); }
.kn-meta { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,0.56) !important; }
.kn-lead { margin: 14px 0 0; font-size: 18px; color: rgba(255,255,255,0.68) !important; }

/* 글 본문 */
.kn-hero-img { margin-top: 44px; margin-bottom: 0; }
.kn-hero-img img {
    display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover;
    border-radius: 28px; border: 1px solid rgba(255,255,255,0.10);
}
.kn-content { margin-top: 44px; font-size: 18px; line-height: 1.86; color: rgba(255,255,255,0.84) !important; word-break: keep-all; overflow-wrap: anywhere; }
.kn-content > * { margin-top: 0; margin-bottom: 1.25em; }
.kn-content h2, .kn-content h3, .kn-content h4 {
    color: #ffffff !important; line-height: 1.3; font-weight: 800; margin-top: 2em; margin-bottom: 0.7em;
}
.kn-content h2 { font-size: clamp(24px, 2vw, 30px); }
.kn-content h3 { font-size: clamp(20px, 1.6vw, 24px); }
.kn-content h4 { font-size: 19px; }
.kn-content strong, .kn-content b { color: #ffffff !important; }
.kn-content a { color: #67e8f9 !important; text-decoration: underline; text-underline-offset: 3px; }
.kn-content ul, .kn-content ol { padding-left: 1.3em; }
.kn-content li { margin-bottom: 0.4em; }
.kn-content img, .kn-content video, .kn-content iframe { max-width: 100%; height: auto; border-radius: 20px; }
.kn-content figure { margin-left: 0; margin-right: 0; }
.kn-content figcaption, .kn-content .wp-caption-text { font-size: 14px; color: rgba(255,255,255,0.52) !important; text-align: center; margin-top: 8px; }
.kn-content .wp-caption { max-width: 100%; }
.kn-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.kn-content .alignleft { float: left; margin: 0.3em 1.4em 1em 0; max-width: 50%; }
.kn-content .alignright { float: right; margin: 0.3em 0 1em 1.4em; max-width: 50%; }
.kn-content blockquote {
    margin-left: 0; padding: 18px 24px; border-left: 3px solid #67e8f9;
    background: rgba(255,255,255,0.04); border-radius: 0 18px 18px 0; color: rgba(255,255,255,0.78) !important;
}
.kn-content hr { border: 0; border-top: 1px solid rgba(255,255,255,0.12); margin: 2.4em 0; }
.kn-content code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.kn-content pre { overflow-x: auto; padding: 18px; border-radius: 16px; background: rgba(255,255,255,0.06); }
.kn-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.kn-content th, .kn-content td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.12); text-align: left; }
.kn-content::after { content: ""; display: table; clear: both; }

/* 이전·다음, 돌아가기 */
.kn-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.kn-adj {
    display: grid; gap: 6px; padding: 20px 22px; border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04);
    transition: border-color .2s ease, background .2s ease;
}
.kn-adj:hover { border-color: rgba(103,232,249,0.40); background: rgba(103,232,249,0.06); }
.kn-adj span { font-size: 13px; color: rgba(255,255,255,0.52) !important; }
.kn-adj strong { font-size: 16px; line-height: 1.4; word-break: keep-all; }
.kn-adj-next { grid-column: 2; text-align: right; }
.kn-back { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.kn-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 24px; border-radius: 16px; font-size: 15px; font-weight: 700;
    background: #ffffff; color: #07111f !important; transition: transform .2s ease;
}
.kn-btn:hover { transform: translateY(-2px); }
.kn-btn-ghost { background: rgba(255,255,255,0.05); color: #ffffff !important; border: 1px solid rgba(255,255,255,0.16); }

/* 글 목록 카드 (첫 화면 '소식' 구역과 같은 모양) */
.kn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.kn-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04);
    transition: transform .2s ease, border-color .2s ease;
}
.kn-card:hover { transform: translateY(-3px); border-color: rgba(103,232,249,0.40); }
.kn-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1a30; }
.kn-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kcrew-news-noimg {
    display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
    font-weight: 800; letter-spacing: 0.3em; font-size: 18px; color: rgba(255,255,255,0.30) !important;
    background:
        radial-gradient(circle at 20% 20%, rgba(34,211,238,0.22), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99,102,241,0.22), transparent 50%),
        #0a1a30;
}
.kn-card-body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.kn-card-body time { font-size: 13px; color: rgba(103,232,249,0.82) !important; letter-spacing: 0.04em; }
.kn-card-body strong { font-size: 19px; line-height: 1.4; word-break: keep-all; }
.kn-card-ex { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.62) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kn-empty { margin-top: 44px; padding: 40px; border-radius: 28px; border: 1px dashed rgba(255,255,255,0.16); color: rgba(255,255,255,0.60) !important; text-align: center; }
.kn-paging { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.kn-paging .page-numbers {
    min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.78) !important;
}
.kn-paging .page-numbers.current { background: #ffffff; color: #07111f !important; border-color: #ffffff; }

/* 아래쪽 */
.kn-foot { border-top: 1px solid rgba(255,255,255,0.08); padding: 32px 0 56px; font-size: 13px; color: rgba(255,255,255,0.46) !important; }
.kn-foot p { margin: 0 0 8px; line-height: 1.7; }
.kn-foot strong { color: rgba(255,255,255,0.72) !important; }

@media (max-width: 1100px) { .kn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .kn-shell { padding-left: 16px; padding-right: 16px; }
    .kn-main { padding: 44px 0 72px; }
    .kn-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
    .kn-hero-img { margin-top: 28px; }
    .kn-hero-img img { border-radius: 20px; }
    .kn-content { margin-top: 32px; font-size: 17px; line-height: 1.8; }
    .kn-content .alignleft, .kn-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
    .kn-adjacent { grid-template-columns: 1fr; }
    .kn-adj-next { grid-column: 1; }
    .kn-nav a { padding: 8px 10px; }
    .kn-brand { font-size: 18px; }
}
