/* =========================================================================
   ULTRA-PREMIUM DIAGNOSTICS PAGE STYLES (V3 - BENTO & EDITORIAL)
   ========================================================================= */

/* --- GENERAL & UTILITIES --- */
.diag-page {
  background-color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  overflow-x: clip;
}

.diag-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-padding {
  padding: 120px 0;
}

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

.bg-soft {
  background-color: #f9f7f8; /* Very soft off-white/pinkish */
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.section-header.text-left {
  text-align: left;
}

.section-tag {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  position: relative;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 15px;
}

.section-header.text-left .section-tag::before {
  display: none;
}
.section-header.text-left .section-tag::after {
  content: '';
  display: inline-block;
  width: 50px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-left: 15px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4vw, 3.5rem);
  color: var(--teal-dark);
  margin-bottom: 25px;
  line-height: 1.1;
  font-weight: 600;
}

.section-title span {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.section-desc {
  max-width: 750px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.15rem;
  line-height: 1.9;
  font-weight: 300;
}

.section-header.text-left .section-desc {
  margin: 0;
}

/* --- DIAGNOSTIC SERVICES (BENTO GRID) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 24px;
}

.bento-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(109, 7, 54, 0.05);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  box-shadow: 0 20px 50px rgba(109, 7, 54, 0.05);
  transform: translateY(-5px);
  border-color: rgba(197, 160, 89, 0.3); /* gold border on hover */
}

/* Specific card sizes */
.bc-large { grid-column: span 8; grid-row: span 1; }
.bc-tall { grid-column: span 4; grid-row: span 1; }
.bc-wide { grid-column: span 6; grid-row: span 1; }
.bc-square { grid-column: span 4; grid-row: span 1; }

.bento-icon {
  width: 60px;
  height: 60px;
  background: rgba(197, 160, 89, 0.1);
  color: var(--teal);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.bento-card:hover .bento-icon {
  background: var(--teal);
  color: var(--white);
}

.bento-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.bc-square h3, .bc-wide h3 {
  font-size: 1.4rem;
}

.bento-card p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Image background bento card */
.bc-image {
  background: url('images/Pushpanjalia-1.jpeg') center/cover;
  border: none;
}

.bc-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 16, 26, 0.9) 0%, rgba(45, 16, 26, 0.2) 100%);
}

.bc-image .bento-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.bc-image h3 {
  color: var(--white);
}

.bc-image p {
  color: rgba(255,255,255,0.8);
}

/* --- RADIOLOGY (EDITORIAL OVERLAP) --- */
.editorial-overlap {
  display: flex;
  align-items: center;
  position: relative;
}

.eo-image {
  flex: 0 0 55%;
  border-radius: 24px;
  overflow: hidden;
}

.eo-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.eo-content {
  flex: 0 0 55%;
  margin-left: -10%;
  background: var(--white);
  padding: 80px 60px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}

.eo-list {
  margin-top: 40px;
}

.eo-list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.eo-list-item:last-child {
  border-bottom: none;
}

.eo-list-item:hover {
  padding-left: 10px;
}

.eo-list-item-icon {
  color: var(--gold);
  margin-top: 5px;
}

.eo-list-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.eo-list-item p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 1rem;
}

