/*
 * 국어국문학과 대학원 연합 학술교류회 아카이브
 * styles.css - 디자인 시스템, 테마 및 애니메이션
 */

/* --------------------------------------------------------------------------
   1. Design System & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-academic: 'Gowun Batang', Georgia, serif;
  --font-sans: 'Noto Sans KR', sans-serif;

  /* Color Palette - Light (Traditional Korean Paper & Gold Theme) */
  --bg-primary: #fcfbfa; /* 한지 느낌의 부드러운 백색 */
  --bg-secondary: #f6f3ed; /* 한지 미색 */
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.75);
  
  --text-primary: #22262a; /* 묵빛 먹색 */
  --text-secondary: #5a6066;
  --text-muted: #8c9399;
  
  --color-gold: #b28e5c; /* 전통 황금빛 옥색 포인트 */
  --color-gold-hover: #967448;
  --color-gold-light: rgba(178, 142, 92, 0.1);
  
  --color-jade: #6b8f81; /* 청자비취색 */
  --color-jade-light: rgba(107, 143, 129, 0.1);
  
  --border-color: #e6e2da;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(178, 142, 92, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);

  --hdr-bg: rgba(252, 251, 250, 0.85);
  --hdr-blur: saturate(180%) blur(20px);

  /* Transition speeds */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Category Colors (Light Theme) */
  --cat-ling-bg: rgba(74, 108, 122, 0.1);
  --cat-ling-color: #3b5a68;
  --cat-class-bg: rgba(178, 142, 92, 0.1);
  --cat-class-color: #926f3e;
  --cat-modern-bg: rgba(162, 90, 83, 0.1);
  --cat-modern-color: #a04940;
  --cat-edu-bg: rgba(107, 143, 129, 0.1);
  --cat-edu-color: #4f7366;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-primary: #0f1319; /* 깊은 밤 묵색 */
  --bg-secondary: #161c24;
  --bg-card: #1c232e;
  --bg-card-glass: rgba(28, 35, 46, 0.75);
  
  --text-primary: #e6ecf2;
  --text-secondary: #a3b0bd;
  --text-muted: #647380;
  
  --color-gold: #d4b282; /* 밝은 황금빛 */
  --color-gold-hover: #e5ccaa;
  --color-gold-light: rgba(212, 178, 130, 0.15);
  
  --color-jade: #88af9f;
  --color-jade-light: rgba(136, 175, 159, 0.15);
  
  --border-color: #2b3542;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);

  --hdr-bg: rgba(15, 19, 25, 0.85);
  
  /* Category Colors (Dark Theme) */
  --cat-ling-bg: rgba(118, 169, 191, 0.15);
  --cat-ling-color: #98c6d9;
  --cat-class-bg: rgba(212, 178, 130, 0.15);
  --cat-class-color: #e2cbb0;
  --cat-modern-bg: rgba(224, 147, 139, 0.15);
  --cat-modern-color: #f7b1aa;
  --cat-edu-bg: rgba(136, 175, 159, 0.15);
  --cat-edu-color: #a8cfc0;
}

/* --------------------------------------------------------------------------
   2. Base Styles
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-academic);
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Scroll indicator bar */
#scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1100;
}

#scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-jade), var(--color-gold));
  transition: width 0.05s ease-out;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--hdr-bg);
  backdrop-filter: var(--hdr-blur);
  -webkit-backdrop-filter: var(--hdr-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 24px;
  color: var(--color-gold);
  background: var(--color-gold-light);
  padding: 8px;
  border-radius: 8px;
}

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

.logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.logo-title {
  font-size: 18px;
  line-height: 1.2;
}

/* Nav Menu */
#nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-item {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item:hover::after {
  width: 100%;
}

.btn-highlight {
  background-color: var(--color-gold-light);
  color: var(--color-gold) !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid rgba(178, 142, 92, 0.3);
}

.btn-highlight:hover {
  background-color: var(--color-gold);
  color: #fff !important;
}

.btn-highlight::after {
  display: none;
}

/* Theme Toggle & Mobile Menu Toggle */
.header-utilities {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  padding: 140px 24px 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, var(--bg-secondary) 0%, var(--bg-primary) 90%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  background-image: radial-gradient(var(--text-primary) 1px, transparent 0);
  background-size: 24px 24px;
}

.hero-container {
  max-width: 900px;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  background-color: var(--color-gold-light);
  color: var(--color-gold);
  font-family: var(--font-academic);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(178, 142, 92, 0.2);
}

