/* ==========================================================================
   MIDAS Lab Design System (CAU AR Lab & SNU AEML Clone Style)
   ========================================================================== */

/* Font Imports */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,300..700;1,300..700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Reset and Variables */
:root {
    --font-heading: 'Montserrat', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Design Colors (Navy Theme) */
    --color-navy: #181d61;
    --color-blue: #2958ef;
    --color-gold: #e89700;
    --color-dark-navy: #030434;
    
    --bg-main: #ffffff;
    --bg-surface: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    
    --transition: 0.3s ease;
}

/* Dark Theme Support */
.dark-theme {
    --bg-main: #0B132B;
    --bg-surface: #1C2541;
    --bg-alt: #10192e;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --color-navy: #3A86FF;
    --color-dark-navy: #0F1E36;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.w1400 {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle Button (Utility) */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}
.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.dark-theme .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.icon {
    width: 20px;
    height: 20px;
}

.dark-theme .sun-icon { display: block; fill: currentColor; }
.dark-theme .moon-icon { display: none; }
.light-theme .sun-icon { display: none; }
.light-theme .moon-icon { display: block; fill: currentColor; }

/* ==========================================================================
   Header & GNB (AR Lab Style)
   ========================================================================== */
#top_navi {
    position: relative;
    height: 100px;
}

#header {
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    transition: top 0.4s ease, height var(--transition), background-color var(--transition), box-shadow var(--transition);
    height: 100px;
    z-index: 105;
    background: var(--bg-surface);
    top: 0;
}

#header > .w1400 {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header h1 {
    z-index: 20;
    display: inline-block;
}

#header h1 a {
    display: flex;
    align-items: center;
    gap: 12px;
}

#header h1 a img {
    height: 60px;
    transition: var(--transition);
}

.logo-dark {
    display: none;
}

.dark-theme .logo-light {
    display: none;
}

.dark-theme .logo-dark {
    display: block !important;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: 5px;
    color: var(--color-navy);
    text-transform: uppercase;
    line-height: 1;
    margin-left: 2px;
    transition: var(--transition);
}

.dark-theme .logo-text {
    color: #ffffff;
}

.dark-theme #header h1 a img {
    background-color: transparent;
}

.nav {
    text-align: center;
    position: relative;
    transition: var(--transition);
}

#header #cssmenu {
    background: none;
    z-index: 99999;
}

#cssmenu ul {
    display: flex;
    align-items: center;
}

#cssmenu > ul > li {
    position: relative;
}

#cssmenu > ul > li > a {
    text-transform: uppercase;
    display: block;
    padding: 40px 25px;
    font-size: 17px;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
    font-weight: 300;
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    transition: color var(--transition);
}

#cssmenu > ul > li > a.active {
    color: var(--color-blue) !important;
    font-weight: 500;
}

#cssmenu > ul > li:hover > a {
    color: var(--color-blue);
}

#cssmenu ul ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    pointer-events: none;
    background: var(--color-navy);
    padding: 15px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#cssmenu li:hover > ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

#cssmenu ul ul li a {
    display: block;
    text-align: center;
    padding: 10px 20px;
    width: 220px;
    white-space: nowrap;
    font-size: 15px;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.7;
    transition: opacity var(--transition);
}

#cssmenu ul ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Header Scrolled Fixed Style */
#header.menuFixed {
    height: 80px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: var(--bg-surface);
}

#header.menuFixed h1 a img {
    height: 50px;
}

#header.menuFixed .logo-text {
    font-size: 22px;
}

#header.menuFixed #cssmenu > ul > li > a {
    padding: 30px 25px;
}

/* Mobile Menu Button */
.mobileMenu {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100px;
    z-index: 1001;
    padding-top: 32px;
    background: var(--color-navy);
    cursor: pointer;
    transition: var(--transition);
}

.mobileMenu span {
    display: block;
    width: 30px;
    height: 2px;
    background: #ffffff;
    margin: 6px auto;
    transition: var(--transition);
}

.mobileMenu.menuFixed {
    position: fixed !important;
    height: 80px;
    padding-top: 22px;
}

/* Mobile GNB Panel */
#gnbM {
    display: block;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-dark-navy);
    z-index: 99999;
    transition: right 0.3s ease;
    padding: 20px 0;
    overflow-y: auto;
}

#gnbM.open {
    right: 0;
}

#gnbM .mUtil {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

#gnbM .mUtil a {
    color: #ffffff;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#gnbM .gnbDiv .one {
    display: block;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition);
}

