/* =============================================
   이동학 포트폴리오 - 메인 스타일시트
   ============================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --green: #10b981;
  --green-dark: #059669;
  --green-light: #d1fae5;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --dark: #f1f5f9;
  --dark-2: #e2e8f0;
  --dark-3: #cbd5e1;
  --gray: #94a3b8;
  --gray-light: #64748b;
  --border: #1e293b;
  --bg: #0f172a;
  --white: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

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

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,0.92);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.navbar-logo-dot {
  width: 10px; height: 10px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-radius: 50%;
}

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

.navbar-nav a {
  display: block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

[data-theme="dark"] .navbar-nav a:hover,
[data-theme="dark"] .navbar-nav a.active {
  background: rgba(37,99,235,0.15);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-theme {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray);
  transition: var(--transition);
}

.btn-theme:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-contact-nav {
  background: var(--primary);
  color: white !important;
  border-radius: 8px;
  padding: 7px 18px !important;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-contact-nav:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--primary); background: var(--primary-light); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
  color: white;
}

.btn-green {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-body {
  padding: 24px;
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-badge.green {
  background: var(--green-light);
  color: var(--green-dark);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Tag/Badge ── */
.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

.tag-green { background: var(--green-light); color: var(--green-dark); }
.tag-yellow { background: #fef3c7; color: #d97706; }
.tag-red { background: #fee2e2; color: #dc2626; }
.tag-purple { background: #ede9fe; color: #7c3aed; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #064e3b 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(16,185,129,0.12) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.hero-stat-item strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.hero-stat-item span {
  font-size: 0.8rem;
  color: #94a3b8;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
}

.hero-image-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 32px 24px 24px;
}

.hero-image-overlay-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

.hero-image-overlay-role {
  font-size: 0.875rem;
  color: #94a3b8;
}

.hero-float-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  white-space: nowrap;
  z-index: 2;
}

.hero-float-card-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-float-card-label {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ── Metrics Section ── */
.metrics-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.metric-card {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.metric-card:last-child { border-right: none; }

.metric-card:hover {
  background: var(--primary-light);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-unit {
  font-size: 0.85rem;
  color: var(--gray);
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0 4px;
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--gray-light);
}

/* ── Column Cards ── */
.column-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.column-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.column-thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
}

.column-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.column-card:hover .column-thumb img {
  transform: scale(1.05);
}

.column-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.column-date {
  font-size: 0.8rem;
  color: var(--gray-light);
}

.column-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.column-summary {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
}

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

.column-readtime {
  font-size: 0.8rem;
  color: var(--gray-light);
}

/* ── Media Cards ── */
.media-youtube-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.media-youtube-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.yt-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: var(--transition);
}

.yt-thumb:hover img { opacity: 1; }

.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(255,0,0,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.yt-thumb:hover .yt-play-btn {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-play-btn::after {
  content: '';
  border: solid transparent;
  border-left-color: white;
  border-width: 8px 0 8px 16px;
  margin-left: 4px;
}

.yt-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.yt-body {
  padding: 16px;
}

.yt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.yt-meta {
  font-size: 0.8rem;
  color: var(--gray-light);
}

/* ── News Cards ── */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.news-outlet {
  min-width: 64px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  padding: 0 8px;
}

.news-content { flex: 1; }

.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-summary {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 8px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--gray-light);
}

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
}

.newsletter-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.newsletter-inner p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-input:focus {
  border-color: white;
  background: rgba(255,255,255,0.15);
}

.newsletter-input.error { border-color: #fca5a5; }

/* ── Footer ── */
footer {
  background: var(--dark-2);
  color: #94a3b8;
  padding: 60px 0 32px;
}

[data-theme="dark"] footer {
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
  color: #94a3b8;
}

.footer-social-btn:hover {
  background: var(--primary);
  color: white;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover { color: white; }

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

.footer-copy {
  font-size: 0.83rem;
}

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.1) 0%, transparent 70%);
}

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

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* ── About Page ── */
.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-card-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}

.profile-img-side {
  position: relative;
}

.profile-img-side img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.profile-info-side {
  padding: 40px;
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.profile-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.profile-bio {
  font-size: 0.98rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 28px;
}

.profile-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.profile-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray);
}

.profile-contact-list li span:first-child {
  font-size: 1.1rem;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--green));
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── Books ── */
.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.book-card-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.book-cover-wrap {
  position: relative;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.book-cover-wrap img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.book-info {
  padding: 36px;
}

.book-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.book-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
}

.book-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.book-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.book-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.book-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.book-stat-item {
  text-align: center;
}

.book-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.book-stat-label {
  font-size: 0.75rem;
  color: var(--gray-light);
}

.book-buy-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Tabs ── */
.tab-list {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 40px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .tab-btn.active {
  background: var(--dark-2);
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.search-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  margin-left: auto;
}

.search-wrap input {
  padding: 9px 14px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
  color: var(--dark);
  width: 220px;
}

.search-wrap span {
  padding: 0 14px;
  color: var(--gray-light);
}

/* ── Country Map/Grid ── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.country-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.country-flag {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.country-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.country-year {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.country-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── Lecture Cards ── */
.lecture-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.lecture-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.lecture-number {
  min-width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

.lecture-info { flex: 1; }

.lecture-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.lecture-meta {
  font-size: 0.8rem;
  color: var(--gray-light);
}

.lecture-attendees {
  text-align: right;
}

.lecture-attendees strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.lecture-attendees span {
  font-size: 0.75rem;
  color: var(--gray-light);
}

/* ── Timeline Page ── */
.timeline-event-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  transition: var(--transition);
}

.timeline-event-card:hover {
  box-shadow: var(--shadow);
}

.tec-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tec-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--primary-light);
}

.tec-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.tec-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.tec-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tec-stats {
  display: flex;
  gap: 20px;
}

.tec-stat {
  text-align: center;
}

.tec-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.tec-stat span {
  font-size: 0.72rem;
  color: var(--gray-light);
}

/* ── Contact Form ── */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-label span {
  color: #ef4444;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input.error,
.form-textarea.error { border-color: #ef4444; }

.form-error-msg {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.form-error-msg.show { display: block; }

.form-textarea { resize: vertical; min-height: 140px; }

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

/* ── 404 Page ── */
.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.page-404-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.page-404-desc {
  color: var(--gray);
  margin-bottom: 32px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade { animation: fadeIn 0.5s ease forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-card-inner { grid-template-columns: 200px 1fr; }
  .profile-card-inner { grid-template-columns: 280px 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  
  .navbar-nav, .navbar-actions .btn-contact-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrap { order: -1; }
  .hero-image-card { max-width: 280px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { border-right: none; border-bottom: 1px solid var(--border); }
  
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  
  .book-card-inner { grid-template-columns: 1fr; }
  .book-cover-wrap { padding: 24px; min-height: 200px; }
  
  .profile-card-inner { grid-template-columns: 1fr; }
  .profile-img-side img { min-height: 260px; max-height: 320px; }
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .lecture-card { flex-wrap: wrap; }
  
  .tab-list { width: 100%; }
  .tab-btn { flex: 1; text-align: center; padding: 10px; }
  
  .newsletter-form { flex-direction: column; }
  
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .hero-float-card { display: none; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .book-stats { gap: 12px; }
}

/* ── Utility ── */
.text-primary { color: var(--primary); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none; }
