.tab-container-round {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 3. 탭 버튼 기본 스타일 */
.tab-btn {
    padding: 12px 45px;
    /* 가로 길이를 충분히 확보 */
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 4. 마우스 올렸을 때 */
.tab-btn:hover {
    color: #1a375f;
}

/* 활성화된 버튼 : 흰색 배경에 그림자 효과로 튀어나온 느낌 */
/* 5. 활성화된 버튼 (흰색 알약 모양) */
.tab-btn.active {
    background: #ffffff !important;
    /* 배경 흰색 */
    color: #1a375f !important;
    /* 텍스트 남색 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    /* 튀어나온 듯한 그림자 */
}

/* 탭 버튼 스타일 (알약 모양) */
.tab-container-round .tab-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.tab-container-round .tab-btn.active {
    background: #fff;
    color: #1a375f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* ==========================================
   TAB MENU SYSTEM (알약 모양 탭 메뉴)
   ========================================== */
.tab-outer-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

/* 탭 컨테이너 : 연회색 배경에 둥근 알약 형태 */
/* 탭 컨테이너 (회색 둥근 박스) */
.tab-container-round {
    display: flex;
    background: #f1f5f9;
    /* 연한 회색 배경 */
    padding: 6px;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    /* 안쪽으로 살짝 들어간 느낌 / 안쪽 그림자로 입체감 */
}

/* 탭 버튼 기본 스타일 */
.tab-btn {
    padding: 12px 45px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 16px;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #fff;
    color: #1a375f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 탭 콘텐츠 전환 애니메이션*/
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
    /* 서서히 나타나는 효과 */
}

.greeting-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.greeting-text {
    flex: 1;
}

.greeting-text h2 {
    font-size: 32px;
    color: #1a375f;
    margin-bottom: 30px;
    line-height: 1.4;
}

.greeting-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.greeting-image {
    flex: 1;
    background: #1a375f;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    border-radius: 4px;
}


/* ==========================================
   COMPANY OVERVIEW (회사 개요 테이블)
   ========================================== */
.overview-card {
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.overview-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.overview-header h3 {
    font-size: 26px;
    line-height: 1.2;
    color: #1a375f;
}

.overview-header h3 span {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.overview-header span {
    display: block;
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

.overview-icon {
    width: 65px;
    height: 65px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.overview-icon i {
    font-size: 24px;
    color: #1a375f;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table tr {
    border-bottom: 1px solid #eee;
}


.overview-table th {
    width: 150px;
    text-align: left;
    padding: 20px 0;
    color: #1a375f;
    font-size: 18px;
    font-weight: 700;
}

.overview-table td {
    padding: 20px 0;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}


/* ==========================================
   COMPANY HISTORY (연혁 타임라인)
   ========================================== */
.history-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

/* 세로 줄 (타임라인 메인 선) */
.history-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

/* 연도별 그룹 및 도트(점) */
.history-group {
    position: relative;
    margin-bottom: 60px;
}

.history-dot {
    position: absolute;
    left: 26px;
    /* 선 위에 정확히 위치 */
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a375f;
    z-index: 2;
}

.history-year-label {
    margin-left: 60px;
    display: inline-block;
    padding: 5px 20px;
    background: #f1f5f9;
    border-radius: 20px;
    font-weight: 700;
    color: #1a375f;
    font-size: 18px;
    margin-bottom: 20px;
}

.year-mini {
    font-weight: 700;
    color: #1a375f;
    min-width: 50px;
    font-size: 16px;
}

/* 개인 연혁 카드 */
.comp-history-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease;
}

.comp-history-item {
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
}



.comp-history-item .year-mini {
    font-weight: 700;
    color: #1a375f;
    min-width: 50px;
    font-size: 16px;
}

.comp-history-item .content-mini {
    color: #444;
    line-height: 1.6;
    font-size: 16px;
}

.comp-history-item .content-mini span {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .comp-history-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

.location-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.location-card {
    background: #fff;
    flex: 1;
    min-width: 450px;
    max-width: 550px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}


/* 지도 영역 (하늘색 박스 대체) */
.map-area {
    width: 100%;
    background: #eef6ff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.location-info-bottom {
    font-size: 15px;
    color: #555;
}

.location-info-bottom strong {
    color: #1a375f;
    margin-right: 5px;
}

.esg-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: none;
    color: #333;
}


/* ==========================================
   ESG MANAGEMENT (ESG 경영 카드)
   ========================================== */
.esg-card-section {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.esg-card {
    flex: 1;
    background: #fff;
    padding: 40px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
}

/* 카드별 상징색 지정 (환경:녹색, 사회:주황, 지배구조:회색) */
.card-icon {
    font-size: 45px;
    margin-bottom: 20px;
    color: #7cb342;
}

.esg-card:nth-child(2) .card-icon {
    color: #ffa000;
}

.esg-card:nth-child(3) .card-icon {
    color: #546e7a;
}


.eng-label {
    display: block;
    color: #2196f3;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.esg-card h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1a375f;
}

.esg-list {
    text-align: left;
    padding: 0;
    list-style: none;
    margin: 0;
}

.esg-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    font-size: 14.5px;
    color: #555;
    line-height: 1.4;
}

.esg-list li::before {
    content: "•";
    color: #2196f3;
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 900px) {
    .esg-card-section {
        flex-direction: column;
    }
}

.whistleblower-section {
    margin-bottom: 40px;
}

.wb-box {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.wb-header i {
    font-size: 24px;
    color: #444;
}

.wb-header h3 {
    font-size: 20px;
    margin: 0;
}

.wb-header span {
    color: #888;
    font-size: 14px;
}

/* 내부신고자 제도 (2단 그리드 레이아웃) */
.wb-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wb-item strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.wb-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}



/* 하단 배너 */
.esg-bottom-banner {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.esg-bottom-banner strong {
    color: #005aab;
}


/* ==========================================
   RESPONSIVE (반응형 설정)
   ========================================== */
@media (max-width: 900px) {
    .wb-content {
        grid-template-columns: 1fr;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width:768px) {

    /* 1. 탭 전체 컨테이너 */
    .tab-outer-wrapper {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        /* 항상 중앙 정렬 시도 */
        padding: 0 10px !important;
        margin-bottom: 30px !important;
    }

    /* 2. 알약 모양 바 (중복 제거 및 통합) */
    .tab-container-round {
        display: inline-flex !important;
        /* 내용물만큼만 너비 가짐 */
        min-width: min-content !important;
        max-width: 100% !important;
        background: #f1f5f9 !important;
        padding: 5px !important;
        border-radius: 50px !important;
        gap: 4px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        scrollbar-width: none;
        /* 메뉴가 많아지면 자연스럽게 왼쪽 정렬로 전환되도록 함 */
        margin: 30px  auto !important;
    }

    /* 3. 탭 버튼 스타일 통합 */
    .tab-container-round .tab-btn {
        padding: 8px 16px !important;
        /* 가로폭을 적절히 유지 (너무 좁지 않게) */
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 40px !important;
        flex: 0 0 auto !important;
        /* 너비 고정 유지 */
        line-height: 1 !important;
        border: none !important;
        background: transparent;
        color: #64748b;
        transition: all 0.3s ease;
    }

    /* 활성화 상태 */
    .tab-container-round .tab-btn.active {
        background: #ffffff !important;
        color: #1a375f !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* 스크롤바 숨기기 */
    .tab-container-round::-webkit-scrollbar {
        display: none !important;
    }

    /* 인사말 */
    .greeting-content {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .greeting-text h2 {
        font-size: 24px !important;
        word-break: keep-all;
        line-height: 1.4;
        margin: 0 auto 25px auto !important;
    }

    .greeting-text p {
        font-size: 15px !important;
        word-break: keep-all;
        margin: 0 27px 25px !important;
    }

    .greeting-image-long {
        order: -1;
        width: 85%;
        margin: 0 auto 25px auto !important;
        min-height: auto !important;
        height: 220px;
        border-radius: 10px;
        overflow: hidden;
    }

    .greeting-image-long img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .greeting-text {
        padding: 0 20px;
    }

    .greeting-text h2 {
        font-size: 22px !important;
        word-break: keep-all;
        text-align: center;
    }

    .greeting-text p {
        font-size: 15px !important;
        word-break: keep-all;
        text-align: center;
    }

    .ceo-sign-left {
        text-align: center !important;
        margin-top: 30px;
    }

    .overview-header h3 {
        font-size: 20px;
    }

    /* 3. 회사개요 테이블 최적화 */
    .overview-card {
        width: 95% !important;
        padding: 30px 20px !important;
        margin: 0 auto !important;
    }

    .overview-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px !important;
    }

    .overview-table th {
        width: 90px !important;
        /* 제목 영역 축소 */
        font-size: 14px !important;
        padding: 15px 5px !important;
    }

    .overview-table td {
        font-size: 14px !important;
        padding: 15px 0 !important;
        word-break: keep-all;
    }

    /* 4. 회사 연혁 최적화 */
    #tab-3 .overview-card {
        width: 95% !important;
        padding: 30px 15px !important;
    }

    .history-container::before {
        left: 15px !important;
        /* 세로선 왼쪽으로 밀기 */
    }

    .history-dot {
        left: 11px !important;
    }

    .history-year-label {
        margin-left: 40px !important;
        font-size: 16px !important;
    }

    .comp-history-item {
        margin-left: 35px !important;
        /* 선과의 간격 조정 */
        padding: 15px !important;
        flex-direction: column !important;
        /* 연도와 내용을 위아래로 */
        gap: 8px !important;
    }

    .comp-history-item .year-mini {
        font-size: 15px !important;
    }

    .comp-history-item .content-mini {
        font-size: 14px !important;
    }

    /* 오시는 길 전체 컨테이너 여백 확보 */
    .location-container-horizontal {
        flex-direction: column !important;
        /* 가로 배열을 세로로 */
        align-items: center !important;
        gap: 30px !important;
        padding: 0 !important;
    }

    .location-card {
        width: 90% !important;
        /* 앞선 탭들과 동일한 폭 */
        min-width: unset !important;
        /* 450px 강제 설정 해제 */
        max-width: none !important;
        margin: 0 auto !important;
        padding: 25px 20px !important;
        /* 내부 여백 최적화 */
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    }

    /* 2. 제목 및 텍스트 정렬 */
    .location-title h3 {
        font-size: 19px !important;
        margin-bottom: 8px !important;
    }

    .location-title p {
        font-size: 14px !important;
        line-height: 1.4;
        word-break: keep-all;
    }

    /* 3. 지도 영역: 비율에 맞춰 높이 조절 */
    .map-area {
        height: 250px !important;
        /* 모바일에서 적당한 지도 높이 */
        margin: 15px 0 !important;
    }

    .map-area img {
        height: 250px !important;
        /* 카카오맵 정적 이미지 높이 조절 */
    }

    /* 4. 하단 연락처 정보 */
    .location-card>p {
        font-size: 14px !important;
        margin-top: 15px !important;
        text-align: right;
        /* 전화번호는 오른쪽 정렬로 포인트 */
    }



    /* 2. ESG 경영 (tab-5) 카드 섹션 */
    .esg-content-container {
        padding: 0 15px !important;
    }

    .esg-card-section {
        flex-direction: column !important;
        /* 3단 배열 -> 1단 배열 */
        gap: 15px !important;
    }

    .esg-card {
        width: 95% !important;
        margin: 0 auto !important;
        padding: 30px 20px !important;
    }

    .esg-list li {
        font-size: 14px !important;
        /* 글자 크기 살짝 축소 */
    }

    /* 3. 내부신고자 제도 (그리드 레이아웃) */
    .wb-box {
        padding: 25px 20px !important;
    }

    .wb-content {
        grid-template-columns: 1fr !important;
        /* 2열 -> 1열 */
        gap: 15px !important;
    }

    .wb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .wb-header h3 {
        font-size: 18px !important;
    }

    .tab-content, 
    .greeting-content, 
    .overview-card, 
    .history-container, 
    .location-wrapper, 
    .esg-content-container,
    .wb-box {
        margin-bottom: 60px !important; /* 푸터와의 간격을 60px로 강제 확보 */
    }




   
}