/* ==========================================================================
   TaskOPad blog — content styling to match the new static site.
   The header/footer come from the shared site.css; this file styles the blog
   listing cards and the single-post body using the same design tokens
   (Plus Jakarta Sans body, Space Grotesk headings, #2E5BFF accent).
   Uses its own tp-blog-* classes so it never collides with the hashed site CSS.
   ========================================================================== */

.tp-blog {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 72px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #4A5170;
}
.tp-blog a { color: #2E5BFF; }

/* ---- page heading ---- */
.tp-blog-head { max-width: 760px; margin: 0 0 40px; }
.tp-blog-crumb { font-size: 14px; font-weight: 600; color: #8089A6; margin-bottom: 14px; }
.tp-blog-crumb a { color: #8089A6; }
.tp-blog-crumb a:hover { color: #2E5BFF; }
.tp-crumb-current { color: #3A4166; }
.tp-blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 44px; line-height: 1.1; color: #0B1230; margin: 0 0 14px;
}
.tp-blog-sub { font-size: 17px; line-height: 1.6; color: #5A6180; margin: 0; }

/* ---- listing grid ---- */
.tp-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.tp-blog-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #ECF0FB; border-radius: 20px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(20, 40, 110, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tp-blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(20, 40, 110, .1); }
/* show the full featured image at its natural ratio (no cropping) */
.tp-blog-card-media { position: relative; background: #EEF2FB; overflow: hidden; line-height: 0; }
.tp-blog-card-media img { width: 100%; height: auto; display: block; }
.tp-blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
/* category (left) and date (right) on one row */
.tp-blog-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-blog-card-date { font-size: 13px; font-weight: 600; color: #8089A6; white-space: nowrap; }
.tp-blog-cat {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  color: #2E5BFF; background: #EEF2FF; padding: 5px 11px; border-radius: 8px;
}
.tp-blog-cat:empty { display: none; }
.tp-blog-card h2 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; color: #0B1230; }
.tp-blog-card h2 a { color: inherit; }
.tp-blog-card h2 a:hover { color: #2E5BFF; }
.tp-blog-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #5A6180; }
.tp-blog-card-meta { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: #8089A6; text-align: right; }
.tp-blog-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }

/* ---- pagination ---- */
.tp-blog-pager { margin-top: 48px; display: flex; justify-content: center; }
.tp-blog-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-blog-pager a, .tp-blog-pager .current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  font-weight: 700; font-size: 15px; border: 1px solid #E3E8F4; background: #fff; color: #3A4166;
}
.tp-blog-pager .current { background: #2E5BFF; border-color: #2E5BFF; color: #fff; }
.tp-blog-pager a:hover { border-color: #2E5BFF; color: #2E5BFF; }

/* ---- single post: content + right sidebar ---- */
.tp-single {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px; align-items: start;
}
.tp-single-main { min-width: 0; }

.tp-single-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.tp-widget {
  background: #fff; border: 1px solid #ECF0FB; border-radius: 18px;
  padding: 22px; box-shadow: 0 8px 24px rgba(20, 40, 110, .04);
}
.tp-widget-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #0B1230; margin: 0 0 16px; }

.tp-widget-search { position: relative; }
.tp-widget-search input {
  width: 100%; box-sizing: border-box; padding: 12px 48px 12px 16px;
  border: 1px solid #E3E8F4; border-radius: 12px; font-family: inherit; font-size: 14px;
  color: #0B1230; outline: none;
}
.tp-widget-search input:focus { border-color: #2E5BFF; box-shadow: 0 0 0 3px rgba(46, 91, 255, .12); }
.tp-widget-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: #2E5BFF; border-radius: 9px;
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.tp-widget-search button:hover { background: #0B1E5C; }

/* live search suggestions dropdown */
.tp-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid #E3E8F4; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(20, 40, 110, .14);
  max-height: 340px; overflow-y: auto;
}
.tp-suggest[hidden] { display: none; }
.tp-suggest-item {
  display: block; padding: 11px 14px; font-size: 14px; font-weight: 600;
  color: #0B1230; line-height: 1.35; border-bottom: 1px solid #F0F3FA;
}
.tp-suggest-item:last-child { border-bottom: 0; }
.tp-suggest-item:hover, .tp-suggest-item.is-active { background: #F4F7FF; color: #2E5BFF; }
.tp-suggest-empty { padding: 12px 14px; font-size: 13px; font-weight: 600; color: #8089A6; }

.tp-widget-select {
  width: 100%; box-sizing: border-box; padding: 12px 16px;
  border: 1px solid #E3E8F4; border-radius: 12px; font-family: inherit; font-size: 14px;
  color: #0B1230; background: #fff; cursor: pointer;
}
.tp-widget-select:focus { border-color: #2E5BFF; outline: none; }

.tp-widget-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tp-widget-recent a { display: flex; gap: 12px; align-items: center; }
.tp-recent-thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: #EEF2FB; }
.tp-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-recent-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; color: #0B1230; }
.tp-widget-recent a:hover .tp-recent-title { color: #2E5BFF; }
.tp-recent-date { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #8089A6; }

/* ---- related blogs ---- */
.tp-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid #ECF0FB; }
.tp-related-title { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: #0B1230; margin: 0 0 26px; }
.tp-related .tp-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- single post body ---- */
.tp-post-hero { margin-bottom: 30px; }
.tp-post-hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1.12; color: #0B1230; margin: 12px 0 16px;
}
/* category (left) + date (right) on one row */
.tp-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-post-date { font-size: 14px; font-weight: 600; color: #8089A6; white-space: nowrap; }
.tp-blog-cat:empty { display: none; }
.tp-post-feat { margin: 26px 0 34px; border-radius: 20px; overflow: hidden; border: 1px solid #ECF0FB; }
.tp-post-feat img { width: 100%; height: auto; display: block; }

/* body typography from the WP editor */
.tp-post-body { font-size: 17px; line-height: 1.75; color: #3A4166; }
.tp-post-body > * + * { margin-top: 22px; }
.tp-post-body h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; line-height: 1.25; color: #0B1230; font-weight: 700; margin-top: 40px; }
.tp-post-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; line-height: 1.3; color: #0B1230; font-weight: 700; margin-top: 34px; }
.tp-post-body h4 { font-size: 18px; color: #0B1230; font-weight: 700; margin-top: 28px; }
.tp-post-body p { margin-bottom: 1 rem; }
.tp-post-body a { color: #2E5BFF; text-decoration: underline; text-underline-offset: 2px; }
.tp-post-body ul, .tp-post-body ol { padding-left: 22px; }
.tp-post-body li { margin: 8px 0; }
.tp-post-body img { max-width: 100%; height: auto; border-radius: 14px; }
.tp-post-body blockquote {
  margin: 28px 0; padding: 16px 22px; border-left: 4px solid #2E5BFF;
  background: #F5F8FF; border-radius: 0 12px 12px 0; color: #3A4166; font-style: italic;
}
.tp-post-body pre {
  background: #0B1230; color: #E8ECFF; padding: 18px 20px; border-radius: 14px;
  overflow-x: auto; font-size: 14px; line-height: 1.6;
}
.tp-post-body code { background: #EEF2FF; color: #2E5BFF; padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.tp-post-body pre code { background: none; color: inherit; padding: 0; }
.tp-post-body table { width: 100%; border-collapse: collapse; }
.tp-post-body th, .tp-post-body td { border: 1px solid #E6ECF8; padding: 10px 12px; text-align: left; }
.tp-post-body th { background: #F5F8FF; color: #0B1230; font-weight: 700; }

/* ---- back-to-blog CTA ---- */
.tp-post-back { margin-top: 44px; }
.tp-post-back a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: #fff; background: #2E5BFF;
  padding: 12px 22px; border-radius: 100px;
}
.tp-post-back a:hover { background: #0B1E5C; }

.tp-blog-empty { text-align: center; padding: 60px 0; font-size: 17px; color: #5A6180; }

/* ==========================================================================
   Bottom CTA — custom premium free-trial card (matches the site's light hero
   sections): soft gradient panel, badge, headline, two buttons, product shot.
   ========================================================================== */
.tp-cta { max-width: 1240px; margin: 0 auto 80px; padding: 0 28px; }
.tp-cta-card {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(150deg, #ECF2FF 0%, #F6F9FF 55%, #FFFFFF 100%);
  border: 1px solid #E4EBFB;
  box-shadow: 0 30px 70px rgba(20, 40, 110, .08);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
  padding: 52px 0 52px 56px;
}
.tp-cta-glow { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; }
.tp-cta-glow-a { width: 320px; height: 320px; background: rgba(46, 91, 255, .16); top: -90px; right: 22%; }
.tp-cta-glow-b { width: 260px; height: 260px; background: rgba(0, 200, 150, .12); bottom: -110px; left: -50px; }

.tp-cta-body { position: relative; z-index: 2; max-width: 470px; }
.tp-cta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  color: #2E5BFF; background: #E5EDFF; padding: 6px 13px; border-radius: 100px; margin-bottom: 16px;
}
.tp-cta-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 38px; line-height: 1.1;
  font-weight: 700; color: #0B1230; margin: 0 0 14px;
}
.tp-cta-title span { color: #2E5BFF; }
.tp-cta-sub { font-size: 17px; line-height: 1.6; color: #5A6180; margin: 0 0 26px; }
.tp-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tp-cta-primary, .tp-cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 100px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.tp-cta-primary { color: #fff; background: #2E5BFF; box-shadow: 0 10px 22px rgba(46, 91, 255, .3); }
.tp-cta-primary:hover { background: #0B1E5C; color: #fff; transform: translateY(-2px); }
.tp-cta-secondary { color: #2E3358; background: #fff; border: 1px solid #DCE3F5; }
.tp-cta-secondary:hover { border-color: #2E5BFF; color: #2E5BFF; }

.tp-cta-shot { position: relative; z-index: 2; align-self: end; }
.tp-cta-shot img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .tp-cta-card { grid-template-columns: 1fr; text-align: center; padding: 44px 24px 0; gap: 26px; }
  .tp-cta-body { max-width: 100%; }
  .tp-cta-badge, .tp-cta-actions { justify-content: center; }
  .tp-cta-actions { justify-content: center; }
  .tp-cta-shot { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .tp-cta { padding: 0 18px; }
  .tp-cta-title { font-size: 28px; }
}

/* ---- responsive ---- */
@media (max-width: 1024px) { .tp-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .tp-blog { padding: 40px 18px 56px; }
  .tp-blog-grid { grid-template-columns: 1fr; }
  .tp-blog-title { font-size: 32px; }
  .tp-post-hero h1 { font-size: 30px; }
  .tp-post-body { font-size: 16px; }
}

/* ==========================================================================
   Blog page tweaks
   ========================================================================== */

/* Sticky nav: the wrapper's overflow-x:hidden turns it into a scroll container
   and breaks position:sticky. overflow-x:clip prevents horizontal scroll
   WITHOUT creating that container, so the header sticks as intended. */
.t-bb5b66a { overflow-x: clip !important; }
.t-dc75002 { position: sticky !important; top: 0 !important; z-index: 50 !important; }
/* keep the sticky header below the WP admin bar when an admin is logged in */
body.admin-bar .t-dc75002 { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .t-dc75002 { top: 46px !important; } }

/* Kill the wordpress-tooltips (qtip) hover bubbles on the blog listing. */
.qtip, .qtip-default, [id^="qtip-"] { display: none !important; visibility: hidden !important; }

/* WP pages (page.php) still use .tp-post as a centered column */
.tp-post { max-width: 820px; margin: 0 auto; }

/* single-post + related responsive */
@media (max-width: 980px) {
  .tp-single { grid-template-columns: 1fr; }
  .tp-single-side { position: static; }
}
@media (max-width: 1024px) { .tp-related .tp-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .tp-related .tp-blog-grid { grid-template-columns: 1fr; } }
