/* Modern Redesign CSS */

:root {
  --primary-color: #0287A9; 
  --primary-color-hover: #03a1ca;
  --secondary-teal: #e6f6f9;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--primary-color-hover);
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Sections General */
section {
  padding: 100px 0; /* Clear section separation using generous spacing */
}

/* Section Title */
.section-title {
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.section-title h2::before, .section-title h2::after {
  display: none; /* Remove old BootstrapMade pseudo elements for a cleaner look */
}
.section-title p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Top bar */
#topbar {
  background-color: var(--bg-light);
  border-bottom: 1px solid #f3f4f6;
  padding: 10px 0;
  height: auto;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
#topbar .contact-info i {
  color: var(--primary-color);
}
#topbar .contact-info a {
  color: var(--text-muted);
}
#topbar .contact-info a:hover {
  color: var(--primary-color);
}

/* Header */
#header {
  padding: 24px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
#header.header-scrolled {
  padding: 14px 0;
  box-shadow: var(--shadow-md);
}

.appointment-btn {
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  padding: 12px 32px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
}
.appointment-btn:hover {
  background-color: var(--primary-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Hero Section */
#hero {
  height: 100vh;
  min-height: 750px;
  background-position: center 30%;
  background-attachment: scroll; 
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0) 100%);
  z-index: 1;
}
#hero .container {
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 850px; /* Constrain width for max readability */
  margin-left: max(15px, calc((100vw - 1320px) / 2));
}
#hero h1 {
  font-size: 4.5rem;
  line-height: 1.15;
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 1.5rem;
  width: auto;
  height: auto;
  text-transform: none;
}
#hero h2 {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 3rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}
#hero .btn-get-started {
  background-color: var(--primary-color);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: inline-flex;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  align-self: flex-start; /* Align CTA button consistently */
}
#hero .btn-get-started:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   WHY US — Modern Pro Redesign
   ===================================================== */

/* ── Section wrapper ── */
.why-us {
  background: #f0f7fa;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid watermark behind the whole section */
.why-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(2,135,169,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.why-us .container {
  position: relative;
  z-index: 1;
}

/* ── LEFT PANEL — rich gradient card ── */
.why-us .content {
  background: linear-gradient(145deg, #015f78 0%, #0287A9 55%, #03b5d8 100%);
  border-radius: 24px;
  padding: 60px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2,135,169,.35);
}

/* Large decorative quote mark */
.why-us .content::before {
  content: "\201C";
  position: absolute;
  top: -30px;
  left: 30px;
  font-size: 220px;
  font-family: Georgia, serif;
  color: rgba(255,255,255,.08);
  line-height: 1;
  pointer-events: none;
}

/* Decorative circle blob bottom-right */
.why-us .content::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

.why-us .content h3 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  position: relative;
}

/* Teal underline accent on the heading */
.why-us .content h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.5);
  margin-top: 18px;
}

.why-us .content p {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 40px;
  position: relative;
}

/* CTA button — frosted glass style */
.why-us .content .more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: 0.01em;
  position: relative;
  text-decoration: none;
}

.why-us .content .more-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.why-us .content .more-btn:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.why-us .content .more-btn:hover i {
  transform: translateX(4px);
}

/* ── RIGHT PANEL — icon-boxes wrapper ── */
.why-us .icon-boxes {
  padding-left: 10px;
}

/* ── FEATURE CARDS ── */
.why-us .icon-boxes .icon-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(2,135,169,.10);
  box-shadow: 0 2px 12px rgba(2,135,169,.07);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

/* Top-left teal accent stripe */
.why-us .icon-boxes .icon-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #0287A9, #03d0f8);
  border-radius: 0 0 4px 0;
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}

.why-us .icon-boxes .icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(2,135,169,.16);
  border-color: rgba(2,135,169,.22);
}

.why-us .icon-boxes .icon-box:hover::before {
  height: 100%;
}

/* Large ordinal number watermark */
.why-us .icon-boxes .icon-box::after {
  content: attr(data-num);
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(2,135,169,.06);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s;
}

.why-us .icon-boxes .icon-box:hover::after {
  color: rgba(2,135,169,.10);
}

/* Icon bubble */
.why-us .icon-boxes .icon-box > i {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #e0f5fa 0%, #c4ecf6 100%);
  color: #0287A9;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(2,135,169,.15);
}

.why-us .icon-boxes .icon-box:hover > i {
  background: linear-gradient(135deg, #0287A9 0%, #03c4ec 100%);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(2,135,169,.35);
}

/* Card heading */
.why-us .icon-boxes .icon-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Card body text */
.why-us .icon-boxes .icon-box p {
  font-size: 0.97rem;
  color: #6b7280;
  line-height: 1.75;
  margin: 0;
  flex-grow: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 1199px) {
  .why-us .icon-boxes {
    padding-left: 0;
    margin-top: 32px;
  }
}

@media (max-width: 991px) {
  .why-us .content {
    padding: 48px 36px;
    margin-bottom: 32px;
    height: auto;
  }
  .why-us .content h3 {
    font-size: 1.75rem;
  }
  .why-us .icon-boxes .icon-box {
    margin-top: 0;
  }
}

@media (max-width: 575px) {
  .why-us .content {
    padding: 40px 28px;
  }
  .why-us .content h3 {
    font-size: 1.55rem;
  }
}

/* About Section */
.about .video-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 500px;
}
.about .video-box::before {
  border-radius: var(--radius-lg);
}
.about .icon-boxes {
  padding-left: 4rem !important; 
}
.about .icon-boxes h3 {
  font-size: 2.5rem;
}
.about .icon-box {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid #e5e7eb;
  transition: var(--transition);
  box-shadow: none;
}
.about .icon-box:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}
.about .icon-box .icon {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border: none;
  width: 60px;
  height: 60px;
}

