* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-link {
    color: rgba(0, 0, 0, 0.5);
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(0, 0, 0, 0.7);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 844px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: #333;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.5;
    margin-bottom: 40px;
}

.hero-banner {
    width: 100%;
    height: 400px;
    background: url('./img/main_banner.png') center/cover no-repeat;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 60px;
    color: #333;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.about-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 32px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.card-description {
    color: #828282;
    font-size: 1rem;
    line-height: 1.6;
}

/* History Section */
.history {
    padding: 100px 0;
    background: #f8f9fa;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.timeline-description {
    color: #828282;
    font-size: 1rem;
    line-height: 1.5;
}

.history-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
}

.show-more {
    text-align: center;
    margin-top: 60px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: #e6e6e6;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #d4d4d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e6e6e6;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: #333;
}

.footer-info {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-contact {
    font-size: 1rem;
    color: #333;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.social-link img {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .history-content {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        padding: 60px 0;
    }

    .about {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-card img {
        height: 200px;
    }

    .card-content {
        padding: 24px;
    }

    .history {
        padding: 80px 0;
    }

    .history-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-item {
        padding: 20px;
    }

    .footer {
        padding: 40px 0;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-banner {
        height: 250px;
    }

    .about {
        padding: 60px 0;
    }

    .history {
        padding: 60px 0;
    }

    .timeline {
        gap: 20px;
    }

    .timeline-item {
        padding: 16px;
    }

    .card-content {
        padding: 20px;
    }

    .footer {
        padding: 30px 0;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


.tab-container,
.main-title,
.main-desc,
.record-tabs,
.record-tab-content {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.record-tab-content-title {
    background: #fafafa;
    border: 3px solid #e5e5e5;
    border-radius: 6px;
    max-width: 97.3%;
    margin: 28px auto 0 auto;
    text-align: center;
    padding: 28px 14px 26px 14px;
    color: #888;
    font-size: 17px;
    box-sizing: border-box;
    line-height: 1.9;
}

.record-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.record-tab {
    flex: 1 1 0;
    padding: 10px 0;
    border: 1.5px solid #dedede;
    border-radius: 0;
    background: #fff;
    color: #262626;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    outline: none;
    border-right: none;
}

.record-tab:last-child {
    border-right: 1.5px solid #dedede;
}

.record-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.main-title {

    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 40px;
    letter-spacing: 0.02em;
}

.main-desc {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 32px;
}

.record-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.record-tab {
    padding: 10px 32px;
    border: 1.5px solid #dedede;
    border-radius: 18px;
    background: #fff;
    color: #262626;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    outline: none;
}

.record-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* 탭 내용 */
.timeline-container {
    position: relative;
    margin: 48px auto 0 auto;
    max-width: 1200px;
    padding: 0 12px 40px 12px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    /* 폭을 30px로 늘림 */
    background: #cfd8dc;
    height: 100%;
    z-index: 0;
    margin: 0px 20px 0px 20px;
}

.timeline-event {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

.timeline-event.left {
    left: -10px;
    align-items: flex-end;
    text-align: right;
}

.timeline-event.right {
    left: 51%;
    align-items: flex-start;
    text-align: left;
}

.timeline-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(40, 40, 40, 0.12);
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.timeline-img {

    width: 144px;
    height: 144px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(120, 120, 120, 0.06);
    margin-bottom: 12px;
}

.timeline-date {
    font-size: 15px;
    font-weight: 600;
    color: #558db0;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
    letter-spacing: -0.02em;
}

.timeline-desc {
    font-size: 14px;
    color: #595959;
}

.timeline-dot {
    position: absolute;
    top: 28px;
    left: 102%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #6ea8c0;
    z-index: 2;
}

.timeline-event.left .timeline-dot {
    right: -9px;
}

.timeline-event.right .timeline-dot {
    left: -9px;
}

@media (max-width: 800px) {
    .timeline-container {
        max-width: 98vw;
    }

    .timeline-event,
    .timeline-event.left,
    .timeline-event.right {
        width: 100%;
        left: 0 !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: -10px !important;
        right: auto !important;
    }

    .timeline-line {
        width: 18px;
        /* 모바일에서는 좀 더 폭을 줄일 수 있으면 조정 */
    }
}

.publication-layout {
    max-width: 1440px;
    margin: 40px auto;
    padding: 0 20px;
}

.publication-top-line {
    height: 3px;
    background: #1a5f7a;
    width: 100%;
    margin-bottom: 60px;
}

.publication-blocks {
    display: grid;
    grid-template-columns: 1fr 7fr;
    gap: 60px;
    background: transparent;
    padding: 0;
}

.publication-left-block {
    /* background: #20b2aa; */
    max-height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 14px;
}

.publication-year {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 35px;
    font-weight: 700;
    color: #000;
}

.publication-left-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* grid-template-rows: repeat(2, 1fr); */
    gap: 60px;
}

.publication-grid-item {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.publication-grid-top {
    background: #fafafa;
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 5px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.publication-grid-top img {
    height: 120px;
}

.publication-grid-bottom {
    background: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: #333;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    max-height: 75px;
}

@media (max-width: 768px) {
    .publication-blocks {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .publication-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 40px;
    }
}

/* 팝업 박스 수정 */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    /* 모바일 대응을 위해 기본 폭은 넓게 */
    max-width: 500px;
    /* 최대 폭 제한 */

    /* 정중앙 배치 핵심 설정 */
    position: fixed;
    /* 화면에 고정 */
    top: 50%;
    /* 위에서 50% 지점 */
    left: 50%;
    /* 왼쪽에서 50% 지점 */
    transform: translate(-50%, -50%);
    /* 요소의 절반만큼 역이동하여 완벽한 중앙 배치 */

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* 입체감을 위한 그림자 추가 */
    z-index: 1001;
    /* 배경보다 위에 위치 */
}

/* 팝업 배경 (어둡게 처리) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* 배경 투명도 약간 높임 */
}

.close-button {
    float: right;
}