/* ============================================================
   IRDL THEME - Dark Background + Cyan to Magenta Gradient
   Primary:   #00C2E0 (Cyan)
   Accent:    #C724B1 (Magenta)
   BG Dark:   #000000 → #3B3B3B gradient
   Card BG:   #1A1A1A
   ============================================================ */


/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #D0D0D0;
    background: linear-gradient(160deg, #000000 0%, #3B3B3B 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 헤더 */
header {
    background: #0A0A0A;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #00C2E0, #C724B1) 1;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.lab-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00C2E0 0%, #C724B1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #B0B0B0;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00C2E0;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(145deg, #000000 0%, #080D1A 100%);
    padding: 50px 0;
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    border-bottom: 1px solid #1A1A1A;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00C2E0 0%, #C724B1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.univ-tag {
    font-size: 1.2rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 1px;
}

.description-container {
    margin: 0 auto;
    padding: 35px 25px 0;
    border-top: 1px solid rgba(0, 194, 224, 0.25);
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.9;
    color: #AABBC8;
    font-weight: 300;
    text-align: left;
    text-align-last: left;
    word-break: keep-all;
}

.hero-description strong {
    color: #00E0FF;
    font-weight: 500;
}

.hero-description strong:hover {
    color: #ffffff;
}

/* 뉴스 섹션 */
.news {
    padding: 50px 0;
}

.news h2 {
    border-bottom: 2px solid #00C2E0;
    display: inline-block;
    margin-bottom: 20px;
    color: #ffffff;
}

.news ul {
    list-style: none;
}

.news li {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #333;
    color: #C0C0C0;
}

/* 연구 요약 */
.research-summary p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #B0B0B0;
    font-weight: 400;
    word-break: keep-all;
}

.research-pillars h2 {
    border-bottom: 2px solid #00C2E0;
    display: inline-block;
    margin-bottom: 20px;
    color: #ffffff;
}

.research-pillars {
    padding: 0px 0;
    margin-bottom: -20px;
}

.research-summary strong {
    color: #00C2E0;
    font-weight: 700;
}

/* Pillar Cards */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.pillar-card {
    text-align: left;
    background: #1A1A1A;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #2A2A2A;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: #00C2E0;
    box-shadow: 0 8px 30px rgba(0, 194, 224, 0.15);
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #2A2A2A;
    padding-bottom: 10px;
    background: linear-gradient(135deg, #00C2E0 0%, #C724B1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-pillar {
    margin-bottom: 20px;
}

.ai-security-card {
    text-align: left;
}

.pillar-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #141414;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-pair {
    gap: 4px;
}

.video-pair video {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

/* Full-width research cards */
.pillar-card-wide {
    margin-top: 30px;
}

.pillar-card-wide h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2A2A2A;
}

.pillar-wide-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.pillar-wide-image {
    flex: 0 0 420px;
}

.pillar-wide-image img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
    background: #111;
}

.video-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 360px;
    width: 360px;
    max-width: 360px;
    overflow: hidden;
}

.video-stack video {
    display: block;
    width: 360px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #111;
    flex-shrink: 0;
}

.pillar-wide-content {
    flex: 1;
}

@media (max-width: 768px) {
    .pillar-wide-inner {
        flex-direction: column;
    }
    .pillar-wide-image,
    .video-stack {
        flex: none;
        width: 100%;
    }
}

.sub-pillar h4 {
    color: #00C2E0;
    font-size: 1.2rem;
    margin: 15px 0 8px 0;
    border-left: 3px solid #00C2E0;
    padding-left: 10px;
}

.detail-list {
    list-style: none;
    padding-left: 15px;
}

.detail-list li {
    font-size: 1.2rem;
    color: #A0A0A0;
    position: relative;
    margin-bottom: 5px;
}

.detail-list li::before {
    content: "•";
    color: #00C2E0;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* News List */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px solid #2A2A2A;
    color: #C0C0C0;
}

.news-list li a {
    color: #00C2E0;
    text-decoration: none;
}

.news-list li a:hover {
    color: #C724B1;
    text-decoration: underline;
}

.news-list .date {
    font-weight: 700;
    color: #00C2E0;
    margin-right: 15px;
}

/* ============================================================
   TEAM PAGE STYLES
   ============================================================ */

.section-title {
    font-size: 2.3em;
    font-weight: bold;
    color: #FFFFFF;
}

.pi-card {
    background: #1A1A1A;
    padding: 40px;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.pi-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 30px;
    margin-bottom: 0px;
}

.pi-details {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2A2A2A;
}

.pi-details .detail-column {
    flex: 1;
    min-width: 280px;
}

.pi-details h4 {
    color: #00C2E0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-left: 4px solid #00C2E0;
    padding-left: 10px;
}

.pi-image img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.pi-info {
    flex: 1;
}

.pi-info h3 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.pi-info h4 {
    color: #00C2E0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-left: 4px solid #00C2E0;
    padding-left: 10px;
}

.pi-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #E0E0E0;
}

.pi-dept {
    color: #A0A0A0;
    font-weight: 500;
    margin-bottom: 6px;
}

.pi-email {
    color: #D0D0D0;
    font-weight: bold;
}

.pi-phone {
    color: #D0D0D0;
    font-weight: bold;
    margin-bottom: 15px;
}

.education-list {
    list-style: none;
    padding-left: 0;
}

.education-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #B0B0B0;
}

.education-list li strong {
    color: #E0E0E0;
}

