/*
Theme Name: commu
Description: Modern responsive WordPress theme with integrated newspaper design
Version: 4.0.0
Author: gugugaga
Text Domain: commu
*/

/* ========================================
   CSS Variables & Design System
======================================== */
:root {
  /* Color Palette - Modern & Accessible */
  --primary-color: #e63946;
  --primary-hover: #d32f37;
  --primary-light: #ffebee;
  --secondary-color: #1d3557;
  --secondary-hover: #0f1f3a;
  --accent-color: #457b9d;
  --accent-hover: #2c5a7a;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Neutral Colors - Enhanced */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --black: #000000;
  
  /* Legacy Colors for Compatibility */
  --light-color: var(--gray-50);
  --dark-color: var(--gray-900);
  --gray-light: var(--gray-100);
  --gray: var(--gray-200);
  --gray-dark: var(--gray-600);
  
  /* Typography */
  --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes - Responsive */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  /* Spacing System */
  --space-1: 0.15rem;    /* 4px */
  --space-2: 0.25rem;     /* 8px */
  --space-3: 0.55rem;    /* 12px */
  --space-4: 0.75rem;       /* 16px */
  --space-5: 1rem;    /* 20px */
  --space-6: 1.25rem;     /* 24px */
  --space-8: 1.5rem;       /* 32px */
  --space-10: 2rem;    /* 40px */
  --space-12: 2.5rem;      /* 48px */
  --space-16: 3rem;      /* 64px */
  --space-20: 4rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows - Enhanced */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  --transition-bounce: 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Container */
  --container-max-width: 1400px;
  --container-padding: var(--space-4);
  
  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ========================================
   Reset & Base Styles
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  overflow-x: hidden;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
}
span{
  color: var(--gray-700);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}
font{
  color: var(--gray-700);
}
a:hover {
  color: var(--primary-hover);
}

/* ========================================
   Layout Components
======================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-2) * -1);
}

.col {
  flex: 1;
  padding: 0 var(--space-2);
}
.aligncenter{text-align: center;margin: 0 auto;}
.alignleft{text-align: left;margin: 0 auto 0 0;}
.alignright{text-align: right;margin: 0 0 0 auto;}
/* ========================================
   Header Styles - Enhanced
======================================== */
.trendy-magazine-header {
  font-family: var(--font-primary);
  color: var(--dark-color);
  width: 100%;
  background: var(--white);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.trendy-magazine-header.scrolled {
  box-shadow: var(--shadow-lg);
}

/* Breaking News Bar - Enhanced with Newspaper Style */
.breaking-news-bar {
  background: linear-gradient(135deg, #e63946, #d32f37);
  color: var(--white);
  padding: var(--space-3) 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.breaking-news-bar .container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.breaking-label {
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-2) var(--space-3);
  font-weight: 800;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--white);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

.breaking-news-content {
  flex: 1;
  overflow: hidden;
}

.news-ticker {
  overflow: hidden;
  position: relative;
}

.ticker-items {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  display: flex;
}

.ticker-items.paused {
  animation-play-state: paused;
}

.ticker-items li {
  display: inline-block;
  padding-right: 60px;
  font-size: var(--text-sm);
  font-weight: 600;
  position: relative;
  line-height: 1.4;
}

.ticker-items li:after {
  content: '•';
  position: absolute;
  right: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.ticker-items a {
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.ticker-items a:hover {
  opacity: 0.8;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker-controls {
  margin-left: var(--space-4);
}

.ticker-control {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  font-size: var(--text-sm);
}

.ticker-control:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Top Bar - Enhanced with Newspaper Style */
.top-bar {
  background: linear-gradient(135deg, #1d3557, #0f1f3a);
  color: var(--light-color);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* PC에서는 일반적인 top-bar 스타일 */
.top-bar.pop {
  position: relative;
  background: linear-gradient(135deg, #1d3557, #0f1f3a);
  left: auto;
  transform: none;
  top: auto;
  z-index: 9;
}

.top-bar.pop > .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  background: transparent;
  padding: var(--space-3) var(--space-4);
  border-radius: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}

.date-info i {
  color: var(--primary-color);
  font-size: var(--text-sm);
}

#time {
  margin-left: var(--space-1);
  font-weight: 600;
  color: var(--primary-color);
}

.right-info {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.sns-icons {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.search-icon,
.sns-icon {
  color: var(--light-color);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.search-icon:hover,
.sns-icon:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.weather-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.weather-info:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.weather-icon {
  color: gold;
  font-size: var(--text-sm);
}

.weather-text {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--white);
}

.location {
  font-size: var(--text-xs);
  opacity: 0.8;
  margin-left: var(--space-1);
  color: var(--white);
}

.user-icon-box {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
}

.login-link,
.profile-link {
  color: var(--light-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-link:hover,
.profile-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.user-icon-box > .sns-icons {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--dark-color);
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.user-icon-box > .sns-icons > a {
  color: var(--gray-800);
  background: var(--white);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
  border: 1px solid var(--gray-200);
}

.user-icon-box > .sns-icons > a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.user-icon-box > .sns-icons > a:hover > i {
  color: var(--white);
}

.user-icon-box:hover .sns-icons {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Logo Header - Enhanced with Newspaper Style */
.logo-header {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  padding: var(--space-5) 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-header .container {
  display: flex;
  justify-content: center; /* PC에서는 로고를 중앙에 배치 */
  align-items: center;
  position: relative;
}

.logo-area {
  flex: 1;
  text-align: center;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  display: block;
}

.text-logo {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: var(--text-3xl);
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  padding: var(--space-2) 0;
  transition: all var(--transition-fast);
}

.text-logo.mobile {
  font-size: var(--text-2xl);
}

.logo-accent {
  color: var(--primary-color);
}

/* Mobile Menu Button Box - Enhanced */
#mobile-menu-btn-box {
  position: relative;
  display: none; /* PC에서는 숨김 */
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

#mobile-menu-btn-box.sticky {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-fixed);
}

#mobile-menu-btn-box > .scroll-top {
  display: block;
  border: none;
  padding: 0;
  margin-bottom: var(--space-2);
  animation: slideDown 0.3s forwards;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
}

#mobile-menu-btn-box > .scroll-top:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
}

#mobile-menu-btn-box > .scroll-top.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.shared-theme-logo {
  max-height: 60px;
  width: auto;
  transition: transform var(--transition-fast);
}

.shared-theme-logo:hover {
  transform: scale(1.05);
}

/* PC용 스크롤 탑 버튼 */
.scroll-top-pc {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  z-index: var(--z-fixed);
  display: none; /* 기본적으로 숨김 */
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top-pc:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.4);
}

.scroll-top-pc.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Navigation - Enhanced with Newspaper Style
======================================== */
.main-nav {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 0;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-menu {
  width: 100%;
}

.menu-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  justify-content: space-around;
  flex-wrap: wrap;
}

.menu-item {
  position: relative;
}

.menu-item a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all var(--transition-fast);
  position: relative;
  border-radius: var(--radius-md);
  margin: var(--space-1);
}

.menu-item.home a {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
}

.menu-item a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.menu-item a:hover,
.menu-item.current-menu-item a {
  background: rgba(230, 57, 70, 0.2);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(230, 57, 70, 0.2);
}

.menu-item a:hover:after,
.menu-item.current-menu-item a:after {
  width: 100%;
  background: var(--primary-color);
}

/* Sub Menu */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
  list-style: none;
  margin: 0;
  padding: var(--space-2);
}

.sub-menu.pop {
  z-index: 999;
  background: var(--white);
  border: 1px solid var(--dark-color);
  position: absolute;
  width: 128px;
  background-color: #333;
  display: none;
}

.sub-menu.pop > li {
  list-style: none;
}

.menu-item:hover .sub-menu.pop {
  display: block;
}

.sub-menu.pop > .menu-item {
  margin-left: 0;
}

.menu-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  margin: 0;
}

.sub-menu a {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: normal;
  color: var(--gray-700);
}

.sub-menu a:hover {
  background: var(--gray-100);
  color: var(--primary-color);
}

/* ========================================
   Mobile Navigation - Enhanced
======================================== */
.mobile-menu-btn {
  display: none; /* PC에서는 숨김 */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  flex-direction: column;
  gap: var(--space-1);
  z-index: 10;
  transition: all var(--transition-fast);
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: var(--dark-color);
  z-index: var(--z-modal);
  transition: left var(--transition-normal);
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--black);
}

.mobile-logo {
  flex: 1;
}

.close-menu {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: var(--text-lg);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-category-wrapper {
  margin-top: var(--space-5);
}

.mobile-menu-title {
  color: var(--white);
  font-size: var(--text-base);
  margin: var(--space-5) 0 var(--space-3);
  font-weight: 600;
  position: relative;
  padding-left: var(--space-4);
}

.mobile-menu-title:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
}

.mobile-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-category-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-category-list li:last-child {
  border-bottom: none;
}

.mobile-category-list a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: var(--space-3) 0;
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.mobile-category-list a:hover {
  color: var(--white);
  padding-left: var(--space-2);
}

.mobile-category-list a i {
  margin-right: var(--space-3);
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.mobile-social {
  margin-top: var(--space-5);
}

.mobile-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.mobile-sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #2d2d2d;
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-sns-icon:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.mobile-user-actions {
  margin-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
}

.mobile-login-link,
.mobile-profile-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  text-decoration: none;
  background: var(--primary-color);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.mobile-login-link:hover,
.mobile-profile-link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ========================================
   Search Overlay - Enhanced
======================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

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

.search-content {
  width: 90%;
  max-width: 600px;
  background: #1a1a1a;
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  position: relative;
  color: var(--white);
  box-shadow: var(--shadow-2xl);
}

.search-content h2 {
  margin-top: 0;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  position: relative;
  color: var(--white);
}

.search-content h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.search-form {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-8);
}

.search-input {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  background: #2d2d2d;
  border: none;
  color: var(--white);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--primary-color);
  background: #333;
}

.search-button {
  padding: var(--space-5) var(--space-4);
  background: var(--primary-color);
  border: none;
  height: 100%;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
}

.search-button:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.close-search {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: transparent;
  border: none;
  color: var(--white);
  font-size: var(--text-xl);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
  z-index: 1100;
}

.close-search:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.popular-searches {
  margin-top: var(--space-5);
}

.popular-searches h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.7);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.search-tags a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: #2d2d2d;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.search-tags a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================================
   Main Content Area - Enhanced
======================================== */
.news-layout-container {
  max-width: var(--container-max-width);
  margin: var(--space-2) auto;
  background: var(--white);
  padding: var(--space-2) 0;
  display:none;
}

.content-row {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  min-height: 735px;
}

.left-column,
.middle-column,
.right-column {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.middle-column {
  flex: 1.1;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  position: relative;
  padding-bottom: var(--space-3);
  color: var(--gray-900);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gray-200);
}

.middle-column .section-title {
  text-align: center;
  font-size: var(--text-2xl);
}

.middle-column .section-title:after {
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
}

.right-column .section-title {
  font-size: var(--text-xl);
}

.items-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.news-item,
.popular-news-item,
.trend-item {
  display: flex;
  align-items: center;
  background: var(--white);
  gap: var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
  position: relative;
  padding: var(--space-3) 0;
}

.news-item:after,
.popular-news-item:after,
.trend-item:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.news-item:hover:after,
.popular-news-item:hover:after,
.trend-item:hover:after {
  width: 100%;
}

.news-item:last-child,
.popular-news-item:last-child,
.trend-item:last-child {
  border-bottom: none;
}

.news-item:hover,
.popular-news-item:hover,
.trend-item:hover {
  transform: translateX(5px);
  background: var(--gray-50);
}

.news-thumbnail,
.popular-news-thumb,
.trend-image-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.news-item:hover .news-thumbnail,
.popular-news-item:hover .popular-news-thumb,
.trend-item:hover .trend-image-wrapper {
  box-shadow: var(--shadow-lg);
}

.news-thumbnail img,
.popular-news-thumb img,
.trend-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.news-thumbnail:hover img,
.popular-news-thumb:hover img,
.trend-image-wrapper:hover img {
  transform: scale(1.05);
}

.news-content,
.popular-news-content,
.trend-text-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 75%;
}

