/* ==========================================================================
   V2 DESIGN SYSTEM COMPONENTS
   ========================================================================== */

:root {
  --bg-tint: #EFF8FF;
  --surface-white: #FFFFFF;
  --navy: #0E394C;
  --accent-blue: #1C85B4;
  --amber: #FFA500;
  --text-gray: #5B6B74;
  --text3: #94a3b8;
  --card-photo-gray: #E7ECEF;
}

.container {
  max-width: 1300px !important;
  margin: 0 auto;
  padding: 0 15px;
}

/* Base Typographic Adjustments */
body {
  color: var(--text-gray);
}

h1 {
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
}

h2,
h3,
h4,
h5,
h6 {
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2em;
}

/* Navbar Scrolled State */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
  padding: 20px 0;
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
}

/* Background Utility Classes */
.bg-tint {
  background-color: var(--bg-tint);
}

.bg-surface-white {
  background-color: var(--surface-white);
}

/* Component: TwoToneHeading */
.two-tone-heading {
  color: var(--navy);
}

.two-tone-heading .highlight {
  color: var(--accent-blue);
}

/* Component: EyebrowLabel */
.eyebrow-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

/* Component: GradientPillButton */
.gradient-pill-btn {
  /* Default Colors */
  --btn-bg: linear-gradient(90deg, var(--navy) 0%, var(--accent-blue) 100%);
  --btn-color: #fff;
  --icon-bg: #fff;
  --icon-color: var(--accent-blue);

  /* Hover Colors */
  --btn-hover-bg: #fff;
  --btn-hover-color: var(--navy);
  --icon-hover-bg: var(--navy);
  --icon-hover-color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--btn-bg);
  background-clip: padding-box;
  border: 1px solid transparent;
  color: var(--btn-color) !important;
  border-radius: 999px;
  padding: 7px 7px 7px 23px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28, 133, 180, 0.2);

  position: relative;
  z-index: 1;
}

.gradient-pill-btn span:not(.btn-circle-icon) {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.gradient-pill-btn::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  bottom: -1px;
  width: 0;
  background: var(--btn-hover-bg);
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: inherit;
}

.gradient-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(28, 133, 180, 0.4);
  color: var(--btn-hover-color) !important;
}

.gradient-pill-btn:hover::before {
  width: calc(100% + 2px);
}

.gradient-pill-btn .btn-circle-icon {
  position: relative;
  z-index: 2;
  background: var(--icon-bg);
  color: var(--icon-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-pill-btn:hover .btn-circle-icon {
  background: var(--icon-hover-bg);
  color: var(--icon-hover-color);
}

.gradient-pill-btn.navy-flat {
  --btn-bg: var(--navy);
}

/* Component: IconBadgeCircle */
.icon-badge-circle {
  width: 64px;
  height: 64px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(14, 57, 76, 0.08);
  transition: all 0.3s ease;
}

.icon-badge-circle:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-5px);
}

/* Experience Badge Rotating Text */
.about-badge-wrap {
  position: absolute;
  bottom: -40px;
  right: -40px;
  z-index: 3;
}

.about-badge-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-badge-inner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}

.about-badge-text {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spinText 10s linear infinite;
  z-index: 2;
}

.about-badge-text span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  padding-top: 6px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

@keyframes spinText {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Component: Sparkle/Plus Ambient Decor */
.sparkle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.decor-svg {
  position: absolute;
  color: var(--accent-blue);
  opacity: 0.2;
}

/* Info Strip */
.info-strip {
  background: var(--navy);
  padding: 50px 0;
  color: #fff;
}

.info-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.info-strip-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-strip-item span {
  font-size: 18px;
  font-weight: 500;
}

.info-strip-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Section Header (Centered) */
.section-header-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header-centered p {
  color: var(--text-gray);
  margin-top: 15px;
  line-height: 1.7;
}

/* 4-Column Grid */
.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

@media (max-width: 576px) {
  .grid-4-col {
    grid-template-columns: 1fr;
  }
}

/* Services Card */
.service-card-v2 {
  background: var(--surface-white);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(14, 57, 76, 0.05);
  transition: all 0.4s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card-v2::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--navy);
  border-radius: 50%;
  z-index: -1;
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Randomize animation origin corners */
.service-card-v2:nth-child(4n+1)::before {
  transform-origin: 25% 25%;
  /* Top Left */
}

.service-card-v2:nth-child(4n+2)::before {
  transform-origin: 75% 25%;
  /* Top Right */
}

.service-card-v2:nth-child(4n+3)::before {
  transform-origin: 25% 75%;
  /* Bottom Left */
}

.service-card-v2:nth-child(4n+4)::before {
  transform-origin: 75% 75%;
  /* Bottom Right */
}

.service-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(14, 57, 76, 0.15);
}

