/******************************************************  COMPONENTS ******************************************************/

/******************************************************  Global  ******************************************************/
/* Global Typography Classes */
.pre-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  width: auto;
  color: var(--cerulean);
}

.pre-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background-color: var(--cerulean);
  margin-top: 1rem;
  margin-left: 10px;
}

.text-center .pre-title {
  justify-content: center;
  align-items: center;
}

/* Centered Pre-title */
.text-center .pre-title:before {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background-color: var(--cerulean);
  margin-top: 0.4rem;
  margin-right: 10px;
}

.text-center .pre-title:after {
  margin-left: 10px;
  margin-top: 0.4rem;
}
/* Centered Pre-title */
.title {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--prussian_blue);
}

.regular-text {
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--prussian_blue);
}
.mw-600 {
  max-width: 600px;
  margin: 0 auto;
}

.mw-700 {
  max-width: 700px;
  margin: 0 auto;
}

.custom-list ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0;
}

.custom-list ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  line-height: 1.2;
}
.custom-list ul li:before {
  content: "";
  background: url(/wp-content/themes/ncdic/images/icon-checkmark-green.svg)
    no-repeat center center;
  width: 25px;
  height: 25px;
  background-size: contain;
  border-radius: 50%;
}

@media (max-width: 991.98px) {
  .pre-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1;
  }
  .title {
    font-size: 2rem;
  }
  .text-center .pre-title:before,
  .text-center .pre-title:after {
    margin-top: 0.1rem;
  }
  .pre-title:after {
    margin-top: 0.4rem;
  }
  .custom-list ul li:before {
    width: 30px;
    height: 30px;
    min-height: 30px;
    min-width: 30px;
  }
  .hide-mobile {
    display: none;
  }
}

/******************************************************  Two Columns  ******************************************************/

.two-columns {
  padding: 5rem 0;
}

.two-columns .column-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-columns .column-text-content {
  padding: 2rem 0;
  max-width: 600px;
}

.two-columns .column-image img {
  width: 80%;
  max-width: 80%;
  border-radius: 20px;
}

.two-columns.space-image-text .column-image img {
  width: 100%;
  height: auto;
  position: relative;
  /* left: 15%; */
  border-radius: 20px;
}

.two-columns .column-video .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 0.5rem;
  overflow: hidden;
}

.two-columns .column-video .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.two-columns .column-video .video-wrapper video.wp-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0.5rem;
}

.two-columns .column-video .video-wrapper:has(img) {
  padding-bottom: 0;
}

.two-columns .column-video .video-wrapper img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.two-columns .column-video .video-wrapper.video-playing {
  padding-bottom: 56.25% !important;
}

.two-columns .column-video .video-wrapper .video-error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  color: #6c757d;
  text-align: center;
  padding: 2rem;
}

.two-columns .column-video .video-wrapper .video-error p {
  margin: 0;
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  .two-columns .column-video {
    padding-right: 3rem;
  }
}

/* Square video styles for 1:1 aspect ratio */
.two-columns.square-video .column-video .video-wrapper {
  padding-bottom: 70%;
  max-width: 600px;
  margin: 0 auto;
}

.two-columns.square-video .column-video .video-wrapper video.wp-video {
  object-fit: cover;
  max-width: 600px;
  margin: 0 auto;
  max-height: 600px;
  height: 600px;
  width: 600px;
  mix-blend-mode: darken;
}

@media (max-width: 991.98px) {
  .two-columns.square-video .column-video .video-wrapper video.wp-video {
    height: 100%;
    width: 100%;
  }
  .two-columns {
    padding: 3rem 0;
  }

  .two-columns .column-content {
    margin-bottom: 2rem;
  }

  .two-columns .column-text-content {
    padding: 1rem 0;
  }

  .two-columns .column-image img {
    left: 0px!important;
    transform: translate(0);
    width: 100%;
    max-width: 100%;
  }
  .two-columns.img-hide-mobile .col-lg-6:has(.column-image img) {
    display: none;
  }
  .two-columns.img-hide-mobile {
    padding: 3rem 0 0 0;
  }
}

/******************************************************  Home Hero ******************************************************/
.home-hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home-hero .hero-video,
.home-hero .hero-video-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

.home-hero .hero-video {
  display: block;
}

.home-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
              98deg, rgb(255 255 255) 0%,
              rgb(255 255 255 / 70%) 40%,
              rgb(255 255 255 / 50%) 50%,
              rgba(255, 255, 255, 10%) 60%,
              rgba(255, 255, 255, 0) 100%
              );
}

@media (max-width: 768px) {
  .home-hero .hero-overlay {
    opacity: .9;
    background: linear-gradient(
                157deg, rgb(255 255 255) 0%,
                rgb(255 255 255 / 70%) 60%,
                rgb(255 255 255 / 60%) 70%,
                rgba(255, 255, 255, 20%) 80%,
                rgba(255, 255, 255, 0) 100%
                );
  }
}


.home-hero .content-hero {
  max-width: 600px;
}

.home-hero .hero-background,
.home-hero .hero-background-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.home-hero .hero-background-mobile {
  display: none;
}

.home-hero .hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-hero .hero-bg-image.active,
.home-hero .hero-bg-image-mobile.active {
  opacity: 1;
}

.home-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.home-hero .hero-title {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.home-hero .title-fixed-part-1,
.home-hero .title-fixed-part-2 {
  display: inline;
}

.home-hero .title-animated-wrapper {
  display: inline-block;
  position: relative;
  min-width: 200px;
}

.home-hero .title-animated-text {
  display: inline-block;
}

.home-hero .animated-title {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
}

.home-hero .animated-title.active {
  opacity: 1;
  transform: translateY(0);
}

.home-hero .hero-text {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.home-hero .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-hero .hero-button-wrapper {
  flex: 0 0 auto;
}

.home-hero .google-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-hero .google-logo {
  display: flex;
  align-items: center;
}

.home-hero .google-icon {
  width: 24px;
  height: 24px;
}

.home-hero .google-stars {
  display: flex;
  gap: 0.25rem;
}

.home-hero .star-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 991.98px) {
  .home-hero .hero-bg-image {
    background-position: 38%;
  }
  .home-hero .hero-title {
    font-size: 3.4rem;
  }
  .home-hero .hero-title {
    display: flex;
    flex-direction: column;
  }

  /* Show mobile background images on mobile devices */
  .home-hero .hero-background {
    display: none;
  }

  .home-hero .hero-background-mobile {
    display: block;
  }

  /* Toggle videos on mobile */
  .home-hero .hero-video {
    display: none;
  }
  .home-hero .hero-video-mobile {
    display: block;
  }

  /* Ensure mobile images have proper styling */
  .home-hero .hero-bg-image-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
}

@media (max-width: 600px) {
  .home-hero .hero-title {
    font-size: 2.3rem;
  }
}

/******************************************************  Home Hero ******************************************************/

/******************************************************  NCDIC Button ******************************************************/
.ncdic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  height: 50px;
}

