#hero {
  position: relative;
  overflow: hidden;
  /* prevents video overflow */
}

#hero .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keeps aspect ratio while filling */
  z-index: 0;
}

#hero-styles {
  position: relative;
  z-index: 1;
  /* ensures content appears above video */
}

.mute-btn {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 12px 14px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.mute-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pinned-image .box {
  background-color: #ececec;
  padding: 50px 30px;
}

.pinned-image .box .box-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.pinned-image .box .box-content h3 {
  margin: 0;
}

.pinned-image .box .box-content img {
  height: 75px;
  width: auto;
}

.snap-slider-holder .button-text {
  margin: 0 !important;
  font-size: 16px;
  font-family: "Montserrat", sans-serif !important;
}

.snap-slider-holder .button-text span {
  font-family: "Montserrat", sans-serif !important;
}

.snap-slider-holder .button-wrap.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.snap-slider-thumbs {
  z-index: 10;
}

/* keep thumbs below */
.snap-slider-captions {
  z-index: 50;
}

/* ensure captions/buttons sit on top */
/* If you want the link always clickable */
.snap-slider-captions .slide-subtitle,
.snap-slider-captions .slide-subtitle a {
  pointer-events: auto;
  display: flex;
  justify-content: end;
}

/* If you prefer only when the slide is active */
.in-view.snap-slide-caption .slide-subtitle,
.in-view.snap-slide-caption .slide-subtitle a {
  pointer-events: auto;
}

/* a helper class we’ll toggle */
.snap-slider-thumbs.thumbs-blocked {
  pointer-events: none !important;
}

.snap-slider-captions .button-border {
  position: relative;
  z-index: 60;
  /* higher than captions container’s siblings */
}

.snap-slider-captions .slide-title h3 {
  font-size: 4vh;
}

.panel-caption {
  width: 100%;
  text-align: center;
  margin-top: 15px;
}

/* keep horizontal mask; allow vertical overflow */
.panels,
.panels-container,
.panels .panel {
  overflow-x: hidden;
  overflow-y: visible !important;
}

.panels .panel {
  position: relative;
  z-index: 1;
}

.panels .panel:hover {
  z-index: 10;
  /* hover item sits above neighbors */
}

/* hover effect */
.panels .panel img {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform;
}

.panels .panel:hover img {
  transform: translateY(-5px);
  /* drop-shadow tends to look nicer here than box-shadow */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Modal base */
.cp-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  justify-content: center;
  /* horizontally center */
  align-items: center;
  /* vertically center */
}

.cp-modal.is-open {
  display: flex;
  /* flex enables centering */
}

/* Dialog */
.cp-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 92%;
  background: #fff;
  color: #0c0c0c;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  outline: none;
  transform-origin: center;
}

/* Backdrop */
.cp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cp-modal__dialog {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.25s ease;
}

.cp-modal.is-open .cp-modal__dialog {
  transform: scale(1);
  opacity: 1;
}

/* Dark theme compatibility */
.dark-content .cp-modal__dialog {
  background: #111;
  color: #ddd;
}

/* Content */
.cp-modal__content {
  padding: 32px 28px;
}

.cp-modal__content .primary-font-title {
  margin: 0 0 12px;
}

/* Close */
.cp-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}

@media only screen and (max-width: 1024px) {
  .cp-modal__content .primary-font-title {
    font-size: calc(1rem + 1.2vw);
    line-height: calc(1rem + 1.5vw);
  }
}

@media (min-width: 1025px) {
  .cp-modal__dialog {
    margin: 10vh auto;
  }
}

.team-image {
  margin-bottom: 10px;
}

.team-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-details .member .name {
  margin-bottom: 0px;
}

.title-designation {
  font-weight: 500;
}

[data-modal-open="#demo-modal"] {
  cursor: pointer;
}

.designation-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.designation-wrapper .designation {
  width: max-content;
  margin: 0;
}

.values .box-icon-wrapper.block-boxes {
  padding-top: 2.5rem;
}

.values .box-icon i {
  font-size: 2.5rem;
}

.values .box-icon {
  height: auto;
  width: auto;
}

.icon-content {
  position: relative;
  text-align: start;
}

