:root {
  --primary: #2563eb;
  --secondary: #0f172a;
  --accent: #f97316;
  --success: #10b981;
  --bg: #f8fafc;
  --dark: #020617;
  --text: #1e293b;
  --gray: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.07);
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% -10%, rgba(37, 99, 235, 0.12), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.12), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

code, pre {
  font-family: "JetBrains Mono", monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 5rem 0;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
}

.premium-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.btn-premium {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(120deg, var(--primary), #1d4ed8);
  color: #fff;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline-premium {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  color: var(--secondary);
  background: transparent;
  font-weight: 600;
}

.factash-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.brand-pill {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.03em;
}

.hero {
  position: relative;
  padding: 7rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.headline {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin: 1rem 0;
}

.sub-headline {
  color: var(--gray);
  max-width: 65ch;
}

.breaking-banner {
  background: linear-gradient(120deg, var(--secondary), #111827);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.floating-dot {
  position: absolute;
  border-radius: 999px;
  animation: floatY 4s ease-in-out infinite;
}

.dot-one {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.2);
  top: 15%;
  right: 6%;
}

.dot-two {
  width: 48px;
  height: 48px;
  background: rgba(249, 115, 22, 0.24);
  top: 45%;
  right: 20%;
}

.meta-chip {
  font-size: 0.83rem;
  color: var(--gray);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.badge-featured,
.badge-trending {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
}

.badge-featured {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.badge-trending {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.blog-card .card-img-top {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1.3rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  min-height: 3rem;
}

.sidebar-widget {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem;
  background: #fff;
}

.sidebar-title {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.toc-sticky {
  position: sticky;
  top: 90px;
}

.progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1080;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress-bar-reading {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.article-body h2, .article-body h3 {
  margin-top: 2.2rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.2rem;
}

.author-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-soft);
}

.footer {
  background: var(--secondary);
  color: rgba(248, 250, 252, 0.92);
}

.footer a {
  color: rgba(248, 250, 252, 0.8);
}

.footer a:hover {
  color: #fff;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.2);
  transition: all 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(37, 99, 235, 0.35);
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  z-index: 1085;
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 35%, #e2e8f0 45%);
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1090;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: none;
}

.newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 1095;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.6);
}

.newsletter-popup .popup-card {
  width: min(560px, 92vw);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 2rem;
}

.modern-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.modern-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(var(--primary), var(--accent));
}

.post-layout {
  padding-top: 2rem;
}

.post-hero {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.post-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.post-content h2 {
  margin-top: 2rem;
}

.post-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 0.65rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.home-v2 {
  background: #f7f9fc;
}

.home-shell-header {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.top-info-bar {
  background: #020617;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.81rem;
  padding: 0.45rem 0;
}

.top-links {
  gap: 1.2rem;
}

.top-links a,
.top-social a {
  color: rgba(248, 250, 252, 0.88);
}

.top-links a:hover,
.top-social a:hover {
  color: #fff;
}

.top-social {
  gap: 0.9rem;
}

.home-v2 .factash-navbar {
  position: static;
  background: #fff;
  border-bottom: 1px solid #e7edf5;
}

.home-shell-header .factash-navbar {
  position: static;
  background: #fff;
  border-bottom: 1px solid #e7edf5;
}

.home-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-size: 2rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  color: #0f172a;
}

.home-logo span {
  color: #2563eb;
}

.home-logo small {
  margin-top: 0.3rem;
  font-size: 0.55rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
}

.home-v2 .nav-link {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.home-shell-header .nav-link {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.home-v2 .nav-link.active {
  color: #2563eb;
}

.home-shell-header .nav-link.active {
  color: #2563eb;
}

.nav-icon-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero-wrap {
  padding-top: 1.6rem;
}

.hero-surface {
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 1rem;
  padding: 0.85rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 0.8rem;
}

.hero-feature-card {
  position: relative;
  min-height: 430px;
  border-radius: 0.9rem;
  overflow: hidden;
}

.hero-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.42));
}

.hero-copy {
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  right: 1.6rem;
  color: #fff;
  z-index: 1;
}

.tiny-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  background: rgba(37, 99, 235, 0.86);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy h1 {
  color: #fff;
  margin: 0.8rem 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.85rem);
  line-height: 1.16;
}

.hero-copy p {
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 0.85rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
}

.hero-side-list {
  display: grid;
  gap: 0.8rem;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.7rem;
  padding: 0.65rem;
  background: #0f172a;
  border-radius: 0.8rem;
  color: #f8fafc;
  min-height: 135px;
}

.hero-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.6rem;
}

.hero-side-card .eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.2rem;
}

.hero-side-card h2 {
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}

