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

html {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

body {
  background-color: #f8f9fa;
  font-size: 16px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Theme Variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #fafafa;
  --text-primary: #333;
  --text-secondary: #666;
  --text-tertiary: #999;
  --border-color: #e5e5e5;
  --header-bg: #ECECF6;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
}


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

/* Top Copy */
.top-copy {
  text-align: center;
  margin-bottom: 2rem;
}

.top-copy img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* Pop Hero Section */
.pop-hero {
  position: relative;
  min-height: 80vh;
  background: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.pop-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50% 40% 60% 30%;
  animation: amoeba 8s ease-in-out infinite;
}

.shape-1 {
  width: 60px;
  height: 60px;
  background: #ff6b6b;
  top: 20%;
  left: 10%;
  animation: amoeba1 6s ease-in-out infinite;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: #4ecdc4;
  top: 60%;
  right: 15%;
  animation: amoeba2 9s ease-in-out infinite;
}

.shape-3 {
  width: 40px;
  height: 40px;
  background: #45b7d1;
  top: 30%;
  right: 25%;
  animation: amoeba3 7s ease-in-out infinite;
}

.shape-4 {
  width: 70px;
  height: 70px;
  background: #f9ca24;
  bottom: 30%;
  left: 20%;
  animation: amoeba4 10s ease-in-out infinite;
}

.shape-5 {
  width: 50px;
  height: 50px;
  background: #6c5ce7;
  top: 10%;
  right: 40%;
  animation: amoeba5 8s ease-in-out infinite;
}

.shape-6 {
  width: 90px;
  height: 90px;
  background: #a29bfe;
  bottom: 20%;
  right: 30%;
  animation: amoeba6 11s ease-in-out infinite;
}

@keyframes amoeba1 {
  0% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    border-radius: 60% 40% 30% 70%;
  }
  33% { 
    transform: translateY(-20px) translateX(10px) rotate(120deg) scale(1.2);
    border-radius: 30% 70% 60% 40%;
  }
  66% { 
    transform: translateY(-10px) translateX(-5px) rotate(240deg) scale(0.8);
    border-radius: 70% 30% 40% 60%;
  }
  100% { 
    transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    border-radius: 60% 40% 30% 70%;
  }
}

@keyframes amoeba2 {
  0% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    border-radius: 40% 60% 50% 30%;
  }
  25% { 
    transform: translateY(-30px) translateX(-15px) rotate(90deg) scale(1.1);
    border-radius: 60% 30% 40% 50%;
  }
  50% { 
    transform: translateY(-15px) translateX(20px) rotate(180deg) scale(0.9);
    border-radius: 30% 50% 60% 40%;
  }
  75% { 
    transform: translateY(-25px) translateX(-10px) rotate(270deg) scale(1.15);
    border-radius: 50% 40% 30% 60%;
  }
  100% { 
    transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    border-radius: 40% 60% 50% 30%;
  }
}

@keyframes amoeba3 {
  0% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    border-radius: 50% 30% 60% 40%;
  }
  40% { 
    transform: translateY(-15px) translateX(15px) rotate(144deg) scale(1.3);
    border-radius: 30% 60% 40% 50%;
  }
  80% { 
    transform: translateY(-25px) translateX(-10px) rotate(288deg) scale(0.7);
    border-radius: 60% 40% 50% 30%;
  }
  100% { 
    transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    border-radius: 50% 30% 60% 40%;
  }
}

@keyframes amoeba4 {
  0% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    border-radius: 35% 65% 45% 55%;
  }
  20% { 
    transform: translateY(-10px) translateX(20px) rotate(72deg) scale(1.05);
    border-radius: 65% 35% 55% 45%;
  }
  40% { 
    transform: translateY(-30px) translateX(-5px) rotate(144deg) scale(1.2);
    border-radius: 45% 55% 35% 65%;
  }
  60% { 
    transform: translateY(-20px) translateX(10px) rotate(216deg) scale(0.85);
    border-radius: 55% 45% 65% 35%;
  }
  80% { 
    transform: translateY(-5px) translateX(-15px) rotate(288deg) scale(1.1);
    border-radius: 65% 35% 45% 55%;
  }
  100% { 
    transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    border-radius: 35% 65% 45% 55%;
  }
}

@keyframes amoeba5 {
  0% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    border-radius: 55% 45% 35% 65%;
  }
  30% { 
    transform: translateY(-25px) translateX(-20px) rotate(108deg) scale(0.9);
    border-radius: 45% 35% 65% 55%;
  }
  60% { 
    transform: translateY(-10px) translateX(25px) rotate(216deg) scale(1.25);
    border-radius: 35% 65% 55% 45%;
  }
  100% { 
    transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    border-radius: 55% 45% 35% 65%;
  }
}