.ncdic-btn:hover {
  filter: brightness(1.05);
}

.ncdic-btn .ncdic-btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.25rem;
  width: 1.1em;
  height: 1.1em;
  transition: filter 0.2s;
}

.ncdic-btn .ncdic-btn-icon--original,
.ncdic-btn .ncdic-btn-icon--hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
}

.ncdic-btn .ncdic-btn-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.ncdic-btn span {
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .ncdic-btn span {
    font-size: .9rem;
    line-height: 1.1;
  }
}

/* Icon size variations */
.ncdic-btn__icon-img--money {
  max-height: 20px;
}

.ncdic-btn__icon-img--calendar {
  max-height: 18px;
}

.ncdic-btn__icon-img--top_right_arrow {
  max-height: 14px;
}

.ncdic-btn__icon-img--directions {
  max-height: 14px;
}

.ncdic-btn__icon-img--phone {
  max-height: 20px;
}

.ncdic-btn-xanthous {
  background-color: var(--xanthous);
}
.ncdic-btn-white {
  background-color: var(--white);
}
.ncdic-btn-light_cyan {
  background-color: var(--light_cyan);
}
.ncdic-btn-cerulean {
  background-color: var(--cerulean);
}
.ncdic-btn-prussian_blue {
  background-color: var(--prussian_blue);
}
.ncdic-btn-blue_charcoal {
  background-color: var(--blue_charcoal);
}

.ncdic-btn-text-xanthous,
.ncdic-btn-text-xanthous:hover {
  color: var(--xanthous);
}
.ncdic-btn-text-white,
.ncdic-btn-text-white:hover {
  color: var(--white);
}
.ncdic-btn-text-light_cyan,
.ncdic-btn-text-light_cyan:hover {
  color: var(--light_cyan);
}
.ncdic-btn-text-cerulean,
.ncdic-btn-text-cerulean:hover {
  color: var(--cerulean);
}
.ncdic-btn-text-prussian_blue,
.ncdic-btn-text-prussian_blue:hover {
  color: var(--prussian_blue);
}
.ncdic-btn-text-blue_charcoal,
.ncdic-btn-text-blue_charcoal:hover {
  color: var(--blue_charcoal);
}

/* Icon brightness when text is white */
.ncdic-btn-text-white .ncdic-btn-icon img {
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .ncdic-btn {
    min-height: 44px;
    font-size: 1rem;
    padding: 0 1.2rem;
  }
}
/******************************************************  NCDIC Button ******************************************************/

/******************************************************  CTA Same Day  ******************************************************/

.cta-same-day {
  padding: 5rem 0;
  position: relative;
}

.cta-same-day .cta-card {
  position: relative;
  background: linear-gradient(320deg, #bce5ea 0%, #e2fcff 47%, #bce5ea 100%);
  border-radius: 20px;
  padding: 4rem 3rem 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.cta-same-day .cta-badge {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  z-index: 10;
}

.cta-same-day .badge-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-same-day .badge-bg {
  width: 100%;
  height: 100%;
}

.cta-same-day .badge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 65%;
}

.cta-same-day .badge-text-img {
  width: 100%;
  height: 100%;
  animation: rotate 20s linear infinite reverse;
}

.cta-same-day .badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  z-index: 2;
}

.cta-same-day .checkmark-icon {
  width: 100%;
  height: 100%;
}

.cta-same-day .card-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: -1;
  mix-blend-mode: multiply;
}

.cta-same-day .texture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cta-same-day .content-wrapper {
  position: relative;
  z-index: 2;
}

.cta-same-day .cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--prussian_blue);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-same-day .cta-text,
.cta-same-day .cta-text p {
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--prussian_blue);
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-same-day .signature {
  margin-bottom: 2rem;
}

.cta-same-day .signature-img {
  height: 60px;
  width: auto;
}

.cta-same-day .cta-button-wrapper {
  display: flex;
  justify-content: center;
}

.cta-same-day .cta-button-wrapper a {
  position: absolute;
  bottom: -4rem;
}

.no-badge .cta-badge {
  display: none;
}
.no-signature .signature {
  display: none;
}
/* Rotating Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .cta-same-day {
    padding: 1rem 0;
  }
  .cta-same-day .cta-card {
    padding: 3rem 2rem;
    margin-top: 2rem;
  }

  .cta-same-day .cta-title {
    font-size: 2rem;
  }

  .cta-same-day .cta-text {
    font-size: 1.1rem;
  }

  .cta-same-day .cta-badge {
    width: 100px;
    height: 100px;
    top: -25px;
  }

  .cta-same-day .badge-icon {
    width: 30px;
    height: 30px;
  }

  .cta-same-day .signature-img {
    height: 40px;
  }
  .cta-same-day .cta-text p {
    font-size: 1.2rem;
  }
}

/******************************************************  Team Members  ******************************************************/
.team-members {
  padding: 5rem 0 0 0;
}

.team-members-header {
  margin-bottom: 4rem;
}

.team-members-slider-wrapper {
  margin-bottom: 3rem;
}

.team-member-card {
  text-align: center;
  background-color: #defdff;
  border-radius: 24px;
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.team-member-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--cerulean);
  border-radius: 30px;
  z-index: -1;
}

.team-member-photo {
  width: 100%;
  height: auto;
  border-radius: 30px;
  overflow: hidden;
}

.team-member-photo .member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.team-member-photo .member-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light_cyan);
  color: var(--prussian_blue);
  font-size: 3rem;
  border-radius: 50%;
}

.team-member-info {
  text-align: center;
}

.member-name {
  font-size: 1.1rem;
  color: var(--prussian_blue);
  margin-top: 1rem;
}

.team-slider {
  position: relative;
  margin: 3rem 0;
}
.slider-viewport {
  overflow: hidden;
}

