/* blog.aieinksmart.com — styled after the original WordPress/Elementor blog
   (Nunito, grey body text, heavy dark headings, blue bold links, shadowed article card). */
:root {
  --blue: #005edd;
  --green: #a8cf45;
  --ink: #292929;
  --text: #868686;
  --line: #e2e6ea;
  --toc-line: #9da5ae;
  --soft: #f6f8fb;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 15px/1.5 Nunito, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.narrow { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 96px; }
.logo img { height: 74px; width: auto; display: block; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 16px 0;
  color: #000; font-weight: 700; font-size: 15px;
}
.main-nav > ul > li > a svg { font-size: 15px; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav .sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -16px; min-width: 250px;
  background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); border-top: 3px solid var(--blue);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: 9px 18px; color: var(--ink); font-weight: 600; font-size: 14px; }
.main-nav .sub a:hover { background: var(--soft); color: var(--blue); }
.btn-quote {
  display: inline-block; background: var(--green); color: var(--blue); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 24px; border-radius: 30px; white-space: nowrap;
}
.btn-quote:hover { background: #97bf37; text-decoration: none; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .25)),
    url("/wp-content/uploads/2025/06/New-Project-73.jpg") center / cover no-repeat;
  color: #fff; text-align: center; padding: 90px 0;
}
.hero h1, .hero div { margin: 0 auto; max-width: 900px; font-size: 35px; line-height: 1.2; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 40px; padding-bottom: 60px; }
.card-box { box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5); padding: 20px; background: #fff; min-width: 0; }

/* post meta (author / date / time) */
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.meta svg { color: var(--blue); font-size: 15px; }

/* table of contents */
.toc { border: 1px solid var(--toc-line); margin-bottom: 24px; }
.toc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--toc-line); color: var(--ink); font-size: 23px; font-weight: 700;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { color: var(--blue); font-size: 22px; transform: rotate(180deg); transition: transform .2s; }
.toc:not([open]) summary { border-bottom: 0; }
.toc:not([open]) summary svg { transform: none; }
.toc ol { margin: 0; padding: 20px 20px 20px 44px; }
.toc li { padding: 4px 0; color: var(--text); }
.toc a { font-weight: 700; }

.feature { margin: 0 0 24px; }
.feature img { width: 100%; display: block; }

/* article body */
.entry { color: var(--text); }
.entry h2 { color: var(--ink); font-size: 33px; line-height: 1.1; font-weight: 800; margin: 8px 0 16px; scroll-margin-top: 110px; }
.entry h3 { color: var(--ink); font-size: 27.5px; line-height: 1.2; font-weight: 800; margin: 8px 0 16px; scroll-margin-top: 110px; }
.entry h4 { color: var(--ink); font-size: 20px; font-weight: 800; margin: 8px 0 12px; }
.entry p { margin: 0 0 14.4px; }
.entry ul, .entry ol { margin: 0 0 14.4px; padding-left: 24px; }
.entry li { margin: 2px 0; }
.entry strong { color: var(--ink); }
.entry a { font-weight: 700; }
.entry img { display: block; margin: 20px auto; }
.entry figure { margin: 20px 0; }
.entry figcaption { text-align: center; font-size: 14px; }
.entry blockquote { margin: 20px 0; padding: 12px 20px; border-left: 4px solid var(--blue); background: var(--soft); }
.entry code { background: var(--soft); padding: 1px 5px; border-radius: 3px; font-size: .92em; color: var(--ink); }
.entry table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.entry th { background: var(--soft); color: var(--ink); }

