/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --blue:        #3b41f4;
  --blue-dark:   #2a2fb5;
  --blue-light:  #eef0ff;
  --orange:      #ff9900;
  --orange-dark: #e68800;
  --gray-100:    #f7f8fc;
  --gray-200:    #ebebf0;
  --gray-400:    #9b9bae;
  --gray-700:    #3d3d4e;
  --gray-900:    #1a1a2e;
  --white:       #ffffff;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:      10px;
  --shadow:      0 2px 16px rgba(59,65,244,0.08);
  --shadow-md:   0 4px 24px rgba(59,65,244,0.13);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo-link { display: flex; align-items: center; }
.site-logo { height: 44px; width: auto; }
.site-title-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}
.hero-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, #6366f1 60%, #8b5cf6 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
}
.hero-gradient::before { display: none; }
.hero-inner {
  position: relative;
  text-align: center;
  color: var(--white);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ── Section header ────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
}
.section-header p {
  color: var(--gray-400);
  margin-top: 8px;
}

/* ── Posts section ─────────────────────────────────────────────── */
.posts-section {
  padding: 60px 0;
  background: var(--gray-100);
}

/* ── Post grid ─────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.posts-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Post card ─────────────────────────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.post-card-image-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-card-image { transform: scale(1.04); }

.post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  margin-top: auto;
}
.read-more {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}
.read-more:hover { color: var(--blue-dark); }

/* ── Pagination ────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  font-size: 0.9rem;
}
.pagination a {
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--blue);
  font-weight: 600;
  transition: all 0.2s;
}
.pagination a:hover,
.pagination-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.pagination-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--blue);
  font-weight: 600;
  transition: all 0.2s;
}
.pagination-info {
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* ── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #5558f5 100%);
  padding: 64px 0;
}
.cta-inner {
  text-align: center;
  color: var(--white);
}
.cta-inner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-inner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 28px;
}

/* ── Post full (single article) ────────────────────────────────── */
.post-full-header {
  background: linear-gradient(135deg, var(--blue) 0%, #5558f5 100%);
  padding: 56px 0 48px;
  color: var(--white);
}
.post-header-inner { max-width: 760px; margin: 0 auto; }
.post-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.post-full-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.post-full-excerpt {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.6;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  opacity: 0.8;
}
.reading-time::before { content: '· '; }

.post-full-image {
  max-height: 480px;
  overflow: hidden;
}
.post-full-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.post-full-content { padding: 48px 0 60px; }
.post-content-inner { max-width: 760px; margin: 0 auto; }

/* ── Article content styles ────────────────────────────────────── */
.gh-content h1, .gh-content h2, .gh-content h3,
.gh-content h4, .gh-content h5, .gh-content h6 {
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.3;
  margin: 2em 0 0.6em;
}
.gh-content h2 { font-size: 1.5rem; }
.gh-content h3 { font-size: 1.2rem; }
.gh-content p { margin-bottom: 1.4em; font-size: 1.05rem; line-height: 1.75; }
.gh-content a { color: var(--blue); text-decoration: underline; }
.gh-content a:hover { color: var(--blue-dark); }
.gh-content ul, .gh-content ol {
  margin: 0 0 1.4em 1.5em;
}
.gh-content li { margin-bottom: 0.4em; font-size: 1.05rem; line-height: 1.7; }
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
  font-size: 0.95rem;
}
.gh-content th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
}
.gh-content td {
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
}
.gh-content tr:nth-child(even) td { background: var(--gray-100); }
.gh-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 16px 20px;
  margin: 1.6em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--blue-dark);
}
.gh-content code {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.gh-content pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.6em;
}
.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.gh-content img {
  border-radius: var(--radius);
  margin: 1.6em auto;
  box-shadow: var(--shadow);
}
.gh-content hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 2.4em 0;
}

/* ── Ghost editor card widths ──────────────────────────────────── */
.gh-content .kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw) * 0.15;
  transform: translateX(calc(50vw - 50%));
  max-width: 1160px;
}
.gh-content .kg-width-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
}
.gh-content figure.kg-card { margin: 1.6em 0; }
.gh-content figure.kg-image-card img { border-radius: var(--radius); }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.gh-content .kg-gallery-row { display: flex; gap: 8px; }
.gh-content .kg-gallery-image img { border-radius: 4px; width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-bookmark-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
}
.gh-content .kg-bookmark-content { padding: 16px; flex: 1; }
.gh-content .kg-bookmark-title { font-weight: 600; color: var(--gray-900); }
.gh-content .kg-bookmark-url { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }
.gh-content .kg-callout-card {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  margin: 1.6em 0;
}

/* ── Post CTA box ──────────────────────────────────────────────── */
.post-cta-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--blue-light);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 40px;
}
.cta-box-icon { font-size: 2rem; flex-shrink: 0; }
.cta-box-text { flex: 1; }
.cta-box-text strong { display: block; color: var(--gray-900); margin-bottom: 4px; }
.cta-box-text p { font-size: 0.9rem; color: var(--gray-700); margin: 0; }

/* ── Related posts ─────────────────────────────────────────────── */
.related-posts {
  padding: 48px 0;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}
.related-posts h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
}

/* ── Tag header ────────────────────────────────────────────────── */
.tag-hero {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.tag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.6);
}
.tag-hero-inner {
  position: relative;
  color: var(--white);
  padding: 40px;
}
.tag-hero-inner h1 { font-size: 2rem; font-weight: 800; }
.tag-header-simple {
  text-align: center;
  padding: 48px 0 12px;
}
.tag-header-simple h1 { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.tag-header-simple p { color: var(--gray-400); margin-top: 8px; }
.tag-count {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 12px;
}
.tag-header { padding-top: 40px; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; opacity: 0.9; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .site-nav.open ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }

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

  .post-cta-box { flex-direction: column; text-align: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .hero { padding: 56px 0; }

  .post-full-image img { height: 240px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .section-header h2 { font-size: 1.4rem; }
  .post-full-title { font-size: 1.5rem; }
}
