/*
Theme Name: YMC Blog
Theme URI: https://ymc.dev
Author: YMC-Tech
Author URI: https://ymc.dev
Description: YMC-Tech kurumsal blog teması - ERP, CRM, Otomasyon ve Kurumsal Yazılım içerikleri için optimize edilmiştir.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ymc-blog
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #050505;
  --bg2: #0A0A0B;
  --bg3: #111113;
  --bg4: #1A1A1C;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.03);
  --text: #F5F0EB;
  --muted: rgba(245, 240, 235, 0.50);
  --faint: rgba(245, 240, 235, 0.20);
  --blue: #F04E23;
  --blue2: #FF6B3D;
  --purple: #C43B17;
  --grad: linear-gradient(135deg, #F04E23 0%, #C43B17 100%);
  --grad-r: linear-gradient(135deg, #C43B17 0%, #F04E23 100%);
  --glass: rgba(255, 255, 255, 0.025);
  --glass-b: rgba(255, 255, 255, 0.06);
  --shadow: 0 2px 40px rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 12px rgba(0, 0, 0, .4);
  --r: 10px;
  --r2: 16px;
  --nav-h: 68px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="light"] {
  --bg: #FBF8F5;
  --bg2: #F3EDE7;
  --bg3: #EAE2DA;
  --bg4: #DED4CA;
  --border: rgba(26, 18, 12, 0.08);
  --border2: rgba(26, 18, 12, 0.04);
  --text: #1A1210;
  --muted: rgba(26, 18, 16, 0.55);
  --faint: rgba(26, 18, 16, 0.22);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-b: rgba(26, 18, 12, 0.08);
  --shadow: 0 2px 40px rgba(26, 18, 12, .10);
  --shadow-sm: 0 1px 12px rgba(26, 18, 12, .06);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue2);
}

.body-sm {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.disp-serif {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--blue2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.6rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .35s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: 0 2px 16px rgba(240, 78, 35, .25), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 78, 35, .35), 0 0 0 1px rgba(255, 255, 255, .1) inset;
}

.btn-primary .btn-arrow {
  display: inline-block;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-b);
  color: var(--text);
  overflow: hidden;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s ease;
}

.btn-ghost span {
  position: relative;
  z-index: 1;
}

.btn-ghost:hover {
  border-color: rgba(240, 78, 35, .3);
  color: #fff;
}

.btn-ghost:hover::before {
  opacity: .15;
}

[data-theme="light"] .btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: .9rem 2.2rem;
  font-size: .95rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
}

.chip-blue {
  border-color: rgba(240, 78, 35, .3);
  background: rgba(240, 78, 35, .08);
  color: var(--blue2);
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(240, 78, 35, .3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: padding .55s cubic-bezier(.22, 1, .36, 1);
}

#nav.scrolled {
  padding: 10px 1rem 0;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-radius: 0;
  border: 1px solid transparent;
  transition: max-width .55s cubic-bezier(.22, 1, .36, 1), background .55s cubic-bezier(.22, 1, .36, 1), border-radius .55s cubic-bezier(.22, 1, .36, 1), border-color .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s cubic-bezier(.22, 1, .36, 1), padding .55s cubic-bezier(.22, 1, .36, 1);
}

#nav.scrolled .nav-inner {
  max-width: 1060px;
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-radius: 100px;
  border-color: rgba(255, 255, 255, .04);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  padding: 0 1.5rem;
}

[data-theme="light"] #nav.scrolled .nav-inner {
  background: rgba(251, 248, 245, .82);
  border-color: rgba(26, 18, 12, .06);
  box-shadow: 0 8px 40px rgba(26, 18, 12, .08), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}

.nav-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 20%, rgba(240, 78, 35, .5) 35%, rgba(255, 107, 61, .7) 50%, rgba(196, 59, 23, .5) 65%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .6s ease;
  animation: rotateBorder 5s linear infinite;
  pointer-events: none;
}

#nav.scrolled .nav-inner::before {
  opacity: 1;
}

@keyframes rotateBorder {
  to {
    --border-angle: 360deg;
  }
}

.nav-inner::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 15%;
  right: 15%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(240, 78, 35, .1) 0%, transparent 70%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

#nav.scrolled .nav-inner::after {
  opacity: 1;
}

[data-theme="light"] #nav.scrolled .nav-inner::after {
  background: radial-gradient(ellipse at center, rgba(240, 78, 35, .06) 0%, transparent 70%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  position: relative;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.nav-logo:hover {
  transform: scale(.97);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 90px;
  height: auto;
}

.logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li+li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--faint);
  transition: opacity .3s ease;
}

.nav-links a {
  position: relative;
  display: block;
  padding: .5rem 1.15rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 2rem;
  background: radial-gradient(circle at 50% 50%, rgba(240, 78, 35, .1) 0%, transparent 70%);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .3s cubic-bezier(.22, 1, .36, 1), left .3s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 0 8px rgba(240, 78, 35, .25);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 50%;
  left: 25%;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  transition: all .25s ease, transform .15s ease;
}

.toggle-btn:hover {
  color: var(--text);
  border-color: rgba(240, 78, 35, .2);
  background: rgba(240, 78, 35, .05);
  box-shadow: 0 0 16px rgba(240, 78, 35, .06);
}

.toggle-btn:active {
  transform: scale(.9);
}

.lang-btn {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}

#hero-blog {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

#hero-blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(240, 78, 35, .08) 0%, transparent 55%), radial-gradient(ellipse 60% 70% at 80% 80%, rgba(196, 59, 23, .06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-blog-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-blog-inner .h1 {
  margin-bottom: 1rem;
}

.hero-blog-inner p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-search {
  max-width: 500px;
  margin: 2rem auto 0;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.blog-search input:focus {
  border-color: var(--blue);
}

.blog-search input::placeholder {
  color: var(--muted);
}

.blog-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 18px;
  height: 18px;
}

.blog-categories {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.blog-categories a {
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
}

.blog-categories a:hover,
.blog-categories a.active {
  background: rgba(240, 78, 35, .1);
  border-color: rgba(240, 78, 35, .3);
  color: var(--blue2);
}

#posts {
  padding: 3rem 0 5rem;
  position: relative;
}

#posts::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 30% 70%, rgba(196, 59, 23, .03) 0%, transparent 70%);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.posts-grid .post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.post-card:hover {
  border-color: rgba(240, 78, 35, .15);
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .15);
}

.post-card:hover::before {
  opacity: .03;
}

.post-thumb {
  overflow: hidden;
  background: var(--bg2);
  position: relative;
  display: block;
  flex-shrink: 0;
}

.post-thumb img {
  width: 100% !important;
  height: auto !important;
  display: block;
  transition: transform .5s ease;
}

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

.post-content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.post-category {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue2);
}

.post-date {
  font-size: .75rem;
  color: var(--faint);
}

.post-content .h3 {
  margin-bottom: .75rem;
  line-height: 1.4;
  font-size: 1.1rem;
}

.post-content .h3 a:hover {
  color: var(--blue2);
}

.post-excerpt {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.post-footer .btn-primary {
  background: none;
  box-shadow: none;
  color: var(--blue2);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem 0;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .3s ease;
}

.post-footer .btn-primary::after {
  content: '→';
  display: inline-block;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  font-size: 1rem;
}

.post-footer .btn-primary:hover {
  color: var(--blue);
  transform: none;
  box-shadow: none;
  gap: .6rem;
}

.post-footer .btn-primary:hover::after {
  transform: translateX(4px);
}

.post-author {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.post-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-name {
  font-size: .8rem;
  font-weight: 500;
}

.post-read-time {
  font-size: .75rem;
  color: var(--faint);
}

.post-card.featured {
  grid-column: span 1;
}

.post-card.featured .post-content {
  padding: 1.5rem;
}

.post-card.featured .h3 {
  font-size: 1.2rem;
}

#single-post {
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

.single-header {
  text-align: center;
  margin-bottom: 3rem;
}

.single-header .post-category {
  margin-bottom: 1rem;
}

.single-header .h1,
.single-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
  color: var(--text);
}

.single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
}

.single-meta span {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.single-meta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.single-featured-image {
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 .75rem;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: .5rem;
  color: var(--muted);
  line-height: 1.7;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg2);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
}

.article-content blockquote p {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}

.article-content code {
  background: var(--bg4);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  font-family: 'Fira Code', monospace;
}

.article-content pre {
  background: var(--bg4);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content img {
  border-radius: var(--r);
  margin: 2rem auto;
}

.article-content a {
  color: var(--blue2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--blue);
}

.toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.toc ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc li {
  margin-bottom: .5rem;
}

.toc a {
  color: var(--muted);
  font-size: .95rem;
  transition: color var(--transition);
}

.toc a:hover {
  color: var(--blue2);
}

.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  margin: 3rem 0;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info .h4 {
  margin-bottom: .25rem;
}

.author-info .label {
  margin-bottom: .75rem;
}

.author-info p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.post-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-tags a {
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
}

.post-tags a:hover {
  background: rgba(240, 78, 35, .1);
  border-color: rgba(240, 78, 35, .3);
  color: var(--blue2);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.post-share span {
  font-size: .85rem;
  color: var(--muted);
}

.post-share a {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
}

.post-share a:hover {
  background: rgba(240, 78, 35, .1);
  border-color: rgba(240, 78, 35, .3);
  color: var(--blue2);
}

.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-posts .h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  font-size: .9rem;
  font-weight: 500;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: rgba(240, 78, 35, .1);
  border-color: rgba(240, 78, 35, .3);
  color: var(--blue2);
}

#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 0 0 2rem;
  position: relative;
}

#footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.footer-cta {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(240, 78, 35, .06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-cta-inner {
  position: relative;
  z-index: 1;
}

.footer-cta .label {
  margin-bottom: .75rem;
}

.footer-cta .h2 {
  margin-bottom: .75rem;
}

.footer-cta p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.footer-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--border) 30%, var(--border) 70%, transparent 95%);
}

.footer-main {
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 1.5rem;
}

.social-row {
  display: flex;
  gap: .6rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  border: 1px solid var(--border);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);
}

.social-btn:hover {
  color: var(--text);
  border-color: var(--blue2);
  background: rgba(240, 78, 35, .08);
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col ul a {
  font-size: .9rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: .82rem;
  color: var(--faint);
}

.footer-sig {
  font-size: .82rem;
  color: var(--faint);
  font-family: 'Outfit', sans-serif;
  letter-spacing: .04em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: .08s;
}

.d2 {
  transition-delay: .16s;
}

.d3 {
  transition-delay: .24s;
}

.d4 {
  transition-delay: .32s;
}

.d5 {
  transition-delay: .4s;
}

#back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

#back-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-top:hover {
  background: rgba(240, 78, 35, .1);
  border-color: rgba(240, 78, 35, .3);
  color: var(--blue2);
  transform: translateY(-2px);
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .post-card.featured {
    grid-column: span 2;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-cta {
    padding: 3rem 0;
  }
}

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

  .post-card.featured {
    grid-column: span 1;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  .footer-cta {
    padding: 2.5rem 0;
  }

  .footer-cta .h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .footer-cta p {
    font-size: .9rem;
  }

  .footer-main {
    padding: 2.5rem 0 0;
  }

  .footer-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-cta-actions .btn {
    justify-content: center;
  }

  .btn-lg {
    padding: .75rem 1.5rem;
    font-size: .9rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .single-meta {
    flex-direction: column;
    gap: .5rem;
  }

  .blog-categories {
    justify-content: flex-start;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

/* Blog Grid Responsive */
@media (max-width: 992px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}