.service-card-v2:hover::before {
  transform: scale(1);
}

.service-card-v2>* {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease, background 0.4s ease;
}

.service-card-v2 .icon-badge-circle {
  margin-bottom: 25px;
}

.service-card-v2 h3 {
  font-size: 22px;
  margin-bottom: 15px;
  transition: color 0.4s ease;
}

.service-card-v2 h3 .highlight {
  transition: color 0.4s ease;
}

.service-card-v2 p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 25px;
  transition: color 0.4s ease;
}

.service-read-more {
  color: var(--accent-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.4s ease;
}

.service-read-more i {
  background: var(--bg-tint);
  border-radius: 50%;
  padding: 4px;
  transition: all 0.4s ease;
}

/* Hover Inversions */
.service-card-v2:hover h3,
.service-card-v2:hover h3 .highlight,
.service-card-v2:hover p,
.service-card-v2:hover .service-read-more {
  color: #fff !important;
}

.service-card-v2:hover .icon-badge-circle {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}

.service-card-v2:hover .service-read-more i {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Team Card */
.team-card-v2 {
  background: var(--card-photo-gray);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.team-card-v2 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  margin-bottom: 20px;
}

.team-card-v2 h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.team-card-v2 p {
  color: var(--text-gray);
  font-size: 14px;
}

/* Clinic Video Banner */
.video-banner-v2 {
  background-image: url('../assets/images/visit-clinic-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  text-align: center;
}

.video-banner-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.8;
}

.video-banner-v2 .container {
  position: relative;
  z-index: 2;
}

.video-banner-v2 h2 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 40px;
}

/* Accordion */
.accordion-v2 {
  margin-top: 30px;
}

.accordion-item-v2 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 25px 0;
}

.accordion-title-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  cursor: pointer;
}

.accordion-content-v2 {
  color: var(--text-gray);
  padding-top: 15px;
  line-height: 1.7;
  font-size: 16px;
  display: none;
}

.accordion-item-v2.active .accordion-content-v2 {
  display: block;
}

/* Preloader Animation */
.preloader-spinner {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-left-color: #fff;
  border-right-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1.5s linear infinite;
}

.preloader-spinner i {
  animation: spinReverse 1.5s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  100% {
    transform: rotate(-360deg);
  }
}

/* Testimonial Section */
.testimonial-badge-card {
  position: absolute;
  bottom: 0px;
  right: -30px;
  background: var(--accent-blue);
  color: #fff;
  padding: 25px 35px;
  border-radius: 20px;
  max-width: 300px;
  box-shadow: 0 10px 40px rgba(14, 57, 76, 0.2);
}

/* Blog Card */
.blog-card-v2 {
  background: var(--surface-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(14, 57, 76, 0.05);
  position: relative;
}

.blog-card-v2 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  display: block;
}