.news-content .category,
.popular-news-content .pop-cat,
.trend-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
  padding: var(--space-1) 0;
}

.news-content .title,
.popular-news-content .pop-title,
.trend-text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.news-content .title a,
.popular-news-content .pop-title a,
.trend-text a {
  color: inherit;
  text-decoration: none;
}

.news-content .title a:hover,
.popular-news-content .pop-title a:hover,
.trend-text a:hover {
  color: var(--primary-color);
}

.post-date {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

/* ========================================
   Main News Container - Enhanced
======================================== */
.main-news-container {
  position: relative;
  margin-bottom: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.main-news-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.main-news-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: block;
  text-decoration: none;
}

.main-news-image-wrapper:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 1;
}

.main-center-image {
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform var(--transition-slow);
  width: 100%;
  height: 333px !important;
}

.main-news-container:hover .main-center-image {
  transform: scale(1.03);
}

.main-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-8);
  z-index: 2;
  text-align: left;
}

.main-news-category {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 5px rgba(230, 57, 70, 0.3);
}

.main-news-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  margin-bottom: var(--space-2);
  margin-top: var(--space-2);
}

.main-news-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  background-color: rgba(230, 57, 70, 0.8);
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.read-more:after {
  content: '→';
  margin-left: var(--space-1);
}

.read-more:hover {
  background-color: var(--primary-color);
}

/* ========================================
   ES Top Tabs Plugin - Enhanced
======================================== */
.es-top-tabs {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.es-tabs-swiper {
  position: relative;
  overflow: hidden;
}

.cate-top-tab {
  display: flex;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cate-top-tab::-webkit-scrollbar {
  display: none;
}

.cate-top-tab button {
  flex: 1;
  min-width: 120px;
  padding: var(--space-4) var(--space-3);
  background: var(--secondary-color);
  border: none;
  color: var(--gray-100);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}
.cate-top-tab button:hover {
background: var(--primary-color);
  color: var(--gray-800);
}
.cate-top-tab .swiper-slide .on{
    color: var(--white);
}
.cate-top-tab button.active {
  background: var(--primary-color) ;
  color: var(--white);
}

.cate-top-tab button.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--white);
}

.mainTabCont {
  padding: var(--space-6);
}

.es-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.es-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.es-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.es-card:hover:before {
  transform: scaleX(1);
}

.es-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.es-title a:hover {
  color: var(--primary-color);
}

.es-badges-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.es-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--primary-color);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
}

.es-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ========================================
   Buttons & Forms - Enhanced
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

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

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

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

