/* ══════════ 지식센터 PAGE ══════════ */

/* ── 구축사례 카드 ── */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.kc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}

.kc-card:hover {
    border-color: rgba(91,141,238,0.3);
    transform: translateY(-3px);
}

.kc-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg2);
}

.kc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kc-body {
    padding: 1.2rem;
}

.kc-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.kc-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.kc-date {
    font-size: 0.82rem;
    color: var(--muted);
}

.kc-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.kc-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── 정기간행물 ── */


.journal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.journal-table thead tr {
    background: rgba(91,141,238,0.07);
    border-top: 1px solid rgba(91,141,238,0.3);
    border-bottom: 1px solid rgba(91,141,238,0.3);
}

.journal-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #5b8dee;
}

.journal-table th:first-child { width: 60px; text-align: center; }
.journal-table th:nth-child(3),
.journal-table th:nth-child(4) { width: 90px; text-align: center; }

.journal-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.journal-table tbody tr:last-child { border-bottom: none; }

.journal-table tbody tr:hover {
    background: rgba(91,141,238,0.04);
}

.journal-table td {
    padding: 0.85rem 1rem;
    color: var(--muted);
    vertical-align: middle;
    font-size: 1rem;
}

.journal-table td:first-child {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    opacity: 0.9;
}

.journal-table td:nth-child(3),
.journal-table td:nth-child(4) {
    text-align: center;
    font-size: 0.8rem;
}

.journal-table td:nth-child(4) {
    color: rgba(107, 135, 168, 0.7);
}

.journal-table tbody td a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color .2s;
}

.journal-table tbody td a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(91,141,238,0.5);
    flex-shrink: 0;
}

.journal-table tbody tr:first-child td a::before {
    background: #5b8dee;
    box-shadow: 0 0 6px rgba(91,141,238,0.6);
}

.journal-table tbody tr:first-child td a {
    color: #e8f1fc;
    font-weight: 600;
}

.journal-table tbody td a:hover {
    color: #5b8dee;
}

.journal-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--muted);
}

.journal-more .btn-s {
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

/* ══════════ 지식센터 PAGE ══════════ */
.knowledge-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 1.2rem;
}

.kc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    cursor: pointer;
}

.kc-card:hover {
    border-color: rgba(91,141,238,0.3);
    transform: translateY(-3px);
}

.kc-thumb {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
}

.kc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s;
}

.kc-card:hover .kc-thumb img {
    transform: scale(1.04);
}

.kc-thumb.t1 {
    background: linear-gradient(135deg, rgba(91, 141, 238, 0.15), rgba(129, 140, 248, 0.1));
}

.kc-thumb.t2 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(91, 141, 238, 0.1));
}

.kc-thumb.t3 {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.12), rgba(236, 72, 153, 0.08));
}

.kc-body {
    padding: 0.7rem 0.9rem;
}

.kc-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.kc-tag {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(91, 141, 238, 0.1);
    color: #5b8dee;
}

.kc-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.kc-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.kc-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ══════════ 정기간행물 ══════════ */
.journal-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.journal-latest {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(91,141,238,0.08), rgba(129,140,248,0.06));
    border: 1px solid rgba(91,141,238,0.2);
    border-radius: 12px;
    padding: 1rem 1.4rem;
}

.journal-latest-badge {
    font-size: 0.95rem !important;
    flex-shrink: 0;
    background: linear-gradient(135deg, #059669, #0ea5e9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.journal-latest-info {
    flex: 1;
}

.journal-latest-num {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.journal-latest-date {
    font-size: 1rem;
    color: var(--muted);
}

.journal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.journal-table thead tr {
    border-bottom: 1px solid var(--border);
}

.journal-table th {
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.journal-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--fg);
}

.journal-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.journal-table td:first-child {
    color: var(--muted);
    font-size: 0.8rem;
    width: 60px;
}

.journal-table td:nth-child(3),
.journal-table td:nth-child(4) {
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.journal-table a {
    color: var(--fg);
    text-decoration: none;
    transition: color .15s;
}

.journal-table a:hover {
    color: #5b8dee;
}

.journal-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ══════════ 비디오 ══════════ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.video-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}

.video-card:hover {
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-3px);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f172a;
}

.video-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.video-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(91,141,238,0.1);
    color: #5b8dee;
    width: fit-content;
}

.video-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.video-date {
    font-size: 0.82rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .journal-latest {
        flex-wrap: wrap;
    }
}