.hero-title {
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--color-gold);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 40px;
  line-height: 1.8;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-btn {
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.primary-btn {
  background-color: var(--color-gold);
  color: #ffffff;
}

.primary-btn:hover {
  background-color: var(--color-gold-hover);
}

.secondary-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.secondary-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 64px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  width: 100%;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-academic);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* Hero Section: 8th Conference Announcement Card */
.hero-next-announcement {
  margin: 32px auto 40px auto;
  max-width: 620px;
  width: 90%;
  padding: 28px 40px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-next-announcement:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(178, 142, 92, 0.35);
}

/* 전통 격자 문양을 모티브로 한 내측 점선 테두리 */
.hero-next-announcement::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed rgba(178, 142, 92, 0.25);
  border-radius: 8px;
  pointer-events: none;
}

.announcement-inner {
  position: relative;
  z-index: 2;
}

.announcement-flower {
  font-size: 22px;
  color: var(--color-gold);
  margin-bottom: 12px;
  opacity: 0.85;
  display: inline-block;
  animation: rotateFlower 20s linear infinite;
}

@keyframes rotateFlower {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.announcement-text {
  font-family: var(--font-academic);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

/* 반응형 모바일 조정 */
@media (max-width: 768px) {
  .hero-next-announcement {
    padding: 20px 24px;
    margin: 24px auto 32px auto;
  }
  .announcement-text {
    font-size: 16px;
    line-height: 1.6;
  }
  .announcement-flower {
    font-size: 18px;
    margin-bottom: 8px;
  }
}

/* --------------------------------------------------------------------------
   5. Section Standard Layouts
   -------------------------------------------------------------------------- */
section {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-family: var(--font-academic);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.section-title {
  font-size: 36px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.title-underline {
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 0 auto 20px auto;
}

.section-description {
  font-size: 15px;
  color: var(--text-secondary);
  word-break: keep-all;
}

/* --------------------------------------------------------------------------
   6. Timeline Section (1st - 6th history)
   -------------------------------------------------------------------------- */
.timeline-section {
  background-color: var(--bg-secondary);
}

.timeline-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-container-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px;
}

.timeline-item.odd {
  left: 0;
  text-align: right;
}

.timeline-item.even {
  left: 50%;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  top: 24px;
  display: flex;
  align-items: center;
  z-index: 10;
}

.timeline-item.odd .timeline-marker {
  right: -24px;
}

.timeline-item.even .timeline-marker {
  left: -24px;
}

.marker-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--color-gold-light);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .marker-dot {
  transform: scale(1.3);
}

.marker-number {
  position: absolute;
  font-family: var(--font-academic);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gold);
  background-color: var(--bg-primary);
  padding: 2px 6px;
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  white-space: nowrap;
}

.timeline-item.odd .marker-number {
  right: 28px;
}

.timeline-item.even .marker-number {
  left: 28px;
}

/* Timeline Card */
.timeline-card {
  background-color: var(--bg-card);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.timeline-item:hover .timeline-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(178, 142, 92, 0.4);
}

.card-header-badge {
  display: inline-block;
  font-family: var(--font-academic);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold);
  background: var(--color-gold-light);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.timeline-host {
  font-size: 22px;
  margin-bottom: 8px;
}

.timeline-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-item.odd .timeline-date {
  justify-content: flex-end;
}

.timeline-theme-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: keep-all;
}

.timeline-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.timeline-item.odd .timeline-actions {
  justify-content: flex-end;
}

.timeline-item.even .timeline-actions {
  justify-content: flex-start;
}

.timeline-action-btn,
.timeline-download-btn {
  background: none;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: normal;
  word-break: keep-all;
  max-width: 100%;
  text-align: center;
}

.timeline-action-btn:hover,
.timeline-download-btn:hover {
  background-color: var(--color-gold);
  color: #fff;
}

/* --------------------------------------------------------------------------
   7. Archive Section (Explorer & Search)
   -------------------------------------------------------------------------- */
.archive-section {
  background-color: var(--bg-primary);
}

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

/* Filter panel Glassmorphism card */
.card-glass {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: 20px;
}

.filter-panel {
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-top-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
}

#search-input {
  width: 100%;
  padding: 14px 14px 14px 46px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#search-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-light);
}

/* Select Box wrapper */
.select-box-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.select-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

#round-filter {
  flex-grow: 1;
  padding: 12px 20px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23b28e5c' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--transition-fast);
}

#round-filter:focus {
  border-color: var(--color-gold);
}

/* Category Filter Buttons */
.category-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.filter-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.category-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.category-btn.active {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: #ffffff;
}

/* Results metadata bar */
.results-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 4px;
}

.result-count-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.active-filters-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-badges-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-label {
  font-size: 12px;
  color: var(--text-muted);
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 14px;
  color: var(--text-secondary);
}

