: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; }

    .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;
      
    }

    /* === FIX: CUSTOM STYLES FOR RELATED POSTS TO MATCH IMAGE === */
    .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);
    }
    /* === END FIX === */

    @media (max-width: 640px) {
    .widget-cta .esp-header__btn {
        padding: 16px 26px;
        font-size: 16px;
    }
    }
    
    .esp-widget a:hover {
      color: var(--esp-brand);
    }
    .esp-widget a:hover span {
        transform: translateX(4px);
    }
    .esp-widget a span {
        font-size: 15px;
        transition: transform 0.2s;
    }

    .widget-cta {
        background: #111;
        color: #fff;
        text-align: center;
        border: none;
    }
    .widget-cta h3 {
        color: #fff;
        border-color: rgba(255,255,255,0.2);
    }
    .widget-cta p {
        color: #ccc;
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    /* Widget Contact */
    .contact-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        color: #555;
        font-size: 14px;
        text-decoration: none;
    }
    .contact-row svg {
        width: 18px;
        height: 18px;
        color: var(--esp-brand);
        flex-shrink: 0;
    }
    .contact-row:hover {
        color: var(--esp-brand);
    }

    @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; } 
    }

    /* CTA button taller on mobile only (all blogs) */
    @media (max-width: 768px){
      .widget-cta .esp-header__btn{
        padding-top:18px;
        padding-bottom:18px;
        font-size:16px;
      }
    }

    .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;
    }

    .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;
    }

    /* ========================= 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;
    }
    
    /* === FIX: PADDING UPDATE FOR TRUST SECTION === */
    .esp-trust{
      --tc-yellow:#FCB017; --tc-ink:#0f172a; --tc-line:rgba(0,0,0,.06);
      background:#fff; 
      /* Updated Padding */
      padding-top: 70px;
      padding-bottom: 60px;
      
      border-top:1px solid var(--line); border-bottom:1px solid var(--line);
    }
    /* === END FIX === */
    
    .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(--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; }

/* Inline styles for level-2-door-supervisor-course.html */
.st-e467bba6 { width:100% !important; justify-content:center !important; box-sizing:border-box !important; }
body { margin:0;
      font-family:Nunito,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
      background:#ffffff;
      color:#111827;
      overflow-x: hidden; /* Prevent horizontal scroll */ }
.esp-locations-hero { --brand:#FCB017;
      --ink:#ffffff;
      --overlay: rgba(0,0,0,.64);
      --minh: 30vh;
      position: relative;
      isolation: isolate;
      min-height: var(--minh);
      display: grid;
      place-items: center;
      color: var(--ink);
      /* Background Image removed from CSS to use Picture Tag */
      background-color: #222; 
      padding-block: clamp(80px, 10vw, 120px);
      overflow: hidden; }
.esp-hero-bg-wrapper { position: absolute;
      inset: 0;
      z-index: -1;
      width: 100%;
      height: 100%; }
.esp-hero-bg-img { width: 100%;
      height: 100%;
      object-fit: cover;
      display: block; }
.esp-locations-hero .esp-loc__overlay { position: absolute;
      inset: 0;
      background: var(--overlay);
      z-index: 0;
      pointer-events: none; }
.esp-locations-hero .esp-loc__title { margin: 0 0 8px;
      font: 700 clamp(32px, 5vw, 56px)/1.1 Nunito, system-ui, sans-serif;
      color: #fff; }
.esp-locations-hero .esp-loc__lead { margin: 0;
      max-width: 60ch;
      font: 700 clamp(15px, 2.4vw, 16px)/1.6 Nunito, system-ui, sans-serif;
      color: rgba(255,255,255,.92); }
#esp-locations-areas { --brand:#FCB017;
      --ink:#0f172a;
      --text:#424a57;
      background:#ffffff;
      padding:clamp(40px,6vw,70px) 20px;
      font-family: Nunito,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
#esp-locations-areas .esp-loc-in { max-width:1200px;
      margin:0 auto;
      display:grid;
      gap:clamp(20px,3vw,30px); }
