/*
Theme Name: Flatsome Child - Kimmy Elle
Description: Giao diện Blog & Cẩm Nang Du Học Đài Loan - Đồng bộ nhận diện thương hiệu Kimmy Elle với website Portfolio D:\project\wawa
Author: Kimmy Elle & Team
Template: flatsome
Version: 1.0.0
Text Domain: flatsome-child
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root,
html {
  color-scheme: light !important;
}

:root {
  --kimmy-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --kimmy-primary-50: #f0f7ff;
  --kimmy-primary-100: #e0effe;
  --kimmy-primary-200: #bae6fd;
  --kimmy-primary: #0284c7;
  --kimmy-primary-dark: #0369a1;
  --kimmy-primary-deep: #075985;
  --kimmy-tw-blue: #1e40af;
  --kimmy-tw-red: #e11d48;
  --kimmy-tw-warm: #f97316;
  --kimmy-emerald: #10b981;
  --kimmy-emerald-light: #ecfdf5;
  --kimmy-emerald-border: #a7f3d0;
  --kimmy-slate-50: #f8fafc;
  --kimmy-slate-100: #f1f5f9;
  --kimmy-slate-200: #e2e8f0;
  --kimmy-slate-400: #94a3b8;
  --kimmy-slate-500: #64748b;
  --kimmy-slate-600: #475569;
  --kimmy-slate-700: #334155;
  --kimmy-slate-800: #1e293b;
  --kimmy-slate-900: #0f172a;
  --kimmy-radius-sm: 8px;
  --kimmy-radius-md: 14px;
  --kimmy-radius-lg: 20px;
  --kimmy-radius-xl: 28px;
  --kimmy-radius-full: 9999px;
  --kimmy-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --kimmy-shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --kimmy-shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --kimmy-shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

/* ==================== GLOBAL BASE RESET ==================== */
html {
  scroll-behavior: smooth;
}

body,
.entry-content,
p, h1, h2, h3, h4, h5, h6, input, button, select, textarea {
  font-family: var(--kimmy-font) !important;
}

body {
  background-color: var(--kimmy-slate-50) !important;
  color: var(--kimmy-slate-800) !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--kimmy-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==================== ULTRA-SLEEK MODERN LIGHT-MODE SCROLLBAR ==================== */
/* W3C CSS Scrollbars standard (Firefox, Chrome/Edge 121+) */
:root,
html,
body,
* {
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 #f8fafc !important;
}

/* WebKit Scrollbars (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track {
  background: #f8fafc !important;
}

::-webkit-scrollbar-thumb {
  background-color: #cbd5e1 !important;
  border-radius: 9999px !important;
  border: 1.5px solid #f8fafc !important;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--kimmy-primary) !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
#wrapper::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
#wrapper::-webkit-scrollbar-track {
  background: #f8fafc !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
#wrapper::-webkit-scrollbar-thumb {
  background-color: #cbd5e1 !important;
  border-radius: 9999px !important;
  border: 1.5px solid #f8fafc !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
#wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--kimmy-primary) !important;
}

/* ==================== DISABLE HEADER ENTIRELY ==================== */
#header,
.header-wrapper,
#masthead,
.kimmy-header,
.top-bar,
.header-main,
.header-bottom,
.header-nav {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* Top Back Utility Pill */
.kimmy-top-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 20px;
}

.kimmy-back-portfolio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--kimmy-slate-200);
  border-radius: var(--kimmy-radius-full);
  color: var(--kimmy-slate-600) !important;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--kimmy-shadow-xs);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.kimmy-back-portfolio-pill:hover {
  background: var(--kimmy-primary-50);
  border-color: var(--kimmy-primary-200);
  color: var(--kimmy-primary) !important;
  transform: translateY(-1px);
}

.kimmy-rate-pill-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--kimmy-emerald-light);
  border: 1px solid var(--kimmy-emerald-border);
  border-radius: var(--kimmy-radius-full);
  color: #065f46 !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
}

.kimmy-flag-icon {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 1px;
  display: inline-block;
}

/* ==================== BLOG HERO SECTION ==================== */
.kimmy-blog-hero {
  background: linear-gradient(180deg, #f0f7ff 0%, rgba(240, 247, 255, 0.4) 60%, var(--kimmy-slate-50) 100%);
  padding: 56px 20px 40px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  overflow: hidden;
}

.kimmy-blog-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: 10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
  pointer-events: none;
}

.kimmy-blog-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.kimmy-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: #ffffff;
  border: 1px solid var(--kimmy-primary-200);
  border-radius: var(--kimmy-radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--kimmy-primary-dark);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
  margin-bottom: 16px;
}