/* --- LABORATORY TESTS (SPLIT PILL LAYOUT) --- */
.lab-split-layout {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.lab-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lab-pill {
  background: var(--white);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: 18px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.lab-pill:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateX(10px);
  border-color: var(--teal);
  box-shadow: 0 10px 25px rgba(109, 7, 54, 0.15);
}

.lab-pill svg {
  color: var(--gold);
  transition: transform 0.3s ease;
}

.lab-pill:hover svg {
  transform: scale(1.2) rotate(10deg);
}

@media (max-width: 992px) {
  .lab-split-layout {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .lab-pill-grid {
    grid-template-columns: 1fr;
  }
}

/* --- HEALTH PACKAGES (ULTRA CLEAN & GRADIENT BG) --- */
.bg-packages {
  background: linear-gradient(180deg, #ffffff 0%, #f6eff2 100%);
  position: relative;
  overflow: hidden;
}

.bg-packages::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pkg-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pkg-modern {
  flex: 1;
  min-width: 320px;
  max-width: 400px;
  background: var(--white);
  border-radius: 24px;
  padding: 50px 40px;
  position: relative;
  border: 1px solid rgba(109, 7, 54, 0.05);
  box-shadow: 0 10px 30px rgba(109, 7, 54, 0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pkg-modern:hover {
  box-shadow: 0 25px 50px rgba(109, 7, 54, 0.08);
  transform: translateY(-8px);
  border-color: rgba(197, 160, 89, 0.25);
}

.pkg-modern.featured {
  background: var(--teal);
  color: var(--white);
  border: none;
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(109, 7, 54, 0.16);
}

.pkg-modern.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pkg-tag {
  display: inline-block;
  padding: 6px 15px;
  background: rgba(197, 160, 89, 0.1);
  color: var(--gold);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.pkg-modern.featured .pkg-tag {
  background: var(--gold);
  color: var(--teal-dark);
}

.pkg-title-modern {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--teal-dark);
}

.pkg-modern.featured .pkg-title-modern {
  color: var(--white);
}

.pkg-list-modern {
  list-style: none;
  margin-bottom: 40px;
}

.pkg-list-modern li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
  color: var(--gray);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.pkg-modern.featured .pkg-list-modern li {
  border-bottom-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}

.pkg-list-modern li::before {
  content: '✓';
  color: var(--gold);
  margin-right: 12px;
  font-weight: bold;
}

.pkg-btn-modern {
  display: block;
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--teal);
  color: var(--teal);
  transition: all 0.3s;
}

.pkg-btn-modern:hover {
  background: var(--teal);
  color: var(--white);
}

.pkg-modern.featured .pkg-btn-modern {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-dark);
}

.pkg-modern.featured .pkg-btn-modern:hover {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--white);
}

/* --- THE PUSHPANJALI DIFFERENCE (COMPACT & VISUAL) --- */
.diff-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.diff-card-modern {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(109, 7, 54, 0.04);
  box-shadow: 0 8px 24px rgba(109, 7, 54, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.diff-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(109, 7, 54, 0.06);
  border-color: rgba(197, 160, 89, 0.25);
}

.diff-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(197, 160, 89, 0.12);
  color: var(--teal);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.diff-card-modern:hover .diff-icon-box {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 15px rgba(109, 7, 54, 0.15);
}

.diff-content {
  flex-grow: 1;
}

.diff-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.diff-content p {
  color: var(--gray);
  line-height: 1.5;
  font-size: 0.92rem;
  margin: 0;
}

/* --- FAQ (BORDERLESS MINIMAL) --- */
.faq-minimal {
  max-width: 1100px;
  margin: 0 auto;
}

.faq-item-min {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-q-min {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--dark);
  transition: color 0.3s;
}

.faq-item-min.active .faq-q-min, .faq-q-min:hover {
  color: var(--teal);
}

.faq-icon-min {
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-icon-min::before, .faq-icon-min::after {
  content: '';
  position: absolute;
  background: var(--teal);
  transition: transform 0.4s ease;
}

.faq-icon-min::before {
  top: 9px; left: 0; width: 20px; height: 2px;
}
.faq-icon-min::after {
  top: 0; left: 9px; width: 2px; height: 20px;
}

.faq-item-min.active .faq-icon-min::after {
  transform: rotate(90deg);
}

.faq-a-min {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  color: var(--gray);
  line-height: 1.8;
  padding: 0;
}

.faq-item-min.active .faq-a-min {
  max-height: 300px;
  padding-bottom: 30px;
}

/* --- CTA (FULL WIDTH SOLID) --- */
.cta-full-solid {
  background: var(--teal-dark);
  padding: 100px 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cta-full-solid::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-full-solid::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-fs-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 40px;
}

.cta-fs-content {
  flex: 1;
  max-width: 800px;
}

.cta-fs-tag {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: block;
}

.cta-fs-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 25px;
  line-height: 1.1;
}

.cta-fs-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  line-height: 1.8;
  margin: 0;
}

.cta-fs-btn-group {
  flex-shrink: 0;
}

.btn-fs-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--teal-dark);
  padding: 24px 50px;
  border-radius: 4px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.btn-fs-primary:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* --- DIAGNOSTIC INTERACTIVE TABS (VISUAL DOCK) --- */
.diag-tabs-nav-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.diag-tabs-nav {
  display: inline-flex;
  background: var(--light-gray);
  padding: 6px;
  border-radius: 50px;
  gap: 6px;
  border: 1px solid rgba(109, 7, 54, 0.04);
}

.diag-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  border: none;
  color: var(--teal);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.diag-tab-btn .tab-icon {
  color: var(--gold);
  transition: all 0.3s ease;
}

.diag-tab-btn:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--teal-dark);
}

