/* ============================================================
   Gamze Eğitmen — Premium Design System
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Varsayılan gökyüzü mavisi — Site ayarları > Ana tema rengi ile ezilir */
  --accent:         #0284c7;
  --accent-hover:   #0369a1;
  --accent-light:   #0ea5e9;
  --accent-bright:  #38bdf8;
  --accent-deep:    #075985;
  --accent-rgb:     2, 132, 199;
  --accent-glow:    rgba(2, 132, 199, 0.32);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --dur:        160ms;
  --dur-slow:   300ms;

  --r-xs:   3px;
  --r-sm:   6px;
  --r:      8px;
  --r-md:   12px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Üst navigasyon: .navbar-inner 58px + alt border 1px (mobil fixed offset ile aynı) */
  --navbar-bar-h: 59px;
}

/* ── Light Theme ─────────────────────────────────────────────── */
:root, [data-theme="light"] {
  --bg:            #f6f8fa;
  --bg-secondary:  #eef0f3;
  --bg-tertiary:   #e8eaed;
  --bg-card:       #ffffff;
  --bg-hover:      #f0f2f5;
  --bg-input:      #ffffff;

  --border:        #dde1e7;
  --border-light:  #ebedf0;
  --border-focus:  rgba(var(--accent-rgb), 0.5);

  --text:          #0d1117;
  --text-secondary:#4a5568;
  --text-muted:    #9ca3af;
  --text-on-dark:  #ffffff;

  --nav-bg:        rgba(255,255,255,0.92);
  --code-bg:       #f6f8fa;
  --input-border:  #c9d1d9;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 8px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.05);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

/* ── Dark Theme ──────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:            #0a0a0f;
  --bg-secondary:  #0f0f16;
  --bg-tertiary:   #15151e;
  --bg-card:       #121218;
  --bg-hover:      #1a1a24;
  --bg-input:      #121218;

  --border:        #1e1e2a;
  --border-light:  #191925;
  --border-focus:  rgba(var(--accent-rgb), 0.45);

  --text:          #f0f0fa;
  --text-secondary:#9494b0;
  --text-muted:    #55556e;
  --text-on-dark:  #ffffff;

  --nav-bg:        rgba(10,10,15,0.90);
  --code-bg:       #0f0f16;
  --input-border:  #252535;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow:    0 4px 8px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.6);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.7);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* clip, bazı tarayıcılarda position:sticky için kaydırma kutusunu bozar; hidden yatay taşmayı da keser */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  /* Sabit üst çubuk (.navbar) için — tüm genişlikler / mobil Safari dahil */
  padding-top: calc(var(--navbar-bar-h) + env(safe-area-inset-top, 0px));
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-light); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ──────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(1.875rem, 4.5vw, 2.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p  { color: var(--text-secondary); line-height: 1.75; }

.text-sm    { font-size: 0.8125rem; }
.text-xs    { font-size: 0.75rem; }
.text-muted { color: var(--text-muted) !important; }
.font-bold  { font-weight: 700; }
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm { max-width: 840px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 600px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar: içerik taşmasında sağdaki butonların kenara yapışmasını önle + güvenli alan */
.navbar > .container {
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

/* ── ══════════════════════════════════════════════════════
   NAVBAR  (viewport’a sabit — sticky mobil/tablette güvenilir değil)
   ══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 9998;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
  /* iOS: bazen fixed bar kaydırırken “akıyor”; ayrı katman */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 1rem;
  min-width: 0;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.navbar-logo-text {
  min-width: 0;
}

.logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.8125rem; font-weight: 900;
  box-shadow: 0 2px 8px var(--accent-glow);
  flex-shrink: 0;
  letter-spacing: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  padding: 0.3125rem 0.6875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav a:hover { color: var(--text); background: var(--bg-hover); }
.navbar-nav a.active { color: var(--accent); font-weight: 600; background: rgba(var(--accent-rgb),0.08); }

.navbar-categories-dropdown {
  flex-shrink: 0;
}
.navbar-nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3125rem 0.6875rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.navbar-nav-dropdown-btn:hover,
.navbar-nav-dropdown-btn.is-active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.08);
}
.navbar-nav-dropdown-btn .chevron {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}
.navbar-categories-dropdown.open .navbar-nav-dropdown-btn .chevron {
  transform: rotate(180deg);
}
.navbar-categories-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  transform-origin: top center;
  min-width: 220px;
  max-width: min(320px, 92vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
}
.navbar-categories-dropdown.open .navbar-categories-menu {
  transform: translateX(-50%) translateY(0) scale(1);
}
.navbar-categories-menu a.is-active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.08);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  flex-shrink: 0;
}

/* ── Search ──────────────────────────────────────────────────── */
.search-form { position: relative; display: flex; align-items: center; }

.search-input {
  width: 190px;
  height: 32px;
  padding: 0 0.75rem 0 2rem;
  font-size: 0.8125rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text);
  outline: none;
  transition: all var(--dur) var(--ease);
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.10);
  width: 230px;
}

.search-icon { position: absolute; left: 0.5rem; color: var(--text-muted); pointer-events: none; display: flex; align-items: center; justify-content: center; }