#gnbM .gnbDiv .one:hover, #gnbM .gnbDiv .one.on {
    background-color: var(--color-blue);
}

#gnbM .gnbDiv .two {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

#gnbM .gnbDiv .twoD {
    display: block;
    color: #cccccc;
    padding: 10px 30px;
    font-size: 14px;
    transition: color var(--transition);
}

#gnbM .gnbDiv .twoD:hover {
    color: #ffffff;
    text-decoration: underline;
}

#gnbM .mobileMenuXbt {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#gnbM .mobileMenuXbt span {
    position: absolute;
    top: 14px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffffff;
    transform: rotate(45deg);
}

#gnbM .mobileMenuXbt span.x2 {
    transform: rotate(-45deg);
}

.dimdBg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ==========================================================================
   Sub-page Visual Banner (#svis)
   ========================================================================== */
#svis {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-dark-navy) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#svis .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.6;
    pointer-events: none;
}

#svis .slogan {
    position: relative;
    z-index: 2;
}

#svis .gTit {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

#svis .labTit {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   LNB / Breadcrumbs (.lnb_wrap)
   ========================================================================== */
.lnb_wrap {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    z-index: 10;
    height: 60px;
}

.lnb {
    height: 100%;
}

.lnb .lnb_map {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.lnb .lnb_map li {
    height: 100%;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lnb .lnb_map li.home a {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    border-right: 1px solid var(--border-color);
}

.lnb .lnb_map li.home a:hover {
    color: var(--color-blue);
}

.lnb .lnb_map li.depth {
    border-right: 1px solid var(--border-color);
    cursor: pointer;
}

.lnb .lnb_map li.depth > a {
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lnb .lnb_map li.depth > a span {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.lnb .lnb_map li.depth > a i {
    font-size: 12px;
    color: #999999;
}

.lnb .lnb_map li.depth ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 11;
}

.lnb .lnb_map li.depth:hover ul {
    display: block;
}

.lnb .lnb_map li.depth ul li {
    width: 100%;
    height: auto;
}

.lnb .lnb_map li.depth ul li a {
    display: block;
    padding: 12px 20px;
    width: 100%;
    font-size: 14px;
    color: var(--text-muted);
    text-align: left;
}

.lnb .lnb_map li.depth ul li a:hover,
.lnb .lnb_map li.depth ul li a.active {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--color-blue);
    font-weight: 600;
}

.dark-theme .lnb .lnb_map li.depth ul li a:hover,
.dark-theme .lnb .lnb_map li.depth ul li a.active {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Content Layout (#wrapper)
   ========================================================================== */
#wrapper {
    padding: 60px 0 100px 0;
    background-color: var(--bg-main);
}

.section-wrapper {
    padding: 100px 0 80px 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.section-wrapper.alt-bg {
    background-color: var(--bg-alt);
}

section[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 1024px) {
    section[id] {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 65px;
    }
}

#container_wr {
    width: 100%;
}

.bTit {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-navy);
    padding-bottom: 15px;
}

.bTit p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ==========================================================================
   Professor / PI Profile (#pf_info - CAU AR Lab Style)
   ========================================================================== */
#pf_info {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    align-items: center;
}

#pf_info .info_img {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme #pf_info .info_img {
    background: #1e293b;
}

#pf_info .info_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#pf_info .info_txt {
    flex-grow: 1;
}

#pf_info .info_txt .name_cnt {
    margin-bottom: 20px;
}

#pf_info .info_txt .name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
}

#pf_info .info_txt .name small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-blue);
    margin-left: 10px;
}

#pf_info .info_txt h2 {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
}

#pf_info .uni_cnt {
    margin-bottom: 20px;
}

#pf_info .uni_cnt li {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

#pf_info .b_txt {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

#pf_info .b_txt dl {
    display: flex;
    flex-direction: column;
}

#pf_info .b_txt dl:not(:last-child) {
    flex-shrink: 0;
    white-space: nowrap;
}

#pf_info .b_txt dl:last-child {
    flex-shrink: 1;
}

#pf_info .b_txt dt {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-blue);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

#pf_info .b_txt dd a {
    font-size: 15px;
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

#pf_info .b_txt dd a:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

#pf_info .cv_btn {
    flex-shrink: 0;
}

#pf_info .cv_btn a {
    display: inline-block;
    background: var(--color-navy);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

#pf_info .cv_btn a:hover {
    background: var(--color-blue);
    transform: translateY(-2px);
}

/* Professor detail list section */
.prof_details_sec {
    margin-top: 40px;
}

.profTit {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    border-left: 4px solid var(--color-navy);
    padding-left: 12px;
    font-family: var(--font-heading);
}

