/* =====================================================================
   JFC Inner Pages - Shared CSS
   About Us, Achievements, Team, Why JFC
   ===================================================================== */

/* ======================= INNER PAGE HERO ======================= */
.inner-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.inner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,30,60,0.5) 0%, rgba(45,30,60,0.85) 100%);
}

.inner-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem 3rem;
}

.inner-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.inner-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--primary);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }

/* ======================= SECTIONS ======================= */
.ip-section {
  padding: 5rem 0;
}

.ip-section-alt {
  background-color: var(--warm-gray);
}

.ip-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ip-section-header .section-subtitle {
  max-width: 550px;
  margin: 0.75rem auto 0;
  color: var(--muted-foreground);
}

/* ======================= 2-COL GRID ======================= */
.ip-grid-2col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ip-grid-2col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ======================= IMAGE BLOCK ======================= */
.ip-image-block {
  position: relative;
}

.ip-main-image {
  border-radius: 1.5rem;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-elevated);
}

.ip-floating-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: 0 10px 30px -5px hsla(336,70%,47%,0.4);
}

.ip-badge-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
}

.ip-badge-text {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* ======================= TEXT BLOCK ======================= */
.ip-text-block .section-label {
  display: block;
  margin-bottom: 0.5rem;
}

.ip-text-block .section-title {
  margin-bottom: 1.5rem;
}

.ip-text {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.ip-highlight-box {
  background: var(--secondary);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 1rem 1rem 0;
  margin-top: 1.5rem;
}

.ip-highlight-box p {
  color: var(--secondary-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ======================= MISSION & VISION ======================= */
.ip-mv-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ip-mv-grid { grid-template-columns: repeat(3, 1fr); }
}

.ip-mv-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.ip-mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.ip-mv-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

.ip-mv-icon-teal {
  background: var(--teal-light);
  color: var(--teal);
}

.ip-mv-icon-gold {
  background: hsl(45,90%,92%);
  color: hsl(45,80%,40%);
}

.ip-mv-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.ip-mv-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ======================= TIMELINE ======================= */
.ip-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}

.ip-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--teal));
  border-radius: 3px;
}

.ip-timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.ip-timeline-item:last-child { padding-bottom: 0; }

.ip-timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
  transform: translateX(-50%);
  left: -2.06rem;
}

.ip-timeline-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ip-timeline-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}

.ip-timeline-year {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.ip-timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.ip-timeline-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ======================= DOCTOR PROFILES ======================= */
.ip-doctor-profile {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.ip-doctor-profile:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .ip-doctor-profile {
    grid-template-columns: 280px 1fr;
  }
  .ip-doctor-reverse {
    grid-template-columns: 1fr 280px;
  }
  .ip-doctor-reverse .ip-doctor-image-wrap {
    order: 2;
  }
  .ip-doctor-reverse .ip-doctor-bio {
    order: 1;
  }
}

.ip-doctor-image-wrap {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.ip-doctor-image-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}

.ip-doctor-bio h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.ip-doctor-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.ip-doctor-bio p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.ip-doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ip-doctor-tags span {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ======================= LOCATIONS ======================= */
.ip-locations-grid {
  display: grid;
  gap: 2rem;
}

/*@media (min-width: 768px) {*/
/*  .ip-locations-grid { grid-template-columns: 1fr 1fr; }*/
/*}*/

.ip-location-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s;
}

.ip-location-card:hover {
  transform: translateY(-4px);
}

.ip-location-map {
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
}

.ip-location-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.ip-location-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ======================= SUCCESS RATES ======================= */
.ip-stats-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ip-stats-grid { grid-template-columns: 1fr 1fr; }
}

.ip-stat-bar-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.ip-stat-bar-card:hover {
  transform: translateY(-4px);
}

.ip-stat-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ip-stat-bar-header h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
}

.ip-stat-percent {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.ip-stat-bar-track {
  width: 100%;
  height: 10px;
  background: var(--warm-gray);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.ip-stat-bar-fill {
  height: 100%;
  width: var(--fill-width, 50%);
  background: linear-gradient(90deg, var(--primary), var(--magenta-light));
  border-radius: 10px;
  animation: fillBar 1.5s ease-out forwards;
  transform-origin: left;
}

.ip-fill-teal {
  background: linear-gradient(90deg, var(--teal), hsl(174, 42%, 60%));
}

.ip-fill-gold {
  background: linear-gradient(90deg, hsl(45,80%,45%), hsl(45,70%,60%));
}

.ip-fill-magenta {
  background: linear-gradient(90deg, var(--magenta-dark), var(--magenta-light));
}

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--fill-width, 50%); }
}