.tb-svg { flex-shrink: 0; vertical-align: middle; }
.tb-svg--muted { color: var(--text-muted); opacity: 0.85; }

.tb-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
}
.tb-meta .tb-svg { opacity: 0.75; }

.section-title-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title-accent::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(var(--accent-rgb), 0.35) 100%);
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.empty-state-icon .tb-svg { width: 28px; height: 28px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition:
    background 0.25s var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.2s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.25;
  letter-spacing: -0.02em;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.32), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

/* Birincil: hafif gradient + üst parlama + gölgeli derinlik */
.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 48%, var(--accent-hover) 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 2px 4px rgba(var(--accent-rgb), 0.22),
    0 6px 16px rgba(var(--accent-rgb), 0.18);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-light) 42%, var(--accent-deep) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 4px 8px rgba(var(--accent-rgb), 0.28),
    0 12px 28px rgba(var(--accent-rgb), 0.26);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1) inset,
    0 2px 8px rgba(var(--accent-rgb), 0.22);
}

[data-theme="dark"] .btn-primary {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 22px rgba(var(--accent-rgb), 0.38);
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 14px 32px rgba(var(--accent-rgb), 0.42);
}

/* İkincil: yüzey + ince derinlik */
.btn-secondary {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-xs), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
[data-theme="dark"] .btn-secondary {
  box-shadow: var(--shadow-xs), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.btn-secondary:hover {
  background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-tertiary) 100%);
  border-color: rgba(var(--accent-rgb), 0.42);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

/* Hayalet: düz; hover’da hafif dolgu ve çerçeve */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.14);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--r);
  gap: 0.375rem;
}
.btn-lg {
  padding: 0.6875rem 1.625rem;
  font-size: 0.9375rem;
  border-radius: var(--r-lg);
}
.btn-xl {
  padding: 0.875rem 1.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-full);
  min-height: 2.875rem;
  letter-spacing: -0.025em;
}
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: var(--r-md); }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}

.card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-body   { padding: 1.25rem; }
.card-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border-light); }

/* ── Post Cards ──────────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}

.post-card:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.post-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.post-card-thumb-placeholder {
  width: 100%; height: 100%; min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.14), var(--bg-tertiary));
  color: rgba(var(--accent-rgb), 0.42);
}
.post-card-thumb-placeholder .tb-svg { width: 2.25rem; height: 2.25rem; opacity: 0.55; }

.sidebar-post-thumb-placeholder,
.search-result-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), var(--bg-tertiary));
  color: rgba(var(--accent-rgb), 0.38);
}
.sidebar-post-thumb-placeholder .tb-svg { width: 1.35rem; height: 1.35rem; opacity: 0.55; }
.search-result-thumb-placeholder .tb-svg { width: 1.25rem; height: 1.25rem; opacity: 0.55; }

.post-card-cat {
  position: absolute;
  top: 0.625rem; left: 0.625rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem; font-weight: 700;
  border-radius: var(--r-full);
  color: white;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-card-body {
  padding: 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.post-card-title:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6875rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
  min-width: 0;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.author-mini img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-mini span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.post-meta-right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}

/* Kart altı: istatistikler tek satır */
.course-card-meta .content-engagement--card,
.course-card-meta .content-engagement--compact {
  flex-wrap: nowrap;
  gap: 0.35rem 0.45rem;
}
.course-card-meta .content-engagement__item {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.6875rem;
  gap: 0.2rem;
}
.course-card-meta .content-engagement__item .tb-svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── Featured Post ───────────────────────────────────────────── */
.featured-post {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  min-height: 300px;
  display: block;
  box-shadow: var(--shadow-lg);
}

.featured-post > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.featured-post:hover > img { transform: scale(1.03); }

.featured-post--no-hero-media {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.32), var(--bg-elevated) 48%, var(--bg-tertiary));
}

.featured-side-img-placeholder {
  width: 100%; height: 100%; min-height: 68px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), var(--bg-tertiary));
  color: rgba(var(--accent-rgb), 0.38);
}
.featured-side-img-placeholder .tb-svg { width: 1.25rem; height: 1.25rem; opacity: 0.55; }

.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.10) 100%);
}

.featured-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.25rem 2rem 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}

.featured-content__intro {
  transform: translateY(-0.65rem);
  margin-bottom: 0.125rem;
}

