/* ===============================
   HERO SECTION
================================= */
.hero-section {
  padding: 50px 0 0;
  width: 100%;
  /*height: 100vh;*/
  background: radial-gradient(circle at 20% 40%, rgba(120, 180, 255, 0.4), transparent 40%), radial-gradient(circle at 80% 30%, rgba(255, 180, 200, 0.4), transparent 40%), radial-gradient(circle at 50% 80%, rgba(180, 200, 255, 0.3), transparent 50%), linear-gradient(180deg, #f5f7fa, #e4ebf5);
}

section.hero-section:before {
    position: absolute;
    content: '';
    background: radial-gradient(circle at 20% 40%, rgba(120, 180, 255, 0.4), transparent 40%), radial-gradient(circle at 80% 30%, rgba(255, 180, 200, 0.4), transparent 40%), radial-gradient(circle at 50% 80%, rgba(180, 200, 255, 0.3), transparent 50%), linear-gradient(180deg, #f5f7fa, #e4ebf5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    opacity: 0.4;
}
.hero-section .container {
    z-index: 9 !important;
    position: relative;
}
.stat-item {
    padding: 20px;
    background: #fff;
}
.lft {
    border: 1px solid var(--primary-color);
    border-radius: 30px 0px 0px 30px;
}
.rght {
    border: 1px solid var(--primary-color);
    border-radius: 0px 30px 30px 0px;
    border-left: 0;
}
/* ===============================
   TEXT SLIDER
================================= */
#heroTextSlider {
  position: relative;
  min-height: 210px;
}

.hero-text-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  pointer-events: none;
}

.hero-text-item.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.hero-text-item a:hover
 {
    background: var(--primary-color) !important;
    color: #fff !important;
}
/* ===============================
   IMAGE SLIDER
================================= */
#heroImageSlider {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* 3D effect */
}

.hero-image-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: rotateY(90deg) scale(0.95);
  transition: all 0.8s ease;
  backface-visibility: hidden;
  z-index: 2;
}

.hero-image-item.active {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
  position: relative;
}

/* IMAGE */
.hero-main-img,
.hero-image-item img {
  position: relative;
  z-index: 3;
  max-width: 90%;
  margin: 0 auto;
  display: block;
}

/* ===============================
   BACKGROUND CIRCLE
================================= */
.hero-image-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.hero-bg-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, #f5f8ff, #d6e4ff);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: floatCircle 6s ease-in-out infinite;
}

/* FLOAT ANIMATION */
@keyframes floatCircle {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ===============================
   STATS
================================= */
.hero-stats {
  align-items: center;
}

.stat-item h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 14px;
  color: #777;
  margin: 0;
}

/* ===============================
   MOBILE RESPONSIVE
================================= */
@media (max-width: 767px) {

  .hero-section {
    padding: 40px 0;
  }

  #heroImageSlider {
    margin-bottom: 25px;
    min-height: 280px;
  }

  #heroTextSlider {
    min-height: 220px;
  }

  .hero-text-item h1 {
    font-size: 28px;
  }

  .hero-text-item p {
    font-size: 14px;
  }

  .hero-stats {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .stat-item h2 {
    font-size: 28px;
  }

  .hero-bg-circle {
    width: 260px;
    height: 260px;
  }

  .hero-image-wrapper {
    margin-bottom: 20px;
  }
}

.preheading {
    align-content: flex-start;
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}
.preheading:before {
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0px;
    position: absolute;
    top: 0px;
    width: 100%;
}
.prehead1 {
    padding-top: 6px;
    padding-right: 20px;
    padding-bottom: 6px;
    padding-left: 20px;
    z-index: 1;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    border-bottom-left-radius: 100px;
    width: auto !important;
    display: inline-block;
    line-height: normal;
}
.prehead1 p {
    margin: 0;
    color: #fff;
}
.prehead2 p {
    margin: 0;
    color: #fff;
}
.prehead1.text-content-inner, .prehead2.text-content-inner {
    word-break: break-word;
}
.prehead2 {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: -24px;
    padding-top: 6px;
    padding-right: 20px;
    padding-bottom: 6px;
    padding-left: 40px;
    border-top-left-radius: 0px;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    border-bottom-left-radius: 0px;
    width: auto !important;
    display: inline-block;
    columns: 1;
    line-height: normal;
}


