/* ======= HERO SLIDER STYLES ======= */
.slider-container {
  position: relative;
  width: 100%;
  height: 72vh;         /* tweak: less than full screen so not too tall */
  margin-top: 50px;
  min-height: 550px;
  max-height: 700px;
  overflow: hidden;
  z-index: 1;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  position: relative;
}

/* slide-item uses background-image for consistent cover behavior */
.slide-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 35%; /* tweak to shift crop down */
  background-repeat: no-repeat;
  display: block;
  position: relative;
}

/* keep an accessible <img> but visually hidden */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  pointer-events: none;
  user-select: none;
}

/* overlay & text */
.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 6, 0.447) 0%, rgba(6, 6, 6, 0.595) 60%, rgba(6, 6, 6, 0.737) 100%);
  z-index: 10;
  pointer-events: none;
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  z-index: 20;
  color: #fff;
  text-align: center;
  max-width: 86%;
  padding: 8px 12px;
}

.slider-content h1 { font-size: clamp(1.6rem, 4.6vw, 3rem); margin: 0 0 10px; line-height: 1.05; }
.slider-content p  { font-size: clamp(0.95rem, 2.1vw, 1.2rem); margin: 0 auto; color: rgba(255,255,255,0.95); }

/* arrows */
.slider-prev, .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.75);
  border: none;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  z-index: 30;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* improve rendering stability */
.slider, .slide-item {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}














/* Latest Updates */
.latest-updates { padding: 40px 20px; text-align:center; }
.latest-updates h2 { font-size: 28px; margin-bottom:18px; color:#07104a; }
.tabs-container { display:flex; gap:18px; justify-content:space-between; flex-wrap:wrap; }
.tab { flex:1; min-width:280px; background:#fff; padding:14px; border-radius:12px; box-shadow:0 6px 20px rgba(0,0,0,0.06); }
.tab h3 { margin:0 0 10px; color:#0b2a6b; font-size:18px; }

/* Carousel
   - slide height controlled by CSS variable for easy tuning.
   - images fill the slide with object-fit:cover (no stretching) */
.carousel {
  position:relative;
  overflow:hidden;
  height: var(--updates-slide-height, 190px); /* adjust default here */
  display:flex;
  align-items:center;
}

/* track & items keep the same sliding behaviour */
.carousel-track {
  display:flex;
  transition: transform .45s cubic-bezier(.22,.9,.28,1);
  width:100%;
  height:100%;
}

/* Each slide */
.carousel-item {
  flex: 0 0 100%;
  box-sizing:border-box;
  padding:0;                  /* remove inner padding so image can fill edge-to-edge */
  text-align:center;
  position:relative;          /* allows overlaying text */
  overflow:hidden;
  min-height: 0;
}

/* Make anchor (if present) cover whole tile so clicks work anywhere */
.carousel-item > a {
  display:block;
  width:100%;
  height:100%;
  color:inherit;
  text-decoration:none;
  position:relative; /* keep stacking context for children */
}

/* Image fills the entire slide area (cover mode crops but preserves aspect ratio) */
.carousel-item img {
  position: absolute;
  inset: 0;                   /* top:0;right:0;bottom:0;left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;          /* <-- key: fills container, cropping if needed */
  display: block;
  pointer-events: none;       /* ensure clicks go to anchors, not image */
  user-select: none;
}

/* Text overlay at the bottom of the slide */
.carousel-item .update-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.351) 0%, rgba(0, 0, 0, 0.529) 55%, rgba(0, 0, 0, 0.718) 100%);
  color: #fff;
  z-index: 2;
  box-sizing: border-box;
}

/* Title + excerpt inside overlay */
.carousel-item .update-text p {
  margin: 0 0 4px 0;
  font-weight: 700;
  font-size: 1rem;
}
.carousel-item .update-text small {
  display: block;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Fallback: if your markup doesn't use .update-text and uses p/small directly,
   position them as the overlay so you don't have to change HTML now. */
.carousel-item p,
.carousel-item small {
  /* only apply when .update-text is not present; these rules mirror the overlay */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  color: #fff;
  z-index: 2;
  box-sizing: border-box;
  margin: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.6) 100%);
}
.carousel-item small { margin-top: 6px; display:block; font-size:0.9rem; opacity:0.95; }

