@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #D31E00;
  --primary-hover: #B81A00;
  --primary-light: #FFF0ED;
  --primary-bg: #FFF7F5;
  --dark: #0F0D0D;
  --dark-90: #1A1817;
  --dark-80: #2A2725;
  --dark-70: #3F3C3A;
  --dark-60: #6F6C6A;
  --dark-40: #9F9C9A;
  --dark-20: #CFCDCB;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --success: #22C55E;
  --success-bg: #F0FDF4;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --header-height: 72px;
  --max-width: 1280px;
  --font: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); font-size: 16px; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}
.header-logo img { height: 38px; width: auto; max-width: 200px; }
.header-logo { flex-shrink: 0; overflow: hidden; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-60);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.header-nav a:hover,
.header-nav a.active { color: var(--dark); background: var(--gray-100); }

.header-search {
  flex: 1;
  max-width: 360px;
  position: relative;
  margin-left: auto;
}
.header-search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--gray-50);
  outline: none;
  transition: all 0.15s ease;
}
.header-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(211,30,0,0.08);
}
.header-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--dark-40);
  pointer-events: none;
}
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-results-dropdown.show { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: background 0.1s ease;
}
.search-result-item:hover { background: var(--gray-50); }
.search-result-item img { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-result-item .sr-info { flex: 1; min-width: 0; }
.search-result-item .sr-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item .sr-cat { font-size: 12px; color: var(--primary); font-weight: 500; }

.header-subscribe {
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.header-subscribe:hover { background: var(--primary-hover); transform: translateY(-1px); }

.header-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-70);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-lang i { font-size: 16px; }
.header-lang:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark);
  border-radius: var(--radius-sm);
  margin-left: auto;
}
.mobile-toggle:hover { background: var(--gray-100); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--white);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: background 0.1s ease;
}
.mobile-menu a:hover { background: var(--gray-100); }
.mobile-menu a i { font-size: 20px; color: var(--dark-40); width: 24px; text-align: center; }
.mobile-menu .mobile-search { margin-bottom: 16px; }
.mobile-menu .mobile-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 15px;
  background: var(--gray-50);
  outline: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-90) 50%, var(--dark-80) 100%);
  padding: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2px;
  min-height: 480px;
}
.hero-main {
  position: relative;
  overflow: hidden;
}
.hero-main a { display: block; height: 100%; }
.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-main:hover img { transform: scale(1.03); }
.hero-main .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.hero-main .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: var(--white);
  z-index: 2;
}
.hero-main .hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero-main .hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero-main .hero-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-width: 600px;
}
.hero-main .hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.hero-main .reading-time-badge {
  padding: 3px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(4px);
}

.hero-side { display: flex; flex-direction: column; gap: 2px; }
.hero-side-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.hero-side-item a { display: block; position: absolute; inset: 0; }
.hero-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.hero-side-item:hover img { transform: scale(1.05); }
.hero-side-item .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
}
.hero-side-item .hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--white);
  z-index: 2;
}
.hero-side-item .reading-time-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.hero-side-item .hero-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== SECTIONS ===== */
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.section-link:hover { gap: 8px; }
.section-link i { font-size: 16px; }

/* ===== ARTICLE CARD ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card .card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .card-image img { transform: scale(1.05); }
.article-card .card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
}
.article-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card .card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-title a { transition: color 0.15s ease; }
.article-card .card-title a:hover { color: var(--primary); }
.article-card .card-excerpt {
  font-size: 14px;
  color: var(--dark-60);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.article-card .card-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, gap 0.2s ease;
}
.article-card .card-read-more:hover { color: var(--primary); gap: 8px; }
.article-card .card-read-more i { font-size: 16px; }
.article-card .card-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-40);
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

/* ===== ARTICLE LIST CARD (horizontal) ===== */
.article-list-card {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.article-list-card:last-child { border-bottom: none; }
.article-list-card .list-image {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.article-list-card .list-image img { width: 100%; height: 100%; object-fit: cover; }
.article-list-card .list-content { flex: 1; display: flex; flex-direction: column; }
.article-list-card .list-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.article-list-card .list-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.article-list-card .list-title a:hover { color: var(--primary); }
.article-list-card .list-excerpt { font-size: 14px; color: var(--dark-60); line-height: 1.5; flex: 1; }
.article-list-card .list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dark-40);
  margin-top: 8px;
}