.exp_list, .edu_list {
    margin-bottom: 40px;
    padding-left: 5px;
}

.exp_list li, .edu_list li {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.exp_list li b, .edu_list li b {
    color: var(--text-main);
    font-weight: 600;
    width: 160px;
    display: inline-block;
}

/* ==========================================================================
   Students Grid & Cards (.item - SNU AEML Style)
   ========================================================================== */
.group-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 4px solid var(--color-navy);
    padding-left: 12px;
    color: var(--text-main);
}

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

.people-grid .item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
    position: relative;
    height: 100%;
}

.people-grid .item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(41, 88, 239, 0.3);
}



.people-grid .item .pro_img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .people-grid .item .pro_img {
    background-color: #1e293b;
}

.people-grid .item .pro_img img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.5s ease;
}

.people-grid .item:hover .pro_img img {
    transform: scale(1.05);
}

/* Avatar placeholder style */
.people-grid .item .avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(24, 29, 97, 0.08) 0%, rgba(41, 88, 239, 0.15) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
}

.dark-theme .people-grid .item .avatar-placeholder {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    color: #3A86FF;
}

.people-grid .item .pro_info {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.people-grid .item .pro_name {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.people-grid .item .ko_name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.people-grid .item .en_name {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
}

.people-grid .item .pro_sub {
    font-size: 12px;
    color: var(--color-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.people-grid .item .pro_sub_txt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 40px;
}

.people-grid .item ul {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

.people-grid .item .pro_current {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.people-grid .item .pro_current::before {
    content: "💼";
    font-size: 14px;
}

.people-grid .item ul li {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
}

.people-grid .item ul li::before {
    content: "✉";
    color: var(--color-blue);
}

.people-grid .item ul li.member-email-item {
    gap: 4px;
}

.people-grid .item ul li.member-email-item::before {
    content: none !important;
}

.member-email-btn,
.prof-email-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    border-radius: 4px;
    text-decoration: none;
}

.member-email-btn:hover,
.prof-email-btn:hover {
    transform: scale(1.2);
    color: var(--color-navy);
}

.member-email-btn.active,
.prof-email-btn.active {
    color: var(--color-navy);
}

.member-email-btn svg,
.prof-email-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
    fill: none;
}

@keyframes fadeInEmail {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.people-grid .item .edu_wrap {
    margin-top: 12px;
    text-align: right;
}

.people-grid .item .edu_wrap p {
    font-size: 12px;
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    display: inline-block;
}

.people-grid .item .edu_wrap p:hover {
    color: var(--color-blue);
}

/* Alumni Section Style */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.alumni-item {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.alumni-name {
    font-weight: 600;
    font-size: 15px;
}

.alumni-field {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Modals (.modal_conts - SNU AEML Style)
   ========================================================================== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal_conts {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background: var(--bg-surface);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
}

.modal_conts.open {
    display: block;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal_conts .tb.card {
    padding: 30px;
}

.modal_item .modal_info {
    margin-bottom: 25px;
}

.modal_info .pro_name {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-navy);
    padding-bottom: 10px;
}

.modal_info .ko_name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal_sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.modal_sub .txt_bold {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.modal_conts .btn_area {
    text-align: right;
}

.modal_conts .btn_close_m {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.dark-theme .modal_conts .btn_close_m {
    background: #334155;
    color: #cbd5e1;
}

.modal_conts .btn_close_m:hover {
    background: #e2e8f0;
}

.dark-theme .modal_conts .btn_close_m:hover {
    background: #475569;
}

/* ==========================================================================
   Publications Styles
   ========================================================================== */
.pub-controls {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.form-control {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    padding: 12px 16px 12px 40px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.form-control:focus {
    border-color: var(--color-blue);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
}

.filter-box-wrapper {
    display: flex;
    gap: 12px;
}

.select-control {
    cursor: pointer;
    padding: 12px 32px 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.select-control:focus {
    border-color: var(--color-blue);
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pub-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.pub-year-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-blue);
    border-right: 2px solid var(--border-color);
    padding-right: 20px;
    text-align: center;
}

.pub-num {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.pub-year {
    font-size: 1.4rem;
    font-weight: 800;
}

.pub-authors sup {
    font-size: 0.85em;
    color: var(--color-blue);
    margin-left: 2px;
    font-weight: 700;
}

.pub-content {
    display: flex;
    flex-direction: column;
}

.pub-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-main);
}

.pub-authors {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.author-highlight {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: underline;
}

.pub-journal {
    font-size: 14px;
    font-style: italic;
    color: var(--color-navy);
    font-weight: 600;
    margin-bottom: 12px;
}

.pub-links {
    display: flex;
    gap: 10px;
}

.pub-btn {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.pub-btn.btn-doi {
    background-color: rgba(41, 88, 239, 0.08);
    border: 1px solid rgba(41, 88, 239, 0.15);
    color: var(--color-blue);
}

.pub-btn.btn-doi:hover {
    background-color: var(--color-blue);
    color: #ffffff;
}

.pub-btn.btn-pdf {
    background-color: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.pub-btn.btn-pdf:hover {
    background-color: #dc2626;
    color: #ffffff;
}

.no-results {
    padding: 50px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
}

/* ==========================================================================
   Research Page Styles
   ========================================================================== */
.research-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.research-item {
    display: flex;
    align-items: stretch;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.research-item:nth-child(even) {
    flex-direction: row-reverse;
}

.research-img-wrapper {
    flex: 1;
    min-width: 40%;
    max-width: 45%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-body);
}

.research-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-item:hover .research-img-wrapper img {
    transform: scale(1.05);
}

.research-content-wrapper {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.research-content-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background-color: rgba(41, 88, 239, 0.1);
    color: var(--color-blue);
}

.card-icon {
    width: 24px;
    height: 24px;
}

.research-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.research-tags span {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-navy);
    background-color: rgba(24, 29, 97, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-block, .contact-form-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.contact-info-block h3, .contact-form-block h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-main);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: rgba(41, 88, 239, 0.1);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.contact-text span, .contact-text a {
    font-size: 15px;
}

.contact-text a:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

.join-banner {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.join-banner h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.join-banner p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control-input, .form-control-textarea {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.form-control-input:focus, .form-control-textarea:focus {
    border-color: var(--color-blue);
}

.form-control-textarea {
    resize: none;
}

.btn-submit {
    align-self: flex-start;
    padding: 12px 24px;
    background: var(--color-navy);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: var(--color-blue);
    transform: translateY(-2px);
}

.form-feedback-message {
    font-size: 14px;
    font-weight: 500;
    display: none;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.form-feedback-message.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   Footer (AR Lab Style)
   ========================================================================== */
.bg_btm {
    height: 10px;
    background: var(--color-navy);
}

footer {
    background: var(--color-dark-navy);
    color: #ffffff;
    padding: 50px 0;
    font-size: 14px;
}

footer .w1400 p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

footer .w1400 p b {
    color: #ffffff;
    font-size: 16px;
    margin-right: 15px;
    font-family: var(--font-heading);
}

footer .w1400 span {
    margin-right: 25px;
}

footer .w1400 a {
    color: rgba(255, 255, 255, 0.9);
}

footer .w1400 a:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

footer .w1400 .copy {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

footer .w1400 .copy a {
    color: rgba(255, 255, 255, 0.4);
}

/* Top Scroll Button */
#top_btn {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--color-navy);
    color: #ffffff;
    border: none;
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
    opacity: 0;
}

#top_btn.on {
    right: 30px;
    opacity: 1;
}

#top_btn:hover {
    background: var(--color-blue);
    transform: translateY(-3px);
}

/* ==========================================================================
   Main / Landing page visual components
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, rgba(3, 4, 52, 0.95) 0%, rgba(3, 4, 52, 0.6) 50%, rgba(3, 4, 52, 0.2) 100%), url('images/overview-hero-bg-molecule-v2.png') no-repeat center right / cover;
    color: #ffffff;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-cau-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.cau-emblem-text {
    background: var(--color-blue);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffffff;
}

.cau-brand-line {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 25px;
}

.hero-title {
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--color-blue);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-blue);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: #0033cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(41, 88, 239, 0.3);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    max-width: 600px;
}

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-blue);
    display: block;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

/* News ticker styles */
.news-ticker-section {
    margin-top: 40px;
}

.news-ticker-box {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.news-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-blue);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 20px;
    margin-right: 20px;
    white-space: nowrap;
}

.pulse-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-blue);
    position: relative;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background-color: var(--color-blue);
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

.news-carousel {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.news-carousel-track {
    display: flex;
    flex-direction: column;
    animation: tickerVertical 12s infinite ease-in-out;
}

.news-item {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.news-date {
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.news-text {
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes tickerVertical {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-24px); }
    50%, 70% { transform: translateY(-48px); }
    75%, 95% { transform: translateY(-72px); }
    100% { transform: translateY(0); }
}

@keyframes tickerVerticalMobile {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-38px); }
    50%, 70% { transform: translateY(-76px); }
    75%, 95% { transform: translateY(-114px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1400px) {
    #header h1 {
        margin-left: 20px;
    }
}

@media (max-width: 1200px) {
    #cssmenu > ul > li > a {
        padding: 40px 18px;
        font-size: 16px;
    }
    
    #pf_info {
        gap: 30px;
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    #top_navi {
        height: 80px;
    }
    #header {
        height: 80px;
    }
    .mobileMenu {
        display: block;
    }
    #cssmenu {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .research-item {
        flex-direction: column !important;
    }
    
    .research-img-wrapper {
        min-width: 100%;
        max-width: 100%;
        height: 280px;
    }
    
    .research-content-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    #top_navi {
        height: 65px;
    }
    #header {
        height: 65px;
    }
    #header h1 a img {
        height: 45px;
    }
    .nav-container {
        display: none !important;
    }
    .mobileMenu {
        width: 65px;
        height: 65px;
        padding-top: 15px;
    }
    .mobileMenu span {
        margin: 5px auto;
        width: 25px;
    }
    
    #svis {
        height: 200px;
    }
    
    #svis .gTit {
        font-size: 2.2rem;
    }
    
    #pf_info {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    #pf_info .info_img {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
    }
    
    #pf_info .b_txt {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .exp_list li, .edu_list li {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 12px;
    }
    
    .exp_list li b, .edu_list li b {
        width: auto;
        display: block;
    }

    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .pub-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pub-year-badge {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 8px;
        text-align: left;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .pub-num {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Board Page Styles
   ========================================================================== */
.board-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 22px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #ffffff;
}

.btn-write {
    background: var(--color-navy);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 0px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-write:hover {
    background: var(--color-blue);
}

.dark-theme .btn-write {
    background: var(--color-blue);
}

.dark-theme .btn-write:hover {
    background: #50b0ff;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    margin-bottom: 70px;
}

.board-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.board-item.hidden {
    display: none;
}

.board-item:hover {
    transform: translateY(-4px);
    border-color: #888;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.dark-theme .board-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.board-item-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 58%;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.dark-theme .board-item-img-wrapper {
    background: #151f38;
}

.board-item-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.board-item:hover .board-item-img-wrapper img {
    transform: scale(1.04);
}

.board-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 52, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.board-item-img-wrapper:hover .board-item-overlay {
    opacity: 1;
}

.board-item-overlay-icon {
    color: #ffffff;
    font-size: 1.6rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-item-info {
    padding: 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.board-badge-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.board-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.board-badge.badge-news {
    background: rgba(41, 88, 255, 0.08);
    color: var(--color-blue);
}

.board-badge.badge-photo {
    background: rgba(232, 151, 0, 0.08);
    color: var(--color-gold);
}

.board-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.board-item-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    cursor: pointer;
    transition: color var(--transition);
}

.board-item-title:hover {
    color: var(--color-blue);
}

.board-item-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.board-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: auto;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn.btn-delete:hover {
    color: #e53e3e;
}

.action-btn.btn-edit:hover {
    color: var(--color-blue);
}

/* Modal Overlay & Animations */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 52, 0.65);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 620px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    transition: color var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.015);
}

.dark-theme .modal-footer {
    background: rgba(255, 255, 255, 0.015);
}

/* Modal Form Styles */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 11px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--color-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 88, 255, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}

.preset-images {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(41, 88, 255, 0.05);
    border: 1px solid rgba(41, 88, 255, 0.15);
    color: var(--color-blue);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.preset-btn:hover {
    background: var(--color-blue);
    color: #ffffff;
}

/* Detail Modal Styles */
.detail-image-wrapper {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 22px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
}

.dark-theme .detail-image-wrapper {
    background: #151f38;
}

.detail-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- Admin Authorization Visibility Controls --- */
#openWriteModalBtn,
.action-btn.btn-delete,
.action-btn.btn-edit {
    display: none !important;
}

body.admin-mode #openWriteModalBtn {
    display: flex !important;
}

body.admin-mode .action-btn.btn-delete,
body.admin-mode .action-btn.btn-edit {
    display: inline-flex !important;
}

.btn-admin-toggle {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-admin-toggle:hover {
    background: var(--border-color);
    color: var(--text-main);
}

body.admin-mode .btn-admin-toggle {
    background: rgba(41, 88, 255, 0.1);
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.dark-theme body.admin-mode .btn-admin-toggle {
    background: rgba(41, 88, 255, 0.2);
    color: #50b0ff;
    border-color: #50b0ff;
}

/* --- Multi-Image Card Badge --- */
.image-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.image-count-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* --- Detail Modal Carousel Slider --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    margin-bottom: 22px;
}

.dark-theme .carousel-container {
    background: #151f38;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: #ffffff;
    width: 18px;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .carousel-container {
        height: 260px;
    }

    .board-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .filter-btn {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    .btn-write {
        justify-content: center;
    }
    .board-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* --- Image Upload & Preview Gallery --- */
.image-upload-wrapper {
    width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.image-upload-wrapper:hover,
.image-upload-wrapper.dragover {
    border-color: var(--color-blue);
    background: rgba(41, 88, 255, 0.04);
}

.dark-theme .image-upload-wrapper:hover,
.dark-theme .image-upload-wrapper.dragover {
    border-color: #50b0ff;
    background: rgba(80, 176, 255, 0.06);
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: var(--transition);
}

.image-upload-wrapper:hover .upload-icon,
.image-upload-wrapper.dragover .upload-icon {
    color: var(--color-blue);
    transform: translateY(-2px);
}

.dark-theme .image-upload-wrapper:hover .upload-icon,
.dark-theme .image-upload-wrapper.dragover .upload-icon {
    color: #50b0ff;
}

.upload-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.preview-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-thumbnail .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.85);
    border: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 5;
    padding: 0;
}

.preview-thumbnail .remove-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* --- Dynamic Admin System Style Extensions --- */
.admin-only {
    display: none !important;
}

body.admin-mode .admin-only {
    display: block !important;
}

body.admin-mode .admin-only.btn-write {
    display: inline-flex !important;
}

body.admin-mode .admin-only.flex-admin {
    display: flex !important;
}

body.admin-mode .admin-only.card-admin-actions {
    display: flex !important;
}

/* Member Card Admin Action Overlay */
.card-admin-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    gap: 6px;
    z-index: 10;
}

body.admin-mode .card-admin-actions {
    display: flex;
}

.btn-card-edit, .btn-card-delete {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
    padding: 0;
}

.btn-card-edit:hover {
    background: var(--color-blue);
    color: #ffffff;
    border-color: var(--color-blue);
    transform: translateY(-2px);
}

.btn-card-delete:hover {
    background: #e53e3e;
    color: #ffffff;
    border-color: #e53e3e;
    transform: translateY(-2px);
}

.dark-theme .btn-card-edit, .dark-theme .btn-card-delete {
    background: rgba(30, 41, 59, 0.95);
    color: #f1f5f9;
}

/* Publication Item Admin Actions Overlay */
.pub-item {
    position: relative;
}

.pub-admin-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: none;
    gap: 8px;
    z-index: 10;
}

body.admin-mode .pub-admin-actions {
    display: flex;
}

.btn-pub-edit, .btn-pub-delete {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    transition: all var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-pub-edit:hover {
    background: var(--color-blue);
    color: #ffffff;
    border-color: var(--color-blue);
    transform: translateY(-1px);
}

.btn-pub-delete:hover {
    background: #e53e3e;
    color: #ffffff;
    border-color: #e53e3e;
    transform: translateY(-1px);
}

.dark-theme .btn-pub-edit, .dark-theme .btn-pub-delete {
    color: #e2e8f0;
}

/* Form row elements styling inside admin modals */
.edu-row {
    background: rgba(0, 0, 0, 0.02);
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed var(--border-color);
    transition: all var(--transition);
}

.dark-theme .edu-row {
    background: rgba(255, 255, 255, 0.02);
}

/* People Section Tabs Styling */
.people-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.people-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 12px 10px;
    position: relative;
    transition: color 0.3s ease;
    outline: none;
}

.people-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.people-tab-btn:hover {
    color: var(--color-blue);
}

.people-tab-btn.active {
    color: var(--color-blue);
    font-weight: 700;
}

.people-tab-btn.active::after {
    transform: scaleX(1);
}

.people-tab-content {
    display: none;
}

.people-tab-content.active {
    display: block;
    animation: fadeInPeopleTab 0.3s ease-out forwards;
}

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



/* Research Section Tabs & Detail Layout Styling */
.research-tabs {
    display: none; /* Hidden as requested by the user */
}

.research-list .research-item {
    cursor: pointer;
}

.btn-back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--color-blue);
    border: 1px solid var(--color-blue);
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 20px;
}

