/* ==========================================================================
   Global Healthy Networks (healcareworld.com) - Custom Stylesheet
   Modern, Medical & Healthcare Theme
   ========================================================================== */

:root {
  --primary-color: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --secondary-color: #0d9488;
  --secondary-dark: #0f766e;
  --secondary-light: #ccfbf1;
  --accent-color: #06b6d4;
  --dark-color: #0f172a;
  --dark-light: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-subtle: #f1f5f9;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --box-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --box-shadow-hover: 0 20px 30px -10px rgba(2, 132, 199, 0.18), 0 10px 15px -3px rgba(15, 23, 42, 0.06);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 14px;
}

/* Base & Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  color: #ffffff;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.7rem 1.65rem;
  border-radius: 8px;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

.btn-secondary {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #0f766e;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Top Announcement / Contact Bar */
.top-bar {
  background-color: var(--dark-color);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #cbd5e1;
}

.top-bar a:hover {
  color: #38bdf8;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}

.navbar-brand img {
  width: 250px;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--dark-color);
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--dark-color);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-img-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
}

.hero-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stats-strip {
  background: #ffffff;
  padding: 1.75rem 2rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  margin-top: 3rem;
  border: 1px solid var(--border-color);
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Common */
.section-padding {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Service Card Specification:
   - col-lg-4 grid
   - card with image, title, description, button "Get More Details"
   - STRICT: NO service tag
   - STRICT: NO icon in service card
*/
.service-card {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: #ffffff;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-hover);
  border-color: #bae6fd;
}

.service-card .service-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.service-card .service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-card .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card .card-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.85rem;
}

.service-card .card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card .btn-service-details {
  width: 100%;
  text-align: center;
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.service-card .btn-service-details:hover {
  background: #0369a1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Why Choose Us Cards */
.feature-box {
  background: #ffffff;
  padding: 2.25rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
  border-color: #bae6fd;
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Testimonials */
.testimonial-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-rating {
  color: #f59e0b;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0f2fe;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark-color);
  margin-bottom: 2px;
}

.testimonial-service {
  font-size: 0.82rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* FAQ Accordion */
.custom-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
}

.custom-accordion .accordion-button {
  font-weight: 700;
  color: var(--dark-color);
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  font-size: 1.05rem;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: #f0f9ff;
  box-shadow: none;
}

.custom-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: #bae6fd;
}

.custom-accordion .accordion-body {
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0d9488 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
}

.btn-cta-white {
  background: #ffffff;
  color: #0284c7;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.btn-cta-white:hover {
  background: #f8fafc;
  color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-weight: 700;
  padding: 0.8rem 1.85rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Page Header (Inner Pages) */
.page-header {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.breadcrumb {
  justify-content: center;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: #38bdf8;
}

.breadcrumb-item.active {
  color: #94a3b8;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #64748b;
}

/* Contact Page Specifics (THE ONLY PAGE WITH LOCATION) */
.contact-info-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--box-shadow-sm);
  height: 100%;
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.75rem;
}

.contact-meta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-meta-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.4;
}

.contact-meta-val a {
  color: var(--dark-color);
}

.contact-meta-val a:hover {
  color: var(--primary-color);
}

.map-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-sm);
}

/* Form Styles */
.form-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-feedback-card {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

/* Legal Content (Privacy & Terms) */
.legal-content {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: var(--box-shadow-sm);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.legal-content p, .legal-content li {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 0.98rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Newsletter Pages */
.newsletter-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: var(--box-shadow);
}

.topic-badge-checkbox {
  position: relative;
  margin-bottom: 0.5rem;
}

.topic-badge-checkbox input {
  display: none;
}

.topic-badge-checkbox label {
  display: block;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
  background: #ffffff;
}

.topic-badge-checkbox input:checked + label {
  border-color: var(--primary-color);
  background: #f0f9ff;
  color: var(--primary-color);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Service filter pills on Services page */
.filter-btn {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  margin: 0.25rem;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .section-padding {
    padding: 3.5rem 0;
  }
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
  .form-card, .legal-content, .newsletter-card {
    padding: 1.75rem;
  }
}
