/*
Theme Name:  Computaa
Theme URI:   https://computaa.com
Description: Computaa child theme for GeneratePress — AI & Tech media with deep blue / AI purple design system.
Author:      Computaa
Version:     1.1.0
Template:    generatepress
Tags:        tech, ai, blue, purple, blog
Text Domain: computaa
*/

/* =========================================================
   GOOGLE FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  /* Brand */
  --c-blue:        #1E3A8A;
  --c-blue-600:    #2563EB;
  --c-blue-300:    #93C5FD;
  --c-blue-50:     #EFF6FF;
  --c-purple:      #8B5CF6;
  --c-purple-300:  #C4B5FD;
  --c-purple-50:   #F5F3FF;
  --c-purple-dark: #7C3AED;

  /* Neutral */
  --c-bg:          #F9FAFB;
  --c-white:       #FFFFFF;
  --c-text:        #1F2937;
  --c-text-2:      #374151;
  --c-text-3:      #6B7280;
  --c-text-4:      #9CA3AF;
  --c-border:      #E5E7EB;
  --c-border-2:    #F3F4F6;
  --c-dark:        #111827;

  /* Gradient */
  --grad-brand:    linear-gradient(135deg, #1E3A8A, #8B5CF6);
  --grad-hero:     linear-gradient(135deg, #0F2063 0%, #1E3A8A 50%, #312E81 100%);

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:     0 8px 32px rgba(30,58,138,0.14);
  --shadow-card:   0 4px 20px rgba(30,58,138,0.10);

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-2);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-blue-600); text-decoration: none; }
a:hover { color: var(--c-blue); }

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

/* =========================================================
   LAYOUT SHELL
   ========================================================= */
.ct-main { min-height: 100vh; }

.ct-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.ct-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(249,250,251,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.ct-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.ct-site-title a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.ct-logo-svg { display: block; flex-shrink: 0; }

/* Nav */
.ct-nav { flex: 1; }

.ct-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}

.ct-nav ul li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-3);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.ct-nav ul li a:hover,
.ct-nav ul li.current-menu-item a {
  background: var(--c-blue-50);
  color: var(--c-blue);
}

/* Header right actions */
.ct-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Icon button (search toggle) */
.ct-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ct-icon-btn:hover,
.ct-icon-btn[aria-expanded='true'] {
  background: var(--c-blue-50);
  border-color: var(--c-blue-300);
  color: var(--c-blue);
}

/* Slide-down search bar */
.ct-search-bar {
  border-top: 1px solid var(--c-border);
  background: var(--c-white);
  padding: 12px 24px;
  display: none;
}

.ct-search-bar.is-open { display: block; }

.ct-search-bar-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.ct-search-field {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 16px;
  border: 1.5px solid var(--c-border);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  outline: none;
  background: var(--c-white);
  color: var(--c-text);
  flex: 1;
}

.ct-search-field:focus { border-color: var(--c-blue-300); }

.ct-search-submit {
  padding: 10px 18px;
  background: var(--c-blue);
  border: 1.5px solid var(--c-blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.ct-search-submit:hover { background: var(--c-blue-600); }

/* Mobile hamburger */
.ct-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  cursor: pointer;
  padding: 8px;
}

.ct-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text-2);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.ct-hero {
  background: var(--grad-hero);
  padding: 60px 24px 72px;
  position: relative;
  overflow: hidden;
}

.ct-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(139,92,246,0.15);
  filter: blur(60px);
  pointer-events: none;
}

.ct-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(37,99,235,0.2);
  filter: blur(40px);
  pointer-events: none;
}

.ct-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ct-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.ct-hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  max-width: 600px;
}

.ct-hero-title span {
  background: linear-gradient(90deg, #93C5FD, #C4B5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ct-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

/* Hero search */
.ct-hero-search {
  display: flex;
  gap: 0;
  max-width: 440px;
}

.ct-hero-search-input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--r-md) 0 0 var(--r-md);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  flex: 1;
  backdrop-filter: blur(4px);
}

.ct-hero-search-input::placeholder { color: rgba(255,255,255,0.5); }
.ct-hero-search-input:focus { border-color: rgba(255,255,255,0.4); }

.ct-hero-search-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #1E3A8A, #8B5CF6);
  border: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.ct-hero-search-btn:hover { opacity: 0.9; }

/* =========================================================
   CATEGORY FILTER BAR
   ========================================================= */
.ct-cat-bar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 0 24px;
}

.ct-cat-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ct-cat-bar-inner::-webkit-scrollbar { display: none; }

.ct-cat-btn {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}

.ct-cat-btn:hover,
.ct-cat-btn.active {
  background: var(--c-blue);
  color: #fff;
  border-color: var(--c-blue);
}

/* =========================================================
   SECTION HEADING
   ========================================================= */
.ct-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 36px;
}

.ct-section-heading-bar {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--grad-brand);
  flex-shrink: 0;
}

.ct-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}

/* =========================================================
   FEATURED GRID
   ========================================================= */
.ct-featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

/* =========================================================
   POSTS GRID
   ========================================================= */