/* ===== SIDEBAR ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}
.sidebar-widget-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget-title i { color: var(--primary); font-size: 20px; }

.popular-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.popular-item:last-child { border-bottom: none; }
.popular-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-300);
  line-height: 1;
  min-width: 32px;
}
.popular-content { flex: 1; min-width: 0; }
.popular-time { font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.popular-title { font-size: 14px; font-weight: 600; line-height: 1.4; word-wrap: break-word; overflow-wrap: break-word; }
.popular-title a:hover { color: var(--primary); }

.categories-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.15s ease;
}
.categories-list a:last-child { border-bottom: none; }
.categories-list a:hover { color: var(--primary); }
.categories-list .cat-count {
  font-size: 12px;
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  color: var(--dark-60);
  font-weight: 600;
}

/* ===== NEWSLETTER WIDGET ===== */
.newsletter-widget {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-80) 100%);
  border: none;
  color: var(--white);
}
.newsletter-widget .sidebar-widget-title {
  color: var(--white);
  border-bottom-color: var(--primary);
}
.newsletter-widget p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.newsletter-form button:hover { background: var(--primary-hover); }
.newsletter-msg {
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}
.newsletter-msg.success { color: var(--success); }
.newsletter-msg.error { color: var(--error); }

/* ===== CATEGORY PILLS ===== */
.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.category-pill {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-60);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}
.category-pill:hover { border-color: var(--primary); color: var(--primary); }
.category-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== FULL NEWSLETTER BANNER ===== */
.newsletter-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-80) 100%);
  padding: 64px 0;
  color: var(--white);
}
.newsletter-banner-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.newsletter-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.6;
}
.newsletter-banner .newsletter-form-inline {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-banner .newsletter-form-inline input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 15px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
}
.newsletter-banner .newsletter-form-inline input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-banner .newsletter-form-inline input:focus { border-color: var(--primary); }
.newsletter-banner .newsletter-form-inline button {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background 0.15s ease;
  white-space: nowrap;
}
.newsletter-banner .newsletter-form-inline button:hover { background: var(--primary-hover); }

/* ===== ARTICLE DETAIL PAGE ===== */
.article-header {
  padding: 48px 0 32px;
  max-width: 800px;
  margin: 0 auto;
}
.article-header .article-category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.article-header .article-excerpt-text {
  font-size: 18px;
  color: var(--dark-60);
  line-height: 1.6;
  margin-bottom: 24px;
}
.article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.article-author-info img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.article-author-info .author-name { font-size: 15px; font-weight: 700; }
.article-author-info .author-name a:hover { color: var(--primary); }
.article-author-info .author-meta { font-size: 13px; color: var(--dark-40); }

.article-cover {
  max-width: 960px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark-80);
}
.article-body h2 { font-size: 28px; font-weight: 800; margin: 40px 0 16px; color: var(--dark); }
.article-body h3 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--dark); }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 20px 24px; }
.article-body li { margin-bottom: 8px; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--dark-70);
}
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body img { border-radius: var(--radius-sm); margin: 24px 0; max-width: 100%; height: auto; }
.article-body strong { color: var(--dark); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-body th { background: var(--dark); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); }
.article-body tr:hover td { background: var(--gray-50); }
.article-body table a { text-decoration: none; }

/* -- Share bar -- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-60);
  white-space: nowrap;
}
.share-buttons {
  display: flex;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  font-size: 17px;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { transform: scale(1.1); opacity: 0.9; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #0F0D0D; }
.share-linkedin { background: #0A66C2; }
.share-whatsapp { background: #25D366; }
.share-email { background: #6B7280; }
.share-copy { background: var(--gray-300); color: var(--dark); }

/* -- Author box -- */
.author-box {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-top: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-content { flex: 1; min-width: 0; }
.author-box-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-40);
  margin-bottom: 4px;
}
.author-box-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.author-box-content h3 a { color: var(--dark); }
.author-box-content h3 a:hover { color: var(--primary); }
.author-box-role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.author-box-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-60);
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.article-tags .tag {
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-60);
  transition: all 0.15s ease;
}
.article-tags .tag:hover { background: var(--primary-light); color: var(--primary); }