/* share buttons (colours of the original Elementor share widget) */
.share { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 26px; }
.sh { display: inline-flex; align-items: center; height: 45px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.sh:hover { filter: brightness(1.12); text-decoration: none; }
.sh svg { width: 45px; height: 45px; padding: 13px; background: rgba(0, 0, 0, .15); }
.sh span { padding: 0 16px 0 12px; }
.sh-facebook { background: #3b5998; } .sh-linkedin { background: #0077b5; } .sh-x { background: #000; }
.sh-pinterest { background: #bd081c; } .sh-whatsapp { background: #25d366; } .sh-vk { background: #45668e; }

/* previous / next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: 18px; }
.post-nav a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
.post-nav a:hover { text-decoration: none; color: var(--blue); }
.post-nav svg { color: var(--blue); font-size: 22px; }
.post-nav small { display: block; color: var(--ink); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; }
.post-nav .next { justify-content: flex-end; text-align: right; border-left: 1px solid var(--line); padding-left: 16px; }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.widget h3 { color: var(--ink); font-size: 24px; font-weight: 800; margin: 0 0 12px; }
.widget ul { margin: 0; padding: 0 0 0 20px; }
.widget li { padding: 3px 0; line-height: 1.45; }
.widget .dots li::marker { color: var(--ink); }
.widget .dots a { font-weight: 700; }
.widget .recent span { color: var(--text); font-size: 14px; }
.author { text-align: center; background: var(--soft); padding: 24px 18px; }
.author img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; }
.author h3 { margin: 10px 0 8px; }
.author p { margin: 0 0 8px; }
.author ul { list-style: none; padding: 0; margin: 0 0 8px; }
.author li { padding: 1px 0; }
.author li::before { content: "\2022  "; }
.banner img { display: block; }
.search { display: flex; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-right: 0; padding: 0 16px; height: 64px;
  font: inherit; color: var(--ink); background: var(--soft); border-radius: 6px 0 0 6px; }
.search button { width: 64px; height: 64px; border: 0; background: var(--blue); color: #fff; font-size: 26px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }

/* ---------- list pages ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.card .thumb img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; display: block; }
.card-body { padding-top: 14px; }
.card h2 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; letter-spacing: -.2px; }
.card-meta { color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.more { font-weight: 700; }
.results-head { color: var(--ink); font-weight: 700; margin: 0 0 20px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { padding: 6px 10px; font-weight: 700; }
.pager .cur { color: var(--text); }
.pager .gap { color: var(--text); }

/* ---------- footer ---------- */
.help { background: var(--blue); color: #fff; text-align: center; padding: 24px 0 26px; }
.help h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.help p { margin: 0 0 12px; opacity: .92; font-size: 14px; }
.site-footer { background: radial-gradient(at 100% 0%, #005edd 0%, #292929 100%); color: #fff; padding: 44px 0 22px; font-size: 14px; }
.site-footer a { color: #fff; font-weight: 600; }
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; }
.f-col h4 { color: #fff; margin: 0 0 14px; font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { padding: 5px 0; }
.contact li { line-height: 1.5; }
.footer-brand-row {
  border-top: 1px solid rgba(255, 255, 255, .22); margin-top: 36px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 13px; color: rgba(255, 255, 255, .7);
}
.footer-brand-row span:not(:last-child)::after { content: "|"; color: rgba(255, 255, 255, .35); margin: 0 10px; }
.footer-brand-row a { color: #fff; font-weight: 600; }
.copy { border-top: 1px solid rgba(255, 255, 255, .22); margin-top: 18px; padding-top: 16px; text-align: center;
  color: rgba(255, 255, 255, .75); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav > ul { gap: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .header-row { flex-wrap: wrap; min-height: 76px; gap: 12px; }
  .logo img { height: 56px; }
  .nav-burger { display: block; order: 3; width: 28px; height: 22px; position: relative; cursor: pointer; margin-left: auto; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; position: absolute; left: 0; width: 28px; height: 3px; background: var(--blue); border-radius: 2px;
  }
  .nav-burger span { top: 9px; }
  .nav-burger span::before { top: -9px; }
  .nav-burger span::after { top: 9px; }
  .btn-quote { order: 2; }
  .main-nav { order: 4; flex-basis: 100%; display: none; padding-bottom: 12px; justify-content: flex-start; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { padding: 10px 0; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
  .main-nav .sub a { padding: 5px 0; }
}
@media (max-width: 600px) {
  .f-grid, .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .hero h1, .hero div { font-size: 26px; }
  .card-box { padding: 14px; box-shadow: 0 0 8px rgba(0, 0, 0, .3); }
  .entry h2 { font-size: 26px; }
  .entry h3 { font-size: 22px; }
  .toc summary { font-size: 19px; padding: 14px; }
  .post-nav { grid-template-columns: 1fr; gap: 14px; }
  .post-nav .next { border-left: 0; padding-left: 0; }
  .sh span { display: none; }
}

/* ---------- sticky "On this page" navigation (desktop) ---------- */
.toc-side {
  position: sticky; top: 116px; display: flex; flex-direction: column; max-height: calc(100vh - 136px);
  border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 12px; background: #fff;
}
.toc-side h3 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.toc-side ol { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; scroll-behavior: smooth; }
.toc-side li { padding: 0; border-top: 1px solid var(--line); }
.toc-side li:first-child { border-top: 0; }
.toc-side a { display: flex; gap: 10px; padding: 9px 2px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.toc-side a b { color: var(--blue); font-size: 12px; font-weight: 700; min-width: 18px; padding-top: 1px; }
.toc-side a:hover { color: var(--blue); text-decoration: none; }
.toc-side a.active { color: var(--blue); font-weight: 800; }
.toc-side a.active b { color: var(--ink); }

/* recent articles moved under the article */
.recent-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.recent-block h3 { color: var(--ink); font-size: 24px; font-weight: 800; margin: 0 0 12px; }
.recent-block ul { margin: 0; padding-left: 20px; }
.recent-block li { padding: 3px 0; }
.recent-block a { font-weight: 700; }
.recent-block span { color: var(--text); font-size: 14px; }

.f-logo { display: block; width: 180px; height: auto; margin: 0 0 18px; }

@media (min-width: 981px) {
  .toc-inline { display: none; }          /* the sticky side TOC takes over on desktop */
}
@media (max-width: 980px) {
  .toc-side { display: none; }            /* sidebar drops below the article on small screens */
}

/* compact author card on desktop so the sticky TOC is visible on the first screen */
@media (min-width: 981px) {
  .author { display: grid; grid-template-columns: 64px 1fr; gap: 2px 14px; align-items: center; text-align: left;
    padding: 18px; font-size: 13px; line-height: 1.5; }
  .author img { width: 64px; height: 64px; grid-row: 1; }
  .author h3 { margin: 0; font-size: 20px; grid-row: 1; }
  .author > :not(img):not(h3) { grid-column: 1 / -1; }
  .author p:first-of-type { margin-top: 10px; }
  .author p, .author ul { margin: 0 0 4px; }
}