.education-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00C2E0;
}

.service-society {
    font-size: 0.85rem;
    color: #00C2E0;
    font-weight: 600;
    margin: 10px 0 6px;
    letter-spacing: 0.02em;
}

.divider {
    margin: 50px 0;
    border: 0;
    border-top: 1px solid #2A2A2A;
}

/* Join Us */
.join-us {
    text-align: center;
}

.join-box {
    background: #1A1A1A;
    padding: 20px 20px;
    border-radius: 15px;
    border: 1px dashed #00C2E0;
    margin: 0 auto;
    margin-bottom: 25px;
}

.join-box h2 {
    margin-bottom: 20px;
    color: #00C2E0;
    border-bottom: none;
}

.join-text {
    font-size: 1.2rem;
    color: #B0B0B0;
    margin-bottom: 15px;
    word-break: keep-all;
}

.contact-info {
    font-size: 1.1rem;
    color: #909090;
}

.email-link {
    color: #00C2E0;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s;
}

.email-link:hover {
    color: #C724B1;
}

/* ============================================================
   STUDENTS SECTION
   ============================================================ */

.degree-title {
    font-size: 1.4rem;
    color: #00C2E0;
    border-left: 4px solid #00C2E0;
    padding-left: 12px;
    margin: 40px 0 20px 0;
    font-weight: 700;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.student-item {
    text-align: center;
    background: #1A1A1A;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2A2A2A;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.student-item:hover {
    transform: translateY(-5px);
    border-color: #00C2E0;
}

.student-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00C2E0;
    margin-bottom: 15px;
}

.student-info .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #E0E0E0;
    margin-bottom: 5px;
}

.interest {
    font-size: 0.85rem;
    color: #909090;
    margin-bottom: 3px;
    word-break: keep-all;
}

.email {
    font-size: 0.8rem;
    color: #00C2E0;
    text-decoration: none;
}

.professor-title {
    font-size: 2rem;
    margin-top: 20px;
    color: #FFFFFF;
}

/* ============================================================
   PUBLICATIONS SECTION
   ============================================================ */

.pub-list {
    margin-bottom: 40px;
}

.pub-item {
    padding: 20px 0;
    border-bottom: 1px solid #2A2A2A;
    transition: background 0.2s;
}

.pub-item:hover {
    background-color: #1E1E1E;
}

.pub-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.pub-authors {
    font-size: 1rem;
    color: #A0A0A0;
}

.pub-authors strong {
    color: #00C2E0;
    border-bottom: 2px solid #00C2E0;
}

.pub-venue {
    font-style: italic;
    color: #787878;
    margin-top: 5px;
}

.pub-if {
    font-style: normal;
    font-weight: 700;
    color: #C724B1;
}

.pub-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #00C2E0, #C724B1);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
}

.pub-btn:hover {
    opacity: 0.85;
}

.pub-desc {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
}

.scholar-link {
    margin: 20px 0 30px 0;
    padding: 15px;
    background-color: #1A1A1A;
    border-radius: 8px;
    font-size: 1rem;
    color: #B0B0B0;
}

.scholar-link a {
    color: #00C2E0;
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: #00C2E0;
    box-shadow: 0 5px 20px rgba(0, 194, 224, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item--portrait img {
    height: auto;
    object-fit: unset;
}

.gallery-caption {
    padding: 12px;
    font-size: 0.9rem;
    text-align: center;
    color: #A0A0A0;
    font-weight: 500;
}

.event-date-header {
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2A2A2A;
}

.event-date-header h4 {
    color: #00C2E0;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.event-date-header p {
    color: #787878;
    font-size: 0.95rem;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */

.project-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid #2A2A2A;
}

.project-image {
    flex: 1;
    max-width: 450px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid #2A2A2A;
}

.project-info {
    flex: 1.5;
}

.project-tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #00C2E0, #C724B1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 5px;
}

.project-info h3 {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-meta {
    font-size: 0.95rem;
    color: #909090;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-desc {
    font-size: 1rem;
    color: #B0B0B0;
    line-height: 1.7;
    word-break: keep-all;
}

.upcoming-intro {
    font-size: 1.1rem;
    color: #909090;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: #000000;
    color: #555;
    padding: 20px 0;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 1px solid #1A1A1A;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left p {
    color: #555;
}

.footer-address {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #444;
    line-height: 1.6;
}

.footer-right a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #777;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #00C2E0;
}

.footer-jbnu-logo {
    height: 28px;
    width: auto;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
    }
    .project-image {
        max-width: 100%;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 10px;
        padding: 0;
        list-style: none;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
        background: #1A1A1A;
        border-radius: 5px;
        font-size: 0.9rem;
        width: 100%;
    }

    .logo-img {
        display: none;
    }

    .lab-name {
        display: block;
        text-align: center;
        line-height: 1.4;
        font-size: 1.1rem;
    }

    .pi-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .pi-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pi-image img {
        width: 200px !important;
        height: auto;
        margin-bottom: 20px;
    }

    .pi-details {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        text-align: left !important;
        text-align-last: left !important;
        font-size: 1.1rem;
        line-height: 1.6;
        word-break: keep-all;
    }

    .description-container {
        padding: 20px 15px;
    }

    .pi-info h3 {
        font-size: 1.5rem;
    }

    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .student-item img {
        width: 120px;
        height: 120px;
    }

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

    .pub-item {
        padding: 15px 0;
    }

    .pub-title {
        font-size: 1rem;
    }
}
