@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* ==========================================================================
   CBNU Research Group Portal - Design System & Responsive Mobile Layout
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #B72654; /* CBNU Red PANTONE 7425C (R183 G38 B84) */
    --primary-dark: #8E163E;
    --primary-light: #FFD2DF;
    --primary-bg: #FFF0F5;
    --secondary-color: #0F172A;
    --accent-color: #FFAEC5;
    --text-dark: #222222;
    --text-slate: #0F172A;
    --text-light: #666666;
    --text-muted: #888888;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --border-light: #EEEEEE;
    --hover-color: #8E163E;
    
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Inter', 'Noto Sans KR', sans-serif;
    --font-headline: 'Hanken Grotesk', 'Pretendard', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, background-color 0.25s ease;
}

ul, ol {
    list-style: none;
}

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

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* ── Header Styles ── */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.2s ease;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.logo-section:hover {
    opacity: 0.9;
}

.university-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.university-logo img {
    height: 52px;
    max-height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.project-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.project-logo h1 {
    font-family: var(--font-headline);
    color: #1E293B;
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.project-logo .subtitle {
    color: var(--primary-color);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 3px;
    letter-spacing: 0.01em;
}

/* ── Navigation Styles ── */
.main-nav {
    background: linear-gradient(90deg, #8E163E 0%, #B72654 48%, #760F33 100%);
    box-shadow: 0 3px 10px rgba(183, 38, 84, 0.22);
    position: relative;
    z-index: 1000;
}

.main-nav .container {
    position: relative;
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    flex: 1;
}

.nav-item > a {
    display: block;
    padding: 16px 16px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.96rem;
    text-align: center;
    letter-spacing: 0.02em;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    border-bottom: 3px solid transparent;
}

.nav-item > a:hover,
.nav-item.active > a {
    background-color: rgba(0, 0, 0, 0.16);
    border-bottom: 3px solid #FFAEC5;
    color: #FFFFFF;
}

/* ── Mobile Navigation: Always-Visible Horizontal Swipe Navigation Bar ── */
@media (max-width: 860px) {
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        min-height: 44px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    .main-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    .main-nav .container {
        padding: 0 4px;
        max-width: 100%;
        display: block;
    }
    .nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: max-content;
        min-width: 100%;
        margin: 0;
        padding: 0 4px;
    }
    .nav-item {
        flex: 0 0 auto;
    }
    .nav-item > a {
        display: block;
        padding: 12px 14px;
        font-size: 0.88rem;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
        border-bottom: 3px solid transparent;
        letter-spacing: 0.01em;
    }
    .nav-item > a:hover,
    .nav-item.active > a {
        background-color: rgba(255, 255, 255, 0.16);
        border-bottom: 3px solid #FFAEC5;
        color: #FFFFFF;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
    .project-logo h1 { font-size: 1.35rem; }
    .project-logo .subtitle { font-size: 0.78rem; }
    .university-logo img { height: 42px; }
}

@media (max-width: 480px) {
    .header-top {
        padding: 10px 0;
    }
    .project-logo h1 {
        font-size: 1.15rem;
        line-height: 1.15;
    }
    .project-logo .subtitle {
        font-size: 0.68rem;
    }
    .university-logo img {
        height: 36px;
        max-height: 36px;
    }
    .nav-item > a {
        padding: 11px 11px;
        font-size: 0.84rem;
    }
}

/* ── Hero Banner (Clean Pure Pantone 7425C Gradient) ── */
.hero-banner {
    background: linear-gradient(135deg, #C4285D 0%, #B72654 40%, #7A0E34 100%);
    color: #FFFFFF;
    padding: 95px 0 90px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -110px;
    right: 8%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    border: 3px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFD2DF;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-sub {
    font-size: 1.18rem;
    color: #FDF2F5;
    font-weight: 400;
    margin-bottom: 26px;
    line-height: 1.55;
}

.hero-divider {
    width: 48px;
    height: 3.5px;
    background: #FFD2DF;
    border-radius: 2px;
    margin-bottom: 26px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-keywords span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #FFFFFF;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.hero-keywords span:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-banner { 
        padding: 56px 0 50px; 
    }
    .hero-eyebrow {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }
    .hero-title { 
        font-size: 1.95rem;
        line-height: 1.25;
        margin-bottom: 14px;
    }
    .hero-sub { 
        font-size: 1.02rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .hero-divider {
        width: 40px;
        height: 3px;
        margin-bottom: 20px;
    }
    .hero-keywords {
        gap: 8px;
    }
    .hero-keywords span {
        font-size: 0.76rem;
        padding: 6px 13px;
    }
}

@media (max-width: 480px) {
    .hero-banner { 
        padding: 42px 0 38px; 
    }
    .hero-title { 
        font-size: 1.62rem; 
        line-height: 1.28;
    }
    .hero-sub { 
        font-size: 0.92rem;
        margin-bottom: 16px;
    }
    .hero-keywords span {
        font-size: 0.72rem;
        padding: 5px 11px;
    }
}

/* ── Subpage Header (Continuous Gradient Banner Matching Hero) ── */
.page-header {
    background: linear-gradient(135deg, #C4285D 0%, #B72654 40%, #7A0E34 100%);
    color: #FFFFFF;
    padding: 48px 0 42px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -90px;
    right: 6%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-headline);
    font-size: 2.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.page-breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-breadcrumb a {
    color: #FFD2DF;
    transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-breadcrumb span {
    color: #FFFFFF;
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-header {
        padding: 34px 0 28px;
        margin-bottom: 24px;
    }
    .page-title {
        font-size: 1.75rem;
        margin-bottom: 6px;
    }
    .page-breadcrumb {
        font-size: 0.78rem;
    }
}

/* ── Section Structure ── */
.home-section {
    padding: 40px 0 0;
}

.home-section:last-child {
    padding-bottom: 64px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.home-section-header h2 {
    font-family: var(--font-headline);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 10px;
}

.home-section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.home-section-header .more-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    align-self: flex-end;
}

.home-section-header .more-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

@media (max-width: 640px) {
    .home-section {
        padding: 28px 0 0;
    }
    .home-section-header h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    .home-section-header .more-link {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}

/* ── Research Laboratories / Lab Cards ── */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 14px 0 24px;
    align-items: stretch;
}

.research-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--white);
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
}

.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(185, 37, 85, 0.08);
    border-color: var(--primary-light);
    background: #FFFFFF;
}

.research-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.research-card-title {
    font-family: var(--font-headline);
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.research-card:hover .research-card-title {
    color: var(--primary-color);
}

.research-card-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.research-card:hover .research-card-link-icon {
    color: var(--primary-color);
    transform: translate(2px, -2px);
}

.research-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.research-keyword {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    background: var(--primary-bg);
    color: var(--primary-color);
    border-radius: 4px;
    padding: 3px 8px;
    border: 1px solid var(--primary-light);
}

.research-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .research-grid { 
        grid-template-columns: 1fr; 
        gap: 14px;
        padding: 10px 0 20px;
    }
    .research-card {
        padding: 18px 18px;
    }
    .research-card-title {
        font-size: 1.06rem;
    }
    .research-keyword {
        font-size: 0.72rem;
        padding: 2px 7px;
    }
    .research-desc {
        font-size: 0.88rem;
        line-height: 1.6;
    }
}

/* ── Home Page Recent Publications Showcase ── */
.home-pub-list {
    display: flex;
    flex-direction: column;
}

.home-pub-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 6px;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.home-pub-item:hover {
    background-color: #FAFAFA;
}

.home-pub-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-pub-title {
    font-family: var(--font-headline);
    font-size: 0.98rem;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
    line-height: 1.42;
    transition: color 0.2s ease;
}

.home-pub-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.home-pub-venue {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    margin: 0;
}

.home-pub-date {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: #94A3B8;
    font-weight: 600;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .home-pub-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        padding: 12px 2px;
    }
    .home-pub-title {
        font-size: 0.92rem;
        line-height: 1.4;
    }
    .home-pub-venue {
        font-size: 0.78rem;
    }
    .home-pub-date {
        font-size: 0.76rem;
        color: #94A3B8;
        align-self: flex-start;
        margin-top: 0;
    }
}

/* ── Notice / News List on Home ── */
.home-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-notice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 6px;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.home-notice-item:hover {
    background-color: #FAFAFA;
}

.home-notice-item .notice-title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-headline);
    font-size: 0.95rem;
    color: #0F172A;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.2s ease;
}

.home-notice-item .notice-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.home-notice-item .notice-date {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: #94A3B8;
    font-weight: 500;
}

@media (max-width: 640px) {
    .home-notice-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        padding: 12px 2px;
    }
    .home-notice-item .notice-title {
        white-space: normal;
        font-size: 0.92rem;
        line-height: 1.4;
    }
    .home-notice-item .notice-date {
        font-size: 0.76rem;
        align-self: flex-start;
    }
}

