/* General Body */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
  color: #333;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/static/rashmi_sinha.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  gap: 15px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
}
.hero a {
  margin: 0.5rem 0;
}

/* Content Section */
.content {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}
.cards {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 40%;
  min-width: 250px;
}
.card h3 {
  margin-bottom: 10px;
  color: #0077b6;
}

/* Achievements Section */
.achievements img {
  max-width: 60%;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.achievements p {
  margin-top: 15px;
  font-style: italic;
}

/* Footer */
footer p {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
  font-weight: bold;
  font-style: italic;
}

/* Hero - Homepage */
.home-hero {
  background: linear-gradient(rgba(108, 227, 217, 0.6), rgba(108, 227, 217, 0.6)),
    url("/static/clinic_banner.jpg") center/cover no-repeat;
  padding: 120px 20px;
}

/* Buttons */
/* About Preview Section */
.about-preview {
  text-align: center;
  padding: 40px 20px;
  background: #e9f5f8;
  margin: 50px 0;
  border-radius: 20px;
}
.about-preview p {
  max-width: 600px;
  margin: 15px auto;
  font-size: 1.1rem;
}

/* ✅ Scoped image styling instead of global */
.content img,
.achievements img {
  padding: 20px;
}

/* Contact Page */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/static/contact_banner.jpg") center/cover no-repeat;
  padding: 100px 20px;
}
.contact-details {
  background: #f8f9fa;
  padding: 20px;
  margin: 30px auto;
  max-width: 500px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.contact-details a {
  color: #0077b6;
  text-decoration: none;
}
.contact-details a:hover {
  text-decoration: underline;
}
.contact-details p {
  font-size: large;
  font-weight: bold;
  font-style: italic;
  font-family: cursive;
  color: #00eaff;
}
.contact-details strong {
  font-size: large;
  font-weight: bold;
  font-style: italic;
  font-family: cursive;
  color: #00eaff;
}

/* Appointment Page */
.appointment-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/static/appointment_banner.jpg") center/cover no-repeat;
  padding: 100px 20px;
  color: white;
  text-align: center;
}
.appointment-form {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.appointment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.appointment-form input,
.appointment-form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.appointment-form button {
  width: 100%;
  padding: 12px;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
.appointment-form button:hover {
  background: #023e8a;
}

/* FAQ Page */
.faq-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
}
.faq-item {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  position: relative;
}
.faq-question {
  cursor: pointer;
  font-weight: bold;
  margin: 0;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-item:hover .faq-question {
  transform: translateX(-10px);
  background-color: #eaeaea;
}
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 10px;
  transform: translateX(30px);
  transition: all 0.4s ease;
  color: #444;
  line-height: 1.4em;
}
.faq-item:hover .faq-answer {
  max-height: 200px;
  opacity: 1;
  transform: translateX(0);
  padding-top: 8px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  z-index: 1000;
  animation: pulseBounce 2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  animation: none;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* Floating Call Button */
.call-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #0077b6;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.call-float:hover {
  transform: scale(1.1) rotate(-10deg);
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.6);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 160px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  display: flex; /* ✅ added so justify-content/align-items work */
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(68, 68, 68, 0.6);
}

/* Animation for WhatsApp pulse */
@keyframes pulseBounce {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.1) translateY(-4px);
  }
}

/* --- Gallery Page --- */
.gallery-hero {
  background: linear-gradient(rgba(108, 227, 217, 0.6), rgba(108, 227, 217, 0.6)),
    url("/static/gallery_banner.jpg") center/cover no-repeat;
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px auto;
  max-width: 1000px;
  padding: 10px;
}

.gallery-grid video,
.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-grid video:hover,
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Appointment Confirmation Styles --- */
.confirmation-card {
  max-width: 500px;
  margin: 50px auto;
  background: #e6ffed;
  border: 2px solid #38a169;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease;
}
.confirmation-card h2 {
  color: #2f855a;
  margin-bottom: 15px;
}
.confirmation-card p {
  font-size: 1.1rem;
  color: #22543d;
}
.checkmark {
  font-size: 50px;
  color: #38a169;
  animation: pop 0.6s ease forwards;
  margin-bottom: 10px;
}
@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reviews Section */
.reviewscards {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 40%;
  min-width: 250px;
  text-align: center;
}
.reviewscards p {
  font-size: medium;
  font-weight: bold;
  font-style: italic;
}