.btn-back-to-list:hover {
    background: var(--color-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 88, 239, 0.15);
}

.research-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 12px 10px;
    position: relative;
    transition: color 0.3s ease;
    outline: none;
}

.research-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.research-tab-btn:hover {
    color: var(--color-blue);
}

.research-tab-btn.active {
    color: var(--color-blue);
    font-weight: 700;
}

.research-tab-btn.active::after {
    transform: scaleX(1);
}

.research-tab-content {
    display: none;
}

.research-tab-content.active {
    display: block;
    animation: fadeInResearchTab 0.4s ease-out forwards;
}

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

/* Detail view layout */
.research-detail-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    margin-top: 20px;
    text-align: left;
    align-items: start;
}

.research-detail-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.research-detail-text .lead-text {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 24px;
    opacity: 0.9;
}

.research-detail-text .detail-section {
    margin-bottom: 24px;
}

.research-detail-text .detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-detail-text .detail-section ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.research-detail-text .detail-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-color);
    list-style-type: disc;
}

.research-detail-text .detail-section li strong {
    color: var(--color-blue);
}

.research-detail-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.research-detail-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-body);
}

.research-detail-visual .visual-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.research-detail-visual .visual-card h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-detail-visual .visual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.research-detail-visual .visual-tags span {
    background-color: var(--bg-body);
    color: var(--color-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.research-detail-visual .visual-tags span:hover {
    background-color: var(--color-blue);
    color: #ffffff;
    border-color: var(--color-blue);
}

/* Responsive styles for research detail layout */
@media (max-width: 991px) {
    .research-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .research-tabs {
        gap: 15px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
        -webkit-overflow-scrolling: touch;
    }
    
    .research-tab-btn {
        font-size: 14px;
        padding: 8px 4px;
        white-space: nowrap;
    }
}

/* Small mobile layout: vertical -> horizontal member cards & news ticker optimizations */
@media (max-width: 580px) {
    .people-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .people-grid .item {
        flex-direction: row;
        align-items: center;
        padding: 16px;
        min-height: auto;
        gap: 16px;
    }
    
    .people-grid .item .pro_img {
        width: 80px !important;
        height: 80px !important;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        border: 2px solid var(--border-color);
        flex-shrink: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .people-grid .item .pro_img img {
        border-radius: 50%;
    }
    
    .people-grid .item .avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 1.4rem;
        border-radius: 50%;
    }
    
    .people-grid .item .pro_info {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
        width: calc(100% - 96px); /* account for avatar width (80px) + gap (16px) */
    }
    
    .people-grid .item .pro_name {
        margin-bottom: 4px;
        flex-wrap: wrap;
        gap: 2px 6px;
        align-items: baseline;
    }
    
    .people-grid .item .ko_name {
        font-size: 1.05rem;
    }
    
    .people-grid .item .en_name {
        font-size: 0.85rem;
    }
    
    .people-grid .item .pro_sub {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .people-grid .item .pro_sub_txt {
        font-size: 13px;
        margin-bottom: 6px;
        min-height: auto;
    }
    
    .people-grid .item ul {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .people-grid .item .pro_current {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        font-size: 12px;
    }
    
    .people-grid .item .edu_wrap {
        margin-top: 4px;
        text-align: left;
    }
    
    .card-admin-actions {
        top: 8px;
        right: 8px;
        left: auto;
    }

    .news-ticker-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        gap: 8px;
    }

    .news-label {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-right: 0;
        padding-bottom: 6px;
        margin-right: 0;
        width: 100%;
        display: flex;
        font-size: 0.78rem;
    }

    .news-carousel {
        width: 100%;
        height: 38px !important;
        flex: none !important;
    }

    .news-carousel-track {
        animation: tickerVerticalMobile 12s infinite ease-in-out !important;
    }

    .news-item {
        font-size: 13px;
        height: 38px !important;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .news-text {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.4 !important;
        word-break: keep-all;
    }
    
    .research-img-wrapper {
        height: 200px;
    }
}

/* Extra small mobile layout: hero section optimizations */
@media (max-width: 480px) {
    .hero-section {
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin-top: 35px;
        padding-top: 20px;
    }
    
    .hero-stat-value {
        font-size: 1.6rem;
    }
    
    .hero-stat-label {
        font-size: 11px;
    }
}

/* --- Detail View Modal Size & Carousel Optimization --- */
#postDetailModal .modal-box {
    max-width: 960px; /* Expand from 620px to 960px */
    width: 95%;
}

#postDetailModal .carousel-container {
    height: 520px; /* Increase height from 380px to 520px */
}

#postDetailModal .carousel-slide img {
    cursor: zoom-in; /* Indicate that clicking the image will zoom/open in new tab */
    transition: opacity 0.25s ease;
}

#postDetailModal .carousel-slide img:hover {
    opacity: 0.92;
}

