.hero-section { height: 100vh; background: #111; color: white; display: flex; justify-content: center; align-items: center; font-size: 3rem; }

/* 메인 레이아웃 */
.history-section { position: relative; padding: 150px 0; min-height: 100vh; }
.container { max-width: 1300px; margin: 0 auto; flex-wrap: wrap; }
.history-flex { display: flex; position: relative; }

/* 왼쪽 섹션 */
.history-left { flex: 0 0 350px; }

.sticky-info { position: sticky; top: 150px; }

.big-year { font-size: 8rem; font-weight: 900; line-height: 0.9; color: #343a40; margin-bottom: 20px; }

.big-year span { font-size: 3.5rem; font-weight: 700; }

.period-name { font-size: 2rem; color: #0087ff; font-weight: 700; margin-bottom: 60px; }

/* 탭 메뉴 */
.history-tabs ul { list-style: none; }
.tab-btn { background: none; border: none; display: block; font-size: 2.5rem; font-weight: 700; color: #ccc; padding: 10px 0; cursor: pointer; transition: 0.3s; text-align: left; }

.tab-btn.active { color: #0087ff; }

/* 중앙 타임라인 선 */
/* .timeline-line { position: absolute; left: 450px; top: 0; width: 2px; height: 100%; background-color: #00bcd4; opacity: 0.3; } */

/* 오른쪽 섹션 */
.history-right { flex: 1; padding-left:100px; }

.tab-content { display: none; animation: fadeInUp 0.5s ease-out; border-left:1px solid #0087ff; padding-left: 100px; margin-bottom: 30px; }
.tab-content.active { display: block; }
.root_daum_roughmap { width:100% !important; }
.summary { font-size: 1.8rem; font-weight: 500; color: #444; margin-bottom: 80px; line-height: 1.4; max-width: 600px; }

.year-block { position: relative; margin-bottom: 80px; }

/* 타임라인 포인트 점 */
.out-circle { position: absolute; left: -113px; width: 24px; height: 24px; padding:5px; background-color:#0088ff50; border-radius: 50%; z-index: 2; }
.inner-circle { background-color:#0087ff; border-radius: 14px; width:14px; height: 14px; }
.sub-year { font-size: 2.4rem; color:#0087ff; font-weight: 700; margin-bottom: 25px; }
/* color: #00bcd4; */
.events { list-style: none; }
.events li { font-size: 1.5rem; margin-bottom: 15px; display: flex; color: #555; }

.events li strong { margin-right: 15px; color: #333; font-weight: 400; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 반응형 모바일 */

@media (max-width: 1024px){
    .history-section { padding: 110px 0; }
    .container { padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
    .history-flex { flex-direction: column; }
    .history-left { flex: 1 1 auto; margin-bottom: 24px; }
    .sticky-info { position: static; top: auto; }
    .big-year { font-size: clamp(56px, 10vw, 96px); margin-bottom: 12px; }
    .big-year span { font-size: clamp(22px, 4vw, 40px); }
    .period-name { font-size: clamp(18px, 3vw, 28px); margin-bottom: 18px; }

    .history-tabs { max-width: 100%; overflow: hidden; }
    .history-tabs ul { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .history-tabs ul::-webkit-scrollbar { display: none; }
    .history-tabs li { flex: 0 0 auto; }
    .tab-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 0; max-width: 100%; padding: 8px 14px; border: 1px solid #e6e6e6; border-radius: 999px; background: #f5f5f5; color: #666; font-size: 14px; line-height: 1.2; white-space: nowrap; text-align: center; }
    .tab-btn.active { background: #111; border-color: #111; color: #fff; }

    .history-right { padding-left: 0; }
    .tab-content { border-left: 1px solid #0087ff; padding-left: 70px; margin-bottom: 24px; }
    .out-circle { left: -83px; }
    .summary { font-size: 1.05rem; margin-bottom: 32px; max-width: 100%; }
    .sub-year { font-size: clamp(26px, 4vw, 34px); margin-bottom: 18px; }
    .events li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 1rem; line-height: 1.6; margin-bottom: 12px; }
    .events li strong { margin-right: 0; }
}

/* ---------- Mobile (<= 768px) ---------- */
@media (max-width: 768px){
    .history-section { padding: 92px 0; }
    .container { padding-left: 16px; padding-right: 16px; }
    .big-year { font-size: clamp(44px, 12vw, 72px); line-height: 0.95; }
    .big-year span { font-size: clamp(18px, 5vw, 28px); }
    .period-name { font-size: 18px; margin-bottom: 16px; }
    .history-tabs ul { gap: 6px; padding-bottom: 4px; }
    .tab-btn { padding: 7px 12px; font-size: 13px; }
    .tab-content { padding-left: 60px; }
    .out-circle { left: -73px; }
    .summary { font-size: 1rem; margin-bottom: 26px; }
    .sub-year { font-size: 22px; margin-bottom: 14px; }
    .events li { font-size: 15px; margin-bottom: 10px; }
}

/* ---------- Small Mobile (<= 480px) ---------- */
@media (max-width: 480px){
    .history-section { padding: 80px 0; }
    .container { padding-left: 12px; padding-right: 12px; }
    .big-year { font-size: 40px; }
    .big-year span { font-size: 16px; }
    .period-name { font-size: 16px; }
    .history-tabs ul { gap: 6px; }
    .tab-btn { padding: 6px 10px; font-size: 12px; }
    .tab-content { padding-left: 50px; }
    .out-circle { left: -63px; }
    .sub-year { font-size: 20px; }
    .events li { font-size: 14px; line-height: 1.5; }
}