/* Services */

.services-section {
  background: linear-gradient(269deg, var(--primary-color) 0, var(--secondary-color) 100%);
  padding: 50px 0;
  color: #fff;
}

/* LEFT TEXT */
.services-section h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 15px;
}

.services-section p {
  color: rgba(255,255,255,0.8);
}

/* CARD */
.service-card {
  background: rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 15px;
  height: 100%;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* ACTIVE CARD (WHITE ONE) */
.service-card.active {
  background: #fff;
  color: #000;
}

.service-card.active p {
  color: #555;
}

.service-card.active .service-link {
  color: #2ea3a5;
}

/* ICON */
.service-icon {
  width: 60px;
  margin-bottom: 15px;
}

/* TEXT */
.service-card h5 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* LINK */
.service-link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .services-section {
    padding: 50px 0;
  }

  .services-section h2 {
    font-size: 28px;
  }
}

/* Option 2 */

.service-clean-card:hover {
  background: var(--secondary-color);
  color: #fff;
}

.service-clean-card:hover h3,
.service-clean-card:hover p {
  color: #fff;
}

.service-clean-card:hover .btn-clean {
  background: #fff;
  color: var(--secondary-color);
}

/* ICON ANIMATION */
.service-clean-card:hover .icon-box {
  transform: rotateY(180deg);
  transition: 0.5s;
}

.services-clean {
  padding: 50px 0;
  background: #f8f9fc;
}

.service-clean-card {
  background: #fff;
  background-image: url(../images/service-pattern.png);
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.service-clean-card:hover:before
 {
    background: url(https://digiliticsdev.in/projects/drgaurav/wp-content/themes/custom-child/images/service-pattern.png);
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
    filter: brightness(-229.5);
    left: 0;
    min-height: 100%;
    background-repeat: no-repeat;
    opacity: .2;
}

/* BACKGROUND PATTERN */

.service-clean-card:hover {
  transform: translateY(-8px);
}

/* ICON BOX */
.icon-box {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 1px solid #efefff;
}

.icon-box img {
    width: 80px;
}

/* TEXT */
.service-clean-card h3 {
  font-size: 24px;
  color:var(--primary-color);
  margin-bottom: 15px;
}

.service-clean-card p {
  color: #666;
  font-size: 15px;
  margin-bottom: 25px;
}

.textvcenter {
    justify-content: center;
    align-items: center;
}

/* BUTTON */
.btn-clean {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-color);
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.btn-clean:hover {
  background: #d6d9f5;
  color: var(--secondary-color);
}

/* Infographic */

.infograph-details {
    display: flex;
    height: 500px;
    overflow: hidden;
}

.infograph-item {
    flex: 1;
    position: relative;
    transition: all 0.5s ease;
    cursor: pointer;
}

.infograph-item .large-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: 0.5s;
}

.infograph-content {
    position: absolute;
    z-index: 2;
    padding: 10px 30px;
    color: #fff;
    bottom: 0;
}

.infograph-item:hover .infograph-content .infograph-icon h3 {
    writing-mode: horizontal-tb;
}
.infograph-icon h3 {
    font-size: 20px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}
.infograph-item:hover .infograph-icon h3 {
    transform: rotate(0deg);
}
/* Hover Expand Effect */
.infograph-details:hover .infograph-item {
    flex: 0.8;
}

.infograph-details .infograph-item:hover {
    flex: 3;
}

.infograph-item:hover .large-img {
    opacity: 1;
}

/* Overlay */
.infograph-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(61 169 197 / 36%);
    z-index: 1;
}
.infograph-item:hover:before {
    opacity: 0;
}


.infograph-icon img {
    width: 60px;
    filter: invert(20);
    display: none;
}

.infograph-item:hover .infograph-content
 {
    background: var(--primary-color)d6;
    color: #fff !important;
}
.infograph-item:hover .infograph-content p {
    color: #fff;
}
.infograph-item:hover .infograph-content .infograph-icon {
    display: flex;
    gap: 20px;
}
.infograph-item:hover .infograph-content .infograph-icon img {
  display: block;
    width: 40px;
    filter: invert(20);
}

.infograph-content .description {
    display: none;
}
.infograph-item:hover .infograph-content .description {
    display: block;
}

