/* ==========================================================================
   Health Pilot Care — Main Stylesheet
   Palette: clean clinical (blue / teal)
   ========================================================================== */

:root {
  --hpc-primary: #0b6fa4;
  --hpc-primary-dark: #06527a;
  --hpc-primary-light: #e8f4fb;
  --hpc-teal: #0e8a7d;
  --hpc-teal-light: #e6f6f4;
  --hpc-dark: #10243a;
  --hpc-body: #5a6b7d;
  --hpc-muted: #8494a4;
  --hpc-border: #e3eaf1;
  --hpc-bg-soft: #f5f9fc;
  --hpc-radius: 14px;
  --hpc-radius-lg: 20px;
  --hpc-shadow-sm: 0 4px 16px rgba(16, 36, 58, .06);
  --hpc-shadow: 0 10px 34px rgba(16, 36, 58, .09);
  --hpc-shadow-lg: 0 20px 55px rgba(16, 36, 58, .13);
  --hpc-transition: all .3s ease;
}

/* ---------- Base ---------- */
* { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--hpc-body);
  font-size: 1rem;
  line-height: 1.75;
  background: #fff;
}

/* Bootstrap's larger gutters (g-5 = 24px negative margin) exceed the default
   12px container padding on narrow screens, causing horizontal overflow.
   Step the gutter down below the lg breakpoint. */
@media (max-width: 991.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--hpc-dark);
  font-weight: 700;
  line-height: 1.28;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

a { color: var(--hpc-primary); text-decoration: none; transition: var(--hpc-transition); }
a:hover { color: var(--hpc-primary-dark); }

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

.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }
.bg-soft { background-color: var(--hpc-bg-soft); }

::selection { background: var(--hpc-primary); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 50px;
  font-weight: 600;
  padding: .72rem 1.75rem;
  transition: var(--hpc-transition);
  border-width: 2px;
}

.btn-hpc-primary {
  background: var(--hpc-primary);
  border-color: var(--hpc-primary);
  color: #fff;
}
.btn-hpc-primary:hover,
.btn-hpc-primary:focus {
  background: var(--hpc-primary-dark);
  border-color: var(--hpc-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 111, 164, .28);
}

.btn-hpc-outline {
  background: transparent;
  border-color: var(--hpc-primary);
  color: var(--hpc-primary);
}
.btn-hpc-outline:hover,
.btn-hpc-outline:focus {
  background: var(--hpc-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-hpc-light {
  background: #fff;
  border-color: #fff;
  color: var(--hpc-primary);
}
.btn-hpc-light:hover,
.btn-hpc-light:focus {
  background: var(--hpc-primary-light);
  border-color: var(--hpc-primary-light);
  color: var(--hpc-primary-dark);
  transform: translateY(-2px);
}

.btn-hpc-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
}
.btn-hpc-ghost-light:hover,
.btn-hpc-ghost-light:focus {
  background: #fff;
  border-color: #fff;
  color: var(--hpc-primary);
}

/* ---------- Section heading ---------- */
.section-tag {
  display: inline-block;
  background: var(--hpc-teal-light);
  color: var(--hpc-teal);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title { margin-bottom: 1rem; }

.section-subtitle {
  color: var(--hpc-body);
  max-width: 680px;
  margin-bottom: 0;
}
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--hpc-dark);
  color: #c3d2e0;
  font-size: .875rem;
  padding: .55rem 0;
}
.topbar a { color: #c3d2e0; }
.topbar a:hover { color: #fff; }
.topbar .topbar-item + .topbar-item { margin-left: 1.5rem; }
.topbar .social-link {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  margin-left: .35rem;
}
.topbar .social-link:hover { background: var(--hpc-primary); color: #fff; }

/* ---------- Navbar ---------- */
.navbar-hpc {
  background: #fff;
  box-shadow: var(--hpc-shadow-sm);
  padding: .85rem 0;
  transition: var(--hpc-transition);
}
.navbar-hpc.is-stuck {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  box-shadow: var(--hpc-shadow);
  animation: hpcSlideDown .35s ease;
}
@keyframes hpcSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hpc-primary), var(--hpc-teal));
  color: #fff;
  flex: 0 0 auto;
}
.brand-text { line-height: 1.1; }
.brand-text strong {
  display: block;
  font-size: 1.2rem;
  color: var(--hpc-dark);
  font-weight: 800;
  letter-spacing: -.3px;
}
.brand-text span {
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hpc-muted);
}

.navbar-hpc .nav-link {
  color: var(--hpc-dark);
  font-weight: 600;
  padding: .55rem 0 !important;
  margin: 0 .85rem;
  position: relative;
}
/* underline uses ::after on plain links and ::before on dropdown toggles,
   so Bootstrap's caret (::after on .dropdown-toggle) is left intact */