/* Prev/Next buttons (modern circle) - unchanged but kept on top of slides */
.carousel .prev, .carousel .next {
  position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.55); color:#fff; border:none;
  width:40px; height:40px; border-radius:50%; cursor:pointer; font-size:20px; line-height:1;
  display:flex; align-items:center; justify-content:center; z-index:5;
}
.carousel .prev { left:8px; }
.carousel .next { right:8px; }
.carousel .prev:hover, .carousel .next:hover { background:rgba(0,0,0,0.8); }

/* View more updates button */
.updates-view-more {
  text-align: center;
  margin: 40px 0 20px;
}

.btn-view-updates {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #111827, #2563eb);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-view-updates:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}




















/* ===============================
   Results Section Styles
   =============================== */
:root{
--bg: #f9f9f9;
--card-bg: #fff;
--muted: #666;
--text: #111;
--accent: #0077cc;
--accent-dark: #005fa3;
--shadow-1: 0 4px 10px rgba(0,0,0,0.08);
--shadow-2: 0 18px 40px rgba(12,12,40,0.08);
--radius-lg: 12px;
--radius-md: 8px;
--max-width: 1200px;
}

/* ===========================
Section & header
=========================== */
.results {
padding: 60px 20px;
background: var(--bg);
text-align: center;
box-sizing: border-box;
}

.results-header h2 {
font-size: 2rem;
margin: 0 0 18px;
color: var(--text);
line-height: 1.1;
font-weight: 700;
max-width: var(--max-width);
margin-left: auto;
margin-right: auto;
padding: 0 8px;
}

/* counters row */
.counters {
display: flex;
justify-content: center;
gap: 40px;
margin: 18px 0 36px;
flex-wrap: wrap;
align-items: baseline;
}

.counter {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 140px;
justify-content: center;
}

.counter .count {
font-size: 2rem;
font-weight: 800;
color: var(--accent);
line-height: 1;
}

.counter .plus {
font-size: 1.4rem;
color: var(--accent);
font-weight: 700;
line-height: 1;
}

.counter p {
margin: 0;
margin-left: 8px;
font-size: 0.95rem;
font-weight: 600;
color: #444;
line-height: 1.1;
}

/* ===========================
Carousel wrapper & gallery
(buttonless: touch-first horizontal scroll)
=========================== */

.results-gallery-wrapper {
position: relative;
display: block;
margin: 0 auto;
padding: 0;
max-width: var(--max-width);
box-sizing: border-box;
}

/* subtle left/right fade hints (toggled via .has-scroll on wrapper) */
.results-gallery-wrapper::before,
.results-gallery-wrapper::after {
content: "";
position: absolute;
top: 0;
bottom: 64px; /* keep room for indicator */
width: 64px;
pointer-events: none;
z-index: 6;
opacity: 0;
transition: opacity 220ms ease, transform 220ms ease;
}
.results-gallery-wrapper::before {
left: 0;
background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
transform: translateX(-6px);
}
.results-gallery-wrapper::after {
right: 0;
background: linear-gradient(-90deg, rgba(255,255,255,1), rgba(255,255,255,0));
transform: translateX(6px);
}
/* dark-mode support */
@media (prefers-color-scheme: dark) {
.results-gallery-wrapper::before,
.results-gallery-wrapper::after {
background: linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0));
}
.results-gallery-wrapper::after {
background: linear-gradient(-90deg, rgba(0,0,0,0.82), rgba(0,0,0,0));
}
}
/* visible when more content exists (JS toggles this class) */
.results-gallery-wrapper.has-scroll::before,
.results-gallery-wrapper.has-scroll::after {
opacity: 1;
transform: translateX(0);
}

