@charset "utf-8";

/* [About 전용 배경 이미지] */
.sub-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/background.jpg');
}

/* =========================================
   회사소개(About) 페이지 고유 스타일
   ========================================= */
/* [탭 1: CEO 인사말] */
.ceo-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 20px 0;
}

.ceo-img {
    flex: 0 0 30%;
    position: relative;
}

.ceo-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.05);
}

.ceo-text {
    flex: 1;
    padding-top: 10px;
}

.ceo-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #0056b3;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.ceo-text .sub-title {
    font-size: 28px;
    line-height: 1.4;
    color: #111;
    font-weight: 700;
    margin-bottom: 40px;
    word-break: keep-all;
}

.ceo-message p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    word-break: keep-all;
}

.ceo-message strong {
    color: #0056b3;
    font-weight: 600;
}

.signature {
    margin-top: 50px;
    font-size: 18px;
    color: #333;
}

.signature strong {
    font-size: 22px;
    color: #000;
    margin-left: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .ceo-wrap {
        flex-direction: column;
        gap: 40px;
    }

    .ceo-img {
        width: 100%;
        flex: none;
    }

    .ceo-img img {
        box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.05);
    }

    .ceo-text .sub-title {
        font-size: 22px;
    }
}

/* [탭 2: 연혁] */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.tl-year {
    width: 140px;
    text-align: right;
    padding-right: 30px;
    font-weight: 700;
    color: #0056b3;
    font-size: 18px;
}

.tl-year::after {
    content: '';
    position: absolute;
    left: 134px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid #0056b3;
    border-radius: 50%;
    margin-top: 5px;
}

.tl-content {
    flex: 1;
    padding-left: 30px;
    text-align: left;
}

.tl-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.tl-content p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .tl-year {
        width: 100%;
        text-align: left;
        padding-left: 40px;
        margin-bottom: 5px;
    }

    .tl-year::after {
        left: 14px;
    }

    .tl-content {
        padding-left: 40px;
    }
}

/* [탭 3: 조직도] */
.org-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 50px;
}

.org-container h2 {
    font-size: 36px;
    margin-bottom: 60px;
    color: #111;
}

.tree {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.tree ul {
    position: relative;
    padding-top: 30px;
    transition: all 0.5s;
    white-space: nowrap;
    display: flex;
    justify-content: center;
}

.tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 30px 10px 0 10px;
    transition: all 0.5s;
}

.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 1px solid #ccc;
    width: 50%;
    height: 30px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 1px solid #ccc;
}

.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
    border: 0 none;
}

.tree li:last-child::before {
    border-right: 1px solid #ccc;
    border-radius: 0;
}

.tree li:first-child::after {
    border-radius: 0;
}

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid #ccc;
    width: 0;
    height: 30px;
}

.tree .node {
    display: inline-block;
    padding: 15px 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    min-width: 110px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.tree .node.ceo::after,
.tree .node.dept::before,
.tree .node.team::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 5;
}

.tree .node.ceo {
    background-color: #fff;
    color: #0056b3;
    border: 2px solid #0056b3;
    font-size: 20px;
    padding: 20px 50px;
    min-width: 200px;
}

.tree .node.ceo::after {
    bottom: -16px;
}

.tree .node.dept {
    background-color: #1a2b41;
    color: #fff;
    font-size: 18px;
    padding: 18px 36px;
    border-radius: 0;
}

.tree .node.dept::before {
    top: -16px;
}

.tree .node.team {
    background-color: #fff;
    color: #333;
    border: 1px solid #eee;
    border-top: 3px solid #0056b3;
    border-radius: 0;
}

.tree .node.team::before {
    top: -16px;
}

.tree .node.leaf {
    background-color: #f8f9fa;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    padding: 10px 5px;
    min-width: 100px;
}

.tree .node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

@media (max-width: 1024px) {
    .org-container {
        width: 100%;
        overflow-x: auto;
    }

    .tree {
        width: fit-content;
        padding: 0 20px 50px;
        margin: 0 auto;
    }
}

/* [탭 4: 재무 개요] */
.finance-badge {
    margin-bottom: 50px;
    background: #fff;
    display: inline-block;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.finance-badge span {
    margin: 0 20px;
    font-size: 18px;
    color: #333;
}

.finance-badge .divider {
    width: 1px;
    height: 15px;
    background: #ddd;
    display: inline-block;
    margin: 0;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 300px;
    gap: 40px;
    margin-top: 70px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: #cbd5e1;
    border-radius: 5px 5px 0 0;
    position: relative;
    animation: growBar 1s ease-out forwards;
}

.bar.active {
    background: #3b82f6;
}

.bar span {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.year {
    margin-top: 15px;
    font-weight: 700;
    color: #555;
}

@keyframes growBar {
    from {
        height: 0;
    }
}