.featured-content .category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem; font-weight: 700;
  border-radius: var(--r-full);
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-content h2 {
  font-size: clamp(1.125rem, 2.25vw, 1.625rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.featured-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 580px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Featured side item */
.featured-side-item {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
}
.featured-side-item:hover { border-color: rgba(var(--accent-rgb),0.3); box-shadow: var(--shadow); transform: translateX(2px); }

.featured-side-img { width: 88px; min-height: 68px; flex-shrink: 0; overflow: hidden; }
.featured-side-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.featured-side-item:hover .featured-side-img img { transform: scale(1.05); }

.featured-side-info { padding: 0.625rem 0.75rem 0.625rem 0; flex: 1; min-width: 0; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(var(--accent-rgb), 0.10) 0%,
    rgba(var(--accent-rgb), 0.03) 45%,
    transparent 70%);
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-title {
  margin: 0 auto 1rem;
  max-width: 720px;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

[data-theme="dark"] .hero-title {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  font-weight: 400;
  text-align: center;
}

.hero-lead.post-content p:last-child {
  margin-bottom: 0;
}

.hero--has-media {
  padding-top: 3.5rem;
}

.hero-media {
  max-width: 880px;
  margin: 0 auto 2rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #20bd5a;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #20bd5a;
  border-color: #1da851;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp .tb-svg,
.btn-whatsapp .tb-svg--whatsapp {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  display: block;
  color: #fff;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* ── Sections ────────────────────────────────────────────────── */
.section    { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-lg { padding: 5rem 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header h2 { margin: 0; }

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3125rem;
}

.section-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }

/* ── Grid Layouts ────────────────────────────────────────────── */
.posts-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.posts-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.125rem; }
.posts-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.posts-grid > *,
.posts-grid-2 > *,
.posts-grid-4 > *,
.courses-grid > *,
.featured-layout > *,
.popular-newsletter-grid > *,
.content-sidebar-grid > *,
.course-detail-grid > * {
  min-width: 0;
}
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }

.featured-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.125rem; align-items: start; }
.featured-side   { display: flex; flex-direction: column; gap: 0.625rem; }

.popular-newsletter-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }

.content-sidebar-grid { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; }
.course-detail-grid   { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }

/* ── Form Grid (responsive-safe) ─────────────────────────────── */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Course Card ─────────────────────────────────────────────── */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.course-card:hover { border-color: rgba(var(--accent-rgb),0.25); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.course-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.04); }