.icon-content i {
  color: #000;
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

/* When .icon-content contains a span.error */
/* .icon-content:has(.error) i {
  top: 25%;
  transform: translateY(-12.5%);
} */

.icon-content textarea {
  margin: 0;
}

.icon-content input,
.icon-content textarea {
  padding-left: 40px;
}

.button-box {
  margin-top: 40px;
}

.icon-content select {
  font-family: inherit;
  /* inherit from parent */
}

.icon-content select {
  width: 100%;
  padding-left: 40px;
  height: 50px;
  /* same height as inputs */
  border: none;
  color: #000;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 16px;
  outline: none;
  appearance: none;
  /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Match font, padding, border */
.icon-content input[type="file"] {
  color: #000;
  width: 100%;
  padding-left: 40px;
  height: 50px;
  border: none;
  border-bottom: 1px solid #ccc;
  font-family: inherit;
  font-size: 16px;
  background: transparent;
  cursor: pointer;
}

/* Show placeholder text */
.icon-content input[type="file"]::before {
  content: attr(data-label);
  font-size: 16px;
  color: #777;
  pointer-events: none;
}

/* When a file is selected, show filename */
.icon-content input[type="file"]:valid::before {
  content: attr(data-file-name);
  color: #000;
}

.icon-content input[type="file"]::before {
  display: inline-block;
  font-size: 16px;
  color: #777;
  /* margin-right: 10px; */
}

.icon-content select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.view-toggle {
  display: flex;
  color: #000;
  background-color: currentColor;
  height: 44px;
  border: 3px solid currentColor;
  justify-content: center;
  align-items: center;
  border-radius: 22px;
  box-sizing: border-box;
  position: relative;
  pointer-events: initial;
  overflow-x: auto;
  /* ✅ enables horizontal scroll on small screens */
  scrollbar-width: none;
  /* hides scrollbar in Firefox */
}

.view-toggle::-webkit-scrollbar {
  display: none;
  /* hides scrollbar in Chrome/Safari */
}

.view-btn {
  flex: 0 0 auto;
  /* ✅ prevents shrinking */
  box-sizing: border-box;
  padding: 0 16px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 40px;
  min-width: 90px;
  margin: 0 4px;
  color: currentColor;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  z-index: 1;
  transition: filter 0.1s ease-in-out;
  filter: invert(1);
}

.view-btn.active {
  filter: invert(0);
  pointer-events: none;
}

.view-indicator {
  position: absolute;
  left: 0;
  top: 0;
  background-color: currentColor;
  box-sizing: border-box;
  height: 100%;
  border-radius: 40px;
  min-width: 90px;
  z-index: 0;
  filter: invert(1);
  transition: transform 0.3s ease, width 0.3s ease;
}

.d-none {
  display: none !important;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Make each grid-column participate correctly */
.services>.grid-columns {
  width: 100%;
  display: flex;
}

.services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-card {
  padding: 25px;
  box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}

.services-card img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.services ul li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #333;
}

.services ul li i {
  font-size: 20px;
  min-width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  margin-right: 10px;
}

.services-card .button-box {
  margin-top: 15px;
}

.services-card a.service-button {
  margin-top: 30px !important;
  margin-bottom: 15px !important;
  display: flex;
  width: max-content;
  margin: 0;
  transition: transform .2s ease-out;
}

.services-card a.service-button .button-text {
  color: #348e1e;
  margin: 0 !important;
}

.services-card a.service-button .button-icon-link:hover {
  background-color: transparent;
}

.services-card a.service-button .button-icon-link:hover .button-text span {
  filter: invert(1);
  color: #ffffff;
}

.services-card a.service-button .button-icon-link {
  color: #348e1e;
  border: 2px solid currentColor;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.25);
}

@media only screen and (max-width: 1466px) {
  .services .one_fourth {
    width: 47.5% !important;
    margin-right: 25px !important;
  }
}

@media (max-width: 991px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services {
    grid-template-columns: 1fr;
  }
}


@media only screen and (max-width: 479px) {
  .services-card h5 {
    font-size: calc(1.5rem + 0.6vw);
    line-height: calc(2rem + 0.6vw);
  }
}

/* ✅ Smaller screens */
@media (max-width: 480px) {
  .view-toggle {
    height: 36px;
    border-width: 2px;
    border-radius: 18px;
  }

  .view-btn {
    min-width: 80px;
    font-size: 13px;
    padding: 0 12px;
  }
}

.icon-content {
  position: relative;
}

.icon-content i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

.icon-content textarea {
  margin: 0;
}

.icon-content input,
.icon-content textarea {
  padding-left: 40px;
}

.button-box {
  margin-top: 40px;
}

.light-content .light-section input[type="submit"] {
  cursor: pointer;
}

.jconfirm.jconfirm-white .jconfirm-box,
.jconfirm.jconfirm-light .jconfirm-box {
  max-width: 400px;
}

.blog-detail #hero.has-image .hero-title {
  font-size: calc(1rem + 2.5vw);
  line-height: calc(1rem + 3.2vw);
  font-weight: 500;
  margin-bottom: 0;
  margin: 0;
}

.blog-detail .inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-detail .hero-subtitle span {
  color: #000;
}

.blog-detail .hero-title span {
  color: #000;
}

.blog-detail .hero-title span {
  color: #000;
}
.blog-detail h2 {
  font-size: clamp(18px, 3.5vh, 32px);
  line-height: clamp(24px, 4vh, 40px);
  padding: 10px 0;
}