.kimmy-hero-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--kimmy-slate-900);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.kimmy-hero-title span {
  background: linear-gradient(135deg, var(--kimmy-primary) 0%, #3b82f6 50%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kimmy-hero-desc {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--kimmy-slate-600);
  line-height: 1.6;
}

/* ==================== HERO SEARCH BAR ==================== */
.kimmy-hero-search-wrapper {
  max-width: 560px;
  width: 100%;
  margin: 0 auto 22px;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
}

.kimmy-hero-search-form {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1.5px solid var(--kimmy-primary-200) !important;
  border-radius: 9999px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 4px 5px 4px 18px !important;
  box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.1), 0 2px 6px -1px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

.kimmy-hero-search-form:focus-within {
  border-color: var(--kimmy-primary) !important;
  box-shadow: 0 6px 24px -2px rgba(2, 132, 199, 0.22), 0 0 0 3.5px rgba(2, 132, 199, 0.14) !important;
  transform: translateY(-1px);
}

.kimmy-hero-search-icon {
  color: var(--kimmy-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 10px !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.kimmy-hero-search-icon svg,
.kimmy-hero-search-icon i {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.kimmy-hero-search-input {
  flex: 1 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14.5px !important;
  line-height: normal !important;
  color: var(--kimmy-slate-800) !important;
  font-family: var(--kimmy-font) !important;
  padding: 0 10px 0 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
}

.kimmy-hero-search-input::placeholder {
  color: var(--kimmy-slate-400);
  font-size: 13.5px;
}

.kimmy-hero-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--kimmy-primary) 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: none !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28) !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  outline: none !important;
}

.kimmy-hero-search-btn:hover {
  background: linear-gradient(135deg, var(--kimmy-primary-dark) 0%, var(--kimmy-primary) 100%) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.42) !important;
}

.kimmy-hero-search-btn:active {
  transform: scale(0.95) !important;
}

.kimmy-hero-search-btn svg,
.kimmy-hero-search-btn i {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  display: block !important;
  flex-shrink: 0 !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 2.5 !important;
  fill: none !important;
  transition: transform 0.2s ease !important;
}

.kimmy-hero-search-btn:hover svg {
  transform: translateX(1.5px);
}

.kimmy-hero-search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
}

.kimmy-search-tags-label {
  color: var(--kimmy-slate-500);
  font-weight: 600;
}

.kimmy-hero-search-tags a {
  color: var(--kimmy-slate-600) !important;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--kimmy-slate-200);
  padding: 3px 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none !important;
}

.kimmy-hero-search-tags a:hover {
  background: var(--kimmy-primary-50);
  border-color: var(--kimmy-primary-200);
  color: var(--kimmy-primary) !important;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .kimmy-hero-search-wrapper {
    max-width: 100%;
    margin: 0 0 18px;
    padding: 0 4px;
  }
  .kimmy-hero-search-form {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 3px 4px 3px 16px !important;
  }
  .kimmy-hero-search-input {
    font-size: 13.5px !important;
  }
  .kimmy-hero-search-input::placeholder {
    font-size: 13px;
  }
  .kimmy-hero-search-btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
}

/* Category Filter Pills */
.kimmy-cat-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.kimmy-cat-pill {
  padding: 7px 16px;
  border-radius: var(--kimmy-radius-full);
  background: #ffffff;
  border: 1px solid var(--kimmy-slate-200);
  color: var(--kimmy-slate-600) !important;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--kimmy-shadow-xs);
}

.kimmy-cat-pill:hover,
.kimmy-cat-pill.active {
  background: var(--kimmy-primary);
  border-color: var(--kimmy-primary);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

/* ==================== MAIN BLOG LAYOUT ==================== */
.kimmy-blog-section {
  max-width: 1280px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.kimmy-blog-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
}

@media (max-width: 1024px) {
  .kimmy-blog-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Post Cards Grid */
.kimmy-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .kimmy-posts-grid {
    grid-template-columns: 1fr;
  }
}

.kimmy-post-card {
  background: #ffffff;
  border-radius: var(--kimmy-radius-lg);
  border: 1px solid var(--kimmy-slate-100);
  box-shadow: var(--kimmy-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.kimmy-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--kimmy-shadow-md);
  border-color: var(--kimmy-primary-100);
}

.kimmy-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--kimmy-slate-100);
}

.kimmy-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.kimmy-post-card:hover .kimmy-card-thumb-img {
  transform: scale(1.06);
}

.kimmy-card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--kimmy-radius-full);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  color: var(--kimmy-primary-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.kimmy-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kimmy-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--kimmy-slate-400);
  margin-bottom: 10px;
}

.kimmy-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--kimmy-slate-800);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.kimmy-post-card:hover .kimmy-card-title {
  color: var(--kimmy-primary);
}

