
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg:        #ffffff;
  --surface:   #f5f5f7;
  --surface2:  #eeeef0;
  --border:    #e0e0e0;
  --accent:    #5541F0;
  --green:     #107c10;
  --red:       #c50f1f;
  --text:      #1a1a1a;
  --text2:     #4a4a4a;
  --muted:     #8a8a8a;
  --white:     #ffffff;
  --dark:      #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text2);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  width: 36px;
  height: 36px;
  letter-spacing: -1px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -.5px;
  margin-left: .4rem;
}
.logo-text .lt-accent { color: var(--accent); font-weight: 900; }
.logo-text .lt-dot { color: var(--muted); font-weight: 500; }
.header-nav {
  display: flex;
  gap: .3rem;
  margin-left: auto;
}
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  padding: .4rem .7rem;
  transition: color .15s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--text); }

/* ─── ARTICLE SHELL ─────────────────────────────────────── */
.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

/* back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '←'; }

/* meta top */
.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.article-chip {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--c, #5541F0);
  padding: 0;
  line-height: 1.4;
  white-space: nowrap;
}
.article-date {
  font-size: 13px;
  color: var(--muted);
}

/* title */
.article-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 1.8rem;
}

/* hero image */
.article-hero-img {
  width: 100%;
  aspect-ratio: 8/5;
  object-fit: cover;
  display: block;
  margin-bottom: 2.5rem;
}

/* ─── ARTICLE CONTENT ───────────────────────────────────── */
.article-shell { overflow-x: hidden; }
.article-body {
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text2);
}
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 .8rem;
  letter-spacing: -.3px;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 .6rem;
}
.article-body h4,
.article-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 .4rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: .85;
  padding: .05em .12em .05em 0;
  color: var(--accent);
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(85,65,240,.3);
  transition: text-decoration-color .15s;
}
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol {
  margin: .5rem 0 1.2rem 1.4rem;
  padding-left: 0;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  margin-bottom: .35rem;
  padding-left: .3rem;
}
.article-body li::marker { color: var(--muted); }
.article-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 1.8rem auto;
}
.article-body figure {
  margin: 2rem 0;
  max-width: 100%;
  overflow: hidden;
}
.article-body figure img {
  max-width: 100%;
  width: auto;
  height: auto;
}
.article-body .wp-block-image {
  max-width: 100%;
  overflow: hidden;
}
.article-body .wp-block-image img {
  max-width: 100%;
  height: auto;
}
.article-body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: .5rem;
  text-align: center;
}
.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  margin-bottom: 1.3rem;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}
.article-body code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .15rem .4rem;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  color: var(--accent);
}
/* overflow protection for all pre/code blocks including WP classes */
.article-body pre,
.article-body .wp-block-code,
.article-body .wp-block-preformatted {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: .7rem 1.2rem;
  margin: 1.2rem 0;
  background: rgba(85,65,240,.03);
  color: var(--text2);
  font-style: italic;
}
/* table wrapper for horizontal scroll on mobile */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.3rem;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
/* iframes, embeds, videos */
.article-body iframe,
.article-body video,
.article-body embed,
.article-body object {
  max-width: 100%;
  height: auto;
}
.article-body .wp-block-embed,
.article-body .wp-block-video {
  max-width: 100%;
  overflow: hidden;
}
.article-body th, .article-body td {
  padding: .6rem .85rem;
  border: 1px solid var(--border);
}
.article-body th {
  color: var(--text);
  font-weight: 700;
  background: var(--surface);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ─── ARTICLE TAGS ──────────────────────────────────────── */
.article-tags-section {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-tags-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: .8rem;
}
.article-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.article-tag-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: .25rem .6rem;
  transition: color .15s, border-color .15s, background .15s;
}
.article-tag-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(85,65,240,.04);
}

/* ─── SHARE BAR ────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.share-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  white-space: nowrap;
}
.share-buttons--top {
  display: flex;
  gap: .35rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  color: #fff;
  text-decoration: none;
}
.share-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}
.share-btn--linkedin { background: #0A66C2; }
.share-btn--x { background: #000; border: 1px solid var(--border); }
.share-btn--facebook { background: #1877F2; }
.share-btn--whatsapp { background: #25D366; }

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: #111;
  color: #fff;
  margin-top: 4rem;
}
.footer-cta {
  background: var(--accent);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-cta h3 {
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: .4rem;
}
.footer-cta p {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.footer-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  padding: .65rem 1.8rem;
  transition: transform .15s, box-shadow .15s;
}
.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -.5px;
  display: block;
  margin-bottom: .6rem;
}
.footer-desc {
  font-size: .82rem;
  color: #666;
  line-height: 1.6;
}
.footer-col-title {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
  display: block;
  margin-bottom: .75rem;
}
.footer-col a {
  display: block;
  font-size: .82rem;
  color: #999;
  padding: .2rem 0;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid #222;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 12px;
  color: #555;
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── NAV DROPDOWNS ─────────────────────────────────────── */
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  padding: .4rem .7rem;
  transition: color .15s;
  white-space: nowrap;
}
.nav-item > a:hover { color: var(--text); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  min-width: 260px;
  padding: .5rem 0;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-item-right .nav-dropdown { right: 0; left: auto; }
.nav-dropdown a {
  display: block;
  padding: .45rem 1rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition: background .1s, color .1s;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--surface); color: var(--text); }

/* ─── HAMBURGER ────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .2s, opacity .2s;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26,26,26,.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  padding: .5rem 0;
  transition: color .15s;
}
.mobile-nav-overlay a:hover { color: var(--accent); }
.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ─── SEARCH ────────────────────────────────────────────── */
.search-btn {
  display: flex; align-items: center; gap: .4rem;
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text2);
  margin-left: auto;
  transition: color .15s;
}
.search-btn:hover { color: var(--text); }
.search-btn svg { flex-shrink: 0; }
.search-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; background: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  align-items: center; gap: 1rem;
}
.search-overlay.open { display: flex; }
.search-overlay input {
  flex: 1; border: none; outline: none;
  font-size: 1.1rem; font-weight: 500;
  color: var(--text); background: transparent;
  padding: .5rem 0;
}
.search-overlay button {
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--muted);
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 600px) {
  .article-shell { padding: 1.5rem 1rem 4rem; }
  .article-title { font-size: 1.6rem; }
  .header-nav { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── PRINT ────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .mobile-nav { display: none; }
  .article-shell { max-width: 100%; padding: 0; }
}
