.s22_master .s22_row{justify-content: center;align-items: center;display: flex;}
.s22_master .s22_row .s22_col{
    width: 14em;
    height: auto;
    box-shadow: 0 25px 16px #0000000d,0 10px 10px #0000001a,0 3px 6px #0000001a;
    background-color: #fee9d2;
    margin-left: -1em;
    margin-right: -1em;
    translate: none;
    rotate: none;
    scale: none;
    pointer-events: auto;    
    z-index: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px !important;
}   
.s22_master .s22_row .s22_col video {border-radius: 10px !important;}
.s22_master .s22_col:nth-child(odd) {transform: rotate(1.18085deg);}
.s22_master .s22_col:nth-child(odd):hover {transform: rotate(-7.66deg) scale(1.15);z-index: 2;}
.s22_master .s22_col:nth-child(even) {transform: rotate(-2.03533deg);}
.s22_master .s22_col:nth-child(even):hover {transform: rotate(7.66deg) scale(1.15);z-index: 2;}
.s22_master .s22_row .s22_col img{object-fit: contain;border-radius: .75rem;width: 100%;max-width: none;height: 100%;}
.s22_popup_col_img img {
    height: 500px !important;
    object-fit: contain;
}
.s22_popup {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  visibility: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  z-index: 9999;
  background: white;
  padding: 15px 30px 15px 15px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: auto;
  width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.s22_popup_col .video, .s22_popup_col_img img{height: 500px !important;object-fit: contain;border-radius: 20px !important;}
.s22_popup.show {opacity: 1;visibility: visible;transform: translate(-50%, -50%) translateY(0);}
.s22_popup .s22_popup_row{display: flex;gap: 20px;  justify-content: space-around;}
.s22_popup .s22_popup_row .all_cont{display: flex;flex-direction: column;}
.s22_popup .s22_popup_row .s22_popup_col{width: 50%;}
.s22_popup .s22_popup_row .s22_popup_col.all_cont{width: 50%;}
.s22_popup h4, .sec_title h1{font-size: 35px;font-weight: 700;font-family: "Teko", Sans-serif;line-height: 1.3em;color: #000;margin: 0%;padding: 0%;}
.s22_popup .prof{font-size: 13px;font-weight: 400;font-family: "Vazirmatn", Sans-serif;line-height: 1.3em;color: #5d636d;margin: 0%;padding: 0px 0px 30px 0px;}
.s22_popup .cont, .s22_popup .nick, .sec_title p{font-size: 14px;font-weight: 400;font-family: "Vazirmatn", Sans-serif;line-height: 1.4em;color: #5d636d;margin: 0%;padding: 30px 0px;} 
.sec_title p{padding: 20px 0px 50px 0px;}
.sec_title{text-align: center;}
.s22_popup .nick{padding: 0px;}
.s22_popup .styles{display: flex;flex-wrap: wrap;gap: 10px;padding-top: 20px;}
.s22_popup .styles div{background: #eff7ff;padding: 10px 15px;border-radius: 50px;font-size: 16px;font-weight: 500;color: #000;}
.choose_guide{background-color: #054f31;color: #d0f9de;padding: 15px 50px;font-size: 16px;font-weight: 500;font-family: PP Neue Montreal,sans-serif;line-height: 1.4em;border: none;border-radius: 20px;}
.choose_guide:hover{background-color: #d0f9de;color: #054f31;}
.colose{position: absolute;right: 10px;top:10px;}
.next, .prev{color: #054f31;font-size: 15px;font-weight: 500;font-family: PP Neue Montreal,sans-serif;border: none;background: none;  min-width: 150px;}
.button_row{padding-top: 30px;}
.s22_popup button{cursor: pointer;}
.s22_master4 .swiperwrapper{flex-direction: row !important;}
.s22_master4 img{object-fit: cover; object-position: center 30%;}
.s22_master4 .slick-slide {
    padding: 0 25px;
}
.s22_master4 .slick-slider {
    margin: 0 -25px;
}
.s22_master4 .s22_col{margin-bottom: 25px;}
.s22_master4 video{
  box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
.s22_master4 .sec_title{text-align: left;}
.s22_master4 .sec_title h1{border-bottom: 2px solid #000; padding-bottom: 15px;}
.s22_master4 .slick-track {
 display: flex; align-items: center;
}
.s22_master4 .name{font-size: 22px; font-weight: 700; display:block;}
.s22_master4 .profession{font-size: 14px; font-weight: 400;}
.s22_master4 .s22_info{display: grid; gap:0; padding-top: 20px;}
.s22_master4 .s22_row{padding-bottom: 50px;}
.ss_firstly{position: relative;}
.s22_master4 .carousel__nav button{font-size: 20px; padding: 12px 13px 14px; background:none; color: #000; border:1px solid #000;}
.s22_master4 .carousel__nav .prev{margin-right: 10px;}
.s22_master4 .carousel__nav .is-disabled{opacity: 0.5; cursor: not-allowed; }
.s22_master3 .swiper-button-prev, .s22_master3 .swiper-button-next{pointer-events: auto !important;}

.s22_master3 .swiper-slide img {width: 100%;height: 100%;object-fit: cover;border-radius: 12px;box-shadow: 0 4px 15px rgba(0,0,0,0.15);}
.s22_master3 .swiper-slide video{border-radius: 12px;}
.s22_master3 .swiper-pagination{display: none;}
.s22_master3 .centerlist{justify-content: center;}
.s22_master3 .gridgap{display: grid; gap: 20px;}
.s22_image{ border-radius: 20px;    overflow: hidden;}
.gridlist{aspect-ratio: 2 / 3.5;} 
.s22_master3 .swiper-wrapper, .s22_master3 .swiper-button-lock{ align-items: center; }
.s22_master3 .swiper-button-prev, .s22_master3 .swiper-button-next{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    top:60%;
}
.s22_master3 .swiper-button-next::after {
    margin-right: -3px;
    margin-top: 2px;
}
.carousel__nav.nav4{top: auto; bottom: 0; right: 0; left: auto;}
.s22_master3 .swiper-button-prev::after {
    margin-left: -3px;
    margin-top: 2px;
}
.s22_master3 .swiper-button-next:after, .s22_master3 .swiper-button-prev:after{font-size: 25px; font-weight: 700;}
.s22_master3 .maingridlists::before,
.s22_master3 .maingridlists::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;       /* overlay thickness (adjustable) */
  z-index: 2;
}
.s22_popup .cont {
    max-height: 400px;
    overflow: auto;
    padding-right: 10px;
    padding-top: 0;
}
.s22_master3 .maingridlists::before {
  top: 0;
  background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 0) 100%);
}
.s22_master3 .swiper-slide{height: auto;}
.s22_master3 .maingridlists::after {
  bottom: 0;
  background: linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 0) 100%);
}
.s22_master3 .swiper-slide {display: grid; transition: margin-top 300ms ease;}
@media (max-width:1250px) {
  .s22_master .s22_row{flex-wrap: wrap;}
  .s22_master4 .slick-slide {padding: 0 2vw;} 
  .s22_master4 .slick-slider {margin: 0 -2vw;}
}
@media (max-width:1024px) {
  .s22_popup {width: 700px;}
}
@media (max-width:767px) {
  .s22_popup_content {display: revert !important;}
  .s22_popup .s22_popup_row > div{width: 100% !important;}
  .s22_popup_col .video, .s22_popup_col_img img{ width: 270px !important; height: 435px !important; object-fit: cover;}
  .s22_popup .cont{padding: 10px 0px;  font-size: 14px;}
  .s22_popup .styles div{font-size: 13px;}
  .s22_popup {width: 100%;}
  .s22_popup h4 {font-size: 20px;}
  .s22_popup .styles{padding: 10px;}
  .next, .prev{font-size: 13px;min-width: 20px !important;}
  .choose_guide{padding: 15px 30px;font-size: 13px;}
  .button_row span{display: none;}
  .button_row{padding-top: 10px;}
  .s22_master4 .s22_info{padding-top: 10px;}
  .s22_master4 .name {
    font-size: 15px;
  }
  .s22_master4 .profession {
    font-size: 12px;
  }
  .s22_master4 .sec_title h1{font-size: 30px;}
  .s22_master4 .carousel__nav button{font-size: 16px; padding: 9px 10px 11px;}
  .sec_title p{padding-bottom: 30px;}
  .s22_mobile_slider .swiper-slide img, .s22_master .swiper-slide img{height: 100% !important; width:100%;}
  .maingridlists, .s22_master3 .swiper-button-prev, .s22_master3 .swiper-button-next{display: none !important;}
  .s22_popup .cont {
    padding: 10px 0px;
    font-size: 14px;
    max-height: 250px;
}
}
@media (max-width: 575px) {
    .s22_mobile_slider .swiper-slide img, .s22_master .swiper-slide img{height: 100% !important; width:100%;}

}
@media (max-width:500px) {
  .s22_popup{height: 100%;}
}

/* .s22_col video,
.s22_col img {
    transition: opacity 0.3s ease;
} */


/* Optional: Hide slider nav on desktop */
@media (min-width: 769px) {
    .s22_slider_wrapper {
        display: none;
    }

    .s22_mobile_slider .swiper-wrapper {
        display: flex;
        flex-wrap: wrap;
    }

    .s22_mobile_slider .swiper-slide {
        width: auto !important; /* restore default block/grid */
        flex: 1 1 20%; /* Adjust for columns */
    }

    
}

@media (max-width: 769px) {
    .d_t_v{display: none !important;}
    .s22_master .s22_row .s22_col video {border-radius: 10px !important;}
    .s22_master .s22_col:nth-child(odd) {transform: rotate(0deg) !important;}
    .s22_master .s22_col:nth-child(odd):hover {transform: none !important;z-index: 2;}
    .s22_master .s22_col:nth-child(even) {transform: rotate(0deg) !important;}
    .s22_master .s22_col:nth-child(even):hover {transform: none !important;z-index: 2;}
    .s22_master .s22_row .s22_col img{object-fit: contain !important;}
    .s22_mobile_slider .swiper-slide img{object-fit: cover !important;background-color: #fee9d2;border-radius: 20px !important;cursor: pointer;}
    .s22_mobile_slider .swiper-slide video{object-fit: contain !important;background-color: #fee9d2;border-radius: 20px !important;}
    .s22_master3 .s22_mobile_slider .swiper-slide video{object-fit: cover !important;}
    .mob_s_pro{
      position: absolute;
      z-index: 9;
      bottom: -2px;
      left: 0px;
      color: #ccc;
      font-size: 14px;
      width: 100%;
      text-align: center;
    }
    .mob_s_name{
      position: absolute;
      z-index: 9;
      bottom: 0;
      left: 16px;
      color: #fff;
      width: 100%;
      text-align: center;
    }
    .s22_master2 .sec_title h1 {
      font-size: 30px !important;
    }
    }
@media (max-width: 480px) {
    .s22_master .swiper-slide img{object-fit: cover !important;}

}

/* View 2 */
.s22_master2{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-content: center;
  align-items: center;
}
.s22_master2 .sec_title{
  width: 450px;
}
.s22_master2 .sec_title h1 {
  font-size: 65px;
  font-weight: 700;
  font-family: "Teko", Sans-serif;
  line-height: 100%;
  color: #000;
  margin: 0%;
  padding: 0%;
  text-align: left;
  text-transform: capitalize;
}
.s22_master2 .sec_title p {
  padding: 20px 0px 50px 0px;
  text-align: left;
  font-style: italic;
}
.s22_master2 .s22_master2_slider{
  display: grid;
  transform: translate3d(0, 0, 0.1px);
  --height: calc(80vh - 50px);
  --width: 450px;
  --gap: 10px;
  width: 100%;
  overflow: visible;
}

.s22_master2 .s22_row {
  display: flex;
  overflow: hidden;
  margin: 0;
  contain: layout;
  isolation: isolate;
}

.s22_master2 .s22_col {
  display: grid;
  position: relative;
  align-content: start;
  margin: 0 var(--gap);
  flex: 1 1 10%;
  height: var(--height);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  transform: translate3d(0, 0, 0.1px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  contain: layout;
  isolation: isolate;
  transition: all .6s cubic-bezier(.55, .24, .18, 1);
  user-select: none;
}

/* Active slide — always wide */
.s22_master2 .s22_col[data-active] {
  flex: 0 0 var(--width) !important;
  opacity: 1 !important;
  margin: 0 var(--gap) !important;
  z-index: 2;
}

/* Hover effect only for non-active */
.s22_master2 .s22_col:hover:not([data-active]) {
  flex-basis: calc(var(--width) / 2);
  transition: all 0.3s ease;
}

/* Prevent active from shrinking on hover */
.s22_master2 .s22_col[data-active]:hover {
  flex: 0 0 var(--width) !important;
}

/* Images */
.s22_master2 .s22_col img {
  display: block;
  position: absolute !important;
  width: var(--width);
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  aspect-ratio: 2/3;
  object-fit: cover;
  /*filter: saturate(0.2) contrast(0.75) brightness(1.1);*/
  background-color: #ddcfbb;
}
.s22_master2 .s22_col[data-active] img{
 filter:none;
}
/* Overlay gradient
.s22_master2 .s22_col::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  background: linear-gradient(160deg, rgba(2,0,36,0) 40%, rgba(118,221,136,.5) 70%, rgba(0,255,246,.6) 100%);
  transition: all .66s cubic-bezier(.55,.24,.18,1);
}

.s22_master2 .s22_col[data-active]::after {
  transform: translateY(100%);
}*/
.s22_master2 .s22_col:hover{
  cursor: pointer;
}
/* Hide everything after the 7th unless active */
.s22_master2 .s22_col:nth-child(n+7):not([data-active]) {
  flex: 0 0 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}
.carousel__nav{
	  position:absolute;
    top:60%;
    left:-10px;
    z-index: 9;
}
.carousel__nav button {
   background: #392424;
  color: #fff;
  padding: 14px 25px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 30px;
  border: none;
  transition: all 0.3s ease;
  min-width: fit-content !important;
}

.carousel__nav button:hover {
  background: #fff;
  color: #392424;
  transform: scale(1.01) translateY(-3px); /* grow + lift */
  box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* glow */
}

  .s22_master2 .s22_col:nth-child(n+5):not([data-active]) {
    flex: 0 0 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
  }
/*@media screen and (max-width: 1000px) {
  .s22_master2 .sec_title {
    width: 300px;
  }
  .s22_master2 .s22_col:nth-child(n+4):not([data-active]) {
    flex: 0 0 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
  }
}*/
@media screen and (max-width: 991px) {
  .s22_master2{
    display: revert;
  }
  .s22_master2 .sec_title {
    width: 100%;
  }
  .carousel__nav button {
    background: #392424;
    color: #fff;
    padding: 9px 17px 14px;
  }
  .carousel__nav{
    left: 0;
    margin: auto;
    width: fit-content;
  }
}

/* Responsive tweaks */
@media screen and (max-width: 676px) {
  .s22_master2 .s22_col:nth-child(n+4):not([data-active]) {
    flex: 0 0 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
  }
}
@media screen and (max-width: 600px) {
  .s22_master2 .s22_col {
    flex-basis: 10%;
    margin: 0 5px;
    border-radius: 8px;
    font-size: 3vw;
  }
}
@media screen and (max-width: 500px) {
  .s22_master2 .s22_col {
    flex-basis: 0%;
    margin: 0 5px;
    border-radius: 8px;
    font-size: 3vw;
    
  }
  .s22_master2 .s22_col:nth-child(n+1):not([data-active]) {
    flex: 0 0 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
  }
  .s22_master2 .s22_col[data-active]:hover {
    flex: 100% !important;
  }
  .s22_master2 .s22_col[data-active] {
  flex: 100% !important;
  }
}