/* Mobile responsive fixes for detail modal */
@media (max-width: 768px) {
    #postDetailModal .modal-box {
        width: 98%;
        max-height: 90vh;
    }
    #postDetailModal .carousel-container {
        height: 320px; /* Scaled down height for mobile screens */
    }
}

/* --- Dedicated Post Detail Page Styles --- */
.post-back-bar {
    display: flex;
    justify-content: flex-start;
}

.btn-back-board {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 0px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-back-board:hover {
    background: var(--border-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-3px);
}

.post-detail-view {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 40px;
    box-shadow: none;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .post-detail-view {
        padding: 20px;
    }
}

/* --- Fullscreen Lightbox Overlay --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0px;
    box-shadow: none;
    transform: scale(0.97);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

#lightboxCaption {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.5);
}

/* --- Quill WYSIWYG Editor overrides --- */
.ql-editor {
    min-height: 100%;
}
.ql-editor img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 0px;
    border: none;
    box-shadow: none;
}
/* Ensure clean styling inside the post detail content container when in ql-editor class */
#postBodyContainer {
    text-align: left !important;
}
#postBodyContainer p,
#postBodyContainer h1,
#postBodyContainer h2,
#postBodyContainer h3,
#postBodyContainer h4,
#postBodyContainer h5,
#postBodyContainer h6,
#postBodyContainer li,
#postBodyContainer span,
#postBodyContainer div {
    text-align: left;
}
/* Preserve Quill's explicit alignments */
#postBodyContainer .ql-align-center {
    text-align: center !important;
}
#postBodyContainer .ql-align-right {
    text-align: right !important;
}
#postBodyContainer .ql-align-justify {
    text-align: justify !important;
}
#postBodyContainer.ql-editor {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    word-break: break-word;
}