.kimmy-card-excerpt {
  font-size: 13.5px;
  color: var(--kimmy-slate-600);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

.kimmy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--kimmy-slate-100);
  font-size: 12px;
  color: var(--kimmy-slate-500);
}

.kimmy-author-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.kimmy-author-badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.kimmy-reading-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* ==================== KIMMY BESPOKE PAGINATION (PHÂN TRANG 6 BÀI/TRANG) ==================== */
.kimmy-pagination-wrapper,
.navigation.pagination {
  margin: 40px auto 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  clear: both;
}

.kimmy-pagination-wrapper .screen-reader-text,
.navigation.pagination .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kimmy-pagination-wrapper .nav-links,
.navigation.pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--kimmy-slate-200);
  border-radius: var(--kimmy-radius-xl);
  box-shadow: var(--kimmy-shadow-sm);
}

.kimmy-pagination-wrapper .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--kimmy-slate-700);
  text-decoration: none !important;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  line-height: 1;
}

.kimmy-pagination-wrapper a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover {
  background: #f0f9ff;
  color: var(--kimmy-primary);
  border-color: #bae6fd;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.15);
}

.kimmy-pagination-wrapper .page-numbers.current,
.navigation.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--kimmy-primary), #0369a1) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transform: scale(1.04);
  cursor: default;
}

.kimmy-pagination-wrapper .prev.page-numbers,
.kimmy-pagination-wrapper .next.page-numbers,
.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
  padding: 0 16px;
  background: var(--kimmy-slate-50);
  border: 1px solid var(--kimmy-slate-200);
  font-weight: 600;
  color: var(--kimmy-slate-700);
  border-radius: 10px;
}

.kimmy-pagination-wrapper .prev.page-numbers:hover,
.kimmy-pagination-wrapper .next.page-numbers:hover,
.navigation.pagination .prev.page-numbers:hover,
.navigation.pagination .next.page-numbers:hover {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.kimmy-pagination-wrapper .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
  min-width: 24px;
  padding: 0 4px;
  color: var(--kimmy-slate-400);
  border-color: transparent;
  background: transparent;
  cursor: default;
}

/* Phân trang nội dung trong bài viết dài (wp_link_pages) */
.page-links.kimmy-post-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 32px 0 20px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--kimmy-slate-200);
  border-radius: 12px;
}

.page-links-title {
  font-weight: 700;
  color: var(--kimmy-slate-800);
  font-size: 14px;
  margin-right: 4px;
}

.page-links.kimmy-post-pagination .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--kimmy-slate-200);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kimmy-slate-700);
  transition: all 0.2s ease;
}

.page-links.kimmy-post-pagination a .page-number:hover {
  background: var(--kimmy-primary);
  color: #ffffff;
  border-color: var(--kimmy-primary);
}

@media (max-width: 640px) {
  .kimmy-pagination-wrapper .nav-links,
  .navigation.pagination .nav-links {
    gap: 5px;
    padding: 6px 8px;
    border-radius: 14px;
  }

  .kimmy-pagination-wrapper .page-numbers,
  .navigation.pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 8px;
  }

  .kimmy-pagination-wrapper .prev.page-numbers,
  .kimmy-pagination-wrapper .next.page-numbers,
  .navigation.pagination .prev.page-numbers,
  .navigation.pagination .next.page-numbers {
    padding: 0 10px;
    font-size: 12.5px;
  }
}

/* ==================== SIDEBAR STYLING ==================== */
.kimmy-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kimmy-widget {
  background: #ffffff;
  border-radius: var(--kimmy-radius-lg);
  border: 1px solid var(--kimmy-slate-100);
  padding: 24px;
  box-shadow: var(--kimmy-shadow-sm);
}

.kimmy-widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--kimmy-primary-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Author Profile Widget */
.kimmy-profile-widget {
  text-align: center;
}

.kimmy-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  padding: 3px;
  background: linear-gradient(135deg, var(--kimmy-primary), #4338ca);
}

.kimmy-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.kimmy-profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
  margin-bottom: 2px;
}

.kimmy-profile-handle {
  font-size: 12px;
  font-weight: 600;
  color: var(--kimmy-primary);
  margin-bottom: 12px;
}

.kimmy-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: var(--kimmy-slate-50);
  border-radius: var(--kimmy-radius-md);
  padding: 10px;
  margin-bottom: 14px;
}

.kimmy-stat-item strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
}

.kimmy-stat-item span {
  font-size: 11px;
  color: var(--kimmy-slate-500);
}

.kimmy-profile-bio {
  font-size: 13px;
  color: var(--kimmy-slate-600);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}

.kimmy-social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.kimmy-social-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--kimmy-slate-100) !important;
  border: 1px solid var(--kimmy-slate-200) !important;
  color: var(--kimmy-slate-600) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.kimmy-social-btn svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.kimmy-social-btn:hover {
  transform: translateY(-2.5px) !important;
}

