/* =========================================================
   Preceptor.us — One-page styles
   ========================================================= */

:root {
  --navy: #0b2a4a;
  --navy-deep: #071e36;
  --navy-mid: #123a63;
  --cyan: #1db8d8;
  --cyan-soft: #e8f7fb;
  --sky: #4fc3e0;
  --lime: #8bc53f;
  --teal: #1aa6a0;
  --green: #2e9e6a;
  --white: #ffffff;
  --off-white: #f4f8fb;
  --text: #1a3348;
  --muted: #5a7388;
  --line: #d7e4ee;
  --shadow: 0 12px 40px rgba(11, 42, 74, 0.12);
  --shadow-sm: 0 4px 16px rgba(11, 42, 74, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --script: "Caveat", cursive;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, 760px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(11, 42, 74, 0.22);
}

.btn-primary:hover {
  background: var(--navy-mid);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--cyan-soft);
}

.btn-outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.text-link:hover {
  color: var(--navy);
}

/* ---------- Top bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #d4f0e8 0%, #c8ebe3 50%, #d8f2e6 100%);
  color: var(--navy);
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 44px;
}

.top-bar p {
  margin: 0;
  letter-spacing: 0.01em;
}

.top-bar .btn-sm {
  background: var(--white);
  color: var(--navy);
  border: none;
  box-shadow: 0 1px 4px rgba(11, 42, 74, 0.08);
  padding: 0.38rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.top-bar .btn-sm:hover {
  background: #f7fffb;
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e8eef3;
  box-shadow: 0 2px 12px rgba(11, 42, 74, 0.04);
  isolation: isolate;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1.1rem;
  min-height: 68px;
  padding: 0.45rem 0;
  width: min(100% - 2rem, 1320px);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
}

.nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.1rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  min-width: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 0.48rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.header-actions .btn-primary {
  box-shadow: 0 5px 14px rgba(11, 42, 74, 0.18);
  white-space: nowrap;
}

.header-actions .btn-outline {
  display: none;
  background: var(--white);
  border-width: 1.5px;
  border-color: var(--navy);
  box-shadow: none;
}

.header-actions .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  white-space: normal;
  background: var(--white);
  padding: 0.75rem 1.25rem 1.15rem;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  gap: 0;
}

.nav.open a {
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid #eef3f7;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(29, 184, 216, 0.1), transparent 32%),
    linear-gradient(105deg, #f8fcfe 0%, #eef6fb 48%, #f5fafc 100%);
  color: var(--text);
}

.hero-layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 1.75rem 0 2rem;
}

.hero-main {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  max-width: 15ch;
}

.hero-main h1 span {
  color: var(--cyan);
}

.hero-lead {
  margin: 0 0 1.15rem;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-card {
  background: var(--white);
  color: var(--text);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 14px 36px rgba(11, 42, 74, 0.11);
  border: 1px solid rgba(215, 228, 238, 0.9);
  animation: fadeUp 0.8s ease both 0.1s;
}

.hero-card h2 {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.hero-fields-top,
.hero-fields-bottom {
  display: grid;
  gap: 0.65rem;
}

.become-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.become-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 300px;
  border-radius: 22px;
  overflow: hidden;
  background: #dceaf2;
  box-shadow: 0 18px 40px rgba(11, 42, 74, 0.12);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: fadeUp 0.9s ease both 0.15s;
}

.hero-visual .script-accent {
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--navy);
  transform: rotate(-5deg);
  text-align: left;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.85);
  animation: fadeUp 0.9s ease both 0.3s;
  pointer-events: none;
}

.hero-visual .script-accent span {
  color: #e2557a;
}

.script-accent.dark {
  margin: 1.25rem 0 0;
  font-family: var(--script);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy);
  transform: rotate(-2deg);
}

.hero-swoosh {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18px;
  height: 90px;
  background:
    radial-gradient(ellipse 55% 80% at 28% 60%, #0b2a4a 0 48%, transparent 49%),
    radial-gradient(ellipse 48% 75% at 58% 70%, #8bc53f 0 40%, transparent 41%),
    radial-gradient(ellipse 40% 70% at 82% 68%, #1db8d8 0 34%, transparent 35%);
  opacity: 0.92;
  pointer-events: none;
  z-index: 3;
}

.request-form .form-row,
.modal-form .form-row {
  margin-bottom: 0.85rem;
}

.request-form label,
.modal-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-mid);
}

.request-form input,
.request-form select,
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.75rem;
  background: #fafcfe;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-card .request-form input,
.hero-card .request-form select {
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
}

.request-form input:focus,
.request-form select:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(29, 184, 216, 0.18);
}

.form-row.two-col {
  display: grid;
  gap: 0.75rem;
}

.hero-card .form-row {
  margin-bottom: 0.65rem;
}

.hero-card .btn-primary {
  margin-top: 0.15rem;
  padding: 0.7rem 1.2rem;
}

/* ---------- Stats ---------- */
.stats {
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--off-white) 100%);
}

