body {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
}

/* 🌈 BACKGROUND ANIMATION */
.dr-hero-pro {
  padding: 100px 0;
  background: linear-gradient(270deg, #ffe5e5, #ffd6d6, #fff0f0);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* LEFT */
.tagline {
  display: inline-block;
  background: white;
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  color: #ff4d4d;
}

.dr-left h1 {
  font-size: 52px;
  color: #ff4d4d;
  font-weight: 700;
}

.dr-left h3 {
  color: #444;
  margin: 10px 0;
}

.dr-left p {
  color: #666;
  margin-bottom: 25px;
}

/* BUTTONS */
.btn-main {
  background: #ff6b6b;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  margin-right: 10px;
  position: relative;
  overflow: hidden;
  animation: pulseBtn 2s infinite;
}

.btn-main::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  top: 0;
  left: 0;
  transition: 0.4s;
}

.btn-main:hover::before {
  width: 100%;
}

.btn-glass {
  border: 2px solid #ff6b6b;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  color: #ff6b6b;
}

/* BUTTON PULSE */
@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(255,107,107,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(255,107,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); }
}

/* STATS */
.dr-stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  background: rgba(255,255,255,0.6);
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-box i {
  color: #ff6b6b;
  font-size: 20px;
}

/* IMAGE */
.img-wrapper {
  position: relative;
  text-align: center;
}

.img-wrapper img {
  max-width: 350px;


  border-radius: 20px;
  animation: float 4s ease-in-out infinite;
  transition: 0.4s;
}

.img-wrapper img:hover {
  transform: scale(1.05);
}

/* FLOAT ANIMATION */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* GLOW */
.img-wrapper::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,107,107,0.4), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* FLOATING CARDS */
.floating-card {
  position: absolute;
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  font-size: 14px;
  animation: floatCard 4s infinite;
  color: #ff4d4d;
}

.card1 { top: 20%; left: -20px; }
.card2 { bottom: 10%; right: -20px; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* DOTS */
.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff6b6b;
  border-radius: 50%;
}

.dot1 { top: 10%; left: 20%; animation: floatDot 5s infinite; }
.dot2 { bottom: 20%; right: 15%; animation: floatDot 6s infinite; }