.kimmy-social-btn:hover svg {
  transform: scale(1.12) !important;
}

/* Specific Social Brand Colors & Hover Glow */
.kimmy-social-btn.kimmy-social-tiktok:hover,
.kimmy-social-btn[href*="tiktok"]:hover {
  background: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35) !important;
}

.kimmy-social-btn.kimmy-social-facebook:hover,
.kimmy-social-btn[href*="facebook"]:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(24, 119, 242, 0.4) !important;
}

.kimmy-social-btn.kimmy-social-mail:hover,
.kimmy-social-btn[href^="mailto:"]:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(2, 132, 199, 0.4) !important;
}

/* ==================== SIDEBAR & GLOBAL SEARCH WIDGET ==================== */
.kimmy-search-widget,
.widget_search,
.widget_product_search {
  padding: 18px 20px !important;
  border-radius: var(--kimmy-radius-lg) !important;
  background: #ffffff !important;
  border: 1px solid var(--kimmy-slate-200) !important;
  box-shadow: var(--kimmy-shadow-sm) !important;
  box-sizing: border-box !important;
}

/* Remove all excess margin/height inside search cards */
.kimmy-search-widget form,
.widget_search form,
.widget_product_search form,
.searchform,
.kimmy-sidebar-search-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.searchform .flex-row,
.widget_search .flex-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

.searchform .flex-col,
.widget_search .flex-col {
  padding: 0 !important;
  margin: 0 !important;
}

.searchform .flex-col.flex-grow,
.widget_search .flex-col.flex-grow,
.kimmy-sidebar-search-input-wrap {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.searchform .live-search-results:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Search input field */
.kimmy-sidebar-search-input,
.searchform .search-field,
.searchform input[type="search"],
.widget_search input[type="search"] {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--kimmy-slate-200) !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  color: var(--kimmy-slate-800) !important;
  line-height: normal !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  transition: all 0.2s ease !important;
  -webkit-appearance: none !important;
}

.kimmy-sidebar-search-input::placeholder,
.searchform .search-field::placeholder,
.searchform input[type="search"]::placeholder {
  color: var(--kimmy-slate-400) !important;
  font-size: 13px !important;
}

.kimmy-sidebar-search-input:focus,
.searchform .search-field:focus,
.searchform input[type="search"]:focus {
  border-color: var(--kimmy-primary) !important;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15) !important;
}

/* Search button: ALWAYS a 1:1 perfect circle, never an oval */
.kimmy-sidebar-search-btn,
.searchform .ux-search-submit,
.searchform button[type="submit"],
.widget_search button[type="submit"] {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: var(--kimmy-primary) !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  line-height: 1 !important;
  text-transform: none !important;
  vertical-align: middle !important;
  outline: none !important;
}

.kimmy-sidebar-search-btn:hover,
.searchform .ux-search-submit:hover,
.searchform button[type="submit"]:hover {
  background: var(--kimmy-primary-dark) !important;
  transform: scale(1.06) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
}

.kimmy-sidebar-search-btn:active,
.searchform .ux-search-submit:active,
.searchform button[type="submit"]:active {
  transform: scale(0.96) !important;
}

.kimmy-sidebar-search-btn svg,
.kimmy-sidebar-search-btn i,
.searchform .ux-search-submit svg,
.searchform .ux-search-submit i,
.searchform button[type="submit"] svg,
.searchform button[type="submit"] i {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  font-size: 17px !important;
  line-height: 1 !important;
  display: block !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  fill: none !important;
}

/* ==================== SEARCH RESULTS BANNER & EMPTY STATE ==================== */
.kimmy-search-result-banner {
  background: #ffffff;
  border: 1.5px solid var(--kimmy-primary-100);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--kimmy-shadow-sm);
}

.kimmy-search-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--kimmy-primary);
  background: var(--kimmy-primary-50);
  border: 1px solid var(--kimmy-primary-200);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.kimmy-search-query-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.kimmy-search-query-title span {
  color: var(--kimmy-primary);
}

.kimmy-search-count {
  font-size: 13px;
  color: var(--kimmy-slate-500);
  margin: 0;
}

.kimmy-search-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--kimmy-tw-red) !important;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.kimmy-search-clear-btn:hover {
  background: var(--kimmy-tw-red);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.kimmy-empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  padding: 56px 28px;
  border-radius: 20px;
  text-align: center;
  border: 1px dashed var(--kimmy-slate-300);
  box-shadow: var(--kimmy-shadow-sm);
}

.kimmy-empty-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--kimmy-primary-50);
  color: var(--kimmy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kimmy-empty-state h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
  margin-bottom: 8px;
}

