/* ============================================================
   WaitingMate Blog - Professional Fully Responsive Design
   Mobile-First with Premium Desktop Experience
   ============================================================ */

:root {
  --blog-primary: var(--wm-accent);
  --blog-primary-dark: var(--wm-accent-hover);
  --blog-accent: var(--wm-accent-light);
  --blog-bg: var(--wm-bg-section);
  --blog-light-bg: var(--wm-bg-section);
  --blog-card-bg: var(--wm-bg-card);
  --blog-text: var(--wm-text);
  --blog-text-dark: var(--wm-primary);
  --blog-text-secondary: var(--wm-text-secondary);
  --blog-text-muted: var(--wm-text-muted);
  --blog-border: var(--wm-border);
  --blog-border-light: var(--wm-border-light);
  --blog-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --blog-shadow-subtle: 0 4px 20px -2px rgba(15,23,42,0.05);
  --blog-shadow-hover: 0 20px 40px -6px rgba(15,23,42,0.12);
  --blog-shadow-featured: 0 20px 60px rgba(0,0,0,0.15);
  --blog-radius: 16px;
  --blog-radius-sm: 10px;
  --blog-radius-md: 16px;
  --blog-radius-lg: 20px;
  --blog-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --blog-font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --blog-primary-gradient: linear-gradient(135deg, var(--wm-accent) 0%, var(--wm-accent-light) 100%);
  --header-h: 56px;
}

/* ─── BLOG APP HERO & SEARCH BANNER ─── */
.blog-app-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, var(--primary) 100%);
  padding: 42px 0 36px;
  overflow: hidden;
  text-align: center;
}

.blog-app-hero .hero-dots-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.blog-app-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(24, 119, 230,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(77, 155, 240,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(24, 119, 230, 0.15);
  border: 1px solid rgba(24, 119, 230, 0.3);
  color: var(--blog-accent);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.blog-hero-title {
  font-family: var(--blog-font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Hero Search Box */
.blog-hero-search-wrap {
  max-width: 540px;
  margin: 0 auto;
}

.blog-hero-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 6px 8px 6px 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.blog-hero-search-form:focus-within {
  background: #ffffff;
  border-color: var(--blog-primary);
  box-shadow: 0 12px 36px rgba(24, 119, 230, 0.3);
}

.blog-hero-search-form .search-icon {
  color: var(--blog-text-muted);
  font-size: 1.05rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.blog-hero-search-form .blog-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--blog-text);
  outline: none;
  padding: 8px 0;
  font-family: inherit;
}

.blog-hero-search-form .search-clear-btn {
  color: var(--blog-text-muted);
  padding: 4px 8px;
  font-size: 0.85rem;
  text-decoration: none;
}

.blog-hero-search-form .blog-search-submit-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.blog-hero-search-form .blog-search-submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(24, 119, 230, 0.4);
}

@media (min-width: 992px) {
  .blog-app-hero {
    padding: 64px 0 52px;
  }
  .blog-hero-title {
    font-size: 2.75rem;
  }
  .blog-hero-subtitle {
    font-size: 1.05rem;
  }
}

/* ─── STICKY NATIVE APP CATEGORY BAR ─── */
.blog-sticky-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--blog-border);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sticky-bar-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sticky-bar-wrapper::-webkit-scrollbar {
  display: none;
}

.cat-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 2px 0;
}

.cat-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid var(--blog-border);
  border-radius: 100px;
  background: #ffffff;
  color: var(--blog-text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cat-pill-btn:hover {
  border-color: var(--blog-primary);
  color: var(--blog-primary);
  background: rgba(24, 119, 230, 0.04);
}

.cat-pill-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24, 119, 230, 0.3);
  font-weight: 700;
}

/* ─── MAIN CONTENT SECTION ─── */
.blog-main-section {
  padding: 28px 0 50px;
  background: var(--blog-bg);
}

.content-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.content-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blog-text);
  margin: 0;
  letter-spacing: -0.02em;
  font-family: var(--blog-font-heading);
}