@keyframes floatDot {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* MOBILE */
@media (max-width: 576px) {

  .dr-hero-pro {
    padding: 40px 15px;
    text-align: center;
  }

  /* TEXT FIRST, IMAGE AFTER */
  .dr-hero-pro .row {
    flex-direction: column;
  }

  /* LEFT (TEXT) */
  .dr-left {
    order: 1;
    margin-bottom: 15px;
  }

  .dr-left h1 {
    font-size: 26px;
  }

  .dr-left h3 {
    font-size: 15px;
  }

  .dr-left p {
    font-size: 13px;
    line-height: 1.5;
  }

  .tagline {
    font-size: 11px;
  }

  /* BUTTON */
  .dr-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  .btn-main {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  /* IMAGE SECTION */
  .dr-right {
    order: 2;
    
  }

  .img-wrapper {
    text-align: center;
  }

 

  /* BADGES BELOW IMAGE */
  .floating-card {
    position: static;
    display: inline-block;
    font-size: 12px;
    padding: 6px 10px;
    margin: 6px 4px;
  }

  .card1, .card2 {
    left: auto;
    right: auto;
    top: auto;
  }

  /* HIDE EXTRA DESIGN */
  .dot {
    display: none;
  }

  .img-wrapper::before {
    width: 140px;
    height: 140px;
  }
} 
@media (max-width: 576px) {

  /* REMOVE EXTRA SPACE */
  .dr-left p {
    margin-bottom: 8px;   /* reduce gap */
    font-size: 13px;
    line-height: 1.5;
  }

  .dr-buttons {
          /* was 12px → reduce */
    gap: 8px;
  }

  .btn-main {
    padding: 10px;        /* slightly smaller */
    font-size: 13px;
    border-radius: 25px;
  }

  /* IMAGE SMALLER */
  .dr-right img {
    width: 280px !important;
    height: 180px !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
   
    border-radius: 29px;
  }

  /* REMOVE EXTRA SPACE ABOVE IMAGE */
  .dr-right {
    margin-top: 5px;
  }

}
/* ================= TABLET (≤768px) ================= */
@media (max-width: 768px) {

  .dr-hero-pro {
    padding: 80px 20px;
  }

  /* SLIGHT STACK */
  .row {
    flex-direction: column;
    text-align: center;
  }

  .img-wrapper img {
    width: 390px;              /* control size */
    height: 360px;             /* fix height */
    object-fit: cover;         /* crop nicely */
    border-radius: 20px;
    animation: none;
padding-top: 19px;
    
  }

  /* FLOAT CARDS ADJUST */
  .card1 {
    left: 0;
    top: 10%;
  }

  .card2 {
    right: 0;
    bottom: 5%;
  }

  /* TEXT SCALE */
  .dr-left h1 {
    font-size: 36px;
  }

  .dr-left h3 {
    font-size: 20px;
  }

  /* BUTTON CENTER */
  .dr-buttons {
    justify-content: center;
  }

  /* CENTER STATS IF YOU ADD LATER */
  .dr-stats {
    justify-content: center;
  }
}





.doctor-modern {
  padding: 100px 0;
  background: linear-gradient(135deg, #fdfbff, #f2fbff);
}


.doctor-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* FIX IMAGE SIZE */
.doctor-img {
  flex: 0 0 40%;
  max-width: 40%;
}

.doctor-img img {
  width: 100%;
  height: 420px;        /* control height */
  object-fit: cover;    /* crop nicely */
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* CONTENT SIDE BIGGER */
.doctor-content {
  flex: 0 0 60%;
  max-width: 60%;
}
.doctor-img img {
  transition: 0.4s;
}

.doctor-img:hover img {
  transform: scale(1.05);
}

/* FLOATING BADGE */
.floating-badge {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: white;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-badge i {
  color: #ff6b6b;
}

/* CONTENT */
.doctor-content {
  flex: 1;
}

.section-tag {
  background: #e6f7ff;
  color: #0099cc;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
}

.doctor-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-top: 10px;
}

.degree {
  color: #ff6b6b;
  margin-bottom: 15px;
}

.short-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

/* HIGHLIGHTS */
.highlights {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.highlight-box {
  background: white;
  padding: 12px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.highlight-box:hover {
  transform: translateY(-5px);
}

.highlight-box i {
  color: #ff6b6b;
}

/* BUTTON */
.btn-main {
  margin-top: 25px;
  display: inline-block;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* MOBILE */
@media(max-width:768px){
  .doctor-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .floating-badge {
    position: static;
    margin-top: 10px;
  }

  .highlights {
    justify-content: center;
  }
}
@media(max-width:768px){
  .doctor-wrapper {
    flex-direction: column;
  }

  .doctor-img,
  .doctor-content {
    max-width: 100%;
  }

  .doctor-img img {
    height: 280px;
  }
}

@media (max-width:576px){

  .doctor-modern {
    padding: 50px 15px;
  }

  .doctor-wrapper {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  /* IMAGE FIX */
  .doctor-img {
    width: 100%;
    max-width: 100%;
    padding: 0; /* remove side spacing */
  }

 .doctor-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20; /* full width clean look */
  }

  /* FLOATING BADGE FIX */
  .floating-badge {
    position: static;
    margin-top: 10px;
    justify-content: center;
  }

  /* TEXT */
  .doctor-content h2 {
    font-size: 24px;
  }

  .degree {
    font-size: 14px;
  }

  .short-text {
    font-size: 14px;
    line-height: 1.5;
  }

  /* HIGHLIGHTS STACK */
  .highlights {
    flex-direction: column;
    gap: 10px;
  }

  .highlight-box {
    justify-content: center;
    font-size: 14px;
    padding: 10px;
  }

  /* BUTTON FULL WIDTH */
  .btn-main {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }


}
.doctor-details {
  margin-top: 40px;
}

.doctor-details h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

/* GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* CARD */
.info-item {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
  margin-bottom: 10px;
}

.info-item:hover {
  transform: translateY(-5px);
}

/* ICON */
.info-item i {
  color: #ff6b6b;
  font-size: 18px;
  margin-top: 3px;
}

/* TEXT */
.info-item p {
  margin: 0;
  font-size: 14px;
  color: #444;
}