/* Custom Styles for Mukisa Medical Clinic */
:root {
  --primary-color: #2c7be5;
  --secondary-color: #6c757d;
  --accent-color: #00d97e;
  --dark-color: #12263f;
  --light-color: #f9fbfd;
  --gradient-primary: linear-gradient(135deg, #2c7be5 0%, #0066cc 100%);
  --gradient-accent: linear-gradient(135deg, #00d97e 0%, #00b368 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light-color);
}

/* Top Bar Styles */
.top-bar {
  background: linear-gradient(135deg, #2c7be5 0%, #1a56db 100%) !important;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  transition: all 0.3s ease;
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.top-bar-contacts a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.top-bar-contacts a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
}

.top-bar-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.top-bar-actions a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
}

.top-bar-actions a.text-warning:hover {
  background: rgba(255, 193, 7, 0.2);
}

/* Responsive Top Bar */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.5rem 0 !important;
  }

  .top-bar .container {
    padding: 0 1rem;
  }

  .top-bar-contacts,
  .top-bar-actions {
    text-align: center;
    margin-bottom: 0.25rem;
  }

  .top-bar-contacts a,
  .top-bar-actions a {
    margin: 0.25rem;
    font-size: 0.8rem;
  }

  .top-bar .row {
    flex-direction: column;
  }

  .top-bar .col-md-6 {
    width: 100%;
  }
}

/* Adjust navbar position when top bar is present */
.navbar.sticky-top {
  top: 0;
}

/* Smooth transition for top bar */
.top-bar {
  transition: all 0.3s ease;
}

/* Optional: Hide top bar on scroll (uncomment if desired) */
/*
.top-bar.hidden {
    transform: translateY(-100%);
}
*/
/* Sticky Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-weight: 700;
  color: var(--dark-color) !important;
  font-size: 1.5rem;
}

.clinic-logo {
  width: 40px;
  height: 40px;
  /* background: var(--gradient-primary); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
}
/* Logo Image Styling */
.clinic-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 8px; /* remove if you don't want rounded edges */
}

@media (max-width: 768px) {
  .clinic-logo-img {
    height: 40px;
  }
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--dark-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0 0.25rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(44, 123, 229, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80")
    center/cover;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-image {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(44, 123, 229, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Services Section */
.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-accent);
}

.card-title {
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.about-image {
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section ul li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
}

.about-section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Testimonials */
.testimonial-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: white;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 6rem;
  color: rgba(44, 123, 229, 0.1);
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-author {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
}

.testimonial-author strong {
  color: var(--dark-color);
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--dark-color) !important;
  color: white;
}

footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer .bi {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Section Spacing */
section {
  padding: 5rem 0;
}

section.bg-light {
  background-color: var(--light-color) !important;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Additional Styles for Services and Contact Pages */

/* Service Detail Cards */
.service-detail-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-detail-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon-large {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-detail-card:hover .service-icon-large {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-accent);
}

.service-features ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.service-features ul li:last-child {
  border-bottom: none;
}

/* Statistics */
.stat-card {
  padding: 2rem 1rem;
}

.stat-card h3 {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form-card {
  border-radius: 20px;
  border: none;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 123, 229, 0.25);
}

/* Contact Info Cards */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-details h5 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Map Card */
.map-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .service-icon-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .contact-info-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .stat-card {
    padding: 1.5rem 0.5rem;
  }
}

/* Form Success/Error States */
.alert {
  border-radius: 15px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background: var(--gradient-accent);
  color: white;
}

.alert-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}
