/* =========================================================
   healthserviceportal.com - Custom Styles
   ========================================================= */

:root {
  --brand: #0f9b8e;
  --brand-dark: #0a7d73;
  --brand-light: #e6f6f4;
  --brand-soft: #f0faf9;
  --primary: #0d6efd;
  --ink: #1f2d3d;
  --muted: #5b6b7b;
  --border: #e3ebef;
  --accent: #f4b942;
  --grad: linear-gradient(135deg, #0f9b8e 0%, #0a7d73 50%, #09635c 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 39, 62, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 39, 62, 0.14);
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- Typography helpers ---------- */
.section-pad { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 10px 0 14px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 16px;
  border-radius: 50px;
}
.lead-sub { color: var(--muted); }

.bg-soft { background: var(--brand-soft); }
.bg-deep {
  background: linear-gradient(135deg, #0a7d73 0%, #065a55 100%);
  color: #fff;
}
.text-brand { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(15, 155, 142, 0.25);
}
.btn-brand:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 155, 142, 0.35);
}
.btn-outline-brand {
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 50px;
  padding: 10px 26px;
  font-weight: 600;
  transition: all 0.25s ease;
  background: transparent;
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--brand-dark);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn-white:hover { transform: translateY(-2px); color: var(--brand-dark); }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
}
.navbar .navbar-brand span { color: var(--brand); }
.navbar-brand img.brand-logo { width: 40px; height: 40px; margin-right: 8px; }
.navbar .nav-link {
  font-weight: 500;
  color: var(--ink);
  margin: 0 6px;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 90px;
  background:
    linear-gradient(120deg, rgba(9, 99, 92, 0.94) 0%, rgba(15, 155, 142, 0.88) 60%, rgba(13, 110, 253, 0.55) 100%),
    url("../img/hero-banner.jpg") center/cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 50%);
}
.hero h1 {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
}
.hero p { font-size: 1.15rem; opacity: 0.95; max-width: 560px; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
}
.hero-stats { margin-top: 42px; }
.hero-stat { border-left: 3px solid var(--accent); padding-left: 16px; }
.hero-stat h3 { font-weight: 800; margin: 0; font-size: 1.9rem; }
.hero-stat span { opacity: 0.9; font-size: 0.9rem; }

/* ---------- Feature / icon boxes ---------- */
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand);
  border-radius: 16px; font-size: 1.7rem; margin-bottom: 18px;
}
.feature-card h5 { font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .card-img {
  height: 210px; width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .card-img { transform: scale(1.05); }
.service-card .card-img-wrap { overflow: hidden; }
.service-card .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card .card-title { font-weight: 700; font-size: 1.2rem; }
.service-card .card-text { color: var(--muted); font-size: 0.95rem; flex: 1; }
.service-card .btn-details {
  margin-top: 16px; align-self: flex-start;
  border-radius: 50px; padding: 9px 22px; font-weight: 600;
}

/* ---------- Why choose us ---------- */
.why-item { display: flex; gap: 18px; margin-bottom: 22px; }
.why-item .why-icon {
  flex: 0 0 52px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand);
  border-radius: 14px; font-size: 1.4rem;
  box-shadow: var(--shadow);
}
.why-item h6 { font-weight: 700; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.about-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.img-wrap { position: relative; }
.img-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--grad); color: #fff;
  padding: 18px 24px; border-radius: 16px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.img-badge h3 { font-weight: 800; margin: 0; font-size: 1.8rem; }
.img-badge span { opacity: 0.9; font-size: 0.85rem; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-card .quote {
  color: var(--muted); font-style: italic; font-size: 0.98rem; margin: 16px 0;
}
.stars { color: #f4b942; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.1rem;
}

/* ---------- Blog ---------- */
.blog-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); height: 100%;
  transition: all 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .card-img { height: 200px; object-fit: cover; width: 100%; }
.blog-card .card-body { padding: 22px; }
.blog-card h5 a { color: var(--ink); font-weight: 700; }
.blog-card h5 a:hover { color: var(--brand); }
.blog-card .card-text { color: var(--muted); font-size: 0.94rem; }
.blog-read-more { color: var(--brand); font-weight: 600; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: 12px !important; overflow: hidden; margin-bottom: 14px; }
.accordion-button { font-weight: 600; color: var(--ink); }
.accordion-button:not(.collapsed) {
  color: var(--brand-dark);
  background: var(--brand-light);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: var(--grad);
  color: #fff;
  border-radius: 24px;
  padding: 60px 50px;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cta h2 { font-weight: 800; }
.cta p { opacity: 0.95; }

/* ---------- Page header banner ---------- */
.page-header {
  padding: 130px 0 70px;
  background: linear-gradient(120deg, #0a7d73 0%, #0f9b8e 60%, #0d6efd 120%);
  color: #fff;
}
.page-header h1 { font-weight: 800; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,0.6); margin: 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-header .breadcrumb .active { color: #fff; }
.page-header .breadcrumb li { color: rgba(255,255,255,0.85); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border-color: var(--border);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(15, 155, 142, 0.15);
}
.form-label { font-weight: 600; font-size: 0.92rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.alert-success { border-radius: 12px; }
.subscribe-box {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 44px; border: 1px solid var(--border);
}
.icon-circle {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto;
}

/* ---------- Contact ---------- */
.contact-info-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow); height: 100%;
}
.contact-info-card .ci-icon {
  flex: 0 0 48px; width: 48px; height: 48px;
  background: var(--brand-light); color: var(--brand);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-info-card h6 { font-weight: 700; }
.contact-info-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.footer {
  background: #0b1b26;
  color: #b8c6cf;
}
.footer a { color: #b8c6cf; }
.footer a:hover { color: #fff; }
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 18px; }
.footer .f-links li { margin-bottom: 10px; }
.footer .f-links i { color: var(--brand); margin-right: 8px; font-size: 0.8rem; }
.footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); margin-right: 8px;
}
.footer .social a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }

/* ---------- Legal pages ---------- */
.legal-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.legal-card h3 { font-weight: 700; margin-top: 28px; margin-bottom: 12px; color: var(--brand-dark); }
.legal-card h3:first-of-type { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul { padding-left: 20px; }
.legal-card .updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Misc ---------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-lg);
}
.back-to-top.show { display: flex; }

.check-icon { color: var(--brand); font-weight: 800; }

@media (max-width: 991px) {
  .hero { padding: 110px 0 70px; }
  .hero h1 { font-size: 2.3rem; }
  .section-head h2 { font-size: 1.8rem; }
  .cta { padding: 40px 28px; }
  .img-badge { left: 12px; }
}

.blog-content {
  text-align: justify;
}