/* ========================================
   Cards - Enhanced
======================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.card-body {
  padding: var(--space-5);
}

.card-footer {
  padding: var(--space-5);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* ========================================
   PC 전용 스타일
======================================== */
@media (min-width: 769px) {
  .scroll-top-pc {
    display: flex; /* PC에서만 표시 */
  }
  
  .top-bar.pop {
    position: relative;
    background: linear-gradient(135deg, #1d3557, #0f1f3a);
  }
  
  .top-bar.pop > .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: var(--space-3) var(--space-4);
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* ========================================
   Responsive Design - Mobile First
======================================== */
@media (max-width: 768px) {
  .es-card{
    width: calc(100% / 2 - .5rem) !important;
  }
  .mainTabCont {
    padding: var(--space-2);
    }
  .mainWrap .mainVisual .mainVisualSwiper {
    height: clamp(350px,20vh,660px) !important;
  }
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex; /* 모바일에서만 표시 */
  }
  
  #mobile-menu-btn-box {
    display: flex; /* 모바일에서만 표시 */
  }
  
  .top-bar-content {
    justify-content: center;
  }
  
  .date-info,
  .weather-info {
    display: none;
  }
  
  .logo-area {
    text-align: left;
  }
  
  .logo-header .container {
    justify-content: space-between; /* 모바일에서는 좌우 배치 */
  }
  
  .top-bar.pop {
    position: static;
    transform: none;
    background: linear-gradient(135deg, #1d3557, #0f1f3a);
  }
  
  .top-bar.pop > .container {
    width: 100%;
    background: transparent;
    padding: var(--space-3) 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  
  .breaking-news-bar {
    padding: var(--space-2) 0;
  }
  
  .breaking-news-bar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .breaking-label {
    order: 1;
    margin-right: var(--space-1);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }
  
  .breaking-news-content {
    order: 2;
    flex: 1;
    margin: 0 var(--space-1);
  }
  
  .ticker-controls {
    order: 3;
    margin-left: 0;
  }
  
  .ticker-items li {
    font-size: var(--text-xs);
    padding-right: 20px;
  }
  
  .ticker-items li:after {
    right: 10px;
  }
  
  .search-icon,
  .sns-icon {
    width: 30px;
    height: 30px;
    font-size: var(--text-sm);
  }
  
  .text-logo {
    font-size: var(--text-2xl);
  }
  
  .mobile-menu {
    width: 85%;
  }
  
  .search-content {
    padding: var(--space-5);
  }
  
  .search-input {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    background: var(--white);
    color: var(--gray-800);
  }
  
  .search-button {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 1px solid var(--primary-color);
    border-left: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
  }
  
  .top-bar {
    padding: var(--space-2) 0;
  }
  
  .logo-header {
    padding: var(--space-4) 0;
  }
  
  .user-profile {
    display: none;
  }
  
  .mobile-search-form input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-800);
  }
  
  .mobile-search-form input::placeholder {
    color: var(--gray-500);
  }
  
  .mobile-search-form button {
    padding: var(--space-2);
    background: var(--primary-color);
    border: none;
    color: var(--white);
    border-radius: 50%;
    margin-left: var(--space-1);
  }
  
  .mobile-weather {
    background: transparent;
    color: var(--white);
    font-size: var(--text-base);
    padding: var(--space-2);
    text-align: center;
    border: none;
  }
  
  .mobile-weather i {
    font-size: var(--text-lg);
    margin-right: var(--space-1);
    color: gold;
  }
  
  .text-logo {
    font-size: var(--text-xl);
  }
  
  .text-logo.mobile {
    font-size: var(--text-lg);
  }
  
  .shared-theme-logo {
    max-height: 50px;
  }
  
  #mobile-menu-btn-box.sticky {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-fixed);
  }
  
  #mobile-menu-btn-box > .scroll-top {
    width: 45px;
    height: 45px;
    font-size: 10px;
  }
  
  .scroll-top-pc {
    display: none !important; /* 모바일에서는 PC용 스크롤 탑 버튼 숨김 */
  }
  
  /* Content Layout Mobile */
  .content-row {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .left-column,
  .middle-column,
  .right-column {
    padding: 0 var(--space-2);
    margin-bottom: var(--space-2);
  }
  
  .section-title {
    text-align: left;
  }
  
  .middle-column .section-title {
    text-align: left;
  }
  
  .middle-column .section-title:after {
    left: 0;
    transform: none;
  }
  
  .main-center-image {
    height: auto !important;
    max-height: 400px !important;
  }
  
  .main-news-title {
    font-size: var(--text-xl);
  }
  
  .main-news-excerpt {
    font-size: var(--text-sm);
  }
  
  .news-item,
  .popular-news-item,
  .trend-item {
    gap: var(--space-2);
  }
  
  .news-thumbnail,
  .popular-news-thumb,
  .trend-image-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .news-content,
  .popular-news-content,
  .trend-text-content {
    width: 65%;
  }
  
  .es-links {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .cate-top-tab button {
    min-width: 100px;
    font-size: var(--text-xs);
  }
}

@media (max-width: 576px) {
  .mobile-menu {
    width: 90%;
  }
  
  .search-content {
    padding: var(--space-5);
  }
  
  .search-input {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
  
  .search-button {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }
  
  .top-bar {
    padding: var(--space-2) 0;
  }
  
  .logo-header {
    padding: var(--space-3) 0;
  }
  
  .text-logo {
    font-size: var(--text-lg);
  }
  
  .text-logo.mobile {
    font-size: var(--text-base);
  }
  
  .main-news-content {
    padding: var(--space-5);
  }
  
  .main-news-title {
    font-size: var(--text-lg);
  }
  
  .main-news-excerpt {
    display: none;
  }
  
  .news-thumbnail,
  .popular-news-thumb,
  .trend-image-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .news-content .title,
  .popular-news-content .pop-title,
  .trend-text {
    font-size: var(--text-sm);
  }
}

/* ========================================
   Animations & Transitions
======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-bounce {
  animation: bounce 1s ease-in-out;
}

/* ========================================
   Utility Classes
======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-left {
  text-align: left;
}

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

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

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

.text-secondary {
  color: var(--secondary-color);
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-gray-600 {
  color: var(--gray-600);
}

.text-gray-700 {
  color: var(--gray-700);
}

.text-gray-800 {
  color: var(--gray-800);
}

.text-gray-900 {
  color: var(--gray-900);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.bg-white {
  background-color: var(--white);
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

.p-2 {
  padding: var(--space-2);
}

.p-3 {
  padding: var(--space-3);
}

.p-4 {
  padding: var(--space-4);
}

.p-5 {
  padding: var(--space-5);
}

.p-6 {
  padding: var(--space-6);
}

.m-2 {
  margin: var(--space-2);
}

.m-3 {
  margin: var(--space-3);
}

.m-4 {
  margin: var(--space-4);
}

.m-5 {
  margin: var(--space-5);
}

.m-6 {
  margin: var(--space-6);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-5);
}

.mt-6 {
  margin-top: var(--space-6);
}

/* ========================================
   Accessibility & Focus States
======================================== */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ========================================
   Print Styles
======================================== */
@media print {
  .breaking-news-bar,
  .top-bar,
  .main-nav,
  .mobile-menu,
  .search-overlay,
  .ticker-controls,
  .mobile-menu-btn {
    display: none !important;
  }
  
  .trendy-magazine-header {
    box-shadow: none;
  }
  
  .logo-header {
    background: var(--white) !important;
    color: var(--black) !important;
  }
  
  .text-logo {
    color: var(--black) !important;
  }
  
  .news-layout-container {
    box-shadow: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  a {
    color: var(--black) !important;
    text-decoration: underline;
  }
  
  .btn {
    border: 1px solid var(--gray-400);
    background: var(--white) !important;
    color: var(--black) !important;
  }
}

/* ========================================
   Dark Mode Support
======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
    --black: #ffffff;
  }
  
  body {
    background-color: var(--gray-50);
    color: var(--gray-800);
  }
  
  .trendy-magazine-header {
    background: var(--gray-50);
    color: var(--gray-800);
  }
  
  .news-layout-container {
    background: var(--gray-50);
  }
  
  .card {
    background: var(--gray-100);
    border-color: var(--gray-200);
  }
  
  .es-card {
    background: var(--gray-100);
    border-color: var(--gray-200);
  }
}

/* ========================================
   Footer Styles - Modern & Responsive
======================================== */
.hd-magazine-footer {
  background: #111;
  background-image: linear-gradient(to bottom, #1a1a1a, #000);
  color: #fff;
  font-family: 'Montserrat', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.hd-magazine-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #e51c23 0%, #e51c23 33%, #fff 33%, #fff 66%, #000 66%, #000 100%);
}

.hd-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.hd-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  position: relative;
}

.hd-footer-logo-container {
  position: relative;
  transition: transform 0.3s ease;
}

.hd-footer-logo-container:hover {
  transform: translateY(-3px);
}

.hd-footer-logo {
  height: 45px;
  width: auto;
  filter: brightness(1.1);
}

.hd-footer-logo-accent {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #e51c23;
}

.hd-footer-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hd-footer-nav li {
  margin: 0;
  list-style: none;
}

.hd-footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
  text-transform: uppercase;
}

.hd-footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e51c23;
  transition: width 0.3s ease;
}

.hd-footer-nav a:hover {
  color: #fff;
}

.hd-footer-nav a:hover::after {
  width: 100%;
}

.hd-footer-info {
  margin-top: 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  position: relative;
}

.hd-footer-company {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.hd-footer-company span {
  position: relative;
  transition: color 0.3s ease;
}

.hd-footer-company span:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hd-footer-company span:not(:last-child):after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.hd-highlight {
  color: #e51c23;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.hd-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.hd-magazine-footer a.hd-highlight:hover {
  color: #fff;
}

.hd-magazine-footer a.hd-highlight:hover::after {
  width: 100%;
}

.hd-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hd-social-links {
  display: flex;
  gap: 15px;
}

.hd-social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hd-social-icon:hover {
  background: #e51c23;
  transform: translateY(-3px);
}

.hd-social-icon i {
  font-size: 14px;
}

.hd-accent-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #e51c23;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Footer Responsive */
@media (max-width: 992px) {
  .hd-magazine-footer {
    padding: 50px 0 30px;
  }
  
  .hd-footer-nav {
    gap: 20px;
  }
  
  .hd-footer-nav a {
    font-size: 12px;
  }
  
  .hd-copyright {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hd-footer-top {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding-bottom: 25px;
  }
  
  .hd-footer-logo {
    height: 40px;
  }
  
  .hd-footer-logo-accent {
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
  }
  
  .hd-footer-nav {
    justify-content: flex-start;
    gap: 15px 20px;
    margin-top: 10px;
  }
  
  .hd-footer-nav a {
    font-size: 11px;
  }
  
  .hd-footer-company {
    justify-content: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .hd-footer-info {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
  }
  
  .hd-social-links {
    margin-top: 15px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hd-magazine-footer {
    padding: 40px 0 25px;
  }
  
  .hd-footer-container {
    padding: 0 20px;
  }
  
  .hd-footer-company span {
    font-size: 11px;
  }
  
  .hd-footer-company span:not(:last-child):after {
    height: 10px;
  }
  
  .hd-footer-nav {
    max-width: 300px;
    gap: 10px 15px;
  }
  
  .hd-footer-nav a {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
}

.hd-magazine-footer .hd-footer-info a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.hd-magazine-footer .hd-footer-info a:hover {
  color: #e51c23;
}

.hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company span {
  font-size: 13px;
}

.hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company {
  margin-bottom: 10px;
}

.hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company span:not(:last-child) {
  margin-right: 10px;
}

.hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company span:not(:last-child):after {
  right: -10px;
}

.hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company span:last-child {
  margin-right: 0;
}

.hd-magazine-footer .hd-footer-container .hd-footer-info .hd-footer-company:last-of-type {
  margin-bottom: 0;
}

/* ========================================
   Post Page Styles - Modern & Responsive
======================================== */

/* Post Container */
.td-main-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: var(--white);
  position: relative;
}

.td-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Post Layout */
.td-pb-row {
  display: flex;
  gap:.5rem;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.td-pb-span12 {
  width: 100%;
  padding: 0 ;
}

.td-pb-span8 {
  width: 66.66666667%;
  padding: 0 15px;
}

.td-pb-span4 {
  width: calc(100% / 3 - .5rem);
  padding: 0 15px;
}

/* Breadcrumbs */
.tdb-breadcrumbs {
  margin-bottom: 20px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

.tdb-breadcrumbs a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tdb-breadcrumbs a:hover {
  color: var(--primary-color);
}

.tdb-breadcrumbs .tdb-bread-sep {
  margin: 0 8px;
  color: var(--gray-400);
}

/* Post Title */
.tdb_title {
  margin-bottom: 25px;
}

.tdb-title-text {
  font-family: var(--font-secondary);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0;
  word-wrap: break-word;
}

.tdb-title-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 15px;
}

/* Post Categories */
.tdb_single_categories {
  margin-bottom: 20px;
}

.tdb-entry-category {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  background: var(--gray-200);
  color: var(--dark-color);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
  transform: skew(-8deg);
}

.tdb-entry-category:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: skew(-8deg) translateY(-2px);
}

/* Post Meta */
.tdb-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: .5rem;
  padding: 15px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--gray-600);
}

.tdb_single_date,
.tdb_single_author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tdb_single_date time {
  font-weight: 600;
  color: var(--dark-color);
}

.tdb-author-name {
  font-weight: 600;
  color: var(--dark-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tdb-author-name:hover {
  color: var(--primary-color);
}

/* Post Content */
.tdb_single_content {
  margin-bottom: 40px;
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--dark-color);
}

.tdb_single_content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.tdb_single_content h1,
.tdb_single_content h2,
.tdb_single_content h3,
.tdb_single_content h4,
.tdb_single_content h5,
.tdb_single_content h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--dark-color);
  margin: 30px 0 15px 0;
  line-height: 1.3;
}

.tdb_single_content h1 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.tdb_single_content h2 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.tdb_single_content h3 {
  font-size: 24px;
  letter-spacing: -0.5px;
}

.tdb_single_content h4 {
  font-size: 20px;
  letter-spacing: -0.5px;
}

.tdb_single_content h5,
.tdb_single_content h6 {
  font-size: 18px;
  letter-spacing: -0.5px;
}

.tdb_single_content blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  background: var(--gray-50);
  border-left: 4px solid var(--primary-color);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-700);
}

.tdb_single_content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.tdb_single_content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.tdb_single_content a:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

/* Post Tags */
.tdb_single_tags {
  margin-bottom: .5rem;
  padding: .5rem 0;
  border-top: 1px solid var(--gray-200);
}

.tdb-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tdb-tags li {
  margin: 0;
}

.tdb-tags span {
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-right: 15px;
}

.tdb-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-100);
  color: var(--primary-color);
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.tdb-tags a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

/* Social Sharing */
.tdb_single_post_share {
  margin-bottom: 30px;
}

.td-post-sharing-visible {
  display: flex;
  gap: 10px;
  align-items: center;
}

.td-social-sharing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.td-social-sharing-button:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.td-social-sharing-button i {
  font-size: 16px;
}

/* Sidebar */
.td-is-sticky {
  position: sticky;
  top: 100px;
}

/* Latest Articles */
.tdm_block_column_title {
  margin-bottom: 20px;
  padding: 15px 20px;
  background: var(--primary-color);
  border-radius: 8px;
}

.tdm-title {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0;
}

/* Article Cards */
.td_module_flex {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.td_module_flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.td-module-meta-info {
  padding: 0;
}

.td-post-category {
  display: inline-block;
  padding: 4px 8px;
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--font-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 10px;
  transition: all var(--transition-fast);
}

.td-post-category:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.entry-title {
  margin: 0 0 10px 0;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

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

.entry-title a:hover {
  color: var(--primary-color);
}

.td-excerpt {
  margin: 0 0 15px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.td-editor-date {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: var(--gray-500);
}

.td-author-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.td-author-date i {
  font-size: 14px;
}

/* Comments */
.comments {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--gray-200);
}

.comment-respond {
  background: var(--gray-50);
  padding: .5rem;
  border-radius: 8px;
  margin-top: .5rem;
}

.comment-reply-title {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 20px 0;
}

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

.comment-form-input-wrap textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--transition-fast);
}