.course-level-badge {
  position: absolute;
  top: 0.625rem; right: 0.625rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem; font-weight: 700;
  border-radius: var(--r-full);
  background: rgba(0,0,0,0.65);
  color: white;
  backdrop-filter: blur(6px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.course-body { padding: 1.0625rem; }

.course-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.course-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.course-instructor { display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.75rem; }
.course-instructor img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.course-instructor span { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; }

.course-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.star { color: #f59e0b; }
.star.empty { color: var(--border); }
.course-price { margin-left: auto; font-size: 0.8125rem; font-weight: 700; color: #10b981; }

/* ── Badges / Tags ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--r-full);
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
}
.badge:hover { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); }

.badge-green { background: rgba(16,185,129,0.09); color: #059669; border-color: rgba(16,185,129,0.16); }
.badge-amber { background: rgba(245,158,11,0.09); color: #d97706; border-color: rgba(245,158,11,0.16); }
.badge-red   { background: rgba(239,68,68,0.09);  color: #dc2626; border-color: rgba(239,68,68,0.16); }
.badge-blue  { background: rgba(59,130,246,0.09); color: #2563eb; border-color: rgba(59,130,246,0.16); }

.tags { display: flex; flex-wrap: wrap; gap: 0.3125rem; }

/* ── Category Pills ──────────────────────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
}
.cat-pill:hover { background: var(--bg-hover); color: var(--text); border-color: rgba(var(--accent-rgb),0.3); }
.cat-pill.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 8px var(--accent-glow); }

/* ── Stats Bar ───────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 1.5rem 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1.25rem 0.75rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.3125rem;
}
.stat-label { font-size: 0.6875rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.01em; text-transform: uppercase; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.125rem; }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.widget-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.widget-body { padding: 0.875rem 1rem; }

.sidebar-post { display: flex; gap: 0.625rem; padding: 0.5625rem 0; border-bottom: 1px solid var(--border-light); }
.sidebar-post:last-child { border-bottom: none; }

.sidebar-post-thumb { width: 60px; height: 44px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-post-info h5 {
  font-size: 0.8125rem; font-weight: 600; color: var(--text); line-height: 1.4;
  margin-bottom: 0.1875rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-post-info h5:hover { color: var(--accent); }
.sidebar-post-info span { font-size: 0.6875rem; color: var(--text-muted); }

/* ── Cat widget link ──────────────────────────────────────────── */
.cat-widget-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4375rem 0.5rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--dur) var(--ease);
}
.cat-widget-link:hover { background: var(--bg-hover); color: var(--text); }
.cat-count {
  background: var(--bg-tertiary);
  border-radius: var(--r-full);
  padding: 0 0.4375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Popular Row ──────────────────────────────────────────────── */
.popular-row {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.popular-row:last-child { border-bottom: none; }
.popular-num {
  font-size: 1.375rem; font-weight: 900;
  color: var(--border);
  min-width: 1.875rem; text-align: center;
  letter-spacing: -0.06em; flex-shrink: 0; line-height: 1;
}

/* ── Alerts ───────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 0.625rem;
  padding: 0.75rem 1rem; border-radius: var(--r); font-size: 0.875rem;
  margin-bottom: 1.125rem; border: 1px solid;
  line-height: 1.5;
}
.alert-success { background: rgba(16,185,129,0.07); color: #059669; border-color: rgba(16,185,129,0.18); }
.alert-error   { background: rgba(239,68,68,0.07);  color: #dc2626; border-color: rgba(239,68,68,0.18); }
.alert-warning { background: rgba(245,158,11,0.07); color: #d97706; border-color: rgba(245,158,11,0.18); }
.alert-info    { background: rgba(var(--accent-rgb),0.07); color: var(--accent); border-color: rgba(var(--accent-rgb),0.18); }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; }

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  background: var(--bg-input);
  border: 1.5px solid var(--input-border);
  border-radius: var(--r);
  color: var(--text);
  outline: none;
  transition: all var(--dur) var(--ease);
  line-height: 1.5;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.09); }
textarea.form-control { min-height: 100px; resize: vertical; }

.form-hint  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.75rem; color: #dc2626; margin-top: 0.25rem; }

/* ── Post Single ─────────────────────────────────────────────── */
.post-hero { padding: 2rem 0 1.5rem; }

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

.post-content { font-size: 1rem; line-height: 1.85; color: var(--text-secondary); }

.post-content h2 { margin: 2.25rem 0 0.875rem; color: var(--text); font-size: 1.375rem; }
.post-content h3 { margin: 1.875rem 0 0.75rem; color: var(--text); font-size: 1.125rem; }
.post-content p  { margin-bottom: 1.375rem; }
.post-content ul, .post-content ol { margin: 1.125rem 0 1.125rem 1.5rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4375rem; color: var(--text-secondary); }

.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.125rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.15em 0.4em;
  color: var(--accent);
}
.post-content pre code { background: none; border: none; padding: 0; color: inherit; }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.875rem 1.25rem;
  background: rgba(var(--accent-rgb), 0.04);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-content img {
  border-radius: var(--r-lg);
  width: 100%;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.hero-lead video,
.hero-lead iframe,
.hero-lead .hero-embed-media {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1rem auto;
  border-radius: var(--r-lg);
  background: #000;
  pointer-events: none;
}

.hero-lead video {
  object-fit: cover;
}

.hero-lead iframe,
.hero-lead .hero-embed-media {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  border: none;
}

.hero--compact-top {
  padding-top: 0;
  padding-bottom: 2rem;
}

.hero--compact-top.hero--has-media {
  padding-top: 0;
}

.hero--compact-top .hero-media {
  margin-top: 0;
}

.hero--compact-top .hero-lead {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 880px;
}

.hero--compact-top .hero-lead > p:empty,
.hero--compact-top .hero-lead > p:has(> br:only-child) {
  display: none;
  margin: 0;
}

.hero--compact-top .hero-lead > *:first-child {
  margin-top: 0;
}

.hero--compact-top .hero-lead video,
.hero--compact-top .hero-lead iframe {
  margin: 0 auto;
}

.hero--compact-top .hero-actions {
  margin-top: 1.25rem;
}

/* ── Comments ─────────────────────────────────────────────────── */
.comments-section { padding: 2.5rem 0; }

.comment { display: flex; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--border-light); }
.comment:last-child { border-bottom: none; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.375rem; flex-wrap: wrap; }
.comment-author { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.comment-time { font-size: 0.75rem; color: var(--text-muted); }
.comment-text { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.comment-replies { margin-left: 2.25rem; border-left: 2px solid var(--border-light); padding-left: 1.125rem; margin-top: 0.5rem; }

/* ── Reading Progress ────────────────────────────────────────── */
.reading-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 9999; transition: width 0.1s linear;
}

/* ── Table of Contents ───────────────────────────────────────── */
.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
  margin-bottom: 1.75rem;
}
.toc h4 { font-size: 0.6875rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.toc ul { list-style: none; margin: 0; }
.toc li { padding: 0.125rem 0; }
.toc a { font-size: 0.8125rem; color: var(--text-secondary); transition: color var(--dur) var(--ease); }
.toc a:hover { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 3.5rem 0 1.75rem;
}

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

.footer-brand h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; color: var(--text); }
.footer-brand p  { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.footer-social { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.footer-social a,
.footer-social .footer-social__link {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: #fff;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none;
}
.footer-social a .ig-brand-icon { width: 17px; height: 17px; }
.footer-social__link--wa { background: #25d366; }
.footer-social__link--tg { background: #26a5e4; }
.footer-social__link--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.footer-social__link--fb { background: #1877f2; }
.footer-social a:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.footer-social__link.is-unlinked {
  opacity: 0.72;
  cursor: help;
}
.footer-social__link.is-unlinked:hover {
  filter: none;
  transform: none;
  box-shadow: none;
  opacity: 0.85;
}

.footer-col h4 { font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.875rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.4375rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--dur) var(--ease); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: var(--text-muted);
  gap: 1rem; flex-wrap: wrap;
}

/* ── Newsletter ──────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg,
    rgba(var(--accent-rgb), 0.06) 0%,
    rgba(var(--accent-rgb), 0.02) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: var(--r-xl);
  padding: 2.25rem 1.75rem;
  text-align: center;
}
.newsletter-section h3 { font-size: 1.25rem; margin-bottom: 0.4375rem; }
.newsletter-section p { margin-bottom: 1.25rem; font-size: 0.9375rem; }

.newsletter-form { display: flex; max-width: 380px; margin: 0 auto; gap: 0.4375rem; }
.newsletter-form .form-control { flex: 1; font-size: 0.875rem; }

/* ── Auth ─────────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: var(--bg); }

.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-xl);
}

.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 800; color: var(--text); margin-bottom: 1.75rem; text-decoration: none; letter-spacing: -0.04em; }

.auth-divider { text-align: center; position: relative; margin: 1.125rem 0; color: var(--text-muted); font-size: 0.8125rem; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 1.375rem); height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Theme Toggle ────────────────────────────────────────────── */
.theme-toggle {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-size: 0.875rem;
  position: relative;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text); border-color: var(--accent); }

.theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
[data-theme="dark"] .theme-toggle-icon--moon { display: none; }
[data-theme="dark"] .theme-toggle-icon--sun { display: flex; }
[data-theme="light"] .theme-toggle-icon--moon { display: flex; }
[data-theme="light"] .theme-toggle-icon--sun { display: none; }

/* Mobil üst çubuk: tema yanında eğitimler kısayolu */
.navbar-courses-btn {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.navbar-courses-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--accent);
}
.navbar-courses-btn.is-active {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; margin: 2.25rem 0; }
.pagination ul { display: flex; align-items: center; gap: 0.3125rem; list-style: none; }
.btn-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.btn-page:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-page.active {
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 55%, var(--accent-hover) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.28);
}
.dots { color: var(--text-muted); padding: 0 0.125rem; }

/* ── Mobile Toggle ───────────────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  transition: all var(--dur) var(--ease);
  position: relative;
}
.menu-toggle:hover { background: var(--bg-hover); }

.menu-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.menu-toggle-icon--close { display: none; }
.menu-toggle.is-open .menu-toggle-icon--open { display: none; }
.menu-toggle.is-open .menu-toggle-icon--close { display: flex; }

/* ── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10050;
  padding: 0;
  overflow-y: auto;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}

.mobile-menu-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  transition: all var(--dur) var(--ease);
}
.mobile-menu-close:hover { background: var(--bg-tertiary); }

.mobile-menu-body { flex: 1; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.125rem; }

.mobile-search { position: relative; margin-bottom: 0.75rem; }
.mobile-search input {
  width: 100%; height: 40px;
  padding: 0 1rem 0 2.375rem;
  font-size: 0.9375rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  outline: none;
}
.mobile-search input:focus { border-color: var(--accent); }
.mobile-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); display: flex; align-items: center; justify-content: center; pointer-events: none; }

.mobile-menu-section { font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.09em; padding: 0.625rem 0.5rem 0.25rem; }

.mobile-menu-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

.mobile-menu-body a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text);
  border-radius: var(--r);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.mobile-menu-body a:hover { background: var(--bg-hover); }

.mobile-menu-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Profile ─────────────────────────────────────────────────── */
.profile-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex; gap: 1.75rem; align-items: flex-start;
  margin-bottom: 1.75rem;
}
.profile-avatar { width: 80px; height: 80px; border-radius: var(--r-lg); object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.profile-info { flex: 1; }
.profile-info h1 { margin-bottom: 0.25rem; font-size: 1.5rem; }
.profile-info .username { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.625rem; }
.profile-info .bio { color: var(--text-secondary); max-width: 520px; line-height: 1.7; font-size: 0.875rem; }
.profile-stats { display: flex; gap: 1.75rem; margin-top: 1.125rem; flex-wrap: wrap; }
.profile-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.profile-stat .label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.profile-stat .value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

/* ── Course Single ───────────────────────────────────────────── */
.course-hero { padding: 2.25rem 0; }
.course-sidebar-sticky { position: sticky; top: 74px; }
.course-buy-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.course-buy-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.course-buy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-buy-card--compact .course-buy-body {
  padding: 1.25rem;
}
.course-detail-single {
  max-width: 820px;
  margin: 0 auto;
}
.course-detail-single article {
  min-width: 0;
}
.course-lessons {
  margin-top: 2.5rem;
}
.course-detail-grid article {
  min-width: 0;
}
.course-detail-grid .post-hero {
  margin-bottom: 0.25rem;
}
.course-detail-grid .ig-post-media {
  max-width: 100%;
}
.course-buy-body { padding: 1.25rem; }

.lesson-list { display: flex; flex-direction: column; }
.lesson-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.5625rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.875rem; color: var(--text-secondary); }
.lesson-item:last-child { border-bottom: none; }
.lesson-item .lesson-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; color: var(--text-muted); flex-shrink: 0; }
.lesson-item .lesson-icon.free { background: rgba(16,185,129,0.1); color: #059669; }
.lesson-item .lesson-title { flex: 1; color: var(--text); font-weight: 500; }
.lesson-item .lesson-dur { font-size: 0.6875rem; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }

/* ── Quiz ────────────────────────────────────────────────────── */
.quiz-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.75rem; margin-top: 2rem; }
.quiz-question { margin-bottom: 1.375rem; }
.quiz-question h4 { margin-bottom: 0.75rem; font-size: 0.9375rem; color: var(--text); }
.quiz-options { display: flex; flex-direction: column; gap: 0.3125rem; }
.quiz-option { display: flex; align-items: center; gap: 0.625rem; padding: 0.5625rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all var(--dur) var(--ease); font-size: 0.9375rem; color: var(--text); }
.quiz-option:hover { border-color: var(--accent); background: rgba(var(--accent-rgb),0.04); }
.quiz-option.selected { border-color: var(--accent); background: rgba(var(--accent-rgb),0.07); }
.quiz-option.correct  { border-color: #10b981; background: rgba(16,185,129,0.07); color: #059669; }
.quiz-option.wrong    { border-color: #ef4444; background: rgba(239,68,68,0.07); color: #dc2626; }

/* ── Search ──────────────────────────────────────────────────── */
.search-result-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.search-result-item:last-child { border-bottom: none; }
.search-result-thumb { width: 72px; height: 50px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info h4 { font-size: 0.9375rem; color: var(--text); margin-bottom: 0.3125rem; }
.search-result-info h4:hover { color: var(--accent); }
.search-result-info p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Dropdown ────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  min-width: 192px; z-index: 1001; overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: all 150ms var(--ease-out);
  transform-origin: top right;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.5rem 0.875rem;
  font-size: 0.875rem; color: var(--text-secondary);
  text-decoration: none; background: none; border: none;
  text-align: left; transition: all var(--dur) var(--ease);
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-hover); color: var(--text); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 0.25rem 0; }

.user-menu-btn { display: flex; align-items: center; gap: 0.3125rem; padding: 0.1875rem 0.3125rem; background: none; border: none; cursor: pointer; border-radius: var(--r); transition: background var(--dur) var(--ease); }
.user-menu-btn:hover { background: var(--bg-hover); }
.user-menu-btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.user-menu-btn .chevron { display: flex; align-items: center; color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.dropdown.open .user-menu-btn .chevron { transform: rotate(180deg); }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.125rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Skeleton ────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%); background-size: 400% 100%; animation: skeleton 1.5s ease-in-out infinite; border-radius: var(--r); }
@keyframes skeleton { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ── Toast ───────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0.625rem 1rem; box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; animation: toastIn 0.22s var(--ease-out); max-width: 320px; }
.toast-success { border-color: rgba(16,185,129,0.4); }
.toast-error   { border-color: rgba(239,68,68,0.4); }
@keyframes toastIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:translateX(0); } }