.slide {
  flex: 0 0 auto;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

.slider-track {
  list-style: none;
  margin: 0;
  padding: 0;
  padding: 2rem;
  display: flex;
  gap: 1rem;
  transform: translateX(0);
}

@media (min-width: 992px) {
  .slide {
    flex-basis: calc((100% - 4rem) / 5);
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .slide {
    flex-basis: calc((100% - 2rem) / 3);
  }
}
@media (max-width: 767.98px) {
  .team-members {
    padding: 5rem 0 2rem 0;
  }
  .slide {
    flex-basis: 100%;
    transform: none !important;
  }
  .slider-track {
    gap: 5rem;
  }
  .slider-viewport {
    padding: 0 10%;
  }
  .team-slider {
    margin: 0;
  }
}

.slider-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 2px solid var(--prussian_blue);
  background: var(--white);
  color: var(--prussian_blue);
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.slider-arrow--prev {
  left: 0;
}
.slider-arrow--next {
  right: 0;
}
.slider-arrow:hover {
  background: var(--prussian_blue);
  color: #fff;
}

/******************************************************  Reviews  ******************************************************/
.reviews {
  padding: 5rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.reviews:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.reviews .container-xxl {
  position: relative;
  z-index: 2;
}

.reviews-header {
  margin-bottom: 4rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.review-card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 2rem 1.2rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease-in-out;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.star-icon {
  width: 20px;
  height: 20px;
  transition: filter 0.3s ease;
}

.star-icon.empty {
  filter: brightness(0) saturate(100%) invert(90%) sepia(0%) saturate(0%)
    hue-rotate(93deg) brightness(89%) contrast(86%);
}

.review-content {
  margin-bottom: 1.5rem;
  flex: 1;
}

.review-text-wrapper {
  position: relative;
  transition: all 0.3s ease;
}

.review-text,
.review-text-full {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--prussian_blue);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.review-text p,
.review-text-full p {
  margin-bottom: 0.5rem;
}

.review-text p:last-child,
.review-text-full p:last-child {
  margin-bottom: 0;
}

.review-more,
.review-less {
  background: none;
  border: none;
  color: var(--cerulean);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.review-more:hover,
.review-less:hover {
  color: var(--prussian_blue);
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  margin-top: auto;
}

.reviewer-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--prussian_blue);
  font-style: italic;
}

.google-icon {
  width: 24px;
  height: 24px;
}

.reviews-load-more {
  margin-top: 3rem;
  z-index: 999;
  position: relative;
}

.load-more-btn {
  min-width: 200px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .review-card {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .review-card {
    padding: 1.25rem;
  }

  .reviews {
    padding: 3rem 0;
  }
}

/******************************************************  CTA Appointment With Icons  ******************************************************/
.cta-appointment-with-icons {
  padding: 11rem 0 5rem 0;
}

.cta-appointment-with-icons .cta-main-card {
  position: relative;
  border-radius: 20px;
  margin-bottom: 4rem;
}

.cta-appointment-with-icons .cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 20px;
}

.cta-appointment-with-icons .gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(320deg, #bce5ea 0%, #e2fcff 47%, #bce5ea 100%);
  mix-blend-mode: multiply;
  border-radius: 20px;
}

.cta-appointment-with-icons .texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  mix-blend-mode: multiply;
  border-radius: 20px;
}

.cta-appointment-with-icons .texture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.cta-appointment-with-icons .cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 3rem 4rem;
  min-height: 300px;
}

.cta-appointment-with-icons .cta-text-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 8%;
  align-items: center;
}

.cta-appointment-with-icons .cta-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--prussian_blue);
  margin-bottom: 1.5rem;
  line-height: 1;
  max-width: 500px;
}

.cta-appointment-with-icons .cta-text {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--prussian_blue);
  max-width: 550px;
}

.cta-appointment-with-icons .cta-button-wrapper {
  margin-bottom: 1rem;
}

.cta-appointment-with-icons .cta-right-image {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.cta-appointment-with-icons .right-img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  border-radius: 0 0 20px 0;
}

/* Bottom Icons Section */
.cta-appointment-with-icons .bottom-icons-section {
  margin-top: 3rem;
}

.cta-appointment-with-icons .icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

.cta-appointment-with-icons .icon-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-appointment-with-icons .icon-wrapper {
  display: flex;
  background: linear-gradient(320deg, #bce5ea 0%, #e2fcff 47%, #bce5ea 100%);
  height: 100px;
  width: 100px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.cta-appointment-with-icons .icon-img {
  width: 60px;
  height: 60px;
}

.cta-appointment-with-icons .percentage-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--prussian_blue);
  line-height: 1;
}

.cta-appointment-with-icons .animated-number {
  display: inline-block;
}

