/* ESK Blogs & Insights — framed post carousel. Nav/dots in esk-blogs.js. */

.eskb { position: relative; background: #ffffff; color: var(--navy, #022450); }
.eskb *, .eskb *::before, .eskb *::after { box-sizing: border-box; }
.eskb a { color: inherit; text-decoration: none; }
.eskb, .eskb * { font-family: "niveaugroteskregular", system-ui, sans-serif !important; }

.eskb__outer { max-width: 1336px; margin: 0 auto; padding: var(--esk-section-pad) 28px; }
.eskb__frame { position: relative; border-radius: 0; background: transparent; border: none; box-shadow: none; padding: 0; overflow: hidden; }

/* Header row */
.eskb__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: clamp(18px,2.5vw,32px); margin-bottom: clamp(26px,3.8vh,48px); }
.eskb__head { min-width: min(100%,300px); flex: 1 1 520px; }
.eskb__eyebrow { font-weight: 700; font-size: var(--esk-kicker); letter-spacing: var(--esk-kicker-ls); color: var(--accent) !important; text-transform: uppercase; }
.eskb__title { margin: clamp(8px,1.2vh,14px) 0 0; font-weight: 800; font-size: var(--esk-h2); line-height: var(--esk-h2-lh); letter-spacing: var(--esk-h2-ls); color: var(--navy) !important; }
.eskb__lead { margin: clamp(12px,1.8vh,22px) 0 0; max-width: 44ch; font-size: var(--esk-lead); line-height: 1.55; font-weight: 400; color: #5F6B7A; }

.eskb__nav { display: flex; gap: 14px; padding-bottom: clamp(2px,0.6vh,8px); }
/* Arrows unified with the testimonial slider (esk-trust): prev = white circle
   with navy icon, next = solid accent with white icon; every state pinned so
   theme/Code Snippets button CSS cannot recolor them. */
.eskb__navbtn { width: 52px; height: 52px; padding: 0 !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 0; cursor: pointer; transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease; }
.eskb__navbtn:hover { transform: scale(1.08); }
.eskb__navbtn svg { width: 22px !important; height: 22px !important; min-width: 22px; display: block !important; opacity: 1 !important; visibility: visible !important; stroke: currentColor !important; fill: none !important; }
.eskb__navbtn { border: 1.6px solid #E4E7EC; background: #FFFFFF !important; background-image: none !important; color: #022450 !important; }
.eskb__navbtn:hover { border-color: var(--accent); color: var(--accent) !important; background: #FFFFFF !important; }
.eskb__navbtn.is-next { border: 1.6px solid var(--accent); background: var(--accent) !important; background-image: none !important; color: #FFFFFF !important; }
.eskb__navbtn.is-next:hover { background: var(--accent) !important; color: #FFFFFF !important; }

/* Carousel */
.eskb__track { display: flex; gap: clamp(18px,2.2vw,28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.eskb__track::-webkit-scrollbar { display: none; }
.eskb__card { flex: 0 0 auto; width: calc((100% - 56px)/3); min-width: min(100%,340px); scroll-snap-align: start; border: 1px solid #E7E9EE; border-radius: 18px; background: #FFFFFF; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.22,.7,.3,1), box-shadow .5s cubic-bezier(.22,.7,.3,1), border-color .5s ease; }
.eskb__card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* 16:9 matches standard blog/OG featured images — near-zero cropping. */
.eskb__photo-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #022450; overflow: hidden; border-radius: 18px 18px 0 0; }
.eskb__photo { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.22,.7,.3,1); }
.eskb__card:hover .eskb__photo { transform: scale(1.04); }
.eskb__photo .eskb__img, .eskb__photo img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: none !important; object-fit: cover; object-position: center; display: block; }

.eskb__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px,2.2vw,28px) clamp(18px,2vw,26px) clamp(20px,2.2vw,26px); }
.eskb__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.eskb__cat { font-weight: 700; font-size: clamp(12px,1vw,13px); letter-spacing: 0.1em; color: var(--accent) !important; text-transform: uppercase; }
.eskb__date { font-weight: 500; font-size: clamp(12px,1.05vw,14px); color: #8A93A3; white-space: nowrap; }
/* Title clamped to 2 lines, excerpt to 4 — cards stay visually consistent. */
.eskb__card-title { margin: clamp(12px,1.6vh,18px) 0 0; font-weight: 800; font-size: clamp(19px,1.75vw,24px); line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.3em); }
.eskb__card-title a { color: var(--navy) !important; }
.eskb__card-title a:hover { color: var(--accent) !important; }
.eskb__excerpt { margin: clamp(10px,1.4vh,14px) 0 0; font-size: clamp(14px,1.2vw,18px); line-height: 1.6; color: #5F6B7A; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.eskb__more { margin-top: auto; padding-top: clamp(16px,2vh,22px); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: clamp(14px,1.2vw,16px); color: var(--accent) !important; }
.eskb__more-ic { transition: transform .35s ease; stroke: var(--accent) !important; }
.eskb__card:hover .eskb__more-ic { transform: translateX(3px); }

/* Dots removed per request (swipe + arrows are enough). */
.eskb__dots { display: none !important; justify-content: center; gap: 8px; margin-top: clamp(16px,2.2vh,24px); }
.eskb__dots button { width: 8px; height: 8px; border-radius: 99px; border: none; padding: 0; cursor: pointer; background: #D8DBE2; transition: all .3s ease; }
.eskb__dots button.is-on { width: 22px; background: var(--accent); }

/* Newsletter bar */
.eskb__nl { max-width: 900px; margin: clamp(30px,4.5vh,56px) auto 0; border: 1px solid #E7E9EE; border-radius: 16px; background: #FFFFFF; box-shadow: 0 6px 18px -14px rgba(2,36,80,0.12); padding: clamp(20px,2.4vw,28px) clamp(20px,2.6vw,32px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px,2vw,24px); }
.eskb__nl-ic { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.eskb__nl-copy { flex: 1 1 260px; min-width: 220px; }
.eskb__nl-title { font-weight: 800; font-size: clamp(17px,1.6vw,21px); color: var(--navy) !important; }
.eskb__nl-sub { margin-top: 4px; font-size: clamp(14px,1.25vw,16px); color: #5F6B7A; }
/* Newsletter button — unified site footer "Book A Consultation" style:
   Montserrat 600, 8px radius, circled-arrow icon, hover lift + icon slide. */
.eskb__nl-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; background-color: var(--accent); color: #fff !important; font-size: 15px; font-weight: 500; padding: 14px 28px; border-radius: 8px; text-decoration: none; transition: background 0.25s ease, transform 0.2s ease; white-space: nowrap; }
.eskb__nl-btn, .eskb__nl-btn * { font-family: 'Roboto', system-ui, sans-serif !important; color: #fff !important; }
.eskb__nl-btn:hover, .eskb__nl-btn:focus { color: #fff !important; text-decoration: none; transform: translateY(-1px); }
.eskb__nl-ic2 { flex: 0 0 auto; width: 18px; height: 18px; transition: transform 0.25s ease; stroke: #fff !important; }
.eskb__nl-btn:hover .eskb__nl-ic2 { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .eskb__card:hover { transform: none; }
  .eskb__card:hover .eskb__photo { transform: none; }
  .eskb__nl-btn:hover { transform: none; }
}

/* Full-bleed inside WPBakery columns: drop the builder's default
   15px column padding when this element is the column content. */
.vc_column_container > .vc_column-inner:has(.eskb) { padding-left: 0; padding-right: 0; }

/* Kill the theme's mobile .vc_row{padding:0 12px} (320-768 media rule)
   for rows that contain this element — full-bleed on mobile too. */
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .vc_row:has(.eskb) { padding-left: 0 !important; padding-right: 0 !important; }
}


/* C4 hero slots. */
.eskb__hero { font-size: var(--esk-display) !important; line-height: var(--esk-display-lh) !important; letter-spacing: var(--esk-display-ls); font-weight: 800; text-transform: uppercase; display: block; white-space: nowrap; color: var(--navy) !important; }
.eskb__support { font-size: clamp(22px, 2.4vw, 34px) !important; line-height: 1.15 !important; font-weight: 800; letter-spacing: 0.04em !important; word-spacing: 0.15em; text-transform: uppercase; display: block; margin-top: 0.45em; color: var(--navy) !important; }

/* mobile hero cap: "IDEAS, UPDATES" stays one line on phones */
@media (max-width: 767px) {
  .eskb__hero { font-size: min(var(--esk-display), 10.4vw) !important; }
}

/* mobile support size */
@media (max-width: 767px) {
  .eskb__support { font-size: 18px !important; }
}


/* Support-line shimmer — same sweep as Why Choose (.eskw__t2): base-colour
   text, orange band drifts through every 9s. Reduced motion: static base. */
.eskb__support {
  background-image: linear-gradient(100deg, #022450 0%, #022450 42%, #e36745 50%, #022450 58%, #022450 100%) !important;
  background-size: 300% auto !important;
  background-position: 0% 50%;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  animation: eskbGrad 6s ease-in-out infinite !important;
}
@keyframes eskbGrad { 0% { background-position: 0% 50%; } 75%, 100% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .eskb__support { animation: none !important; }
}