.remove-badge-btn {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  transition: color var(--transition-fast);
}

.remove-badge-btn:hover {
  color: var(--text-primary);
}

.clear-all-filters-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--color-gold);
  cursor: pointer;
  margin-left: 4px;
  font-weight: 500;
  text-decoration: underline;
}

/* Presentations Grid */
.presentations-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border-radius: 20px;
  border: 1px dashed var(--border-color);
}

.no-results i {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 16px;
}

.no-results p {
  font-size: 16px;
  margin-bottom: 20px;
}

.reset-filter-btn {
  background-color: var(--color-gold);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.reset-filter-btn:hover {
  background-color: var(--color-gold-hover);
}

/* --------------------------------------------------------------------------
   8. Presentation Card Styling (Proceeding Card Customization)
   -------------------------------------------------------------------------- */
.presentation-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.presentation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(178, 142, 92, 0.3);
}

/* University Accent Top Bar Color */
.presentation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--univ-color, var(--color-gold));
  border-radius: 16px 16px 0 0;
}

.p-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.p-round-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.p-category-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Category Colors mapped dynamically in JS using custom styles */
.cat-korean-linguistics {
  background-color: var(--cat-ling-bg);
  color: var(--cat-ling-color);
}

.cat-classical-lit {
  background-color: var(--cat-class-bg);
  color: var(--cat-class-color);
}

.cat-modern-lit {
  background-color: var(--cat-modern-bg);
  color: var(--cat-modern-color);
}

.cat-education {
  background-color: var(--cat-edu-bg);
  color: var(--cat-edu-color);
}

.p-title {
  font-family: var(--font-academic);
  font-size: 20px;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 16px;
  word-break: keep-all;
  flex-grow: 1;
  color: var(--text-primary);
}

.p-roles-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  background-color: var(--bg-secondary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

@media (min-width: 769px) {
  .p-role-box.presenter-box {
    border-right: 1px dashed var(--border-color);
    padding-right: 16px;
  }
}

.p-role-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-role-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--univ-color, var(--color-gold));
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-role-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.p-role-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Action buttons block */
/* Direct Abstract Display in Card Body */
.p-abstract-container {
  margin-top: 16px;
  position: relative;
}

.p-abstract-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--univ-color, var(--color-gold));
  margin-bottom: 8px;
}

.p-abstract-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 0;
  word-break: keep-all;
}

.p-meta-info {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toggle-icon {
  transition: transform var(--transition-normal);
}

.presentation-card.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
#main-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 64px 24px 32px 24px;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 480px;
}

.footer-logo {
  font-family: var(--font-academic);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-univ-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.footer-univ-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-univ-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-social {
  position: relative;
}

.social-tooltip {
  font-size: 13px;
  color: var(--color-jade);
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   10. Floating Utilities & Scroll Elements
   -------------------------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-gold);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   11. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* --------------------------------------------------------------------------
   12. Responsive Design (Mobile / Tablet Media Queries)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 38px;
  }
  
  .timeline-wrapper {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  /* Header mobile behavior */
  .menu-toggle-btn {
    display: flex;
  }
  
  #nav-menu {
    position: fixed;
    top: 70px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    z-index: 999;
    transition: left var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  #nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 24px;
  }
  
  .nav-item {
    font-size: 18px;
    width: 100%;
    display: block;
  }
  
  .btn-highlight {
    display: inline-block;
    padding: 10px 24px;
  }
  
  /* Hamburger open animation */
  .menu-toggle-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero Section mobile */
  .hero-section {
    min-height: auto;
    padding: 110px 24px 60px 24px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 40px;
  }
  
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex: 1 1 100px;
  }
  
  /* Timeline Section mobile layout */
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    width: 100% !important;
    padding-left: 44px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-item.even {
    left: 0;
  }
  
  .timeline-item.odd .timeline-marker {
    right: auto;
    left: -24px;
  }
  
  .timeline-item.odd .timeline-date {
    justify-content: flex-start;
  }
  
  .timeline-item.odd .timeline-actions {
    justify-content: flex-start !important;
  }
  
  .timeline-item.odd .marker-number, 
  .timeline-item.even .marker-number {
    left: 28px;
    right: auto;
  }

  /* Archive filter mobile */
  .filter-top-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-filter-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .presentations-layout-grid {
    grid-template-columns: 1fr;
  }

  .p-roles-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .p-role-box.presenter-box {
    border-bottom: 1px dashed var(--border-color);
    border-right: none;
    padding-bottom: 12px;
    padding-right: 0;
  }
  
  /* Footer mobile */
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-univ-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   5. Notice Section (7th Conference)
   -------------------------------------------------------------------------- */