/* Typewriter */
.typewriter {
  display: flex;
  justify-content: center;
}
.typewriter p {
  font-family: monospace;
  font-size: 1.5rem;
  margin-inline: auto;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid;
  animation: typing 3s steps(22) forwards, blink 1s step-end infinite;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Video Container */
.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.video-container video {
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 75%;
}

/* Meet the Doctor Page */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/static/doctor_banner.jpg") center/cover no-repeat;
  padding: 100px 20px;
  color: white;
  text-align: center;
}
.doctor-profile {
  text-align: center;
  margin: 40px auto;
}
.doctor-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}
.timeline {
  max-width: 700px;
  margin: 50px auto;
  padding: 20px;
}
.timeline h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #0077b6;
}
.timeline-item {
  position: relative;
  margin: 20px 0;
  padding-left: 60px;
  animation: slideIn 0.6s ease forwards;
}
.timeline-item .year {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #0096c7;
}
@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ✅ Fixed achievements selector */
.meet-doctor .achievements {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.meet-doctor .achievements h1 {
  color: #0077b6;
  font-family: sans-serif;
  font-style: italic;
}
.meet-doctor .achievements p {
  font-weight: bold;
  font-style: italic;
}

.btn-12,
.btn-12 *,
.btn-12 :after,
.btn-12 :before,
.btn-12:after,
.btn-12:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-12 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  background-color: #000;
  background-image: none;
  color: #fff;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  padding: 0;
  text-transform: uppercase;
}

.btn-12:disabled {
  cursor: default;
}

.btn-12:-moz-focusring {
  outline: auto;
}

.btn-12 svg {
  display: block;
  vertical-align: middle;
}

.btn-12 [hidden] {
  display: none;
}

.btn-12 {
  border-radius: 99rem;
  border-width: 2px;
  overflow: hidden;
  padding: 0.8rem 3rem;
  position: relative;
}

.btn-12 span {
  mix-blend-mode: difference;
}

.btn-12:after,
.btn-12:before {
  background: linear-gradient(
    90deg,
    #fff 25%,
    transparent 0,
    transparent 50%,
    #fff 0,
    #fff 75%,
    transparent 0
  );
  content: "";
  inset: 0;
  position: absolute;
  transform: translateY(var(--progress, 100%));
  transition: transform 0.2s ease;
}

.btn-12:after {
  --progress: -100%;
  background: linear-gradient(
    90deg,
    transparent 0,
    transparent 25%,
    #fff 0,
    #fff 50%,
    transparent 0,
    transparent 75%,
    #fff 0
  );
  z-index: -1;
}

.btn-12:hover:after,
.btn-12:hover:before {
  --progress: 0;
}


/* Smooth animated CodePen-style button */
/* CodePen Button */
.codepen-button {
  display: block;
  cursor: pointer;
  color: white;
  margin: 10px auto;
  position: relative;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  padding: 3px;
}

.codepen-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  background: linear-gradient(115deg, #4fcf70, #fad648, #a767e5, #12bcfe, #44ce7b);
  background-size: 25% 100%;
  animation: gradientMove 0.75s linear infinite;
  animation-play-state: paused;
  transform: translateX(-5%);
  transition: transform 0.25s ease-out;
}

.codepen-button:hover::before {
  animation-play-state: running;
  transform: translateX(0%);
  transition-duration: 0.75s;
}

@keyframes gradientMove {
  to {
    transform: translateX(-25%);
  }
}

.codepen-button span {
  position: relative;
  display: block;
  width: 180px;    /* width of the button */
  height: 50px;    /* height of the button */
  font-size: 16px;
  background: #000;
  border-radius: 6px;
  text-align: center;
  line-height: 50px; /* vertically center text */
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 13rem;
  overflow: hidden;
  height: 3rem;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: 0.5s;
  animation: gradient_301 5s ease infinite;
  border: double 4px transparent;
  background-image: linear-gradient(#212121, #212121),
    linear-gradient(
      137.48deg,
      #ffdb3b 10%,
      #fe53bb 45%,
      #8f51ea 67%,
      #0044ff 87%
    );
  background-origin: border-box;
  background-clip: content-box, border-box;
}

#container-stars {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
}

