@charset "utf-8";

/* ========================================================
   THE CREATORS AI : NEWSROOM (뉴스룸 & 보도자료)
   Inspired by Sandbox Network Design Language
   ======================================================== */

body {
    background-color: #060a14 !important;
}
.container-fluid.gap {
    background-color: #060a14 !important;
    padding-top: 10px !important;
}

/* 상단 위치/경로 바 다크 테마화 */
#sub-menu {
    background: #0f172a !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px;
    margin-bottom: 25px !important;
    overflow: hidden;
}
#sub-menu .form-control {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}
#sub-menu .btn1 {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700;
}
#sub-menu .btn1:hover {
    background: #0369a1 !important;
}

#tc-newsroom-wrap {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Nanum Gothic', sans-serif;
    background: transparent !important;
    color: #e2e8f0;
    padding: 0 0 90px;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    #tc-newsroom-wrap { padding: 40px 24px 60px; border-radius: 16px; }
}

/* 1. 상단 헤더 & 탭 */
.tc-nr-header {
    text-align: left;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 35px;
}
.tc-nr-badge {
    display: inline-block;
    color: #f43f5e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.tc-nr-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -1px;
}
.tc-nr-desc {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 25px 0;
}
.tc-nr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tc-tab-btn {
    padding: 9px 20px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.18);
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.tc-tab-btn:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.7);
    border-color: rgba(148, 163, 184, 0.4);
}
.tc-tab-btn.active {
    color: #ffffff;
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}
.tc-tab-btn.highlight {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.1);
}

/* 뱃지 공통 스타일 */
.tc-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
}
.tc-pill-badge.pink {
    background: #e11d48;
    color: #ffffff;
}
.tc-pill-badge.outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}
.tc-pill-badge.mini {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    backdrop-filter: blur(6px);
}

/* 2. 피처드 헤로 섹션 (SANDBOX NOW 스타일) */
.tc-nr-hero-section {
    margin-bottom: 70px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.tc-nr-hero-head {
    margin-bottom: 25px;
}
.tc-nr-hero-sub {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.tc-nr-hero-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.tc-nr-hero-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
}
.tc-nr-view-all {
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.tc-nr-view-all:hover {
    color: #38bdf8;
}

/* 2열 분할 그리드 */
.tc-nr-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 35px;
    align-items: start;
}
@media (max-width: 991px) {
    .tc-nr-hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* 좌측 메인 피처드 카드 */
.tc-hero-main-card {
    display: flex;
    flex-direction: column;
}
.tc-hero-thumb-link {
    text-decoration: none !important;
    display: block;
}
.tc-hero-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.tc-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tc-hero-main-card:hover .tc-hero-img {
    transform: scale(1.04);
}
.tc-hero-thumb-wrap .tc-pill-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 5px 14px;
    font-size: 12.5px;
    z-index: 2;
}

.tc-hero-info {
    margin-top: 20px;
}
.tc-hero-post-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}
.tc-hero-post-title a {
    color: #ffffff;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.tc-hero-post-title a:hover {
    color: #38bdf8;
}
.tc-hero-excerpt {
    font-size: 14.5px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 0 14px 0;
    word-break: keep-all;
}
.tc-hero-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-hero-meta .sep { opacity: 0.5; }

/* 우측 4개 사이드 리스트 */
.tc-hero-side-list {
    display: flex;
    flex-direction: column;
}
.tc-side-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-radius: 8px;
}
.tc-side-item:first-child { padding-top: 0; }
.tc-side-item:hover {
    background: rgba(30, 41, 59, 0.4);
    padding-left: 20px;
}
.tc-side-item:hover .tc-side-title {
    color: #38bdf8;
}
.tc-side-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}
.tc-side-date {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* 3. 전체 보도자료 아카이브 (3열 그리드 카드) */
.tc-nr-archive-section {
    margin-top: 20px;
}
.tc-archive-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}
.tc-archive-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}
.tc-archive-count {
    font-size: 13.5px;
    color: #64748b;
}

