.tgmenu__nav .logo img {
  max-height: 100%;
}

.text-justify {
    text-align: justify;
}

footer {
	background-color: #282828;
}

.list-wrap .icon i {
	color: var(--tg-color-white-default);
}

.tgmenu__navbar-wrap {
	justify-content: center;
}
.tgmenu__navbar-wrap > ul {
    margin-left: 0;
}

.w-100 {
    width: 100%!important;
}

.pb-30px{
  padding-bottom: 90px;
}
.title a:hover {
      color: #ffffff!important;
}
.project__item-four:hover .project__thumb-four::after {
  content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 25%;
border-radius: 10px;
background: linear-gradient( 180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100% );
pointer-events: none;
}

.services__item-four1 {
    background: var(--tg-color-white-default);
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0px 30px 30px 30px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -o-border-radius: 15px;
    -ms-border-radius: 15px;
    border-radius: 15px;
}

.p-3 {
    padding: 1rem 1.7rem !important;
}

.b-1{
  border: 1px;
}

.w-icon{
  font-size: 30px;
  color: #c52127;
}

.text-g{
  color: #282828;
  display: flex;
align-items: center;
column-gap: 20px;
padding: 0 20px;
}

@media only screen and (max-width: 986px) {
  .hidden-mobile {
    display: none;
  }
}

@media only screen and (min-width: 985px) {
  .hidden-desktop {
    display: none;
  }
}

@media (max-width: 767.98px) {
   .area-set .services__item-four {
        padding: 10px 25px;
    }
}

.services .title:hover {
  color: #c52127!important;
}

	.set-position{
		position: absolute;
		left: 0%;
		top:0%;
		
		z-index: 0;
	}
	.video {
    z-index: -1;
    object-fit: cover;
    width: 500px; /* Added px for proper sizing */
    height: 500px; /* Added px for proper sizing */
}

/* Styles for mobile view */
@media (max-width: 768px) { /* You can adjust the max-width as needed */
    .video {
        z-index: -1;
        object-fit: cover;
        width: 100%; /* Width for mobile */
        height: 100%; /* Height for mobile */
    }
}

	.videos{
            object-fit: cover;
	}

	.mfp-close {
    position: absolute;
    top: -50px;
    right: 10%;
    background-color: #ffffff;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.mfp-close:hover {
    color: #ff0000; /* Red when hovered */
}

.get-direction {
  color: #c52127!important;
}

/* Show on mobile only (max-width: 767px means screens smaller than 768px) */
@media (max-width: 767px) {
    .mobile-only {
        display: block; /* Ensure it's displayed on mobile */
    }
}

/* Hide on tablets and desktops (min-width: 768px means screens 768px and above) */
@media (min-width: 768px) {
    .mobile-only {
        display: none; /* Hide on larger screens */
    }
}

/* Hide on mobile devices (max-width: 767px means screens smaller than 768px) */
@media (max-width: 767px) {
    .desktop-tablet-only {
        display: none; /* Hide on mobile */
    }
}

/* Show on tablets and desktops (min-width: 768px means screens 768px and above) */
@media (min-width: 768px) {
    .desktop-tablet-only {
        display: block; /* Ensure it's displayed on larger screens */
    }
}

#services-images .col-4 {
    padding-right:0;
    padding-left: 0;
}

        .image-container img {
            width: 100%; /* Responsive image */
            height: auto;
            border-radius: 5px; /* Optional: Add rounded corners */
        }

        .tooltiptext {
            visibility: hidden;
            width: 100%; /* Width of the tooltip */
            background-color: #fff; /* Tooltip background color */
            color: #fff; /* Tooltip text color */
            text-align: center; /* Center text */
            border-radius: 6px; /* Rounded corners */
            padding: 5px; /* Padding inside tooltip */
            position: absolute; /* Position relative to the container */
            left: 50%;
            z-index: 1; /* On top of other elements */
            opacity: 0; /* Start invisible */
            transition: opacity 0.3s; /* Smooth transition */
            transform: translateX(-50%); /* Center adjust */
        }

        .image-container:hover .tooltiptext {
            visibility: visible; /* Show on hover */
            opacity: 1; /* Fade in */
        }

.fix {
  position: relative;
}

        /* Animation */
@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity:0.8;
  }
  45% {
    transform: scale(1.75);
    opacity:0;
  }
}
@keyframes stop-pulsate {
  from {
    opacity:0.4;
  }
  to {
    transform: scale(2);
    opacity:0;
  }
}

/* Button */
.btn-pulse {
  position:absolute;
  top:50%;
  right: 50%;
  
  
  .circle {
    position:absolute;
    left:50%;
    top:50%;
    width:32px;
    height:32px;
    margin: -0.666em auto auto -0.666em;
    background:#c52127;
  	border-radius:50%;
    opacity:1;
    transform-origin: 50% 50%;
    transition:opacity .2s ease-in, transform .1s ease-out;
    color:white;
    font-size:1.5em;
    padding:0;
    text-align:center;
    line-height:32px;
    overflow:hidden;
    &:hover {
      opacity:0.8;
      cursor:pointer;
    }
    &:active {
      transform:scale(0.875);
    }
  }
  
  .ring {
    display:block;
    position:absolute;
    top:50%;
    left:50%;
    width:2em;
    height:2em;
    margin:-1em auto auto -1em;
    transform-origin: 50% 50%;
    border-radius:50%;
    border:1px solid #c52127;
    opacity:0;
    animation: pulsate 3s ease-out infinite;
  }
  
  &:hover .ring {
      animation: none;
    }
  
  &:active .ring {
      animation: stop-pulsate 0.3s;
    }
}