.count-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blog-primary);
  background: rgba(24, 119, 230, 0.08);
  border: 1px solid rgba(24, 119, 230, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ─── FEATURED ARTICLE CARD ─── */
.magazine-featured-card-wrap {
  margin-bottom: 28px;
}

.magazine-featured-card {
  display: block;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
  text-decoration: none !important;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(24, 119, 230, 0.3);
}

.mfc-img-box {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eef0f2;
}

.mfc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.mfc-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(24, 119, 230, 0.35);
}

.mfc-content {
  padding: 22px 24px 24px;
}

.mfc-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blog-text);
  line-height: 1.3;
  margin-bottom: 10px;
  font-family: var(--blog-font-heading);
}

.magazine-featured-card:hover .mfc-title {
  color: var(--blog-primary);
}

.mfc-excerpt {
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mfc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--blog-border-light);
}

.mfc-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mfc-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
}

.mfc-author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blog-text);
}

.mfc-read-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blog-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s ease;
}

.magazine-featured-card:hover .mfc-read-btn {
  gap: 8px;
}

/* ─── MODERN ARTICLES GRID & CARDS ─── */
.articles-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 576px) {
  .articles-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modern-blog-card-wrap {
  display: flex;
}

.modern-blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
  text-decoration: none !important;
  color: inherit;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  border-color: rgba(24, 119, 230, 0.3);
}

.modern-blog-card:active {
  transform: scale(0.98);
}

.mbc-img-box {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eef0f2;
}

.mbc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modern-blog-card:hover .mbc-img {
  transform: scale(1.06);
}

.mbc-category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mbc-bookmark-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blog-text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.mbc-bookmark-btn:hover {
  background: var(--blog-primary);
  color: #ffffff;
  transform: scale(1.1);
}

.mbc-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mbc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--blog-text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.mbc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blog-text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--blog-font-heading);
  transition: color 0.2s ease;
}

.modern-blog-card:hover .mbc-title {
  color: var(--blog-primary);
}

.mbc-excerpt {
  font-size: 0.84rem;
  color: var(--blog-text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 14px;
}

.mbc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--blog-border-light);
}

.mbc-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mbc-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
}

.mbc-author-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blog-text);
}

.mbc-read-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blog-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.modern-blog-card:hover .mbc-read-btn {
  gap: 8px;
}

/* ─── PAGINATION BAR ─── */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--blog-border);
  color: var(--blog-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--blog-primary);
  color: var(--blog-primary);
  background: rgba(24, 119, 230, 0.04);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(24, 119, 230, 0.3);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── SIDEBAR & WIDGETS ─── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--blog-border);
  box-shadow: var(--blog-shadow);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blog-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--blog-font-heading);
}

.widget-title i {
  color: var(--blog-primary);
}

/* Trending List */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease;
}

.trending-item:hover {
  transform: translateX(4px);
}

.trending-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--blog-primary);
  line-height: 1;
  font-family: var(--blog-font-heading);
  min-width: 24px;
}

.trending-content h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blog-text);
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-item:hover .trending-content h5 {
  color: var(--blog-primary);
}

.trending-meta {
  font-size: 0.72rem;
  color: var(--blog-text-muted);
  font-weight: 500;
}

/* Widget Cat List */
.widget-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.widget-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--blog-bg);
  color: var(--blog-text);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.widget-cat-item:hover {
  background: rgba(24, 119, 230, 0.08);
  color: var(--blog-primary);
}

/* Newsletter Widget */
.sidebar-newsletter-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  color: #ffffff;
  border: none;
}

.sidebar-newsletter-widget .widget-title {
  color: #ffffff;
}

.snw-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}

.snw-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snw-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
}

.snw-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.snw-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.snw-btn:hover {
  box-shadow: 0 4px 14px rgba(24, 119, 230, 0.4);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--blog-bg);
  color: var(--blog-text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  background: rgba(24, 119, 230, 0.1);
  color: var(--blog-primary);
}

.tag-pill.active {
  background: var(--blog-primary);
  color: #ffffff !important;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(24, 119, 230, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(24, 119, 230, 0.5);
}