/* =========================
   ABOUT IMAGE SECTION
========================= */
.about-img-two {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.about-img-two img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* =========================
   CIRCLE BUTTON
========================= */
.about-img-two .animate-button {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    border-radius: 49%;
    border: 8px solid #fff;
    background: linear-gradient(90deg, #3d2a9d 0, var(--primary-color) 100%);
    cursor: pointer;
    z-index: 3;
    transition: background 300ms, transform 200ms;
}

/* Hover effect */
.about-img-two .animate-button:hover {
    transform: translateY(-50%) scale(1.1);
}

/*=========================================
DOCTOR STORY SECTION
=========================================*/

.doctor-story-section{
    background: #f5f5f5;
    padding: 80px 0;
}
h2.section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.story-main-title{
    font-size: 60px;
    font-weight: 500;
    color: #0b1145;
    margin-bottom: 25px;
    line-height: 1.1;
}

.story-title {
    font-size: 24px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 10px;
    margin-top: 25px;
}

.story-content,
.story-content p{
    font-size: 22px;
    line-height: 1.9;
    color: #4d5b78;
}

.experience-item {
    margin-bottom: 25px;
}

.experience-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: #515151;
    margin-bottom: 10px;
    line-height: 1.3;
}

.experience-item h4 span {
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: #8f8f8f;
}

.experience-item p {
    font-size: 16px;
    line-height: 1.4;
    color: #4d5b78;
}

.skill-item{
    margin-bottom: 20px;
}

.skill-item span{
    font-size: 16px;
    color: #4d5b78;
    font-weight: 500;
}

.skill-bar{
    width: 100%;
    height: 12px;
    background: #e6e6ef;
    border-radius: 50px;
    overflow: hidden;
}

.skill-progress{
    height: 100%;
    background: #4b56d2;
    border-radius: 50px;
}

.feature-box{
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-box i{
    font-size: 24px;
    color: #4b56d2;
}

.feature-box span{
    font-size: 24px;
    color: #4d5b78;
}

/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:991px){

    .story-main-title{
        font-size: 42px;
    }

    .story-title{
        font-size: 36px;
    }

    .story-content,
    .story-content p,
    .experience-item p,
    .feature-box span{
        font-size: 18px;
    }

    .experience-item h4{
        font-size: 28px;
    }
}

@media(max-width:767px){

    .doctor-story-section{
        padding: 50px 0;
    }

    .story-main-title{
        font-size: 34px;
    }

    .story-title{
        font-size: 30px;
    }

    .experience-item h4{
        font-size: 24px;
    }
    .testimonial-slider .slick-next {
    right: 5px;
}
.testimonial-slider .slick-prev {
    left: 5px;
}
}

/* =========================
   ROTATING TEXT
========================= */
.animate-button .button-text {
    position: absolute;
    inset: 0;
    animation: rotateText 10s linear infinite;
    margin: 0;
    padding: 0;
}

/* ONLY ONE LOGIC (use --i) */
.animate-button .button-text span {
    position: absolute;
    left: 60%;
    top: 10px;
    transform-origin: 0 64px;
    transform: rotate(calc(16deg * var(--index)));
    font-size: 13px;
    color: #fff;
    letter-spacing: 1px;
}

/* =========================
   CENTER ICON
========================= */
.button-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* =========================
   ANIMATION
========================= */
@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991px) {

    .about-img-two .animate-button {
        right: 20px;
        width: 120px;
        height: 120px;
    }

    .animate-button .button-text span {
        transform-origin: 0 55px;
    }
}

/* Stats */

.fstats{ 
  background: linear-gradient(269deg, var(--secondary-color) 0, var(--primary-color) 100%);
}
.statCount .col-md-3 {
    border-right: 1px solid #ffffff5e;
}
.statCount .col-md-3:last-child {border-right: 0 !important;}



.testimonial-slider .slick-slide {
    box-shadow: var(--bs-box-shadow) !important;
    margin: 10px;
    padding: 20px;
    border-radius: 20px;
}
.str i {
    font-size: 12px;
}
.testi_qute {
    display: flex;
    width: 30px;
    float: left;
}
.testi_qute img {
    width: 25px !important;
    margin-top: -4px;
}

.testimonial-slider .slick-slide {
    background: #fff;
}