/* style.css - Taiwan English Pet Information Blog */
/* Modern tech blue theme + geometric design + gradient accents + interactive animations */

/* ===== CSS Variables - Design System ===== */
:root {
  /* Color system - Modern tech blue theme */
  --color-primary: #2563EB;       /* Primary color - Modern blue */
  --color-primary-light: #EFF6FF; /* Light blue */
  --color-primary-dark: #1E40AF;  /* Dark blue */
  --color-secondary: #7C3AED;     /* Secondary color - Purple */
  --color-accent: #F59E0B;        /* Accent color - Amber */
  --color-text: #1F2937;          /* Body text */
  --color-text-light: #6B7280;    /* Light text */
  --color-text-lighter: #9CA3AF;  /* Lighter text */
  --color-bg: #FFFFFF;            /* Background color */
  --color-bg-light: #F8FAFC;      /* Light background */
  --color-bg-lighter: #F1F5F9;    /* Lighter background */
  --color-border: #E5E7EB;        /* Border color */
  --color-border-light: #F3F4F6;  /* Light border */

  /* Spacing system - Keep original spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;

  /* Font system */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-xxl: 1.5rem;
  --font-size-xxxl: 2rem;
  --font-size-display: 2.5rem;

  /* Border radius - More geometric, less rounded */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 50%;

  /* Shadows - More dramatic and geometric */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glass: 0 8px 32px rgba(37, 99, 235, 0.1);

  /* Container width */
  --container-width: 1280px;
  --container-padding: var(--space-lg);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  /* padding: 0 var(--container-padding); */
}

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

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

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

/* Title link styles */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
  color: var(--color-primary);
}

.featured-main-title a,
.featured-side-title a,
.article-title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.featured-main-title a:hover,
.featured-side-title a:hover,
.article-title a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

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

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

.hidden { display: none; }

/* ===== Button Styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(37, 99, 235, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: calc(var(--radius-lg) - 2px);
}

.btn-secondary:hover::after {
  opacity: 1;
}

.btn-secondary:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), #D97706);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #D97706, var(--color-accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-text {
  background-color: transparent;
  color: var(--color-primary);
  /* padding: 0.5rem 0; */
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
}

.btn-text:hover::after {
  width: 100%;
}

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

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Navigation Bar ===== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar .container,
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

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

.logo-icon {
  margin-right: var(--space-xs);
  color: var(--color-secondary);
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  position: relative;
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
  transform: translateX(-50%);
  border-radius: var(--radius-sm);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  color: var(--color-text-light);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  cursor: pointer;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== Featured Content Section ===== */
.featured-section {
  padding: 20px 0;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-lighter) 100%);
  position: relative;
}

.featured-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: var(--font-size-display);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  letter-spacing: -0.02em;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin: 0 auto;
  max-width: 600px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.featured-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
  position: relative;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.featured-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.featured-card:hover::before {
  height: 4px;
}

.featured-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.featured-card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.featured-card-content .article-category {
  background: linear-gradient(135deg, var(--color-primary-light), rgba(37, 99, 235, 0.1));
  color: var(--color-primary-dark);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-xs);
  display: inline-block;
  border: 1px solid rgba(37, 99, 235, 0.2);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.featured-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.3;
  margin: var(--space-sm) 0;
  letter-spacing: -0.01em;
}

.featured-card-title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.featured-card-title a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
}

.featured-card-title a:hover::after {
  width: 100%;
}

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

.featured-card-excerpt {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  flex: 1;
  line-height: 1.6;
  font-size: var(--font-size-sm);
}