.kimmy-empty-state p {
  font-size: 14.5px;
  color: var(--kimmy-slate-600);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.kimmy-empty-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.kimmy-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--kimmy-primary);
  color: #ffffff !important;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  text-decoration: none !important;
}

.kimmy-empty-btn:hover {
  background: var(--kimmy-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

/* Offer Voucher Banner Widget */
.kimmy-voucher-widget {
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--kimmy-radius-lg);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.35);
}

.kimmy-voucher-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: var(--kimmy-radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.kimmy-voucher-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #ffffff;
}

.kimmy-voucher-desc {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 18px;
}

.kimmy-voucher-btn {
  display: block;
  width: 100%;
  background: #ffffff;
  color: var(--kimmy-primary-dark) !important;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--kimmy-radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.kimmy-voucher-btn:hover {
  background: var(--kimmy-primary-50);
  transform: translateY(-2px);
}

/* ==================== SINGLE POST LAYOUT ==================== */
.kimmy-single-article {
  max-width: 860px;
  margin: 30px auto 60px;
  background: #ffffff;
  border-radius: var(--kimmy-radius-xl);
  padding: 40px;
  border: 1px solid var(--kimmy-slate-100);
  box-shadow: var(--kimmy-shadow-sm);
}

@media (max-width: 768px) {
  .kimmy-single-article {
    padding: 24px 18px;
    border-radius: var(--kimmy-radius-lg);
  }
}

.kimmy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--kimmy-slate-400);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.kimmy-breadcrumbs a {
  color: var(--kimmy-slate-500);
}

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

.kimmy-post-header-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--kimmy-slate-900);
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .kimmy-post-header-title {
    font-size: 24px;
  }
}

.kimmy-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--kimmy-slate-500);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--kimmy-slate-100);
  flex-wrap: wrap;
}

.kimmy-single-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--kimmy-radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--kimmy-shadow-sm);
}

/* ==================== POST AUTHOR BOX & CTAS ==================== */

/* Author Box at Post Bottom */
.kimmy-post-author-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid var(--kimmy-primary-100);
  border-radius: var(--kimmy-radius-lg);
  padding: 24px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 640px) {
  .kimmy-post-author-box {
    flex-direction: column;
    text-align: center;
  }
}

.kimmy-author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.kimmy-author-box-content h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
  margin-bottom: 4px;
}

.kimmy-author-box-content p {
  font-size: 13.5px;
  color: var(--kimmy-slate-600);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* In-post Booking CTA Banner */
.kimmy-post-cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #312e81 100%);
  color: #ffffff;
  border-radius: var(--kimmy-radius-lg);
  padding: 32px 28px;
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 12px 30px -6px rgba(2, 132, 199, 0.35);
}

@media (max-width: 768px) {
  .kimmy-post-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

.kimmy-post-cta-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.kimmy-post-cta-content p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

.kimmy-post-cta-btn {
  background: #ffffff;
  color: var(--kimmy-primary-dark) !important;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--kimmy-radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.kimmy-post-cta-btn:hover {
  background: var(--kimmy-primary-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* ==================== KIMMY FOOTER ==================== */
.kimmy-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 20px 30px;
  font-size: 13.5px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}

.kimmy-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.kimmy-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 1024px) {
  .kimmy-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kimmy-footer-grid {
    grid-template-columns: 1fr;
  }
}

.kimmy-footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.kimmy-footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.kimmy-footer-brand-title img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.kimmy-footer-brand-title strong {
  color: #ffffff;
  font-size: 16px;
}

.kimmy-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #94a3b8;
}

.kimmy-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kimmy-footer-links a {
  color: #94a3b8 !important;
  transition: all 0.2s ease;
}

.kimmy-footer-links a:hover {
  color: #ffffff !important;
  padding-left: 4px;
}

.kimmy-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
}

.kimmy-footer-bottom a {
  color: #64748b;
}

.kimmy-footer-bottom a:hover {
  color: #94a3b8;
}

/* ==================== FLATSOME OVERRIDES ==================== */
/* Hide Flatsome default header/footer when our custom templates run */
#header {
  display: none !important;
}

#footer {
  display: none !important;
}

/* Hide breadcrumbs & title wrapper from parent */
.page-title {
  display: none !important;
}

/* Hide admin bar margin shift if not logged in */
.admin-bar .kimmy-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .kimmy-header {
    top: 46px;
  }
}

/* ==================== WORDPRESS PAGINATION STYLING ==================== */
.navigation.pagination {
  text-align: center;
  margin: 32px 0;
}

.navigation.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--kimmy-radius-full);
  background: #ffffff;
  border: 1px solid var(--kimmy-slate-200);
  color: var(--kimmy-slate-700);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--kimmy-shadow-xs);
  transition: all 0.2s ease;
}

