:root {
  --card-radius: 16px;
  --card-gap: 26px;
  --card-border: 1px solid rgba(255,255,255,0.12);
  --card-hover-border: rgba(14,165,233,0.55);
  --card-hover-shadow: 0 16px 40px rgba(14,165,233,0.18);
  --card-hover-lift: translateY(-6px);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero {
  position: relative;
  width: 100%;
  height: 57vh;
 flex-direction: column;  
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 40px 20px;
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
 
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
}

.page-hero h1 {
  font-size: 48px;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 16px;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  animation: fadeUp 0.85s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-desc {
  font-size: 15px;
  color: #e2e8f0;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  animation: fadeUp 0.85s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero .hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.85s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-hero-main {
  background: #0ea5e9;
  color: white;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid #0ea5e9;
  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.btn-hero-main:hover {
  background: white;
  color: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(14,165,233,0.35);
}

.btn-hero-ghost {
  background: transparent;
  color: white;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid rgba(255,255,255,0.7);
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
}
.btn-hero-ghost:hover {
  background: white;
  color: #0f172a;
  border-color: white;
  transform: translateY(-3px);
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 8px;
  text-align: center;
}

.section-label-left {
  display: block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0ea5e9;
  margin-bottom: 8px;
  text-align: left;
}

.section-sub {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 38px;
}

.about-section {
  background: white;
  padding: 90px 60px;
}

.about-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.about-inner.visible { opacity: 1; transform: translateY(0); }

.about-img-wrap { flex: 1; min-width: 280px; }
.about-img-wrap img {
  width: 100%; height: 420px;
  object-fit: cover;
  border-radius: var(--card-radius);
  box-shadow: 0 20px 56px rgba(14,165,233,0.15);
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-img-wrap:hover img {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 30px 72px rgba(14,165,233,0.22);
}

.about-text { flex: 1; min-width: 280px; }
.about-text h2 {
  text-align: left;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.35;
}
.about-text p { font-size: 14px; color: #555; margin-bottom: 14px; line-height: 1.85; }

.btn-blue {
  display: inline-block;
  margin-top: 12px;
  background: #0ea5e9;
  color: white;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
}
.btn-blue:hover {
  background: #0284c7;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(14,165,233,0.28);
}


.why-section {
  background: #112050;
}

.why-section h2 {
  color: white;
}

.why-section .section-sub {
  color: #bfdbfe;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.why-grid > * { flex: 1 1 100%; }
@media (min-width: 576px) { .why-grid > * { flex: 1 1 calc(50% - 12px); } }
@media (min-width: 992px) { .why-grid > * { flex: 1 1 calc(33.333% - 16px); } }

.why-card {
  background: #ffffff;
  padding: 28px 26px;
  border-radius: var(--card-radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.why-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 16px 40px rgba(14,165,233,0.16);
  transform: translateY(-6px);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card h3 {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  text-align: left;
}

.why-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}
.benefits-section {
  background: #112050;
  position: relative;
  overflow: hidden;
  padding: 80px 60px;
}
.benefits-section h2 {
  text-align: center; font-size: 30px; color: white;
  margin-bottom: 10px; font-family: Georgia, serif;
  position: relative; z-index: 2;
}
.benefits-section .section-sub { color: #bfdbfe; position: relative; z-index: 2; }

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  position: relative; z-index: 2;
}
.benefits-grid > * { flex: 1 1 100%; }
@media (min-width: 576px) { .benefits-grid > * { flex: 1 1 calc(50% - 12px); } }
@media (min-width: 992px) { .benefits-grid > * { flex: 1 1 calc(33.333% - 16px); } }

.benefit-card {
  background:white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 26px;
  border-radius: 4px;
  border: var(--card-border);
  text-align: center;
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1),
              border-color 0.22s, box-shadow 0.22s;
}
.benefit-card.visible { opacity: 1; transform: translateY(0); }
.benefit-card:nth-child(2) { transition-delay: 0.07s; }
.benefit-card:nth-child(3) { transition-delay: 0.14s; }
.benefit-card:nth-child(4) { transition-delay: 0.07s; }
.benefit-card:nth-child(5) { transition-delay: 0.14s; }
.benefit-card:nth-child(6) { transition-delay: 0.21s; }
.benefit-card:hover {
  border-color: var(--card-hover-border);
  transform: 2px;
  box-shadow: var(--card-hover-shadow);
}
.benefit-card h3 {
  font-size: 15px;
  color: #38bdf8;
  font-family: Georgia, serif;
  margin-bottom: 8px;
  text-align: center;
}
.benefit-card p { font-size: 13px; color: #94a3b8; line-height: 1.75; }

.testimonial-section { background: white; padding: 80px 60px; }
.testimonial-section h2 { text-align: center; font-size: 30px; color: #1a1a2e; margin-bottom: 10px; font-family: Georgia, serif; }

.testi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.testi-grid > * { flex: 1 1 100%; }
@media (min-width: 576px) { .testi-grid > * { flex: 1 1 calc(50% - 12px); } }
@media (min-width: 992px) { .testi-grid > * { flex: 1 1 calc(33.333% - 16px); } }

.testi-card {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: var(--card-radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  position: relative;
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1),
              border-color 0.22s, box-shadow 0.22s;
}
.testi-card.visible { opacity: 1; transform: translateY(0); }
.testi-card:nth-child(2) { transition-delay: 0.08s; }
.testi-card:nth-child(3) { transition-delay: 0.16s; }
.testi-card::before {
  content: '\201C';
  font-size: 70px;
  font-family: Georgia, serif;
  color: #0ea5e9;
  opacity: 0.15;
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
  transition: opacity 0.25s;
}
.testi-card:hover::before { opacity: 0.28; }
.testi-card:hover {
  border-color: #0ea5e9;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(14,165,233,0.16);
}
.testi-text {
  font-size: 13px; color: #444; line-height: 1.8;
  margin-bottom: 22px; font-style: italic; padding-top: 30px;
}
.testi-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid #eef2f7; padding-top: 16px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: #0ea5e9;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 22px; color: white;
  transition: transform 0.25s, background 0.25s;
}
.testi-card:hover .testi-avatar { transform: scale(1.12); background: #0284c7; }
.testi-name { font-size: 13px; font-weight: bold; color: #1a1a2e; }
.testi-role { font-size: 12px; color: #777; }

.intro-section, .goals-section { background: white; padding: 80px 60px; }

.about-block { max-width: 1000px; margin: 0 auto; }
.about-block h2 {
  font-size: 30px; color: #1a1a2e;
  margin-bottom: 16px; font-family: Georgia, serif; text-align: center;
}
.about-block p { font-size: 14px; color: #555; margin-bottom: 14px; line-height: 1.85; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  margin-top: 32px;
}

.col-box {
  background: #f4f7fb;
  border: 1px solid #e2e8f0;
  border-radius: var(--card-radius);
  padding: 24px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.col-box:hover {
  border-color: #0ea5e9;
  box-shadow: 0 14px 40px rgba(14,165,233,0.12);
  transform: var(--card-hover-lift);
}
.col-box h3 { font-size: 15px; color: #0ea5e9; font-family: Georgia, serif; margin-bottom: 14px; text-align: center; }
.col-box ul { list-style: none; padding: 0; }
.col-box ul li {
  font-size: 13px; color: #444;
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid #eaeff7;
  position: relative;
}
.col-box ul li:last-child { border-bottom: none; }
.col-box ul li::before {
  content: '✓'; color: #0ea5e9;
  position: absolute; left: 0;
  font-size: 12px; font-weight: bold;
}

.stats-band {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9 0%, #0f172a 100%);
  color: white;
  padding: 60px 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item { text-align: center; transition: transform 0.25s; }
.stat-item:hover { transform: translateY(-5px); }
.stat-item h3 { font-size: 46px; font-family: Georgia, serif; margin-bottom: 6px; color: white; }
.stat-item p { font-size: 14px; color: #bae6fd; }

.cta {
  background: linear-gradient(135deg, #0ea5e9 0%, #0f172a 100%);
  color: white; text-align: center; padding: 90px 40px;
}
.cta h2 { font-family: Georgia, serif; font-size: 30px; color: white; margin-bottom: 14px; }
.cta p {
  font-size: 15px; color: #bae6fd; margin-bottom: 32px;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.75;
}

.btn-primary {
  background: white; color: #0ea5e9;
  padding: 13px 30px; border-radius: 6px;
  font-size: 14px; font-weight: bold;
  border: 2px solid white; display: inline-block; margin: 5px;
  transition: background 0.2s, color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #0ea5e9; color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,255,255,0.2);
}

.btn-outline-dark {
  border: 2px solid rgba(255,255,255,0.75); color: white;
  padding: 13px 30px; border-radius: 6px;
  font-size: 14px; font-weight: bold;
  display: inline-block; margin: 5px; background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
}
.btn-outline-dark:hover {
  background: white; color: #0ea5e9; border-color: white;
  transform: translateY(-3px);
}

.footer { background: #0f172a; color: #cbd5e1; padding: 56px 60px 32px; }
.footer-grid {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 30px; margin-bottom: 34px;
}
.footer-grid h3 { font-size: 20px; color: white; margin-bottom: 10px; font-family: Georgia, serif; }
.footer-grid h4 { font-size: 11px; color: #7dd3fc; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: bold; }
.footer-grid p { font-size: 13px; margin-bottom: 6px; color: #94a3b8; }
.footer-grid a { color: #94a3b8; font-size: 13px; display: block; margin-bottom: 6px; width: fit-content; transition: color 0.2s, transform 0.2s; }
.footer-grid a:hover { color: #38bdf8; transform: translateX(5px); }
.copy { text-align: center; border-top: 1px solid #1e293b; padding-top: 22px; font-size: 12px; color: #64748b; }

@media (max-width: 1024px) {
  .dept-grid,
  .objectives-grid, .doctors-grid, .two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner { flex-direction: column; }
  .about-section, .intro-section, .goals-section,
  .why-section, .benefits-section, .departments-section,
  .objectives-section, .doctors-section, .testimonial-section { padding: 70px 40px; }
}

@media (max-width: 768px) {
  .about-section, .intro-section, .goals-section,
  .why-section, .benefits-section, .departments-section,
  .objectives-section, .doctors-section, .testimonial-section { padding: 50px 16px; }

  .dept-grid,
  .objectives-grid, .doctors-grid, .two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-hero { min-height: 100vh; min-height: 100svh; }
  .page-hero .hero-content { padding: 32px 20px; }
  .page-hero h1 { font-size: 27px; line-height: 1.3; }
  .hero-desc { font-size: 13px; line-height: 1.7; margin-bottom: 24px; }

  .page-hero .hero-btns {
    flex-direction: column; align-items: center; gap: 12px;
  }
  .btn-hero-main, .btn-hero-ghost {
    width: 100%; max-width: 240px; text-align: center;
    border-radius: 24px; padding: 14px 30px;
  }

  .about-inner { flex-direction: column; gap: 28px; }
  .about-img-wrap img { height: 240px; }
  .about-text h2 { font-size: 22px; }

  .departments-section, .objectives-section { background-attachment: scroll; }

  .cta { padding: 60px 20px; }
  .cta h2 { font-size: 22px; }
  .cta > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .btn-primary, .btn-outline-dark { width: 100%; max-width: 240px; text-align: center; display: block; }

  .footer { padding: 44px 16px 22px; }
  .footer-grid { flex-direction: column; gap: 20px; }
  .stats-band { padding: 44px 16px; gap: 28px; }
}

@media (max-width: 480px) {
  .page-hero .hero-content { padding: 24px 16px; }
  .page-hero h1 { font-size: 21px; }
  .hero-desc { font-size: 12.5px; }
  .stat-item h3 { font-size: 36px; }
  .testi-card { padding: 20px 16px; }
}
/* About page hero background (moved from inline style) */
.about-hero {
  background-image: url('../images/about-hero (1).jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}