/*
Theme Name: thietkeinfographic-theme
Theme URI: https://dev.com.vn
Description: Nền tảng giải pháp thiết kế infographic
Version: 1.0.6
Author: dev.com.vn
Text Domain: thietkeinfographic-theme
*/

/* ============================================================
   COPY NGUYÊN XI TỪ DESIGN FILE – không sửa class names
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1B6EF3;
  --primary-dark: #1455C0;
  --primary-light: #E8F0FE;
  --accent: #FF6B2B;
  --accent-light: #FFF0E8;
  --text-dark: #1A1D23;
  --text-mid: #3D4350;
  --text-light: #6B7280;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --border: #E4E7EF;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(27,110,243,0.10);
  --shadow-lg: 0 8px 40px rgba(27,110,243,0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.dh-container,
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* NAVBAR */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
}
.navbar-brand .brand-dark { color: var(--text-dark); }
.navbar-brand .brand-dot  { color: var(--accent); }
.navbar-links { display: flex; gap: 28px; align-items: center; }
.navbar-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--primary); }
.navbar-links a.active { color: var(--primary); font-weight: 600; }
.btn-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
}
.btn-cta:hover { background: var(--primary-dark) !important; color: white !important; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #1B6EF3 0%, #0E4CC5 60%, #0A3A9E 100%);
  padding: 72px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 350px; height: 350px;
  background: rgba(255,107,43,0.10);
  border-radius: 50%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.25);
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
  line-height: 1.25;
  position: relative; z-index: 1;
}
.hero h1 .highlight { color: #FFD166; }
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.search-wrap {
  max-width: 680px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.search-box {
  display: flex;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 6px 6px 6px 22px;
  align-items: center;
  gap: 10px;
}
.search-box input {
  border: none; outline: none; flex: 1;
  font-size: 0.975rem; color: var(--text-dark);
  font-family: 'Inter', sans-serif; background: transparent;
}
.search-box input::placeholder { color: #aaa; }
.search-box button {
  background: var(--accent); color: white; border: none;
  padding: 10px 26px; border-radius: 40px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.search-box button:hover { background: #e05a20; }
.search-tags {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 1;
}
.search-tags > span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.search-tag {
  background: rgba(255,255,255,0.15); color: white;
  font-size: 0.78rem; padding: 4px 12px; border-radius: 20px;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s; text-decoration: none;
}
.search-tag:hover { background: rgba(255,255,255,0.28); color: white; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 44px; position: relative; z-index: 1; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* SECTION COMMON */
.section { padding: 64px 40px; }
.section-alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; padding: 4px 14px;
  border-radius: 20px; letter-spacing: 0.6px; margin-bottom: 10px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 1.75rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.section-head p  { color: var(--text-light); font-size: 0.95rem; max-width: 560px; margin: 0 auto; }

/* TEMPLATE GRID */
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.template-card {
  background: white; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.25s;
  box-shadow: var(--shadow-sm); text-decoration: none; display: block;
}
.template-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary);
}
.template-thumb {
  height: 160px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.template-thumb .overlay {
  position: absolute; inset: 0; background: rgba(27,110,243,0);
  transition: background 0.25s; display: flex; align-items: center; justify-content: center;
}
.template-card:hover .overlay { background: rgba(27,110,243,0.15); }
.overlay-btn {
  background: white; color: var(--primary); padding: 7px 16px;
  border-radius: 30px; font-size: 0.8rem; font-weight: 600;
  opacity: 0; transform: scale(0.85); transition: all 0.2s;
}
.template-card:hover .overlay-btn { opacity: 1; transform: scale(1); }
.template-info { padding: 14px 16px; }
.template-info h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.template-info p  { font-size: 0.78rem; color: var(--text-light); }
.template-badge { display: inline-block; font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; margin-top: 6px; }
.badge-hot  { background: #FFF0E8; color: #E05A20; }
.badge-new  { background: #E8F0FE; color: var(--primary); }
.badge-free { background: #EDFDF4; color: #15803D; }

/* thumbnail colors */
.th-blue   { background: linear-gradient(135deg, #EBF2FF, #C7DBFF); }
.th-teal   { background: linear-gradient(135deg, #E0F7FA, #B2EBF2); }
.th-orange { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.th-green  { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.th-purple { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.th-red    { background: linear-gradient(135deg, #FFEBEE, #FFCDD2); }
.th-indigo { background: linear-gradient(135deg, #E8EAF6, #C5CAE9); }
.th-amber  { background: linear-gradient(135deg, #FFFDE7, #FFF9C4); }

/* mock page preview */
.mock-page { width: 80px; background: white; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.15); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; }
.mock-bar  { height: 5px; border-radius: 3px; background: #dde; }
.mock-bar.accent { background: var(--primary); width: 60%; }
.mock-bar.sm { width: 80%; }
.mock-bar.xs { width: 50%; }
.mock-box  { height: 28px; background: #EEF2FF; border-radius: 3px; }

.view-all-wrap { text-align: center; margin-top: 32px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--primary); color: var(--primary);
  padding: 10px 28px; border-radius: 8px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; transition: all 0.2s;
  cursor: pointer; background: transparent; font-family: 'Inter', sans-serif;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* CATEGORY GRID */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--bg); border-radius: var(--radius-md); padding: 24px 20px;
  text-align: center; cursor: pointer; border: 1px solid var(--border);
  transition: all 0.25s; text-decoration: none; display: block;
}
.cat-card:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 12px; }
.cat-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.cat-card p  { font-size: 0.76rem; color: var(--text-light); }
.cat-count   { font-size: 0.72rem; color: var(--primary); font-weight: 600; margin-top: 8px; }

/* PROCESS STEPS */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 36px; left: 10%; right: 10%;
  height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%; background: white;
  border: 3px solid var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: var(--primary);
  margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(27,110,243,0.18);
}
.step:nth-child(3) .step-num { background: var(--primary); color: white; }
.step-icon { font-size: 1.5rem; margin-bottom: 4px; }
.step h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.step p  { font-size: 0.76rem; color: var(--text-light); line-height: 1.5; }

/* KNOWLEDGE */
.know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.know-card { background: white; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.25s; cursor: pointer; text-decoration: none; display: block; }
.know-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.know-img  { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.know-body { padding: 18px 20px; }
.know-tag  { font-size: 0.7rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 2px 10px; border-radius: 10px; display: inline-block; margin-bottom: 8px; text-transform: uppercase; }
.know-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.know-body p  { font-size: 0.8rem; color: var(--text-light); line-height: 1.55; }
.know-footer  { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.know-meta    { font-size: 0.73rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.know-read    { font-size: 0.78rem; color: var(--primary); font-weight: 600; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item  { background: white; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 12px; overflow: hidden; }
.faq-q     { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--text-dark); gap: 12px; }
.faq-q .faq-arr { color: var(--primary); font-size: 0.85rem; transition: transform 0.2s; }
.faq-a     { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; }
.faq-item.open .faq-a   { max-height: 300px; padding: 0 22px 18px; }
.faq-item.open .faq-q .faq-arr { transform: rotate(180deg); }
.faq-item.open          { border-color: var(--primary); }

/* FN GRID */
.fn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fn-card {
  background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border);
  padding: 24px; display: flex; gap: 18px; align-items: flex-start;
  transition: all 0.25s; box-shadow: var(--shadow-sm);
}
.fn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.fn-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.fn-content { flex: 1; }
.fn-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.fn-sub { font-size: 0.72rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; font-style: italic; }
.fn-content p  { font-size: 0.8rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
.fn-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fn-tag  { font-size: 0.68rem; background: var(--bg); color: var(--text-mid); padding: 3px 10px; border-radius: 10px; border: 1px solid var(--border); font-weight: 500; }

/* PURPOSE GRID */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.purpose-card { border-radius: var(--radius-md); padding: 28px 24px; position: relative; overflow: hidden; transition: all 0.25s; display: block; text-decoration: none; }
.purpose-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-blue   { background: linear-gradient(135deg, #EBF2FF, #DAE8FF); border: 1px solid #C7DBFF; }
.pc-green  { background: linear-gradient(135deg, #E8F5E9, #D4EDDA); border: 1px solid #C8E6C9; }
.pc-orange { background: linear-gradient(135deg, #FFF3E0, #FFE8CC); border: 1px solid #FFCC9A; }
.pc-purple { background: linear-gradient(135deg, #F3E5F5, #EDD6F5); border: 1px solid #E1BEE7; }
.pc-teal   { background: linear-gradient(135deg, #E0F7FA, #C8F0F5); border: 1px solid #B2EBF2; }
.pc-red    { background: linear-gradient(135deg, #FFF8F8, #FFE8E8); border: 1px solid #FFCDD2; }
.purpose-num  { position: absolute; top: 18px; right: 20px; font-size: 2.5rem; font-weight: 900; color: rgba(0,0,0,0.06); line-height: 1; }
.purpose-icon { font-size: 1.8rem; margin-bottom: 12px; }
.purpose-card h4 { font-size: 0.97rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.purpose-card p  { font-size: 0.8rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.purpose-recommend { background: rgba(255,255,255,0.7); border-radius: 8px; padding: 10px 14px; font-size: 0.78rem; color: var(--text-dark); line-height: 1.5; border: 1px solid rgba(255,255,255,0.9); }
.purpose-recommend span { font-weight: 700; color: var(--primary); display: block; margin-bottom: 2px; }

/* PRICING */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; transition: all 0.25s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-badge-top { background: var(--primary); color: white; text-align: center; font-size: 0.78rem; font-weight: 700; padding: 7px; }
.price-header { padding: 28px 24px 22px; text-align: center; }
.ph-light { background: var(--bg); }
.ph-blue  { background: var(--primary-light); }
.ph-dark  { background: #0F1729; }
.ph-dark .price-name { color: rgba(255,255,255,0.7) !important; }
.ph-dark .price-val  { color: white !important; }
.ph-dark .price-note { color: rgba(255,255,255,0.5) !important; }
.price-name { font-size: 0.85rem; font-weight: 700; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.price-val  { font-size: 1.6rem; font-weight: 900; color: var(--text-dark); }
.price-val small { font-size: 0.85rem; font-weight: 500; color: var(--text-light); }
.price-note { font-size: 0.76rem; color: var(--text-light); margin-top: 6px; }
.price-list { list-style: none; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.price-list li { font-size: 0.82rem; color: var(--text-mid); display: flex; align-items: center; gap: 9px; }
.price-list li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.price-list li.off { color: var(--text-light); }
.price-list li.off::before { content: '✕'; color: #d1d5db; }
.price-btn { display: block; width: calc(100% - 48px); margin: 0 24px 24px; padding: 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-align: center; border: none; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.pb-primary { background: var(--primary); color: white; }
.pb-primary:hover { background: var(--primary-dark); }
.pb-outline { background: transparent; border: 2px solid var(--primary) !important; color: var(--primary); }
.pb-outline:hover { background: var(--primary); color: white; }

/* CTA BAND – orange */
.cta-band { background: linear-gradient(135deg, #FF6B2B 0%, #E05A20 100%); padding: 60px 40px; text-align: center; }
.cta-band h2 { font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 10px; }
.cta-band p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 28px; }
.btn-white { background: white; color: var(--accent); padding: 12px 32px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; display: inline-block; margin: 0 8px; transition: all 0.2s; cursor: pointer; border: none; text-decoration: none; font-family: 'Inter', sans-serif; }
.btn-white:hover { background: #FFF3EE; color: var(--accent); }
.btn-ghost-white { background: transparent; color: white; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; border: 2px solid rgba(255,255,255,0.7); display: inline-block; cursor: pointer; transition: all 0.2s; text-decoration: none; font-family: 'Inter', sans-serif; }
.btn-ghost-white:hover { background: rgba(255,255,255,0.15); color: white; }

/* FOOTER */
.footer { background: #0F1729; color: rgba(255,255,255,0.7); padding: 48px 40px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 36px; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-desc  { font-size: 0.82rem; line-height: 1.6; }
.footer-col h5 { color: white; font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; }
.footer-col a  { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.78rem; max-width: 1200px; margin: 0 auto; padding-bottom: 20px; }

/* ARCHIVE – sidebar + grid */
.archive-wrap { display: flex; gap: 28px; align-items: flex-start; padding: 40px 0; }
.archive-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 80px; background: white; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.archive-main { flex: 1; min-width: 0; }
.sidebar-head { background: var(--bg); padding: 14px 18px; font-size: 13px; font-weight: 700; color: var(--text-dark); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.sidebar-section { padding: 14px 18px; border-bottom: 1px solid var(--bg); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section h4 { font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.sidebar-section label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dark); padding: 5px 0; cursor: pointer; }
.sidebar-section label:hover { color: var(--primary); }
.sidebar-section input[type="checkbox"],
.sidebar-section input[type="radio"] { accent-color: var(--primary); width: 15px; height: 15px; }
.sidebar-section .count { margin-left: auto; font-size: 11px; color: var(--text-light); }
.sidebar-section select { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: 'Inter', sans-serif; outline: none; color: var(--text-dark); }

.archive-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.archive-search-bar { margin-bottom: 16px; }
.archive-search-bar input { width: 100%; padding: 11px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color 0.2s; font-family: 'Inter', sans-serif; }
.archive-search-bar input:focus { border-color: var(--primary); }
#result-count { font-size: 13px; color: var(--text-light); }
#sort-select   { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; font-family: 'Inter', sans-serif; color: var(--text-dark); }

/* Mobile filter toggle */
.filter-toggle-btn { display: none; align-items: center; gap: 8px; padding: 9px 16px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }

/* Active filter tags */
.active-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filter-tag  { display: inline-flex; align-items: center; gap: 4px; background: var(--primary-light); color: var(--primary); border: 1px solid rgba(27,110,243,0.2); padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.filter-tag button { background: none; border: none; color: var(--primary); font-size: 14px; cursor: pointer; padding: 0 0 0 2px; }
.clear-all { background: none; border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px; font-size: 12px; color: var(--text-light); cursor: pointer; font-family: 'Inter', sans-serif; }

/* Pagination */
.dh-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.dh-pagination a, .dh-pagination span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 13px; font-weight: 500; color: var(--text-dark); transition: all 0.2s; text-decoration: none; }
.dh-pagination a:hover, .dh-pagination .current { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: white; font-size: 13px; font-weight: 500; color: var(--text-dark); transition: all 0.2s; cursor: pointer; font-family: 'Inter', sans-serif; }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* No results */
.no-results { text-align: center; padding: 60px 20px; color: var(--text-light); }
.no-results span { display: block; font-size: 48px; margin-bottom: 16px; }

/* Skeleton */
.skeleton-card { background: white; border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.skeleton-thumb { height: 160px; background: linear-gradient(90deg, #f0f4ff 25%, #e0e8ff 50%, #f0f4ff 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-body  { padding: 14px 16px; }
.skeleton-line  { height: 11px; border-radius: 4px; margin-bottom: 8px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w50 { width: 50%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   MOBILE NAV DRAWER
============================================================ */
#mobile-nav { display: none; position: fixed; inset: 0; z-index: 1100; }
#mobile-nav.open { display: flex; }
.mobile-nav-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.mobile-nav-panel {
  position: relative; z-index: 1;
  background: white; width: 280px; height: 100%;
  padding: 24px 20px; display: flex; flex-direction: column;
  overflow-y: auto; animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-nav-close { align-self: flex-end; background: none; border: none; font-size: 24px; color: var(--text-light); margin-bottom: 16px; cursor: pointer; }
.mobile-nav-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--bg); font-size: 15px; font-weight: 500; color: var(--text-dark); text-decoration: none; }
.mobile-nav-panel a:hover { color: var(--primary); }
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; }

/* MOBILE BOTTOM BAR */
#bottom-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px;
  background: white;
  border-top: 1px solid var(--border);
  z-index: 990;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
#bottom-bar .bar-inner { display: flex; height: 100%; width: 100%; }
#bottom-bar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-size: 10px; font-weight: 500; color: var(--text-light);
  text-decoration: none; transition: color 0.2s;
  min-width: 0; overflow: hidden; padding: 0 2px;
}
#bottom-bar a:hover, #bottom-bar a.active { color: var(--primary); }
#bottom-bar .bar-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
#bottom-bar a span:not(.bar-icon) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 990; }
body.sidebar-open .sidebar-overlay { display: block; }

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
============================================================ */
.admin-bar .navbar { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .navbar { top: 46px; } }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .process-steps::before { display: none; }
  .know-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .fn-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr 1fr; }
  .archive-wrap { flex-direction: column; }
  .archive-sidebar { width: 100%; position: static; display: none; }
  .archive-sidebar.open { display: block; }
  .filter-toggle-btn { display: flex; }
  .navbar { padding: 0 20px; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 48px 20px; }
  .hero { padding: 48px 20px 60px; }
  .cta-band { padding: 48px 20px; }
  .footer { padding: 40px 20px 20px; }
}
@media (max-width: 600px) {
  .template-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .know-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero h1 { font-size: 1.5rem; }
  #bottom-bar { display: flex; }
  body { padding-bottom: 56px; }
}


/* ============================================================
   NAV MENU LEVEL 2/3 FIX
============================================================ */
.navbar-links { gap: 18px; }
.navbar-links .primary-menu,
.navbar-links .desktop-fallback-menu,
.mobile-nav-links .mobile-primary-menu,
.mobile-nav-links .mobile-fallback-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links .primary-menu,
.navbar-links .desktop-fallback-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-links .primary-menu > li,
.navbar-links .desktop-fallback-menu > li {
  position: relative;
  list-style: none;
}
.navbar-links .primary-menu a,
.navbar-links .desktop-fallback-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  white-space: nowrap;
}
.navbar-links .primary-menu .menu-item-has-children > a::after,
.navbar-links .desktop-fallback-menu .menu-item-has-children > a::after {
  content: '▾';
  font-size: 11px;
  line-height: 1;
}
.navbar-links .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 41, 0.12);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .18s ease;
  z-index: 1200;
}
.navbar-links .sub-menu li {
  position: relative;
  list-style: none;
}
.navbar-links .sub-menu a {
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.navbar-links .sub-menu .menu-item-has-children > a::after {
  content: '▸';
  font-size: 11px;
}
.navbar-links .sub-menu .sub-menu {
  top: -8px;
  left: calc(100% + 8px);
}
.navbar-links li:hover > .sub-menu,
.navbar-links li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.navbar-links .sub-menu a:hover,
.navbar-links .sub-menu .current-menu-item > a,
.navbar-links .sub-menu .current-menu-ancestor > a {
  background: var(--primary-light);
  color: var(--primary);
}
.mobile-nav-links .mobile-primary-menu li,
.mobile-nav-links .mobile-fallback-menu li {
  list-style: none;
}
.mobile-nav-links .mobile-primary-menu a,
.mobile-nav-links .mobile-fallback-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 15px;
  color: var(--text-dark);
  text-decoration: none;
}
.mobile-nav-links .sub-menu {
  margin-left: 14px;
}
.mobile-nav-links .sub-menu a {
  font-size: 14px;
  color: var(--text-mid);
}

/* ============================================================
   SINGLE DEFAULT WORDPRESS POST
============================================================ */
.blog-breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.blog-single-container {
  padding-top: 28px;
  padding-bottom: 10px;
}
.blog-single-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  width: 100%;
}
.blog-single-main {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.blog-single-header {
  margin-bottom: 22px;
}
.blog-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.blog-single-cats a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.blog-single-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.blog-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 18px;
}
.blog-single-thumb {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 18px;
}
.blog-single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-single-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-mid);
  overflow-wrap: anywhere;
}
.blog-single-content > * + * {
  margin-top: 1em;
}
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4 {
  color: var(--text-dark);
  line-height: 1.35;
  margin-top: 1.6em;
  margin-bottom: .55em;
}
.blog-single-content img,
.blog-single-content iframe,
.blog-single-content video,
.blog-single-content table,
.blog-single-content .wp-block-embed,
.blog-single-content .wp-caption {
  max-width: 100%;
}
.blog-single-content img {
  height: auto;
  border-radius: 14px;
}
.blog-single-content ul,
.blog-single-content ol {
  padding-left: 1.25rem;
}
.blog-single-content pre,
.blog-single-content code {
  white-space: pre-wrap;
  word-break: break-word;
}
.blog-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: 100%;
}
.blog-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.blog-widget-title {
  padding: 16px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}
.blog-contact-grid,
.blog-service-list {
  padding: 14px;
}
.blog-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.blog-contact-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  min-width: 0;
}
.blog-contact-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-contact-item .icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  flex-shrink: 0;
}
.blog-contact-item--full {
  align-items: flex-start;
}
.blog-service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  min-width: 0;
}
.blog-service-item .title {
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-service-item .arrow {
  color: var(--primary);
  flex-shrink: 0;
}
.blog-contact-item:hover,
.blog-service-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.blog-related {
  padding: 12px 0 56px;
}
.blog-related-head {
  margin-bottom: 18px;
}
.blog-related-head h2 {
  font-size: 28px;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.blog-related-head p {
  color: var(--text-light);
  font-size: 14px;
}
.blog-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.blog-related-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: .18s ease;
}
.blog-related-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.blog-related-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  min-height: 92px;
  text-decoration: none;
}
.blog-related-title {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.blog-related-meta {
  color: var(--text-light);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .blog-single-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-sidebar {
    position: static;
  }
}
@media (max-width: 900px) {
  .navbar-links .primary-menu,
  .navbar-links .desktop-fallback-menu {
    display: none;
  }
  .blog-single-main {
    padding: 22px 18px;
  }
}
@media (max-width: 640px) {
  .blog-related-list {
    grid-template-columns: 1fr;
  }
  .blog-single-title {
    font-size: 26px;
  }
}

/* ============================================================
   BLOG ARCHIVE DEFAULT WORDPRESS POSTS
============================================================ */
.blog-archive-hero {
  padding: 18px 0 10px;
}
.blog-archive-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.blog-archive-desc {
  max-width: 760px;
  color: var(--text-light);
  font-size: 15px;
}
.blog-archive-container {
  padding-top: 18px;
  padding-bottom: 56px;
}
.blog-archive-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.blog-archive-main {
  min-width: 0;
  width: 100%;
}
.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.blog-archive-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: .18s ease;
}
.blog-archive-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-archive-card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8f0fe, #dbeafe);
  overflow: hidden;
}
.blog-archive-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-archive-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
}
.blog-archive-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.blog-archive-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-archive-card-cats a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.blog-archive-card-title {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-archive-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}
.blog-archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-light);
  font-size: 13px;
}
.blog-archive-card-excerpt {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}
.blog-archive-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.blog-empty-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
  color: var(--text-mid);
}
.page-links {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}
@media (max-width: 1100px) {
  .blog-archive-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .blog-archive-grid {
    grid-template-columns: 1fr;
  }
}

.blog-single-content, .blog-single-content * { max-width: 100%; }
.blog-single-content table { display: block; overflow-x: auto; }