.popup {
    display: none; /* Hidden by default */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup img {
    max-width: 60%;
    max-height: 60%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* hero slider  */

/* Common styles */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-text {
  position: absolute;
  z-index: 2;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* Smooth animation */
  padding: 50px 0px;
}

.text-reach {
  font-size: 32px !important;
  color: #fff;
}

.p-text {
  font-size: 23px !important;
  color: #fff;
}

.grey-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Navigation arrows */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 3;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Text background */
.slider-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100% - 60px);
  background-color: rgba(0, 0, 0, 0.4); /* Text background overlay */
  z-index: -1;
}

/* Smooth text animation */
.slider-text .title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease-in-out, transform 2s ease-in-out ;
  font-size: 70px;
  color: #fff;
  padding: 30 0;
}

.slider-slide.active .title, 
.slider-slides.active .title { /* Animation for both versions */
  opacity: 1;
  transform: translateY(0);
}

.slider-text p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out 0.3s ;
}

.slider-slide.active p, 
.slider-slides.active p { /* Animation for both versions */
  opacity: 1;
  transform: translateY(0);
}

/* Desktop (default) */
.slider-slide {
  display: none;
}

.slider-slide.active {
  display: block;
}

/* Mobile-specific styling (for screens < 768px) */
@media (max-width: 768px) {
  .slider-slides {
    display: none;
  }

  .slider-slides.active {
    display: block;
  }

  .slider-text .title {
    font-size: 26px;
    color: #fff;
  }

  .text-reach {
    font-size: 18px !important;
  }

  .p-text {
    font-size: 16px !important;
  }
}

.d-set{
  display: contents;
}

/* Button */
.btn-pulse-1 {
  position:absolute;
  top:40%;
  right: 30%;
  
  
  .circle {
    position:absolute;
    left:50%;
    top:50%;
    width:32px;
    height:32px;
    margin: -0.666em auto auto -0.666em;
    background:#c52127;
  	border-radius:50%;
    opacity:1;
    transform-origin: 50% 50%;
    transition:opacity .2s ease-in, transform .1s ease-out;
    color:white;
    font-size:1.5em;
    padding:0;
    text-align:center;
    line-height:32px;
    overflow:hidden;
    &:hover {
      opacity:0.8;
      cursor:pointer;
    }
    &:active {
      transform:scale(0.875);
    }
  }
  
  .ring {
    display:block;
    position:absolute;
    top:50%;
    left:50%;
    width:2em;
    height:2em;
    margin:-1em auto auto -1em;
    transform-origin: 50% 50%;
    border-radius:50%;
    border:1px solid #c52127;
    opacity:0;
    animation: pulsate 3s ease-out infinite;
  }
  
  &:hover .ring {
      animation: none;
    }
  
  &:active .ring {
      animation: stop-pulsate 0.3s;
    }
}

/* Button */
.btn-pulse-2 {
  position:absolute;
  top:30%;
  right: 30%;
  
  
  .circle {
    position:absolute;
    left:50%;
    top:50%;
    width:32px;
    height:32px;
    margin: -0.666em auto auto -0.666em;
    background:#c52127;
  	border-radius:50%;
    opacity:1;
    transform-origin: 50% 50%;
    transition:opacity .2s ease-in, transform .1s ease-out;
    color:white;
    font-size:1.5em;
    padding:0;
    text-align:center;
    line-height:32px;
    overflow:hidden;
    &:hover {
      opacity:0.8;
      cursor:pointer;
    }
    &:active {
      transform:scale(0.875);
    }
  }
  
  .ring {
    display:block;
    position:absolute;
    top:50%;
    left:50%;
    width:2em;
    height:2em;
    margin:-1em auto auto -1em;
    transform-origin: 50% 50%;
    border-radius:50%;
    border:1px solid #c52127;
    opacity:0;
    animation: pulsate 3s ease-out infinite;
  }
  
  &:hover .ring {
      animation: none;
    }
  
  &:active .ring {
      animation: stop-pulsate 0.3s;
    }
}

/* Button */
.btn-pulse-3 {
  position:absolute;
  top:50%;
  right: 30%;
  
  
  .circle {
    position:absolute;
    left:50%;
    top:50%;
    width:32px;
    height:32px;
    margin: -0.666em auto auto -0.666em;
    background:#c52127;
  	border-radius:50%;
    opacity:1;
    transform-origin: 50% 50%;
    transition:opacity .2s ease-in, transform .1s ease-out;
    color:white;
    font-size:1.5em;
    padding:0;
    text-align:center;
    line-height:32px;
    overflow:hidden;
    &:hover {
      opacity:0.8;
      cursor:pointer;
    }
    &:active {
      transform:scale(0.875);
    }
  }
  
  .ring {
    display:block;
    position:absolute;
    top:50%;
    left:50%;
    width:2em;
    height:2em;
    margin:-1em auto auto -1em;
    transform-origin: 50% 50%;
    border-radius:50%;
    border:1px solid #c52127;
    opacity:0;
    animation: pulsate 3s ease-out infinite;
  }
  
  &:hover .ring {
      animation: none;
    }
  
  &:active .ring {
      animation: stop-pulsate 0.3s;
    }
}

.custom-bg {
  background-image: url('your-image-url.jpg');
  background-position: right; /* Default position for desktop */
  background-size: cover;
}

@media (max-width: 767.98px) {
  .custom-bg {
    background-position: center; /* Center position for mobile */
  }
}