.ip-stat-bar-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.ip-stats-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--navy), hsl(210,29%,30%));
  border-radius: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .ip-stats-summary { grid-template-columns: repeat(4, 1fr); }
}

.ip-summary-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ip-summary-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ======================= TEAM GRID ======================= */
.ip-team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .ip-team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .ip-team-grid { grid-template-columns: repeat(4, 1fr); }
}

.ip-team-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ip-team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.ip-team-img {
  overflow: hidden;
  height: 220px;
}

.ip-team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}

.ip-team-card:hover .ip-team-img img {
  transform: scale(1.05);
}

.ip-team-info {
  padding: 1.25rem;
  text-align: center;
}

.ip-team-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.ip-team-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ip-team-spec {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--warm-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ======================= TESTIMONIALS ======================= */
.ip-testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ip-testimonials-grid { grid-template-columns: 1fr 1fr; }
}

.ip-testimonial-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s;
}

.ip-testimonial-card:hover {
  transform: translateY(-4px);
}

.ip-testimonial-quote {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.ip-testimonial-text {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.ip-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ip-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ip-avatar-teal { background: var(--teal); }
.ip-avatar-gold { background: hsl(45,80%,45%); }
.ip-avatar-navy { background: var(--navy); }

.ip-testimonial-author strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.ip-testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ======================= ACTIVE NAV LINK ======================= */
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* ======================= ANIMATIONS ======================= */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================= WHY JFC PAGE ======================= */
.wj-pillars-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .wj-pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .wj-pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.wj-pillar-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.wj-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.wj-pillar-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--warm-gray);
  line-height: 1;
}

.wj-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.wj-icon-teal { background: var(--teal-light); color: var(--teal); }
.wj-icon-gold { background: hsl(45,90%,92%); color: hsl(45,80%,40%); }
.wj-icon-navy { background: hsl(210,20%,90%); color: var(--navy); }
.wj-icon-magenta { background: hsl(336,60%,93%); color: var(--magenta-dark); }

.wj-pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.wj-pillar-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Achievements List */
.wj-achievements-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wj-achievement-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.wj-achievement-item:hover {
  transform: translateX(6px);
}

.wj-ach-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.wj-achievement-item p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.wj-achievement-item strong {
  color: var(--navy);
}

/* ======================= CONTACT PAGE ======================= */
.ct-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .ct-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
}

.ct-info-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ct-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--warm-gray);
  border-radius: 1rem;
  transition: transform 0.3s;
}

.ct-info-card:hover { transform: translateX(4px); }

.ct-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ct-icon-teal { background: var(--teal-light); color: var(--teal); }
.ct-icon-gold { background: hsl(45,90%,92%); color: hsl(45,80%,40%); }
.ct-icon-navy { background: hsl(210,20%,90%); color: var(--navy); }

.ct-info-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.ct-info-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.ct-info-card a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.2s;
}

.ct-info-card a:hover { color: var(--magenta-dark); }

/* Contact Form Card */
.ct-form-card {
  background: #fff;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border);
}

.ct-form-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.ct-form-sub {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ct-form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 500px) {
  .ct-form-row { grid-template-columns: 1fr; }
}

.ct-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--warm-gray);
  font-size: 0.95rem;
  color: var(--navy);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

.ct-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(336,70%,47%,0.1);
  background: #fff;
}

.ct-textarea {
  resize: vertical;
  min-height: 100px;
}

.ct-trust-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  flex-wrap: wrap;
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 767px) {
  .inner-hero { min-height: 260px; }
  .inner-hero-title { font-size: 2rem; }
  .ip-section { padding: 3rem 0; }
  .ip-floating-badge { right: 1rem; bottom: -1rem; }
  .ip-doctor-profile { padding: 1.5rem; }
  .ip-doctor-image-wrap img { height: 250px; }
  .ct-form-card { padding: 1.5rem; border-radius: 1.5rem; }
}
