/* works.html page-only styles */
body.theme-business {
    --primary: #355c7d;
    --primary-dark: #24384d;
    --accent: #5f88ad;
    --accent-soft: #edf4fa;
    --text-main: #1b2430;
    --text-sub: #5f6b7a;
    --line: #d9e2ec;
    --bg-soft: #f7f9fc;
    --bg-card: rgba(255, 255, 255, 0.96);
    --shadow-sm: 0 12px 30px rgba(36, 56, 77, 0.08);
    --shadow-md: 0 18px 40px rgba(36, 56, 77, 0.12);
}

/* history 배너 구조에 맞춘 works 전용 배너 정리 */
.banner_area .banner_inner .banner_content {
    margin-top: 85px;
}

.banner_area .section-head-square {
    width: 200px;
    padding: 3rem 0 3rem 3rem;
}

.banner_area .section-head-square > .head-title,
.banner_area .banner_inner .banner_content h2,
.banner_area .head-title {
    width: 640px;
    font-size: 28px !important;
    line-height: 1.45 !important;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 0;
}

/* history 페이지와 비슷한 제목/섹션 구조, 컬러는 works 기존 톤 유지 */
.works-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.section-title.works-theme,
.works-table-head h3,
.year-panel-head h3,
.placeholder-copy h3 {
    color: var(--primary-dark);
}

.title-line.works-theme {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.works-intro {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 42px;
    color: var(--text-sub);
    line-height: 1.9;
    word-break: keep-all;
}

.works-image-placeholder {
    position: relative;
    min-height: 390px;
    border-radius: 30px;
    border: 1px solid rgba(217, 226, 236, 0.9);
    background: linear-gradient(135deg, rgba(244, 248, 251, 0.98), rgba(238, 244, 247, 0.94));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 42px;
    margin-bottom: 34px;
}

.works-image-placeholder::before,
.works-image-placeholder::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(95, 136, 173, 0.12);
    pointer-events: none;
}

.works-image-placeholder::before {
    width: 220px;
    height: 220px;
    right: -10px;
    top: -10px;
}

.works-image-placeholder::after {
    width: 190px;
    height: 190px;
    left: -30px;
    bottom: -40px;
}

.placeholder-inner {
    position: relative;
    z-index: 1;
    min-height: 304px;
    border: 1px dashed #bfcdd6;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.45);
}

.placeholder-copy h3 {
    font-size: 28px;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.placeholder-copy p {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.85;
    margin-bottom: 0;
}

.works-view-switch {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 0 auto 24px;
    flex-wrap: wrap;
}

.view-switch-btn {
    border: 1px solid rgba(217, 226, 236, 0.85);
    background: #fff;
    color: var(--primary-dark);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 8px 20px rgba(20, 39, 78, 0.06);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
}

.view-switch-btn.active,
.view-switch-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
}

.year-filter-box {
    display: none;
    margin-bottom: 24px;
}

.year-filter-box.active {
    display: block;
}

.year-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.year-chip {
    border: 1px solid rgba(217, 226, 236, 0.84);
    background: #fff;
    color: var(--text-main);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
}

.year-chip.active,
.year-chip:hover {
    background: var(--accent-soft);
    color: var(--primary);
    border-color: rgba(95, 136, 173, 0.35);
}

.works-table-card,
.year-panel {
    background: var(--bg-card);
    border: 1px solid rgba(217, 226, 236, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.works-table-card::before,
.year-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.works-table-head,
.year-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 28px 20px;
    border-bottom: 1px solid rgba(217, 226, 236, 0.7);
}

.works-table-head h3,
.year-panel-head h3 {
    font-size: 24px;
    margin-bottom: 0;
}

.works-table-head span,
.year-panel-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.works-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.works-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.works-table thead th {
    background: #f4f8fb;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 800;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(217, 226, 236, 0.9);
    white-space: nowrap;
}

.works-table tbody td {
    padding: 17px 20px;
    border-bottom: 1px solid rgba(223, 231, 243, 0.72);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.75;
    vertical-align: top;
    background: #fff;
}

.works-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.works-table tbody tr:hover td {
    background: #f2f7fb;
}

.works-table tbody td:first-child {
    width: 20%;
    font-weight: 800;
    color: var(--primary-dark);
    white-space: nowrap;
}

.works-table tbody td:nth-child(2) {
    width: 58%;
}

.works-table tbody td:last-child {
    width: 22%;
    color: var(--text-sub);
    white-space: nowrap;
}

.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
}

.year-panel {
    display: none;
}

.year-panel.active {
    display: block;
}

@media (max-width: 991px) {
    .banner_area .section-head-square > .head-title,
    .banner_area .banner_inner .banner_content h2,
    .banner_area .head-title {
        width: 100%;
        font-size: 24px !important;
        line-height: 1.45 !important;
    }

    .works-image-placeholder {
        min-height: 330px;
        padding: 28px;
    }

    .placeholder-copy h3 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .banner_area .section-head-square {
        width: 160px;
        padding: 2rem 0 2rem 2rem;
        margin: 0 auto;
    }

    .banner_area .section-head-square > .head-title,
    .banner_area .banner_inner .banner_content h2,
    .banner_area .head-title {
        width: 100%;
        font-size: 20px !important;
        line-height: 1.5 !important;
    }

    .works-image-placeholder {
        min-height: 280px;
        padding: 18px;
        border-radius: 22px;
    }

    .placeholder-inner {
        min-height: 220px;
        padding: 22px 16px;
        border-radius: 20px;
    }

    .placeholder-copy h3 {
        font-size: 22px;
    }

    .placeholder-copy p {
        font-size: 15px;
    }

    .works-table-head,
    .year-panel-head {
        padding: 22px 18px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .works-table-head h3,
    .year-panel-head h3 {
        font-size: 20px;
    }
}