/* The horizontally scrolling container */
.results-gallery {
display: flex;
gap: 20px;
align-items: stretch;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
padding: 18px 18px 56px; /* leave bottom space for indicator */
margin: 0;
box-sizing: border-box;
scroll-snap-type: x proximity; /* gentle snapping */
/* hide native scrollbars (non-invasive) */
-ms-overflow-style: none;
scrollbar-width: none;
}
.results-gallery::-webkit-scrollbar { display: none; }

/* Each card — base */
.result-card {
flex: 0 0 auto;
width: 220px;
background: var(--card-bg);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-1);
transition: transform 220ms ease, box-shadow 220ms ease;
scroll-snap-align: start;
display: flex;
flex-direction: column;
}
.result-card:hover,
.result-card:focus-within {
transform: translateY(-6px);
box-shadow: var(--shadow-2);
}

.result-card .card-media {
  width: 100%;
  height: 160px;           /* desktop thumbnail height (keeps consistent card sizes) */
  overflow: hidden;        /* prevents any stray background from showing */
  display: block;
  background: transparent; /* remove grey band origin */
}

/* The image itself — fills the container and crops cleanly (no visible background) */
.result-card .card-media img,
.result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills container, preserves aspect ratio (clean crop) */
  display: block;
  background: transparent; /* safety: ensure no background color behind the image */
}

/* card body */
.result-card .card-body,
.result-card p,
.result-card .excerpt {
padding: 12px;
color: #333;
font-size: 0.95rem;
line-height: 1.4;
margin: 0;
flex: 1 1 auto;
}

/* title */
.result-card .card-title {
font-size: 15px;
font-weight: 700;
color: var(--text);
margin: 8px 0 6px;
line-height: 1.2;
}

/* meta/badge */
.result-card .meta {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 6px;
}
.result-card .meta .badge {
display: inline-block;
font-size: 12px;
padding: 6px 8px;
border-radius: 999px;
background: #f1f6ff;
color: var(--accent-dark);
font-weight: 700;
}
/* card-body compact */
.result-card .card-body { padding: 10px; }

/* make link wrappers inert visually if you have overlay triggers (keeps cursor) */
.results-gallery .result-card .card-link,
.results-grid .result-card .card-link {
pointer-events: none;
cursor: default;
}

/* compatibility: keep anchor children inert too */
.results-gallery .result-card .card-link a,
.results-grid .result-card .card-link a { pointer-events: none; }

/* ===========================
Range indicator (drag to scroll)
=========================== */
.carousel-indicator {
display: block;
padding: 10px 18px 14px;
box-sizing: border-box;
background: transparent;
z-index: 10;
max-width: var(--max-width);
margin: 0 auto;
}

/* range track */
.carousel-range {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 8px;
border-radius: 999px;
background: rgba(0,0,0,0.06);
outline: none;
cursor: pointer;
transition: opacity 160ms ease, background 160ms ease;
--fill: 0%;
}

/* webkit track using CSS variable for fill */
.carousel-range::-webkit-slider-runnable-track {
height: 8px;
border-radius: 999px;
background: linear-gradient(90deg, rgba(0,119,204,0.9) 0%, rgba(0,119,204,0.9) var(--fill), rgba(0,0,0,0.06) var(--fill));
}

/* firefox track/progress */
.carousel-range::-moz-range-track {
height: 8px;
background: rgba(0,0,0,0.06);
border-radius: 999px;
}
.carousel-range::-moz-range-progress {
height: 8px;
background: rgba(0,119,204,0.9);
border-radius: 999px;
}

/* thumb styling */
.carousel-range::-webkit-slider-thumb {
-webkit-appearance: none;
width: 20px;
height: 20px;
margin-top: -6px;
background: #fff;
border-radius: 50%;
border: 3px solid rgba(0,119,204,0.95);
box-shadow: 0 6px 14px rgba(0,119,204,0.16);
}
.carousel-range::-moz-range-thumb {
width: 20px;
height: 20px;
background: #fff;
border-radius: 50%;
border: 3px solid rgba(0,119,204,0.95);
box-shadow: 0 6px 14px rgba(0,119,204,0.16);
}
.carousel-range:disabled { opacity: 0.5; cursor: default; }
.carousel-range { -webkit-tap-highlight-color: transparent; }