.navbar-hpc .nav-link:not(.dropdown-toggle)::after,
.navbar-hpc .nav-link.dropdown-toggle::before {
  content: "";
  position: absolute;
  left: 0; bottom: .15rem;
  width: 0; height: 2px;
  background: var(--hpc-primary);
  transition: width .3s ease;
}
.navbar-hpc .nav-link.dropdown-toggle::after {
  vertical-align: .15em;
  margin-left: .4em;
}
.navbar-hpc .nav-link:hover,
.navbar-hpc .nav-link.active { color: var(--hpc-primary); }
.navbar-hpc .nav-link:not(.dropdown-toggle):hover::after,
.navbar-hpc .nav-link:not(.dropdown-toggle).active::after,
.navbar-hpc .nav-link.dropdown-toggle:hover::before,
.navbar-hpc .nav-link.dropdown-toggle.active::before { width: 100%; }

.navbar-hpc .dropdown-menu {
  border: 0;
  border-radius: var(--hpc-radius);
  box-shadow: var(--hpc-shadow);
  padding: .6rem;
  margin-top: .6rem;
  min-width: 260px;
}
.navbar-hpc .dropdown-item {
  border-radius: 8px;
  padding: .55rem .85rem;
  font-weight: 500;
  color: var(--hpc-body);
}
.navbar-hpc .dropdown-item:hover,
.navbar-hpc .dropdown-item.active {
  background: var(--hpc-primary-light);
  color: var(--hpc-primary);
}
.navbar-toggler { border: 0; padding: .25rem .4rem; }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .navbar-hpc .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid var(--hpc-border);
    padding-top: .75rem;
    max-height: 75vh;
    overflow-y: auto;
  }
  .navbar-hpc .nav-link { margin: 0; padding: .6rem 0 !important; }
  .navbar-hpc .nav-link::after { display: none; }
  .navbar-hpc .dropdown-menu { box-shadow: none; padding-left: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--hpc-primary-light) 0%, #ffffff 55%, var(--hpc-teal-light) 100%);
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px;
  background: rgba(11, 111, 164, .07);
  top: -170px; right: -120px;
}
.hero::after {
  width: 320px; height: 320px;
  background: rgba(14, 138, 125, .07);
  bottom: -150px; left: -110px;
}
.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--hpc-border);
  color: var(--hpc-primary);
  font-weight: 600;
  font-size: .86rem;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  box-shadow: var(--hpc-shadow-sm);
  margin-bottom: 1.35rem;
}
.hero-lead { font-size: 1.1rem; max-width: 560px; }

.hero-image-wrap { position: relative; }
.hero-image-wrap img {
  border-radius: var(--hpc-radius-lg);
  box-shadow: var(--hpc-shadow-lg);
  width: 100%;
}
.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--hpc-radius);
  box-shadow: var(--hpc-shadow);
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-float-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hpc-primary-light);
  color: var(--hpc-primary);
  flex: 0 0 auto;
}
.hero-float-card strong { display: block; color: var(--hpc-dark); font-size: 1.05rem; line-height: 1.2; }
.hero-float-card small { color: var(--hpc-muted); font-size: .78rem; }
.hero-float-1 { bottom: 26px; left: -18px; }
.hero-float-2 { top: 26px; right: -14px; }

@media (max-width: 991.98px) {
  .hero { padding: 60px 0 70px; }
  .hero-float-1 { left: 8px; }
  .hero-float-2 { right: 8px; }
}
@media (max-width: 575.98px) {
  .hero-float-card { display: none; }
}

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  background: linear-gradient(120deg, var(--hpc-dark) 0%, #16456b 60%, var(--hpc-primary) 100%);
  color: #fff;
  padding: 70px 0;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%;
  top: -160px; right: -100px;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: .6rem; }
.page-banner p { color: rgba(255, 255, 255, .82); max-width: 640px; margin: 0 auto; }
.page-banner .breadcrumb { justify-content: center; margin: .85rem 0 0; }
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.page-banner .breadcrumb-item a:hover { color: #fff; }
.page-banner .breadcrumb-item.active { color: #fff; font-weight: 600; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- Feature / Why choose ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: var(--hpc-transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hpc-shadow);
  border-color: transparent;
}
.feature-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hpc-primary-light);
  color: var(--hpc-primary);
  margin-bottom: 1.1rem;
}
.feature-card:nth-child(even) .feature-icon,
.feature-icon.teal { background: var(--hpc-teal-light); color: var(--hpc-teal); }
.feature-card h3 { font-size: 1.16rem; margin-bottom: .55rem; }
.feature-card p { margin-bottom: 0; font-size: .96rem; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .7rem;
  font-weight: 500;
  color: var(--hpc-dark);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--hpc-teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230e8a7d'%3E%3Cpath d='M13.485 1.929a1 1 0 0 1 .086 1.411l-7 8a1 1 0 0 1-1.464.052l-3-3a1 1 0 1 1 1.414-1.414l2.243 2.243 6.31-7.21a1 1 0 0 1 1.411-.082z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Stats ---------- */
.stat-box { text-align: center; padding: 1.25rem .5rem; }
.stat-box .stat-number {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--hpc-primary);
  line-height: 1;
  display: block;
}
.stat-box .stat-label {
  display: block;
  margin-top: .5rem;
  font-size: .92rem;
  color: var(--hpc-body);
  font-weight: 500;
}