.related-section { padding: 48px 0; background: var(--gray-50); margin-top: 48px; }

/* ===== AUTHOR PAGE ===== */
.author-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px 0 32px;
}
.author-header img { width: 96px; height: 96px; border-radius: var(--radius-full); object-fit: cover; }
.author-header .author-info h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.author-header .author-role { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.author-header .author-bio { color: var(--dark-60); font-size: 15px; line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.3);
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.15s ease;
  padding: 0;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-social a i { font-size: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); transition: color 0.15s ease; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 48px 0; }
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.pagination a { color: var(--dark); border: 1px solid var(--gray-300); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: var(--white); border: 1px solid var(--primary); }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark-80); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(211,30,0,0.08); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form button {
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.contact-form button:hover { background: var(--primary-hover); }
.contact-info h3 { font-size: 20px; margin-bottom: 16px; }
.contact-info p { color: var(--dark-60); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.contact-item i { font-size: 20px; color: var(--primary); width: 24px; text-align: center; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-80) 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}
.about-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.about-hero p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.about-content { padding: 64px 0; max-width: 800px; margin: 0 auto; }
.about-content h2 { font-size: 24px; font-weight: 800; margin: 40px 0 16px; }
.about-content p { font-size: 16px; color: var(--dark-80); line-height: 1.8; margin-bottom: 20px; }
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}
.about-value { text-align: center; }
.about-value i { font-size: 36px; color: var(--primary); margin-bottom: 16px; display: block; }
.about-value h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.about-value p { font-size: 14px; color: var(--dark-60); line-height: 1.6; }