.navigation.pagination .page-numbers:hover {
  background: var(--kimmy-primary-50);
  border-color: var(--kimmy-primary);
  color: var(--kimmy-primary);
  transform: translateY(-1px);
}

.navigation.pagination .page-numbers.current {
  background: var(--kimmy-primary);
  border-color: var(--kimmy-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* ==================== WORDPRESS COMMENTS STYLING ==================== */
#comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--kimmy-slate-100);
}

.comments-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--kimmy-slate-900);
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.comment-list .comment-body {
  background: var(--kimmy-slate-50);
  border: 1px solid var(--kimmy-slate-200);
  border-radius: var(--kimmy-radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-meta img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-author b {
  font-weight: 700;
  color: var(--kimmy-slate-800);
  font-size: 14px;
}

.comment-metadata {
  font-size: 12px;
  color: var(--kimmy-slate-400);
}

.comment-content {
  font-size: 14px;
  color: var(--kimmy-slate-700);
  line-height: 1.6;
}

#reply-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
  margin-bottom: 14px;
}

.comment-form p {
  margin-bottom: 14px;
}

.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--kimmy-slate-700);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--kimmy-radius-md);
  border: 1px solid var(--kimmy-slate-200);
  background: #ffffff;
  font-size: 14px;
  font-family: var(--kimmy-font);
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--kimmy-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.comment-form .form-submit input[type="submit"] {
  background: linear-gradient(135deg, var(--kimmy-primary), #4338ca);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 24px;
  border-radius: var(--kimmy-radius-full);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* ==================== READING PROGRESS BAR ==================== */
.kimmy-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--kimmy-primary) 0%, #3b82f6 50%, #6366f1 100%);
  z-index: 99999;
  transition: width 0.1s ease-out;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.4);
}

/* ==================== SINGLE POST TOP NAVIGATION ==================== */
.kimmy-single-nav-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--kimmy-slate-200);
  padding: 14px 20px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.kimmy-single-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.kimmy-back-blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--kimmy-slate-100);
  border: 1px solid var(--kimmy-slate-200);
  border-radius: var(--kimmy-radius-full);
  color: var(--kimmy-slate-700) !important;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: var(--kimmy-shadow-xs);
  text-decoration: none !important;
}

.kimmy-back-blog-btn:hover {
  background: var(--kimmy-primary-50);
  border-color: var(--kimmy-primary-200);
  color: var(--kimmy-primary) !important;
  transform: translateX(-3px);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.kimmy-single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--kimmy-slate-500);
  flex-wrap: wrap;
}

.kimmy-single-breadcrumbs a {
  color: var(--kimmy-slate-600);
  font-weight: 500;
}

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

.kimmy-crumb-sep {
  color: var(--kimmy-slate-400);
  font-size: 12px;
}

.kimmy-crumb-current {
  color: var(--kimmy-slate-400);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== SINGLE POST LAYOUT ==================== */
.kimmy-single-section {
  margin-top: 32px !important;
  margin-bottom: 72px !important;
}

.kimmy-single-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1024px) {
  .kimmy-single-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.kimmy-single-article-card {
  background: #ffffff;
  border-radius: var(--kimmy-radius-xl);
  border: 1px solid var(--kimmy-slate-200);
  box-shadow: var(--kimmy-shadow-sm);
  padding: 44px 48px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .kimmy-single-article-card {
    padding: 24px 18px;
    border-radius: var(--kimmy-radius-lg);
  }
}

/* Header Area */
.kimmy-article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--kimmy-slate-100);
}

.kimmy-article-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kimmy-primary-50);
  border: 1px solid var(--kimmy-primary-200);
  color: var(--kimmy-primary-dark) !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--kimmy-radius-full);
  margin-bottom: 16px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.kimmy-article-cat-pill:hover {
  background: var(--kimmy-primary);
  color: #ffffff !important;
  border-color: var(--kimmy-primary);
}

.kimmy-article-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--kimmy-slate-900);
  line-height: 1.35;
  margin: 0 0 20px 0;
  letter-spacing: -0.015em;
}

@media (max-width: 768px) {
  .kimmy-article-title {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 16px;
  }
}

.kimmy-article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.kimmy-article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kimmy-article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--kimmy-primary-100);
}

.kimmy-article-author-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--kimmy-slate-800);
  line-height: 1.2;
}

.kimmy-article-author-sub {
  font-size: 11.5px;
  color: var(--kimmy-slate-500);
}

.kimmy-article-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--kimmy-slate-500);
}

.kimmy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kimmy-meta-divider {
  color: var(--kimmy-slate-300);
}