/* === Quick patch: hide legacy prev/next buttons and remove results background strip === */

/* hide any carousel buttons left behind in the markup */
.carousel-btn,
button.carousel-btn,
.results-gallery-wrapper > .carousel-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* ===========================
More Results card style
=========================== */
.results .more-results-card {
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
background: linear-gradient(135deg, #070067 0%, #3b00ff 100%);
color: #fff;
border-radius: var(--radius-lg);
padding: 18px;
box-sizing: border-box;
min-width: 200px;
transition: transform .28s cubic-bezier(.2,.9,.25,1),
box-shadow .28s ease,
opacity .28s ease,
background .28s ease;
will-change: transform, opacity;
outline: none;
border: none;
flex: 0 0 auto;
scroll-snap-align: start;
}

/* inner layout */
.results .more-results-card .more-inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
text-align: center;
transform: translateY(0);
opacity: 1;
transition: transform .28s cubic-bezier(.2,.9,.25,1), opacity .28s ease;
}

/* icon styling */
.results .more-results-card .more-icon {
font-size: 36px;
background: rgba(255,255,255,0.12);
width: 68px;
height: 68px;
display: grid;
place-items: center;
border-radius: 12px;
box-shadow: inset 0 -6px 10px rgba(0,0,0,0.06);
transition: transform .28s cubic-bezier(.2,.9,.25,1), opacity .18s ease;
}

/* text */
.results .more-results-card h3 {
margin: 0;
font-weight: 900;
font-size: 25px;
line-height: 1;
}
.results .more-results-card p {
margin: 0;
font-size: 0.95rem;
opacity: 0.95;
}

/* hover & focus */
.results .more-results-card:hover,
.results .more-results-card:focus {
transform: translateY(-8px);
box-shadow: var(--shadow-2);
}
.results .more-results-card:hover .more-inner,
.results .more-results-card:focus .more-inner {
transform: translateY(-6px);
opacity: 0.99;
}
.results .more-results-card:hover .more-icon,
.results .more-results-card:focus .more-icon {
transform: translateY(-3px) scale(1.03);
opacity: 0.98;
}

/* touch/active feedback */
.results .more-results-card:active,
.results .more-results-card.touch-active {
transform: translateY(0) scale(.985);
transition: transform .08s ease;
}
.results .more-results-card:active .more-inner,
.results .more-results-card.touch-active .more-inner {
transform: translateY(0);
}

/* keyboard visible focus */
.results .more-results-card:focus-visible {
box-shadow: 0 6px 20px rgba(3,0,179,0.18), 0 0 0 4px rgba(10,0,155,0.12);
outline: none;
}

/* ===========================
Overlay / modal styles
=========================== */
.card-overlay {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(6,8,26,0.6);
z-index: 9999;
padding: 24px;
opacity: 0;
pointer-events: none;
transition: opacity 220ms ease;
}
.card-overlay.active {
opacity: 1;
pointer-events: auto;
}
.overlay-content {
background: var(--card-bg);
border-radius: var(--radius-lg);
width: min(1100px, 96%);
max-height: 90vh;
overflow: auto;
box-shadow: 0 30px 80px rgba(9,10,35,0.35);
position: relative;
padding: 0;
transform: translateY(0);
}
.close-overlay {
position: absolute;
right: 12px;
top: 8px;
z-index: 2;
background: transparent;
border: none;
font-size: 28px;
line-height: 1;
padding: 6px 10px;
cursor: pointer;
color: #222;
}
.overlay-body { padding: 0; }

/* internal grid layout */
.overlay-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
align-items: start;
padding: 18px;
}
@media (max-width: 900px) {
.overlay-grid { grid-template-columns: 1fr; }
}
.overlay-media {
margin: 0;
width: 100%;
max-height: 70vh;
overflow: hidden;
display: flex;
align-items: stretch;
justify-content: center;
background: #f5f5f5;
}
.overlay-media img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