.divider { height: 1px; background: var(--border); margin: 2.5rem 0; }

/* ── ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════ */

/* 1280px */
@media (max-width: 1280px) {
  .posts-grid   { grid-template-columns: repeat(3, 1fr); }
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }

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

  .featured-layout { grid-template-columns: 1fr; }
  .featured-side   { flex-direction: row; flex-wrap: wrap; }
  .featured-side .featured-side-item { flex: 1 1 280px; }

  .popular-newsletter-grid { grid-template-columns: 1fr; gap: 2rem; }

  .content-sidebar-grid { grid-template-columns: 1fr 260px; gap: 2rem; }
  .course-detail-grid   { grid-template-columns: 1fr 300px; gap: 2rem; }

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

  .navbar-nav a { padding: 0.3125rem 0.5625rem; font-size: 0.8125rem; }
}

/* 768px — tablet portrait / mobil */
@media (max-width: 768px) {
  .navbar-nav,
  .search-form { display: none !important; }
  .menu-toggle { display: flex; }
  .navbar-courses-btn { display: flex; }

  /* Mobilde üst çubuk: site adı + butonlar kalsın; yazıları küçült (taşmayı azalt) */
  .navbar-inner {
    gap: 0.5rem;
  }
  .navbar-logo {
    flex: 1 1 0;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    font-size: clamp(0.75rem, 3.2vw, 1rem);
  }
  .navbar-logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: clamp(0.6875rem, 3.6vw, 1rem);
    letter-spacing: -0.05em;
  }
  .navbar-actions {
    flex-shrink: 0;
    gap: 0.25rem;
  }
  .navbar-actions .btn-sm {
    padding: 0.25rem 0.4375rem;
    font-size: 0.6875rem;
  }
  .navbar > .container {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  /* ── Grids ── */
  .posts-grid    { grid-template-columns: repeat(2, 1fr); }
  .posts-grid-2  { grid-template-columns: 1fr; }
  .posts-grid-4  { grid-template-columns: repeat(2, 1fr); }
  .courses-grid  { grid-template-columns: repeat(2, 1fr); }

  .featured-layout { grid-template-columns: 1fr; }
  .featured-side   { flex-direction: column; }
  .featured-side .featured-side-item { flex: none; }

  .featured-post {
    aspect-ratio: 16/11;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .popular-newsletter-grid { grid-template-columns: 1fr; }

  .content-sidebar-grid { grid-template-columns: 1fr; }
  .course-detail-grid   { grid-template-columns: 1fr; }
  .course-sidebar-sticky { position: static; order: -1; }

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

  .section    { padding: 2.25rem 0; }
  .section-lg { padding: 3rem 0; }

  .featured-content {
    padding: 0.875rem 1.125rem 1rem;
    gap: 0.5rem;
  }
  .featured-content__intro {
    transform: translateY(-0.5rem);
  }
  .featured-content h2 {
    font-size: clamp(0.9rem, 5vw, 1.2rem);
    line-height: 1.2;
  }
  .featured-content p { font-size: 0.75rem; -webkit-line-clamp: 3; margin-bottom: 0; }

  .featured-post-meta.course-card-meta--featured .content-engagement__item {
    font-size: 0.6875rem;
  }
  .featured-post-meta.course-card-meta--featured .course-card-meta__author.author-mini img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  .newsletter-form { flex-direction: column; }
  .profile-header  { flex-direction: column; gap: 1.25rem; }

  .form-row-2 { grid-template-columns: 1fr; }

  /* Sidebar non-sticky */
  .sidebar { position: static !important; }
}

/* 640px — phone landscape */
@media (max-width: 640px) {
  .container, .container-sm { padding: 0 0.875rem; }

  .posts-grid    { grid-template-columns: 1fr; }
  .posts-grid-4  { grid-template-columns: 1fr; }
  .courses-grid  { grid-template-columns: 1fr; }
  .featured-side { flex-direction: column; }

  .stats-bar { flex-direction: column; border-radius: var(--r-lg); }
  .stat-item { width: 100%; padding: 1rem; }
  .stat-item + .stat-item::before { top: 0; left: 20%; right: 20%; bottom: auto; width: auto; height: 1px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 0.625rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero--compact-top { padding-top: 0; padding-bottom: 1.5rem; }
  .hero h1 { font-size: 1.875rem; }

  .auth-card { padding: 1.75rem 1.25rem; }
}

/* 480px — phone portrait */
@media (max-width: 480px) {
  .btn-xl { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
  .hero-actions { gap: 0.5rem; }
  .featured-post { min-height: 240px; }
  .profile-stats { gap: 1.125rem; }
  .stat-value { font-size: 1.375rem; }

  .navbar-actions .btn-sm {
    padding: 0.21875rem 0.375rem;
    font-size: 0.625rem;
  }
  .navbar-logo {
    font-size: clamp(0.6875rem, 3.1vw, 0.9375rem);
    gap: 0.3125rem;
  }
  .navbar-logo-text {
    font-size: clamp(0.625rem, 3.35vw, 0.875rem);
  }
  .navbar-logo-img {
    width: 32px;
    height: 32px;
  }
  .logo-icon {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
}

/* ── Share bar (yazı) ───────────────────────────────────────── */
.share-bar {
  margin-top: 2rem;
  padding: 1.25rem 1.375rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.share-bar-head {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}
.share-bar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.share-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--text);
}
.share-btn--fb { color: #1877f2; border-color: rgba(24, 119, 242, 0.35); }
.share-btn--tw { color: #e7e9ea; border-color: rgba(255, 255, 255, 0.12); }
.share-btn--ig { color: #e4405f; border-color: rgba(228, 64, 95, 0.35); }
.share-btn--wa { color: #25d366; border-color: rgba(37, 211, 102, 0.35); }
.share-btn--tg { color: #26a5e4; border-color: rgba(38, 165, 228, 0.35); }
.share-btn--copy { font-family: var(--font-mono); font-size: 0.75rem; }

/* ── Yukarı çık ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  z-index: 100;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.45);
}
.back-to-top--left { left: 1.5rem; right: auto; }
.back-to-top--right { right: 1.5rem; left: auto; }
.back-to-top--circle { border-radius: 50%; width: 2.5rem; height: 2.5rem; padding: 0; }
.back-to-top--square { border-radius: 10px; }
.back-to-top--pill {
  border-radius: 999px;
  min-width: auto;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.back-to-top:hover { transform: translateY(-2px); }

/* ── Sabit WhatsApp (sol alt) ─────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  left: 1.25rem;
  right: auto;
  bottom: 1.25rem;
  z-index: 9990;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.floating-whatsapp:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.floating-whatsapp .tb-svg,
.floating-whatsapp .tb-svg--whatsapp {
  width: 1.625rem;
  height: 1.625rem;
  display: block;
  color: #fff;
}
.floating-whatsapp--left {
  left: 1.25rem;
  right: auto;
}

@media (max-width: 640px) {
  .floating-whatsapp,
  .floating-whatsapp--left {
    left: 1rem;
    right: auto;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
  }
}

/* ── İçerik sonu: fiyat + etkileşim + WhatsApp ───────────────── */
.content-footer-cta {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.content-footer-cta__whatsapp {
  margin-top: -0.35rem;
}
.content-footer-cta:has(.course-price-banner) .content-footer-cta__whatsapp {
  margin-top: 0;
}
.course-price-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.course-price-banner__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.course-price-banner__value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.course-price-banner__value--free {
  color: #10b981;
}
.content-footer-cta__whatsapp {
  display: flex;
  justify-content: flex-start;
}
.content-footer-cta__wa-btn {
  width: 100%;
  max-width: 420px;
  justify-content: center;
}

/* ── Eğitim fiyat rozeti (kart / liste) ───────────────────────── */
.course-price-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--r-full);
  line-height: 1.2;
  white-space: nowrap;
}
.course-price-tag--free {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #10b981;
}
.course-price-tag--paid {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
}
/* Kart altı: solda istatistik + fiyat, sağda eğitmen */
.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.625rem;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}
.course-card-meta.post-card-meta {
  padding-top: 0.6875rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.course-card-meta__left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.course-card-meta__author.author-mini {
  flex: 0 0 auto;
  max-width: 46%;
  margin-left: auto;
  justify-content: flex-end;
  text-align: right;
}
.course-card-meta__author.author-mini span {
  text-align: right;
}
.course-card-meta--no-author .course-card-meta__left {
  flex: 1 1 100%;
}

.course-card-engagement-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: nowrap;
  max-width: 100%;
  min-width: 0;
}
.course-card-engagement-row .content-engagement {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: none;
  flex-wrap: nowrap;
}
.course-price-tag--inline {
  flex: 0 0 auto;
  margin: 0;
}

/* Öne çıkan büyük kart: 1. satır istatistik|fiyat, 2. satır süre|eğitmen */
.featured-post-meta.course-card-meta--featured {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  margin-top: 0.125rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  flex-wrap: nowrap;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.625rem;
  width: 100%;
  flex-wrap: nowrap;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__row--top .course-card-meta__col--stats {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__row--top .course-card-meta__col--stats .content-engagement {
  flex-wrap: nowrap;
  gap: 0.35rem 0.45rem;
  margin: 0;
  padding: 0;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__row--top .course-card-meta__col--price {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__row--bottom .course-card-meta__col--duration {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__row--bottom .course-card-meta__col--author {
  flex: 0 0 auto;
  max-width: 55%;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__author.author-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0;
  justify-content: flex-end;
  min-width: 0;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__author.author-mini img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  position: static;
  inset: auto;
}
.featured-post-meta.course-card-meta--featured .course-card-meta__author.author-mini span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-post-meta.course-card-meta--featured .course-price-tag--featured-main {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
}
.course-price-tag--featured-main {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.course-price-tag--featured-main.course-price-tag--paid {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.course-price-tag--featured-side {
  margin: 0.25rem 0 0.35rem;
}

.popular-row-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-width: 0;
}
.popular-row-meta__cat {
  font-weight: 600;
  flex: 0 0 auto;
  max-width: 28%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popular-row-meta .course-card-meta {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── İçerik istatistikleri (görüntülenme / beğeni / paylaşım) ── */
.content-engagement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.content-engagement__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.content-engagement--card {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.post-card-meta .content-engagement--card {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.content-engagement--hero {
  margin-top: 0.25rem;
}
.content-engagement--on-dark .content-engagement__item {
  color: rgba(255, 255, 255, 0.75);
}
.content-engagement--compact {
  gap: 0.5rem 0.75rem;
}
.content-engagement--compact .content-engagement__item {
  font-size: 0.75rem;
}
.post-meta .content-engagement {
  flex: 1 1 100%;
  margin-top: 0.35rem;
}
@media (min-width: 768px) {
  .post-meta .content-engagement {
    flex: 0 1 auto;
    margin-top: 0;
  }
}
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.btn-like:hover {
  color: var(--accent-light);
  border-color: rgba(var(--accent-rgb), 0.35);
}
.btn-like.is-liked {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
}
.btn-like.is-liked .tb-svg {
  fill: currentColor;
  stroke: currentColor;
}

/* ── Instagram tarzı etkileşim (detay sayfası) ─────────────── */
.ig-post-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
}
.ig-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-actions {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.ig-actions__toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}
.ig-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), color 0.15s, background 0.15s;
}
.ig-actions__btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.ig-actions__btn:active {
  transform: scale(0.92);
}
.ig-actions__btn--like.is-liked {
  color: #ed4956;
}
.ig-actions__btn--like.is-liked .tb-svg {
  fill: #ed4956;
  stroke: #ed4956;
  animation: ig-heart-pop 0.35s var(--ease);
}
.ig-actions__btn--share[aria-expanded="true"] {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
}
.tb-svg--action {
  width: 1.625rem;
  height: 1.625rem;
}
.ig-actions__counts {
  line-height: 1.45;
}
.ig-actions__likes-line {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.ig-actions__likes-line strong {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ig-actions__meta-line {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.ig-actions__dot {
  margin: 0 0.35rem;
  opacity: 0.55;
}
.ig-share-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: ig-panel-in 0.22s var(--ease);
}
.ig-share-panel[hidden] {
  display: none !important;
}
.ig-share-panel__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ig-share-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}
.ig-share-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.ig-share-chip:hover {
  background: var(--bg-hover);
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}
.ig-share-chip__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.ig-brand-icon {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}
.ig-share-chip--wa .ig-share-chip__icon { background: #25d366; }
.ig-share-chip--tg .ig-share-chip__icon { background: #26a5e4; }
.ig-share-chip--tw .ig-share-chip__icon { background: #000; border: 1px solid var(--border); }
.ig-share-chip--fb .ig-share-chip__icon { background: #1877f2; }
.ig-share-chip--ig .ig-share-chip__icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.ig-share-chip--copy .ig-share-chip__icon { background: var(--accent); }

@keyframes ig-heart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
@keyframes ig-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
