/* ==========================================================================
   FINCHBYTE — BLOG SYSTEM MASTER STYLESHEET
   Adheres to FinchByte Style Guide: High-Contrast, Glassmorphic & Modern UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(79, 70, 229, 0.4);
  
  --primary-accent: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent-purple: #7c3aed;
  --accent-blue: #2563eb;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-cyan: #06b6d4;
  
  /* Solid High Contrast Text Colors */
  --text-main: #0f172a;     /* Dark Slate 900 */
  --text-muted: #1e293b;    /* Slate 800 */
  --text-dim: #334155;      /* Slate 700 */
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* --------------------------------------------------------------------------
   02. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Mesh Overlay with Clean Backdrop Tint */
.bg-mesh-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.94), rgba(248, 250, 252, 0.97)), url('/assets/blog/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 1;
}

/* Color & Typography Helpers */
.font-display { font-family: var(--font-display); }
.text-gradient {
  background: linear-gradient(125deg, #4f46e5 0%, #7c3aed 25%, #db2777 50%, #06b6d4 75%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-indigo { color: var(--primary-accent) !important; }
.bg-indigo { background-color: var(--primary-accent) !important; }
.bg-indigo-subtle { background-color: rgba(79, 70, 229, 0.08) !important; }
.border-indigo-subtle { border-color: rgba(79, 70, 229, 0.25) !important; }
.text-purple { color: var(--accent-purple) !important; }
.bg-purple-subtle { background-color: rgba(124, 58, 237, 0.08) !important; }

/* Container */
.container-finchbyte {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3.5vw, 40px);
  padding-right: clamp(16px, 3.5vw, 40px);
}

/* Buttons */
.btn-finch-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-accent), var(--accent-purple));
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.btn-finch-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.42);
  color: #ffffff !important;
}

.btn-finch-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--text-main) !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.btn-finch-secondary:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}

/* --------------------------------------------------------------------------
   03. HIGH-CONTRAST CATEGORY BADGES SYSTEM
   Always Solid White Fill (#ffffff) for 100% Pop & Readability Over Any BG
   -------------------------------------------------------------------------- */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ffffff !important;
  color: #4338ca !important;
  border: 1.5px solid #4f46e5 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.category-badge.badge-indigo {
  background: #ffffff !important;
  color: #4338ca !important;
  border-color: #4f46e5 !important;
}
.category-badge.badge-emerald {
  background: #ffffff !important;
  color: #047857 !important;
  border-color: #059669 !important;
}
.category-badge.badge-blue {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  border-color: #2563eb !important;
}
.category-badge.badge-amber {
  background: #ffffff !important;
  color: #b45309 !important;
  border-color: #d97706 !important;
}
.category-badge.badge-rose {
  background: #ffffff !important;
  color: #be123c !important;
  border-color: #e11d48 !important;
}
.category-badge.badge-cyan {
  background: #ffffff !important;
  color: #0e7490 !important;
  border-color: #06b6d4 !important;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4338ca !important;
  background: #ffffff !important;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid #4f46e5 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.18);
}

/* Scroll Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
  z-index: 1050;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-accent), var(--accent-purple), var(--accent-cyan));
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   04. BLOG LISTING PAGE STYLES
   -------------------------------------------------------------------------- */
.blog-hero-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  text-align: left;
  margin-top: 20px;
  margin-bottom: 24px;
}

.hero-heading {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 1.05rem;
  color: #334155 !important;
  font-weight: 600;
  margin: 10px 0 0;
  line-height: 1.55;
}

.section-divider-line {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 36px 0 28px;
}
.section-divider-line::before,
.section-divider-line::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid rgba(15, 23, 42, 0.14);
}
.section-divider-line span {
  padding: 0 24px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

/* Search Bar */
.search-box-wrapper {
  max-width: 620px;
  margin: 0 auto 32px;
  position: relative;
}
.search-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: var(--transition-fast);
}
.search-input-group:focus-within {
  border-color: var(--primary-accent);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.22);
}
.search-input-group i {
  color: #334155;
  font-size: 1.15rem;
}
.search-input-field {
  border: none;
  outline: none;
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
}
.search-input-field::placeholder {
  color: #64748b;
  font-weight: 500;
}
.search-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  display: none;
  font-size: 1.1rem;
}

/* Category Filter Pills */
.category-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-pill {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  user-select: none;
}
.filter-pill:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-1.5px);
}
.filter-pill.active {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.38);
}

/* Featured Hero Article Card */
.featured-article-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  transition: var(--transition-smooth);
  margin-bottom: 48px;
}
.featured-article-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.14);
  transform: translateY(-3px);
}

.featured-visual-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 300px;
  position: relative;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