.cta-appointment-with-icons .icon-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--prussian_blue);
  margin: 0;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 1330px) {
  .cta-appointment-with-icons .cta-content {
    text-align: center;
    padding: 3rem 4rem;
  }

  .cta-appointment-with-icons .cta-text-content {
    flex-direction: column;
    row-gap: 2rem;
    max-width: 100%;
    margin-bottom: 0;
    align-items: flex-start;
  }
  .cta-appointment-with-icons .cta-title {
    font-size: 3rem;
    text-align: left;
  }

  .cta-appointment-with-icons .cta-text {
    font-size: 2rem;
    text-align: left;
  }

  .cta-appointment-with-icons .cta-right-image {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .cta-appointment-with-icons .right-img {
    max-height: 450px;
  }

  .cta-appointment-with-icons .icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 950px) {
  .cta-appointment-with-icons .right-img {
    max-height: 300px;
  }
}

@media (max-width: 850px) {
  .cta-appointment-with-icons .right-img {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .cta-appointment-with-icons {
    padding: 4rem 0 3rem 0;
  }

  .cta-appointment-with-icons .cta-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .cta-appointment-with-icons .cta-text-content {
    flex-direction: column;
    row-gap: 3rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .cta-appointment-with-icons .cta-title {
    font-size: 2.2rem;
  }

  .cta-appointment-with-icons .cta-text {
    font-size: 1.6rem;
  }

  .cta-appointment-with-icons .cta-right-image {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .cta-appointment-with-icons .icons-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    justify-items: start;
  }

  .cta-appointment-with-icons .right-img {
    max-height: 200px;
  }

  .cta-appointment-with-icons .bottom-icons-section {
    margin-top: 7rem;
  }
}

@media (max-width: 530px) {
  .cta-appointment-with-icons .cta-content {
    padding: 2rem 2rem 14rem 2rem;
  }
  .cta-appointment-with-icons .right-img {
    max-height: 280px;
  }
  .cta-appointment-with-icons .cta-text-content {
    row-gap: 1rem;
  }
  .cta-appointment-with-icons .cta-button-wrapper {
    position: absolute;
    bottom: -5rem;
    z-index: 999;
    width: 80%;
  }
}

/******************************************************  Content and Tables  ******************************************************/
.content-and-tables {
  padding: 5rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.content-and-tables .container-xxl {
  position: relative;
  z-index: 2;
}

.content-and-tables .left-content-section {
  margin-bottom: 4rem;
}

.content-and-tables .content-wrapper {
  max-width: 800px;
}

.content-and-tables .text-content-1,
.content-and-tables .text-content-2 {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--prussian_blue);
  margin-bottom: 2rem;
}

.content-and-tables .cta-block {
  width: 100%;
  height: 100%;
  background: linear-gradient(320deg, #bce5ea 0%, #e2fcff 47%, #bce5ea 100%);
  mix-blend-mode: multiply;
  border-radius: 20px;
  display: flex;
  align-items: center;
  min-height: 200px;
  position: relative;
  margin-top: 4.6rem;
  margin-bottom: 1.6rem;
}

.content-and-tables .cta-image {
  position: absolute;
  bottom: 0;
  left: 0;
}

.content-and-tables .cta-img {
  max-width: 190px;
  height: auto;
  border-radius: 12px;
}

.content-and-tables .cta-content-wrapper {
  flex: 1;
  margin-left: 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 6%;
}

.content-and-tables .cta-text {
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--prussian_blue);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 90%;
  font-weight: 600;
}

.content-and-tables .cta-button-wrapper {
  margin-bottom: 0;
}

.content-and-tables .tables-section {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
}

.content-and-tables .table-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.content-and-tables .table-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--prussian_blue);
  margin-bottom: 2rem;
  text-align: center;
}

.content-and-tables .same-day-table .table-title {
  color: var(--cerulean);
}

.content-and-tables .traditional-table {
  background: #f5f5f5;
  box-shadow: none;
}

.content-and-tables .traditional-table .table-item:nth-child(odd) {
  background: #d8d8d8;
}

.content-and-tables .traditional-table .table-item:nth-child(even) {
  background: #e6e6e6;
}

.content-and-tables .same-day-table .item-text {
  font-weight: 600;
}

.content-and-tables .traditional-table .table-title {
  color: #666;
}

.content-and-tables .table-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.content-and-tables .table-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-and-tables .table-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-and-tables .item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-and-tables .checkmark-icon {
  width: 28px;
  height: 28px;
}

.content-and-tables .x-icon {
  width: 20px;
  height: 20px;
}

.content-and-tables .item-text {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--prussian_blue);
  font-weight: 500;
}

.content-and-tables .tables-section {
  perspective: 1000px;
}

.content-and-tables .traditional-table {
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transform: rotateY(200deg) rotateX(0deg) scale(0.6);
  opacity: 0;
}

@keyframes tableEntry {
  0% {
    transform: rotateY(200deg) rotateX(0deg) scale(0.6);
    opacity: 0;
  }
  100% {
    transform: rotateY(330deg) rotateX(0deg) scale(0.9);
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .content-and-tables {
    padding: 3rem 0;
  }

  .content-and-tables .left-content-section {
    margin-bottom: 3rem;
  }

  .content-and-tables .cta-block {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    margin-top: 0;
  }

  .content-and-tables .cta-img {
    max-width: 150px;
    left: -26px;
    position: relative;
    border-radius: 0 0 0 55px;
  }

  .content-and-tables .tables-section {
    gap: 1.5rem;
    flex-direction: column;
  }

  .content-and-tables .table-card {
    padding: 1.5rem;
  }

  .content-and-tables .text-content-1,
  .content-and-tables .text-content-2 {
    font-size: 1.3rem;
    line-height: 1.25;
  }
}

@media (max-width: 767.98px) {
  .content-and-tables .content-wrapper {
    max-width: 100%;
  }

  .content-and-tables .cta-block {
    padding: 1.5rem;
    margin-top: 0;
  }

  .content-and-tables .table-card {
    padding: 1.5rem;
  }

  .content-and-tables .table-title {
    font-size: 1.3rem;
  }

  .content-and-tables .table-item {
    padding: 0.75rem;
  }

  .content-and-tables .item-text {
    font-size: 0.9rem;
  }

  .content-and-tables .cta-text {
    max-width: 100%;
    letter-spacing: -0.02em;
  }
  .content-and-tables .cta-content-wrapper {
    margin-left: 32%;
    margin-right: 0%;
  }

  .content-and-tables .traditional-table {
    transform: rotateY(0deg) rotateX(0deg) scale(1) !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

/******************************************************  Testimonial Slider  ******************************************************/
.testimonial-slider {
  padding: 5rem 0;
  background: var(--white);
}

.testimonial-header {
  margin-bottom: 4rem;
}

.testimonial-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-slider {
  position: relative;
}

.testimonial-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-card {
  background: var(--prussian_blue);
  border-radius: 20px;
  overflow: hidden;
  min-height: 500px;
  position: relative;
}

.testimonial-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  height: 100%;
  min-height: 500px;
}

.testimonial-quote {
  flex: 1;
  display: flex;
  align-items: center;
}

.quote-text {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-name {
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
}

.read-more-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.read-more-link:hover {
  color: var(--white);
  opacity: 0.8;
}

.arrow-icon {
  width: 14px !important;
  height: 14px !important;
  filter: brightness(0) invert(1);
}

.testimonial-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
}

.read-more-btn:hover {
  background: var(--white);
  color: var(--prussian_blue);
  text-decoration: none;
}

.pricing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--xanthous);
  color: var(--prussian_blue);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pricing-btn:hover {
  background: var(--xanthous);
  color: var(--prussian_blue);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.money-icon {
  width: 20px;
  height: 20px;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--white);
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prussian_blue);
  pointer-events: auto;
  user-select: none;
  border: solid 1px var(--prussian_blue);
  transition: all 0.2s ease-in-out;
}

.testimonial-arrow:hover {
  background: var(--prussian_blue);
  color: var(--white);
}

.testimonial-arrow--prev {
  left: -5rem;
}

.testimonial-arrow--next {
  right: -5rem;
}

.testimonial-arrow svg {
  width: 20px;
  height: 20px;
}

