/* ==========================================================================
   Insights — 인사이트/기술 블로그
   ========================================================================== */

/* 목록 페이지 */
.insights {
    padding: 80px 0 100px;
    background: var(--bg-light, #f7f8fc);
}

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

/* 카드 */
a.insight-card {
    display: flex;
    flex-direction: column;
    background: var(--white, #fff);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.insight-card-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.insight-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

a.insight-card:hover .insight-card-cover img {
    transform: scale(1.05);
}

.insight-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary, #4361ee);
}

.insight-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-card-date {
    font-size: 0.78rem;
    color: var(--text-light, #999);
    margin-bottom: 0.4rem;
}

.insight-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.insight-card-body p {
    font-size: 0.88rem;
    color: var(--text-light, #666);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.insight-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.insight-card-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary, #4361ee);
    font-weight: 600;
}

/* ── 상세 페이지 ── */
.insight-article {
    padding: 100px 0 80px;
}

.insight-article .container {
    max-width: 800px;
}

.insight-header {
    margin-bottom: 2rem;
}

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

.insight-category {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary, #4361ee);
}

.insight-meta time {
    font-size: 0.85rem;
    color: var(--text-light, #999);
}

.insight-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark, #1a1a2e);
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.insight-summary {
    font-size: 1.1rem;
    color: var(--text-light, #666);
    line-height: 1.6;
}

.insight-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.insight-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 본문 스타일 */
.insight-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark, #333);
}

.insight-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(67, 97, 238, 0.15);
}

.insight-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.insight-body p {
    margin: 0 0 1.25rem;
}

.insight-body ul, .insight-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.insight-body li {
    margin-bottom: 0.5rem;
}

.insight-body blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary, #4361ee);
    background: rgba(67, 97, 238, 0.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-dark, #444);
}

.insight-body code {
    padding: 0.15rem 0.4rem;
    background: #f1f3f5;
    border-radius: 4px;
    font-size: 0.9em;
}

.insight-body pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.insight-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.insight-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.insight-body th, .insight-body td {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.insight-body th {
    background: #f7f8fc;
    font-weight: 700;
}

.insight-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.insight-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

/* 반응형 */
@media (max-width: 1024px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-header h1 {
        font-size: 1.6rem;
    }

    .insight-body {
        font-size: 1rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   고객사 로고 슬라이더 (인사이트 본문 내 사용)
   ══════════════════════════════════════════════════════════════════════════ */

.client-showcase {
    margin: 3rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
    overflow: hidden;
}

.client-showcase h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light, #999);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.client-slider {
    display: flex;
    gap: 0;
    animation: clientScroll 25s linear infinite;
    width: max-content;
}

.client-slider:hover {
    animation-play-state: paused;
}

.client-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark, #333);
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-item:hover {
    opacity: 1;
}

.client-item::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    margin-left: 2.5rem;
}

.client-item:last-child::after {
    display: none;
}

@keyframes clientScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .client-item {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }
}