/* Featured Image */
.kimmy-article-thumb-wrapper {
  margin: 28px 0 36px;
  border-radius: var(--kimmy-radius-lg);
  overflow: hidden;
  box-shadow: var(--kimmy-shadow-md);
  border: 1px solid var(--kimmy-slate-100);
}

.kimmy-article-thumb {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ==================== EDITORIAL ARTICLE TYPOGRAPHY & CAN DEU ==================== */
.kimmy-entry-content,
.entry-content {
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  color: #334155;
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: left;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

@media (max-width: 1024px) {
  .kimmy-entry-content,
  .entry-content {
    font-size: 15px !important;
    line-height: 1.72 !important;
  }
}

@media (max-width: 640px) {
  .kimmy-entry-content,
  .entry-content {
    font-size: 14.5px !important;
    line-height: 1.68 !important;
  }
}

/* Toàn bộ đoạn văn bản trong bài viết tự động căn đều 2 bên chuẩn xác */
.kimmy-entry-content p,
.entry-content p,
.kimmy-entry-content .wp-block-paragraph,
.entry-content .wp-block-paragraph,
.kimmy-entry-content div > p,
.entry-content div > p {
  margin-bottom: 20px;
  color: #334155;
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: left;
  line-height: 1.75 !important;
  overflow-wrap: break-word;
}

/* Hỗ trợ các class và format Căn đều riêng */
.has-text-align-justify,
.is-style-justify,
span.has-text-align-justify,
p.has-text-align-justify,
div.has-text-align-justify {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: left;
}

/* Bảo toàn các tiêu đề h1 - h6 luôn căn lề trái tự nhiên */
.kimmy-entry-content h1,
.kimmy-entry-content h2,
.kimmy-entry-content h3,
.kimmy-entry-content h4,
.kimmy-entry-content h5,
.kimmy-entry-content h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  text-align: left !important;
  text-align-last: left !important;
}

/* Tôn trọng tuyệt đối khi tác giả cố ý chọn căn giữa, căn phải, hoặc căn trái */
.kimmy-entry-content .has-text-align-center,
.entry-content .has-text-align-center,
.kimmy-entry-content [style*="text-align: center"],
.entry-content [style*="text-align: center"],
.kimmy-entry-content [style*="text-align:center"],
.entry-content [style*="text-align:center"] {
  text-align: center !important;
  text-align-last: center !important;
}

.kimmy-entry-content .has-text-align-right,
.entry-content .has-text-align-right,
.kimmy-entry-content [style*="text-align: right"],
.entry-content [style*="text-align: right"],
.kimmy-entry-content [style*="text-align:right"],
.entry-content [style*="text-align:right"] {
  text-align: right !important;
  text-align-last: right !important;
}

.kimmy-entry-content .has-text-align-left,
.entry-content .has-text-align-left,
.kimmy-entry-content [style*="text-align: left"],
.entry-content [style*="text-align: left"],
.kimmy-entry-content [style*="text-align:left"],
.entry-content [style*="text-align:left"] {
  text-align: left !important;
  text-align-last: left !important;
}

@media (max-width: 640px) {
  .kimmy-entry-content p,
  .entry-content p {
    margin-bottom: 16px;
  }
}

.kimmy-entry-content strong,
.kimmy-entry-content b {
  color: #0f172a;
  font-weight: 700;
}

.kimmy-entry-content a {
  color: var(--kimmy-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.kimmy-entry-content a:hover {
  color: var(--kimmy-primary-dark);
}

/* Headings in Article */
.kimmy-entry-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--kimmy-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .kimmy-entry-content h2 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .kimmy-entry-content h2 {
    font-size: 19px;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left-width: 3px;
  }
}

.kimmy-entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .kimmy-entry-content h3 {
    font-size: 17.5px;
  }
}

@media (max-width: 640px) {
  .kimmy-entry-content h3 {
    font-size: 16.5px;
    margin-top: 22px;
    margin-bottom: 10px;
  }
}

.kimmy-entry-content h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #334155;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Blockquotes */
.kimmy-entry-content blockquote {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border-left: 4px solid var(--kimmy-primary);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-style: italic;
  color: #1e3a8a;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}

@media (max-width: 640px) {
  .kimmy-entry-content blockquote {
    font-size: 14px;
    line-height: 1.65;
    padding: 14px 18px;
    margin: 20px 0;
  }
}

.kimmy-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Lists */
.kimmy-entry-content ul,
.kimmy-entry-content ol {
  margin: 16px 0 22px 22px;
  padding: 0;
}

.kimmy-entry-content li,
.entry-content li,
.kimmy-entry-content .wp-block-list li,
.entry-content .wp-block-list li {
  margin-bottom: 8px;
  line-height: 1.72;
  color: #334155;
  font-size: 15.5px;
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: left;
}

@media (max-width: 1024px) {
  .kimmy-entry-content li,
  .entry-content li {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .kimmy-entry-content li,
  .entry-content li {
    font-size: 14.5px;
    margin-bottom: 7px;
  }
}

/* Images & Figures */
.kimmy-entry-content img {
  border-radius: var(--kimmy-radius-lg);
  max-width: 100%;
  height: auto;
  box-shadow: var(--kimmy-shadow-md);
  margin: 28px auto;
  display: block;
}

.kimmy-entry-content figure {
  margin: 32px 0;
  text-align: center;
}

.kimmy-entry-content figcaption {
  font-size: 13px;
  color: var(--kimmy-slate-500);
  margin-top: 10px;
  font-style: italic;
}

/* Tables */
.kimmy-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--kimmy-slate-200);
  font-size: 14.5px;
}

.kimmy-entry-content th {
  background: #f1f5f9;
  padding: 14px 18px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  border-bottom: 2px solid var(--kimmy-slate-200);
}

.kimmy-entry-content td {
  padding: 12px 18px;
  border-top: 1px solid var(--kimmy-slate-100);
  color: #475569;
}

.kimmy-entry-content tr:hover td {
  background: var(--kimmy-slate-50);
}

/* Article Tags */
.kimmy-article-tags-wrapper {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--kimmy-slate-100);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kimmy-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--kimmy-slate-500);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kimmy-tags-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kimmy-tag-pill {
  font-size: 12.5px;
  background: var(--kimmy-slate-100);
  color: var(--kimmy-slate-700) !important;
  padding: 4px 12px;
  border-radius: var(--kimmy-radius-full);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.kimmy-tag-pill:hover {
  background: var(--kimmy-primary-50);
  border-color: var(--kimmy-primary-200);
  color: var(--kimmy-primary) !important;
  transform: translateY(-1px);
}

/* Bottom Bar */
.kimmy-article-bottom-bar {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--kimmy-slate-50);
  border: 1px solid var(--kimmy-slate-200);
  border-radius: var(--kimmy-radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.kimmy-bottom-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--kimmy-primary);
  color: #ffffff !important;
  border-radius: var(--kimmy-radius-full);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  text-decoration: none !important;
}