.hero-side-card .time {
  margin: 0.42rem 0 0;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.category-chip-ribbon {
  background: #fff;
  border-radius: 0.95rem;
  border: 1px solid #e6ecf4;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.5rem;
}

.category-chip-ribbon a {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: #0f172a;
  font-size: 0.71rem;
  text-align: center;
  font-weight: 600;
}

.category-chip-ribbon i {
  width: 42px;
  height: 42px;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #e0ecff, #f8fafc);
  color: #2563eb;
  font-size: 1.12rem;
}

.section-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-headline h2 {
  font-size: 1.3rem;
  margin: 0;
}

.section-headline h2 i {
  color: #f97316;
  margin-right: 0.25rem;
}

.section-headline a {
  color: #2563eb;
  font-size: 0.86rem;
  font-weight: 700;
}

.mini-pick-card {
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.mini-pick-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.mini-copy {
  padding: 0.8rem;
}

.mini-copy span {
  font-size: 0.62rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.mini-copy h3 {
  font-size: 1rem;
  margin: 0.4rem 0 0.3rem;
  line-height: 1.3;
}

.mini-copy p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.trending-widget {
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 0.95rem;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  height: 100%;
}

.trending-widget h3 {
  font-size: 1.18rem;
  margin-bottom: 1rem;
}

.trending-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.62rem;
  align-items: start;
  margin-bottom: 0.82rem;
}

.trending-list li:last-child {
  margin-bottom: 0;
}

.trending-list span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2ecff;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 700;
}

.trending-list a {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.34;
}

.trending-more {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 700;
}

.latest-feed-list {
  display: grid;
  gap: 0.95rem;
}

.latest-feed-item {
  display: grid;
  grid-template-columns: 190px 1fr 32px;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 0.95rem;
  padding: 0.7rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.latest-feed-item img {
  width: 100%;
  height: 128px;
  border-radius: 0.7rem;
  object-fit: cover;
}

.latest-copy span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.latest-copy h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.33rem 0 0.35rem;
}

.latest-copy p {
  font-size: 0.87rem;
  color: #64748b;
  margin: 0 0 0.35rem;
}

.latest-meta {
  font-size: 0.77rem;
  color: #64748b;
}

.bookmark-ghost {
  border: 0;
  background: transparent;
  color: #94a3b8;
  align-self: center;
}

.follow-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.follow-grid a {
  width: 35px;
  height: 35px;
  border-radius: 999px;
  border: 1px solid #dce4ef;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-strip {
  background: #fff;
  border-radius: 0.95rem;
  border: 1px solid #e6ecf4;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.trust-strip > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.78rem;
  color: #64748b;
}

.trust-strip i {
  width: 28px;
  height: 28px;
  border-radius: 0.5rem;
  background: #e2ecff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-strip strong {
  color: #0f172a;
  display: block;
  margin-bottom: 0.14rem;
}

.trust-strip span {
  display: block;
}

.footer-logo {
  font-size: 1.7rem;
  color: #fff;
}

.footer-logo span {
  color: #60a5fa;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-tags a {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.22rem 0.6rem;
  font-size: 0.74rem;
}

.single-v2 {
  background: #f7f9fc;
}

.single-breadcrumb {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.single-breadcrumb a {
  color: #475569;
}

.single-main-column {
  display: grid;
  gap: 1rem;
}

.single-hero,
.single-cover-box,
.single-toc-box,
.single-article-content,
.single-post-nav,
.single-related {
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 0.95rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.single-hero {
  padding: 1.3rem;
}

.tiny-badge-dark {
  background: #0f172a;
  color: #fff;
}

.single-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 0.4rem 0;
}

.single-sub {
  color: #64748b;
  margin-bottom: 1rem;
}

.single-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.single-author-mini {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.single-author-mini img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.single-author-mini strong {
  font-size: 0.86rem;
}

.single-author-mini p {
  margin: 0;
  font-size: 0.76rem;
  color: #64748b;
}

.single-share-inline {
  display: flex;
  gap: 0.35rem;
}

.social-round {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #dce4ef;
  background: #fff;
  color: #334155;
}

.single-cover-box {
  overflow: hidden;
}

.single-cover-box img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.single-cover-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.8rem;
  border-top: 1px solid #e6ecf4;
}

.single-cover-tools span {
  font-size: 0.73rem;
  color: #334155;
  background: #eef3fb;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.single-toc-box {
  padding: 1rem 1.2rem;
}

.single-toc-box h2 {
  margin-bottom: 0.8rem;
  font-size: 1.08rem;
}

.single-toc-box ol,
.single-toc-box ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #334155;
  columns: 2;
  column-gap: 1.2rem;
}

.single-toc-box li {
  margin-bottom: 0.3rem;
}

.single-article-content {
  padding: 1.3rem;
}

.single-article-content h2,
.single-article-content h3 {
  margin-top: 1.4rem;
}

.single-article-content ul {
  padding-left: 1rem;
}

.single-article-content ul li::marker {
  color: #22c55e;
}

.single-article-content blockquote {
  border-left: 4px solid #2563eb;
  background: #f0f6ff;
  border-radius: 0 0.6rem 0.6rem 0;
  padding: 0.8rem 1rem;
}

.single-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-post-nav a {
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  color: #475569;
  border-right: 1px solid #e6ecf4;
}

.single-post-nav a:last-child {
  border-right: 0;
  text-align: right;
}

.single-post-nav span {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
}

.single-related {
  padding: 1rem;
}

.single-author-box .author-card {
  grid-template-columns: 65px 1fr;
}

.single-author-box .author-avatar {
  width: 65px;
  height: 65px;
}

.single-cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.single-cats-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #334155;
  padding: 0.36rem 0;
}

.single-cats-list span {
  min-width: 32px;
  text-align: center;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
  background: #eef3fb;
  color: #2563eb;
}
