/* === Overlay header on initial view (top of page) === */
body.nav-on-hero .header.style-default {
  position: absolute; /* sits over the hero */
  left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.15);
  box-shadow: none;
  z-index: 99999;
}

/* White nav text / burger when overlaying imagery */
body.nav-on-hero .header.style-default .navigation li > a { color: #fff; }
body.nav-on-hero .header.style-default .mobile-button .burger span { background-color: #fff; }

/* When sticky engages, flip back to solid header + dark text */
.header.header-sticky.is-sticky,
.header.header-fixed.is-sticky {
  background: var(--White);
}
.header.header-sticky.is-sticky .navigation li > a,
.header.header-fixed.is-sticky .navigation li > a {
  color: var(--Text-primary);
}
.header.header-sticky.is-sticky .mobile-button .burger span,
.header.header-fixed.is-sticky .mobile-button .burger span {
  background-color: var(--Text-primary);
}

/* Ensure the sticky header is above everything */
.header.header-sticky,
.header.header-fixed {
  z-index: 99999;
}

/* Optional: remove the faint border on the sticky state if you don’t want it */
.header.header-sticky.style-default { box-shadow: 0 1px 3px rgba(0,0,0,.1); } /* already in theme */

/* === Taller, responsive hero (keeps existing .style-2 structure) === */
.page-title.style-2 .thumbs {
  height: clamp(60vh, 75vh, 92vh); /* mobile → desktop */
  min-height: 480px;               /* guard for very short viewports */
}
@media (max-width: 575.98px) {
  .page-title.style-2 .thumbs {
    height: clamp(55vh, 65vh, 75vh);
    min-height: 420px;
  }
}
/* Keep image filling the box */
.page-title.style-2 .thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* as per your theme */
}

/* === HERO content alignment + width cap === */
/* Works with your .page-title.style-2 hero */
.page-title.style-2 {
  /* tune these if you want it higher/lower later */
  --hero-content-max: 780px;           /* cap line length */
  --hero-pad-top: clamp(60px, 8vh, 120px);
  --hero-pad-bottom: clamp(36px, 6vh, 96px);
}

.page-title.style-2 .thumbs {
  position: relative;                   /* anchor for absolute content */
}

/* Make the content an overlay layer inside the hero */
.page-title.style-2 .content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;              /* MOBILE: vertically centred */
  align-items: flex-start;
  padding: calc(var(--hero-pad-top) + env(safe-area-inset-top, 0px)) 16px var(--hero-pad-bottom);
  /* ensure the copy stays readable and doesn’t run crazy wide */
  /*max-width: var(--hero-content-max);*/
  margin-left: max(16px, env(safe-area-inset-left, 0px));
  margin-right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 2;                           /* above the image overlay */
}

/* If your content sits inside a container, cap that too */
/*.page-title.style-2 .content > .container,
.page-title.style-2 .content > .wrap,
.page-title.style-2 .content > div {
  max-width: var(--hero-content-max);
}*/

/* DESKTOP: sit the block a little lower (lower-third feel) */
@media (min-width: 992px) {
  .page-title.style-2 .content {
    justify-content: flex-end;          /* drop towards bottom */
    padding-bottom: clamp(96px, 14vh, 180px);
    padding-top: clamp(40px, 4vh, 80px);
  }
}

/* Typography polish (optional but helps mobile) */
.page-title.style-2 .content h1,
.page-title.style-2 .content .heading,
.page-title.style-2 .content .title {
  max-width: 28ch;                      /* avoid widows/orphans */
  line-height: 1.1;
  text-wrap: balance;
}

.page-title.style-2 .content p {
  max-width: 60ch;
  text-wrap: pretty;
  margin-top: 12px;
}

/* CTA spacing on all sizes */
.page-title.style-2 .content .btn,
.page-title.style-2 .content a.button,
.page-title.style-2 .content .button {
  margin-top: 20px;
}

/* Safety: make sure the header doesn’t block taps on content beneath */
.header { pointer-events: auto; }
.page-title.style-2 .content { pointer-events: auto; }

/* If your theme adds top margin to the first element inside content, remove it */
.page-title.style-2 .content > *:first-child { margin-top: 0; }