/* ---------- Service card ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--hpc-transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hpc-shadow);
  border-color: transparent;
}
.service-card-img {
  position: relative;
  overflow: hidden;
  background: var(--hpc-bg-soft);
  aspect-ratio: 10 / 7;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.service-card-body h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.service-card-body p { font-size: .96rem; margin-bottom: 1.35rem; }
.service-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: var(--hpc-transition);
}
.testimonial-card:hover { box-shadow: var(--hpc-shadow); transform: translateY(-5px); border-color: transparent; }
.testimonial-quote { color: var(--hpc-primary); opacity: .18; margin-bottom: .5rem; }
.testimonial-stars { color: #f5a623; margin-bottom: .9rem; letter-spacing: 2px; }
.testimonial-text { font-size: .99rem; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: .9rem; }
.testimonial-author img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--hpc-bg-soft);
}
.testimonial-author strong { display: block; color: var(--hpc-dark); font-size: 1rem; }
.testimonial-author small { color: var(--hpc-muted); }

/* ---------- Blog card ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--hpc-transition);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--hpc-shadow); border-color: transparent; }
.blog-card-img { overflow: hidden; aspect-ratio: 10 / 6.5; background: var(--hpc-bg-soft); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.blog-card-body h3 a { color: var(--hpc-dark); }
.blog-card-body h3 a:hover { color: var(--hpc-primary); }
.blog-card-body p { font-size: .95rem; margin-bottom: 1.25rem; }
.blog-read-more {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.blog-read-more svg { transition: transform .3s ease; }
.blog-read-more:hover svg { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--hpc-dark);
  background: #fff;
  padding: 1.15rem 1.35rem;
  font-size: 1.03rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--hpc-primary-light);
  color: var(--hpc-primary);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230b6fa4'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.faq-accordion .accordion-body { padding: 0 1.35rem 1.35rem; font-size: .97rem; }

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  background: linear-gradient(120deg, var(--hpc-primary) 0%, #0a7f92 55%, var(--hpc-teal) 100%);
  color: #fff;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  top: -200px; left: -120px;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255, 255, 255, .88); }
.cta-image img { border-radius: var(--hpc-radius-lg); box-shadow: var(--hpc-shadow-lg); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; color: var(--hpc-dark); font-size: .93rem; margin-bottom: .4rem; }
.form-label .req { color: #d9534f; }
.form-control, .form-select {
  border: 1px solid var(--hpc-border);
  border-radius: 10px;
  padding: .72rem 1rem;
  font-size: .97rem;
  color: var(--hpc-dark);
  background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--hpc-primary);
  box-shadow: 0 0 0 .2rem rgba(11, 111, 164, .12);
}
.form-control::placeholder { color: #a9b6c3; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-check-input:checked { background-color: var(--hpc-primary); border-color: var(--hpc-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(11, 111, 164, .12); }
.form-check-label { font-size: .93rem; }
.invalid-feedback { font-size: .84rem; }
.was-validated .form-control:invalid, .form-control.is-invalid,
.was-validated .form-select:invalid, .form-select.is-invalid { border-color: #d9534f; }

.form-card {
  background: #fff;
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius-lg);
  padding: 2.4rem;
  box-shadow: var(--hpc-shadow-sm);
}
@media (max-width: 575.98px) { .form-card { padding: 1.5rem; } }

.form-alert { border-radius: 10px; font-size: .95rem; border: 0; }
.form-alert.alert-success { background: var(--hpc-teal-light); color: #0b6b60; }
.form-alert.alert-danger { background: #fdeaea; color: #a33b38; }

/* ---------- Contact info ---------- */
.contact-info-card {
  background: #fff;
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  padding: 1.85rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: var(--hpc-transition);
}
.contact-info-card:hover { transform: translateY(-6px); box-shadow: var(--hpc-shadow); border-color: transparent; }
.contact-info-card .icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hpc-primary-light);
  color: var(--hpc-primary);
  margin-bottom: 1rem;
}
.contact-info-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.contact-info-card p, .contact-info-card a { font-size: .96rem; margin-bottom: 0; color: var(--hpc-body); }
.contact-info-card a:hover { color: var(--hpc-primary); }