/* main column */
.overlay-main {
padding: 6px 2px 18px 2px;
}
.overlay-header { margin-bottom: 8px; }
.overlay-badge {
display: inline-block;
background: #eef6ff;
color: var(--accent-dark);
font-weight: 700;
padding: 6px 8px;
border-radius: 8px;
font-size: 12px;
margin-bottom: 6px;
}
.overlay-title {
margin: 6px 0 8px 0;
font-size: 1.4rem;
color: var(--text);
}
.overlay-loc { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.overlay-body-inner { color: #333; font-size: 1rem; line-height: 1.5; }

/* actions row */
.overlay-actions {
display: flex;
gap: 8px;
margin-top: 12px;
align-items: center;
}
.overlay-actions .btn {
display:inline-block;
padding: 8px 12px;
border-radius: 8px;
text-decoration: none;
border: 1px solid #ddd;
background: #fff;
color: #222;
}
.overlay-actions .view-page {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}

/* ===========================
Card typography and small tweaks
=========================== */
.result-card .card-title { font-size: 16px; line-height: 1.25; margin: 6px 0; }
.result-card .excerpt,
.result-card p { font-size: 13px; line-height: 1.45; margin: 0; }
.result-card .meta,
.result-card .meta .badge { font-size: 12px; }













/* Testimonials Section */
/* ---------- Testimonials (wrapper + visual) ---------- */
.testimonials-advanced {
  position: relative;
  padding: 40px 20px;
  background: url("/assets/images/TEESSIDE BUSINESS MANAGEMENT.jpg") center/cover no-repeat;
  overflow: hidden;
  color: #fff;
}

/* dim overlay */
.testimonials-advanced .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6); /* adjust opacity for dimming */
  z-index: 1;
}

.testimonials-advanced::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* this is the dim layer */
  z-index: 1;
}

/* title above overlay */
.testimonials-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

/* core wrapper (clip area) */
.testimonial-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;      /* IMPORTANT: hides overflow so slider moves inside */
  z-index: 2;
}

/* slider (flex row) — we DO NOT use CSS animation here */
.testimonial-slider {
  display: flex;
  gap: 40px;             /* horizontal spacing between cards */
  transform: translateX(0); /* managed by JS */
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

/* each card */
.testimonial-item {
  flex: 0 0 340px;       /* base card width; responsive below */
  display: flex;
  gap: 18px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  min-height: 130px;
}

.testimonial-item img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.testimonial-text p {
  margin: 0 0 8px 0;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
}

.testimonial-text h4 {
  margin: 0;
  font-weight: 700;
  color: #ffd86b;
  font-size: 0.95rem;
}

/* arrows (desktop) */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-btn:hover { background: rgba(255,255,255,0.22); }
.prev { left: 12px; }
.next { right: 12px; }


/* Testimonial CTA button */
.testimonials-header {
  position: relative;
  z-index: 2;              /* stays above overlay */
  text-align: center;
  margin-top: 32px;
}

.cta-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 30px;

  background: linear-gradient(135deg, #ffd86b, #f5b700);
  color: #1b1b1b;

  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-decoration: none;

  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* hover effect */
.cta-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, #ffe07f, #ffbf1f);
}

/* click feedback */
.cta-review:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* focus (accessibility) */
.cta-review:focus-visible {
  outline: 3px solid rgba(255,216,107,0.7);
  outline-offset: 4px;
}



































/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .results .more-results-card,
  .results .more-results-card .more-inner,
  .results .more-results-card .more-icon {
    transition: none !important;
    transform: none !important;
  }
}








