/* ═══════════════════════════════════════════
   Medical Page
═══════════════════════════════════════════ */
html { visibility: hidden; }
/* ── Medical Header ── */
.medical-header {
  text-align: center;
  padding: 5rem 5% 2rem;
}

.medical-header h1 {
  font-size: 4rem;
  color: #1a5e63;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.medical-header h1 span {
  font-style: italic;
  font-weight: 400;
  color: #00838f;
}

.medical-header p {
  color: #555;
  font-size: 1.1rem;
  opacity: 0.8;
}

/* ── Medical Grid ── */
.medical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 3rem 10% 5rem;
}

/* ── Medical Card ── */
.medical-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  border: 1px solid #e0f2f1;
  position: relative;
  overflow: hidden;
}

.medical-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,131,143,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.medical-card:hover {
  transform: scale(1.05);
  background: #e0f7f9;
  box-shadow: 0 20px 50px rgba(0,131,143,0.15);
}

.medical-card:hover::before {
  opacity: 1;
}

/* ── Medical Image ── */
.medical-img {
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.medical-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165,0.84,0.44,1);
}

.medical-card:hover .medical-img img {
  transform: scale(1.08);
}

/* ── Card Text ── */
.medical-card h3 {
  color: #006064;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.medical-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* ── Top Header (Kiran Medical Store brand bar) ── */
.medical-brand-bar {
  width: 100%;
  text-align: center;
  margin-bottom: 0.3rem;
  /* Dancing Script replaced: elegant cursive feel via Georgia italic */
  font-family: 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 2px;
}

.medical-sub-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.medical-sub-nav .logo {
  margin: 0;
  font-size: 1rem !important;
}

.medical-sub-nav .nav-links {
  padding: 0;
}

.medical-sub-nav .nav-links a {
  font-size: 1rem;
}

/* ── CFO Section ── */
.cfo-sec {
  display: flex;
  align-items: center;
  padding: 10rem 10% 5rem;
  background: #f0f7f4;
  gap: 4rem;
  min-height: 80vh;
}

.cfo-bio { flex: 1; }

.cfo-bio h4 {
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #2d6a4f;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  /* Inter replaced: clean sans-serif */
  font-family: var(--font-body);
  font-weight: 700;
}

.cfo-bio h1 {
  font-size: 4rem;
  color: #1b4332;
  margin-bottom: 2rem;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -2px;
}

.cfo-bio p {
  /* Playfair Display replaced: Georgia italic gives same elegance */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #40916c;
  font-style: italic;
}

.cfo-bio .cfo-name-footer {
  margin-top: 3rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  color: #1b4332;
}

/* ── CFO Portrait ── */
.cfo-portrait {
  flex: 0 0 450px;
  height: 600px;
  position: relative;
  box-shadow: 30px 30px 0 #b7e4c7;
}

.cfo-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* ── Map Section ── */
.medical-map-sec {
  background: #fff;
  padding: 5rem 10% 8rem;
}

.medical-map-sec .editorial-heading {
  text-align: center;
  margin-bottom: 3rem;
  color: #1a5e63;
}

.medical-map-sec .editorial-heading span {
  font-style: italic;
  color: #00838f;
}

/* Static CSS map box */
.medical-map-box {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  position: relative;
  background: linear-gradient(160deg, #1e2e1e 0%, #142014 50%, #0d1a0d 100%);
}

.medical-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,131,143,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,131,143,0.07) 1px, transparent 1px);
  background-size: 35px 35px;
}

.medical-map-road-h {
  position: absolute;
  height: 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}

.medical-map-road-v {
  position: absolute;
  width: 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}

.medical-map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
  animation: float 3s ease-in-out infinite;
  z-index: 5;
}

.medical-map-dot {
  width: 18px;
  height: 18px;
  background: #00838f;
  border-radius: 50%;
  margin: 0 auto 6px;
  box-shadow: 0 0 0 6px rgba(0,131,143,0.2), 0 0 25px rgba(0,131,143,0.6);
}

.medical-map-label {
  background: #00838f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.medical-map-addr {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* Map address line below box */
.medical-map-info {
  text-align: center;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.medical-map-info svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-gold);
  flex-shrink: 0;
}

.medical-locate-btn {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 1rem 2rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  transition: var(--transition);
}

.medical-locate-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-brown);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cfo-sec {
    flex-direction: column;
    padding: 8rem 5% 4rem;
    text-align: center;
  }

  .cfo-portrait {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    height: 500px;
    box-shadow: 20px 20px 0 #b7e4c7;
  }
}

@media (max-width: 768px) {
  .cfo-bio h1 { font-size: 2.5rem; }
  .medical-header h1 { font-size: 2.5rem; }
  .medical-grid { padding: 2rem 5%; }
  .medical-map-sec { padding: 3rem 5% 5rem; }
  .cfo-sec { padding-top: 11rem; }
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -60%); }
  50%       { transform: translate(-50%, -68%); }
}
html { visibility: visible; }