/* ── Gallery Showcase on Home ── */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 14px;
}

@media (max-width: 992px) {
    .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .home-gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.home-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: #0F172A;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
}

.home-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
    border-color: var(--primary-color);
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.home-gallery-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
}

.home-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 36px 16px 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.96) 100%);
    color: #FFFFFF;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-gallery-item:hover .home-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .home-gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-gallery-title {
    font-family: var(--font-headline);
    font-size: 0.95rem;
    font-weight: 750;
    color: #FFFFFF;
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ── About Page Styles ── */
.about-section {
    padding: 56px 0;
    max-width: 1080px;
}

.about-section + .about-section {
    border-top: 1px solid var(--border-light);
    padding-top: 56px;
}

.about-section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.about-section h2 {
    font-family: var(--font-headline);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.about-section p {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.85;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0 0 16px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.about-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.about-card h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.about-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 10px;
    word-break: keep-all;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-card-meta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .about-section {
        padding: 34px 0;
    }
    .about-section + .about-section {
        padding-top: 34px;
    }
    .about-section h2 {
        font-size: 1.5rem;
        margin-bottom: 14px;
    }
    .about-section p {
        font-size: 0.94rem;
        line-height: 1.75;
        margin-bottom: 12px;
    }
    .about-cards {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 20px;
    }
    .about-card {
        padding: 20px 18px;
    }
    .about-card h3 {
        font-size: 1.08rem;
    }
    .about-card p {
        font-size: 0.88rem;
        line-height: 1.6;
    }
}

/* ── People Page Styles ── */
.people-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 36px 0 30px;
}

