/* =========================================================
   history.html page-only styles
   - header/footer styles excluded
   - blue theme unified
   ========================================================= */

:root {
    --history-primary: #27486b;
    --history-primary-dark: #16314f;
    --history-accent: #6d89a6;
    --history-accent-soft: #edf3f8;
    --history-text-main: #173047;
    --history-text-sub: #5b6b79;
    --history-line: rgba(22, 49, 79, 0.10);
    --history-shadow-sm: 0 12px 30px rgba(22, 49, 79, 0.07);
    --history-shadow-md: 0 18px 40px rgba(22, 49, 79, 0.10);
}

/* business 배너 글씨 크기 원복 */
.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-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.history-intro {
    max-width: 900px;
    margin: 0 auto 42px;
    text-align: center;
    color: var(--history-text-sub);
    line-height: 1.85;
    word-break: keep-all;
}

.history-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 24px;
    box-shadow: var(--history-shadow-sm);
    padding: 52px 42px;
    overflow: hidden;
}

.history-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--history-primary), var(--history-accent));
}

.history-timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 0;
}

.history-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(39, 72, 107, 0.12) 0%,
        rgba(109, 137, 166, 0.82) 50%,
        rgba(39, 72, 107, 0.12) 100%
    );
    transform: translateX(-50%);
}

.history-item {
    position: relative;
    width: 50%;
    padding: 0 34px 30px;
}

.history-item.left {
    left: 0;
}

.history-item.right {
    left: 50%;
}

.history-item::before {
    content: "";
    position: absolute;
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--history-primary), var(--history-accent));
    border: 4px solid #fff;
    box-shadow: 0 0 0 6px rgba(109, 137, 166, 0.18);
    z-index: 2;
}

.history-item.left::before {
    right: -8px;
}

.history-item.right::before {
    left: -8px;
}

.history-box {
    position: relative;
    background: #fff;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 20px;
    padding: 26px 26px 22px;
    box-shadow: 0 10px 26px rgba(36, 56, 77, 0.06);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
}

.history-box:hover {
    box-shadow: var(--history-shadow-md);
    border-color: rgba(39, 72, 107, 0.30);
}

.history-year {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--history-primary-dark);
    margin-bottom: 16px;
    letter-spacing: -0.4px;
    text-align: left;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.history-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
    color: var(--history-text-sub);
    font-size: 16px;
    line-height: 1.8;
    word-break: keep-all;
    text-align: left;
}

.history-list li:last-child {
    margin-bottom: 0;
}

.history-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--history-accent);
}

@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;
    }

    .history-panel {
        padding: 36px 22px;
        border-radius: 20px;
    }

    .history-timeline::before {
        left: 18px;
        transform: none;
    }

    .history-item,
    .history-item.left,
    .history-item.right {
        width: 100%;
        left: 0;
        padding: 0 0 24px 44px;
    }

    .history-item.left::before,
    .history-item.right::before {
        left: 10px;
        right: auto;
    }

    .history-year {
        font-size: 26px;
    }
}

@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;
    }

    .history-intro {
        margin-bottom: 34px;
        font-size: 15px;
        line-height: 1.8;
    }

    .history-panel {
        padding: 28px 16px;
        border-radius: 18px;
    }

    .history-box {
        padding: 20px 18px 18px;
        border-radius: 16px;
    }

    .history-item,
    .history-item.left,
    .history-item.right {
        padding-left: 38px;
    }

    .history-timeline::before {
        left: 15px;
    }

    .history-item.left::before,
    .history-item.right::before {
        left: 7px;
        width: 14px;
        height: 14px;
    }

    .history-year {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .history-list li {
        font-size: 15px;
        line-height: 1.75;
    }
}