.kimmy-bottom-back-btn:hover {
  background: var(--kimmy-primary-dark);
  transform: translateX(-3px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.kimmy-article-share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kimmy-share-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--kimmy-slate-500);
}

/* Related Posts Section */
.kimmy-related-posts-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--kimmy-slate-100);
}

.kimmy-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.kimmy-related-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--kimmy-slate-900);
  margin: 0;
}

.kimmy-related-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--kimmy-primary);
  text-decoration: none !important;
}

.kimmy-related-all-link:hover {
  text-decoration: underline !important;
}

/* Sidebar Quick Back Widget */
.kimmy-quick-back-widget {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  border: 1.5px solid var(--kimmy-primary-200) !important;
  text-align: center;
  padding: 24px 20px !important;
}

.kimmy-quick-back-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--kimmy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.kimmy-quick-back-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--kimmy-slate-800);
  margin-bottom: 8px;
}

.kimmy-quick-back-desc {
  font-size: 13px;
  color: var(--kimmy-slate-600);
  line-height: 1.5;
  margin-bottom: 16px;
}

.kimmy-quick-back-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kimmy-primary);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--kimmy-radius-full);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  text-decoration: none !important;
}

.kimmy-quick-back-action:hover {
  background: var(--kimmy-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* Floating Back Button */
.kimmy-floating-back-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid var(--kimmy-primary-200);
  border-radius: var(--kimmy-radius-full);
  color: var(--kimmy-primary-dark) !important;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(2, 132, 199, 0.1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.kimmy-floating-back-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kimmy-floating-back-btn:hover {
  background: var(--kimmy-primary);
  border-color: var(--kimmy-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.3);
}

@media (max-width: 640px) {
  .kimmy-floating-back-btn {
    bottom: 16px;
    left: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ==================== POST MULTI-PAGE PAGINATION ==================== */
.kimmy-post-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--kimmy-primary-50);
  border: 1px solid var(--kimmy-primary-200);
  border-radius: var(--kimmy-radius-md);
  font-size: 14px;
  font-weight: 600;
}

.kimmy-post-pagination .page-links-title {
  color: var(--kimmy-slate-600);
  margin-right: 4px;
}

.kimmy-post-pagination a,
.kimmy-post-pagination > .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--kimmy-slate-200);
  color: var(--kimmy-slate-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.kimmy-post-pagination > .page-number:not(a) {
  background: var(--kimmy-primary);
  border-color: var(--kimmy-primary);
  color: #ffffff;
  font-weight: 700;
}


