/* 연구실 소개 페이지 스타일 */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: #666;
}

.about-section {
    text-align: center;
    padding: 100px 0 60px 0;
    margin-bottom: 60px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.greeting {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.greeting-text {
    margin-bottom: 0;
    line-height: 1.8;
    color: #444;
    font-size: 1.15rem;
    letter-spacing: 0.3px;
    word-spacing: 2px;
}

.greeting br {
    display: block;
    content: "";
    margin: 2rem 0;
}

/* 연구 분야 스타일 */
.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.research-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.research-item:hover {
    transform: translateY(-5px);
}

.research-item h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.research-item p {
    color: #666;
    line-height: 1.6;
}

/* 팀 섹션 스타일 */
.team-section {
    text-align: center;
    padding: 40px 0 20px 0;
    background-color: #f8f9fa;
    margin: 10px 0 0 0;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.team-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-member {
    text-align: center;
    margin-bottom: 40px;
}

.member-image {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.member-image:hover {
    transform: scale(1.05);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

p.member-subtitle {
    font-size: 1rem;
    color: #333;
    margin: 1rem 0 0.5rem 0;
    font-weight: normal;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.member-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 타임라인 스타일 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #008385;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::after {
    content: '';
    display: block;
    clear: both;
}

.timeline-content {
    position: relative;
    width: calc(50% - 80px);
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    text-align: left;
}

.timeline-point {
    position: absolute;
    width: 120px;
    height: 120px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-point-circle {
    width: 100%;
    height: 100%;
    border: 4px solid #008385;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.timeline-point-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.timeline-point img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.timeline-content h3 {
    color: #008385;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }

    .member-image {
        width: 200px;
        height: 200px;
    }

    .timeline::after {
        left: 50px;
    }

    .timeline-content {
        width: calc(100% - 150px);
        float: right;
        text-align: left;
    }

    .timeline-point {
        left: 50px;
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .about-container {
        margin: 80px auto 40px;
    }

    .about-section {
        padding: 40px 0;
    }

    .about-title {
        font-size: 2rem;
    }

    .team-members {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .team-member {
        margin-bottom: 30px;
    }

    .member-image {
        width: 180px;
        height: 180px;
    }

    .team-title {
        font-size: 2rem;
    }

    .team-subtitle {
        font-size: 1rem;
    }

    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 80px;
    }

    .timeline-point {
        width: 80px;
        height: 80px;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .tab-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-link {
        padding: 8px 16px;
        margin: 5px;
        font-size: 0.9rem;
    }

    .intro-grid {
        gap: 16px;
    }

    .intro-card {
        flex: 0 0 85%;
        min-width: 0;
    }

    .intro-scroll-left { left: 4px; }
    .intro-scroll-right { right: 4px; }

    .intro-card img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .member-image {
        width: 160px;
        height: 160px;
        border-width: 5px;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .member-role {
        font-size: 0.9rem;
    }

    .timeline-point {
        width: 60px;
        height: 60px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
        padding: 15px;
    }
}

/* 탭 스타일 */
.intro-tabs {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.tab-links {
    display: flex;
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tab-link {
    padding: 15px 30px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin: 0;
    border-radius: 0;
}

.tab-link:hover {
    background: transparent;
    color: #333;
}

.tab-link.active {
    background: #fff;
    color: #008385;
    border: 1px solid #e0e0e0;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.tab-link:first-child {
    border-top-left-radius: 4px;
}

.tab-link:last-child {
    border-top-right-radius: 4px;
}

/* 카드 carousel 스타일 (가로 스크롤) */
.intro-grid-wrapper {
    position: relative;
    margin-top: 20px;
}

.intro-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 8px 4px 16px 4px;
    /* 스크롤바 숨김 */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.intro-grid::-webkit-scrollbar { height: 6px; }
.intro-grid::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.intro-grid::-webkit-scrollbar-track { background: transparent; }

.intro-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 1.4rem;
    color: #333;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.18s;
}
.intro-scroll-btn:hover {
    background: #f5f5f5;
    transform: translateY(-50%) scale(1.05);
}
.intro-scroll-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%);
}
.intro-scroll-left { left: -22px; }
.intro-scroll-right { right: -22px; }
.intro-grid-wrapper.scrollable .intro-scroll-btn { display: flex; }

.intro-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: inherit;
}

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* 프로젝트 섹션 스타일 */
.project-section {
    padding: 60px 0;
    text-align: center;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.project-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
}
