/* Custom Master Styles */
html,
body {
  overflow-x: clip;
  width: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
button,
input,
select,
textarea {
  font-family: 'Alegreya SC', serif !important;
}

p {
  font-family: 'Faculty Glyphic', sans-serif !important;
}

.clients-testimonial__content .section__title-wrapper p {
  font-family: 'Faculty Glyphic', sans-serif !important;
  text-transform: none !important;
}

.hero-title-line {
  font-family: 'Alegreya SC', serif !important;
  font-weight: 500;
}

.nav-pill ul li a {
  font-family: 'Alegreya SC', serif !important;
  font-size: 18px;
  font-weight: 500;
  text-transform: capitalize;
}

.lets-talk-btn span {
  font-family: 'Alegreya SC', serif !important;
  font-size: 15px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* Page Transition Styles */
@keyframes panelColorChange {
  0% {
    background-color: #dbd2c9;
  }
  20% {
    background-color: #a2aa95;
  }
  40% {
    background-color: #7c7f64;
  }
  60% {
    background-color: #b98f67;
  }
  80% {
    background-color: #7f5b43;
  }
  100% {
    background-color: #dbd2c9;
  }
}

.page-transition-panel {
  position: fixed;
  width: 50vw;
  height: 100vh;
  background-color: #dbd2c9;
  z-index: 999999;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  animation: panelColorChange 6s linear infinite;
}

/* Default state is ON screen (closed) so when page loads it covers everything */
.left-panel {
  left: 0;
  transform: translateY(0%);
}

.right-panel {
  right: 0;
  transform: translateY(0%);
}

/* WhatsApp Widget */
.wa-float-btn {
  position: fixed;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  background-color: #000;
  color: #fff;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 9999;
  border-radius: 10px 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.wa-float-btn:hover {
  padding-right: 15px;
  background-color: #25d366;
}

.wa-float-btn i {
  font-size: 24px;
  margin-bottom: 10px;
}

.wa-float-btn span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.wa-popup {
  position: fixed;
  right: 50px;
  bottom: 30px;
  width: 350px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: none;
  overflow: hidden;
  animation: waFadeIn 0.4s ease;
}

.wa-popup.active {
  display: block;
}

@keyframes waFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-popup-header {
  background: #075e54;
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.wa-popup-header .wa-avatar {
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-right: 15px;
}

.wa-popup-header .wa-info h5 {
  color: #fff;
  margin: 0;
  font-size: 16px;
}

.wa-popup-header .wa-info span {
  font-size: 12px;
  opacity: 0.8;
}

.wa-popup-header .wa-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
}

.wa-popup-header .wa-close:hover {
  opacity: 1;
}

.wa-popup-body {
  padding: 20px;
  background: #f0f0f0;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  min-height: 120px;
}

.wa-msg {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wa-msg::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 10px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

.wa-popup-footer {
  padding: 15px 20px;
  text-align: center;
}

.wa-start-chat {
  display: block;
  background: #25d366;
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.wa-start-chat:hover {
  background: #128c7e;
  color: #fff;
}

@media (max-width: 991px) {
  .wa-float-btn {
    bottom: 20px;
    top: auto;
    left: 20px;
    right: auto;
    transform: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    background-color: #25d366;
  }

  .wa-float-btn span {
    display: none;
  }

  .wa-float-btn i {
    margin: 0;
    font-size: 30px;
  }

  .wa-popup {
    width: calc(100% - 40px);
    left: 20px;
    right: auto;
    bottom: 90px;
  }
}

/* New Testimonial Card Design */
.clients-testimonial__slider--vertical .swiper-slide {
  display: flex;
  justify-content: center;
}

.clients-testimonial__item.new-design {
  background: #fff;
  border-radius: 4px;
  padding: 15px 40px 30px 60px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-left: 40px;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
  height: 230px !important;
  transition: transform 0.3s ease;
  text-align: left !important;
  font-family: 'Faculty Glyphic', sans-serif !important;
}

.clients-testimonial__item.new-design .clients-testimonial__author-media {
  position: absolute;
  left: -40px;
  top: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.clients-testimonial__item.new-design .clients-testimonial__author-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clients-testimonial__item.new-design .clients-testimonial__author h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  font-family: 'Alegreya SC', serif !important;
}

.clients-testimonial__item.new-design .clients-testimonial__stars {
  color: #000;
  margin-top: 5px;
  margin-bottom: 15px;
  display: flex;
  gap: 4px;
}

.clients-testimonial__item.new-design p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0;
  font-family: 'Faculty Glyphic', sans-serif !important;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active Slide Effect (Center big, top/bottom smaller) */
.clients-testimonial__slider--vertical .swiper-slide {
  transition: all 0.5s ease;
  opacity: 0.5;
  transform: scale(0.85) translateX(40px);
}

.clients-testimonial__slider--vertical .swiper-slide-active {
  opacity: 1;
  transform: scale(1.05) translateX(-20px);
  z-index: 10;
}

/* Fix Testimonial Wrapper Box */
.clients-testimonial__wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}
.clients-testimonial__wrapper:before,
.clients-testimonial__wrapper:after {
  display: none !important;
}