/* === Responsiveness === */
/* OPTION B: recommended - show the real <img> and use object-fit:contain on small screens */
@media (max-width: 599px) {
  /* hide background-image (JS may still set it) so it doesn't compete visually */
  .slide-item { background-image: none !important; background-color: #000; }

  /* make the previously hidden image visible and scale it to fit */
  .slide-item img.sr-only {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    display: block !important;
    object-fit: contain;
    object-position: center center;
    clip: auto !important;
    overflow: visible !important;
    margin: 0;
  }

  .slider-container { height: 64vh; min-height: 320px; }
  .slider { align-items: center; } /* vertical center the image */











  .tabs-container { flex-direction:column; }
  .tab { width:100%; }
  .carousel { height:150px; }
  .carousel .prev, .carousel .next { width:36px; height:36px; font-size:18px; }

  .btn-view-updates {
    width: 90%;
    max-width: 320px;
    padding: 14px 20px;
    font-size: 15px;
  }









 .results { padding: 28px 12px; }
.results-header h2 { font-size: 1.4rem; margin-bottom: 14px; }
.counters { flex-direction: column; gap: 12px; margin-bottom: 18px; }

.counter .count { font-size: 1.8rem; }
.counter .plus { font-size: 1.2rem; }
.counter p { font-size: 0.95rem; }

.results-gallery { gap: 14px; padding: 8px 6px 56px; scroll-snap-type: x mandatory; }
.result-card { width: 50%; border-radius: 12px; }
.result-card .card-media img,
.result-card img { height: 100%; }

/* indicator adjustments */
.results-gallery-wrapper::before,
.results-gallery-wrapper::after { width: 42px; bottom: 56px; }
.carousel-indicator { padding: 8px 12px 10px; }
.carousel-range { height: 7px; }
.carousel-range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; border-width: 2px; }

/* overlay adjustments for small screens */
.card-overlay { padding: 0; }
.overlay-content { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; overflow-y: auto; }
.overlay-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
.overlay-media { max-height: 45vh; border-radius: 0; }
.overlay-main { padding: 16px; }
.overlay-title { font-size: 1.2rem; line-height: 1.3; }
.overlay-badge { font-size: 11px; padding: 5px 7px; }
.overlay-loc { font-size: 0.9rem; }
.overlay-body-inner { font-size: 0.95rem; line-height: 1.45; }

.overlay-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 18px; }
.overlay-actions .btn { width: 100%; text-align: center; padding: 12px; font-size: 0.95rem; }
.close-overlay { top: 10px; right: 10px; font-size: 32px; padding: 10px; }
.overlay-content { animation: slideUp 0.25s ease; }

@keyframes slideUp {
from { transform: translateY(40px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

.results .more-results-card { padding: 14px; min-width: 170px; border-radius: 10px; }
.results .more-results-card .more-icon { width: 56px; height: 56px; font-size: 28px; }
.results .more-results-card h3 { font-size: 16px; }
.results .more-results-card p { font-size: 0.86rem; }


  

  

  .testimonial-card {
    min-width: 90%;
    margin: 0 auto;
  }

  /* Mobile */
  .testimonials-header {
    margin-top: 22px;
    padding: 0 16px; /* breathing room on small screens */
  }

  .cta-review {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    font-size: 0.88rem;
    border-radius: 26px;
  }
}

























@media (min-width: 600px) and (max-width: 991px) {
  .slide-item { background-image: none !important; background-color: #000; }
  .slide-item img.sr-only {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain;
    object-position: center center;
    clip: auto !important;
    overflow: visible !important;
  }

  .slider-container { height: 70vh; min-height: 360px; }
  .slider { align-items: center; }









.results { padding: 40px 20px; }
.results-header h2 { font-size: 1.6rem; margin-bottom: 18px; }
.counters { gap: 28px; margin-bottom: 28px; }

.results-gallery { gap: 18px; padding: 10px 12px 56px; scroll-snap-type: x proximity; }
.result-card { width: 45%; max-width: 320px; }
.result-card .card-media img,
.result-card img { height: 170px; }

.results .more-results-card { padding: 16px; min-width: 220px; border-radius: 12px; }
.results .more-results-card .more-icon { width: 64px; height: 64px; font-size: 32px; }
.results .more-results-card h3 { font-size: 18px; }
.results .more-results-card p { font-size: 0.92rem; }




  


    .testimonial-card {
    min-width: 45%;
  }

    .testimonials-header {
    margin-top: 26px;
  }

  .cta-review {
    padding: 13px 24px;
    font-size: 0.9rem;
  }
}