.blog-card-v2 .content {
  padding: 30px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.blog-card-v2 .content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.blog-card-v2:nth-child(4n+1) .content::before {
  transform-origin: top left;
}

.blog-card-v2:nth-child(4n+2) .content::before {
  transform-origin: top right;
}

.blog-card-v2:nth-child(4n+3) .content::before {
  transform-origin: bottom right;
}

.blog-card-v2:nth-child(4n+4) .content::before {
  transform-origin: bottom left;
}

.blog-card-v2:hover .content::before {
  transform: scale(2.5);
}

.blog-card-v2 h3 {
  font-size: 20px;
  margin-bottom: 15px;
  transition: color 0.4s ease;
}

.blog-card-v2 p.excerpt {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
  transition: color 0.4s ease;
}

.blog-card-v2 a.read-more {
  color: var(--accent-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.4s ease;
}

.blog-card-v2 a.read-more i {
  background: var(--bg-tint);
  border-radius: 50%;
  padding: 4px;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Hover inversions */
.blog-card-v2:hover p.excerpt {
  color: rgba(255, 255, 255, 0.8);
}

.blog-card-v2:hover h3.two-tone-heading {
  color: #fff;
}

.blog-card-v2:hover a.read-more {
  color: #fff;
}

.blog-card-v2:hover a.read-more i {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* V2 Footer */
.footer-v2 {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  position: relative;
}

.footer-v2 h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 20px;
}

.footer-v2 p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-v2 a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-v2 a:hover {
  color: var(--accent-blue);
}

.footer-v2 .grid-4-col {
  margin-bottom: 50px;
}

.footer-bottom-v2 {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Typing Animation */
.typing-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.typing-char.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Custom AOS Animations for Why Choose Us Stack */
[data-aos="stack-left"] {
  opacity: 0;
  transform: translate(150px, 100px);
  /* Start bottom right */
}

[data-aos="stack-left"].aos-animate {
  animation: stackLeftAnim 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes stackLeftAnim {
  0% {
    opacity: 0;
    transform: translate(150px, 100px);
  }

  40% {
    opacity: 1;
    transform: translate(0, 100px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

[data-aos="stack-right"] {
  opacity: 0;
  transform: translate(-150px, 100px);
  /* Start bottom left */
}

[data-aos="stack-right"].aos-animate {
  animation: stackRightAnim 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes stackRightAnim {
  0% {
    opacity: 0;
    transform: translate(-150px, 100px);
  }

  40% {
    opacity: 1;
    transform: translate(0, 100px);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Custom AOS for How It Works Image */
[data-aos="slide-scale-right"] {
  opacity: 0;
  transform: translateX(-100px) scale(0.8);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="slide-scale-right"].aos-animate {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Custom AOS for Doctor Image Wave Slide */
[data-aos="wave-slide-in"] {
  opacity: 0;
  transform: translate(200px, -200px) scale(0.6);
}

[data-aos="wave-slide-in"].aos-animate {
  animation: waveSlideInAnim 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes waveSlideInAnim {
  0% {
    opacity: 0;
    transform: translate(200px, -200px) scale(0.6);
  }

  50% {
    opacity: 1;
    transform: translate(-30px, -50px) scale(0.85);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* Testimonial Slider Core */
#testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

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

/* Animations for Next */
.testimonial-slide.enter-next {
  animation: fadeEnter 0.5s forwards;
}

.testimonial-slide.exit-next {
  position: absolute;
  animation: fadeExit 0.5s forwards;
}

.testimonial-slide.enter-next .test-content {
  animation: contentSlideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-slide.exit-next .test-content {
  animation: contentSlideOutLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-slide.enter-next .test-user-card {
  animation: cardSlideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-slide.exit-next .test-user-card {
  animation: cardSlideOutUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animations for Prev */
.testimonial-slide.enter-prev {
  animation: fadeEnter 0.5s forwards;
}

.testimonial-slide.exit-prev {
  position: absolute;
  animation: fadeExit 0.5s forwards;
}

.testimonial-slide.enter-prev .test-content {
  animation: contentSlideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-slide.exit-prev .test-content {
  animation: contentSlideOutRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-slide.enter-prev .test-user-card {
  animation: cardSlideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-slide.exit-prev .test-user-card {
  animation: cardSlideOutDown 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Keyframes */
@keyframes fadeEnter {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeExit {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes contentSlideInRight {
  0% {
    transform: translateX(50px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes contentSlideOutLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50px);
  }
}

@keyframes contentSlideInLeft {
  0% {
    transform: translateX(-50px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes contentSlideOutRight {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50px);
  }
}

@keyframes cardSlideInUp {
  0% {
    transform: translateY(30px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes cardSlideOutUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-30px);
  }
}

@keyframes cardSlideInDown {
  0% {
    transform: translateY(-30px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes cardSlideOutDown {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(30px);
  }
}

/* Form Styles */
.form-input-v2 {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid rgba(14, 57, 76, 0.1);
  border-radius: 12px;
  background: var(--surface-white);
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input-v2:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(28, 133, 180, 0.1);
}

.form-input-v2::placeholder {
  color: #a0aeb5;
}