/* Author Avatar & Meta Block */
.author-meta-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
}
.author-avatar-img.avatar-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
}
.author-avatar-img.avatar-dark {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
}
.author-avatar-img.avatar-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}
.author-avatar-img.avatar-indigo {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}

.author-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 2px;
}
.author-role {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
}

/* Article Cards Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.blog-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  height: 100%;
}
.blog-card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(79, 70, 229, 0.16);
}

.blog-card-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg-dark);
}

.card-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

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

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #334155 !important;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 10px;
  transition: var(--transition-fast);
}
.blog-card:hover .blog-card-title {
  color: var(--primary-accent);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: #1e293b !important;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Card Read Option Link Button */
.card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #4f46e5 !important;
  background: rgba(79, 70, 229, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: var(--transition-smooth);
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.card-read-link i {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-read-link:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.card-read-link:hover i {
  transform: translateX(4px);
}

/* Sidebar Widgets */
.blog-sidebar-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-title i {
  color: var(--primary-accent);
  font-size: 1.25rem;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
}
.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.trending-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #4338ca;
  line-height: 1;
}
.trending-link {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.38;
  transition: var(--transition-fast);
}
.trending-link:hover {
  color: var(--primary-accent);
}

/* Popular Topics Hashtags */
.topic-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #4338ca !important;
  border: 1.5px solid rgba(79, 70, 229, 0.35);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.08);
  transition: var(--transition-fast);
  text-decoration: none !important;
  user-select: none;
}
.topic-tag:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.32);
}

/* Newsletter Card Widget */
.newsletter-card {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  margin-bottom: 12px;
  outline: none;
}
.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Redesigned Sleek Floating Pagination Bar */
.pagination-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: transparent;
  color: #334155 !important;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.pagination-btn:hover:not(:disabled) {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-accent) !important;
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateY(-1px);
}
.pagination-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.38) !important;
  transform: scale(1.05);
}
.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
  color: #94a3b8 !important;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   05. BLOG DETAIL PAGE STYLES
   Solid White Main Article Paper Card for 100% Text & Tag Contrast
   -------------------------------------------------------------------------- */
.article-header-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px) clamp(20px, 3vw, 24px);
  margin-top: 12px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.article-content-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.05);
}

.breadcrumb {
  margin-bottom: 1rem;
}
.breadcrumb-item {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155 !important;
}
.breadcrumb-item a {
  color: #4f46e5 !important;
  font-weight: 800;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #0f172a !important;
  font-weight: 800;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #64748b !important;
  font-weight: 700;
}

.article-title-main {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.18;
  color: #0f172a;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

.article-lead-subtitle {
  font-size: 1.25rem;
  color: #1e293b !important;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 28px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 0;
  border-top: 1.5px solid var(--border-color);
  border-bottom: none;
  margin-bottom: 0;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: var(--transition-smooth);
  cursor: pointer;
  font-size: 1.05rem;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

/* Authentic Social Media Brand Styles */
.share-btn.btn-x {
  background: #0f172a !important; /* X / Twitter Black */
  color: #ffffff !important;
}
.share-btn.btn-x:hover {
  background: #000000 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35) !important;
}

.share-btn.btn-linkedin {
  background: #0a66c2 !important; /* Official LinkedIn Blue */
  color: #ffffff !important;
}
.share-btn.btn-linkedin:hover {
  background: #004182 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.4) !important;
}

.share-btn.btn-facebook {
  background: #1877f2 !important; /* Official Facebook Blue */
  color: #ffffff !important;
}
.share-btn.btn-facebook:hover {
  background: #0d65d9 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4) !important;
}

.share-btn.btn-whatsapp {
  width: auto;
  padding: 0 18px 0 16px;
  gap: 8px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #25d366 !important; /* Official WhatsApp Green */
  color: #ffffff !important;
}

.share-btn.btn-whatsapp i {
  font-size: 1rem;
}
.share-btn.btn-whatsapp:hover {
  background: #1da851 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4) !important;
}

.share-btn.btn-copy-link {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
}
.share-btn.btn-copy-link:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%) !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4) !important;
}

/* Embedded Call to Action Banner */
.embedded-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%) !important;
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin: 36px 0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
}
.embedded-cta-banner h3 {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 1.5rem;
}
.embedded-cta-banner p,
.article-content-body .embedded-cta-banner p,
.embedded-cta-banner .text-white-80 {
  color: #ffffff !important;
  opacity: 0.95 !important;
  font-weight: 500 !important;
  font-size: 0.95rem;
}
.bg-white-20 {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.text-white-80 {
  color: #ffffff !important;
  opacity: 0.92 !important;
}

.article-featured-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

/* Sticky Table of Contents Sidebar */
.toc-card {
  position: sticky;
  top: 30px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.toc-heading {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
}
.toc-list li {
  margin-bottom: 8px;
}
.toc-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: var(--transition-fast);
  display: block;
  padding: 6px 10px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
}
.toc-link:hover,
.toc-link.active {
  color: var(--primary-accent);
  border-left-color: var(--primary-accent);
  background: rgba(79, 70, 229, 0.08);
  font-weight: 800;
}

/* Article Content Body */
.article-content-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #0f172a;
}

