/* ==========================================================================
   Radhe Super Speciality Hospital - Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-navy: #162065;
  --primary-navy-dark: #0f1646;
  --primary-red: #d92323;
  --primary-red-hover: #b81b1b;
  --accent-gold: #d4af37;
  --accent-gold-light: #fff8e7;
  --accent-blue: #2563eb;
  --accent-teal: #0d9488;
  --bg-light: #f4f7fc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(22, 32, 101, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(22, 32, 101, 0.08), 0 8px 10px -6px rgba(22, 32, 101, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(22, 32, 101, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Flashing Top Announcement Bar */
.flashing-header-bar {
  background: linear-gradient(90deg, #d92323, #162065, #d92323);
  background-size: 200% 200%;
  color: #ffffff;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  animation: flash-bg 3s ease infinite, flash-glow 1.5s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(217, 35, 35, 0.4);
  position: relative;
  z-index: 1001;
}

.flashing-header-bar a {
  color: #fff;
  text-decoration: underline;
  margin-left: 0.25rem;
}

.flashing-header-bar a:hover {
  color: var(--accent-gold);
}

@keyframes flash-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes flash-glow {
  0% { box-shadow: 0 0 5px rgba(217, 35, 35, 0.6); }
  100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.9); }
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-red { color: var(--primary-red); }
.text-navy { color: var(--primary-navy); }
.text-gold { color: var(--accent-gold); }

.bg-navy { background-color: var(--primary-navy); color: white; }
.bg-red { background-color: var(--primary-red); color: white; }
.bg-white { background-color: white; }
.bg-light { background-color: var(--bg-light); }

.section-padding {
  padding: 4.5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.badge-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(217, 35, 35, 0.1);
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.badge-sub.navy {
  background-color: rgba(22, 32, 101, 0.1);
  color: var(--primary-navy);
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.75rem;
  }
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b81b1b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(217, 35, 35, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b81b1b 0%, #9e1414 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 35, 35, 0.45);
}

.btn-navy {
  background-color: var(--primary-navy);
  color: white;
  box-shadow: 0 4px 15px rgba(22, 32, 101, 0.3);
}

.btn-navy:hover {
  background-color: var(--primary-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 32, 101, 0.4);
}

.btn-outline-navy {
  background-color: transparent;
  border-color: var(--primary-navy);
  color: var(--primary-navy);
}

.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: white;
}

.btn-outline-white {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--primary-navy);
}

.btn-pulse {
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(217, 35, 35, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(217, 35, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 35, 35, 0); }
}

/* Header & Navigation */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: white;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.lang-btn.active {
  background-color: var(--primary-red);
  color: white;
}

.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.25rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* Mobile Drawer Navigation */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: white;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-header img {
  height: 45px;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--primary-red);
}

@media (max-width: 991px) {
  .nav-menu, .header-cta {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* Subpage Hero Banner */
.page-hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: white;
  padding: 4rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(217, 35, 35, 0.15) 0%, rgba(22, 32, 101, 0) 70%);
  pointer-events: none;
}

.page-hero-content h1 {
  color: white;
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: white;
}

.breadcrumb a:hover {
  color: var(--primary-red);
}

/* Hero Home Section */
.hero-home {
  position: relative;
  background: linear-gradient(rgba(15, 22, 70, 0.82), rgba(15, 22, 70, 0.90)), url('images/banner1.jpeg') center/cover no-repeat;
  color: white;
  padding: 5rem 0 6rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-text h1 {
  color: white;
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 576px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  text-align: center;
}

.stat-card .number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-card .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.3rem;
}

.hero-booking-card {
  background-color: white;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.hero-booking-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-booking-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(22, 32, 101, 0.15);
}

/* Quick Features Bar */
.quick-features-bar {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  border-left: 4px solid var(--primary-red);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(217, 35, 35, 0.1);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.feature-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cards & Layout Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 32, 101, 0.2);
}

.card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Doctors Section Styling */
.doctor-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.doctor-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top center;
  background-color: #f1f5f9;
}

.doctor-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doctor-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--primary-navy);
}

.doctor-qual {
  font-size: 0.825rem;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.doctor-dept {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

/* Chairman Section */
.chairman-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .chairman-card {
    grid-template-columns: 1fr;
  }
}

.chairman-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
}

.chairman-details {
  padding: 2.5rem;
}

.chairman-name {
  font-size: 2rem;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.chairman-title {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* Contact & Map Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: rgba(22, 32, 101, 0.08);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Appointment Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 22, 70, 0.7);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

/* Mobile Bottom Sticky Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 991px) {
  .mobile-bottom-bar {
    display: flex;
  }
}

.bottom-action-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.bottom-action-item i {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.bottom-action-item.call {
  background-color: var(--primary-red);
  color: white;
}

.bottom-action-item.book {
  background-color: var(--primary-navy);
  color: white;
}

/* Footer */
.footer {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-red);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 4000;
}

.toast {
  background-color: white;
  border-left: 5px solid var(--accent-teal);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  animation: slideInRight 0.3s forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