.testimonial-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 40px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.testimonial-dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bar-width, 0%);
  height: 100%;
  background: var(--cerulean);
  border-radius: 2px;
}

.testimonial-dot:hover {
  background: var(--cerulean);
  opacity: 0.7;
}

.testimonial-actions a:nth-child(1):hover {
  filter: brightness(1);
}

@media (max-width: 991.98px) {
  .testimonial-slider {
    padding: 3rem 0;
  }

  .testimonial-header .title {
    font-size: 2.5rem;
  }

  .testimonial-content {
    padding: 2rem;
    min-height: auto;
  }
  .testimonial-card .row {
    display: flex;
    flex-direction: column-reverse;
  }

  .quote-text {
    font-size: 1.1rem;
  }

  .testimonial-image {
    min-height: 400px;
  }

  .testimonial-arrow {
    width: 40px;
    height: 40px;
  }

  .testimonial-arrow--prev {
    left: -5rem;
  }

  .testimonial-arrow--next {
    right: -5rem;
  }
}

@media (max-width: 767.98px) {
  .testimonial-header .title {
    font-size: 2rem;
  }

  .testimonial-header .description {
    font-size: 1rem;
  }

  .testimonial-content {
    padding: 2rem 2.5rem;
  }

  .quote-text {
    font-size: 1.1rem;
  }

  .author-name {
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
  }

  .testimonial-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .testimonial-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .read-more-btn,
  .pricing-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .testimonial-arrow {
    width: 35px;
    height: 35px;
  }

  .testimonial-arrow svg {
    width: 16px;
    height: 16px;
  }

  .testimonial-arrow--prev {
    left: -17px;
  }

  .testimonial-arrow--next {
    right: -17px;
  }

  .testimonial-actions a:nth-child(1) {
    position: absolute;
    bottom: 114px;
  }
}

/******************************************************  Highlight Treatments  ******************************************************/
.highlight-treatments {
  padding: 5rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.highlight-treatments .container-xxl {
  position: relative;
  z-index: 2;
}

.highlight-treatments .pre-title {
  color: var(--xanthous);
}

.highlight-treatments .pre-title:after {
  background-color: var(--xanthous);
}

.highlight-treatments .title {
  color: var(--white);
  max-width: 700px;
}

.highlight-treatments .highlight-header {
  margin-bottom: 4rem;
  margin-left: 2rem;
}

.highlight-treatments .highlight-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 1rem;
}

.highlight-treatments .highlight-card {
  background: rgb(255 255 255 / 14%);
  border-radius: 200px;
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 800px;
  border: solid 1px rgb(255 255 255 / 42%);
}

.highlight-treatments .highlight-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.highlight-treatments .card-content {
  padding: 1rem 2rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.highlight-treatments .card-text {
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--white);
  width: 50%;
}

.highlight-treatments .card-text p {
  margin-bottom: 1rem;
}

.highlight-treatments .card-text p:last-child {
  margin-bottom: 0;
}

.highlight-treatments .card-image {
  width: 20%;
}

.highlight-treatments .side-img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.highlight-treatments .bottom-cta-wrapper .ncdic-btn-xanthous {
  background-color: transparent;
  font-weight: 300;
}

@media (max-width: 991.98px) {
  .highlight-treatments {
    padding: 3rem 0;
    background-position: 78% center;
  }

  .highlight-treatments::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .highlight-treatments .highlight-card {
    background: rgb(255 255 255 / 15%);
    backdrop-filter: blur(6px);
  }

  .highlight-treatments .highlight-header {
    margin-bottom: 3rem;
  }

  .highlight-treatments .card-content {
    padding: 2rem;
  }

  .highlight-treatments .card-text {
    font-size: 1.1rem;
  }

  .highlight-treatments .card-image {
    min-height: 200px;
  }

  .highlight-treatments .side-img {
    max-height: 200px;
  }
}

@media (max-width: 767.98px) {
  .highlight-treatments .highlight-cards {
    gap: 1.5rem;
  }

  .highlight-treatments .highlight-card {
    border-radius: 20px;
  }

  .highlight-treatments .card-content {
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .highlight-treatments .card-text {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .highlight-treatments .card-image {
    min-height: 40px;
    width: 100%;
    margin-bottom: 1rem;
  }

  .highlight-treatments .side-img {
    max-height: 150px;
    border-radius: 14px;
  }

  /* Mobile layout: First row with two columns */
  .highlight-treatments .card-content {
    display: grid;
    grid-template-areas:
      "image text"
      "button button";
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    row-gap: 0rem;
    align-items: center;
  }

  .highlight-treatments .card-content .ncdic-btn.anima-text-btn span {
    width: auto;
    max-width: 110px;
  }

  .highlight-treatments .card-image {
    grid-area: image;
    width: 100%;
    margin-bottom: 0;
  }

  .highlight-treatments .card-text {
    grid-area: text;
    width: 100%;
    margin-bottom: 0;
  }

  .highlight-treatments .card-cta {
    grid-area: button;
    width: 100%;
    margin-top: 1rem;
  }

  .highlight-treatments .card-cta .ncdic-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .highlight-treatments .highlight-header {
    margin-left: 0rem;
  }
}

/******************************************************  Contact Form  ******************************************************/
.contact-form {
  padding: 5rem 0;
  background: var(--white);
}

.contact-form .form-header {
  margin-bottom: 3rem;
}

.contact-form .contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 12px;
}

.contact-form .col-md-6:last-child {
  display: flex;
  flex-direction: column;
}

.contact-form .col-md-6:last-child .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form .col-md-6:last-child .form-group textarea {
  flex: 1;
}

.contact-form .form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--prussian_blue);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--prussian_blue);
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--cerulean);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form .form-control::placeholder {
  color: #6c757d;
  opacity: 0.7;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 200px;
  height: 100%;
}

.form-submit .text-hover {
  max-width: 75% !important;
  width: 75% !important;
  left: 12.5% !important;
}

.contact-form .error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.contact-form .form-messages {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 12px;
}

.contact-form .success-message {
  color: #082d1b;
  background: #84ffc7;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.contact-form .error-message.general {
  color: #2d0808;
  background: #ffbfbf;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  #contact-form .row div:nth-child(2) {
    margin-top: 0;
  }
  .contact-form {
    padding: 3rem 0;
  }

  .contact-form .contact-form-element {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  .contact-form .contact-form-element {
    padding: 0;
  }

  .contact-form .form-control {
    padding: 0.875rem 1.25rem;
  }
}