/* Services */
.services .icon-box {
  background: var(--bg-white);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid #f3f4f6;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services .icon-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: #e5e7eb;
}
.services .icon-box .icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-teal);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.services .icon-box .icon i {
  color: var(--primary-color);
  font-size: 32px;
}
.services .icon-box h4 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.services .icon-box h4 a {
  color: var(--text-dark);
}
.services .icon-box h4 a:hover {
  color: var(--primary-color);
}
.services .icon-box p {
  margin-bottom: 0;
}

/* Appointment */
.appointment {
  background-color: var(--secondary-teal);
}
.appointment .php-email-form {
  background: var(--bg-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(2, 135, 169, 0.1);
}
.appointment .php-email-form input, .appointment .php-email-form select, .appointment .php-email-form textarea {
  border-radius: var(--radius-md);
  border: 1px solid #d1d5db;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}
.appointment .php-email-form input:focus, .appointment .php-email-form select:focus, .appointment .php-email-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(2, 135, 169, 0.1);
}
.appointment .php-email-form button[type="submit"] {
  background: var(--primary-color);
  border-radius: var(--radius-full);
  padding: 16px 48px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-size: 1.125rem;
}
.appointment .php-email-form button[type="submit"]:hover {
  background: var(--primary-color-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Departments */
.departments .nav-tabs {
  border: none;
}
.departments .nav-link {
  border: none;
  background: var(--bg-light);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 18px 24px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid #f3f4f6;
}
.departments .nav-link:hover {
  background: white;
  box-shadow: var(--shadow-sm);
}
.departments .nav-link.active {
  background: var(--primary-color);
  color: white;
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.departments .tab-pane {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #f3f4f6;
}
.departments .details h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.departments .details img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Doctors (Profile/About frame) */
.doctors .member {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
  border: 1px solid #f3f4f6;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.doctors .member:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.doctors .pic {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 24px;
  border: 4px solid var(--secondary-teal);
  box-shadow: var(--shadow-sm);
}
.doctors .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Testimonials */
.testimonials .testimonial-item {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
  margin: 20px 10px;
}
.testimonials .testimonial-item p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
}

/* FAQ Section */
.faq .faq-list {
  padding: 0;
}
.faq .faq-list ul {
  padding: 0;
  list-style: none;
}
.faq .faq-list li {
  padding: 24px 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #f3f4f6;
}
.faq .faq-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: #e5e7eb;
}
.faq .faq-list a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}
.faq .faq-list a:hover {
  color: var(--primary-color);
}
.faq .faq-list a.collapsed {
  color: var(--text-dark);
}
.faq .faq-list .icon-help {
  color: var(--primary-color);
  font-size: 1.5rem;
}
.faq .faq-list p {
  padding-top: 20px;
  font-size: 1.05rem;
}

/* Gallery */
.gallery .gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery .gallery-item:hover {
  box-shadow: var(--shadow-md);
}
.gallery .gallery-item img {
  transition: transform 0.5s ease;
}
.gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact Section */
.contact .info {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
}
.contact .info i {
  color: var(--primary-color);
  background: var(--secondary-teal);
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-full);
}
.contact .php-email-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
}
.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: var(--radius-md);
  border: 1px solid #d1d5db;
  padding: 14px;
}
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(2, 135, 169, 0.1);
}
.contact .php-email-form button[type="submit"] {
  background: var(--primary-color);
  border-radius: var(--radius-full);
  padding: 14px 40px;
  font-weight: 600;
}
.contact .php-email-form button[type="submit"]:hover {
  background: var(--primary-color-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer */
#footer {
  background: var(--bg-light);
  padding-top: 80px;
  color: var(--text-dark);
  border-top: 1px solid #e5e7eb;
}
#footer .footer-top {
  background: transparent;
  padding-bottom: 60px;
  border-bottom: 1px solid #e5e7eb;
}
#footer h4 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
#footer .footer-links ul a {
  color: var(--text-muted);
}
#footer .footer-links ul a:hover {
  color: var(--primary-color);
  padding-left: 5px; /* Visual hierarchy interaction */
}
#footer .footer-contact p {
  color: var(--text-muted);
  line-height: 1.8;
}
#footer .social-links a {
  background: var(--bg-white);
  color: var(--text-dark);
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#footer .social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.copyright {
  color: var(--text-muted);
}
.credits {
  color: #9ca3af;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  #hero h1 {
    font-size: 3rem;
  }
  #hero {
    min-height: 600px;
    height: auto;
    padding: 150px 0 100px 0;
  }
  .section-title h2 {
    font-size: 2.25rem;
  }
  .about .icon-boxes {
    padding-left: 15px !important;
  }
  #hero .container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
  }
  #hero .btn-get-started {
    align-self: center;
  }
}