.comment-form-input-wrap textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-submit input[type="submit"] {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-submit input[type="submit"]:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  gap: 20px;
  margin: .5rem 0;
  padding: 20px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.post-navigation a {
  flex: 1;
  padding: 15px 20px;
  background: var(--gray-50);
  color: var(--dark-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  font-weight: 500;
  line-height: 1.4;
}

.post-navigation a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.prev-post {
  text-align: left;
}

.next-post {
  text-align: right;
}

/* More Like This Section */
.tdm_block_column_title:last-of-type {
  background: var(--gray-800);
}

.tdm_block_column_title:last-of-type .tdm-title {
  color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
  .td-pb-span8 {
    width: 100%;
    margin-bottom: .5rem;
  }
  
  .td-pb-span4 {
    width: 100%;
  }
  
  .td-is-sticky {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .td-main-content-wrap {
    padding: 0 15px;
  }
  
  .td-pb-row {
    margin: 0 -10px;
  }
  
  .td-pb-span12,
  .td-pb-span8,
  .td-pb-span4 {
    padding: 0 .5rem;
  }
  
  .tdb-title-text {
    font-size: 28px;
  }
  
  .tdb_single_content h1 {
    font-size: 24px;
  }
  
  .tdb_single_content h2 {
    font-size: 22px;
  }
  
  .tdb_single_content h3 {
    font-size: 20px;
  }
  
  .tdb-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .td_module_flex {
    padding: 15px;
  }
  
  .comment-respond {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .tdb-title-text {
    font-size: 24px;
  }
  
  .tdb_single_content p {
    font-size: 15px;
  }
  
  .tdb_single_content h1 {
    font-size: 22px;
  }
  
  .tdb_single_content h2 {
    font-size: 20px;
  }
  
  .tdb_single_content h3 {
    font-size: 18px;
  }
  
  .tdb-entry-category {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .td-post-category {
    font-size: 10px;
  }
  
  .entry-title {
    font-size: 15px;
  }
  
  .td-excerpt {
    font-size: 13px;
  }
}

/* ========================================
   404 Page Styles - Modern & Responsive
======================================== */

/* 404 Container */
.tdc-row.stretch_row_content {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.tdc-row.stretch_row_content .vc_row {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Background Image */
.td_block_single_image {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.td_single_image_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: block;
}

.td_single_image_bg:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

/* Content Overlay */
.absolute_inner_1200 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* 404 Title Block */
.tdm_block_column_title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: .5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 404 Title */
.tdm-title {
  font-family: var(--font-secondary);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 20px 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -2px;
}

/* Title Line */
.tdm-title-line {
  width: 120px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  margin: 0 auto 30px auto;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

/* Subtitle */
.tdm-title-sub {
  font-family: var(--font-primary);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

/* Action Buttons */
.error-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.error-btn:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.error-btn.secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.error-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.error-btn i {
  font-size: 18px;
}

/* Search Box */
.error-search {
  margin-top: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-search-input {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 16px;
  outline: none;
}

.error-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.error-search-btn {
  padding: 15px 25px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 16px;
}

.error-search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Popular Links */
.error-popular {
  margin-top: 60px;
  text-align: center;
}

.error-popular-title {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 30px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.error-popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-popular-link {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-popular-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tdm_block_column_title {
  animation: fadeInUp 1s ease-out;
}

.tdm-title {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.tdm-title-line {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.tdm-title-sub {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.error-actions {
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* Responsive Design */
@media (max-width: 992px) {
  .absolute_inner_1200 {
    padding: 40px 20px;
  }
  
  .tdm_block_column_title {
    padding: 30px 25px;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .td_block_single_image {
    min-height: 400px;
  }
  
  .absolute_inner_1200 {
    padding: 30px 15px;
  }
  
  .tdm_block_column_title {
    padding: 25px 20px;
    border-radius: 15px;
  }
  
  .tdm-title {
    font-size: 48px;
  }
  
  .tdm-title-sub {
    font-size: 16px;
  }
  
  .error-search {
    margin-top: 30px;
  }
  
  .error-search-form {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .error-search-input {
    border-radius: 15px 15px 0 0;
  }
  
  .error-search-btn {
    border-radius: 0 0 15px 15px;
  }
  
  .error-popular {
    margin-top: 40px;
  }
  
  .error-popular-title {
    font-size: 20px;
  }
  
  .error-popular-links {
    gap: 10px;
  }
  
  .error-popular-link {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .td_block_single_image {
    min-height: 350px;
  }
  
  .absolute_inner_1200 {
    padding: 20px 10px;
  }
  
  .tdm_block_column_title {
    padding: 20px 15px;
    border-radius: 10px;
  }
  
  .tdm-title {
    font-size: 36px;
  }
  
  .tdm-title-line {
    width: 80px;
    height: 3px;
  }
  
  .tdm-title-sub {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .error-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .error-search-input {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  .error-search-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .error-popular-title {
    font-size: 18px;
  }
  
  .error-popular-link {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .tdm_block_column_title {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .error-search-form {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .error-popular-link {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .tdm_block_column_title,
  .tdm-title,
  .tdm-title-line,
  .tdm-title-sub,
  .error-actions {
    animation: none;
  }
  
  .error-btn,
  .error-search-btn,
  .error-popular-link {
    transition: none;
  }
  
  .error-btn:hover,
  .error-search-btn:hover,
  .error-popular-link:hover {
    transform: none;
  }
}

/* ========================================
   Latest Articles Section - Modern Design
======================================== */

/* Section Container */
.tdc-row.stretch_row_1200 {
  background: #f8f9fa;
  padding: 40px 0;
  position: relative;
}

/* Section Title */
.tdm_block_column_title.tdi_75 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.tdm_block_column_title.tdi_75 .tds-title {
  display: inline-block;
  /* background: var(--white); */
  padding: 18px 35px;
  border-radius: 12px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
  position: relative;
  z-index: 2;
  /* border: 1px solid rgba(0, 0, 0, 0.05); */
}

.tdm_block_column_title.tdi_75 .tdm-title {
  font-family: var(--font-secondary);
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Articles Container */
.td_flex_block_1.tdi_77 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.td_flex_block_1.tdi_77 .td_block_inner {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}
.td_flex_block_1.tdi_77 .td_module_flex{width:calc(100% / 3 - 1rem)}
#tdi_61 .td_flex_block_1.tdi_77 .td_block_inner {
  display: flex;
  flex-direction: column;
  flex-wrap: inherit;
  gap: 1rem;
  width: 100%;
}
#tdi_61 .td_flex_block_1.tdi_77 .td_module_flex{width:100%}
/* Article Card - Image + Text Layout */
.td_module_flex {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-medium);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.td_module_flex:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(230, 57, 70, 0.2);
}

/* Article Image */
.popular-news-thumb {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popular-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
}

.td_module_flex:hover .popular-news-thumb img {
  transform: scale(1.05);
}

.popular-news-thumb a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Article Content */
.td-module-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.td-module-meta-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Article Title */
.entry-title {
  margin: 0;
  line-height: 1.3;
}

.entry-title a {
  font-family: var(--font-secondary);
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-title a:hover {
  color: var(--primary-color);
}

/* Article Excerpt */
.td-excerpt {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Meta */
.td-editor-date {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.td-author-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.td-author-date:first-child {
  color: var(--text-muted);
}

.td-author-date:last-child {
  color: var(--primary-color);
  font-weight: 600;
}

.td-author-date i {
  font-size: 13px;
  color: var(--primary-color);
}

.tdi_92 .td_block_inner {
    justify-content: space-between;
}

/* Responsive Layout */
@media (max-width: 768px) {
    
    #tdi_61 figure {width:300px !important;}
    #tdi_61 figure img {width:300px !important;object-fit: cover;}
  .tdc-row.stretch_row_1200 {
    padding: 30px 0;
  }
  
  .tdm_block_column_title.tdi_75 {
    margin-bottom: 30px;
    padding: 0 15px;
  }
  
  .tdm_block_column_title.tdi_75 .tds-title {
    padding: 15px 25px;
    border-radius: 10px;
  }
  
  .tdm_block_column_title.tdi_75 .tdm-title {
    font-size: 20px;
    letter-spacing: 1px;
  }
  
  .td_flex_block_1.tdi_77 {
    padding: 0 ;
  }
  
  .td_module_flex {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .popular-news-thumb {
    width: 100%;
    height: 180px;
    border-radius: 8px;
  }
  
  .entry-title a {
    font-size: 16px;
  }
  
  .td-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  
  .td-editor-date {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .td-author-date {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .tdc-row.stretch_row_1200 {
    padding: 20px 0;
  }
  
  .tdm_block_column_title.tdi_75 {
    margin-bottom: 25px;
    padding: 0 10px;
  }
  
  .tdm_block_column_title.tdi_75 .tds-title {
    padding: 12px 20px;
    border-radius: 8px;
  }
  
  .tdm_block_column_title.tdi_75 .tdm-title {
    font-size: 18px;
    letter-spacing: 0.5px;
  }
  
  .td_flex_block_1.tdi_77 {
    padding: 0;
  }
  
  .td_module_flex {
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 12px;
    gap: 12px;
  }
  
  .popular-news-thumb {
    height: 160px;
    border-radius: 6px;
  }
  
  .entry-title a {
    font-size: 15px;
    line-height: 1.2;
  }
  
  .td-excerpt {
    font-size: 12px;
  }
  
  .td-editor-date {
    gap: 4px;
  }
  
  .td-author-date {
    font-size: 10px;
  }
}

/* Additional Mobile Styles */
@media (max-width: 480px) {
  .td_flex_block_1 .td_block_inner {
    gap: 15px;
  }
}

/* Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#tdi_88 .td_module_flex {
    width:calc(100% / 3  - 1.5rem);
  }
.td_module_flex {
  animation: slideInUp 0.6s ease-out;
}

.td_module_flex:nth-child(1) { animation-delay: 0.1s; }
.td_module_flex:nth-child(2) { animation-delay: 0.2s; }
.td_module_flex:nth-child(3) { animation-delay: 0.3s; }
.td_module_flex:nth-child(4) { animation-delay: 0.4s; }
.td_module_flex:nth-child(5) { animation-delay: 0.5s; }
.td_module_flex:nth-child(6) { animation-delay: 0.6s; }

/* Loading State */
.td_module_flex.loading {
  opacity: 0.7;
  pointer-events: none;
}

.td_module_flex.loading .popular-news-thumb {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .tdc-row.stretch_row_1200 {
    background: #1a1a1a;
  }
  
  .tdm_block_column_title.tdi_75 .tds-title {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .tdm_block_column_title.tdi_75 .tdm-title {
    color: var(--white);
  }
  
  .td_module_flex {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .td_module_flex:hover {
    border-color: rgba(230, 57, 70, 0.3);
  }
  
  .popular-news-thumb {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .entry-title a {
    color: var(--white);
  }
  
  .td-excerpt {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .td-editor-date {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .td-author-date:first-child {
    color: rgba(255, 255, 255, 0.5);
  }
  
  .td-author-date:last-child {
    color: var(--primary-color);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .td_module_flex {
    animation: none;
    transition: none;
  }
  
  .td_module_flex:hover {
    transform: none;
  }
  
  .popular-news-thumb img {
    transition: none;
  }
  
  .td_module_flex:hover .popular-news-thumb img {
    transform: none;
  }
}

/* ========================================
   More Like This Section - Modern Design
======================================== */

/* Section Container */
.tdc-row.boxend {
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 50%,
    #0f3460 100%
  );
  padding: 0;
  position: relative;
  overflow: hidden;
}

.tdc-row.boxend:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

/* Section Title */
.tdm_block_column_title.tdi_86 {
  text-align: left;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tdm_block_column_title.tdi_86 .tds-title {
  display: inline-block;
  background: linear-gradient(
    135deg,
    #2c3e50 0%,
    #34495e 50%,
    #2c3e50 100%
  );
  padding: 15px 30px;
  border-radius: 25px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.tdm_block_column_title.tdi_86 .tds-title:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(230, 57, 70, 0.1) 0%,
    rgba(52, 152, 219, 0.1) 100%
  );
  border-radius: 25px;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.tdm_block_column_title.tdi_86 .tds-title:hover:before {
  opacity: 1;
}

.tdm_block_column_title.tdi_86 .tdm-title {
  font-family: var(--font-secondary);
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  transition: all var(--transition-medium);
}

.tdm_block_column_title.tdi_86 .tds-title:hover .tdm-title {
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Decorative Elements */
.tdm_block_column_title.tdi_86 .tds-title:after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #34495e;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transition: all var(--transition-medium);
}

.tdm_block_column_title.tdi_86 .tds-title:hover:after {
  border-left-color: #ffd700;
  right: -12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #tdi_88 #tdi_92 .td_block_inner{    flex-direction: column;}
  #tdi_88 #tdi_92 .td_module_flex{width:100%;margin-top: .5rem;}
  .tdc-row.boxend {
    padding:  0;
  }
  
  .tdm_block_column_title.tdi_86 {
    padding: 0 15px;
    text-align: center;
  }
  
  .tdm_block_column_title.tdi_86 .tds-title {
    padding: 12px 25px;
    border-radius: 20px;
  }
  
  .tdm_block_column_title.tdi_86 .tdm-title {
    font-size: 16px;
    letter-spacing: 1.5px;
  }
  
  .tdm_block_column_title.tdi_86 .tds-title:after {
    display: none;
  }
}

@media (max-width: 480px) {
  .tdc-row.boxend {
    padding:  0;
  }
  
  .tdm_block_column_title.tdi_86 {
    padding: 0 10px;
  }
  
  .tdm_block_column_title.tdi_86 .tds-title {
    padding: 10px 20px;
    border-radius: 15px;
  }
  
  .tdm_block_column_title.tdi_86 .tdm-title {
    font-size: 14px;
    letter-spacing: 1px;
  }
}

/* Animation */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tdm_block_column_title.tdi_86 .tds-title {
  animation: slideInFromLeft 0.8s ease-out;
}

/* Hover Effects */
.tdm_block_column_title.tdi_86 .tds-title {
  transition: all var(--transition-medium);
  cursor: pointer;
}

.tdm_block_column_title.tdi_86 .tds-title:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Focus States for Accessibility */
.tdm_block_column_title.tdi_86 .tds-title:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .tdc-row.boxend {
    background: linear-gradient(
      135deg,
      #0a0a0a 0%,
      #1a1a1a 50%,
      #2a2a2a 100%
    );
  }
  
  .tdm_block_column_title.tdi_86 .tds-title {
    background: linear-gradient(
      135deg,
      #333 0%,
      #444 50%,
      #333 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .tdm_block_column_title.tdi_86 .tds-title:hover:after {
    border-left-color: #ffd700;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .tdm_block_column_title.tdi_86 .tds-title {
    animation: none;
    transition: none;
  }
  
  .tdm_block_column_title.tdi_86 .tds-title:hover {
    transform: none;
  }
  
  .tdm_block_column_title.tdi_86 .tdm-title {
    transition: none;
  }
}

/* ========================================
   Tag Page Styles - Modern & Responsive
======================================== */

/* Tag Page Container */
.tdc-zone {
  background: var(--white);
  min-height: 100vh;
}

/* Tag Title Section */
.tdc-row.stretch_row {
  padding: 0;
  position: relative;
}
.td-admin-edit{
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 9;
}

.tdc-row.stretch_row:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tagGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23tagGrain)"/></svg>');
  opacity: 0.5;
  z-index: 1;
}

/* Tag Title */
.tdb_title.tdi_46 {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tdb_title.tdi_46 .tdb-title-text {
  font-family: var(--font-secondary);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  text-transform: none;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.tdb_title.tdi_46 .tdb-title-line {
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  margin: 20px auto 0 auto;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* Infinite Tag Container */
.infinite-tag-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Tag Title Bar */
.infinite-tag-title-bar {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.infinite-tag-title-bar:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tagPattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23tagPattern)"/></svg>');
  opacity: 0.3;
}

.infinite-tag-heading {
  font-family: var(--font-secondary);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.infinite-tag-heading:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--white);
  margin-right: 12px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.current-date {
  font-family: var(--font-primary);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Tag Main Content */
.infinite-tag-main {
  padding: 30px;
  background: var(--white);
}

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

/* Tag Item */
.infinite-tag-item {
  display: flex;
  gap: 25px;
  padding: 25px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.infinite-tag-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.infinite-tag-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(230, 57, 70, 0.2);
}

.infinite-tag-item:hover:before {
  opacity: 1;
}

/* News Left (Image) */
.news-left {
  width: 280px;
  min-width: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-left img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
}

.infinite-tag-item:hover .news-left img {
  transform: scale(1.05);
}

/* Tag Badge */
.tag-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* News Right (Content) */
.news-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 15px;
}

/* Tag Title */
.infinite-tag-title {
  font-family: var(--font-secondary);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.infinite-tag-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.infinite-tag-title a:hover {
  color: var(--primary-color);
}

/* Meta Info */
.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-info i {
  color: var(--primary-color);
  margin-right: 6px;
  font-size: 14px;
}

.meta-info .reading-time {
  color: var(--primary-color);
  font-weight: 600;
}

/* Excerpt */
.excerpt {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More */
.read-more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  color: var(--primary-color);
  background: none;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.read-more i {
  font-size: 12px;
  transition: transform var(--transition-fast);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Loading State */
.infinite-loading {
  text-align: center;
  padding: 40px;
  display: none;
}

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(230, 57, 70, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .tdc-row.stretch_row {
    padding: 30px 0;
  }
  
  .tdb_title.tdi_46 {
    padding: 0 15px;
  }
  
  .infinite-tag-container {
    padding: 0 15px;
    border-radius: 8px;
  }
  
  .infinite-tag-title-bar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .infinite-tag-main {
    padding: 20px;
  }
  
  .infinite-tag-item {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .news-left {
    width: 100%;
    min-width: 100%;
  }
  
  .news-left img {
    height: 180px;
  }
  
  .infinite-tag-title {
    font-size: 18px;
  }
  
  .meta-info {
    font-size: 12px;
    gap: 15px;
  }
  
  .excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 480px) {
  .tdc-row.stretch_row {
    padding: 20px 0;
  }
  
  .tdb_title.tdi_46 {
    padding: 0 10px;
  }
  
  .infinite-tag-container {
    padding: 0 10px;
    border-radius: 6px;
  }
  
  .infinite-tag-title-bar {
    padding: 12px 15px;
  }
  
  .infinite-tag-main {
    padding: 15px;
  }
  
  .infinite-tag-item {
    padding: 15px;
    gap: 15px;
  }
  
  .news-left img {
    height: 160px;
  }
  
  .infinite-tag-title {
    font-size: 16px;
  }
  
  .meta-info {
    font-size: 11px;
    gap: 12px;
  }
  
  .excerpt {
    font-size: 12px;
  }
  
  .read-more {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.infinite-tag-item {
  animation: slideInUp 0.6s ease-out;
}

.infinite-tag-item:nth-child(1) { animation-delay: 0.1s; }
.infinite-tag-item:nth-child(2) { animation-delay: 0.2s; }
.infinite-tag-item:nth-child(3) { animation-delay: 0.3s; }
.infinite-tag-item:nth-child(4) { animation-delay: 0.4s; }
.infinite-tag-item:nth-child(5) { animation-delay: 0.5s; }
.infinite-tag-item:nth-child(6) { animation-delay: 0.6s; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .tdc-zone {
    background: #1a1a1a;
  }
  
  .tdc-row.stretch_row {
    background: linear-gradient(
      135deg,
      #2a2a2a 0%,
      #1a1a1a 100%
    );
  }
  
  .tdb_title.tdi_46 .tdb-title-text {
    color: var(--white);
  }
  
  .infinite-tag-container {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .infinite-tag-main {
    background: #2d2d2d;
  }
  
  .infinite-tag-item {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .infinite-tag-title a {
    color: var(--white);
  }
  
  .excerpt {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .meta-info {
    color: rgba(255, 255, 255, 0.5);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .infinite-tag-item {
    animation: none;
    transition: none;
  }
  
  .infinite-tag-item:hover {
    transform: none;
  }
  
  .news-left img {
    transition: none;
  }
  
  .infinite-tag-item:hover .news-left img {
    transform: none;
  }
  
  .read-more {
    transition: none;
  }
  
  .read-more:hover {
    transform: none;
  }
}
/* ========================================
   링크 상세 페이지 현대적 디자인
   ======================================== */

/* 링크 상세 페이지 컨테이너 */
.link-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}


/* 브레드크럼 네비게이션 */
.es-breadcrumbs {
  margin: 0 ;
  padding: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.es-breadcrumbs,.es-breadcrumbs .entry-crumbs,.es-breadcrumbs ol{    margin: 0;
  padding: 0;
  background: initial;
  border-radius: 0;
  backdrop-filter: initial;
  border: initial;
  box-shadow: initial;
}
.es-breadcrumbs ol li::before{
  display: none !important;
}
.es-breadcrumbs .entry-crumbs li {
    padding: 0;
}
.es-breadcrumbs .entry-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.entry-crumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.es-breadcrumbs .entry-crumbs a{
  color: var(--gray-300);
  text-decoration: none;
  font-weight: normal;
  padding: 0;
  border-radius: 6px;
  background: none;
  border: 0;
  transition: none;
}

.entry-crumbs a:hover {
  background: var(--primary-color, #4db2ec);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(77, 178, 236, 0.3);
}

.entry-crumbs .current {
  color: #2d3748;
  font-weight: 700;
  padding: 0.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.td-bread-sep {
  color: #a0aec0;
  font-weight: 600;
  margin: 0 0.25rem;
}

/* 링크 정보 섹션 */
.link-detail > p {
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  /* background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color, #4db2ec);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease; */
}

/* .link-detail > p:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
} */

/* .link-detail > p strong {
  color: #2d3748;
  font-weight: 700;
  display: inline-block;
  min-width: 120px;
  margin-right: 1rem;
} */
/* 
.link-detail > p a {
  color: var(--primary-color, #4db2ec);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(77, 178, 236, 0.1);
  transition: all 0.3s ease;
}

.link-detail > p a:hover {
  background: var(--primary-color, #4db2ec);
  color: white;
  transform: translateY(-1px);
} */

/* 관련 링크 섹션 */
.es-related {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.es-related h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 2rem 0;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.es-related h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* 카드 그리드 */
.es-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* 개별 카드 */
.es-card {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.es-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.es-card:hover::before {
  transform: scaleX(1);
}

.es-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.es-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.es-card:hover .es-card__title {
  color: var(--primary-color, #4db2ec);
}

.es-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
  font-weight: 500;
}

.es-card__ext {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 애니메이션 */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
  .link-detail {
    padding: 1.5rem 1rem;
    margin: 1rem;
    border-radius: 15px;
  }
  
  .es-breadcrumbs {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .entry-crumbs {
    gap: 0.25rem;
  }
  
  .entry-crumbs a,
  .entry-crumbs .current {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .link-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .link-detail > p {
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
  }
  
  .link-detail > p strong {
    margin-bottom: 0.5rem;
    min-width: auto;
  }
  
  .es-related {
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }
  
  .es-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .es-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .link-detail {
    padding: 1rem 0.5rem;
    margin: 0.5rem;
  }
  
  .es-breadcrumbs {
    padding: 0.5rem 0.75rem;
  }
  
  .entry-crumbs a,
  .entry-crumbs .current {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .link-detail h1 {
    font-size: 1.75rem;
  }
  
  .es-related {
    padding: 1rem 0.75rem;
  }
  
  .es-card {
    padding: 1rem;
  }
  
  .es-card__title {
    font-size: 1rem;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .link-detail {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.95) 0%, 
      rgba(45, 55, 72, 0.95) 100%);
    color: #e2e8f0;
  }
  
  .es-breadcrumbs {
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .entry-crumbs .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .link-detail h1 {
    color: #e2e8f0;
  }
  
  .link-detail > p {
    background: rgba(26, 32, 44, 0.7);
    color: #e2e8f0;
  }
  
  .link-detail > p strong {
    color: #e2e8f0;
  }
  
  .es-related {
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .es-related h2 {
    color: #e2e8f0;
  }
  
  .es-card {
    background: rgba(26, 32, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
  }
  
  .es-card__title {
    color: #e2e8f0;
  }
  
  .es-card__meta {
    color: #a0aec0;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .es-card,
  .link-detail > p,
  .entry-crumbs a,
  .animate-fade-in {
    transition: none;
    animation: none;
  }
  
  .es-card:hover {
    transform: none;
  }
  
  .link-detail > p:hover {
    transform: none;
  }
}

/* 포커스 상태 */
.es-card:focus,
.entry-crumbs a:focus,
.link-detail > p a:focus {
  outline: 2px solid var(--primary-color, #4db2ec);
  outline-offset: 2px;
}

/* ========================================
   링크 상세 페이지 - 현대적 테이블 및 리스트 디자인
   ======================================== */

/* 테이블 컨테이너 */
.link-detail__content {
  position: relative;
  z-index: 2;
}

/* 현대적 테이블 스타일 */
.link-detail__content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  /* background: rgba(255, 255, 255, 0.9); */
  /* border-radius: 16px; */
  overflow: hidden;
  /* box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
}

/* .link-detail__content table:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
} */

/* 테이블 행 */
.link-detail__content tbody tr {
  position: relative;
  transition: all 0.3s ease;
}

/* .link-detail__content tbody tr:hover {
  background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.05) 0%, 
    rgba(69, 123, 157, 0.05) 100%);
} */

/* .link-detail__content tbody tr::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(230, 57, 70, 0.2) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
} */

/* .link-detail__content tbody tr:hover::before {
  opacity: 1;
} */

/* 테이블 셀 */
.link-detail__content td {
  padding: 1.25rem 1.5rem;
  border: none;
  position: relative;
  vertical-align: top;
}

/* 라벨 셀 (첫 번째 컬럼) */
.link-detail__content td[data-col-size="sm"] {
  /* background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.08) 0%, 
    rgba(69, 123, 157, 0.08) 100%); */
  font-weight: 700;
  /* color: var(--primary-color); */
  /* font-size: clamp(0.875rem, 2.5vw, 1rem); */
  letter-spacing: -0.01em;
  min-width: 120px;
  width: 30%;
  /* border-right: 2px solid rgba(230, 57, 70, 0.1); */
  position: relative;
}

/* .link-detail__content td[data-col-size="sm"]::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 2px;
  height: 60%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--primary-color) 50%, 
    transparent 100%);
  transform: translateY(-50%);
  opacity: 0.6;
} */

/* 값 셀 (두 번째 컬럼) */
.link-detail__content td[data-col-size="md"] {
  color: var(--gray-700);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  /* line-height: 1.6; */
  /* font-weight: 500; */
  word-break: keep-all;
  padding-left: 2rem;
}


/* .link-detail__content h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 50%,
    var(--primary-color) 100%);
  border-radius: 2px;
} */

/* .link-detail__content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-color) 50%, 
    transparent 100%);
  border-radius: 1px;
} */

/* 현대적 리스트 스타일 */
/* .link-detail__content ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
} */

/* .link-detail__content ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-color) 20%,
    var(--accent-color) 50%,
    var(--primary-color) 80%,
    transparent 100%);
  opacity: 0.8;
} */

/* .link-detail__content ul::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(69, 123, 157, 0.03) 0%, transparent 50%);
  pointer-events: none;
} */

/* 리스트 아이템 */
.link-detail__content li {
  position: relative;
  /* margin: 0.5rem; */
  padding: 0;
  /* background: rgba(255, 255, 255, 0.6); */
  border-radius: 16px;
  /* border-left: 4px solid var(--primary-color); */
  /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
  /* box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* .link-detail__content li:hover {
  transform: translateX(8px) translateY(-2px);
  background: rgba(255, 255, 255, 0.8);
  border-left-color: var(--accent-color);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
} */

/* .link-detail__content li::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 0 3px rgba(230, 57, 70, 0.2),
    0 2px 8px rgba(230, 57, 70, 0.3);
} */

/* .link-detail__content li::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.1) 0%, 
    rgba(69, 123, 157, 0.1) 100%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
} */

@keyframes pulse {
  0%, 100% { 
    transform: translateY(-50%) scale(1);
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-50%) scale(1.2);
    opacity: 0.3;
  }
}

/* 리스트 아이템 내부 문단 */
.link-detail__content li p {
  margin: 0;
  color: var(--gray-700);
  /* font-size: clamp(0.95rem, 2.5vw, 1.1rem); */
  line-height: 1.7;
  font-weight: 500;
}

/* 강조 텍스트 */
.link-detail__content li strong {
  /* color: var(--primary-color); */
  /* font-weight: 700; */
  /* font-size: clamp(1rem, 2.5vw, 1.2rem); */
  display: inline-block;
  margin-bottom: 0.5rem;
  position: relative;
}

.link-detail__content li strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    transparent 100%);
  border-radius: 1px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .link-detail__content table {
    margin: 1rem 0;
    border-radius: 12px;
  }
  
  .link-detail__content td {
    padding: 1rem;
    display: block;
    width: 100% !important;
    border-right: none !important;
  }
  
  .link-detail__content td[data-col-size="sm"] {
    background: linear-gradient(135deg, 
      rgba(230, 57, 70, 0.1) 0%, 
      rgba(69, 123, 157, 0.1) 100%);
    border-right: none;
    border-bottom: 2px solid rgba(230, 57, 70, 0.1);
    /* font-size: 0.9rem; */
    padding-bottom: 0.5rem;
  }
  
  .link-detail__content td[data-col-size="sm"]::after {
    display: none;
  }
  
  .link-detail__content td[data-col-size="md"] {
    padding-left: 1rem;
    padding-top: 0.5rem;
    font-size: 0.95rem;
  }
  
  .link-detail__content h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1.5rem 0;
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
  
  .link-detail__content ul {
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
  }
  
  .link-detail__content li {
    padding: 1.25rem 1.5rem 1.25rem 2.5rem;
    margin: 1.25rem 0;
    border-radius: 12px;
  }
  
  .link-detail__content li::before {
    left: 1rem;
    width: 6px;
    height: 6px;
  }
  
  .link-detail__content li::after {
    left: 1rem;
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .link-detail__content table {
    margin: 0.75rem 0;
    border-radius: 10px;
  }
  
  .link-detail__content td {
    padding: 0.875rem;
  }
  
  .link-detail__content td[data-col-size="sm"] {
    font-size: 0.85rem;
  }
  
  .link-detail__content td[data-col-size="md"] {
    font-size: 0.9rem;
  }
  
  .link-detail__content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    padding: 1rem 0.75rem;
    border-radius: 12px;
  }
  
  .link-detail__content ul {
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.25rem 0;
  }
  
  .link-detail__content li {
    padding: 1rem 1.25rem 1rem 2rem;
    margin: 1rem 0;
    border-radius: 10px;
  }
  
  .link-detail__content li::before {
    left: 0.75rem;
    width: 5px;
    height: 5px;
  }
  
  .link-detail__content li::after {
    left: 0.75rem;
    width: 8px;
    height: 8px;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .link-detail__content table {
    background: rgba(26, 32, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .link-detail__content tbody tr:hover {
    background: linear-gradient(135deg, 
      rgba(230, 57, 70, 0.1) 0%, 
      rgba(69, 123, 157, 0.1) 100%);
  }
  
  .link-detail__content td[data-col-size="sm"] {
    background: linear-gradient(135deg, 
      rgba(230, 57, 70, 0.15) 0%, 
      rgba(69, 123, 157, 0.15) 100%);
    color: var(--primary-color);
    border-right-color: rgba(230, 57, 70, 0.2);
  }
  
  .link-detail__content td[data-col-size="md"] {
    color: var(--gray-300);
  }
  
  .link-detail__content h2 {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.9) 0%, 
      rgba(45, 55, 72, 0.9) 100%);
    color: var(--gray-200);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .link-detail__content ul {
    background: rgba(26, 32, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .link-detail__content li {
    background: rgba(26, 32, 44, 0.6);
    border-left-color: var(--primary-color);
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .link-detail__content li:hover {
    background: rgba(26, 32, 44, 0.8);
    border-left-color: var(--accent-color);
  }
  
  .link-detail__content li p {
    color: var(--gray-300);
  }
  
  .link-detail__content li strong {
    color: var(--primary-color);
  }
}

/* 애니메이션 감소 모드 */
@media (prefers-reduced-motion: reduce) {
  .link-detail__content table,
  .link-detail__content li,
  .link-detail__content tbody tr {
    transition: none;
  }
  
  .link-detail__content table:hover,
  .link-detail__content li:hover {
    transform: none;
  }
  
  .link-detail__content li::after {
    animation: none;
  }
}

/* 접근성 개선 */
.link-detail__content table:focus-within {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.link-detail__content li:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ========================================
   링크 상세 페이지 - 본문 텍스트 현대적 디자인
   ======================================== */

/* 본문 텍스트 컨테이너 */
.link-detail__content.entry-content {
  position: relative;
  z-index: 2;
  max-width:1200px;
  margin: 0 auto;
  padding: .5rem 0;
}

/* 현대적 문단 스타일 */
.link-detail__content.entry-content p {
  /* margin: 0 0 .5rem 0; */
  padding: .2rem;
  /* background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2); */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.8;
  color: var(--gray-700);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: justify;
  word-break: keep-all;
  hyphens: auto;
}

/* 문단 호버 효과 */
/* .link-detail__content.entry-content p:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(250, 252, 255, 0.98) 100%);
} */

/* 문단 상단 장식선 */
.link-detail__content.entry-content p::before {
  /* content: ''; */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary-color) 20%,
    var(--accent-color) 50%,
    var(--primary-color) 80%,
    transparent 100%);
  opacity: 0.8;
}

/* 문단 배경 텍스처 */
.link-detail__content.entry-content p::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(69, 123, 157, 0.02) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0.6;
}

/* 첫 번째 문단 강조 */
/* .link-detail__content.entry-content p:first-child {
  background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.05) 0%, 
    rgba(255, 255, 255, 0.95) 30%,
    rgba(248, 250, 252, 0.95) 100%);
  border-left: 5px solid var(--primary-color);
  padding-left: 2.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  position: relative;
} */
/* 
.link-detail__content.entry-content p:first-child::before {
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 50%,
    var(--primary-color) 100%);
  opacity: 1;
  height: 4px;
} */

/* 첫 번째 문단 아이콘 */
/* .link-detail__content.entry-content p:first-child::after {
  content: '🏥';
  position: absolute;
  top: 1.5rem;
  left: -1rem;
  font-size: 1.5rem;
  opacity: 0.7;
  animation: pulse 3s ease-in-out infinite;
} */

/* 마지막 문단 강조 */
/* .link-detail__content.entry-content p:last-child {
  background: linear-gradient(135deg, 
    rgba(69, 123, 157, 0.05) 0%, 
    rgba(255, 255, 255, 0.95) 30%,
    rgba(248, 250, 252, 0.95) 100%);
  border-right: 5px solid var(--accent-color);
  padding-right: 2.5rem;
  position: relative;
} */

.link-detail__content.entry-content p:last-child::before {
  /* background: linear-gradient(90deg, 
    var(--accent-color) 0%, 
    var(--primary-color) 50%,
    var(--accent-color) 100%); */
  opacity: 1;
  height: 4px;
}

/* 마지막 문단 아이콘 */
.link-detail__content.entry-content p:last-child::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: -1rem;
  font-size: 1.5rem;
  opacity: 0.7;
  animation: pulse 3s ease-in-out infinite;
}

/* 문단 번호 표시 (데스크톱에서만) */
@media (min-width: 769px) {
  .link-detail__content.entry-content p:nth-child(n+2):not(:last-child)::before {
    /* content: counter(paragraph-cou/nter); */
    counter-increment: paragraph-counter;
    position: absolute;
    top: 1.5rem;
    left: -0.5rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, 
      var(--primary-color) 0%, 
      var(--accent-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 
      0 4px 12px rgba(230, 57, 70, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  
  .link-detail__content.entry-content {
    counter-reset: paragraph-counter;
  }
}

/* 관련 링크 섹션 */
.link-detail__content h3,
.link-detail__content h4 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-800);
  margin: 3rem 0 2rem 0;
  /* text-align: center; */
  position: relative;
  padding: 0;
  /* background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.9) 100%);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2); */
}

/* .link-detail__content h3::before,
.link-detail__content h4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--accent-color) 50%,
    var(--primary-color) 100%);
  border-radius: 2px;
} */

/* 반응형 디자인 */
@media (max-width: 768px) {
  .link-detail__content.entry-content {
    padding: 1.5rem 0;
  }
  
  .link-detail__content.entry-content p {
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    line-height: 1.7;
  }
  
  .link-detail__content.entry-content p:first-child {
    padding-left: 2rem;
    font-size: clamp(1rem, 3vw, 1.15rem);
  }
  
  .link-detail__content.entry-content p:last-child {
    padding-right: 2rem;
  }
  
  .link-detail__content.entry-content p:first-child::after {
    left: -0.75rem;
    font-size: 1.25rem;
  }
  
  .link-detail__content.entry-content p:last-child::after {
    right: -0.75rem;
    font-size: 1.25rem;
  }
  
  .link-detail__content h3,
  .link-detail__content h4 {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem 0;
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .link-detail__content.entry-content {
    padding: 1rem 0;
  }
  
  .link-detail__content.entry-content p {
    padding: 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.6;
    text-align: left;
  }
  
  .link-detail__content.entry-content p:first-child {
    padding-left: 1.75rem;
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  }
  
  .link-detail__content.entry-content p:last-child {
    padding-right: 1.75rem;
    text-align: left;
  }
  
  .link-detail__content.entry-content p:first-child::after {
    left: -0.5rem;
    font-size: 1rem;
  }
  
  .link-detail__content.entry-content p:last-child::after {
    right: -0.5rem;
    font-size: 1rem;
  }
  
  .link-detail__content h3,
  .link-detail__content h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
    padding: 1rem 0.75rem;
    border-radius: 12px;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .link-detail__content.entry-content p {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.95) 0%, 
      rgba(45, 55, 72, 0.95) 100%);
    color: var(--gray-200);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .link-detail__content.entry-content p:hover {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.98) 0%, 
      rgba(45, 55, 72, 0.98) 100%);
    box-shadow: 
      0 16px 48px rgba(0, 0, 0, 0.6),
      0 8px 24px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  .link-detail__content.entry-content p:first-child {
    background: linear-gradient(135deg, 
      rgba(230, 57, 70, 0.1) 0%, 
      rgba(26, 32, 44, 0.95) 30%,
      rgba(45, 55, 72, 0.95) 100%);
    border-left-color: var(--primary-color);
  }
  
  .link-detail__content.entry-content p:last-child {
    background: linear-gradient(135deg, 
      rgba(69, 123, 157, 0.1) 0%, 
      rgba(26, 32, 44, 0.95) 30%,
      rgba(45, 55, 72, 0.95) 100%);
    border-right-color: var(--accent-color);
  }
  
  .link-detail__content h3,
  .link-detail__content h4 {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.9) 0%, 
      rgba(45, 55, 72, 0.9) 100%);
    color: var(--gray-200);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* 애니메이션 감소 모드 */
@media (prefers-reduced-motion: reduce) {
  .link-detail__content.entry-content p {
    transition: none;
  }
  
  .link-detail__content.entry-content p:hover {
    transform: none;
  }
  
  .link-detail__content.entry-content p:first-child::after,
  .link-detail__content.entry-content p:last-child::after {
    animation: none;
  }
}

/* 접근성 개선 */
.link-detail__content.entry-content p:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 읽기 모드 최적화 */
@media (prefers-color-scheme: light) {
  .link-detail__content.entry-content p {
    color: var(--gray-700);
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .link-detail__content.entry-content p {
    border: 2px solid var(--gray-800);
    background: var(--white);
    color: var(--black);
  }
  
  .link-detail__content.entry-content p:first-child {
    border-left-width: 4px;
  }
  
  .link-detail__content.entry-content p:last-child {
    border-right-width: 4px;
  }
}

/* ========================================
   워드프레스 기본 에디터 요소 통합 디자인 (.link-detail)
   ======================================== */

/* 워드프레스 에디터 공통 디자인 시스템 */
.link-detail {
  /* 기본 컨테이너 스타일 */
  max-width: 1200px;
  margin: 0 auto;
  padding: .5rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.link-detail::before {
  /* content: ''; */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--primary-color, #e63946) 0%, 
    var(--accent-color, #457b9d) 50%, 
    var(--primary-color, #e63946) 100%);
  border-radius: 20px 20px 0 0;
}

/* 제목 계층 구조 (H1-H6) */
.link-detail h1,
.link-detail h2,
.link-detail h3,
.link-detail h4,
.link-detail h5,
.link-detail h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* font-weight: 800; */
  /* line-height: 1.3; */
  /* margin: 0.5rem 0; */
  /* color: #1a202c; */
  position: relative;
}

.link-detail h1 {
  /* font-size: clamp(2rem, 5vw, 3.5rem); */
  text-align: left;
  /* background: linear-gradient(135deg, #e63946 0%, #457b9d 100%); */
  /* -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
  /* background-clip: text; */
  padding: .5rem 0;
}

/* .link-detail h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50px;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #e63946 0%, #457b9d 100%);
  border-radius: 2px;
} */

.link-detail h2 {
  /* font-size: clamp(1.75rem, 4vw, 2.5rem); */
  /* background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.9) 100%); */
  /* padding: 0.5rem 1rem; */
  /* border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px); */
  /* text-align: center; */
}

/* .link-detail h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, 
    #e63946 0%, 
    #457b9d 50%,
    #e63946 100%);
  border-radius: 2px;
} */

.link-detail h3 {
  /* font-size: clamp(1.5rem, 3vw, 2rem); */
  /* border-left: 4px solid #e63946; */
  padding: 1rem 1.5rem;
  /* background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.05) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
  border-radius: 16px; */
  margin: 0 0;
}

.link-detail h4 {
  /* font-size: clamp(1.25rem, 2.5vw, 1.5rem); */
  color: #e63946;
  margin: 1.5rem 0 1rem 0;
}

.link-detail h5 {
  /* font-size: clamp(1.125rem, 2vw, 1.25rem); */
  color: #457b9d;
  margin: 1.5rem 0 1rem 0;
}

.link-detail h6 {
  /* font-size: clamp(1rem, 2vw, 1.125rem); */
  color: #64748b;
  margin: 1rem 0 0.5rem 0;
}

/* 문단 스타일 */
.link-detail p {
  margin:0.25rem 0;
  padding: 0.25rem .5rem;
  /* background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  border-radius: 5px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2); */
  position: relative;
  overflow: hidden;
  /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.8;
  color: #374151;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: justify;
  word-break: keep-all;
  hyphens: auto;
}

/* .link-detail p:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(250, 252, 255, 0.98) 100%);
} */

/* .link-detail p::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #e63946 20%,
    #457b9d 50%,
    #e63946 80%,
    transparent 100%);
  opacity: 0.8;
} */

.link-detail p::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: 
    radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(69, 123, 157, 0.02) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); */
  pointer-events: none;
  opacity: 0.6;
}
/* ========================================
   워드프레스 기본 에디터 요소 통합 디자인 (.link-detail)
   ======================================== */

/* 리스트 스타일 */
.link-detail ul,
.link-detail ol {
  /* margin: .5rem 0; */
  /* padding: .5rem; */
  /* background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2); */
  position: relative;
  overflow: hidden;
  list-style: none;
}

/* .link-detail ul::before,
.link-detail ol::before {
  content: ''; 
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #e63946 20%,
    #457b9d 50%,
    #e63946 80%,
    transparent 100%);
  opacity: 0.8;
} */

/* .link-detail ul::after,
.link-detail ol::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(69, 123, 157, 0.03) 0%, transparent 50%);
  pointer-events: none;
} */

/* 순서 있는 리스트 번호 */
.link-detail ol {
  counter-reset: list-counter;
}

.link-detail ol li {
  counter-increment: list-counter;
}

.link-detail ol li::before {
  content: counter(list-counter);
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, 
    #e63946 0%, 
    #457b9d 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 
    0 4px 12px rgba(230, 57, 70, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 링크 스타일 */
.link-detail a {
  color: #e63946;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-detail a:hover {
  background: #e63946;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.link-detail a::before {
  /* content: ''; */
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.link-detail a:hover::before {
  left: 100%;
}

/* 강조 텍스트 */
.link-detail strong,
.link-detail b {
  /* color: #e63946; */
  font-weight: 700;
  position: relative;
  padding: 0.125rem 0;
}

.link-detail strong::after,
.link-detail b::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    #e63946 0%, 
    transparent 100%);
  border-radius: 1px;
}

.link-detail em,
.link-detail i {
  color: #457b9d;
  font-style: italic;
  font-weight: 600;
}

/* 인용문 스타일 */
.link-detail blockquote {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, 
    rgba(69, 123, 157, 0.05) 0%, 
    rgba(255, 255, 255, 0.95) 100%);
  border-left: 5px solid #457b9d;
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  position: relative;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: #374151;
}

.link-detail blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-size: 3rem;
  color: #457b9d;
  opacity: 0.3;
  font-family: serif;
}

.link-detail blockquote p {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.link-detail blockquote cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
  font-style: normal;
  text-align: right;
}

/* 코드 스타일 */
.link-detail code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.05) 0%, 
    rgba(30, 41, 59, 0.05) 100%);
  color: #e63946;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid rgba(230, 57, 70, 0.2);
  font-weight: 600;
}

.link-detail pre {
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(30, 41, 59, 0.95) 100%);
  color: #e2e8f0;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.link-detail pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    #e63946 0%, 
    #457b9d 50%,
    #e63946 100%);
}

.link-detail pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* 테이블 스타일 */
.link-detail table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: .5rem 0;
  /* background: rgba(255, 255, 255, 0.9); */
  border-radius: 20px;
  overflow: hidden;
  /* box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
}

/* .link-detail table:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
} */

.link-detail th,
.link-detail td {
  padding: 0.25rem 0.5rem;
  border: none;
  position: relative;
  vertical-align: top;
}

.link-detail th {
  background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.08) 0%, 
    rgba(69, 123, 157, 0.08) 100%);
  font-weight: 700;
  color: #e63946;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  letter-spacing: -0.01em;
}

.link-detail td {
  color: #374151;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  font-weight: 500;
}

/* .link-detail tr:hover td {
  background: linear-gradient(135deg, 
    rgba(230, 57, 70, 0.05) 0%, 
    rgba(69, 123, 157, 0.05) 100%);
} */

/* 이미지 스타일 */
.link-detail img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  display: block;
}

.link-detail img:hover {
  transform: scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 이미지 캡션 */
.link-detail figcaption {
  display:none;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
  text-align: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* 구분선 스타일 */
.link-detail hr {
  margin: 3rem 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #e63946 20%,
    #457b9d 50%,
    #e63946 80%,
    transparent 100%);
  border: none;
  border-radius: 1px;
  position: relative;
}

.link-detail hr::before {
  /* content: ''; */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, 
    #e63946 0%, 
    #457b9d 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .link-detail {
    padding: 1.5rem 1rem;
    margin: 1rem;
  }
  
  .link-detail h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
  
  .link-detail h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    padding: 1.25rem 1.5rem;
  }
  
  .link-detail h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    padding: 0.875rem 1.25rem;
  }
  
  .link-detail p {
    padding: 1.25rem 1.5rem;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  }
  
  .link-detail ul,
  .link-detail ol {
    padding: 1.5rem;
  }
  
  .link-detail li {
    padding: 1.25rem 1.5rem 1.25rem 2.5rem;
  }
  
  .link-detail li::before {
    left: 1.25rem;
    width: 6px;
    height: 6px;
  }
  
  .link-detail ol li::before {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  
  .link-detail table {
    font-size: 0.875rem;
  }
  
  .link-detail th,
  .link-detail td {
    padding: 1rem;
  }
  
  .link-detail img {
    margin: 1.5rem auto;
  }
  
  .link-detail pre {
    padding: 1.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .link-detail {
    padding: 1rem 0.75rem;
    margin: 0.75rem;
    border-radius: 16px;
  }
  
  .link-detail h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 1.5rem 0 1rem 0;
  }
  
  .link-detail h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 1rem 0;
  }
  
  .link-detail h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    padding: 0.75rem 1rem;
    margin: 1.5rem 0 1rem 0;
  }
  
  .link-detail p {
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.7;
  }
  
  .link-detail ul,
  .link-detail ol {
    padding: 1.25rem;
    margin: 1.5rem 0;
  }
  
  .link-detail li {
    padding: 1rem 1.25rem 1rem 2rem;
    margin: 1.25rem 0;
  }
  
  .link-detail li::before {
    left: 1rem;
    width: 5px;
    height: 5px;
  }
  
  .link-detail ol li::before {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
  
  .link-detail th,
  .link-detail td {
    padding: 0.875rem;
    font-size: 0.8rem;
  }
  
  .link-detail img {
    margin: 1.25rem auto;
  }
  
  .link-detail pre {
    padding: 1.25rem;
    font-size: 0.75rem;
  }
  
  .link-detail blockquote {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .link-detail hr {
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .link-detail {
    padding: 0.75rem 0.5rem;
    margin: 0.5rem;
    border-radius: 12px;
  }
  
  .link-detail h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin: 1.25rem 0 0.75rem 0;
  }
  
  .link-detail h2 {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
    padding: 0.875rem 1rem;
    margin: 1.25rem 0 0.75rem 0;
  }
  
  .link-detail h3 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    padding: 0.625rem 0.875rem;
    margin: 1.25rem 0 0.75rem 0;
  }
  
  .link-detail p {
    padding: 0.875rem 1rem;
    margin: 1rem 0;
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    line-height: 1.6;
  }
  
  .link-detail ul,
  .link-detail ol {
    padding: 1rem;
    margin: 1.25rem 0;
  }
  
  .link-detail li {
    padding: 0.875rem 1rem 0.875rem 1.75rem;
    margin: 1rem 0;
  }
  
  .link-detail li::before {
    left: 0.875rem;
    width: 4px;
    height: 4px;
  }
  
  .link-detail ol li::before {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }
  
  .link-detail th,
  .link-detail td {
    padding: 0.75rem;
    font-size: 0.75rem;
  }
  
  .link-detail img {
    margin: 1rem auto;
  }
  
  .link-detail pre {
    padding: 1rem;
    font-size: 0.7rem;
  }
  
  .link-detail blockquote {
    padding: 1.25rem;
    margin: 1.25rem 0;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  }
  
  .link-detail hr {
    margin: 1.5rem 0;
  }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
  .link-detail {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.95) 0%, 
      rgba(45, 55, 72, 0.95) 100%);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .link-detail h1,
  .link-detail h2,
  .link-detail h3,
  .link-detail h4,
  .link-detail h5,
  .link-detail h6 {
    color: #e2e8f0;
  }
  
  .link-detail p {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.7) 0%, 
      rgba(45, 55, 72, 0.7) 100%);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .link-detail ul,
  .link-detail ol {
    background: linear-gradient(135deg, 
      rgba(26, 32, 44, 0.7) 0%, 
      rgba(45, 55, 72, 0.7) 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .link-detail li {
    background: rgba(26, 32, 44, 0.6);
    color: #e2e8f0;
    border-left-color: #e63946;
  }
  
  .link-detail li:hover {
    background: rgba(26, 32, 44, 0.8);
    border-left-color: #457b9d;
  }
  
  .link-detail a {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
    color: #e63946;
  }
  
  .link-detail a:hover {
    background: #e63946;
    color: white;
  }
  
  .link-detail strong,
  .link-detail b {
    color: #e63946;
  }
  
  .link-detail em,
  .link-detail i {
    color: #457b9d;
  }
  
  .link-detail blockquote {
    background: linear-gradient(135deg, 
      rgba(69, 123, 157, 0.1) 0%, 
      rgba(26, 32, 44, 0.7) 100%);
    color: #e2e8f0;
    border-left-color: #457b9d;
  }
  
  .link-detail code {
    background: linear-gradient(135deg, 
      rgba(15, 23, 42, 0.1) 0%, 
      rgba(30, 41, 59, 0.1) 100%);
    color: #e63946;
    border-color: rgba(230, 57, 70, 0.3);
  }
  
  .link-detail pre {
    background: linear-gradient(135deg, 
      rgba(15, 23, 42, 0.98) 0%, 
      rgba(30, 41, 59, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .link-detail table {
    background: rgba(26, 32, 44, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .link-detail th {
    background: linear-gradient(135deg, 
      rgba(230, 57, 70, 0.15) 0%, 
      rgba(69, 123, 157, 0.15) 100%);
    color: #e63946;
  }
  
  .link-detail td {
    color: #e2e8f0;
  }
  
  .link-detail tr:hover td {
    background: linear-gradient(135deg, 
      rgba(230, 57, 70, 0.1) 0%, 
      rgba(69, 123, 157, 0.1) 100%);
  }
  
  .link-detail figcaption {
    background: rgba(26, 32, 44, 0.7);
    color: #a0aec0;
  }
}

/* 애니메이션 감소 모드 */
@media (prefers-reduced-motion: reduce) {
  .link-detail * {
    transition: none !important;
    animation: none !important;
  }
  
  .link-detail p:hover,
  .link-detail li:hover,
  .link-detail table:hover,
  .link-detail img:hover,
  .link-detail a:hover {
    transform: none !important;
  }
}

/* 접근성 개선 */
.link-detail a:focus,
.link-detail li:focus,
.link-detail table:focus-within {
  outline: 3px solid #e63946;
  outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .link-detail {
    border: 2px solid #1a202c;
    background: #ffffff;
    color: #000000;
  }
  
  .link-detail p,
  .link-detail ul,
  .link-detail ol,
  .link-detail table {
    border: 2px solid #1a202c;
    background: #ffffff;
    color: #000000;
  }
  
  .link-detail a {
    border: 2px solid #e63946;
    background: #e63946;
    color: white;
  }
  
  .link-detail strong,
  .link-detail b {
    background: #e63946;
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
  }
}