.tab-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-headline);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.people-section {
    margin-bottom: 50px;
}

.people-section-title {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary-color);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 28px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 36px 24px;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.person-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    aspect-ratio: 1 / 1;
    border: 4px solid #F1D4DF;
    margin-bottom: 14px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    box-shadow: 0 6px 18px rgba(185, 37, 85, 0.10);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.person-card:hover .person-photo {
    border-color: var(--primary-color);
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(185, 37, 85, 0.20);
}

.person-name {
    font-family: var(--font-headline);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
}

.person-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 6px;
}

.person-email {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #64748B;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    word-break: break-all;
}

.person-email:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .people-tabs {
        margin: 20px 0 20px;
        gap: 6px;
    }
    .tab-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .people-section {
        margin-bottom: 36px;
    }
    .people-section-title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
    .person-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
        margin-bottom: 10px;
    }
    .person-name {
        font-size: 0.94rem;
    }
    .person-title {
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 8px;
    }
    .person-photo {
        width: 100px;
        height: 100px;
    }
    .person-name {
        font-size: 0.88rem;
    }
}

/* ── Publications Page Styles ── */
.pub-toolbar {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-toolbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.pub-category-tabs {
    margin: 0 !important;
}

.pub-lab-filter-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-filter-label {
    font-family: var(--font-headline);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.pub-select-control {
    padding: 8px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--font-headline);
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-select-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(185, 37, 85, 0.12);
}

.pub-toolbar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.pub-search-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 480px;
}

.pub-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 20px;
    pointer-events: none;
}

.pub-search-input {
    width: 100%;
    padding: 9px 14px 9px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(185, 37, 85, 0.12);
}

.pub-count-text {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748B;
}

.pub-year-section {
    margin-bottom: 44px;
}

.pub-year-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 18px;
}

.pub-year-heading {
    font-family: var(--font-headline);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.pub-year-count {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: #94A3B8;
}

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

.pub-entry {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 18px 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pub-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E1;
}

.pub-header-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.pub-title {
    font-family: var(--font-headline);
    font-size: 1.04rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.45;
}

.pub-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.award-badge {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
}

.rank-badge {
    background: #EFF6FF;
    border: 1px solid #93C5FD;
    color: #1D4ED8;
}

.badge-hci {
    background: #FDF2F8;
    border: 1px solid #F472B6;
    color: #BE185D;
}

.badge-dm {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #15803D;
}

.badge-joint {
    background: #FAF5FF;
    border: 1px solid #C084FC;
    color: #7E22CE;
}

.badge-domestic {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
}

.pub-authors {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 6px;
    line-height: 1.5;
}

.pub-authors strong {
    color: #0F172A;
    font-weight: 700;
}

.pub-venue {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-color);
    font-style: italic;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.45;
}

.pub-links-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pub-btn-icon {
    font-size: 15px !important;
}