.tc-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
@media (max-width: 991px) {
    .tc-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tc-archive-grid { grid-template-columns: 1fr; }
}

.tc-card-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.tc-card-item:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.6);
}
.tc-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tc-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #0f172a;
}
.tc-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tc-card-item:hover .tc-card-img {
    transform: scale(1.06);
}

.tc-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tc-card-meta {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 8px;
}
.tc-card-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #f8fafc;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.tc-card-item:hover .tc-card-title {
    color: #38bdf8;
}
.tc-card-summary {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.tc-card-foot {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 12px;
    margin-top: auto;
}
.tc-read-more {
    font-size: 13px;
    font-weight: 600;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 빈 목록 상태 */
.tc-empty-box {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}
.tc-empty-box i { font-size: 40px; margin-bottom: 15px; color: #475569; }
.tc-empty-box p { font-size: 16px; margin: 0; }

/* 4. 하단 페이지네이션 및 검색 바 */
.tc-nr-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.tc-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
}
.tc-pagination .pg {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tc-pagination a, .tc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.tc-pagination a:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}
.tc-pagination .pg_current {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.tc-btn-write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: #0284c7;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.tc-btn-write:hover {
    background: #0369a1;
}

/* 검색 폼 */
.tc-search-box {
    max-width: 500px;
    margin: 0 auto;
}
.tc-search-form {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.tc-search-select {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 14px;
    outline: none;
}
.tc-search-input-wrap {
    display: flex;
    flex: 1;
    position: relative;
}
.tc-search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 40px 8px 14px;
    outline: none;
}
.tc-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 10px;
}

/* ========================================================
   상세 뷰어 (view.skin.php) 스타일
   ======================================================== */
.tc-view-page {
    max-width: 1000px;
    margin: 20px auto 60px;
}
.tc-view-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.tc-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.tc-btn-back:hover {
    color: #38bdf8;
}
.tc-view-top-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

.tc-view-header {
    margin-bottom: 40px;
}
.tc-view-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    word-break: keep-all;
}
@media (max-width: 768px) {
    .tc-view-title { font-size: 23px; }
}
.tc-view-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    flex-wrap: wrap;
    gap: 15px;
}
.tc-meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13.5px;
    color: #94a3b8;
}
.tc-meta-left i { color: #38bdf8; margin-right: 4px; }
.tc-admin-actions a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: 6px;
}
.tc-btn-admin-edit { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tc-btn-admin-del { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }

/* 본문 내용 */
.tc-view-content-body {
    font-size: 16.5px;
    line-height: 1.85;
    color: #cbd5e1;
    margin-bottom: 60px;
    word-break: keep-all;
    min-height: 250px;
}
.tc-view-content-body p, .tc-view-content-body div, .tc-view-content-body span {
    color: #cbd5e1 !important; /* 그누보드 에디터 하드코딩 검정색 강제 방지 */
    background-color: transparent !important;
}
.tc-view-content-body strong, .tc-view-content-body b {
    color: #ffffff !important;
}

/* 원문 아웃링크 박스 */
.tc-view-outlink-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.tc-outlink-info {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tc-outlink-info i {
    font-size: 32px;
    color: #38bdf8;
}
.tc-outlink-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.tc-outlink-desc {
    font-size: 13.5px;
    color: #94a3b8;
}
.tc-btn-outlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
}
.tc-btn-outlink:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}

/* 하단 목록 버튼 */
.tc-view-foot-bar {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.tc-btn-list-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
.tc-btn-list-large:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8 !important;
}

/* 이전/다음글 네비게이션 */
.tc-prev-next-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .tc-prev-next-nav { grid-template-columns: 1fr; }
}
.tc-nav-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}
.tc-nav-item:not(.disabled):hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-2px);
}
.tc-nav-item:not(.disabled):hover .tc-nav-subject {
    color: #38bdf8;
}
.tc-nav-dir {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}
.tc-nav-subject {
    font-size: 14.5px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}
.tc-nav-item.disabled {
    opacity: 0.4;
    cursor: default;
}