/******************************************************  Before & After  ******************************************************/
.before-after {
  padding: 5rem 0;
  background: var(--white);
}

.before-after .section-header {
  margin-bottom: 3rem;
}

.before-after .before-after-grid {
  margin-bottom: 3rem;
}

.before-after .comparison-slider {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  .before-after.two-columns .comparison-slider {
    height: 400px;
  }
}

.before-after .comparison-before,
.before-after .comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.before-after .comparison-before {
  z-index: 1;
}

.before-after .comparison-after {
  z-index: 2;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.before-after .before-img,
.before-after .after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.before-after .before-label,
.before-after .after-label {
  position: absolute;
  top: 1rem;
  background: rgb(255 255 255);
  color: #0e3348;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.before-after .before-label {
  left: 15px;
}

.before-after .after-label {
  right: 15px;
}

.before-after .comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  z-index: 10;
  transform: translateX(-50%);
  cursor: grab;
}

.before-after .comparison-slider:active {
  cursor: grabbing;
}

.before-after .handle-line {
  width: 100%;
  height: 100%;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.before-after .handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #666;
}

.before-after .handle-circle img {
  max-width: 26px;
}

.before-after .case-title {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--prussian_blue);
  font-size: 14px;
}

.before-after .section-text {
  margin: 1rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.before-after .section-cta {
  margin-top: 3rem;
}

.before-after .cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.before-after .cta-button {
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .before-after {
    padding: 3rem 0;
  }

  .before-after .comparison-slider {
    height: 250px;
  }

  .before-after .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .before-after .comparison-slider {
    height: 200px;
  }

  .before-after .handle-circle {
    width: 35px;
    height: 35px;
  }
}

/* Tablet Adjusts */
@media (min-width: 769px) and (max-width: 1200px) {
  .team-members {
    padding: 1rem 0;
  }
  .cta-appointment-with-icons {
    padding: 4rem 0 5rem 0;
  }
  .traditional-table {
    animation: none;
    transform: rotateY(0deg) rotateX(0deg) scale(1) !important;
  }
  .testimonial-image {
    min-height: 500px;
  }
  .testimonial-image {
    background-position: center bottom;
  }
  .testimonial-arrow--next {
    right: -1rem;
  }
  .testimonial-arrow--prev {
    left: -1rem;
  }

  /* Lets Fix Section */
  .highlight-treatments .highlight-cards {
    gap: 1.5rem;
  }

  .highlight-treatments .highlight-card {
    border-radius: 20px;
  }

  .highlight-treatments .card-content {
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .highlight-treatments .card-text {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .highlight-treatments .card-image {
    min-height: 40px;
    width: 100%;
    margin-bottom: 1rem;
  }

  .highlight-treatments .side-img {
    max-height: 150px;
    border-radius: 14px;
  }

  /* Mobile layout: First row with two columns */
  .highlight-treatments .card-content {
    display: grid;
    grid-template-areas:
      "image text"
      "button button";
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    row-gap: 0rem;
    align-items: center;
  }

  .highlight-treatments .card-content .ncdic-btn.anima-text-btn span {
    width: 45%;
    max-width: 110px;
  }

  .highlight-treatments .card-image {
    grid-area: image;
    width: 100%;
    margin-bottom: 0;
  }

  .highlight-treatments .card-text {
    grid-area: text;
    width: 100%;
    margin-bottom: 0;
  }

  .highlight-treatments .card-cta {
    grid-area: button;
    width: 100%;
    margin-top: 1rem;
  }

  .highlight-treatments .card-cta .ncdic-btn {
    width: 100%;
    justify-content: center;
  }
  .before-after {
    padding: 2rem 0;
  }
  /* Lets Fix Section */
}

/******************************************************  Custom List Image Text Button Component  ******************************************************/

.custom-list-image-text-button {
  padding: 5rem 0;
}

.custom-list-image-text-button .section-header {
  margin-bottom: 4rem;
}

.custom-list-image-text-button .pre-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color, #03799b);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-list-image-text-button .section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.custom-list-image-text-button .section-description {
  font-size: 1.2rem;
  color: var(--text-muted, #666);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.custom-list-image-text-button .list-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.custom-list-image-text-button .list-item-card {
  background: var(--prussian_blue);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-list-image-text-button .list-item-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.custom-list-image-text-button .item-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  filter: brightness(0.9) contrast(1.1);
}

.custom-list-image-text-button .item-content {
  color: white;
}

.custom-list-image-text-button .item-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.custom-list-image-text-button .item-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.custom-list-image-text-button .item-cta-wrapper {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

@media (max-width: 767.98px) {
  .custom-list-image-text-button {
    padding: 3rem 0;
  }

  .custom-list-image-text-button .item-image {
    margin-bottom: 2rem;
  }
  .custom-list-image-text-button .section-header {
    margin-bottom: 2.5rem;
  }

  .custom-list-image-text-button .section-title {
    font-size: 2rem;
  }

  .custom-list-image-text-button .section-description {
    font-size: 1rem;
  }

  .custom-list-image-text-button .list-item-card {
    padding: 1.25rem;
  }

  .custom-list-image-text-button .item-title {
    font-size: 1.3rem;
    text-align: center;
  }

  .custom-list-image-text-button .item-text {
    font-size: 1rem;
    text-align: center;
  }

  .custom-list-image-text-button.ncdic-btn {
    margin-bottom: 1rem;
  }
}

/******************************************************  CTA Naeem Component  ******************************************************/
.cta-naeem {
  padding: 5rem 0;
}

.cta-naeem-card {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.cta-naeem .cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-naeem .gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(320deg, #bce5ea 0%, #e2fcff 47%, #bce5ea 100%);
  mix-blend-mode: multiply;
  border-radius: 20px;
}

.cta-naeem .texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.cta-naeem .texture-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Doctor Image - Positioned absolutely */
.cta-naeem .doctor-image-wrapper {
  position: absolute;
  left: 1rem;
  bottom: 0;
  width: 340px;
  z-index: 2;
}

.cta-naeem .doctor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Content Section */
.cta-naeem .cta-content {
  position: relative;
  z-index: 3;
  padding: 3rem;
  margin-left: 370px;
  width: calc(100% - 370px);
}

.cta-naeem .content-wrapper {
  max-width: 90%;
}

.cta-naeem .pre-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color, #03799b);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-naeem .main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-naeem .description-text {
  font-size: 1.1rem;
  color: var(--text-muted, #666);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-naeem .description-text p {
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--prussian_blue);
}

.cta-naeem .cta-button-wrapper {
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .cta-naeem .doctor-image-wrapper {
    width: 400px;
    left: -60px;
    top: -40px;
    bottom: -40px;
  }

  .cta-naeem .cta-content {
    margin-left: 340px;
    width: calc(100% - 340px);
    padding: 2.5rem;
  }

  .cta-naeem .main-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 991.98px) {
  .cta-naeem .doctor-image-wrapper {
    width: 350px;
    left: -40px;
    top: -30px;
    bottom: -30px;
  }

  .cta-naeem .cta-content {
    margin-left: 310px;
    width: calc(100% - 310px);
    padding: 2rem;
  }

  .cta-naeem .main-title {
    font-size: 2rem;
  }

  .cta-naeem .description-text {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .cta-naeem {
    padding: 3rem 0;
  }

  .cta-naeem-card {
    min-height: auto;
    flex-direction: column;
    text-align: center;
  }

  .cta-naeem .doctor-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    left: 0;
    top: 0;
    bottom: 0;
    margin-bottom: 2rem;
  }

  .cta-naeem .cta-content {
    margin-left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .cta-naeem .main-title {
    font-size: 1.8rem;
  }

  .cta-naeem .pre-title {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .cta-naeem .cta-content {
    padding: 1.5rem 1rem;
  }

  .cta-naeem .main-title {
    font-size: 1.6rem;
  }

  .cta-naeem .doctor-image-wrapper {
    height: 200px;
  }
}

/******************************************************  Map Location  ******************************************************/
.map-location {
  padding: 5rem 0;
}

.map-location .map-location-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.map-location .map-side {
  flex: 0 0 40%;
}

.map-location .map-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-location .map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-location .office-info-side {
  flex: 0 0 60%;
  max-width: none;
}

.map-location .office-content {
  padding: 2rem;
}

.map-location .office-details {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 2rem 0;
}

.map-location .office-icon-wrapper {
  display: flex;
  background: linear-gradient(320deg, #bce5ea 0%, #e2fcff 47%, #bce5ea 100%);
  height: 100px;
  width: 100px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
}

.map-location .office-icon {
  width: 46px;
  height: 46px;
}

.map-location .office-text {
  flex: 1;
}

.map-location .company-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--prussian_blue);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.map-location .address {
  color: var(--prussian_blue);
}

.map-location .address-line-1,
.map-location .address-line-2 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.map-location .action-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .map-location {
    padding: 3rem 0;
  }

  .map-location .map-location-content {
    gap: 2rem;
    flex-direction: column;
    align-items: unset;
  }

  .map-location .office-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .map-location .office-icon-wrapper {
    height: 80px;
    width: 80px;
  }

  .map-location .office-icon {
    width: 46px;
    height: 46px;
  }

  .map-location .company-name {
    font-size: 1.5rem;
  }

  .map-location .address-line-1,
  .map-location .address-line-2 {
    font-size: 1rem;
  }

  .map-location .map-wrapper {
    height: 300px;
  }
  .map-location .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  .map-location .office-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .map-location .office-content .pre-title:before {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background-color: var(--cerulean);
    margin-top: 0.4rem;
    margin-right: 10px;
  }
  .map-location .office-details {
    margin: 0rem 0;
  }
}

/******************************************************  Image Gallery  ******************************************************/
.image-gallery {
    padding: 5rem 0;
}

.image-gallery .gallery-header {
    margin-bottom: 4rem;
}

.image-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.image-gallery .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-gallery .image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.image-gallery .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-gallery .gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.image-gallery .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(14 51 72 / 82%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-gallery .gallery-item:hover .image-overlay {
    opacity: 1;
}

.image-gallery .zoom-icon img{
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

/* Lightbox Styles */
.lightbox-modal,
#global-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(14 51 72 / 82%);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-close:hover {
    color: #ccc;
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 20px;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(5px);
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lightbox-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
}

.lightbox-image-wrapper:active {
    cursor: grabbing;
}

.lightbox-image,
#global-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#global-lightbox-counter {
    color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .image-gallery .gallery-grid {
        gap: 1.5rem;
    }
    
    .image-gallery .image-wrapper {
        height: 250px;
    }
    
    .lightbox-modal {
        padding: 1rem;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .image-gallery {
        padding: 3rem 0;
    }
    
    .image-gallery .gallery-header {
        margin-bottom: 3rem;
    }
    
    .image-gallery .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-gallery .image-wrapper {
        height: 200px;
    }
    
    .lightbox-modal {
        padding: 0.5rem;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .image-gallery .image-wrapper {
        height: 180px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .lightbox-close {
        top: 8px;
        right: 12px;
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }
}

/********************************************  Video Centered  ****************************************************/
.video-centered {
    padding: 5rem 0;
}

.video-centered .container-xxl {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.video-centered .video-centered-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-centered .video-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-centered .video-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-centered .video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    cursor: pointer;
}

.video-centered .thumb-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-centered .video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-centered .video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-centered .video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .video-centered {
        padding: 4rem 0;
    }
    
    .video-centered .video-container {
        max-width: 600px;
    }
}

@media (max-width: 767.98px) {
    .video-centered {
        padding: 3rem 0;
    }
    
    .video-centered .video-container {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .video-centered .video-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 575.98px) {
    .video-centered {
        padding: 2rem 0;
    }
}

/******************************************************  Gallery Slider  ******************************************************/
.gallery-slider {
    padding: 0 0 3rem 0;
    position: relative;
}

.gallery-slider .gallery-slider-header {
    margin-bottom: 4rem;
}

.gallery-slider .gallery-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
}

/* Manual Slider Styles */
.gallery-slider .manual-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.gallery-slider .manual-slider-track {
    display: flex;
    width: 100%;
}

.gallery-slider .manual-slider-list {
    display: flex;
    flex-shrink: 0;
    list-style: none;
}

.gallery-slider .manual-slide {
    flex: 0 0 600px;
    margin-right: 4rem;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.gallery-slider .manual-slide:hover {
    transform: none;
    box-shadow: none;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-slider .manual-slide {
        flex: 0 0 500px;
        margin-right: 2rem;
    }
}

@media (max-width: 576px) {
    .gallery-slider .manual-slide {
        flex: 0 0 400px;
        margin-right: 2rem;
    }
}

/* Original Splide styles (kept for fallback) */
.gallery-slider .splide {
    position: relative;
    overflow: hidden;
}

.gallery-slider .splide__track {
    overflow: hidden;
    position: relative;
}

.gallery-slider .splide__list {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-slider .splide__slide {
    flex: 0 0 auto;
    width: 600px; /* pairs with Splide autoWidth */
    position: relative;
}

.gallery-slider .gallery-slide {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.gallery-slider .gallery-slide:hover {
    transform: none;
    box-shadow: none;
}

.gallery-slider .slide-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.gallery-slider .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px
}

/* iOS Safari rendering fix: prevent image bitmap reuse in transformed carousels */
@supports (-webkit-touch-callout: none) {
    .gallery-slider .slide-image,
    .gallery-slider .splide__slide {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

.gallery-slider .slide-overlay {
    display: none;
}

.gallery-slider .slide-info {
    text-align: center;
}

.gallery-slider .slide-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.gallery-slider .slide-description {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Splide Progress Bar */
.gallery-slider .splide__progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.gallery-slider .splide__progress__bar {
    height: 100%;
    background: var(--cerulean);
    transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .gallery-slider {
        padding: 0;
    }
    
    .gallery-slider .gallery-slider-header {
        margin-bottom: 3rem;
    }
    
    .gallery-slider .splide__slide { width: 520px; }
}

@media (max-width: 767.98px) {
    .gallery-slider .splide__slide { width: 460px; }
    .gallery-slider {
        padding: 0;
    }
    
    .gallery-slider .gallery-slider-header {
        margin-bottom: 2rem;
    }
    
    .gallery-slider .slide-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .gallery-slider .slide-title {
        font-size: 1.25rem;
    }
    
    .gallery-slider .slide-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .gallery-slider .splide__slide { width: 380px; }
    .gallery-slider {
        padding: 2rem 0;
    }
    
    .gallery-slider .slide-image-wrapper {
        padding-bottom: 65%; /* 4:3 aspect ratio for mobile */
    }
    
    .gallery-slider .slide-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }
    
    .gallery-slider .slide-title {
        font-size: 1.1rem;
    }
    
    .gallery-slider .slide-description {
        font-size: 0.85rem;
    }
}

/******************************************************  FAQ  ******************************************************/
.faq {
    padding: 4rem 0;
    background-position: top;
    background-size: auto;
    background-repeat: no-repeat;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    margin-bottom: 4rem;
}

.faq-header .subtitle {
    color: #37585f;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-header .title {
    color: #1a2a3a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.faq-header .description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question.active {
  background-color: var(--light_cyan);
  border-bottom: 1px solid #e9ecef;
}

.question-text {
    color: #1a2a3a;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding-right: 3rem;
    flex: 1;
}

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.icon-line {
    position: absolute;
    background: #37585f;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.icon-line-1 {
    width: 2px;
    height: 16px;
    top: 4px;
    left: 11px;
}

.icon-line-2 {
    width: 16px;
    height: 2px;
    top: 11px;
    left: 4px;
}

.faq-question.active .icon-line {
    background: #1a2a3a;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.active {
    max-height: 1000px;
}

.answer-content {
    padding: 2rem;
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
}

.answer-content p {
    margin-bottom: 1rem;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

.answer-content ul, .answer-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.answer-content li {
    margin-bottom: 0.5rem;
}

.faq-empty {
    padding: 3rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq {
        padding: 4rem 0;
    }
    
    .faq-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .faq-header .title {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
        padding-right: 2rem;
    }
    
    .answer-content {
        padding: 1.5rem;
    }
    
    .faq-items {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .faq-header .title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .question-text {
        font-size: 1rem;
        padding-right: 1.5rem;
    }
    
    .answer-content {
        padding: 1.25rem;
    }
}

/* ******************************************************  Testimonial Grid  ******************************************************/
.testimonial-grid {
  padding: 4rem 0;
}

.testimonial-grid .testimonial-grid-list {
  row-gap: 3rem;
  display: flex;
  flex-direction: column;
}

.testimonial-grid .testimonial-grid-list .testimonial-image {
  min-height: 600px;
}

@media (max-width: 991.98px) {
  .testimonial-grid .testimonial-card .row {
    flex-direction: column;
  }
  .testimonial-grid .testimonial-grid-list .testimonial-image {
    min-height: 300px;
  }
}


/* ******************************************************  Google Maps  ******************************************************/
.google-maps-section {
  padding: 5rem 0;
}

.google-maps-section .google-maps-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.google-maps-section .google-maps-wrapper {
  width: 100%;
  max-width: 1100px;
  height: 450px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.google-maps-section .google-maps-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .google-maps-section {
    padding: 3rem 0;
  }
  .google-maps-section .google-maps-wrapper {
    height: 340px;
  }
}

/* ADJUSTS */
@media (max-width: 768px) {
  .page-before-after-transformations .home-hero .hero-content {
    top: -4rem;
  }

  .page-before-after-transformations .home-hero .hero-overlay {
    opacity: .9;
    background: linear-gradient(157deg, rgb(255 255 255) 0%, rgb(255 255 255 / 40%) 60%, rgb(255 255 255 / 10%) 70%, rgba(255, 255, 255, 10%) 80%, rgba(255, 255, 255, 0) 100%);
  }
}
#contact-form-modal .contact-form {
  padding: 0;
}

#contact-form-modal .get-price-form-header {
  border-bottom: none!important;
  height: 0;
}

#contact-form-modal .pre-title {
  font-size: 1rem;
}

#contact-form-modal .text-center .pre-title:before {
  display: none;
}

#contact-form-modal .text-center .pre-title:after {
  display: none;
}

#contact-form-modal .title {
  font-size: 2rem;
}
#contact-form-modal .contact-form textarea.form-control {
  min-height: 140px;
}


@media (max-width: 768px) {
  #contact-form-modal .container-xxl {
      padding: 0;
  }
}

#contact-form-modal.show .get-price-form-container {
  right: auto;
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white !important;
  border-radius: 15px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  max-width: 500px !important;
  width: 90% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  animation: FormSlideIn 0.3s ease-out;
}

#contact-form-modal.show {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

@keyframes FormSlideIn {
  from {
      opacity: 0;
      transform: translate(-50%, -60%);
  }

  to {
      opacity: 1;
      transform: translate(-50%, -50%);
  }
}

@media (max-width: 600px) {
  #contact-form-modal .ncdic-btn {
    min-height: 44px;
    font-size: 1rem;
    padding: 6px 2rem 0 2rem;
  }
}