/* === Mobile tuning for hero height and title size === */
@media (max-width: 767.98px) {
  /* make hero taller on mobile */
  .page-title.style-2 .thumbs {
    height: clamp(70vh, 80vh, 90vh);
    min-height: 520px;
  }

  /* scale down hero H1 */
  .page-title.style-2 .content h1.title,
  .page-title.style-2 .content .title {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  /* optional: tighten spacing under the title */
  .page-title.style-2 .content h1.title.mb_24 {
    margin-bottom: 16px;
  }

  /* ensure paragraph and button don’t crowd each other */
  .page-title.style-2 .content p {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-title.style-2 .content .btn,
  .page-title.style-2 .content a.button,
  .page-title.style-2 .content .button {
    margin-top: 16px;
  }
}

/* Tiny screens (≤480px) for extra polish */
@media (max-width: 480px) {
  .page-title.style-2 .thumbs {
    height: clamp(75vh, 85vh, 95vh);
    min-height: 540px;
  }
  .page-title.style-2 .content h1.title {
    font-size: 26px;
  }
}

/* === Desktop centring for hero content (keep left-aligned text) === */
@media (min-width: 992px) {
  /* Center the content block within the viewport */
  .page-title.style-2 .content {
    align-items: center;              /* was flex-start */
    justify-content: flex-end;        /* keep lower-third feel */
    padding-left: 32px;               /* safe side gutters */
    padding-right: 32px;
    margin: auto;
  }

  /* Ensure the inner wrapper/container actually centers and caps width */
  .page-title.style-2 .content > .container,
  .page-title.style-2 .content > .wrap,
  .page-title.style-2 .content > div {
    /*max-width: var(--hero-content-max, 780px);*/
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;                 /* keep copy left-aligned */
  }
}
 

/* ===================================================================
   HERO — centred layout, taller height, full-width H1, short-viewport fix
   =================================================================== */

/* 0) A header height token we can tweak if your nav height changes */
:root {
  --header-h: 88px;   /* desktop overlay header height estimate */
}
@media (max-width: 991.98px) {
  :root { --header-h: 64px; } /* mobile header height */
}

/* 1) Centre the hero text + buttons (keeps lower-third feel on desktop) */
.page-title.style-2 .content {
  align-items: center;              /* center the block horizontally */
  text-align: center;               /* center text inside */
  justify-content: flex-end;        /* sit lower on desktop */
}

/* Centre common CTA elements */
.page-title.style-2 .content .btn,
.page-title.style-2 .content a.button,
.page-title.style-2 .content .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* 2) Make the hero a bit taller so next section peeks above the fold */
.page-title.style-2 .thumbs {
  /* Desktop-ish height: just under full viewport so next block peeks */
  height: min(92vh, 900px);
}

/* Mobile gets a touch more height too */
@media (max-width: 767.98px) {
  .page-title.style-2 .thumbs {
    height: min(95vh, 720px);
    min-height: 560px;
  }
}

/* 3) Make the H1 span full width (while text remains centred) */
.page-title.style-2 .content h1.title,
.page-title.style-2 .content .title {
  display: block;
  width: 100%;           /* span full width */
  max-width: none;       /* remove previous caps on the H1 only */
  margin-left: 0;
  margin-right: 0;
  text-align: center;    /* keep centred copy */
}

/* Keep paragraphs and other text comfortably narrow for readability */
.page-title.style-2 .content p,
.page-title.style-2 .content .lead,
.page-title.style-2 .content .subtitle {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* 4) Prevent clash with overlaying NAV at short desktop heights (e.g. 1280×672)
   We add top padding equal to header height so the text clears the nav. */
body.nav-on-hero .page-title.style-2 .content {
  padding-top: calc(var(--hero-pad-top, 48px) + var(--header-h));
}

/* Short, wide viewports: reduce bottom padding and ensure top clearance */
@media (min-width: 1200px) and (max-height: 700px) {
  .page-title.style-2 .content {
    justify-content: center;               /* center vertically in short height */
    padding-top: calc(16px + var(--header-h));
    padding-bottom: 48px;
  }
  .page-title.style-2 .thumbs {
    height: 88vh;                          /* slightly less so next block peeks */
  }
}

/* If your container wrapper exists, keep it centered + capped */
.page-title.style-2 .content > .container,
.page-title.style-2 .content > .wrap,
.page-title.style-2 .content > div {
  width: 100%;
  /*max-width: var(--hero-content-max, 780px);*/
  margin-left: auto;
  margin-right: auto;
}

/* Mobile title sizing (kept from earlier but safe here) */
@media (max-width: 767.98px) {
  .page-title.style-2 .content h1.title,
  .page-title.style-2 .content .title {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }
}

/* Tiny screens polish */
@media (max-width: 480px) {
  .page-title.style-2 .content h1.title { font-size: 26px; }
}

/* === Center hero content & buttons inside each Swiper slide === */

/* Make the slide fill the hero so flex-centering works reliably */
.page-title.style-2 .swiper,
.page-title.style-2 .swiper-wrapper,
.page-title.style-2 .swiper-slide,
.page-title.style-2 .slide-inner,
.page-title.style-2 .thumbs {
  height: 100%;
}

/* Your .content is already absolute & full-cover from earlier overrides.
   Center the inner grid and column */
.page-title.style-2 .content .tf-container,
.page-title.style-2 .content .tf-container .row {
  display: flex;
  justify-content: center;   /* horizontally center the grid */
  align-items: center;       /* vertically center within .content */
  min-height: 100%;
  text-align: center;        /* center text by default */
}

/* Center the column block and cap width so lines don’t sprawl */
.page-title.style-2 .content ._col-lg-7_ {
  width: 100%;
  /*max-width: var(--hero-content-max, 780px);*/
  margin-left: auto;
  margin-right: auto;
}

/* Make the H1 span full width but keep centered text */
.page-title.style-2 .content h1.title {
  display: block;
  width: 100%;
  max-width: none;         /* remove any previous caps on the H1 */
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

/* Center the buttons row and add a nice gap */
.page-title.style-2 .content .wrap-btn.d-flex {
  justify-content: center; /* was left */
  gap: 12px;
  flex-wrap: wrap;
}

/* If effect classes slide in from left/right, they can "look" off-center.
   Neutralise horizontal offsets for hero items so they animate in place. */
.page-title.style-2 .content .effect-left,
.page-title.style-2 .content .effect-right {
  transform: translateX(0) !important;
}

/* Short desktop viewports (e.g., 1280×672): ensure we still clear the nav */
@media (min-width: 1200px) and (max-height: 700px) {
  .page-title.style-2 .content {
    justify-content: center;                         /* vertical center in short height */
    padding-top: calc(16px + var(--header-h, 88px)); /* clear overlay nav */
  }
}

/* Safety: keep mobile centered too */
@media (max-width: 991.98px) {
  .page-title.style-2 .content .wrap-btn.d-flex { justify-content: center; }
}

/* === Large desktop / ultra-wide hero adjustment === */
@media (min-width: 1400px) {
  /* Make hero about 90% of viewport height so next blocks are visible */
  .page-title.style-2 .thumbs,
  .page-title.style-2 .swiper,
  .page-title.style-2 .swiper-wrapper,
  .page-title.style-2 .swiper-slide,
  .page-title.style-2 .slide-inner {
    height: 90vh;          /* 90% viewport height */
  }

  /* Vertically center the content within this reduced height */
  .page-title.style-2 .content {
    justify-content: center;   /* center vertically */
    padding-top: calc(var(--header-h, 88px) + 32px);
    padding-bottom: 64px;
  }

  /* Keep text & buttons neatly centered */
  .page-title.style-2 .content h1.title {
    /*font-size: clamp(42px, 2.8vw, 60px);*/
  }
  .page-title.style-2 .content p {
    /*font-size: clamp(18px, 1vw, 22px);*/
  }
}

/* reusable hover zoom effect */
.hover-zoom .img-style {
  overflow: hidden; /* keeps zoomed image cropped */
}

.hover-zoom .img-style img {
  transition: transform 0.6s ease;
  transform-origin: center center;
}

.hover-zoom:hover .img-style img {
  transform: scale(1.08); /* zoom effect */
}

/* Keep Bootstrap’s grid; just ensure equal heights and image cover */
.row-strech {
  /* don't set display here; Bootstrap does it */
  align-items: stretch; /* equal height columns */
}

/* Image column: create a height context without changing width */
.col-lg-6.image-fill {
  position: relative;
  overflow: hidden;
  /* gives it height even if the other side is short on small screens */
  min-height: 420px;
}

/* Make the wrapper fill the column */
.col-lg-6.image-fill .img-style {
  position: absolute;
  inset: 0;
}

/* Make the image cover without distortion */
.col-lg-6.image-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* optional: subtle hover */
  transition: transform 0.6s ease;
}

.col-lg-6.image-fill:hover img {
  transform: scale(1.03);
}

/* Mobile: tune the minimum height when stacked */
@media (max-width: 991.98px) {
  .col-lg-6.image-fill { min-height: 320px; }
}

/* Hover zoom utility */
.hover-zoom {
  position: relative;
  overflow: hidden;
}

.hover-zoom img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
  will-change: transform;
}