/* Keep old styles for compatibility */
.featured-main {
  background-color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.featured-main:hover {
  transform: translateY(-8px);
}

.featured-main img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.featured-main-content {
  padding: var(--space-lg);
}

.featured-main-content .category-tag {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.featured-main-title {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  line-height: 1.2;
  margin: var(--space-sm) 0;
}

.featured-main-title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

.featured-main-excerpt {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.featured-side-item {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.featured-side-item:hover {
  transform: translateY(-4px);
}

.featured-side-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.featured-side-content {
  padding: var(--space-md);
}

.featured-side-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.featured-side-title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

/* ===== Pet Category Navigation ===== */
.pet-categories {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg);
  position: relative;
}

.pet-categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.category-card {
  background: linear-gradient(145deg, white 0%, var(--color-bg-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: block;
  color: var(--color-text);
  backdrop-filter: blur(10px);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
  transition: left var(--transition-slow);
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: left;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover::after {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 2;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  color: var(--color-primary-dark);
}

.category-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
}

.category-count {
  color: var(--color-text-lighter);
  font-size: var(--font-size-sm);
  font-weight: 500;
  position: relative;
  z-index: 2;
}

/* ===== Content Area ===== */
.content-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, var(--color-bg-lighter) 0%, white 100%);
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

/* Latest articles section */
.latest-articles {
  margin-bottom: var(--space-xl);
}

.article-card {
  background: linear-gradient(145deg, white 0%, var(--color-bg-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
  display: flex;
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--color-border-light);
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  transition: height var(--transition-normal);
}

.article-card:hover::before {
  height: 100%;
}

.article-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.3);
}

.article-image {
  flex: 0 0 200px;
  overflow: hidden;
  position: relative;
}

.article-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.article-card:hover .article-image::after {
  opacity: 1;
}

.article-image .article-category {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.article-card:hover .article-image img {
  transform: scale(1.08);
}

.article-content {
  flex: 1;
  padding: var(--space-lg);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  /* margin-bottom: var(--space-sm); */
}

.article-category {
  background: linear-gradient(135deg, var(--color-primary-light), rgba(37, 99, 235, 0.1));
  color: var(--color-primary-dark);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.2);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
}

.article-card .article-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.article-title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.article-title a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
}

.article-title a:hover::after {
  width: 100%;
}

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

.article-excerpt {
  color: var(--color-text-light);
  /* margin-bottom: var(--space-md); */
  line-height: 1.6;
  font-size: var(--font-size-sm);
}

.article-read-time {
  color: var(--color-text-lighter);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.article-date {
  color: var(--color-text-lighter);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 500;
  font-size: var(--font-size-sm);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag-item {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(37, 99, 235, 0.1));
  color: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--transition-normal);
  border: 1px solid rgba(37, 99, 235, 0.2);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.tag-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-normal);
}

.tag-item:hover::before {
  left: 100%;
}

.tag-item:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tag-large {
  font-size: var(--font-size-base);
}

.tag-medium {
  font-size: var(--font-size-sm);
}

.tag-small {
  font-size: var(--font-size-xs);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.category-item {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border-light);
  background: linear-gradient(135deg, white, var(--color-bg-light));
}

.category-item:hover,
.category-item.active {
  background: linear-gradient(135deg, var(--color-primary-light), rgba(37, 99, 235, 0.05));
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  transition: color var(--transition-fast);
  font-weight: 600;
}

.category-link:hover {
  color: var(--color-primary);
}

.category-count {
  color: var(--color-text-lighter);
  font-size: var(--font-size-sm);
  font-weight: 500;
  background: linear-gradient(135deg, var(--color-bg-light), white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.sidebar-widget {
  background: linear-gradient(145deg, white 0%, var(--color-bg-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}

.sidebar-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.widget-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Popular articles */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.popular-item {
  display: flex;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.popular-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.popular-rank {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-text-lighter);
  /* min-width: 30px; */
}

.popular-content h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.popular-content h4 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.popular-content h4 a:hover {
  color: var(--color-primary);
}

.popular-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* Newsletter form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.subscribe-form input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ===== Expert Showcase Section ===== */
.experts-section {
  padding: var(--space-xl) 0;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.expert-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--color-primary-light);
}

.expert-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.expert-title {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.expert-bio {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.expert-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

/* ===== Resource Tools Section ===== */
.tools-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-light);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.tool-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border-top: 4px solid transparent;
}

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

.tool-card:nth-child(1) {
  border-top-color: var(--color-primary);
}

.tool-card:nth-child(2) {
  border-top-color: var(--color-secondary);
}

.tool-card:nth-child(3) {
  border-top-color: var(--color-accent);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.tool-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.tool-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
}

/* ===== User Reviews Section ===== */
.testimonials-section {
  padding: var(--space-xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 3rem;
  color: var(--color-primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  margin-bottom: var(--space-md);
  font-style: italic;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author-info h4 {
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

.testimonial-author-info h4 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.testimonial-author-info h4 a:hover {
  color: var(--color-primary);
}

.testimonial-author-info p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ===== Newsletter Section ===== */
.newsletter-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #E3F2FD 100%);
}

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

.newsletter-title {
  font-size: var(--font-size-xxxl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.newsletter-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  box-shadow: var(--shadow-sm);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 130, 0.3);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
  color: white;
  padding: 20px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-grid {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}

.footer-logo {
  font-size: var(--font-size-xxl);
  font-weight: 800;
  color: white;
  transition: all var(--transition-fast);
  letter-spacing: -0.02em;
  position: relative;
}

.footer-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.footer-logo:hover::after {
  opacity: 1;
}

.footer-logo:hover {
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: var(--font-size-sm);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.footer-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: white;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-sm);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.footer-links-row a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  font-weight: 500;
  position: relative;
}

.footer-links-row a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
}

.footer-links-row a:hover::after {
  width: 100%;
}

.footer-links-row a:hover {
  color: var(--color-primary-light);
  transform: translateY(-1px);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  font-weight: 500;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
}

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

.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateY(-1px);
}

.footer-newsletter input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  font-family: var(--font-family);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
}

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

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.footer-bottom-links a:hover {
  color: var(--color-primary-light);
  transform: translateY(-1px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  :root {
    --font-size-display: 2rem;
    --font-size-xxxl: 1.75rem;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid,
  .experts-grid,
  .tools-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }


  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .navbar .container,
  .navbar-container {
    height: 60px;
  }

  .logo {
    font-size: var(--font-size-lg);
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: var(--space-lg) 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    border-top: 1px solid var(--color-border-light);
  }

  .navbar .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 0;
    margin: 0;
    text-align: left;
    font-size: var(--font-size-base);
  }

  .nav-link:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: none;
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: block;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
  }

  .mobile-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .mobile-toggle.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid,
  .experts-grid,
  .tools-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    flex-direction: column;
  }

  .article-image {
    flex: 0 0 200px;
    width: 100%;
  }


}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--space-md);
    --font-size-display: 1.75rem;
  }

  .section-title {
    font-size: var(--font-size-xxxl);
  }

  .featured-main-title {
    font-size: var(--font-size-xl);
  }

  .featured-card-title {
    font-size: var(--font-size-lg);
  }

  .featured-card img {
    height: 200px;
  }

  .breadcrumb {
    display: none;
  }
}

