:root {
  --primary: #0575e6;
  --primary-dark: #045cb5;
  --navy: #102a43;
  --muted: #627d98;
  --light: #f4f9ff;
  --border: #d9e8f7;
}

body {
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--primary);
}

.navbar-brand {
  color: var(--primary) !important;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.navbar {
  box-shadow: 0 2px 18px rgba(16, 42, 67, .08);
}

.nav-link {
  color: #334e68;
  font-weight: 600;
}

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

.hero {
  background:
    linear-gradient(90deg, rgba(3, 73, 145, .96) 0%, rgba(5, 117, 230, .88) 48%, rgba(3, 68, 133, .62) 100%),
    url("../images/senior-couple-hero.png") center 42% / cover no-repeat;
  color: #fff;
  padding: 6.5rem 0 5.5rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.hero .lead {
  color: rgba(255, 255, 255, .9);
  max-width: 680px;
}

.hero-panel {
  background: rgba(5, 66, 127, .48);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 1.5rem;
  backdrop-filter: blur(10px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-light {
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-contact {
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: #fff;
  font-weight: 750;
  padding: .7rem 1.35rem;
}

.btn-contact:hover,
.btn-contact:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.section-label {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.topic-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.topic-card:hover {
  box-shadow: 0 1rem 2.5rem rgba(5, 117, 230, .12);
  transform: translateY(-5px);
}

.topic-icon,
.feature-icon {
  align-items: center;
  background: rgba(5, 117, 230, .1);
  border-radius: 1rem;
  color: var(--primary);
  display: inline-flex;
  font-size: 1.5rem;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.topic-card h3 {
  font-size: 1.25rem;
  font-weight: 750;
}

.topic-image {
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  width: 100%;
}

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

.soft-section {
  background: var(--light);
}

.about-home {
  border-top: 1px solid var(--border);
}

.about-home-visual {
  border-radius: 1.5rem;
  box-shadow: 0 1.25rem 3rem rgba(16, 42, 67, .14);
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.about-home-visual img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 68% center;
  position: absolute;
  width: 100%;
}

.about-home-visual::after {
  background: linear-gradient(180deg, transparent 50%, rgba(4, 54, 104, .72));
  content: "";
  inset: 0;
  position: absolute;
}

.about-home-badge {
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  bottom: 1.5rem;
  color: var(--navy);
  display: flex;
  font-weight: 750;
  gap: .75rem;
  left: 1.5rem;
  padding: .9rem 1.1rem;
  position: absolute;
  right: 1.5rem;
  z-index: 1;
}

.about-home-badge i {
  color: var(--primary);
  font-size: 1.25rem;
}

.about-value {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem;
}

.about-value i {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: .5rem;
}

.about-value span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  margin-top: .25rem;
}

.transparency-section {
  background: #eef5f1;
}

.transparency-card {
  max-width: 1040px;
}

.transparency-icon {
  align-items: center;
  border: 2px solid rgba(5, 117, 230, .2);
  border-radius: 50%;
  color: var(--primary);
  display: inline-flex;
  font-size: 2.25rem;
  height: 5rem;
  justify-content: center;
  width: 5rem;
}

.transparency-lead {
  color: #3f5568;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.8;
  margin: 1.25rem auto 2rem;
  max-width: 820px;
}

.transparency-point {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(5, 117, 230, .12);
  border-radius: 1rem;
  display: flex;
  gap: .9rem;
  height: 100%;
  padding: 1.2rem;
}

.transparency-point > i {
  color: var(--primary);
  flex: 0 0 auto;
  font-size: 1.4rem;
}

.transparency-point strong,
.transparency-point span {
  display: block;
}

.transparency-point span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
  margin-top: .35rem;
}

.ad-slot {
  align-items: center;
  background: #fafafa;
  border: 1px dashed #b8c8d8;
  color: #7b8794;
  display: flex;
  font-size: .78rem;
  justify-content: center;
  min-height: 110px;
  text-align: center;
}

.article-header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 3.5rem;
}

.article-header h1 {
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.article-body {
  font-size: 1.06rem;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2.75rem 0 1rem;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 750;
  margin: 1.8rem 0 .75rem;
}

.article-body li {
  margin-bottom: .65rem;
}

.info-box {
  background: #eef7ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 .8rem .8rem 0;
  padding: 1.25rem 1.4rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 1.8rem;
  position: relative;
}

.check-list li::before {
  color: var(--primary);
  content: "\F26E";
  font-family: "bootstrap-icons";
  left: 0;
  position: absolute;
}

.sidebar-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  position: sticky;
  top: 6rem;
}

.legal-page {
  max-width: 880px;
}

.legal-page h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.5rem;
}

.contact-page {
  background: var(--light);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 2.5rem rgba(16, 42, 67, .08);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.contact-detail {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.contact-detail-icon {
  align-items: center;
  background: rgba(5, 117, 230, .1);
  border-radius: .9rem;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.contact-form .form-control {
  border-color: var(--border);
  border-radius: .8rem;
  min-height: 3.4rem;
}

.contact-form textarea.form-control {
  min-height: 150px;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(5, 117, 230, .12);
}

footer {
  background: #0d2538;
  color: #d9e2ec;
}

footer a {
  color: #d9e2ec;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.cookie-banner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  bottom: 1rem;
  box-shadow: 0 1rem 3rem rgba(16, 42, 67, .2);
  display: none;
  left: 50%;
  max-width: 850px;
  padding: 1.25rem;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 1080;
}

.cookie-banner.show {
  display: block;
}

@media (max-width: 991.98px) {
  .navbar-collapse .btn-contact {
    margin-top: .5rem;
    text-align: center;
    width: 100%;
  }

  .hero {
    background-position: 62% center;
    padding: 4.5rem 0;
  }

  .about-home-visual {
    min-height: 420px;
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .navbar > .container {
    gap: .5rem;
  }

  .navbar > .container > .d-flex .btn {
    font-size: .78rem;
    padding: .55rem .7rem;
  }
}