#esp-locations-areas .esp-loc-in { grid-template-columns:1fr 1fr;
        grid-template-areas:
          "copy  photo"
          "map   area";
        align-items:center; }
#esp-locations-areas .esp-loc-left { grid-area:copy; }
#esp-locations-areas .esp-loc-photo { grid-area:photo; }
#esp-locations-areas .esp-loc-map { grid-area:map; }
#esp-locations-areas .esp-loc-area-text { grid-area:area; }
#esp-locations-areas .esp-loc-bar { display:inline-block;
      width:96px;height:8px;
      background:var(--brand);
      border-radius:6px;
      margin-bottom:14px; }
#esp-locations-areas .esp-loc-h2 { margin:0 0 10px;
      color:var(--ink);
      font:700 clamp(28px,4.6vw,44px)/1.15 Nunito,system-ui,sans-serif; }
#esp-locations-areas .esp-loc-left p { margin:0;
      color:var(--text);
      font: 16px/1.75 Nunito,system-ui,sans-serif;
      max-width:72ch; }
#esp-locations-areas .esp-loc-h2 + p { margin-top:10px; }
#esp-locations-areas .esp-loc-left p + p { margin-top:12px; }
#esp-locations-areas .esp-loc-card { margin: 0;
      position: relative; /* Anchor for the border overlay */
      display: flex;      /* Eliminates bottom whitespace from inline-block */
      
      /* Size & Shape */
      width: 100%;
      aspect-ratio: 16/9;
      
      /* Visuals */
      background: #000;   /* Black background hides white gaps if load fails */
      border-radius: 18px;
      box-shadow: 0 10px 26px rgba(0,0,0,.08);
      
      /* Clip Content */
      overflow: hidden;
      transform: translateZ(0); /* Hardware accel for smooth corners */ }
#esp-locations-areas .esp-loc-card::after { content: "";
      position: absolute;
      inset: 0; /* Stretches to all 4 corners */
      border: 2px solid #FCB017;
      border-radius: 18px; /* Matches parent radius */
      pointer-events: none; /* Allows clicks to pass through if needed */
      z-index: 2; /* Sits on top of the image */ }
#esp-locations-areas .esp-loc-card img { width: 100%;
      height: 100%;
      object-fit: cover; /* Forces image to fill the box completely */
      display: block;
      border-radius: 18px; /* Ensures image matches corner curve */ }
#esp-locations-areas .esp-loc-area-text { background:#fff;
      border:none;
      border-radius:16px;
      padding:0 22px;
      display:flex;
      flex-direction:column;
      justify-content:center; }
#esp-locations-areas .esp-loc-h3 { margin:0 0 10px;
      color:var(--ink);
      font:700 clamp(22px,3.6vw,30px)/1.15 Nunito,system-ui,sans-serif; }
#esp-locations-areas .esp-loc-area-text p { margin:0;
      color:var(--text);
      font: 16px/1.75 Nunito,system-ui,sans-serif;
      max-width:72ch; }
#esp-locations-areas .esp-loc-area-text .esp-loc-h3 + p { margin-top:10px; }
#esp-locations-areas .esp-loc-area-text p + p { margin-top:12px; }
#esp-locations-areas .esp-loc-em { font-weight: 700; color: var(--ink); }
.esp-trust { --tc-yellow:#FCB017; --tc-ink:#0f172a; --tc-line:rgba(0,0,0,.06);
      background:#fafafa; 
      padding: 70px 0 60px; /* Ensures 90px top/bottom padding */
      border-bottom:1px solid var(--esp-line); }

/* === GLOBAL FOOTER ACCESSIBLE CONTRAST === */
.esp-global-footer,.esp-global-footer p,.esp-global-footer span,.esp-global-footer strong{color:#f3f4f6!important}
.esp-global-footer a{color:#fff!important;text-decoration-color:#fcb017!important}
.esp-global-footer a:hover,.esp-global-footer a:focus{color:#fcb017!important}


/* === GLOBAL HONEYPOT VISIBILITY FIX === */
input[name="company_site"] {
  position: fixed !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}