:root{
  --esp-brand:#FCB017;
  --esp-ink:#111111;
  --esp-text:#222222;
  --esp-line:rgba(0,0,0,.08);
  --esp-dark:#000000;
  --esp-contact-radius:18px;
}

/* FIX: Force full height to prevent white space below footer */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body{
  font-family:Nunito,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#fafafa;
  color:#111827;
}

/* Wrapper to handle sticky footer logic */
.esp-page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 120px; /* Keeps content below absolute header */
  box-sizing: border-box;
}

img{max-width:100%; height:auto; display:block}

/* ========================= BLOG CONTENT & SIDEBAR STYLES ========================= */
.esp-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.esp-blog-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 60px;
  padding: 0 24px;
  align-items: flex-start;
  box-sizing: border-box;
}

.wrap-blog {
  flex: 1 1 60%;
  min-width: 300px;
  margin: 0;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.wrap-blog h1 { color: #111827; line-height: 1.2; font-weight: 700; font-size: clamp(24px,4.5vw,34px); margin-bottom: 12px; margin-top: 0; }
.wrap-blog h2 { color: #111827; line-height: 1.2; font-weight: 700; font-size: 21px; margin-top: 26px; margin-bottom: 10px; }
.wrap-blog h3 { color: #111827; line-height: 1.2; font-weight: 700; font-size: 18px; margin-top: 22px; margin-bottom: 8px; }
.wrap-blog p { margin: 0 0 12px; font-size: 15px; color: #374151; }
.wrap-blog ul { margin: 0 0 12px 18px; padding: 0; color: #374151; }
.wrap-blog li { margin: 5px 0; font-size: 15px; }
.meta { font-size: 13px; color: #666666; margin-bottom: 14px; }
.meta strong { font-weight: 600; }
.note { border-left: 4px solid var(--esp-brand); background: #fff7e6; padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: 14px; color: #555; }
.check { border-left: 4px solid #10b981; background: #f0fdf9; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.check b { display: block; font-size: 16px; color: #065f46; margin-bottom: 5px; }
.hero-img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; display: block; }
.inline-img { width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 12px; margin: 24px 0; display: block; }

.esp-sidebar {
  flex: 1 1 300px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 140px;
}

.esp-widget {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.esp-widget h3 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 2px solid var(--esp-brand);
  padding-bottom: 10px;
  margin-bottom: 16px;
  display: inline-block;
  color: #111;
}

.esp-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.esp-widget li {
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}
.esp-widget li:last-child {
  border: none;
  margin: 0;
  padding: 0;
}

.esp-widget a {
  text-decoration: none;
  color: #555;
  font-size: 16px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

/* === CUSTOM RELATED POSTS === */
.related-posts-custom .widget-title-custom {
    display: block;
    border-bottom: none !important;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 20px;
    color: #111;
}
.related-posts-custom .widget-title-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--esp-brand);
}
.related-posts-custom ul li a {
    justify-content: space-between;
    font-weight: 600;
    color: #4b5563;
    padding: 5px 0;
}
.related-posts-custom ul li a span {
    color: #9ca3af;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.related-posts-custom ul li a:hover {
    color: var(--esp-brand);
}
.related-posts-custom ul li a:hover span {
    color: var(--esp-brand);
    transform: translateX(5px);
}

/* === CTA SECTION (BOX BLACK, TEXT WHITE, BUTTON UNTOUCHED) === */
.widget-cta {
    background-color: #111 !important;
    color: #fff !important;
    text-align: center;
    border: none;
    padding: 30px 24px;
    border-radius: 12px;
}

.widget-cta h3 {
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 15px;
    display: block;
    width: 100%;
    border-color: rgba(255,255,255,0.2) !important;
}

.widget-cta p {
    color: #ccc !important;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.esp-widget :is(a.esp-header__btn, button.esp-header__btn, .esp-header__btn a){
  background: var(--esp-brand) !important;
  color: #111 !important;
  border: 2px solid var(--esp-brand) !important;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  padding: 18px 30px !important;
  width: 80% ;
}

.esp-widget :is(a.esp-header__btn, button.esp-header__btn, .esp-header__btn a):hover{
  background: #fff !important;
  color: var(--esp-brand) !important;
  border-color: var(--esp-brand) !important;
  box-shadow: 0 6px 16px rgba(252,176,23,.35) !important;
}

@media (max-width: 768px){
  .widget-cta .esp-header__btn{
    padding-top:18px;
    padding-bottom:18px;
    font-size:16px;
  }
}

/* Widget Contact */
.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-row svg {
    width: 18px;
    height: 18px;
    color: var(--esp-brand);
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.contact-row:hover,
.contact-row:hover a {
    color: var(--esp-brand);
    cursor: pointer;
}

/* Wraps CTA button pairs (consultancy/subcontractor hooks) so they stack instead of overflowing on narrow screens */
.esp-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.esp-btn-row .esp-btn { margin: 0 !important; }

@media (max-width: 900px) {
  .esp-blog-layout {
    flex-direction: column;
    padding: 0 16px;
  }
  .wrap-blog {
    width: 100%;
    margin-bottom: 20px;
  }
  .esp-sidebar {
    width: 100%;
    max-width: 100%;
    position: static;
  }
  .hero-img { max-height: 260px; }
  .inline-img { max-height: 200px; }
}

@media (max-width: 480px) {
  .esp-page-wrap { padding-top: 100px; }
  .esp-consultancy-hook, .esp-b2b-hook { padding: 24px 18px !important; }
  .esp-btn-row .esp-btn { width: 100%; text-align: center; }
}

/* ========================= TRENDY SECTION STYLES ========================= */
.trendy-section {
    background-color: #f1f1f1;
    padding: 60px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.trendy-container {
    max-width: 1100px;
    margin: 0 auto;
}

.trendy-header {
    text-align: center;
    margin-bottom: 40px;
}

.trendy-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.trendy-header .divider {
    width: 50px;
    height: 5px;
    background: var(--esp-brand);
    margin: 15px auto 0;
    border-radius: 3px;
}

.trendy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trendy-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.trendy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(252, 176, 23, 0.15);
    border-color: rgba(252, 176, 23, 0.3);
}

.trendy-img-box {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.trendy-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trendy-card:hover .trendy-img-box img {
    transform: scale(1.1);
}

.trendy-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trendy-cat {
    color: var(--esp-brand);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.trendy-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.4;
}

.trendy-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trendy-read-more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trendy-read-more span {
    color: var(--esp-brand);
    transition: transform 0.2s ease;
}

.trendy-card:hover .trendy-read-more span {
    transform: translateX(5px);
}

.esp-trust-logo {
  display: block; margin: 0 auto; max-height: 140px; width: auto; max-width: 100%; object-fit: contain;
}

.esp-trust{
  --tc-yellow:#FCB017; --tc-ink:#0f172a; --tc-line:rgba(0,0,0,.06);
  background:#fff;
  padding-top: 70px;
  padding-bottom: 60px;
  border-top:1px solid var(--esp-line); border-bottom:1px solid var(--esp-line);
}

.esp-trust .esp-trust-in{ max-width:1100px; margin:0 auto; padding:0 16px; }

.tc-eyebrow{
  display:inline-flex;align-items:center;gap:8px; padding:8px 14px;border:2px solid var(--esp-line);border-radius:999px;
  font:700 12px/1 Nunito;letter-spacing:.06em;text-transform:uppercase; color:var(--tc-yellow);background:#fff;margin:0 0 10px;
}
.esp-trust h2{ margin:0 0 8px; text-align:center; color:#000; font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif; }
.esp-trust p{ margin:0 0 20px; text-align:center; color:#475569; font:600 14.5px/1.55 Nunito,system-ui; }
.esp-trust-grid{ display:grid; gap:18px; grid-template-columns:repeat(2,1fr); max-width:1100px; margin:0 auto; padding-inline:16px; }
@media (min-width:960px){ .esp-trust-grid{ grid-template-columns:repeat(4,1fr); } }
.esp-trust-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  min-height:150px; padding:16px; border:2px solid var(--tc-yellow); border-radius:16px; background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.06); transition:all .25s ease; text-decoration:none; color:inherit;
}
.esp-trust-card:hover{ transform:translateY(-3px); box-shadow:0 14px 28px rgba(0,0,0,.12); border-color:#f7b615; }

/* === Consultancy/subcontractor CTA buttons (were inline in the article body) === */
.esp-btn {
  display: inline-flex;
  background: var(--esp-brand);
  color: #111;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(252, 176, 23, 0.3);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.esp-btn:hover {
  background: #ffffff;
  color: #fcb017;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  border: 2px solid #fcb017;
}

/* ========================= FAQ ACCORDION (matches homepage.css exactly) ========================= */
.esp-faq { background: #fafafa; padding: clamp(40px, 6vw, 90px) 24px; border-top: 1px solid var(--esp-line); border-radius: 16px; margin: 24px 0 35px; }
.esp-faq__in { max-width: 900px; margin: 0 auto; }
.esp-faq__head { text-align: center; margin-bottom: 32px; }
.esp-faq__head h2 { margin: 0 0 8px; font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif; color: var(--esp-ink); letter-spacing: -.01em; }
.esp-faq__head p { margin: 0 auto 40px; max-width: 78ch; font: 16px/1.7 Nunito, system-ui, sans-serif; color: #475569; }
.faq-container { display: grid; gap: 12px; }
.faq-item-accordion { border: 1px solid #d9d9d9; background: #ffffff; border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border: none;
    outline: none;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    color: var(--esp-dark);
    cursor: pointer;
    transition: background .2s ease;
}
.faq-item-accordion:hover,
.faq-item-accordion:has(.accordion-trigger[aria-expanded="true"]) { border-color: #fcb017; box-shadow: 0 10px 22px rgba(0,0,0,.06); transform: translateY(-1px); }
.accordion-trigger:hover { background: #ffffff; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); background: #ffffff; }
.accordion-panel p { padding: 16px; margin: 0; font-size: 14.5px; line-height: 1.7; color: #333; }
.accordion-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; margin-left: 16px; border: 1px solid #d9d9d9; border-radius: 999px; color: transparent; font-size: 0; line-height: 1; }
.accordion-icon::after { content: ""; width: 8px; height: 8px; margin-bottom: 4px; border-right: 2.5px solid #fcb017; border-bottom: 2.5px solid #fcb017; transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { margin-bottom: -2px; transform: rotate(-135deg); }