.article-content-body p {
  margin-bottom: 24px;
  color: #1e293b !important;
  font-weight: 500;
}

.article-content-body ol,
.article-content-body ul {
  color: #1e293b !important;
  font-weight: 500;
}
.article-content-body li {
  margin-bottom: 10px;
}
.article-content-body li strong {
  color: #0f172a !important;
  font-weight: 800;
}

.article-content-body h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin: 44px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.article-content-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 32px 0 16px;
}

/* Key Takeaway Callout */
.key-takeaway-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.10));
  border-left: 4px solid var(--primary-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}
.key-takeaway-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quote Callout */
.article-quote {
  border-left: 4px solid var(--accent-purple);
  padding: 18px 26px;
  margin: 32px 0;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: #0f172a;
  background: #f8fafc;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

/* Stats Callout Grid */
.article-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.stat-box-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.stat-num-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-accent);
  line-height: 1.1;
}
.stat-num-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: 6px;
}

/* High Contrast Reaction & Action Buttons */
.btn-action-pill {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: var(--transition-fast);
}
.btn-action-pill:hover,
.btn-action-pill.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* Author Bio Card */
.author-bio-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  margin: 44px 0 0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .featured-article-card {
    padding: 20px;
  }
  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .author-bio-card {
    flex-direction: column;
  }
}

/* ==========================================================================
   STRICT MOBILE-ONLY TYPOGRAPHY & LAYOUT OPTIMIZATIONS (max-width: 767.98px)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* 01. Typography Scale for Mobile Screens */
  h1, .hero-heading, .article-title-main {
    font-size: 28px !important;
    line-height: 1.22 !important;
    letter-spacing: -0.01em !important;
  }
  
  h2, .article-content-body h2 {
    font-size: 23px !important;
    line-height: 1.3 !important;
  }

  h3, .blog-card-title, .blog-card-title a, .article-content-body h3, .sidebar-title, .embedded-cta-banner h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  /* Keep the "Connect With Us" social icons on a single row on mobile */
  .blog-sidebar-card .share-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .blog-sidebar-card .d-flex.flex-wrap.gap-2 {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  body, p, .article-content-body p, .article-content-body li, .blog-card-excerpt, .hero-subtext, .article-lead-subtitle {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  /* Captions, Meta, Small text */
  .card-meta-line, .author-role, .author-name, .fs-8, .card-read-link {
    font-size: 13px !important;
  }
  .fs-9 {
    font-size: 12px !important;
  }

  /* Mobile Tags, Badges & Pills Size Reduction */
  .section-tag {
    font-size: 11px !important;
    padding: 4px 12px !important;
    letter-spacing: 0.04em !important;
  }
  .category-badge {
    font-size: 10.5px !important;
    padding: 3px 9px !important;
    border-radius: 12px !important;
  }
  .topic-tag {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  /* 02. Mobile Card Padding & Layout */
  .container-finchbyte {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .blog-hero-card {
    padding: 22px 16px 18px !important;
    margin-top: 12px !important;
    margin-bottom: 20px !important;
    border-radius: var(--radius-md) !important;
  }

  .hero-top-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
  }
  .hero-social-group {
    margin-top: 4px !important;
    pt-0 !important;
  }

  .hero-bottom-filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding-top: 16px !important;
    margin-top: 14px !important;
  }

  .search-box-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }
  .search-input-group {
    padding: 4px 6px 4px 16px !important;
  }
  .search-input-field {
    font-size: 14px !important;
  }

  /* Filter Pills Edge-to-Edge Touch Scroll Container for Mobile */
  .category-filter-pills {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    width: calc(100% + 32px) !important;
    margin: 4px -16px -6px -16px !important;
    padding: 6px 20px 14px 16px !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .category-filter-pills::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .filter-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  }
  .filter-pill.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
  }

  .section-divider-line {
    margin: 24px 0 20px !important;
  }
  .section-divider-line span {
    font-size: 1.2rem !important;
    padding: 0 16px !important;
  }

  /* Featured Article Mobile Card */
  .featured-article-card {
    padding: 16px !important;
    margin-bottom: 28px !important;
    border-radius: var(--radius-md) !important;
  }
  .featured-visual-container {
    min-height: 180px !important;
  }

  /* Grid & Standard Cards on Mobile */
  .articles-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-bottom: 32px !important;
  }
  .blog-card-body {
    padding: 16px !important;
  }
  .blog-card-title, .blog-card-title a {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }
  .blog-card-footer {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  /* 03. Blog Detail Page Mobile Sections */
  .article-header-card {
    padding: 18px 16px !important;
    margin-top: 8px !important;
    margin-bottom: 20px !important;
    border-radius: var(--radius-md) !important;
  }
  .article-title-main {
    font-size: 28px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .article-content-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-md) !important;
  }

  .article-content-body h2 {
    font-size: 23px !important;
    line-height: 1.3 !important;
    margin-top: 28px !important;
    margin-bottom: 14px !important;
  }
  .article-content-body h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin-top: 22px !important;
    margin-bottom: 10px !important;
  }

  .article-meta-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 14px !important;
  }

  .toc-card {
    position: static !important;
    margin-bottom: 20px !important;
    padding: 16px 14px !important;
    border-radius: var(--radius-md) !important;
  }

  .embedded-cta-banner {
    padding: 22px 16px !important;
    margin: 24px 0 !important;
    text-align: left !important;
    border-radius: var(--radius-md) !important;
  }
  .embedded-cta-banner h3 {
    font-size: 20px !important;
  }
  .embedded-cta-banner .col-md-4 {
    text-align: left !important;
  }
  .embedded-cta-banner .btn-finch-primary {
    width: 100% !important;
    justify-content: center !important;
  }

  .author-bio-card {
    padding: 18px 16px !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    border-radius: var(--radius-md) !important;
  }
}