/* ===== Detail Page Styles ===== */
.article-detail {
  /* padding-top: var(--space-md); */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.breadcrumb {
  padding: 10px 0;
  /* border-bottom: 1px solid var(--color-border-light); */
  /* margin-bottom: var(--space-lg); */
  width: 100%;
  max-width: 100%;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  flex-wrap: wrap;
}

.breadcrumb-item:not(:last-child)::after {
  content: "›";
  margin: 0 var(--space-xs);
}

.breadcrumb-item a:hover {
  color: var(--color-primary);
}

.article-content-grid {
  display: grid;
  grid-template-columns: minmax(200px,1fr) 300px;
  gap: var(--space-xl);
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.article-main-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.article-header {
    margin-top: 20px;
  margin-bottom: 10px;
}

.article-title {
  font-size: var(--font-size-display);
  font-weight: 700;
  line-height: 1.2;
  margin: var(--space-sm) 0 var(--space-lg);
  color: var(--color-text);
}

.article-meta-large {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.author-info-large {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details .author-name {
  font-weight: 600;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.author-details .author-title {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.article-meta-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.meta-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.article-featured-image {
  margin-bottom: var(--space-xl);
  width: 100%;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.image-caption {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
  font-style: italic;
}

.article-body {
  width: 100%;
  max-width: 100%;
  margin-bottom: var(--space-xl);
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-body a:hover {
  color: #3d8c68;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-weight: 700;
  line-height: 1.3;
}

.article-body p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
  list-style-position: outside;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: var(--space-xs);
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.article-body code {
  background-color: var(--color-bg-lighter);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-body pre {
  background-color: var(--color-bg-lighter);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}

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

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.article-tags {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.tags-label {
  font-weight: 600;
  margin-right: var(--space-sm);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
  transition: all var(--transition-fast);
}

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


.share-label {
  font-weight: 600;
  margin-right: var(--space-sm);
}

.share-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.share-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.share-btn.facebook {
  background-color: #1877F2;
  color: white;
}

.share-btn.twitter {
  background-color: #1DA1F2;
  color: white;
}

.share-btn.linkedin {
  background-color: #0A66C2;
  color: white;
}

.share-btn.link {
  background-color: var(--color-text-light);
  color: white;
}

.article-author-full {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.author-avatar-full {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio h3 {
  margin-bottom: var(--space-sm);
}

.author-bio p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

/* .related-articles-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-light);
} */

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.related-article-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.related-article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-article-content {
  padding: var(--space-lg);
}

.related-article-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.related-article-content h3 a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.related-article-content h3 a:hover {
  color: var(--color-primary);
}

.comments-section {
  padding: var(--space-xl) 0;
}

.comments-container {
  max-width: 800px;
  /* margin: 0 auto; */
}

.comment-form-container {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.comment-form-container h3 {
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.comment {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comment-header {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author h4 {
  margin-bottom: var(--space-xs);
}

.comment-meta {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.comment-body {
  margin-bottom: var(--space-md);
}

.comment-footer {
  display: flex;
  gap: var(--space-md);
}

.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #3d8c68;
  transform: translateY(-4px);
}

/* ===== List Page Styles ===== */
.list-page {
  /* margin-top: 70px; */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.breadcrumb-container {
  width: 100%;
  max-width: 100%;
}

.list-page-container {
  width: 100%;
  /* max-width: 100%; */
}

.page-header {
  /* padding: 20px 0;
  background-color: var(--color-bg-light); */
  margin-bottom: 20px;
}

.page-title-container {
  /* text-align: center; */
}

.page-title {
  font-size: var(--font-size-display);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.category-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.list-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
}

.list-main-content {
  width: 100%;
  max-width: 100%;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  /* margin-bottom: var(--space-xl); */
}

/* List page (category page) specific styles - 2 per row */
.list-page .articles-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Article card styles in list pages */
.list-page .articles-grid .article-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.list-page .articles-grid .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.list-page .articles-grid .article-card .article-image {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.list-page .articles-grid .article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.list-page .articles-grid .article-card:hover .article-image img {
  transform: scale(1.05);
}

.list-page .articles-grid .article-card .article-image .article-category {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  z-index: 1;
}

.list-page .articles-grid .article-card .article-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

.empty-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.empty-text {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.pagination-wrapper {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.pagination-container {
  display: flex;
  justify-content: center;
}

.post-pagination {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.post-pagination li {
  list-style: none;
}

.post-pagination a,
.post-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.post-pagination a {
  background-color: white;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.post-pagination a:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.post-pagination .current {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.post-pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.list-sidebar {
  width: 100%;
}

.article-sidebar {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .article-content-grid,
  .list-page-layout {
    display: block;
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* List pages keep 2 columns below 1024px */
  .list-page .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-grid,
  .list-page .articles-grid,
  .related-articles-grid {
    grid-template-columns: 1fr;
  }

  .post-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
  }

  .article-meta-large {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-meta-details {
    /* grid-template-columns: 1fr; */
    width: 100%;
  }

  .meta-item {
    align-items: flex-start;
  }

  .article-author-full {
    flex-direction: column;
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 45px;
    height: 45px;
  }

  .container {
    padding: 0 var(--space-sm);
  }
}

/* ===== New Visual Elements ===== */

/* Geometric accent elements */
.geometric-accent {
  position: relative;
  overflow: hidden;
}

.geometric-accent::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(37, 99, 235, 0.02) 10px,
      rgba(37, 99, 235, 0.02) 20px
    );
  animation: geometric-shift 20s linear infinite;
  pointer-events: none;
}

@keyframes geometric-shift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50px) translateY(-50px); }
}

/* Modern card hover effects */
.modern-card {
  position: relative;
  background: linear-gradient(145deg, white 0%, var(--color-bg-light) 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.03), transparent);
  transition: left var(--transition-slow);
}

.modern-card:hover::before {
  left: 100%;
}

.modern-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
}

.modern-card:hover::after {
  width: 100%;
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Animated borders */
.animated-border {
  position: relative;
  background: linear-gradient(145deg, white 0%, var(--color-bg-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.animated-border::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.animated-border:hover::before {
  opacity: 0.1;
}

/* Floating elements */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Tech pattern overlays */
.tech-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.02) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.02) 2px, transparent 2px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
  opacity: 0.5;
}

/* Enhanced shadow system */
.shadow-tech {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(37, 99, 235, 0.05);
}

.shadow-tech-lg {
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Interactive elements */
.interactive-element {
  position: relative;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.interactive-element::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
  pointer-events: none;
}

.interactive-element:active::after {
  width: 200px;
  height: 200px;
}

/* Modern loading animation */
@keyframes pulse-modern {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

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

/* Geometric shapes */
.geometric-shape {
  position: relative;
  overflow: hidden;
}

.geometric-shape::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  transform: rotate(45deg);
  opacity: 0.1;
}

.geometric-shape::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 15px;
  height: 15px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 50%;
  opacity: 0.1;
}

@media (max-width: 480px) {
  .category-stats {
    /* flex-direction: column; */
    gap: var(--space-sm);
  }

  .share-buttons {
    flex-wrap: wrap;
  }
}

/* ===== General Page Styles ===== */
.main-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* padding-top: 70px; */
}

.section-padding {
  padding: var(--space-xl) 0;
}

/* ===== Blog Page Styles ===== */
.blog {
  width: 100%;
  max-width: 100%;
}

.blog-index {
  background-color: var(--color-bg-light);
}

.rightsidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
}

.ccontent-area {
  width: 100%;
  max-width: 100%;
}

.blog-archive-left {
  width: 100%;
  max-width: 100%;
}

.articles-list {
  width: 100%;
  max-width: 100%;
}

.article-wrap {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.entry-header {
  margin-bottom: var(--space-md);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.entry-date-label {
  font-weight: 500;
}

.entry-date {
  color: var(--color-text-light);
}

.entry-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

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

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

.entry-content {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.entry-content a:hover {
  color: #3d8c68;
}

.common-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.common-title a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

.common-p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.expert-content {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: #3d8c68;
  gap: var(--space-sm);
}

.read-more span {
  transition: transform var(--transition-fast);
}

.read-more:hover span {
  transform: translateX(4px);
}

/* ===== Standalone Page Styles ===== */
.article_part_header {
    margin-top: 20px;
  margin-bottom: 10px;
}

.article_part_h1 {
  font-size: var(--font-size-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.detail-title {
  font-size: var(--font-size-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

/* ===== Comment Area Styles ===== */
.comments-area {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.comment-respond {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xl);
}

.nv-is-boxed {
  border: 1px solid var(--color-border-light);
}

.comment-reply-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.comment-reply-title small {
  font-size: var(--font-size-sm);
  font-weight: normal;
  margin-left: var(--space-sm);
}

.comment-reply-title small a {
  color: var(--color-primary);
}

.comment-notes {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.required-field-message {
  display: block;
  margin-top: var(--space-xs);
}

.required {
  color: #e74c3c;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment,
.comment-form-cookies-consent {
  margin-bottom: var(--space-md);
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus,
.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.comment-form-cookies-consent label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.5;
}

.form-submit {
  margin-top: var(--space-lg);
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-decoration: none;
}

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

.button-primary:hover {
  background-color: #3d8c68;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .rightsidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-wrap {
    padding: var(--space-md);
  }

  .entry-title,
  .common-title {
    font-size: var(--font-size-lg);
  }

  .article_part_h1,
  .detail-title {
    font-size: var(--font-size-xxxl);
  }

  .footer-links-row {
    gap: .5rem;
  }
}

/* Detail: category width, share, author link, author section, tags, sidebar author, list ad */
.article-header .article-category { max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-share { margin-top: var(--space-lg); }
.article-share .share-label { margin-right: var(--space-sm); font-weight: 600; color: var(--color-text); }
.article-share .share-buttons { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); flex-wrap: wrap; }
.article-share .share-btn {
  width: 44px; height: 44px; padding: 0; border-radius: var(--radius-md); border: none;
  background-color: var(--color-primary); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.article-share .share-btn .share-icon { width: 20px; height: 20px; flex-shrink: 0; }
.article-share .share-btn.whatsapp:hover { background-color: #25d366; }
.article-share .share-btn.linkedin:hover { background-color: #0a66c2; }
.article-share .share-btn.telegram:hover { background-color: #0088cc; }
.article-share .share-btn.copy:hover { background-color: var(--color-accent); }
.article-author-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-text-light); text-decoration: none; }
.article-author-link:hover { color: var(--color-primary); }
.article-author-link img { width: 1.3rem; height: 1.3rem; border-radius: 50%; object-fit: cover; }
.author-section { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.author-section .author-card-detail {
  display: flex; gap: var(--space-lg); padding: var(--space-lg);
  background-color: var(--color-bg-light); border-radius: var(--radius-md); border: 1px solid var(--color-border);
}
.author-section .author-avatar-wrapper { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 2px solid var(--color-border); }
.author-section .author-avatar-detail { width: 100%; height: 100%; object-fit: cover; }
.author-section .author-info { flex: 1; min-width: 0; display: block; }
.author-section .author-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.author-section .author-name a { color: var(--color-text); }
.author-section .author-name a:hover { color: var(--color-primary); }
.author-section .author-description { font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.author-section .author-bio { font-size: 0.9375rem; color: var(--color-text-light); line-height: 1.6; margin-top: 0; }
.article-tags .tags-label { font-weight: 600; margin-right: var(--space-sm); }
.article-tags .tag-link,
.tag-link { display: inline-block; padding: 0.25rem 0.75rem; margin-right: var(--space-xs); margin-bottom: var(--space-xs); background-color: var(--color-primary-light); color: var(--color-primary); border-radius: var(--radius-sm); font-size: 0.875rem; }
.article-tags .tag-link:hover,
.tag-link:hover { background-color: var(--color-primary); color: white; }
.sidebar-author-section .sidebar-author-card { display: flex; gap: var(--space-md); padding: var(--space-md); background: var(--color-bg-light); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.sidebar-author-section .sidebar-author-avatar { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; }
.sidebar-author-section .sidebar-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-author-section .sidebar-author-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: white; font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-author-section .sidebar-author-info { flex: 1; min-width: 0; }
.sidebar-author-section .sidebar-author-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.sidebar-author-section .sidebar-author-info h4 a { color: var(--color-text); }
.sidebar-author-section .sidebar-author-info p { font-size: 0.8125rem; color: var(--color-text-light); line-height: 1.4; margin: 0; }
.author-profile-page .author-hero-card {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--space-xl); align-items: center;
  padding: var(--space-xl); background: var(--color-bg-light); border-radius: var(--radius-md); margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
}
.author-profile-page .author-avatar-large {
  width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--color-border); background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
}
.author-profile-page .author-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.author-profile-page .author-avatar-placeholder {
  width: 200px; height: 200px; border-radius: 50%; font-size: 4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: white; display: flex; align-items: center; justify-content: center;
}
.author-name-large { font-size: 2rem; font-weight: 700; color: var(--color-text); margin: 0 0 var(--space-sm) 0; }
.author-profile-page .author-description { font-size: 1.125rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }
.author-content-section { padding: var(--space-xl) 0; }
.author-content-title { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--color-accent); }
.author-content-body { font-size: 1.0625rem; line-height: 1.75; color: var(--color-text); }
.author-articles-section .section-title { margin-bottom: var(--space-lg); }
.list-ad-break { width: 100%; }
@media (max-width: 768px) {
  .author-profile-page .author-hero-card { grid-template-columns: 1fr; text-align: center; }
  .author-section .author-card-detail { flex-direction: column; align-items: center; text-align: center; }
  .author-section .author-avatar-wrapper { width: 64px; height: 64px; }
}