@keyframes amoeba6 {
  0% { 
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    border-radius: 45% 55% 40% 60%;
  }
  15% { 
    transform: translateY(-20px) translateX(15px) rotate(54deg) scale(1.1);
    border-radius: 55% 40% 60% 45%;
  }
  30% { 
    transform: translateY(-35px) translateX(-10px) rotate(108deg) scale(0.8);
    border-radius: 40% 60% 45% 55%;
  }
  45% { 
    transform: translateY(-25px) translateX(20px) rotate(162deg) scale(1.15);
    border-radius: 60% 45% 55% 40%;
  }
  60% { 
    transform: translateY(-15px) translateX(-25px) rotate(216deg) scale(0.95);
    border-radius: 45% 55% 40% 60%;
  }
  75% { 
    transform: translateY(-30px) translateX(5px) rotate(270deg) scale(1.05);
    border-radius: 55% 40% 60% 45%;
  }
  90% { 
    transform: translateY(-10px) translateX(-15px) rotate(324deg) scale(1.2);
    border-radius: 40% 60% 45% 55%;
  }
  100% { 
    transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
    border-radius: 45% 55% 40% 60%;
  }
}

.pop-hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.pop-search {
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Characters */
.floating-characters {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.character {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: characterFloat 8s ease-in-out infinite;
}

.character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.char-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.char-2 {
  top: 15%;
  right: 8%;
  animation-delay: 1.5s;
}

.char-3 {
  bottom: 15%;
  left: 10%;
  animation-delay: 3s;
}

.char-4 {
  bottom: 10%;
  right: 15%;
  animation-delay: 4.5s;
}

.char-5 {
  top: 8%;
  left: 30%;
  animation-delay: 6s;
}

@keyframes characterFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% { 
    transform: translateY(-15px) rotate(5deg) scale(1.05);
  }
  50% { 
    transform: translateY(-10px) rotate(-3deg) scale(1.1);
  }
  75% { 
    transform: translateY(-20px) rotate(2deg) scale(1.05);
  }
}

/* Responsive adjustments for characters */
@media (max-width: 768px) {
  .character {
    width: 80px;
    height: 80px;
  }
  
  .char-5 {
    display: none; /* Hide center character on mobile for better visibility */
  }
}

/* Pop Categories */
.pop-categories {
  padding: 6rem 0;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.categories-header {
  text-align: center;
  margin-bottom: 4rem;
}

.categories-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.categories-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #300045;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-count {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
}

.deco-circle, .deco-triangle, .deco-star, .deco-heart, .deco-diamond, .deco-square {
  position: absolute;
  opacity: 0.1;
}

.deco-circle {
  width: 30px;
  height: 30px;
  background: #ff6b6b;
  border-radius: 50%;
  top: 10px;
  right: 10px;
}

.deco-triangle {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid #4ecdc4;
  top: 50px;
  right: 20px;
}

/* Recent Posts */
.recent-posts {
  padding: 6rem 0;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.recent-header {
  text-align: center;
  margin-bottom: 4rem;
}

.recent-title {
  font-size: 3rem;
  font-weight: 900;
  color: #300045;
  margin-bottom: 1rem;
}

.recent-subtitle {
  font-size: 1.2rem;
  color: #666;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

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

.btn-pop {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.btn-pop:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff5268, #ff7a8a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 82, 104, 0.3);
  flex-shrink: 0;
}

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

.logo-title {
  font-size: 20px;
  font-weight: bold;
  color: #300045;
  line-height: 1;
  transition: color 0.3s ease;
}

.logo-subtitle {
  font-size: 11px;
  color: #300045;
  line-height: 1;
}

.logo:hover .logo-title {
  color: #ff5268;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin-left: auto;
  margin-right: 40px;
}

.nav-link {
  text-decoration: none;
  color: #300045;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ff5268;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff5268;
  transition: width 0.3s ease;
}

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

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

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  box-sizing: border-box;
}


.btn-primary {
  background: linear-gradient(135deg, #ff5268, #ff7a8a);
  color: white;
  border: 1px solid #ff5268;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 82, 104, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e8455f, #ff6883);
  box-shadow: 0 4px 12px rgba(255, 82, 104, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: #555;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #555;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: #f5f5f5;
  color: #ff5268;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  display: flex;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: #ff5268;
  transform: scale(1.1);
}

.theme-toggle-icon {
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-icon {
  transform: rotate(20deg);
}

.mobile-theme-toggle {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px;
}

.mobile-menu-links {
  list-style: none;
  margin-bottom: 20px;
}

.mobile-menu-links li {
  margin-bottom: 10px;
}

.mobile-menu-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  display: block;
  padding: 10px 0;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-menu.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .logo-text {
    display: none;
  }
  
  .header-actions .btn {
    display: none;
  }
}

/* Page content offset for fixed header */
.page-content {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #fef7f7 50%, #ffeaea 100%);
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #ff5268, #ff7a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Search Bar */
.search-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  border: 1px solid #ddd;
  border-radius: 16px;
  font-size: 18px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ff5268;
  box-shadow: 0 8px 32px rgba(255, 82, 104, 0.2);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  width: 20px;
  height: 20px;
}

/* Article Content Styles */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Article with Sidebar Layout */
.article-container-with-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}


.article-main {
  max-width: 800px;
}

.article-main .article-content {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
}

.article-header-inner {
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid #f8f9fa;
}

.article-meta-compact {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.article-tags-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tag-compact {
  color: #ff3a52 !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 82, 104, 0.1);
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.article-tag-compact:hover {
  background: rgba(255, 82, 104, 0.2);
  text-decoration: none !important;
}

.article-tag-compact:visited {
  text-decoration: none !important;
}

.article-category-compact {
  display: none;
  color: white !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.article-category-compact:hover {
  color: white !important;
  text-decoration: none !important;
  opacity: 0.8;
}

.article-category-compact:visited {
  color: white !important;
  text-decoration: none !important;
}

/* Category colors */
.article-category-compact[href*="engineering"] {
  background: linear-gradient(135deg, #3182ce, #4299e1);
}

.article-category-compact[href*="design"] {
  background: linear-gradient(135deg, #805ad5, #9f7aea);
}

.article-category-compact[href*="management"] {
  background: linear-gradient(135deg, #38a169, #48bb78);
}

.tags-more {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.article-body {
  /* Article body specific styles if needed */
}

.article-body a {
  color: #0066cc;
  text-decoration: underline;
}

.article-body a:hover {
  color: #0052a3;
}

.article-sidebar {
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.company-info-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  text-align: center;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.company-icon {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.company-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.company-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.company-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.company-link {
  color: #ff5268;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.company-link:hover {
  opacity: 0.8;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .article-container-with-sidebar {
    display: block;
  }
  
  .article-sidebar {
    position: static;
    max-height: none;
    margin-top: 2rem;
  }
  
  .article-main {
    max-width: 100%;
  }
  
  .article-main .article-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .article-main .article-content {
    padding: 1.5rem;
    border-radius: 8px;
  }
  
  .article-meta-compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--text-primary);
  font-weight: bold;
  margin: 2em 0 1em 0;
  line-height: 1.3;
}

.article-content h1 {
  font-size: 2rem;
  border-bottom: 3px solid #ff5268;
  padding-bottom: 0.5em;
}

.article-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #ff5268;
  padding-bottom: 0.3em;
}

.article-content h3 {
  font-size: 1.25rem;
  border-left: 3px solid #ff5268;
  padding-left: 0.8rem;
  background: rgba(255, 82, 104, 0.02);
  padding: 0.5rem 0 0.5rem 0.8rem;
}

.article-content h4 {
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
  color: #ff5268;
}

.article-content h4::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff5268;
  font-size: 0.9rem;
}

.article-content p {
  margin: 1.5em 0;
  line-height: 1.8;
}

.article-content a {
  color: #0066cc;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: #0052a3;
}

.article-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  color: #d14;
}

.article-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  line-height: 1.5;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-content blockquote {
  border-left: 4px solid #ff5268;
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: #666;
  font-style: italic;
  background: #fafafa;
  padding: 1em 1.5em;
  border-radius: 0 8px 8px 0;
}

.article-content ul,
.article-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.article-content li {
  margin: 0.5em 0;
  line-height: 1.6;
}

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

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.article-content th {
  background: #f8f9fa;
  font-weight: bold;
  color: #333;
}

/* モバイル向けテーブルスタイル */
@media (max-width: 768px) {
  /* テーブルを横スクロール可能にするコンテナ */
  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 1.5em -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
  }
  
  .article-content th,
  .article-content td {
    padding: 10px 12px;
    font-size: 0.875rem;
    min-width: 120px;
  }
  
  .article-content th:first-child,
  .article-content td:first-child {
    padding-left: 1rem;
  }
  
  .article-content th:last-child,
  .article-content td:last-child {
    padding-right: 1rem;
  }
  
  /* 横スクロールのインジケータを表示 */
  .article-content table::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: -1px;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
  }
  
  /* スクロールバーのスタイル調整 */
  .article-content table::-webkit-scrollbar {
    height: 8px;
  }
  
  .article-content table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .article-content table::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }
  
  .article-content table::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

/* Article Header */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.article-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #300045 !important;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: #666;
  font-size: 0.9rem;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-category.engineering {
  background: #e3f2fd;
  color: #1976d2;
}

.article-category.design {
  background: #f3e5f5;
  color: #7b1fa2;
}

.article-category.management {
  background: #e8f5e8;
  color: #388e3c;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.article-tag {
  background: #f5f5f5;
  color: #666;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: #ff5268;
  color: white;
}

/* Footer Styles */
.footer {
  background: #2d3748;
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: white;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff5268, #ff7a8a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: bold;
}

.footer-description {
  color: #cbd5e0;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #4a5568;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #ff5268;
  color: white;
  transform: translateY(-2px);
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ff5268;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-actions {
  display: flex;
  gap: 1rem;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 16px;
  }
  
  .footer-brand {
    grid-column: 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-actions {
    order: -1;
  }
}

/* AI Homepage Styles */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.2); }
}

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

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

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

/* AI Hero Section */
.ai-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ai-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.neural-network {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100px 100px, 120px 120px, 80px 80px;
  animation: float 6s ease-in-out infinite;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(0, 0, 0, 0.1), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(0, 0, 0, 0.08), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 0, 0, 0.12), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: float 8s linear infinite;
}

.ai-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-primary);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}

.ai-icon {
  animation: pulse 2s ease-in-out infinite;
}

.ai-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.glitch-text {
  display: block;
  color: var(--text-primary);
  text-shadow: 
    0 0 20px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(0, 0, 0, 0.05);
}

.hologram-text {
  display: block;
  background: linear-gradient(45deg, #2d3748, #4a5568, #718096);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.ai-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.typing-effect {
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  animation: typing 3s steps(30, end) infinite;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* AI Search */
.ai-search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border-radius: 20px;
  filter: blur(10px);
  opacity: 0.3;
  animation: glow 3s ease-in-out infinite;
}

.ai-search-suggestions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.ai-search-suggestions span {
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-search-suggestions span:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #00ffff;
}

/* AI Dashboard */
.ai-dashboard {
  background: #0f0f23;
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.metric-card {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: pulse 3s ease-in-out infinite;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: float 3s linear infinite;
}

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

.metric-value {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.metric-trend {
  font-size: 0.9rem;
  color: #00ff00;
  font-weight: 500;
}

/* Neural Articles */
.neural-articles {
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
  padding: 5rem 0;
  color: white;
}

.ai-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.neural-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.circuit-line {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  position: relative;
}

.circuit-line::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff;
  animation: neural-pulse 2s ease-in-out infinite;
}

.ai-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.neural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.neural-article {
  position: relative;
  opacity: 0;
  animation: float 0.8s ease-out forwards;
}

.article-neural-border {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #ffff00);
  border-radius: 12px;
  z-index: 1;
  opacity: 0.5;
  animation: glow 3s ease-in-out infinite;
}

.ai-confidence {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius: 15px;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  color: #00ffff;
  font-weight: 600;
  z-index: 3;
}

/* AI CTA */
.ai-cta-section {
  text-align: center;
}

.ai-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  background: none;
  border: none;
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  border-radius: 50px;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #0f0f23;
  border-radius: 48px;
  margin: 2px;
  transition: all 0.3s ease;
}

.ai-btn:hover .btn-bg {
  animation: glow 0.3s ease-in-out;
}

.ai-btn:hover .btn-text {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* AI Matrix */
.ai-matrix {
  background: linear-gradient(180deg, #1a2332 0%, #2a3441 100%);
  padding: 5rem 0;
  color: white;
}

.matrix-header {
  text-align: center;
  margin-bottom: 4rem;
}

.matrix-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(45deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.matrix-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.matrix-node {
  display: block;
  text-decoration: none;
  color: white;
  text-align: center;
  position: relative;
  transition: all 0.5s ease;
}

.matrix-node:hover {
  transform: translateY(-10px);
}

.node-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 3;
}

.matrix-node.engineering .node-core {
  background: linear-gradient(45deg, #4a5568, #2d3748);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.matrix-node.design .node-core {
  background: linear-gradient(45deg, #5a6570, #3a4550);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.matrix-node.management .node-core {
  background: linear-gradient(45deg, #6a7580, #4a5560);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.node-rings {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ring-1 {
  width: 100px;
  height: 100px;
  animation: neural-pulse 3s ease-in-out infinite;
}

.ring-2 {
  width: 120px;
  height: 120px;
  animation: neural-pulse 3s ease-in-out infinite 0.5s;
}

.ring-3 {
  width: 140px;
  height: 140px;
  animation: neural-pulse 3s ease-in-out infinite 1s;
}

.node-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.node-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* AI Responsive */
@media (max-width: 1024px) {
  .ai-title {
    font-size: 3rem;
  }
  
  .neural-title {
    font-size: 2.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .circuit-line {
    width: 80px;
  }
  
  .matrix-title {
    font-size: 2.5rem;
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .neural-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .matrix-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .ai-hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .ai-title {
    font-size: 2.5rem;
  }
  
  .ai-subtitle {
    font-size: 1.1rem;
  }
  
  .ai-search-container {
    max-width: 500px;
  }
  
  .ai-search-suggestions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .neural-title {
    font-size: 2rem;
  }
  
  .matrix-title {
    font-size: 2rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .metric-card {
    padding: 1.5rem;
  }
  
  .metric-value {
    font-size: 2.5rem;
  }
  
  .neural-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .node-core {
    width: 60px;
    height: 60px;
  }
  
  .ring-1 {
    width: 80px;
    height: 80px;
  }
  
  .ring-2 {
    width: 100px;
    height: 100px;
  }
  
  .ring-3 {
    width: 120px;
    height: 120px;
  }
  
  .article-container,
  .article-header {
    padding: 0 16px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-content {
    font-size: 15px;
  }
  
  .article-content h1 {
    font-size: 1.75rem;
  }
  
  .article-content h2 {
    font-size: 1.4rem;
  }
  
  .article-content h3 {
    font-size: 1.2rem;
  }
}

/* Category Page Styles */
.category-page {
  background: var(--bg-primary);
  min-height: 100vh;
}

.category-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  margin-bottom: 3rem;
}


.category-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.category-character {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.category-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-page-title {
  font-size: 3rem;
  font-weight: 900;
  color: #300045;
  margin-bottom: 0;
  line-height: 1.2;
}

.category-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 0 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.category-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

.stat-item {
  font-weight: 500;
}

.stat-separator {
  color: var(--text-tertiary);
}

.category-content {
  padding: 0 20px 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.no-articles {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.no-articles h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.no-articles p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Responsive for Category Page */
@media (max-width: 1200px) {
  .category-content {
    padding: 0 16px 4rem;
  }
  
  .category-articles-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .category-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .category-page-title {
    font-size: 2.5rem;
  }
  
  .category-icon-large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .category-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .category-hero {
    padding: 3rem 16px 2rem;
  }
  
  .category-content {
    padding: 0 16px 3rem;
  }
  
  .category-page-title {
    font-size: 2rem;
  }
  
  .category-description {
    font-size: 1rem;
  }
  
  .category-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stat-separator {
    display: none;
  }
  
  .category-icon-large {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Article Card Styles */
.article-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--card-shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 0 4px 16px var(--card-shadow);
  transform: translateY(-2px);
}

.article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-emoji-header {
  padding: 24px 24px 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  border-bottom: 1px solid var(--border-color);
}

.article-emoji {
  font-size: 2.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.category-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.category-badge.engineering {
  background: rgba(49, 130, 206, 0.1);
  color: #2c5aa0;
  border: 1px solid rgba(49, 130, 206, 0.2);
}

.category-badge.design {
  background: rgba(128, 90, 213, 0.1);
  color: #6b46c1;
  border: 1px solid rgba(128, 90, 213, 0.2);
}

.category-badge.management {
  background: rgba(56, 161, 105, 0.1);
  color: #2f855a;
  border: 1px solid rgba(56, 161, 105, 0.2);
}

.category-badge.default {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.article-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.article-card:hover .article-card-title {
  color: #ff5268;
}

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-tag {
  background: #f1f5f9;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: #ff5268;
  color: white;
}

.article-tags-more {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  padding: 4px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: auto;
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-date,
.article-author {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-arrow {
  display: flex;
  align-items: center;
  color: #ff5268;
  transition: transform 0.3s ease;
}

.article-card:hover .article-arrow {
  transform: translateX(4px);
}

/* Article Card Responsive */
@media (max-width: 768px) {
  .article-card-content {
    padding: 1.25rem;
  }
  
  .article-card-title {
    font-size: 1rem;
  }
  
  .article-card-excerpt {
    font-size: 0.8rem;
  }
  
  .article-meta {
    font-size: 0.8rem;
  }
  
  .article-meta-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}