.map-wrap {
  border-radius: var(--hpc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hpc-border);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Legal / article content ---------- */
.legal-content { font-size: 1rem; }
.legal-content h2 { font-size: 1.5rem; margin: 2.4rem 0 .9rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin: 1.7rem 0 .7rem; }
.legal-content p, .legal-content li { color: var(--hpc-body); }
.legal-content ul, .legal-content ol { padding-left: 1.3rem; margin-bottom: 1.15rem; }
.legal-content li { margin-bottom: .5rem; }
.legal-content a { text-decoration: underline; }

.legal-meta {
  background: var(--hpc-primary-light);
  border-left: 4px solid var(--hpc-primary);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: .94rem;
  margin-bottom: 2.2rem;
}
.legal-meta p { margin-bottom: 0; }

.toc-card {
  background: var(--hpc-bg-soft);
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}
.toc-card h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.toc-card ul { list-style: none; padding: 0; margin: 0; }
.toc-card li { margin-bottom: .55rem; }
.toc-card a { font-size: .93rem; color: var(--hpc-body); font-weight: 500; }
.toc-card a:hover { color: var(--hpc-primary); }

/* ---------- Sidebar ---------- */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--hpc-border);
  border-radius: var(--hpc-radius);
  padding: 1.6rem;
  margin-bottom: 1.75rem;
}
.sidebar-widget h4 { font-size: 1.1rem; margin-bottom: 1.15rem; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget li + li { margin-top: .65rem; }
.sidebar-widget li a { color: var(--hpc-body); font-weight: 500; font-size: .95rem; }
.sidebar-widget li a:hover { color: var(--hpc-primary); }

.mini-post { display: flex; gap: .85rem; align-items: flex-start; }
.mini-post + .mini-post { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--hpc-border); }
.mini-post img { width: 78px; height: 62px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--hpc-bg-soft); }
.mini-post h5 { font-size: .95rem; margin: 0; line-height: 1.45; }
.mini-post h5 a { color: var(--hpc-dark); }
.mini-post h5 a:hover { color: var(--hpc-primary); }

/* ---------- Newsletter panel ---------- */
.newsletter-panel {
  background: linear-gradient(120deg, var(--hpc-primary) 0%, var(--hpc-teal) 100%);
  border-radius: var(--hpc-radius-lg);
  color: #fff;
  padding: 2.75rem;
}
.newsletter-panel h2, .newsletter-panel h3 { color: #fff; }
.newsletter-panel p { color: rgba(255, 255, 255, .88); }
@media (max-width: 575.98px) { .newsletter-panel { padding: 1.75rem; } }

.benefit-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.35rem; }
.benefit-item .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hpc-primary-light);
  color: var(--hpc-primary);
  flex: 0 0 auto;
}
.benefit-item h4 { font-size: 1.03rem; margin-bottom: .2rem; }
.benefit-item p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--hpc-dark);
  color: #a9bccd;
  padding-top: 70px;
}
.footer h4 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: .7rem;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  border-radius: 3px;
  background: var(--hpc-teal);
}
.footer p { font-size: .95rem; }
.footer .navbar-brand { margin-bottom: 1.1rem; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: #7f95a9; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #a9bccd; font-size: .95rem; }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; font-size: .95rem; }
.footer-contact li svg { flex: 0 0 auto; margin-top: .3rem; color: var(--hpc-teal); }
.footer-contact a { color: #a9bccd; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.35rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.footer-social a:hover { background: var(--hpc-primary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 55px;
  padding: 1.4rem 0;
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { color: #a9bccd; }
.footer-bottom a:hover { color: #fff; }

.disclaimer-strip {
  background: #0a1a2b;
  color: #7f95a9;
  font-size: .82rem;
  padding: 1rem 0;
  line-height: 1.6;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--hpc-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--hpc-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--hpc-transition);
  z-index: 1040;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--hpc-primary-dark); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.text-hpc-primary { color: var(--hpc-primary) !important; }
.text-hpc-teal { color: var(--hpc-teal) !important; }
.bg-hpc-primary { background-color: var(--hpc-primary) !important; }
.rounded-hpc { border-radius: var(--hpc-radius-lg) !important; }
.shadow-hpc { box-shadow: var(--hpc-shadow) !important; }
.fw-600 { font-weight: 600 !important; }
.lh-lg2 { line-height: 1.9 !important; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hpc-primary);
  color: #fff;
  padding: .7rem 1.2rem;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }


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