.hover-zoom:hover img {
  transform: scale(1.05);
}

/* Ensure overlay doesn’t block hover */
.hover-zoom .overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: none; /* allow hover through to the img */
}

/* Make sure clickable link still works */
.hover-zoom .overlay-link[href] {
  pointer-events: auto; /* clickable but still triggers hover */
}

/*Solutions Slider*/
.swiper-slide .wrap-btn h4 {
  opacity: 0.15;
  transition: opacity 0.4s ease;
}
.swiper-slide-active .wrap-btn h4 {
  opacity: 1;
}
.swiper-slide .wrap-btn {
  opacity: 0.15;
  transition: opacity 0.4s ease;
}
.swiper-slide-active .wrap-btn {
  opacity: 1;
}
.swiper-slide-prev .wrap-btn h4,
.swiper-slide-next .wrap-btn h4 {
  opacity: 0.6;
}

.is-hidden { display: none !important; }

/*.tags-list .tags-item.active {
  background: var(--primary-color, #111);
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  transition: 0.2s ease;
}*/

/* Horizontal scroll tags */
.tags-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.tags-list::-webkit-scrollbar {
  display: none; /* Safari / Chrome */
}

.tags-list .tags-item {
  white-space: nowrap;
  padding: 8px 14px;
  /*border-radius: 20px;*/
  background: #f3f3f3;
  display: inline-block;
  flex-shrink: 0;
  transition: 0.2s ease;
}

/* Active state (same as your filter JS already adds) */
.tags-list .tags-item.active {
  background: #000;
  color: #fff;
}

@media (min-width: 768px) {
  /* Desktop can revert to grid if you prefer, else remove */
  .tags-list {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    font-size: 14px;
  }
}