/* Custom Sync Loading Overlay & Toast Styling */
.sync-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sync-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sync-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    animation: sync-spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(41, 88, 239, 0.5);
}

@keyframes sync-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sync-loading-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.sync-loading-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* Toast Container */
#toastContainer {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    background: var(--bg-surface);
    color: var(--text-main);
    border-left: 5px solid var(--color-blue);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.success {
    border-left-color: #10B981;
}

.custom-toast.error {
    border-left-color: #EF4444;
}

.custom-toast.info {
    border-left-color: var(--color-blue);
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-main);
}

/* ==========================================================================
   15. Home News & Gallery Section
   ========================================================================== */
#home-news-gallery {
    padding: 80px 0;
    background-color: var(--bg-surface, #ffffff);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.news-column, .gallery-column {
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--color-blue, #0d385f);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.column-title {
    margin: 0;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.column-title .title-en {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-blue, #0d385f);
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    letter-spacing: -0.5px;
}

.column-title .title-ko {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted, #777777);
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.btn-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted, #777777);
    text-decoration: none;
    transition: color var(--transition, 0.2s);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.btn-more:hover {
    color: var(--color-blue, #0d385f);
}

/* News List Styles */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-list-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    transition: background-color var(--transition, 0.2s), transform var(--transition, 0.2s);
}

.news-list-card:hover {
    background-color: var(--bg-main, rgba(0, 0, 0, 0.03));
    transform: translateX(4px);
}

.news-list-thumb-wrapper {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-main, #f5f5f5);
    border: 1px solid var(--border-color, #e5e5e5);
}

.news-list-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-list-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.news-list-title {
    font-size: 0.95rem;
    color: var(--text-main, #333333);
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color var(--transition, 0.2s);
}

.news-list-card:hover .news-list-title {
    color: var(--color-blue, #0d385f);
}

.news-list-date {
    font-size: 0.8rem;
    color: var(--text-muted, #777777);
    font-family: 'Montserrat', sans-serif;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
    text-decoration: none;
    background-color: var(--bg-main, #f5f5f5);
    border: 1px solid var(--border-color, #e5e5e5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition, 0.3s) cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow var(--transition, 0.3s) cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 16px 12px 12px;
    color: #ffffff;
    opacity: 0;
    transition: opacity var(--transition, 0.3s) ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-item-info {
    opacity: 1;
}

.gallery-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 4px 0;
}

.gallery-item-date {
    font-size: 0.75rem;
    opacity: 0.85;
    font-family: 'Montserrat', sans-serif;
}

/* Loading & Empty States */
.loading-placeholder, .empty-placeholder {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted, #777777);
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .news-gallery-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    #home-news-gallery {
        padding: 60px 0;
    }
}