/* --------------------------------------------------------------------------
   LARAVEL INTEGRATION OVERRIDES
   Filters, pagination and clear-search render as links (not buttons) so the
   page works server-side; these rules give them the button styling.
   -------------------------------------------------------------------------- */
a.filter-pill,
a.pagination-btn,
a.search-clear-btn {
  text-decoration: none;
}

a.filter-pill {
  display: inline-flex;
  align-items: center;
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
  color: #94a3b8 !important;
  box-shadow: none;
}

a.search-clear-btn {
  line-height: 1;
}

/* Rich-text output from the admin editor (Quill) */
.article-content-body .ql-align-center { text-align: center; }
.article-content-body .ql-align-right  { text-align: right; }
.article-content-body .ql-align-justify { text-align: justify; }
.article-content-body .ql-indent-1 { padding-left: 3em; }
.article-content-body .ql-indent-2 { padding-left: 6em; }
.article-content-body .ql-indent-3 { padding-left: 9em; }
.article-content-body .ql-syntax {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.88rem;
  white-space: pre-wrap;
}
.article-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   SOCIAL BRAND STYLES FOR ADMIN-MANAGED PLATFORMS
   The design shipped colours for X, LinkedIn, Facebook and WhatsApp only.
   These cover the remaining platforms available in the Social Links admin,
   plus a neutral default so a newly added platform is never a blank circle.
   -------------------------------------------------------------------------- */

/* Default for any platform without a dedicated brand rule below */
.share-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.share-btn.btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
  color: #ffffff !important;
}
.share-btn.btn-instagram:hover {
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(214, 36, 159, 0.4) !important;
}

.share-btn.btn-threads {
  background: #0f172a !important;
  color: #ffffff !important;
}
.share-btn.btn-threads:hover {
  background: #000000 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35) !important;
}

.share-btn.btn-pinterest {
  background: #e60023 !important;
  color: #ffffff !important;
}
.share-btn.btn-pinterest:hover {
  background: #bd001c !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(230, 0, 35, 0.4) !important;
}

.share-btn.btn-youtube {
  background: #ff0000 !important;
  color: #ffffff !important;
}
.share-btn.btn-youtube:hover {
  background: #cc0000 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4) !important;
}

.share-btn.btn-telegram {
  background: #229ed9 !important;
  color: #ffffff !important;
}
.share-btn.btn-telegram:hover {
  background: #1b82b3 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.4) !important;
}

.share-btn.btn-tiktok {
  background: #010101 !important;
  color: #ffffff !important;
}
.share-btn.btn-tiktok:hover {
  background: #000000 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(1, 1, 1, 0.4) !important;
}

.share-btn.btn-snapchat {
  background: #fffc00 !important;
  color: #0f172a !important;
}
.share-btn.btn-snapchat:hover {
  background: #e6e300 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 252, 0, 0.45) !important;
}

.share-btn.btn-reddit {
  background: #ff4500 !important;
  color: #ffffff !important;
}
.share-btn.btn-reddit:hover {
  background: #d93a00 !important;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 69, 0, 0.4) !important;
}

/* Hover for a platform falling back to the default gradient */
.share-btn:hover {
  transform: translateY(-3px) scale(1.06);
}