.pub-link-pdf {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #FCA5A5;
}
.pub-link-pdf:hover { background: #B91C1C; color: #FFFFFF; }

.pub-link-doi {
    background: #E0E7FF;
    color: #3730A3;
    border-color: #A5B4FC;
}
.pub-link-doi:hover { background: #3730A3; color: #FFFFFF; }

.pub-link-dl {
    background: #F3E8FF;
    color: #6B21A8;
    border-color: #D8B4FE;
}
.pub-link-dl:hover { background: #6B21A8; color: #FFFFFF; }

.pub-link-arxiv {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
}
.pub-link-arxiv:hover { background: #92400E; color: #FFFFFF; }

.pub-link-media {
    background: #F1F5F9;
    color: #334155;
    border-color: #CBD5E1;
}
.pub-link-media:hover { background: #334155; color: #FFFFFF; }

.pub-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    color: #64748B;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .pub-toolbar {
        padding: 16px 16px;
        margin: 16px 0 24px;
        gap: 12px;
    }
    .pub-toolbar-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .pub-category-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0 !important;
    }
    .pub-lab-filter-wrap {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .pub-select-control {
        flex: 1;
        max-width: 200px;
    }
    .pub-toolbar-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 10px;
    }
    .pub-search-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .pub-count-text {
        text-align: right;
        font-size: 0.78rem;
    }
    .pub-year-section {
        margin-bottom: 32px;
    }
    .pub-year-header {
        margin-bottom: 14px;
    }
    .pub-year-heading {
        font-size: 1.35rem;
    }
    .pub-year-count {
        font-size: 0.78rem;
    }
    .pub-entry {
        padding: 14px 14px;
    }
    .pub-title {
        font-size: 0.94rem;
        line-height: 1.42;
    }
    .pub-authors {
        font-size: 0.84rem;
        line-height: 1.45;
        margin-bottom: 4px;
    }
    .pub-venue {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    .pub-badges-wrap {
        gap: 4px;
        margin: 6px 0;
    }
    .pub-badge {
        font-size: 0.68rem;
        padding: 2px 6px;
    }
    .pub-links-bar {
        gap: 6px;
        margin-top: 8px;
        padding-top: 8px;
    }
    .pub-btn {
        font-size: 0.72rem;
        padding: 4px 8px;
    }
}

/* ── Table & Pagination Styles ── */
.notice-table {
    width: 100%;
    border-collapse: collapse;
}

.notice-row {
    display: flex;
    align-items: center;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.notice-row:hover:not(.notice-header-row) {
    background-color: var(--bg-light);
}

.notice-header-row {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 4px;
}

.notice-num { width: 60px; text-align: center; flex-shrink: 0; font-family: var(--font-mono); }
.notice-subject { flex: 1; font-weight: 500; padding: 0 12px; }
.notice-subject a { color: #222; text-decoration: none; font-weight: 600; }
.notice-subject a:hover { color: var(--primary-color); text-decoration: underline; }
.notice-author { width: 140px; text-align: center; flex-shrink: 0; font-size: 0.85rem; color: #777; }
.notice-date-col { width: 110px; text-align: center; flex-shrink: 0; font-family: var(--font-mono); font-size: 0.82rem; color: #999; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.page-link-btn,
.pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: #475569;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-link-btn.active,
.page-link-btn:hover,
.pagination button.active,
.pagination button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@media (max-width: 640px) {
    .notice-header-row {
        display: none;
    }
    .notice-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px 6px;
        gap: 4px 10px;
    }
    .notice-num {
        order: 0;
        width: auto;
        font-size: 0.72rem;
        background: var(--bg-light);
        color: #64748B;
        padding: 1px 6px;
        border-radius: 4px;
        border: 1px solid var(--border-color);
        font-weight: 600;
    }
    .notice-subject {
        order: 1;
        width: 100%;
        flex: none;
        padding: 3px 0;
        font-size: 0.92rem;
        line-height: 1.4;
    }
    .notice-author {
        order: 2;
        width: auto;
        font-size: 0.75rem;
        color: #94A3B8;
        text-align: left;
    }
    .notice-date-col {
        order: 3;
        width: auto;
        font-size: 0.75rem;
        color: #94A3B8;
        text-align: right;
        margin-left: auto;
    }
    .pagination {
        margin-top: 24px;
        gap: 4px;
    }
    .page-link-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ── Post Detail Article & Board Template ── */
.post-detail-wrapper {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 70px;
}

.post-detail-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

/* Post Detail Header */
.post-detail-header {
    padding: 36px 36px 24px;
    border-bottom: 1.5px solid var(--border-light);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFE 100%);
}

.post-detail-title {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.4;
    margin: 0 0 16px;
    letter-spacing: -0.015em;
    word-break: keep-all;
}

.post-detail-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: #64748B;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta-item .material-symbols-outlined {
    font-size: 17px;
    color: #94A3B8;
}

/* Post Detail Body & Markdown Typography */
.post-detail-body {
    padding: 36px 36px 40px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    font-family: var(--font-headline);
    color: #0F172A;
    font-weight: 750;
    margin-top: 1.8em;
    margin-bottom: 0.75em;
    line-height: 1.35;
}

.markdown-body h1 {
    font-size: 1.6rem;
    font-weight: 800;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 8px;
}

.markdown-body h2 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    border-bottom: 1.5px solid var(--border-light);
    padding-bottom: 6px;
}

.markdown-body h3 {
    font-size: 1.15rem;
    color: #1E293B;
}

.markdown-body h4 {
    font-size: 1.02rem;
    color: #334155;
}

.markdown-body p {
    margin-top: 0;
    margin-bottom: 1.3em;
}

.markdown-body ul,
.markdown-body ol {
    margin: 0.8em 0 1.3em;
    padding-left: 1.6em;
}

.markdown-body li {
    margin-bottom: 0.45em;
    line-height: 1.75;
}

.markdown-body li > p {
    margin-bottom: 0.45em;
}

.markdown-body li strong {
    color: #0F172A;
    font-weight: 700;
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary-color);
    background: #FFF5F8;
    padding: 16px 20px;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
    color: #475569;
}

.markdown-body blockquote p:last-child {
    margin-bottom: 0;
}

.markdown-body hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 2.2em 0;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.markdown-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: #F1F5F9;
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

.markdown-body pre {
    background: #0F172A;
    color: #F8FAFC;
    padding: 18px 22px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.markdown-body pre code {
    background: transparent;
    color: inherit;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.markdown-body th {
    background: #F8FAFC;
    color: #1E293B;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #CBD5E1;
    text-align: left;
    font-family: var(--font-headline);
}

.markdown-body td {
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    color: #475569;
}

.markdown-body a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.markdown-body a:hover {
    color: var(--primary-dark);
}

/* Post Attachments Box */
.notice-attachments {
    margin: 0 36px 30px;
    padding: 18px 22px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.notice-attachments h3 {
    font-family: var(--font-headline);
    font-size: 0.95rem;
    font-weight: 750;
    color: #1E293B;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.attachment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.attachment-item a:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Post Detail Action Footer */
.post-detail-footer {
    padding: 24px 0 0;
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: #334155;
    font-family: var(--font-headline);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #94A3B8;
}

@media (max-width: 768px) {
    .post-detail-wrapper {
        padding-bottom: 40px;
    }
    .post-detail-header {
        padding: 22px 16px 16px;
    }
    .post-detail-title {
        font-size: 1.32rem;
        line-height: 1.35;
        margin-bottom: 12px;
    }
    .post-detail-meta-bar {
        gap: 12px;
        font-size: 0.78rem;
    }
    .post-detail-body {
        padding: 20px 16px 28px;
        font-size: 0.95rem;
        line-height: 1.75;
    }
    .markdown-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }
    .markdown-body th,
    .markdown-body td {
        padding: 8px 10px;
    }
    .markdown-body pre {
        padding: 14px 16px;
        font-size: 0.84rem;
    }
    .notice-attachments {
        margin: 0 16px 16px;
        padding: 12px 14px;
    }
    .post-detail-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 14px;
    }
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
}

/* ── Fallback 404 Card ── */
.post-fallback-box {
    text-align: center;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.post-fallback-icon {
    font-size: 54px !important;
    color: var(--primary-color);
    opacity: 0.8;
}

.post-fallback-title {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.post-fallback-desc {
    font-size: 0.95rem;
    color: #64748B;
    max-width: 440px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.post-fallback-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Footer ── */
.footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 44px 0 28px;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-info h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-info p {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 20px;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer {
        padding: 36px 0 24px;
        margin-top: 40px;
    }
    .footer-content {
        gap: 16px;
        padding-bottom: 18px;
    }
    .footer-info h3 {
        font-size: 1.08rem;
    }
    .footer-info p {
        font-size: 0.82rem;
        line-height: 1.55;
    }
    .footer-bottom {
        padding-top: 16px;
        font-size: 0.78rem;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