.diag-tab-btn.active {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(109, 7, 54, 0.15);
}

.diag-tab-btn.active .tab-icon {
  color: var(--gold-light);
  transform: scale(1.08);
}

/* Tab panes animations */
.diag-tab-pane {
  display: none;
}

.diag-tab-pane.active {
  display: block;
  animation: tabFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pathology Tab Image & Highlights */
.pane-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
  height: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 1px solid rgba(109, 7, 54, 0.05);
}

.pane-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pane-image-wrapper:hover .pane-image {
  transform: scale(1.05);
}

.lab-highlight-box {
  margin-top: 25px;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(109, 7, 54, 0.05);
}

.lh-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.lh-icon {
  background: rgba(197, 160, 89, 0.15);
  color: var(--teal-dark);
  font-weight: bold;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lh-item strong {
  color: var(--teal-dark);
  font-size: 1.05rem;
}

/* Cardiology & Specialized Tab Cards */
.specialized-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.spec-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(109, 7, 54, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(109, 7, 54, 0.06);
  border-color: rgba(197, 160, 89, 0.3);
}

.spec-card-image-wrapper {
  height: 190px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.spec-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.spec-card:hover .spec-card-image {
  transform: scale(1.06);
}

.spec-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.spec-card-content .spec-icon {
  width: 54px;
  height: 54px;
  background: var(--white);
  color: var(--teal);
  border: 1px solid rgba(109, 7, 54, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -57px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.spec-card:hover .spec-card-content .spec-icon {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 6px 15px rgba(109, 7, 54, 0.15);
}

.spec-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.spec-card p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 0.98rem;
  margin-bottom: 22px;
  flex-grow: 1;
}

.spec-list {
  list-style: none;
  border-top: 1px dashed rgba(0,0,0,0.06);
  padding-top: 15px;
}

.spec-list li {
  font-size: 0.88rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.spec-list li::before {
  content: '•';
  color: var(--gold);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .eo-image, .eo-content { flex: 0 0 100%; margin: 0; }
  .editorial-overlap { flex-direction: column; }
  .eo-content { margin-top: -50px; padding: 50px 30px; width: 90%; }
  .specialized-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .diag-tabs-nav-wrapper {
    width: 100%;
  }
  .diag-tabs-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-radius: 20px;
    padding: 8px;
  }
  .diag-tab-btn {
    justify-content: center;
  }
  .specialized-grid { grid-template-columns: 1fr; }
  .lab-pill-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2.2rem; }
  .cta-fs-inner { flex-direction: column; text-align: center; }
  .cta-fs-content h2 { font-size: 2.5rem; }
  .cta-fs-content { margin-bottom: 30px; }
  .section-padding { padding: 80px 0; }
}
