html, body {
  font-family: var(--font-sans, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

a:hover {
  text-decoration: underline;
}

.containerblog h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 0.5rem;
}

.containerblog {
  position: relative;
  border: 3px solid darkslategray;
  padding: 5%;
  background-image: url("./assets/img/20220304_122226.jpg");
  background-size: cover;
  background-position: center;
  font-weight: 500;
  color: #fff;
  z-index: 1;
  border-radius: 10px;
}

.containerblog p, .containerblog li {
  color: #f8f9fa;
}

.containerblog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
  border-radius: inherit;
}

/* .container sizing is handled by Bootstrap (do not override globally). */

.card-section {
  padding-bottom: 1rem;
}

.card {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-body {
  margin-bottom: 1rem;
}

.link-container {
  text-align: center;
}

.service-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--brand-gold);
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  margin: 5px;
  box-shadow: var(--shadow-sm);
}

.service-link:hover {
  background-color: #dcae3f;
}

.card-title {
  font-size: 1.25rem;
}

.card-text {
  font-size: 1rem;
}

.btn {
  margin-right: 0.5rem;
}

/* Avoid layout shift/overflow on touch devices; apply hover effects only when appropriate */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 184, 77, 0.75);
  }
}

.user-input {
  border: 1px solid rgba(232, 184, 77, 0.75);
  border-radius: 8px;
  padding: 6px 8px;
  margin: 5px;
}

/* Global header text color now comes from the design system.
   (Old dark hero styles removed; use .hero in components.css) */

header.bg-light {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

header img {
  border: 3px solid var(--color-border);
}

.service-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: none;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#aside h2 {
  font-size: 1.5rem;
  line-height: 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  #aside {
    order: 2;
    padding: 0.5rem;
  }
  
  .service-link {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .card, .card-body {
    margin-bottom: 0;
  }

  /* Buttons: avoid cramped spacing/wrapping issues on small screens (e.g., iPhone 7) */
  .btn {
    margin-right: 0 !important;
  }
  .display-5, .display-4 {
    font-size: 2rem;
  }
  header img {
    max-width: 120px !important;
  }
}

/* Home hero avatar video */
.hero-intro-mark {
  color: var(--brand-gold);
  letter-spacing: 0.14em;
}

.hero-actions {
  align-items: center;
}

.hero-media-shell {
  position: relative;
  width: min(100%, 340px);
  padding: 1rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(11, 15, 25, 0.96));
  border: 1px solid rgba(232, 184, 77, 0.18);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
}

.hero-media-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 35%),
    radial-gradient(circle at bottom left, rgba(232, 184, 77, 0.14), transparent 42%);
  pointer-events: none;
}

.hero-media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(232, 184, 77, 0.25);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-avatar {
  --bs-aspect-ratio: 133.33%; /* 3:4 — portrait but not extreme */
  width: 100%;
  position: relative;
  z-index: 1;
  max-height: 380px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-avatar {
    max-width: 280px;
    max-height: 360px;
  }
}

.hero-avatar__video {
  object-fit: cover;
  background: #050816;
  border: 1px solid rgba(232, 184, 77, 0.24);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-media-note {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-media-note__title {
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-media-note__meta {
  display: grid;
  gap: 0.35rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 767.98px) {
  .hero-media-shell {
    width: min(100%, 220px);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero-media-shell {
    padding: 0.75rem;
    border-radius: 22px;
  }

  .hero-media-badge {
    top: 10px;
    left: 10px;
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
  }

  .hero-media-note {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero-media-shell {
    width: min(100%, 300px);
    transform: translateY(-8px);
  }
}

.start-here-card--accent {
  border-color: rgba(232, 184, 77, 0.5) !important;
}

.faq-accordion {
  margin: 0 auto;
  max-width: 900px;
}

.contact-main {
  max-width: 980px;
}

.decision-guide {
  background: linear-gradient(135deg, rgba(74, 144, 164, 0.06), rgba(232, 184, 77, 0.08));
  border: 1px solid var(--color-border);
}

.decision-guide__eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-card,
.insight-card,
.blog-author-card {
  background: var(--brand-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.decision-card {
  display: flex;
  flex-direction: column;
}

.decision-card__step {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(232, 184, 77, 0.22);
  color: var(--brand-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.insights-strip {
  background: var(--brand-surface);
  border: 1px solid var(--color-border);
}

.insight-card h3,
.decision-card h3,
.blog-author-card h2 {
  line-height: 1.3;
}

.insight-card .btn-link {
  font-weight: 700;
  text-decoration: none;
}

.blog-author-card {
  background: linear-gradient(180deg, var(--brand-surface-2), var(--brand-surface));
}

.blog-hero__actions .btn {
  margin-right: 0;
}

@media (max-width: 768px) {
  .decision-card,
  .insight-card,
  .blog-author-card {
    padding: 1rem;
  }
}

/* Advisor retainer card */
.advisor-card {
  background: linear-gradient(135deg, var(--brand-surface-2), var(--brand-surface));
  border: 2px solid rgba(232, 184, 77, 0.35);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Sidebar sticky offset (homepage) */
.sidebar-sticky {
  top: 80px;
}

/* Sidebar Styles */
aside .list-group-item {
    border: none; /* Cleaner look */
    padding: 0.5rem 1rem; /* Adjust padding */
    position: relative; /* Needed for absolute positioning of pseudo-element */
}

/* Add dropdown indicator */
aside .list-group-item[data-bs-toggle="collapse"]::after {
    font-family: 'bootstrap-icons'; /* Use Bootstrap Icons font */
    content: '\F282'; /* Chevron down icon */
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.2s ease-in-out; /* Smooth rotation */
    color: var(--color-muted);
}

/* Rotate indicator when expanded */
aside .list-group-item[data-bs-toggle="collapse"][aria-expanded="true"]::after {
     content: '\F286'; /* Chevron up icon */
     /* transform: translateY(-50%) rotate(-180deg); */ /* Alternative rotation */
}

aside .list-group-item i {
    width: 20px; /* Align icons */
}

aside .collapse .list-unstyled {
    margin-bottom: 0.5rem;
    background-color: var(--brand-surface-2);
    border-radius: 0 0 0.25rem 0.25rem;
    padding-bottom: 0.5rem;
}

aside .collapse li {
    padding: 0.2rem 0;
    color: var(--color-muted);
}

/* Ensure sticky top works */
@media (min-width: 992px) { /* lg breakpoint */
    aside .sticky-top {
        position: sticky;
        /* top value is set inline */
        z-index: 1020; /* Below navbar */
    }
}