.ct-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

/* =========================================================
   POST CARD
   ========================================================= */
.ct-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.ct-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.ct-card a { text-decoration: none; color: inherit; }

.ct-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-border);
  flex-shrink: 0;
}

.ct-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.ct-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E5E7EB, #D1D5DB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-4);
}

.ct-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ct-card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* ── Category badges: base + per-category variants ── */
.ct-cat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-blue-50);
  color: var(--c-blue);
  border: 1px solid var(--c-blue-300);
  font-family: var(--font-body);
  white-space: nowrap;
}

/* AI & 자동화 */
.ct-cat-badge--ai {
  background: var(--c-purple-50);
  color: var(--c-purple-dark);
  border-color: var(--c-purple-300);
}

/* Samsung */
.ct-cat-badge--samsung {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

/* Apple */
.ct-cat-badge--apple {
  background: #F0FDF4;
  color: #15803D;
  border-color: #BBF7D0;
}

/* 스마트폰 */
.ct-cat-badge--mobile {
  background: #FFF7ED;
  color: #C2410C;
  border-color: #FED7AA;
}

/* Gradient "AI 추천" pill */
.ct-cat-badge--gradient {
  background: linear-gradient(135deg, #1E3A8A, #8B5CF6);
  color: #fff;
  border-color: transparent;
}

.ct-new-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--c-blue);
  color: #fff;
}

.ct-ai-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--c-purple);
  color: #fff;
}

.ct-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
  margin-bottom: 6px;
  flex: 1;
}

.ct-card-excerpt {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.6;
  margin-bottom: 10px;
}

.ct-card-date {
  font-size: 11px;
  color: var(--c-text-4);
  font-family: var(--font-body);
}

/* =========================================================
   MAIN FEATURED CARD (big)
   ========================================================= */
.ct-card-main {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.ct-card-main:hover { box-shadow: var(--shadow-lg); }

.ct-card-main .ct-card-thumb { aspect-ratio: 16/9; }

.ct-card-main .ct-card-body { padding: 24px; }

.ct-card-main .ct-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.ct-card-main .ct-card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.ct-card-main-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ct-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-blue);
}

/* =========================================================
   BODY LAYOUT (content + sidebar)
   ========================================================= */
.ct-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.ct-sidebar {
  position: sticky;
  top: 80px;
}

.ct-widget {
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  padding: 20px;
  margin-bottom: 16px;
}

.ct-widget-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 14px;
}

/* Category list */
.ct-cat-list {
  list-style: none;
}

.ct-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border-2);
}

.ct-cat-list li:last-child { border-bottom: none; }

.ct-cat-list a {
  font-size: 13px;
  color: var(--c-text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
  text-decoration: none;
}

.ct-cat-list a:hover { color: var(--c-blue); }

.ct-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-blue);
  flex-shrink: 0;
}

.ct-cat-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--c-blue-50);
  color: var(--c-blue);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Popular posts */
.ct-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border-2);
  text-decoration: none;
  transition: opacity 0.15s;
}

.ct-popular-item:last-child { border-bottom: none; }
.ct-popular-item:hover { opacity: 0.75; }

.ct-popular-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-popular-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
}

.ct-popular-meta {
  font-size: 11px;
  color: var(--c-text-4);
  margin-top: 2px;
}

/* Tags */
.ct-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ct-tag-pill {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  background: var(--c-blue-50);
  color: var(--c-blue-600);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--c-blue-300);
  text-decoration: none;
  transition: background 0.15s;
}

.ct-tag-pill:hover {
  background: var(--c-blue);
  color: #fff;
  border-color: var(--c-blue);
}

/* Newsletter widget */
.ct-newsletter-widget {
  background: var(--grad-brand);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.ct-newsletter-widget::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(139,92,246,0.3);
  filter: blur(20px);
}

.ct-newsletter-widget .ct-widget-title {
  color: #fff;
  position: relative;
}

.ct-newsletter-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 14px;
  position: relative;
}

.ct-newsletter-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  position: relative;
}

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

.ct-btn-subscribe {
  width: 100%;
  padding: 9px;
  background: #fff;
  color: var(--c-blue);
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  position: relative;
}

.ct-btn-subscribe:hover { opacity: 0.9; }

/* =========================================================
   PAGINATION
   ========================================================= */
.ct-pagination {
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
}

.ct-pagination .nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ct-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text-2);
  text-decoration: none;
  transition: all 0.15s;
}

.ct-pagination .page-numbers:hover,
.ct-pagination .page-numbers.current {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.ct-article-header {
  background: var(--grad-hero);
  padding: 56px 24px 44px;
}

.ct-article-header-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ct-article-meta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ct-article-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 800px;
}

.ct-article-byline {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.ct-author-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.ct-author-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.ct-author-name-mini {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.ct-article-date-mini {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* Single layout */
.ct-single-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: start;
}

/* Featured image */
.ct-post-featured-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 36px;
  aspect-ratio: 16/9;
  background: var(--c-border);
}

.ct-post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post content */
.ct-post-content {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-2);
}

.ct-post-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
  cursor: pointer;
}