.notice-section {
  padding: 100px 24px 40px 24px;
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

/* adjust hero top padding when notice is present */
.notice-section + .hero-section {
  padding-top: 80px;
}

.notice-container {
  max-width: 1200px;
  width: 100%;
  padding: 40px;
  background: var(--bg-card-glass);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.notice-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.notice-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(var(--color-gold-light) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.4;
  border-radius: 0 24px 0 0;
  pointer-events: none;
}

.notice-badge-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.notice-badge {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold);
  background-color: var(--color-gold-light);
  padding: 6px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.05em;
}

.notice-badge i {
  margin-right: 4px;
}

.notice-dday-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-jade), var(--color-gold));
  padding: 6px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.notice-title {
  font-family: var(--font-academic);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.notice-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin-bottom: 32px;
  border-radius: 2px;
}

.notice-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
}

.notice-info-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.notice-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-item-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.notice-item-label i {
  margin-right: 4px;
}

.notice-item-value {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
}

.notice-item.highlight-border {
  border-left: 3px solid var(--color-gold);
  padding-left: 16px;
  background-color: var(--color-gold-light);
  border-radius: 0 8px 8px 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

.notice-email {
  color: var(--color-gold);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.notice-email:hover {
  border-bottom-color: var(--color-gold);
}

.notice-directions-col {
  background-color: var(--bg-primary);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.directions-subtitle {
  font-family: var(--font-academic);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.directions-subtitle i {
  margin-right: 4px;
}

.direction-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.direction-type i {
  margin-right: 4px;
}

.direction-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.direction-list li {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 14px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.direction-list li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--color-gold);
}

.map-links-wrapper {
  margin-top: 10px;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
}

.map-links-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.map-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.map-icon-bg {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
}

.naver-map .map-icon-bg {
  background-color: #03C75A;
}
.naver-map:hover {
  border-color: #03C75A;
  background-color: rgba(3, 199, 90, 0.05);
  color: #03C75A;
}

.kakao-map .map-icon-bg {
  background-color: #FEE500;
  color: #191919;
}
.kakao-map:hover {
  border-color: #FEE500;
  background-color: rgba(254, 229, 0, 0.05);
  color: #c98a00;
}

.google-map .map-icon-bg {
  background-color: #4285F4;
}
.google-map:hover {
  border-color: #4285F4;
  background-color: rgba(66, 133, 244, 0.05);
  color: #4285F4;
}

.btn-highlight-notice {
  color: var(--color-gold) !important;
  font-weight: 700 !important;
}

.btn-highlight-notice:hover {
  color: var(--color-gold-hover) !important;
}

/* Notice Section Responsive */
@media (max-width: 992px) {
  .notice-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .notice-container {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .notice-section {
    padding-top: 90px;
  }
  .notice-title {
    font-size: 22px;
  }
  .map-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   Notice Section: 7th Conference Program Timetable
   ========================================================================== */
.notice-program-wrapper {
  margin-top: 40px;
  border-top: 1px dashed var(--border-color);
  padding-top: 40px;
}

.notice-program-header {
  margin-bottom: 24px;
  text-align: left;
}

.program-section-title {
  font-family: var(--font-academic);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.program-section-title i {
  color: var(--color-gold);
}

.program-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-secondary);
}

.program-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.program-track-col {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.program-track-col:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(178, 142, 92, 0.2);
}

.track-header {
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

.track-title {
  font-family: var(--font-academic);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
}

.program-slot-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.program-slot-card:hover {
  border-color: var(--color-gold);
  background-color: var(--color-gold-light);
}

.slot-time-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-jade);
  background-color: var(--color-jade-light);
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

.slot-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: keep-all;
}

.slot-people {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

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

.person-role {
  font-weight: 600;
  color: var(--text-muted);
}

.person-info {
  text-align: right;
}

.person-name {
  font-weight: 600;
  color: var(--text-primary);
}

.person-univ {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Responsive adjustment for program timetable */
@media (max-width: 1200px) {
  .program-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .program-grid-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Header '7회 자료집 다운로드' 특별 강조 스타일
   ========================================================================== */
.btn-download-menu {
  color: #7A3B2E !important;
  border: 1px solid rgba(122, 59, 46, 0.4);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-download-menu:hover {
  background-color: #FDF4F2;
  border-color: #7A3B2E;
  color: #7A3B2E !important;
}

.btn-download-menu::after {
  display: none;
}

/* 모바일 및 반응형 처리 */
@media (max-width: 768px) {
  .btn-download-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    margin-top: 4px;
    width: auto;
  }
}