strong {
  z-index: 2;
  font-family: "Avalors Personal Use";
  font-size: 12px;
  letter-spacing: 5px;
  color: #ffffff;
  text-shadow: 0 0 4px white;
}

#glow {
  position: absolute;
  display: flex;
  width: 12rem;
}

.circle {
  width: 100%;
  height: 30px;
  filter: blur(2rem);
  animation: pulse_3011 4s infinite;
  z-index: -1;
}

.circle:nth-of-type(1) {
  background: rgba(254, 83, 186, 0.636);
}

.circle:nth-of-type(2) {
  background: rgba(142, 81, 234, 0.704);
}

.btn:hover #container-stars {
  z-index: 1;
  background-color: #212121;
}

.btn:hover {
  transform: scale(1.1);
}

.btn:active {
  border: double 4px #fe53bb;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}

.btn:active .circle {
  background: #fe53bb;
}

#stars {
  position: relative;
  background: transparent;
  width: 200rem;
  height: 200rem;
}

#stars::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -100rem;
  width: 100%;
  height: 100%;
  animation: animStarRotate 90s linear infinite;
}

#stars::after {
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

#stars::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 170%;
  height: 500%;
  animation: animStar 60s linear infinite;
}

#stars::before {
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}

@keyframes animStar {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-135rem);
  }
}

@keyframes animStarRotate {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0);
  }
}

@keyframes gradient_301 {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse_3011 {
  0% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.cv-cards {
  justify-content: left;
  text-align: justify;
  padding: 20px 30px;
  color: #114857;
  display: flex;
  gap: 20px;
  margin: 30px auto;     /* centers the card */
  flex-wrap: wrap;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;           /* take full width */
  max-width: 1000px;     /* but not larger than 1000px */
  min-width: 250px;      /* shrink nicely on small screens */
}

.cv-cards:hover {
  color: rgb(11, 25, 27);
}

.cv-cards p {
  font-size: large;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}

.blog-hero {
   background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/static/clinic_banner.jpg") center/cover no-repeat;
  padding: 120px 20px;
padding-top: 50px; 
}
.myth-card {
  justify-content: left;
  text-align: justify;
  padding: 20px 30px;
  color: #ff00f2;
  display: flex;
  gap: 20px; 
  flex-wrap: wrap;
  background: rgb(5, 252, 235);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
  min-width: 250px;
}
.fact-card {
  justify-content: left;
  text-align: justify;
  padding: 20px 30px;
  color: #00eaff;
  display: flex;
  gap: 20px; 
  flex-wrap: wrap;
  background: rgb(255, 12, 247);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
  min-width: 250px;
}
.myth-card h3 {
  font-size: large;
  font-weight: bold;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
}
.awareness-card {
  justify-content: left;
  text-align: justify;
  padding: 20px 30px;
  color: #0000ff;
  display: flex;
  gap: 20px; 
  flex-wrap: wrap;
  background: rgb(72, 254, 0);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1000px;
  min-width: 250px;
}
.awareness-card h3 {
  font-style: italic;
  font-size: large;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
}
.awareness-card p {
  font-style: italic;
  font-size: large;
  font-weight: bold;
  font-family: 'Times New Roman', serif;
}
.patient-resources-card {
  justify-content: left;
  text-align: justify;
  padding: 20px 30px;
  color: #0051ff;
  display: flex;
  gap: 20px; 
  flex-wrap: wrap;
  background: rgb(255, 151, 255);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-width: 250px;
}
.patient-resources-card h1 {
  font-size: large;
  font-weight: bold;
  font-style: italic;
  font-family: cursive;
}
.table-wrapper {
  overflow-x: auto; /* For horizontal scrolling if table exceeds width */
}
table {
  width: 100%;
  border-collapse: collapse; /* Single borders */
  font-family: Arial, sans-serif;
}
th,
td {
  border: 1px solid #ddd; /* Cell borders */
  padding: 8px;
  text-align: left;
}
th {
  background-color: #f2f2f2; /* Header background */
  font-weight: bold;
}
tr:nth-child(even) {
  background-color: #f9f9f9; /* Zebra striping */
}
tr:hover {
  background-color: #e0e0e0; /* Hover effect */
}.button-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* space between rows */
  margin-top: 30px;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap; /* keeps 6 in one line */
  gap: 15px; /* space between buttons */
}