/* ===== 404 / 500 PAGES ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 48px 24px;
}
.error-page h1 { font-size: 120px; font-weight: 800; color: var(--gray-200); line-height: 1; }
.error-page h2 { font-size: 28px; font-weight: 700; margin: 16px 0 8px; }
.error-page p { color: var(--dark-60); font-size: 16px; margin-bottom: 32px; }
.error-page .btn-home {
  padding: 12px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background 0.15s ease;
}
.error-page .btn-home:hover { background: var(--primary-hover); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--dark-40);
}
.breadcrumb a { color: var(--dark-60); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--gray-400); }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 500; }
.toast {
  padding: 14px 20px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ALERT ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-grid { min-height: 400px; }
  .hero-main .hero-title { font-size: 26px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* -- Header -- */
  .header-inner { padding: 0 16px; gap: 12px; }
  .header-logo img { height: 30px; max-width: 160px; }
  .header-nav, .header-search, .header-subscribe, .header-lang { display: none; }
  .mobile-toggle { display: flex; }

  /* -- Hero -- */
  .hero-section { overflow: hidden; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 2px; }
  .hero-main { min-height: 300px; }
  .hero-main .hero-content { padding: 20px 16px; }
  .hero-main .hero-title { font-size: 20px; }
  .hero-main .hero-excerpt { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-main .hero-meta { font-size: 12px; gap: 10px; }
  .hero-main .hero-badge { font-size: 10px; padding: 3px 10px; margin-bottom: 10px; }
  .hero-side { flex-direction: column; }
  .hero-side-item { min-height: 160px; }
  .hero-side-item .hero-content { padding: 14px 16px; }
  .hero-side-item .hero-title { font-size: 15px; }
  .hero-side-item .reading-time-badge { font-size: 10px; padding: 2px 8px; margin-bottom: 6px; }

  /* -- Global mobile overflow fix -- */
  *, *::before, *::after { box-sizing: border-box; }
  .section { padding: 28px 0; }
  .section-title { font-size: 20px; }
  .section-header { margin-bottom: 16px; }
  .container { padding: 0 16px; max-width: 100%; overflow: hidden; }
  .content-with-sidebar { display: block; max-width: 100%; }

  /* -- Article cards: horizontal compact -- */
  .articles-grid { grid-template-columns: 1fr; gap: 0; max-width: 100%; }
  .article-card {
    flex-direction: row;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: none;
    max-width: 100%;
    overflow: hidden;
  }
  .article-card:hover { transform: none; box-shadow: none; }
  .article-card .card-image {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    margin: 12px 0;
    overflow: hidden;
  }
  .article-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
  .article-card .card-category { display: none; }
  .article-card .card-body {
    padding: 12px 0 12px 12px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .article-card .card-title {
    font-size: 14px;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-card .card-excerpt { display: none; }
  .article-card .card-footer { padding-top: 4px; border-top: none; }
  .article-card .card-read-more { font-size: 12px; }
  .article-card .card-time { font-size: 10px; padding: 2px 6px; }

  /* -- Sidebar -- */
  .sidebar { max-width: 100%; overflow: hidden; }
  .sidebar-widget { padding: 16px; overflow: hidden; }
  .sidebar-widget-title { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; }

  .popular-item { gap: 10px; padding: 10px 0; }
  .popular-number { font-size: 20px; min-width: 26px; flex-shrink: 0; }
  .popular-content { flex: 1; min-width: 0; overflow: hidden; }
  .popular-title {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
  }
  .popular-title a { display: block; }
  .popular-time { font-size: 11px; }

  .newsletter-widget { padding: 16px; overflow: hidden; }
  .newsletter-widget p { font-size: 13px; line-height: 1.5; }
  .newsletter-form input { padding: 10px 12px; font-size: 14px; width: 100%; }
  .newsletter-form button { padding: 10px; font-size: 13px; width: 100%; }

  .categories-list a { font-size: 14px; padding: 8px 0; }

  /* -- Article detail -- */
  .article-header h1 { font-size: 24px; }
  .article-header .article-excerpt-text { font-size: 15px; }
  .article-header { padding: 24px 0 20px; }
  .article-body { font-size: 16px; }
  .article-body table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body th, .article-body td { padding: 8px 10px; white-space: nowrap; }
  .article-cover { border-radius: 0; margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); max-width: none; }
  .share-bar { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; padding: 20px 0; }
  .share-btn { width: 36px; height: 36px; font-size: 16px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; padding: 20px; margin-top: 24px; }
  .author-box img { width: 64px; height: 64px; }

  /* -- Newsletter banner -- */
  .newsletter-banner { padding: 40px 0; }
  .newsletter-banner h2 { font-size: 22px; }
  .newsletter-banner p { font-size: 14px; }
  .newsletter-banner .newsletter-form-inline { flex-direction: column; }
  .newsletter-banner .newsletter-form-inline input { font-size: 14px; }

  /* -- Footer -- */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  /* -- Other pages -- */
  .about-hero { padding: 48px 0; }
  .about-hero h1 { font-size: 26px; }
  .about-hero p { font-size: 15px; }
  .about-values { grid-template-columns: 1fr; }
  .author-header { flex-direction: column; text-align: center; }
  .author-header .author-info { text-align: center; }
  .article-list-card { flex-direction: column; }
  .article-list-card .list-image { width: 100%; height: 200px; }
  .contact-form button { width: 100%; }

  /* -- Category pills -- */
  .category-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .category-pills::-webkit-scrollbar { display: none; }
  .category-pill { white-space: nowrap; flex-shrink: 0; padding: 6px 14px; font-size: 12px; }

  .pagination { gap: 4px; }
  .breadcrumb { font-size: 12px; overflow: hidden; }
}

@media (max-width: 420px) {
  .hero-main { min-height: 260px; }
  .hero-main .hero-title { font-size: 18px; }
  .hero-main .hero-excerpt { display: none; }
  .hero-main .hero-badge { font-size: 9px; }
  .hero-side-item { min-height: 130px; }
  .hero-side-item .hero-title { font-size: 14px; }

  .article-card .card-image { width: 80px; min-width: 80px; max-width: 80px; height: 80px; }
  .article-card .card-title { font-size: 13px; }
  .article-card .card-read-more { font-size: 11px; }
  .article-card .card-time { font-size: 9px; }

  .section-title { font-size: 18px; }
  .article-header h1 { font-size: 22px; }
  .article-body h2 { font-size: 20px; }
  .article-body h3 { font-size: 17px; }
  .newsletter-banner h2 { font-size: 20px; }
  .footer-brand p { font-size: 13px; }

  .popular-number { font-size: 18px; min-width: 24px; }
  .popular-title { font-size: 12px; }
}