.section-title {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
}

.section-title.center,
.section-lead.center {
  text-align: center;
}

.section-lead {
  margin: 0 auto 1.75rem;
  max-width: 52ch;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem 0.5rem;
  animation: fadeUp 0.7s ease both;
}

.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  color: var(--cyan);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-num {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trust-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.trust-checks li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--navy-mid);
  font-size: 0.92rem;
}

.trust-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* ---------- How it works ---------- */
.how {
  padding: 4.5rem 0;
  background:
    radial-gradient(circle at top right, rgba(29, 184, 216, 0.1), transparent 40%),
    #fff;
}

.how-grid {
  display: grid;
  gap: 2.5rem;
}

.how-copy p {
  color: var(--muted);
  max-width: 40ch;
}

.how-copy .btn {
  margin-top: 0.5rem;
}

.how-steps {
  display: grid;
  gap: 1rem;
}

.how-steps li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-steps li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-num {
  font-weight: 800;
  color: var(--cyan);
  font-size: 0.95rem;
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.how-steps h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1rem;
}

.how-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Specialties ---------- */
.specialties {
  padding: 4rem 0 4.5rem;
  background: var(--off-white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.specialty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.specialty-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(215, 228, 238, 0.9);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.specialty-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.sp-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.sp-icon.teal { background: #1aa6a0; }
.sp-icon.navy { background: #123a63; }
.sp-icon.lime { background: linear-gradient(135deg, #a8d83a, #6fbf40); }
.sp-icon.blue { background: #2f7fd1; }
.sp-icon.purple { background: #6b5ce7; }
.sp-icon.green { background: #2e9e6a; }
.sp-icon.magenta { background: #c44b8a; }
.sp-icon.mint { background: #4caf88; }
.sp-icon.sky { background: #3db5d8; }
.sp-icon.gold { background: #d4a017; }

.sp-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sp-text strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.sp-text small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-arrow {
  color: var(--sky);
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------- Why / Testimonials ---------- */
.why {
  padding: 4.5rem 0;
  background:
    linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
}

.why-grid {
  display: grid;
  gap: 2.5rem;
}

.why-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0 1.5rem;
}

.why-list li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 600;
  color: var(--navy-mid);
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(46, 158, 106, 0.12);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.testimonials {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f5b400;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.testimonial-card p {
  margin: 0 0 1.1rem;
  color: var(--text);
  font-size: 0.98rem;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.t-author strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.t-author small {
  color: var(--muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: #c5d6e4;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: var(--cyan);
  transform: scale(1.15);
}

/* ---------- Locations ---------- */
.locations {
  padding: 3.5rem 0;
  background: var(--cyan-soft);
}

.location-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.location-pills span {
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(29, 184, 216, 0.25);
}

/* ---------- Become ---------- */
.become {
  padding: 4rem 0;
  background: var(--white);
}

.become-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.become-points {
  display: grid;
  gap: 0.85rem;
}

.become-points li {
  padding: 0.95rem 1.1rem;
  border-left: 4px solid var(--lime);
  background: var(--off-white);
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  color: var(--navy-mid);
}

/* ---------- FAQ ---------- */
.faq {
  padding: 4rem 0;
  background: var(--off-white);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  background: linear-gradient(105deg, #1494b8 0%, #1db8a8 45%, #7ecf4a 100%);
  color: var(--white);
  padding: 2.25rem 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-icon svg {
  width: 64px;
  height: 64px;
}

.cta-copy h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-copy p {
  margin: 0;
  opacity: 0.95;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-pulse {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 220px;
  height: 60px;
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.4) 0 2px, transparent 3px);
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.25rem;
}

.footer-top {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: start;
}

.footer-logo img {
  height: 56px;
  filter: none;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  padding: 0.3rem 0.5rem;
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.footer-contact a:hover {
  color: var(--sky);
}

.socials {
  display: flex;
  gap: 0.55rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-tagline {
  text-align: center;
  margin: 1.75rem 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--sky);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--sky);
}

/* ---------- Modal ---------- */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 54, 0.65);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.28s ease;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  border: none;
  background: var(--off-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
}

.modal.modal-locked .modal-close {
  display: none !important;
}

.modal.modal-locked .modal-backdrop {
  pointer-events: none;
  cursor: default;
}

.modal-header {
  margin-bottom: 1rem;
  padding-right: 1.5rem;
}

.modal-logo {
  height: 48px;
  width: auto;
  margin-bottom: 0.75rem;
}

.modal-header h2 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(46, 158, 106, 0.12);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.form-success p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .specialty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    grid-template-columns: auto 1fr;
  }

  .cta-actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions .btn-outline {
    display: inline-flex;
  }

  .header-actions .btn-primary {
    padding-inline: 1.2rem;
  }

  .header-inner {
    min-height: 70px;
    width: min(100% - 1.5rem, 1360px);
    gap: 0.75rem 1rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.5rem 2rem;
    align-items: center;
    min-height: calc(100vh - 140px);
    max-height: none;
    padding: 1.5rem 0 1.75rem;
  }

  .hero-main {
    padding-bottom: 0;
  }

  .hero-fields-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-fields-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    align-self: stretch;
    min-height: 520px;
    height: min(68vh, 620px);
    border-radius: 24px;
  }

  .hero-photo {
    min-height: 100%;
    max-height: none;
    height: 100%;
    object-position: center 15%;
  }

  .hero-visual .script-accent {
    top: 1.4rem;
    right: 1.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .how-grid,
  .why-grid,
  .become-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }

  .specialty-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonial-card {
    flex-basis: calc(50% - 0.5rem);
  }

  .cta-inner {
    grid-template-columns: auto 1fr auto;
  }

  .cta-actions {
    grid-column: auto;
    justify-content: end;
  }

  .footer-top {
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
  }

  .footer-contact {
    justify-self: center;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto);
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .nav {
    gap: 0.15rem 0.95rem;
    font-size: 0.8rem;
  }

  .logo img {
    height: 46px;
    max-width: 220px;
  }

  .specialty-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .specialty-grid .specialty-card:last-child {
    grid-column: span 1;
  }
}

/* Mid widths: slightly tighter nav so links stay one line */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav {
    gap: 0.08rem 0.5rem;
    font-size: 0.7rem;
  }

  .header-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
  }

  .logo img {
    height: 38px;
    max-width: 175px;
  }
}

@media (max-width: 899px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 62px;
  }

  .logo img {
    height: 40px;
  }

  .header-actions .btn-primary {
    display: none;
  }
}

/* =========================================================
   Legal Pages (Privacy, Refund, Terms) Styles
   ========================================================= */

.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(29, 184, 216, 0.15) 0%, rgba(29, 184, 216, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--cyan);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumbs span {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 0 1rem;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.legal-section {
  padding: 3.5rem 0 5rem;
  background: var(--off-white);
}

.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.legal-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.legal-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-nav-list a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-nav-list a:hover {
  background: var(--cyan-soft);
  color: var(--navy);
  transform: translateX(3px);
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .legal-card {
    padding: 1.5rem;
  }
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cyan-soft);
  scroll-margin-top: 100px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 1.25rem 0 0.5rem;
}

.legal-content p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.callout-box {
  background: var(--cyan-soft);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout-box.warning {
  background: #fff8ec;
  border-left-color: #f59e0b;
}

.callout-box h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1rem;
}

.callout-box p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-box {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.contact-box h3 {
  color: var(--white);
  margin: 0 0 0.5rem;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.contact-box .btn {
  display: inline-flex;
}

/* =========================================================
   Mobile Responsiveness for Legal Pages (<= 900px)
   ========================================================= */

@media (max-width: 900px) {
  .page-hero {
    padding: 2.25rem 0 1.75rem;
  }

  .breadcrumbs {
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
  }

  .page-hero h1 {
    font-size: 1.65rem;
    word-break: break-word;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .last-updated {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }

  .legal-section {
    padding: 1.5rem 0 3rem;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Clean, non-sticky mobile table of contents index */
  .legal-sidebar {
    position: static;
    width: 100%;
    padding: 1rem 1.15rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.5rem;
  }

  .legal-sidebar h3 {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin: 0 0 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
  }

  .legal-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    padding-bottom: 0;
    overflow-x: visible;
    white-space: normal;
  }

  @media (max-width: 480px) {
    .legal-nav-list {
      grid-template-columns: 1fr;
    }
  }

  .legal-nav-list a {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.65rem;
    background: var(--cyan-soft);
    color: var(--navy);
    border: 1px solid rgba(29, 184, 216, 0.25);
    border-radius: var(--radius-sm);
    text-align: left;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
  }

  .legal-nav-list a:hover,
  .legal-nav-list a:active {
    background: var(--navy);
    color: var(--white);
    transform: none;
  }

  .legal-card {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .legal-content h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
    scroll-margin-top: 80px;
    word-break: break-word;
  }

  .legal-content h3 {
    font-size: 1.05rem;
    margin: 1rem 0 0.4rem;
    word-break: break-word;
  }

  .legal-content p, 
  .legal-content li {
    font-size: 0.93rem;
    line-height: 1.6;
    word-break: break-word;
  }

  .legal-content ul, 
  .legal-content ol {
    margin-left: 1.1rem;
    margin-bottom: 1rem;
  }

  .callout-box {
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    border-left-width: 3px;
    word-break: break-word;
  }

  .callout-box h4 {
    font-size: 0.92rem;
  }

  .callout-box p {
    font-size: 0.88rem;
  }

  .contact-box {
    margin-top: 2rem;
    padding: 1.35rem 1rem;
    border-radius: var(--radius-sm);
    word-break: break-word;
  }

  .contact-box h3 {
    font-size: 1.15rem;
  }

  .contact-box p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .contact-box .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    width: 100%;
    white-space: normal;
  }
}

/* =========================================================
   Specialty & Pillar Landing Pages (FNP, etc.)
   ========================================================= */
.specialty-hero-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.specialty-hero-banner .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 184, 216, 0.15);
  border: 1px solid rgba(29, 184, 216, 0.4);
  color: var(--cyan);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.specialty-hero-banner h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--white);
}

.specialty-hero-banner h1 span {
  color: var(--cyan);
}

.specialty-hero-banner .hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 820px;
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

.specialty-hero-banner .hero-cta-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.state-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.state-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.state-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.state-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.state-card .city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.state-card .city-tag {
  background: var(--off-white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.kw-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.kw-pill {
  background: var(--cyan-soft);
  border: 1px solid rgba(29, 184, 216, 0.35);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.checklist-item {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist-item .chk-icon {
  width: 22px;
  height: 22px;
  background: var(--cyan);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.roadmap-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.roadmap-card .step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.roadmap-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.roadmap-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================================
   Blog & Articles Section / Page Styles
   ========================================================= */
.home-blog {
  padding: 5rem 0;
  background: var(--off-white);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.blog-section-header .header-left {
  max-width: 640px;
}

.blog-section-header .section-title {
  margin-bottom: 0.75rem;
}

.blog-section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  box-shadow: 0 4px 18px rgba(11, 42, 74, 0.04);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 42, 74, 0.12);
  border-color: var(--sky);
}

.blog-card-media {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--teal) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(29, 184, 216, 0.25) 0%, transparent 60%);
}

.blog-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-icon {
  transform: scale(1.1) rotate(2deg);
}

.blog-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--sky);
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.blog-category-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--cyan-soft);
  color: var(--navy-mid);
  border: 1px solid rgba(29, 184, 216, 0.28);
}

.blog-category-badge.badge-guide {
  background: #e6f7fa;
  color: #0b6980;
  border-color: #8ce1ef;
}

.blog-category-badge.badge-tips {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}

.blog-category-badge.badge-compliance {
  background: #fefce8;
  color: #854d0e;
  border-color: #fde047;
}

.blog-category-badge.badge-specialty {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}

.blog-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.75rem;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--teal);
}

.blog-card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.blog-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.blog-author-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.blog-author-title {
  font-size: 0.74rem;
  color: var(--muted);
}

.blog-read-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.blog-read-link:hover {
  gap: 0.6rem;
  color: var(--navy);
}

/* ---------- Dedicated Blog Hub Page ---------- */
.blogs-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%, var(--teal) 120%);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blogs-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(29, 184, 216, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.blogs-hero .eyebrow {
  color: var(--cyan);
}

.blogs-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  color: var(--white);
}

.blogs-hero h1 span {
  color: var(--cyan);
}

.blogs-hero p.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.blog-search-container {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  color: var(--navy);
  box-shadow: 0 8px 32px rgba(7, 30, 54, 0.25);
  outline: none;
  transition: all 0.25s ease;
}

.blog-search-input:focus {
  background: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 8px 36px rgba(29, 184, 216, 0.35);
}

.blog-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  pointer-events: none;
}

/* Category Filter Bar */
.blog-filter-bar {
  padding: 1.75rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 72px;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.blog-filter-list {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.blog-filter-list::-webkit-scrollbar {
  display: none;
}

.blog-filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--off-white);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover {
  background: var(--cyan-soft);
  color: var(--navy);
  border-color: rgba(29, 184, 216, 0.4);
}

.blog-filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(11, 42, 74, 0.18);
}

/* Blog Spotlight Card */
.blog-spotlight {
  padding: 3rem 0 1.5rem;
}

.spotlight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 8px 30px rgba(11, 42, 74, 0.06);
  transition: all 0.3s ease;
}

.spotlight-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--cyan);
}

.spotlight-media {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: var(--white);
  overflow: hidden;
}

.spotlight-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 90%, rgba(29, 184, 216, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(29, 184, 216, 0.2);
  border: 1px solid rgba(29, 184, 216, 0.5);
  color: var(--cyan);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  position: relative;
  z-index: 2;
}

.spotlight-badge-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.spotlight-media-content {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.spotlight-media-content h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--white);
}

