/* =====================================================
   NCC HUB - Clean Responsive Styles
   ===================================================== */

:root {
  --primary: #6A1B9A;
  --primary-light: #9C6ADE;
  --primary-gradient: linear-gradient(135deg, #6A1B9A 0%, #9C6ADE 100%);
  --secondary: #7BC9A8;
  --accent: #B8D8F5;
  --dark: #2C2C2C;
  --light: #FFFFFF;
  --soft-gray: #F7F8FC;
  --border: #E8ECF3;
  --muted: #6B7280;
  --shadow: 0 10px 30px rgba(106, 27, 154, 0.08);
  --shadow-hover: 0 16px 40px rgba(106, 27, 154, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  font-family: 'Hind Siliguri', 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button,
a,
input,
select,
textarea {
  max-width: 100%;
}

input,
select,
textarea {
  font-size: 16px;
}

:focus-visible {
  outline: 3px solid rgba(106, 27, 154, 0.3);
  outline-offset: 3px;
}

.section-pad {
  padding: 80px 0;
}

.section-pad-sm {
  padding: 50px 0;
}

.bg-soft {
  background: var(--soft-gray);
}

.section-heading {
  margin-bottom: 34px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(106, 27, 154, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.section-desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
}

h3 {
  color: #2FBFAE !important;
}

.hero-cta-text {
  font-weight: 700;
  color: #2FBFAE;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 700;
}

.top-bar {
  padding: 8px 0;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 13px;
}

.top-hotline {
  color: #fff;
  font-weight: 600;
}

.top-hotline:hover {
  color: #fff;
  opacity: 0.9;
}

.top-social {
  display: flex;
  gap: 14px;
}

.top-social a {
  color: #fff;
  font-size: 16px;
  opacity: 0.9;
}

.top-social a:hover {
  color: #fff;
  opacity: 1;
}

.navbar {
  width: 100%;
  padding: 10px 0;
}

.navbar-brand {
  color: var(--primary) !important;
  font-size: 1.35rem;
  font-weight: 800;
}

.navbar-brand img {
  flex: 0 0 auto;
  border-radius: 10px;
}

.nav-link {
  position: relative;
  padding: 8px 12px !important;
  color: var(--dark) !important;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.login-btn,
.hotline-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

.login-btn {
  background: var(--primary-gradient);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(106, 27, 154, 0.22);
}

.hotline-top-btn {
  background: var(--secondary);
  color: #fff !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: normal;
}

.btn-primary {
  border: 0 !important;
  border-radius: 50px;
  background: var(--primary-gradient) !important;
  color: #fff !important;
  padding: 12px 26px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(106, 27, 154, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary) !important;
  border-radius: 50px;
  padding: 10px 24px;
  color: var(--primary) !important;
  background: transparent !important;
  font-weight: 600;
}

.btn-outline-primary:hover {
  color: #fff !important;
  background: var(--primary) !important;
}

.btn-whatsapp {
  border: 0 !important;
  border-radius: 50px;
  padding: 12px 26px;
  background: #25D366 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.28);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  background: linear-gradient(180deg, #F7F8FC 0%, #FFFFFF 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -130px;
  right: -110px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 106, 222, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 18px;
  border-radius: 50px;
  background: rgba(106, 27, 154, 0.1);
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.18;
  font-weight: 800;
}

.hero h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 560px;
  margin-bottom: 28px;
  color: #5A6270;
}

.hero-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-counter h3 {
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-counter p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Hero Image ===== */
.hero-image {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(106, 27, 154, 0.18);
  background: linear-gradient(135deg, #f3ecfa, #e8f6f1);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.doctor-card,
.service-card,
.department-card,
.testimonial-card,
.contact-panel,
.info-alert {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.doctor-card {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.doctor-card:hover,
.service-card:hover,
.department-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.doctor-img-wrap {
  width: calc(100% - 32px);
  aspect-ratio: 1 / 1;
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--soft-gray);
}

.doctor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 18px 22px;
}

.doctor-content h5 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2FBFAE;
}

.doctor-content small {
  color: var(--muted);
  font-size: 12.5px;
}

.specialty {
  margin: 8px 0 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.schedule {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.book-btn {
  margin-top: auto;
  padding: 10px 14px;
}

.service-card {
  height: 100%;
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-service {
  padding: 36px 24px;
}

.main-service h4 {
  margin: 16px 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.main-service p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-circle {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  margin-bottom: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.icon-purple { background: linear-gradient(135deg, #6A1B9A, #9C6ADE); }
.icon-blue { background: linear-gradient(135deg, #2563EB, #60A5FA); }
.icon-teal { background: linear-gradient(135deg, #0D9488, #5EEAD4); }
.icon-blood { background: linear-gradient(135deg, #DC2626, #F87171); }
.icon-imaging { background: linear-gradient(135deg, #2563EB, #38BDF8); }
.icon-micro { background: linear-gradient(135deg, #059669, #34D399); }
.icon-heart { background: linear-gradient(135deg, #7C3AED, #C084FC); }

.diag-card {
  min-height: 160px;
  padding: 28px 14px;
}

.diag-card .icon-circle {
  width: 68px;
  height: 68px;
  font-size: 28px;
}

.diag-card h5,
.why-card h5,
.department-card h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.info-alert {
  height: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.alert-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.info-alert.success .alert-icon {
  background: rgba(123, 201, 168, 0.18);
  color: #2E8B6A;
}

.info-alert.primary .alert-icon {
  background: rgba(106, 27, 154, 0.12);
  color: var(--primary);
}

.info-alert h5 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.info-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.why-card {
  min-height: 155px;
  padding: 24px 12px;
}

.stats {
  position: relative;
  background: var(--primary-gradient);
}

.stat-item h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
}

.stat-item p {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.department-card {
  height: 100%;
  padding: 28px 16px;
  text-align: center;
  transition: var(--transition);
}

.department-card .icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  font-size: 24px;
}

.testimonial-card {
  height: 100%;
  padding: 28px 24px;
  transition: var(--transition);
}

.stars {
  margin-bottom: 14px;
  color: #F59E0B;
  letter-spacing: 2px;
  font-size: 18px;
}

.testimonial-card p {
  color: #4B5563;
  font-size: 15px;
  font-style: italic;
}

.testimonial-card h6 {
  margin: 12px 0 0;
  color: var(--primary);
  font-weight: 600;
}

.founder-img-wrap {
  max-width: 320px;
  margin: 0 auto;
}

.founder-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.founder-role {
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 600;
}

.founder-section p {
  color: #4B5563;
  font-size: 15.5px;
}

.contact-panel {
  padding: 28px;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info i {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 27, 154, 0.1);
  color: var(--primary);
}

.map-wrapper {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  min-height: 360px;
  height: 100%;
}

.cta {
  padding-top: 0;
}

.cta-box {
  padding: 48px 30px;
  border-radius: 20px;
  background: var(--primary-gradient);
  box-shadow: 0 15px 40px rgba(106, 27, 154, 0.24);
}

.cta-box h2 {
  color: #fff;
}

.cta-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-btn {
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  color: var(--primary);
}

.floating-hotline {
  position: fixed;
  right: 0;
  bottom: 88px;
  z-index: 1040;
  max-width: calc(100% - 8px);
  padding: 11px 16px;
  border-radius: 30px 0 0 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E53935;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.35);
  white-space: nowrap;
}

.floating-hotline:hover {
  background: #C62828;
  color: #fff !important;
}

.whatsapp-btn {
  position: fixed;
  right: 0;
  bottom: 24px;
  z-index: 1040;
  width: 54px;
  height: 54px;
  min-width: 54px;
  max-width: 54px;
  padding: 0;
  border-radius: 50% 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff !important;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
  background: #1DA851;
  color: #fff !important;
}

#backToTop {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 1030;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
}

.footer {
  width: 100%;
  padding: 60px 0 24px;
  background: #1A1228;
  color: #D1D5DB;
}

.footer h3,
.footer h5 {
  color: #fff;
}

.footer h3 {
  font-weight: 700;
}

.footer h5 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.footer p,
.footer li {
  font-size: 14px;
}

.footer a {
  color: #D1D5DB;
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer hr {
  margin: 30px 0 20px;
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 991.98px) {
  .section-pad {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 48px;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btn,
  .hero-counter {
    justify-content: center;
  }

  /* Hero image (tablet/mobile) */
  .hero-image {
    max-width: 560px;
    margin: 0 auto;
    border-radius: 18px;
  }

  .hero-image img {
    max-height: 300px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .navbar-collapse {
    padding-top: 12px;
  }
}

@media (max-width: 767.98px) {
 .hero p {
  font-size: 17px;
  line-height: 1.7;
}

  .top-social {
    justify-content: center;
  }

  .section-pad {
    padding: 52px 0;
  }

  .section-pad-sm {
    padding: 42px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.25rem);
  }

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

  .hero-btn {
    flex-direction: column;
  }

  .hero-btn .btn {
    width: 100%;
  }

  .hero-counter {
    gap: 18px 24px;
  }

  /* Hero image (mobile) */
  .hero-image {
    max-width: 100%;
  }


  .diag-card {
    min-height: 145px;
    padding: 20px 10px;
  }

  .diag-card .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 25px;
  }

  .why-card {
    min-height: 138px;
    padding: 20px 10px;
  }

  .department-card {
    padding: 22px 12px;
  }

  .contact-panel {
    padding: 22px 18px;
  }

  .cta-box {
    padding: 32px 20px;
    text-align: center;
  }

  .floating-hotline {
    right: 0;
    bottom: 82px;
    max-width: calc(100% - 8px);
    padding: 9px 13px;
    font-size: 12px;
  }

  .whatsapp-btn {
    right: 0;
    bottom: 20px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    font-size: 24px;
  }

  #backToTop {
    left: 12px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }

  .footer {
    padding-top: 46px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.15rem;
  }

  .navbar-brand img {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-tag {
    font-size: 11px;
    padding: 6px 13px;
  }

  .hero-counter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 10px;
  }

  .hero-counter h3 {
    font-size: 1.3rem;
  }

 .hero-counter p {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

  .main-service {
    padding: 28px 18px;
  }

  .doctor-img-wrap {
    height: 200px;
  }

  .info-alert {
    padding: 18px 16px;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 300px;
  }
}

@media (max-width: 380px) {
  .hero-counter {
    grid-template-columns: 1fr;
  }

  .floating-hotline span {
    display: none;
  }

  .floating-hotline {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    padding: 0;
    border-radius: 50% 0 0 50%;
    justify-content: center;
    font-size: 20px;
  }

  .whatsapp-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    font-size: 22px;
  }
}

@media (max-width: 767.98px) {
  .hero p {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }
}