/* Mobile Breakpoints & Native App Look */
@media (max-width: 575.98px) {
  .blog-app-hero {
    padding: 30px 0 24px;
  }
  .blog-hero-title {
    font-size: 1.45rem;
  }
  .blog-hero-subtitle {
    font-size: 0.84rem;
    margin-bottom: 18px;
  }
  .blog-hero-search-form {
    padding: 4px 6px 4px 14px;
  }
  .blog-hero-search-form .blog-search-submit-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
  }
  .cat-pill-btn {
    padding: 6px 14px;
    font-size: 0.76rem;
  }
  .magazine-featured-card {
    border-radius: 16px;
  }
  .mfc-content {
    padding: 16px 18px 18px;
  }
  .mfc-title {
    font-size: 1.1rem;
  }
  .mfc-excerpt {
    font-size: 0.82rem;
  }
  .modern-blog-card {
    border-radius: 14px;
  }
  .mbc-body {
    padding: 14px 16px 16px;
  }
  .mbc-title {
    font-size: 0.95rem;
  }
  .mbc-excerpt {
    font-size: 0.8rem;
  }
  .sidebar-widget {
    padding: 18px;
    border-radius: 16px;
  }
}

/* ─── BLOG DETAIL STYLES BUNDLE ─── */
.reading-progress-bar { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); z-index: 9999; transition: width 0.1s linear; box-shadow: 0 2px 8px rgba(24, 119, 230, 0.4); }
.detail-mobile-app-bar { display: block; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); padding: 10px 0; }
.detail-app-back-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--text-primary); text-decoration: none; transition: color 0.2s ease; }
.detail-app-back-btn:hover { color: var(--accent); }
.blog-detail-main { background: var(--bg-soft); min-height: 100vh; }
.blog-detail-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; background: var(--text-primary); }
.blog-detail-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.blog-detail-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.88) 100%); }
.blog-detail-hero-content { position: relative; z-index: 2; width: 100%; padding: 60px 0 32px; color: #ffffff; }
.breadcrumb-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; font-weight: 600; margin-bottom: 14px; }
.breadcrumb-nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.blog-detail-category-badge { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #ffffff; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.blog-detail-hero h1 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.45rem, 4vw, 2.75rem); line-height: 1.2; margin: 0 0 16px; color: #ffffff; }
.blog-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 0.84rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.blog-detail-body { padding: 36px 0 60px; }
.desktop-back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 700; text-decoration: none; margin-bottom: 20px; }
.desktop-back-link:hover { color: var(--accent); }
.blog-detail-content { background: #ffffff; border-radius: 24px; padding: clamp(20px, 4vw, 44px); box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08); border: 1px solid var(--border-light); font-size: 1.02rem; line-height: 1.8; color: var(--text-primary); overflow-wrap: break-word; word-break: break-word; }
.blog-lead-box { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; padding: 18px 22px; font-size: 1.08rem; font-weight: 600; color: var(--text-primary); line-height: 1.7; margin-bottom: 24px; }
.blog-detail-content p { margin: 0 0 1.25em; color: var(--text-secondary); }
.blog-detail-content h2, .blog-detail-content h3, .blog-detail-content h4 { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--text-primary); line-height: 1.3; margin: 1.6em 0 0.6em; }
.blog-detail-content h2 { font-size: 1.55rem; border-bottom: 2px solid var(--border-light); padding-bottom: 8px; }
.blog-detail-content h3 { font-size: 1.3rem; }
.blog-detail-content h4 { font-size: 1.12rem; }
.blog-detail-content img { max-width: 100% !important; height: auto !important; border-radius: 14px; margin: 1.4em 0; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08); }
.blog-detail-content a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.blog-detail-content blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 14px 14px 0; font-style: italic; color: var(--text-secondary); }
.blog-detail-content pre { background: var(--text-primary); color: var(--border-color); padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 0.88rem; margin: 1.4em 0; }
.blog-detail-content code { font-family: monospace; background: rgba(24, 119, 230, 0.08); color: var(--accent); padding: 3px 7px; border-radius: 6px; font-size: 0.88em; }
.blog-detail-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; }
.blog-detail-content th, .blog-detail-content td { border: 1px solid var(--border-color); padding: 12px 16px; text-align: left; }
.blog-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.blog-tag-pill { display: inline-block; background: var(--border-light); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; text-decoration: none; transition: all 0.2s ease; }
.blog-tag-pill:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.blog-share-section { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.share-label { font-weight: 700; font-size: 0.9rem; color: var(--text-secondary); margin-right: 6px; }
.share-btn-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--text-primary); border: 1px solid var(--border-color); font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: all 0.25s ease; }
.share-btn-icon:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; transform: translateY(-2px); }
.author-profile-card { display: flex; align-items: flex-start; gap: 16px; background: #ffffff; border: 1px solid var(--border-light); border-radius: 16px; padding: 22px; margin-top: 28px; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08); }
.author-avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.author-info-text h4 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text-primary); margin: 0 0 4px; }
.author-info-text p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.blog-sidebar-wrap { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: #ffffff; border-radius: 16px; padding: 22px; border: 1px solid var(--border-light); box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08); }
.widget-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text-primary); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); display: flex; align-items: center; gap: 8px; }
.widget-cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.widget-cat-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--bg-soft); border: 1px solid var(--border-color); border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); text-decoration: none; transition: all 0.2s ease; }
.widget-cat-item:hover { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.sidebar-post-list { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); transition: transform 0.2s ease; }
.sidebar-post-item:hover { transform: translateX(4px); }
.sidebar-post-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--border-light); }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-info h5 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.86rem; line-height: 1.35; color: var(--text-primary); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-post-info span { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }
.related-section { padding: 10px 0 60px; }
.related-header-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--text-primary); margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.related-card { display: block; background: #ffffff; border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -6px rgba(15, 23, 42, 0.12); }
.related-thumb-box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--border-light); }
.related-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.related-card:hover .related-thumb-img { transform: scale(1.06); }
.related-card-body { padding: 18px; }
.related-cat-name { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); margin-bottom: 6px; }
.related-card-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--text-primary); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-date-str { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
@media (max-width: 575.98px) {
  .detail-mobile-app-bar { padding: 8px 0; }
  .blog-detail-hero { min-height: 260px; }
  .blog-detail-hero-content { padding: 30px 0 20px; }
  .blog-detail-hero h1 { font-size: 1.32rem; line-height: 1.25; margin-bottom: 10px; }
  .blog-detail-meta { font-size: 0.76rem; gap: 6px 10px; }
  .blog-detail-body { padding: 16px 0 32px; }
  .blog-detail-content { padding: 18px 14px; font-size: 0.95rem; line-height: 1.68; border-radius: 16px; }
  .blog-lead-box { padding: 14px 16px; font-size: 0.96rem; }
  .author-profile-card { padding: 16px; gap: 12px; }
  .author-avatar-lg { width: 44px; height: 44px; font-size: 1.2rem; }
}
@media (min-width: 576px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .blog-detail-hero { min-height: 50vh; } .blog-detail-body { padding: 44px 0 64px; } .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .blog-detail-hero { min-height: 55vh; } .blog-detail-content { font-size: 1.05rem; } }

/* ============================================================
   PREMIUM BLOG LIST HERO (upgrade)
   ============================================================ */
.blog-app-hero {
  background:
    radial-gradient(ellipse 120% 85% at 88% -18%, rgba(122, 196, 255, 0.35) 0%, rgba(122, 196, 255, 0) 55%),
    radial-gradient(ellipse 95% 75% at -12% 115%, rgba(115, 192, 0, 0.2) 0%, rgba(115, 192, 0, 0) 60%),
    linear-gradient(165deg, #0c2f73 0%, #134a9e 40%, #1877E6 100%);
  border-radius: 0 0 28px 28px;
  padding: 46px 0 40px;
  border-bottom: 1px solid rgba(24, 119, 230, 0.22);
}

.blog-hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d6ecff;
  padding: 6px 16px;
  box-shadow: 0 4px 18px rgba(4, 20, 52, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-hero-badge i { color: #8fd14f; }

.blog-hero-title {
  font-size: clamp(1.6rem, 5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.blog-hero-gradient {
  background: linear-gradient(120deg, #7cc4ff 0%, #9fe05e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
}

.blog-hero-search-form {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 44px rgba(4, 20, 52, 0.28);
}

@media (max-width: 575.98px) {
  .blog-app-hero { padding: 30px 0 24px; border-radius: 0 0 20px 20px; }
}