.spotlight-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.spotlight-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.spotlight-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.spotlight-highlights li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}

/* Full Article Modal Dialog */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.article-modal[hidden] {
  display: none !important;
}

.article-modal-dialog {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 60px rgba(7, 30, 54, 0.35);
  border: 1px solid var(--line);
  animation: modal-up 0.3s ease;
}

.article-modal-header {
  padding: 2.25rem 2.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  position: relative;
}

.article-modal-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0.75rem 0 0.5rem;
  color: var(--white);
}

.article-modal-body {
  padding: 2.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}

.article-modal-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}

.article-modal-body p {
  margin-bottom: 1.25rem;
}

.article-modal-body ul, .article-modal-body ol {
  margin: 0 0 1.5rem 1.25rem;
}

.article-modal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-key-takeaways {
  background: var(--cyan-soft);
  border-left: 4px solid var(--cyan);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.article-key-takeaways h4 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.article-key-takeaways ul {
  margin-bottom: 0;
}

.article-cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  margin-top: 2rem;
  text-align: center;
}

.article-cta-box h3 {
  color: var(--white);
  margin: 0 0 0.5rem;
}

.article-cta-box p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .home-blog {
    padding: 3.5rem 0;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-media {
    padding: 2rem 1.5rem;
  }

  .spotlight-body {
    padding: 2rem 1.5rem;
  }

  .article-modal-header,
  .article-modal-body {
    padding: 1.5rem;
  }
}
