/* ==========================================================================
   NexGen Elements Part 2 — Button, CF7, Icon Display, Text Box, Chart,
   Image Compare, Google Maps Enhanced, Clients, Counter, Quickfinder,
   Team, Testimonials, Posts Grid
   ========================================================================== */

/* ── Button Widget ──────────────────────────────────────────────────────── */
.nexgen-btn-wrap { display: block; }

.nexgen-widget-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .6rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
}

/* Styles */
.nexgen-btn-flat   { background: var(--nexgen-primary,#3b82f6); color: #fff; border-color: var(--nexgen-primary,#3b82f6); }
.nexgen-btn-flat:hover { opacity: .88; }
.nexgen-btn-stroke { background: transparent; border-color: var(--nexgen-primary,#3b82f6); color: var(--nexgen-primary,#3b82f6); }
.nexgen-btn-stroke:hover { background: var(--nexgen-primary,#3b82f6); color: #fff; }
.nexgen-btn-ghost  { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; }
.nexgen-btn-ghost:hover { background: rgba(255,255,255,.2); }
.nexgen-btn-link   { background: transparent; border-color: transparent; color: var(--nexgen-primary,#3b82f6); padding-left: 0; padding-right: 0; }
.nexgen-btn-link:hover { text-decoration: underline; }

/* Shapes */
.nexgen-btn-shape-rectangle { border-radius: 0; }
.nexgen-btn-shape-pill  { border-radius: 99px; }
.nexgen-btn-shape-square, .nexgen-btn-shape-circle { padding: .65rem; width: 44px; height: 44px; }
.nexgen-btn-shape-circle { border-radius: 50%; }

/* Sizes */
.nexgen-btn-size-tiny   { padding: .25rem .75rem; font-size: .75rem; }
.nexgen-btn-size-small  { padding: .4rem 1rem; font-size: .85rem; }
.nexgen-btn-size-medium { padding: .6rem 1.5rem; font-size: .95rem; }
.nexgen-btn-size-large  { padding: .8rem 2rem; font-size: 1.05rem; }
.nexgen-btn-size-giant  { padding: 1rem 2.75rem; font-size: 1.2rem; }

.nexgen-btn-full { width: 100%; }

/* Hover effects */
.nexgen-btn-hover-lift:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.nexgen-btn-hover-pulse:hover { animation: nexgen-btn-pulse .4s ease; }
@keyframes nexgen-btn-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.nexgen-btn-hover-glow:hover { box-shadow: 0 0 20px rgba(59,130,246,.5); }
.nexgen-btn-hover-spin-icon:hover .nexgen-btn-icon { animation: nexgen-spin .6s linear; }

.nexgen-btn-hover-fill-in  .nexgen-btn-fx,
.nexgen-btn-hover-fill-out .nexgen-btn-fx,
.nexgen-btn-hover-slide-in .nexgen-btn-fx,
.nexgen-btn-hover-sweep-rtl .nexgen-btn-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    background: rgba(0,0,0,.15);
    transition: transform .25s ease;
}
.nexgen-btn-hover-sweep-rtl .nexgen-btn-fx { transform-origin: right; }
.nexgen-btn-hover-fill-out .nexgen-btn-fx  { transform-origin: right; }
.nexgen-widget-btn:hover .nexgen-btn-fx { transform: scaleX(1); }
.nexgen-btn-label, .nexgen-btn-icon { position: relative; z-index: 1; }

/* ── Contact Form 7 ─────────────────────────────────────────────────────── */
.nexgen-cf7-wrap { --cf7-radius: 6px; --cf7-border: #d1d5db; --cf7-focus: var(--nexgen-primary,#3b82f6); }

.nexgen-cf7-wrap input:not([type="submit"]),
.nexgen-cf7-wrap textarea,
.nexgen-cf7-wrap select {
    width: 100%;
    padding: .6rem .9rem;
    border: 1px solid var(--cf7-border);
    border-radius: var(--cf7-radius);
    font-size: .95rem;
    line-height: 1.5;
    background: #fff;
    color: #374151;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 0;
}
.nexgen-cf7-wrap input:not([type="submit"]):focus,
.nexgen-cf7-wrap textarea:focus,
.nexgen-cf7-wrap select:focus {
    outline: none;
    border-color: var(--cf7-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.nexgen-cf7-wrap .wpcf7-form-control-wrap { display: block; margin-bottom: 1rem; }
.nexgen-cf7-wrap .wpcf7-not-valid { border-color: #ef4444 !important; }
.nexgen-cf7-wrap .wpcf7-not-valid-tip { color: #ef4444; font-size: .8rem; margin-top: .25rem; display: block; }
.nexgen-cf7-wrap .wpcf7-mail-sent-ok { color: #10b981; border-color: #10b981; padding: .75rem 1rem; border: 1px solid; border-radius: 6px; }
.nexgen-cf7-wrap .wpcf7-mail-sent-ng { color: #ef4444; border-color: #ef4444; padding: .75rem 1rem; border: 1px solid; border-radius: 6px; }

.nexgen-cf7-wrap input[type="submit"] {
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
    border: none;
    border-radius: var(--cf7-radius);
    padding: .65rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    display: inline-block;
}
.nexgen-cf7-wrap input[type="submit"]:hover { opacity: .88; transform: translateY(-1px); }
.nexgen-cf7-btn-full input[type="submit"] { width: 100%; }

/* Style 2 — Modern */
.nexgen-cf7-style-2 input:not([type="submit"]),
.nexgen-cf7-style-2 textarea,
.nexgen-cf7-style-2 select {
    border-top: none; border-left: none; border-right: none;
    border-radius: 0;
    padding-left: 0;
    background: transparent;
}

/* Style 3 — Minimal */
.nexgen-cf7-style-3 input:not([type="submit"]),
.nexgen-cf7-style-3 textarea,
.nexgen-cf7-style-3 select {
    border: none;
    border-bottom: 2px solid var(--cf7-border);
    border-radius: 0;
    padding-left: 0;
    background: transparent;
}

/* Dark scheme */
.nexgen-cf7-dark { background: #1e293b; padding: 2rem; border-radius: 12px; }
.nexgen-cf7-dark input:not([type="submit"]),
.nexgen-cf7-dark textarea,
.nexgen-cf7-dark select {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}
.nexgen-cf7-dark label { color: #cbd5e1; }

/* ── Icon Display ────────────────────────────────────────────────────────── */
.nexgen-icon-display { display: inline-block; }
.nexgen-icon-display-inner { display: inline-flex; flex-direction: column; align-items: center; gap: .75rem; text-decoration: none; }
.nexgen-icon-text-right .nexgen-icon-display-inner { flex-direction: row; }
.nexgen-icon-text-left  .nexgen-icon-display-inner { flex-direction: row-reverse; }

/* Wrap */
.nexgen-icon-display-wrap {
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s, box-shadow .2s;
}

/* Size presets */
.nexgen-icon-size-small   .nexgen-icon-display-wrap { width: 50px; height: 50px; }
.nexgen-icon-size-small   .nexgen-icon-display-icon { font-size: 24px; }
.nexgen-icon-size-medium  .nexgen-icon-display-wrap { width: 80px; height: 80px; }
.nexgen-icon-size-medium  .nexgen-icon-display-icon { font-size: 40px; }
.nexgen-icon-size-large   .nexgen-icon-display-wrap { width: 160px; height: 160px; }
.nexgen-icon-size-large   .nexgen-icon-display-icon { font-size: 80px; }
.nexgen-icon-size-xlarge  .nexgen-icon-display-wrap { width: 240px; height: 240px; }
.nexgen-icon-size-xlarge  .nexgen-icon-display-icon { font-size: 120px; }

/* Shapes */
.nexgen-icon-shape-round   { border-radius: 50%; }
.nexgen-icon-shape-square  { border-radius: 8px; }
.nexgen-icon-shape-hexagon { clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); }
.nexgen-icon-shape-diamond { border-radius: 4px; transform: rotate(45deg); }
.nexgen-icon-shape-diamond .nexgen-icon-display-icon { transform: rotate(-45deg); }

/* Styles */
.nexgen-icon-style-flat    { background: var(--nexgen-primary,#3b82f6); }
.nexgen-icon-style-outline { background: transparent; border: 2px solid var(--nexgen-primary,#3b82f6); }
.nexgen-icon-style-alpha   { background: rgba(59,130,246,.15); }
.nexgen-icon-style-outline .nexgen-icon-display-icon { color: var(--nexgen-primary,#3b82f6); }
.nexgen-icon-style-alpha   .nexgen-icon-display-icon { color: var(--nexgen-primary,#3b82f6); }

/* Hover animations */
.nexgen-icon-anim-lift:hover .nexgen-icon-display-wrap  { transform: translateY(-4px); }
.nexgen-icon-anim-spin:hover .nexgen-icon-display-icon  { animation: nexgen-spin .6s linear; }
.nexgen-icon-anim-pulse:hover .nexgen-icon-display-wrap { animation: nexgen-btn-pulse .4s ease; }
.nexgen-icon-anim-shake:hover .nexgen-icon-display-wrap { animation: nexgen-shake .5s ease; }
.nexgen-icon-anim-grow:hover .nexgen-icon-display-wrap  { transform: scale(1.12); }
@keyframes nexgen-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.nexgen-icon-display-title { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; }
.nexgen-icon-display-desc  { margin: 0; font-size: .875rem; color: #6b7280; }

/* ── Text / Info Box ─────────────────────────────────────────────────────── */
.nexgen-text-box {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: transform .2s, box-shadow .2s, background .2s;
    position: relative;
    overflow: hidden;
}

/* Box Styles */
.nexgen-text-box-capsule  { border-radius: 99px; padding: 1.25rem 2rem; }
.nexgen-text-box-tag      { border-radius: 0 4px 4px 0; border-left: 4px solid var(--nexgen-primary,#3b82f6); }
.nexgen-text-box-flag::before { content:''; position:absolute; right:-12px; top:0; bottom:0; width:24px; background: var(--nexgen-primary,#3b82f6); clip-path: polygon(0 0, 0 100%, 100% 50%); }
.nexgen-text-box-shield   { border-radius: 0 0 50% 50% / 0 0 30% 30%; }
.nexgen-text-box-ticket   { border-left: 6px solid var(--nexgen-primary,#3b82f6); border-radius: 2px; }
.nexgen-text-box-note::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--nexgen-primary,#3b82f6); }
.nexgen-text-box-minimal  { border: none; box-shadow: none; background: transparent; padding-left: 0; padding-right: 0; }
.nexgen-text-box-sentence { border: none; box-shadow: none; background: transparent; font-style: italic; }
.nexgen-text-box-profile  { text-align: center; padding-top: 2.5rem; }
.nexgen-text-box-nautilus { border-radius: 50% 4px 50% 4px; }

/* Layouts */
.nexgen-tb-layout-icon-top  { display: flex; flex-direction: column; gap: 1rem; }
.nexgen-tb-layout-icon-left  { display: flex; flex-direction: row; align-items: flex-start; gap: 1.25rem; }
.nexgen-tb-layout-icon-right { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 1.25rem; }

/* Icon wrap */
.nexgen-tb-icon { flex-shrink: 0; }
.nexgen-tb-icon-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
    font-size: 1.5rem;
    transition: transform .2s, background .2s;
}
.nexgen-icon-shape-square  .nexgen-tb-icon-wrap { border-radius: 8px; }
.nexgen-icon-shape-hexagon .nexgen-tb-icon-wrap { clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); border-radius: 0; }
.nexgen-icon-style-outline .nexgen-tb-icon-wrap { background: transparent; border: 2px solid var(--nexgen-primary,#3b82f6); color: var(--nexgen-primary,#3b82f6); }
.nexgen-icon-style-alpha   .nexgen-tb-icon-wrap { background: rgba(59,130,246,.12); color: var(--nexgen-primary,#3b82f6); }

.nexgen-tb-title    { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 700; }
.nexgen-tb-desc     { font-size: .9rem; line-height: 1.65; color: #6b7280; margin: 0; }
.nexgen-tb-readmore { display: inline-block; margin-top: .75rem; font-size: .875rem; font-weight: 600; color: var(--nexgen-primary,#3b82f6); }
.nexgen-tb-icon-text { font-size: 1.5rem; font-weight: 800; line-height: 1; }

/* Hover effects */
.nexgen-tb-hover-lift:hover        { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.nexgen-tb-hover-glow:hover        { box-shadow: 0 0 0 3px var(--nexgen-primary,#3b82f6); }
.nexgen-tb-hover-border-grow:hover { border-color: var(--nexgen-primary,#3b82f6); }
.nexgen-tb-hover-icon-zoom:hover .nexgen-tb-icon-wrap { transform: scale(1.15) rotate(5deg); }

/* ── Chart / Diagram ─────────────────────────────────────────────────────── */
.nexgen-chart { display: flex; flex-direction: column; gap: 1rem; }
.nexgen-chart-circle { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.nexgen-chart-donut  { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }

/* Boxed styles */
.nexgen-chart-boxed-light { background: #f8fafc; padding: 1.5rem; border-radius: 12px; }
.nexgen-chart-boxed-dark  { background: #1e293b; padding: 1.5rem; border-radius: 12px; color: #f1f5f9; }
.nexgen-chart-boxed-dark .nexgen-chart-track { background: #334155; }
.nexgen-chart-boxed-dark .nexgen-chart-label { color: #cbd5e1; }

/* Bars */
.nexgen-chart-item { display: flex; flex-direction: column; gap: .4rem; }
.nexgen-chart-header { display: flex; justify-content: space-between; align-items: center; }
.nexgen-chart-label { font-size: .9rem; font-weight: 500; color: #374151; }
.nexgen-chart-pct   { font-size: .85rem; font-weight: 700; color: var(--nexgen-primary,#3b82f6); min-width: 2.5rem; text-align: right; }
.nexgen-chart-track { height: 10px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.nexgen-chart-fill  { height: 100%; background: var(--chart-item-color, var(--nexgen-primary,#3b82f6)); border-radius: 99px; transition: width 1.2s ease-out; }

/* Vertical bar */
.nexgen-chart-bar-vertical { flex-direction: row; align-items: flex-end; gap: 1rem; }
.nexgen-chart-bar-vertical .nexgen-chart-item { flex-direction: column-reverse; align-items: center; }
.nexgen-chart-bar-vertical .nexgen-chart-header { flex-direction: column; gap: .25rem; }
.nexgen-chart-bar-vertical .nexgen-chart-track { width: 40px; height: 200px; flex-direction: column-reverse; display: flex; }
.nexgen-chart-bar-vertical .nexgen-chart-fill  { width: 100%; height: 0; transition: height 1.2s ease-out; }

/* Circle */
.nexgen-chart-circle-item,
.nexgen-chart-donut .nexgen-chart-circle-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.nexgen-chart-svg-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.nexgen-chart-svg { display: block; }
.nexgen-chart-svg-track { stroke: #e5e7eb; }
.nexgen-chart-svg-fill  { stroke: var(--chart-item-color, var(--nexgen-primary,#3b82f6)); transition: stroke-dasharray 1.2s ease-out; }
.nexgen-circle-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--nexgen-primary,#3b82f6);
    line-height: 1;
}
.nexgen-circle-number { display: inline; }

/* ── Image Compare ───────────────────────────────────────────────────────── */
.nexgen-before-after {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
    user-select: none;
    touch-action: none;
}

.nexgen-ba-after,
.nexgen-ba-before {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.nexgen-ba-after { z-index: 1; }
.nexgen-ba-before { z-index: 2; width: 50%; }

.nexgen-ba-horizontal .nexgen-ba-before { width: 50%; height: 100%; }
.nexgen-ba-vertical   .nexgen-ba-before { width: 100%; height: 50%; }

.nexgen-ba-after img,
.nexgen-ba-before img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    max-width: none;
}

/* Labels */
.nexgen-ba-label {
    position: absolute;
    z-index: 10;
    padding: .3rem .75rem;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 4px;
}
.nexgen-ba-labels-corner .nexgen-ba-label-before { top: 1rem; left: 1rem; }
.nexgen-ba-labels-corner .nexgen-ba-label-after  { top: 1rem; right: 1rem; }
.nexgen-ba-labels-side   .nexgen-ba-label-before { top: 50%; left: 1rem; transform: translateY(-50%); }
.nexgen-ba-labels-side   .nexgen-ba-label-after  { top: 50%; right: 1rem; transform: translateY(-50%); }

/* Divider */
.nexgen-ba-divider {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nexgen-ba-vertical .nexgen-ba-divider {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    cursor: ns-resize;
    flex-direction: column;
}

/* Handle */
.nexgen-ba-handle {
    position: relative;
    z-index: 6;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    flex-shrink: 0;
    transition: transform .15s;
}
.nexgen-ba-handle:hover,
.nexgen-ba-divider:focus .nexgen-ba-handle { transform: scale(1.1); }
.nexgen-ba-handle svg { width: 60%; height: 60%; color: var(--nexgen-primary,#3b82f6); }

.nexgen-ba-handle-line .nexgen-ba-handle     { display: none; }
.nexgen-ba-handle-rounded .nexgen-ba-handle  { border-radius: 8px; }
.nexgen-ba-handle-none .nexgen-ba-handle     { display: none; }
.nexgen-ba-handle-none .nexgen-ba-divider    { cursor: crosshair; }

/* ── Google Maps Enhanced ────────────────────────────────────────────────── */
.nexgen-map-outer { position: relative; }
.nexgen-map-wrap  { position: relative; border-radius: 12px; overflow: hidden; }

/* Border styles */
.nexgen-map-border-solid  { border: 4px solid #e5e7eb; }
.nexgen-map-border-dashed { border: 4px dashed #e5e7eb; }
.nexgen-map-border-shadow { box-shadow: 0 8px 40px rgba(0,0,0,.15); }
.nexgen-map-border-inset  { box-shadow: inset 0 0 0 8px rgba(255,255,255,.5), 0 4px 24px rgba(0,0,0,.15); }

/* Info box */
.nexgen-map-info-box {
    position: absolute;
    z-index: 10;
    top: 1.5rem;
    left: 1.5rem;
    min-width: 240px;
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    padding: 1.5rem;
}
.nexgen-map-has-info.nexgen-map-info-right .nexgen-map-info-box { left: auto; right: 1.5rem; }
.nexgen-map-has-info.nexgen-map-info-center .nexgen-map-info-box { left: 50%; transform: translateX(-50%); }
.nexgen-map-info-title { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; border-bottom: 2px solid var(--nexgen-primary,#3b82f6); padding-bottom: .5rem; }
.nexgen-map-info-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.nexgen-map-info-item  { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; line-height: 1.5; }
.nexgen-map-info-icon  { flex-shrink: 0; color: var(--nexgen-primary,#3b82f6); margin-top: .1rem; }
.nexgen-map-info-item a { color: #374151; text-decoration: none; }
.nexgen-map-info-item a:hover { color: var(--nexgen-primary,#3b82f6); text-decoration: underline; }

@media (max-width: 600px) {
    .nexgen-map-info-box { position: static; max-width: 100%; margin-top: 1rem; border-radius: 8px; }
}

/* ── Clients / Logo Grid ─────────────────────────────────────────────────── */
.nexgen-clients-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}
.nexgen-clients-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-clients-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexgen-clients-cols-4 { grid-template-columns: repeat(4, 1fr); }
.nexgen-clients-cols-5 { grid-template-columns: repeat(5, 1fr); }
.nexgen-clients-cols-6 { grid-template-columns: repeat(6, 1fr); }

.nexgen-client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.nexgen-client-item img {
    max-width: 100%;
    height: auto;
    transition: filter .25s, opacity .25s, transform .2s;
    display: block;
}
.nexgen-clients-grayscale .nexgen-client-item img { filter: grayscale(1); opacity: .6; }
.nexgen-clients-grayscale .nexgen-client-item:hover img { filter: none; opacity: 1; }

/* Bordered style */
.nexgen-clients-bordered .nexgen-client-item { border: 1px solid #e5e7eb; border-radius: 8px; }
.nexgen-clients-boxed .nexgen-client-item { background: #f8fafc; border-radius: 8px; }

/* Hover: zoom */
.nexgen-client-item:hover img { transform: scale(1.05); }

/* Client link */
.nexgen-client-link { display: block; text-decoration: none; }

/* Carousel */
.nexgen-clients-carousel .swiper { overflow: hidden; }
.nexgen-clients-carousel .swiper-slide { display: flex; align-items: center; justify-content: center; }

@media (max-width: 767px) {
    .nexgen-clients-cols-5, .nexgen-clients-cols-6 { grid-template-columns: repeat(3, 1fr); }
    .nexgen-clients-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Counter Enhanced ────────────────────────────────────────────────────── */
.nexgen-counters-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
}
.nexgen-counters-grid.nexgen-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-counters-grid.nexgen-cols-3 { grid-template-columns: repeat(3, 1fr); }

.nexgen-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
}

.nexgen-counter-style-default .nexgen-counter-item { border-bottom: 3px solid var(--nexgen-primary,#3b82f6); padding-bottom: 1.25rem; }
.nexgen-counter-style-boxed   .nexgen-counter-item { background: #f8fafc; border-radius: 12px; padding: 1.75rem 1.25rem; }
.nexgen-counter-style-icon-top .nexgen-counter-item { padding: 1.25rem; }

.nexgen-counter-icon { font-size: 2.5rem; color: var(--nexgen-primary,#3b82f6); line-height: 1; }
.nexgen-counter-icon svg { width: 1em; height: 1em; }

.nexgen-counter-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--nexgen-primary,#3b82f6);
    display: flex;
    align-items: baseline;
    gap: .15rem;
}
.counter-prefix, .counter-suffix { font-size: .65em; font-weight: 600; }
.counter-prefix { align-self: flex-start; }

.nexgen-counter-label { font-size: .9rem; font-weight: 500; color: #6b7280; margin: 0; }
.nexgen-counter-divider { width: 40px; height: 3px; background: var(--nexgen-primary,#3b82f6); border-radius: 99px; }

@media (max-width: 767px) {
    .nexgen-counters-grid { grid-template-columns: repeat(2, 1fr); }
    .nexgen-counters-grid.nexgen-cols-2 { grid-template-columns: repeat(1, 1fr); }
}

/* ── Quickfinder / Feature Box ───────────────────────────────────────────── */
.nexgen-quickfinders { display: grid; gap: 1.5rem; }
.nexgen-qf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-qf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexgen-qf-cols-4 { grid-template-columns: repeat(4, 1fr); }
.nexgen-qf-full   { grid-template-columns: 1fr; }

.nexgen-qf-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    align-items: flex-start;
}
.nexgen-qf-style-icon-top .nexgen-qf-item { flex-direction: column; }
.nexgen-qf-style-centered .nexgen-qf-item { flex-direction: column; align-items: center; text-align: center; }
.nexgen-qf-style-bordered .nexgen-qf-item { border: 2px solid var(--nexgen-primary,#3b82f6); }
.nexgen-qf-style-dark     .nexgen-qf-item { background: #1e293b; border-color: #334155; color: #f1f5f9; }
.nexgen-qf-style-ghost    .nexgen-qf-item { background: transparent; box-shadow: none; }
.nexgen-qf-style-minimal  .nexgen-qf-item { border: none; background: transparent; box-shadow: none; padding: 1rem 0; border-bottom: 1px solid #e5e7eb; }

.nexgen-qf-item:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.nexgen-qf-style-minimal .nexgen-qf-item:hover { transform: none; box-shadow: none; }

.nexgen-qf-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    transition: transform .2s;
}
.nexgen-qf-item:hover .nexgen-qf-icon { transform: rotate(-5deg) scale(1.08); }
.nexgen-qf-icon svg { width: 1em; height: 1em; }

.nexgen-qf-icon-outline { background: transparent; border: 2px solid var(--nexgen-primary,#3b82f6); color: var(--nexgen-primary,#3b82f6); }
.nexgen-qf-icon-alpha   { background: rgba(59,130,246,.12); color: var(--nexgen-primary,#3b82f6); }

.nexgen-qf-body {}
.nexgen-qf-number { font-size: 2rem; font-weight: 800; color: var(--nexgen-primary,#3b82f6); line-height: 1; margin-bottom: .25rem; opacity: .3; }
.nexgen-qf-title  { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.nexgen-qf-desc   { margin: 0; font-size: .875rem; line-height: 1.65; color: #6b7280; }
.nexgen-qf-link   { display: inline-block; margin-top: .75rem; font-size: .875rem; font-weight: 600; color: var(--nexgen-primary,#3b82f6); text-decoration: none; }
.nexgen-qf-link:hover { text-decoration: underline; }
.nexgen-qf-style-dark .nexgen-qf-desc { color: #94a3b8; }

/* Accent line */
.nexgen-qf-style-accent-line .nexgen-qf-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--nexgen-primary,#3b82f6);
    border-radius: 0 0 12px 12px;
    transform: scaleX(0);
    transition: transform .25s;
}
.nexgen-qf-style-accent-line .nexgen-qf-item:hover::before { transform: scaleX(1); }

@media (max-width: 767px) {
    .nexgen-qf-cols-3, .nexgen-qf-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .nexgen-qf-cols-2 { grid-template-columns: 1fr; }
}

/* ── Team Grid Enhanced ──────────────────────────────────────────────────── */
.nexgen-team-grid {
    display: grid;
    gap: 1.5rem;
}
.nexgen-team-grid.nexgen-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-team-grid.nexgen-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexgen-team-grid.nexgen-cols-4 { grid-template-columns: repeat(4, 1fr); }
.nexgen-team-grid.nexgen-cols-5 { grid-template-columns: repeat(5, 1fr); }

.nexgen-team-member { overflow: hidden; }

/* Standard */
.nexgen-team-style-standard .nexgen-team-member { border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; }
.nexgen-team-style-standard .nexgen-team-photo  { overflow: hidden; aspect-ratio: 1; }
.nexgen-team-style-standard .nexgen-team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nexgen-team-style-standard .nexgen-team-member:hover .nexgen-team-photo img { transform: scale(1.05); }
.nexgen-team-style-standard .nexgen-team-info { padding: 1.25rem; }

/* Overlay */
.nexgen-team-style-overlay .nexgen-team-member { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: .75; }
.nexgen-team-style-overlay .nexgen-team-photo  { position: absolute; inset: 0; }
.nexgen-team-style-overlay .nexgen-team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nexgen-team-style-overlay .nexgen-team-member:hover .nexgen-team-photo img { transform: scale(1.08); }
.nexgen-team-style-overlay .nexgen-team-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
    color: #fff;
    transform: translateY(50px);
    transition: transform .3s;
}
.nexgen-team-style-overlay .nexgen-team-member:hover .nexgen-team-info { transform: none; }
.nexgen-team-style-overlay .nexgen-team-name { color: #fff; }
.nexgen-team-style-overlay .nexgen-team-role { color: rgba(255,255,255,.75); }

/* Card */
.nexgen-team-style-card .nexgen-team-member  { border-radius: 12px; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.08); transition: box-shadow .25s, transform .25s; text-align: center; }
.nexgen-team-style-card .nexgen-team-member:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.nexgen-team-style-card .nexgen-team-photo  { overflow: hidden; border-radius: 12px 12px 0 0; }
.nexgen-team-style-card .nexgen-team-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.nexgen-team-style-card .nexgen-team-info { padding: 1.25rem; }

/* Grayscale */
.nexgen-team-grayscale .nexgen-team-photo img { filter: grayscale(1); }
.nexgen-team-grayscale .nexgen-team-member:hover .nexgen-team-photo img { filter: none; }

/* Common info elements */
.nexgen-team-name  { margin: 0 0 .2rem; font-size: 1rem; font-weight: 700; }
.nexgen-team-role  { display: block; font-size: .8rem; color: var(--nexgen-primary,#3b82f6); font-weight: 500; margin-bottom: .5rem; }
.nexgen-team-bio   { font-size: .85rem; color: #6b7280; margin: .5rem 0 0; line-height: 1.5; }
.nexgen-team-phone, .nexgen-team-email { display: block; font-size: .8rem; color: #6b7280; text-decoration: none; }
.nexgen-team-phone:hover, .nexgen-team-email:hover { color: var(--nexgen-primary,#3b82f6); }

/* Social */
.nexgen-team-social { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; justify-content: center; }
.nexgen-team-social a {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #374151;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.nexgen-team-social a:hover { background: var(--nexgen-primary,#3b82f6); color: #fff; }

.nexgen-team-style-overlay .nexgen-team-social {
    position: absolute; top: 1rem; right: 1rem;
    flex-direction: column;
    transform: translateX(50px);
    transition: transform .3s;
}
.nexgen-team-style-overlay .nexgen-team-member:hover .nexgen-team-social { transform: none; }

@media (max-width: 767px) {
    .nexgen-team-grid.nexgen-cols-4,
    .nexgen-team-grid.nexgen-cols-5 { grid-template-columns: repeat(2, 1fr); }
    .nexgen-team-grid.nexgen-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Testimonials Enhanced ───────────────────────────────────────────────── */
/* Bubble */
.nexgen-testimonial-style-bubble .nexgen-testimonial {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1px solid #e5e7eb;
}
.nexgen-testimonial-style-bubble .nexgen-testimonial::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 2rem;
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
}
.nexgen-testimonial-style-bubble .nexgen-testimonial-author { margin-top: 1.5rem; }

/* Card */
.nexgen-testimonial-style-card .nexgen-testimonial {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.nexgen-testimonial-style-card .nexgen-testimonial-author { margin-top: auto; padding-top: 1.25rem; }

/* Minimal */
.nexgen-testimonial-style-minimal .nexgen-testimonial { padding: 1rem 0; border-bottom: 1px solid #e5e7eb; }

/* Centered */
.nexgen-testimonial-style-centered .nexgen-testimonial { text-align: center; padding: 2rem; }
.nexgen-testimonial-style-centered .nexgen-testimonial-author { justify-content: center; }
.nexgen-testimonial-style-centered .nexgen-rating { justify-content: center; }

/* Common */
.nexgen-quote-icon { font-size: 3rem; line-height: 1; color: var(--nexgen-primary,#3b82f6); opacity: .3; display: block; margin-bottom: -.5rem; font-family: Georgia, serif; }
.nexgen-rating { display: flex; gap: .15rem; margin-bottom: .75rem; }
.nexgen-star { font-size: .9rem; color: #d1d5db; }
.nexgen-star.filled { color: #f59e0b; }
.nexgen-testimonial-content { font-size: .95rem; line-height: 1.7; color: #4b5563; margin: .5rem 0; }
.nexgen-testimonial-author {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.nexgen-testimonial-photo {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.nexgen-author-info { display: flex; flex-direction: column; }
.nexgen-author-name { font-weight: 700; font-size: .9rem; }
.nexgen-author-role { font-size: .8rem; color: #6b7280; }

/* Grid */
.nexgen-testimonials-grid { display: grid; gap: 1.5rem; }
.nexgen-testimonials-grid.nexgen-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-testimonials-grid.nexgen-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Posts Grid Enhanced ─────────────────────────────────────────────────── */
.nexgen-posts-grid { display: grid; gap: 1.5rem; }
.nexgen-posts-cols-1 { grid-template-columns: 1fr; }
.nexgen-posts-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-posts-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexgen-posts-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* List layout */
.nexgen-posts-list .nexgen-post-card { display: flex; gap: 1.25rem; }
.nexgen-posts-list .nexgen-post-card .nexgen-post-thumb { flex: 0 0 220px; }
.nexgen-posts-list .nexgen-post-card .nexgen-post-body  { flex: 1; }

/* Masonry */
.nexgen-posts-masonry { columns: 3; column-gap: 1.5rem; }
.nexgen-posts-masonry .nexgen-post-card { break-inside: avoid; margin-bottom: 1.5rem; }

/* Justified (equal height rows) */
.nexgen-posts-justified { display: flex; flex-wrap: wrap; }
.nexgen-posts-justified .nexgen-post-card { flex: 1 1 300px; }

/* Card styles */
.nexgen-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.nexgen-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }

/* Overlay style */
.nexgen-post-card.nexgen-card-overlay { position: relative; min-height: 300px; }
.nexgen-post-card.nexgen-card-overlay .nexgen-post-thumb { position: absolute; inset: 0; border-radius: 10px; }
.nexgen-post-card.nexgen-card-overlay .nexgen-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nexgen-post-card.nexgen-card-overlay .nexgen-post-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    color: #fff;
    border-radius: 0 0 10px 10px;
}
.nexgen-post-card.nexgen-card-overlay .nexgen-post-title a,
.nexgen-post-card.nexgen-card-overlay .nexgen-post-meta { color: rgba(255,255,255,.85); }

.nexgen-post-thumb { overflow: hidden; aspect-ratio: 16/9; }
.nexgen-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.nexgen-post-card:hover .nexgen-post-thumb img { transform: scale(1.05); }

.nexgen-post-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }

.nexgen-post-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.nexgen-post-cat-link {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    background: var(--nexgen-primary,#3b82f6); color: #fff;
    padding: .2rem .6rem; border-radius: 4px; text-decoration: none;
}
.nexgen-post-title { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.nexgen-post-title a { text-decoration: none; color: inherit; }
.nexgen-post-title a:hover { color: var(--nexgen-primary,#3b82f6); }
.nexgen-post-meta { font-size: .78rem; color: #9ca3af; display: flex; gap: .75rem; align-items: center; }
.nexgen-post-excerpt { font-size: .875rem; color: #6b7280; line-height: 1.65; margin: 0; flex: 1; }
.nexgen-post-readmore { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; font-weight: 600; color: var(--nexgen-primary,#3b82f6); text-decoration: none; margin-top: auto; }
.nexgen-post-readmore:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .nexgen-posts-cols-3, .nexgen-posts-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .nexgen-posts-masonry { columns: 2; }
}
@media (max-width: 480px) {
    .nexgen-posts-cols-2, .nexgen-posts-cols-3, .nexgen-posts-cols-4 { grid-template-columns: 1fr; }
    .nexgen-posts-masonry { columns: 1; }
    .nexgen-posts-list .nexgen-post-card { flex-direction: column; }
    .nexgen-posts-list .nexgen-post-card .nexgen-post-thumb { flex: none; }
}

/* ── Class aliases (match PHP widget output) ─────────────────────────────── */

/* Counter: .nexgen-counters alias for .nexgen-counters-grid */
.nexgen-counters {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
}
.nexgen-counter-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-counter-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexgen-counter-cols-4 { grid-template-columns: repeat(4, 1fr); }
.nexgen-counter-dividers .nexgen-counter-item { border-right: 1px solid #e5e7eb; }
.nexgen-counter-dividers .nexgen-counter-item:last-child { border-right: none; }
@media (max-width: 767px) {
    .nexgen-counters { grid-template-columns: repeat(2, 1fr); }
    .nexgen-counter-cols-2 { grid-template-columns: 1fr; }
}

/* Quickfinder: .nexgen-qf-grid alias for .nexgen-quickfinders */
.nexgen-qf-grid {
    display: grid;
    gap: 1.5rem;
}
.nexgen-qf-grid.nexgen-qf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-qf-grid.nexgen-qf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexgen-qf-grid.nexgen-qf-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Quickfinder icon-position */
.nexgen-qf-icon-top .nexgen-qf-item { flex-direction: column; }
.nexgen-qf-icon-left .nexgen-qf-item { flex-direction: row; }

/* Quickfinder style variants */
.nexgen-qf-style-icon-boxed .nexgen-qf-icon { background: var(--qf-accent, var(--nexgen-primary,#3b82f6)); }
.nexgen-qf-style-card .nexgen-qf-item { box-shadow: 0 4px 16px rgba(0,0,0,.08); border: none; }
.nexgen-qf-style-numbered .nexgen-qf-number { opacity: 1; }
.nexgen-qf-style-accent-line .nexgen-qf-item { border-top: 3px solid var(--qf-accent, var(--nexgen-primary,#3b82f6)); }
.nexgen-qf-style-accent-line .nexgen-qf-item::before { display: none; }

/* Quickfinder hover effects */
.nexgen-qf-hover-none .nexgen-qf-item:hover { transform: none; box-shadow: none; }
.nexgen-qf-hover-glow .nexgen-qf-item:hover  { box-shadow: 0 0 0 3px var(--qf-accent, var(--nexgen-primary,#3b82f6)); }
.nexgen-qf-hover-scale .nexgen-qf-item:hover { transform: scale(1.02); }

@media (max-width: 767px) {
    .nexgen-qf-grid.nexgen-qf-cols-3,
    .nexgen-qf-grid.nexgen-qf-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .nexgen-qf-grid.nexgen-qf-cols-2 { grid-template-columns: 1fr; }
}

/* Posts grid: .nexgen-pg-* classes from the widget */
.nexgen-posts-grid.nexgen-pg-cols-1 { grid-template-columns: 1fr; }
.nexgen-posts-grid.nexgen-pg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.nexgen-posts-grid.nexgen-pg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.nexgen-posts-grid.nexgen-pg-cols-4 { grid-template-columns: repeat(4, 1fr); }

.nexgen-pg-layout-list  { grid-template-columns: 1fr !important; }
.nexgen-pg-layout-list  .nexgen-pg-card { flex-direction: row; }
.nexgen-pg-layout-list  .nexgen-pg-thumb { flex: 0 0 260px; }

.nexgen-pg-layout-masonry { columns: 3; column-gap: 1.5rem; display: block; }
.nexgen-pg-layout-masonry .nexgen-pg-card { break-inside: avoid; margin-bottom: 1.5rem; }

.nexgen-pg-layout-justified { display: flex !important; flex-wrap: wrap; }
.nexgen-pg-layout-justified .nexgen-pg-card { flex: 1 1 280px; }

.nexgen-pg-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.nexgen-pg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }

.nexgen-pg-thumb {
    display: block;
    overflow: hidden;
    position: relative;
}
.nexgen-pg-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}
.nexgen-pg-card:hover .nexgen-pg-thumb img { transform: scale(1.05); }

.nexgen-pg-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.nexgen-pg-cats { display: flex; flex-wrap: wrap; gap: .35rem; }
.nexgen-pg-cats a, .nexgen-pg-cat-tag {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    background: var(--nexgen-primary,#3b82f6); color: #fff;
    padding: .18rem .55rem; border-radius: 4px; text-decoration: none;
}
.nexgen-pg-title { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.nexgen-pg-title a { color: inherit; text-decoration: none; }
.nexgen-pg-title a:hover { color: var(--nexgen-primary,#3b82f6); }
.nexgen-pg-meta { font-size: .78rem; color: #9ca3af; display: flex; gap: .5rem; }
.nexgen-pg-excerpt { font-size: .875rem; color: #6b7280; line-height: 1.65; margin: 0; flex: 1; }
.nexgen-pg-readmore {
    display: inline-flex; font-size: .875rem; font-weight: 600;
    color: var(--nexgen-primary,#3b82f6); text-decoration: none;
    margin-top: auto; padding: .35rem .85rem; border: 1px solid currentColor; border-radius: 6px;
}
.nexgen-pg-readmore:hover { background: var(--nexgen-primary,#3b82f6); color: #fff; }

/* Overlay card */
.nexgen-pg-style-overlay .nexgen-pg-card { position: relative; min-height: 300px; }
.nexgen-pg-style-overlay .nexgen-pg-thumb { position: absolute; inset: 0; padding-bottom: 0 !important; border-radius: 10px; }
.nexgen-pg-style-overlay .nexgen-pg-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
    color: #fff; border-radius: 0 0 10px 10px;
}
.nexgen-pg-style-overlay .nexgen-pg-title a,
.nexgen-pg-style-overlay .nexgen-pg-meta { color: rgba(255,255,255,.85); }

/* Minimal card */
.nexgen-pg-style-minimal .nexgen-pg-card { border: none; border-radius: 0; border-bottom: 1px solid #e5e7eb; box-shadow: none; }
.nexgen-pg-style-minimal .nexgen-pg-card:hover { transform: none; box-shadow: none; }

/* Load more / pagination */
.nexgen-pg-loadmore-wrap, .nexgen-gf-loadmore-wrap { text-align: center; margin-top: 2rem; }
.nexgen-pg-pagination { text-align: center; margin-top: 2rem; }
.nexgen-pg-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 6px;
    text-decoration: none; color: inherit; border: 1px solid #e5e7eb; transition: .2s;
}
.nexgen-pg-pagination .page-numbers.current,
.nexgen-pg-pagination .page-numbers:hover { background: var(--nexgen-primary,#3b82f6); color: #fff; border-color: var(--nexgen-primary,#3b82f6); }

@media (max-width: 767px) {
    .nexgen-posts-grid.nexgen-pg-cols-3,
    .nexgen-posts-grid.nexgen-pg-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .nexgen-pg-layout-masonry { columns: 2; }
    .nexgen-pg-layout-list .nexgen-pg-card { flex-direction: column; }
    .nexgen-pg-layout-list .nexgen-pg-thumb { flex: none; }
}
@media (max-width: 480px) {
    .nexgen-posts-grid.nexgen-pg-cols-2,
    .nexgen-posts-grid.nexgen-pg-cols-3,
    .nexgen-posts-grid.nexgen-pg-cols-4 { grid-template-columns: 1fr; }
    .nexgen-pg-layout-masonry { columns: 1; }
}

/* ── Grid Filter ─────────────────────────────────────────────────────────── */
.nexgen-gf-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}
.nexgen-gf-align-center { justify-content: center; }
.nexgen-gf-align-right  { justify-content: flex-end; }
.nexgen-gf-align-left   { justify-content: flex-start; }

.nexgen-gf-btn {
    display: inline-flex; align-items: center;
    padding: .45rem 1.1rem;
    border: 1px solid #d1d5db; border-radius: 6px;
    background: transparent; font-size: .875rem; font-weight: 500;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
    color: #374151;
}
.nexgen-gf-btn:hover { border-color: var(--nexgen-primary,#3b82f6); color: var(--nexgen-primary,#3b82f6); }
.nexgen-gf-btn.active { background: var(--nexgen-primary,#3b82f6); color: #fff; border-color: var(--nexgen-primary,#3b82f6); }

.nexgen-gf-pill .nexgen-gf-btn { border-radius: 99px; }

.nexgen-gf-underline .nexgen-gf-bar { border-bottom: 2px solid #e5e7eb; gap: 0; }
.nexgen-gf-underline .nexgen-gf-btn { border: none; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -2px; padding: .5rem .85rem; }
.nexgen-gf-underline .nexgen-gf-btn:hover,
.nexgen-gf-underline .nexgen-gf-btn.active { background: transparent; color: var(--nexgen-primary,#3b82f6); border-bottom-color: var(--nexgen-primary,#3b82f6); }

.nexgen-gf-boxed .nexgen-gf-btn { border-radius: 0; }
.nexgen-gf-boxed .nexgen-gf-bar { border-bottom: 1px solid #e5e7eb; gap: 0; }

.nexgen-gf-select {
    padding: .5rem 1rem; border: 1px solid #d1d5db;
    border-radius: 6px; font-size: .9rem; min-width: 180px;
}

.nexgen-gf-grid {
    display: grid;
    gap: 1.5rem;
}
.nexgen-pg-cols-2.nexgen-gf-grid { grid-template-columns: repeat(2, 1fr); }
.nexgen-pg-cols-3.nexgen-gf-grid { grid-template-columns: repeat(3, 1fr); }
.nexgen-pg-cols-4.nexgen-gf-grid { grid-template-columns: repeat(4, 1fr); }

.nexgen-gf-item { transition: opacity .3s, transform .3s; }
.nexgen-gf-item.nexgen-gf-hidden { display: none; }

@keyframes nexgen-gf-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
    .nexgen-pg-cols-3.nexgen-gf-grid,
    .nexgen-pg-cols-4.nexgen-gf-grid { grid-template-columns: repeat(2, 1fr); }
    .nexgen-gf-btn { font-size: .8rem; padding: .35rem .8rem; }
}
@media (max-width: 480px) {
    .nexgen-pg-cols-2.nexgen-gf-grid,
    .nexgen-pg-cols-3.nexgen-gf-grid,
    .nexgen-pg-cols-4.nexgen-gf-grid { grid-template-columns: 1fr; }
}

/* ── Team Grid enhanced ───────────────────────────────────────────────────── */
.nexgen-team-contact { display: flex; flex-direction: column; gap: .35rem; margin-top: .75rem; }
.nexgen-team-phone,
.nexgen-team-email {
    display: flex; align-items: center; gap: .4rem;
    font-size: .85rem; color: #6b7280; text-decoration: none;
}
.nexgen-team-phone:hover, .nexgen-team-email:hover { color: var(--nexgen-primary,#3b82f6); }
.nexgen-team-photo-placeholder { width: 100%; padding-top: 100%; background: #e5e7eb; position: relative; }
.nexgen-team-photo-placeholder i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #9ca3af; }