.ct-post-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  margin: 28px 0 10px;
}

.ct-post-content p { margin-bottom: 20px; }

.ct-post-content ul,
.ct-post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.ct-post-content li { margin-bottom: 6px; }

.ct-post-content blockquote {
  border-left: 3px solid var(--c-purple);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--c-purple-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--c-text);
}

.ct-post-content pre,
.ct-post-content code {
  font-family: var(--font-mono);
  font-size: 13px;
}

.ct-post-content code {
  background: var(--c-purple-50);
  color: var(--c-purple-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

.ct-post-content pre {
  background: var(--c-dark);
  color: var(--c-blue-300);
  padding: 20px 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin-bottom: 24px;
  line-height: 1.7;
}

.ct-post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.ct-post-content img {
  border-radius: var(--r-md);
  margin: 20px 0;
}

.ct-post-content a {
  color: var(--c-blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Lead paragraph (18px + purple left border) */
.ct-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-text-2);
  font-weight: 400;
  margin-bottom: 24px;
  border-left: 3px solid var(--c-purple);
  padding-left: 20px;
}

/* Callout box */
.ct-callout {
  background: var(--c-purple-50);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--c-purple);
}

.ct-callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-purple-dark);
  margin-bottom: 6px;
}

.ct-callout p {
  font-size: 14px;
  color: #4C1D95;
  line-height: 1.65;
  margin: 0;
}

/* Post tags */
.ct-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}

/* Author box */
.ct-author-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  margin-top: 40px;
}

.ct-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.ct-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ct-author-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}

.ct-author-bio {
  font-size: 14px;
  color: var(--c-text-3);
  line-height: 1.6;
}

/* Post navigation */
.ct-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.ct-post-nav-item {
  padding: 16px 20px;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ct-post-nav-item:hover {
  border-color: var(--c-blue-300);
  box-shadow: var(--shadow-md);
}

.ct-post-nav-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text-4);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ct-post-nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

/* =========================================================
   TABLE OF CONTENTS (sidebar)
   ========================================================= */
.ct-toc-list { list-style: none; }

.ct-toc-item {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--c-text-3);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.ct-toc-item:hover,
.ct-toc-item.is-active {
  background: var(--c-blue-50);
  color: var(--c-blue);
  border-left-color: var(--c-blue);
  font-weight: 600;
}

.ct-toc-item--h3 {
  padding-left: 24px;
  font-size: 11px;
}

/* =========================================================
   RELATED POST (horizontal)
   ========================================================= */
.ct-related-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border-2);
  text-decoration: none;
  transition: opacity 0.15s;
}

.ct-related-item:last-child { border-bottom: none; }
.ct-related-item:hover { opacity: 0.75; }

.ct-related-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-border);
  flex-shrink: 0;
}

.ct-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-related-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.35;
}

.ct-related-meta {
  font-size: 11px;
  color: var(--c-text-4);
  margin-top: 3px;
}

/* =========================================================
   ARCHIVE / SEARCH HEADER
   ========================================================= */
.ct-archive-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 36px 24px;
}

.ct-archive-header-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.ct-archive-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 8px;
}

.ct-archive-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}

.ct-archive-desc {
  margin: 8px 0 0;
  color: var(--c-text-3);
  font-size: 14px;
}

/* =========================================================
   NOT FOUND
   ========================================================= */
.ct-not-found {
  text-align: center;
  padding: 80px 24px;
}

.ct-not-found-code {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.ct-footer {
  background: var(--c-dark);
  padding: 40px 24px;
}

.ct-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ct-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.ct-footer-nav {
  display: flex;
  gap: 24px;
}

.ct-footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.ct-footer-nav a:hover { color: rgba(255,255,255,0.8); }

.ct-footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comment-form input,
.comment-form textarea {
  font-family: var(--font-body);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--c-blue-300);
}

.comment-form .submit {
  background: var(--c-blue);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.comment-form .submit:hover { background: var(--c-blue-600); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .ct-featured-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .ct-body,
  .ct-single-body {
    grid-template-columns: 1fr;
    padding: 0 24px 48px;
  }

  .ct-sidebar { position: static; }
}

@media (max-width: 768px) {
  /* Show hamburger, hide nav */
  .ct-nav-toggle { display: flex; }
  .ct-nav { display: none; }
  .ct-nav.is-open {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: 12px 24px;
    z-index: 190;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .ct-nav.is-open ul {
    flex-direction: column;
    gap: 2px;
  }
  .ct-nav.is-open ul li a {
    display: block;
    padding: 10px 12px;
  }
  .ct-header-wrap { position: sticky; }
}

@media (max-width: 600px) {
  .ct-hero-title { font-size: 30px; letter-spacing: -1px; }

  .ct-hero-search { max-width: 100%; }

  .ct-featured-grid {
    grid-template-columns: 1fr;
  }

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

  .ct-posts-grid {
    grid-template-columns: 1fr;
  }

  .ct-post-nav {
    grid-template-columns: 1fr;
  }

  .ct-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .ct-article-title { font-size: 26px; }
}
