:root {
      /* Primary */
      --primary: #D0021B;
      --primary-dark: #A40014;
      --primary-light: #F04A5A;
      /* Secondary */
      --secondary: #F7B500;
      --secondary-dark: #E89B00;
      --secondary-light: #FFD566;
      /* Accent */
      --accent: #F39C12;
      /* Neutral */
      --black: #1F1F1F;
      --dark: #374151;
      --gray: #6B7280;
      --border: #E5E7EB;
      --bg: #F8FAFC;
      --white: #FFFFFF;
      /* Status */
      --success: #22C55E;
      --warning: #F59E0B;
      --danger: #DC2626;
      --info: #0EA5E9;

      /* Legacy mappings for existing styles */
      --navy: #1F1F1F;
      --navy-2: #374151;
      --blue: #D0021B;
      --blue-deep: #A40014;
      --blue-bright: #F04A5A;
      --gold: #F7B500;
      --gold-soft: #FFD566;
      --green: #22C55E;
      --red: #DC2626;
      --amber: #F39C12;
      --ink: #1F1F1F;
      --muted: #6B7280;
      --line: #E5E7EB;
      --paper: #FFFFFF;
      --shadow: 0 6px 24px rgba(31, 31, 31, .08);
      --shadow-lg: 0 16px 48px rgba(31, 31, 31, .14);
      --radius: 16px;
}

* {
      box-sizing: border-box;
      margin: 0;
      padding: 0
}

html {
      scroll-behavior: smooth
}

body {
      font-family: 'Outfit', system-ui, -apple-system, sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.6;
      font-size: 16px;
      -webkit-font-smoothing: antialiased
}

img {
      max-width: 100%;
      display: block
}

a {
      color: var(--blue-deep)
}

h1,
h2,
h3,
.display {
      font-family: 'Fraunces', serif;
      color: var(--navy);
      line-height: 1.15
}

.mono {
      font-family: 'Space Mono', monospace
}

.container {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px
}

.eyebrow {
      font-family: 'Space Mono', monospace;
      font-size: 12px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--blue);
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px
}

.eyebrow::before {
      content: "";
      width: 26px;
      height: 2px;
      background: var(--gold);
      display: inline-block
}

.section {
      padding: 76px 0
}

.section.alt {
      background: var(--paper)
}

.section-head {
      max-width: 640px;
      margin-bottom: 44px
}

.section-head h2 {
      font-size: clamp(26px, 3.4vw, 38px);
      margin-bottom: 12px
}

.section-head p {
      color: var(--muted)
}

.center {
      text-align: center
}

.center .section-head {
      margin-left: auto;
      margin-right: auto
}

.center .eyebrow::before {
      display: none
}

/* ---------- buttons ---------- */
.btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 13px 24px;
      border-radius: 11px;
      border: none;
      font-family: 'Outfit', sans-serif;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      text-decoration: none;
      transition: .18s ease;
      line-height: 1.2
}

.btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: #fff !important;
      box-shadow: 0 8px 22px rgba(208, 2, 27, .32)
}

.btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(208, 2, 27, .4);
      color: #fff !important
}

.btn-outline {
      background: transparent;
      color: var(--navy);
      border: 1.5px solid var(--navy)
}

.btn-outline:hover {
      background: var(--navy);
      color: #fff
}

.btn-light {
      background: #fff;
      color: var(--navy);
      z-index: 99;

}

.btn-light:hover {
      transform: translateY(-2px)
}

.btn-gold {
      background: var(--gold);
      color: #fff;
      z-index: 99;
}

.btn-gold:hover {
      filter: brightness(1.08);
      transform: translateY(-2px)
}

.btn-ghost {
      background: #eef2f7;
      color: var(--navy)
}

.btn-ghost:hover {
      background: #e2e9f1
}

.btn-warn {
      background: #fbe5e2;
      color: var(--red)
}

.btn:focus-visible {
      outline: 3px solid var(--blue-bright);
      outline-offset: 2px
}

/* ---------- top utility bar ---------- */
.topbar {
      background: var(--navy);
      color: #c9d9ea;
      font-size: 12.5px;
      padding: 7px 0
}

.topbar .container {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      align-items: center
}

.topbar span {
      display: inline-flex;
      align-items: center;
      gap: 6px
}

.topbar a {
      color: #fff;
      text-decoration: none;
      font-weight: 600
}

.topbar a:hover {
      color: var(--gold)
}

.topbar .tb-right a {
      display: inline-flex;
      align-items: center;
      gap: 6px
}

/* ---------- navbar ---------- */
.navbar {
      background: #fff;
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 14px rgba(13, 42, 74, .05)
}

.navbar .container {
      display: flex;
      align-items: center;
      gap: 20px;
      min-height: 74px;
      flex-wrap: nowrap;
      padding-left: 20px;
      padding-right: 20px
}

.brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      margin-right: auto;
      flex-shrink: 0
}

.brand .logo-img {
      height: 60px;
      width: auto;
      display: block;
      object-fit: contain
}

.brand .logo {
      width: 44px;
      height: 44px;
      border-radius: 11px;
      background: linear-gradient(135deg, var(--navy), var(--blue-deep));
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fraunces', serif;
      font-weight: 800;
      font-size: 20px;
      position: relative;
      overflow: hidden
}

.brand .logo::after {
      content: "";
      position: absolute;
      inset: auto -4px 6px;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent)
}

.brand b {
      display: block;
      color: var(--navy);
      font-size: 15px;
      line-height: 1.15
}

.brand small {
      display: block;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: .4px
}

.nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      list-style: none;
      flex-wrap: nowrap;
      flex-shrink: 0
}

.nav-links>li {
      position: relative;
      white-space: nowrap
}

.nav-links a {
      display: block;
      padding: 5px;
      color: var(--ink);
      text-decoration: none;
      font-weight: 500;
      font-size: 13.5px;
      border-radius: 9px;
      transition: .15s
}



.nav-links a.active {
      color: var(--blue-deep);
      font-weight: 700
}

.nav-links a.active::after {
      content: "";
      display: block;
      height: 2px;
      margin-top: 2px;
      border-radius: 2px;
      background: var(--gold)
}

.nav-links a:hover {
      color: var(--primary-dark);
}

.has-drop>a::after {
      content: "▾";
      font-size: 10px;
      margin-left: 5px;
      display: inline
}

.dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      background: #fff;
      min-width: 250px;
      border: 1px solid var(--line);
      border-radius: 13px;
      box-shadow: var(--shadow-lg);
      padding: 8px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: .18s;
      list-style: none;
      z-index: 60
}

.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown,
.has-drop.open .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0)
}

.dropdown a {
      padding: 11px 13px;
      border-radius: 9px;
      font-size: 14px
}

.dropdown a small {
      display: block;
      color: var(--muted);
      font-weight: 400;
      font-size: 12px
}

.nav-cta {
      margin-left: 8px
}

.nav-toggle {
      display: none;
      background: none;
      border: 1.5px solid var(--line);
      border-radius: 9px;
      padding: 9px 11px;
      cursor: pointer;
      font-size: 18px;
      color: var(--navy)
}

/* ---------- hero ---------- */
.hero {
      background: radial-gradient(1100px 520px at 85% -10%, rgba(43, 149, 232, .28), transparent 60%),
            linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue-deep) 100%);
      color: #fff;
      position: relative;
      overflow: hidden
}

.hero .container {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 48px;
      align-items: center;
      padding-top: 84px;
      padding-bottom: 96px;
      position: relative;
      z-index: 2
}

.hero h1 {
      color: #fff;
      font-size: clamp(32px, 4.6vw, 25px);
      font-weight: 600;
      margin: 14px 0 18px
}

.hero h1 em {
      font-style: italic;
      color: #ffd98a
}

.hero p.lead {
      color: #c9d9ea;
      font-size: 14px;
      max-width: 520px;
      margin-bottom: 30px
}

.hero .eyebrow {
      color: #8fc4f2
}

.hero .eyebrow::before {
      background: var(--gold)
}

.hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap
}

.hero-stats {
      display: flex;
      gap: 34px;
      margin-top: 44px;
      flex-wrap: wrap
}

.hero-stats b {
      font-family: 'Fraunces', serif;
      font-size: 28px;
      display: block;
      color: #fff
}

.hero-stats span {
      font-size: 12.5px;
      color: #9db6cd;
      letter-spacing: .4px
}

.pulse-line {
      position: absolute;
      left: 0;
      right: 0;
      bottom: -6px;
      width: 100%;
      height: 90px;
      opacity: .5;
      z-index: 1
}

.pulse-line path {
      stroke: var(--gold);
      stroke-width: 2;
      fill: none;
      stroke-dasharray: 2400;
      stroke-dashoffset: 2400;
      animation: pulse-draw 3.2s ease forwards
}

@keyframes pulse-draw {
      to {
            stroke-dashoffset: 0
      }
}

/* hero certificate mock */
.cert-mock {
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
      color: var(--ink);
      padding: 26px 26px 20px;
      position: relative;
      transform: rotate(1.5deg);
      max-width: 430px;
      margin-left: auto
}

.cert-mock::before {
      content: "";
      position: absolute;
      inset: 10px;
      border: 1.5px solid var(--gold);
      border-radius: 8px;
      pointer-events: none
}

.cert-mock .cm-org {
      display: flex;
      gap: 10px;
      align-items: center;
      margin-bottom: 12px
}

.cert-mock .cm-crest {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--navy), var(--blue-deep));
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fraunces', serif;
      font-weight: 800
}

.cert-mock .cm-org b {
      font-family: 'Fraunces', serif;
      color: var(--navy);
      font-size: 13.5px;
      display: block;
      line-height: 1.1
}

.cert-mock .cm-org small {
      color: var(--muted);
      font-size: 10px
}

.cert-mock h3 {
      font-size: 19px;
      letter-spacing: 2px;
      text-align: center;
      margin: 6px 0 2px
}

.cert-mock .cm-rule {
      width: 70px;
      height: 2.5px;
      background: var(--gold);
      margin: 6px auto 12px;
      border-radius: 2px
}

.cert-mock .cm-pre {
      text-align: center;
      color: var(--muted);
      font-size: 11px
}

.cert-mock .cm-name {
      text-align: center;
      font-family: 'Fraunces', serif;
      font-size: 21px;
      color: var(--blue-deep);
      font-weight: 700;
      margin: 4px 0
}

.cert-mock .cm-course {
      text-align: center;
      font-weight: 600;
      font-size: 13px;
      margin-bottom: 16px
}

.cert-mock .cm-foot {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      font-size: 10px;
      color: var(--muted)
}

.cert-mock .cm-id {
      font-family: 'Space Mono', monospace;
      color: var(--ink);
      font-size: 10.5px
}

.cert-mock .cm-qr {
      width: 58px;
      height: 58px;
      border-radius: 6px;
      background:
            conic-gradient(var(--navy) 25%, #fff 0 50%, var(--navy) 0 75%, #fff 0) 0 0/14px 14px;
      outline: 4px solid #fff;
      box-shadow: 0 0 0 1px var(--line)
}

.cert-mock .cm-badge {
      position: absolute;
      top: -14px;
      right: -14px;
      background: var(--green);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 8px 14px;
      border-radius: 999px;
      box-shadow: 0 8px 20px rgba(30, 158, 99, .45);
      display: flex;
      gap: 6px;
      align-items: center;
      transform: rotate(3deg)
}

/* ---------- ecg divider ---------- */
.ecg-divider {
      height: 46px;
      overflow: hidden;
      line-height: 0;
      background: transparent
}

.ecg-divider svg {
      width: 100%;
      height: 46px
}

.ecg-divider path {
      stroke: var(--line);
      stroke-width: 2;
      fill: none
}

.ecg-divider .beat {
      stroke: var(--gold)
}

/* ---------- cards & grids ---------- */
.grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px
}

.grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px
}

.grid-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 22px
}

.card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow)
}

.card.pad {
      padding: 28px
}

.inquiry-modal {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 20px
}

.inquiry-modal.is-open {
      display: flex
}

.inquiry-modal__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, .68)
}

.inquiry-modal__dialog {
      position: relative;
      width: min(620px, 100%);
      max-height: calc(100vh - 40px);
      overflow-y: auto;
      padding: 30px;
      border-radius: var(--radius);
      background: var(--paper);
      box-shadow: var(--shadow-lg)
}

.inquiry-modal__dialog h2 {
      margin-bottom: 6px
}

.inquiry-modal__intro {
      color: var(--muted);
      margin-bottom: 20px
}

.inquiry-modal__close {
      position: absolute;
      top: 14px;
      right: 16px;
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: var(--muted);
      font-size: 28px;
      line-height: 1;
      cursor: pointer
}

.inquiry-modal__close:hover {
      background: var(--bg);
      color: var(--ink)
}

.inquiry-modal__message {
      display: none;
      padding: 12px;
      border-radius: 8px;
      margin-bottom: 16px
}

.inquiry-modal__message:not(:empty) {
      display: block
}

.inquiry-modal__message--error {
      background: #ffebee;
      border: 1px solid #f44336;
      color: #c62828
}

.inquiry-modal__message--success {
      background: #e8f5e9;
      border: 1px solid #4caf50;
      color: #2e7d32
}

.inquiry-modal form .btn {
      margin-top: 18px
}

/* testimonials carousel */
.testimonial-carousel {
      position: relative
}

.testimonial-viewport {
      overflow: hidden;
      margin: 0 -8px;
      padding: 8px
}

.testimonial-track {
      display: flex;
      gap: 22px;
      transition: transform .55s ease;
      will-change: transform
}

.testimonial-card {
      display: flex;
      flex: 0 0 calc((100% - 44px) / 3);
      flex-direction: column;
      min-width: 0
}

.testimonial-rating {
      color: var(--gold);
      font-size: 18px;
      letter-spacing: 2px;
      margin-bottom: 14px
}

.testimonial-card blockquote {
      color: var(--muted);
      font-size: 15px;
      flex: 1;
      margin-bottom: 22px
}

.testimonial-author strong,
.testimonial-author span {
      display: block
}

.testimonial-author strong {
      color: var(--ink)
}

.testimonial-author span {
      color: var(--muted);
      font-size: 13px
}

.testimonial-author span:last-child {
      color: var(--blue)
}

.testimonial-controls {
      align-items: center;
      display: flex;
      gap: 14px;
      justify-content: center;
      margin-top: 26px
}

.testimonial-control {
      align-items: center;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 50%;
      color: var(--blue);
      cursor: pointer;
      display: inline-flex;
      font-size: 20px;
      height: 38px;
      justify-content: center;
      transition: .18s;
      width: 38px
}

.testimonial-control:hover,
.testimonial-control:focus-visible {
      background: var(--blue);
      color: #fff
}

.testimonial-dots {
      display: flex;
      gap: 7px
}

.testimonial-dot {
      background: var(--line);
      border: 0;
      border-radius: 50%;
      cursor: pointer;
      height: 8px;
      padding: 0;
      width: 8px
}

.testimonial-dot.active {
      background: var(--gold);
      transform: scale(1.25)
}

.feature-card {
      padding: 28px;
      transition: .2s;
      position: relative;
      overflow: hidden
}

.feature-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg)
}

.feature-card .icon {
      width: 52px;
      height: 52px;
      border-radius: 13px;
      background: #e8f2fc;
      color: var(--blue-deep);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px
}

.feature-card .icon svg {
      width: 26px;
      height: 26px
}

.feature-card h3 {
      font-size: 18.5px;
      margin-bottom: 8px
}

.feature-card p {
      color: var(--muted);
      font-size: 14.5px
}

.feature-card .tag {
      position: absolute;
      top: 18px;
      right: 18px;
      font-family: 'Space Mono', monospace;
      font-size: 10.5px;
      color: var(--gold);
      letter-spacing: 1px
}

/* course cards */
.course-card {
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: .2s
}

.course-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg)
}

.course-card .cc-top {
      background: linear-gradient(135deg, var(--navy), var(--blue-deep));
      color: #fff;
      padding: 22px 24px;
      position: relative
}

.course-card .cc-top.gold {
      background: linear-gradient(135deg, #8a651c, var(--gold))
}

.course-card .cc-top small {
      font-family: 'Space Mono', monospace;
      font-size: 10.5px;
      letter-spacing: 1.5px;
      opacity: .8
}

.course-card .cc-top h3 {
      color: #fff;
      font-size: 20px;
      margin-top: 6px
}

.course-card .cc-body {
      padding: 22px 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 1
}

.course-card .cc-body p {
      color: var(--muted);
      font-size: 14.5px;
      flex: 1
}

.course-card .cc-meta {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      font-size: 12.5px;
      color: var(--muted)
}

.course-card .cc-meta b {
      color: var(--ink)
}

.course-card .cc-body .btn {
      align-self: flex-start
}

/* checklist */
.checklist {
      list-style: none;
      display: grid;
      gap: 11px
}

.checklist li {
      display: flex;
      gap: 11px;
      align-items: flex-start;
      font-size: 15px
}

.checklist li::before {
      content: "✓";
      flex: 0 0 22px;
      height: 22px;
      border-radius: 50%;
      background: #e6f6ee;
      color: var(--green);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      margin-top: 2px
}

/* steps */
.steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      counter-reset: step
}

.step {
      padding: 26px;
      position: relative
}

.step::before {
      counter-increment: step;
      content: counter(step, decimal-leading-zero);
      font-family: 'Space Mono', monospace;
      color: var(--gold);
      font-size: 13px;
      letter-spacing: 2px
}

.step h3 {
      font-size: 18px;
      margin: 10px 0 8px
}

.step p {
      color: var(--muted);
      font-size: 14.5px
}

/* stats band */
.stat-band {
      background: linear-gradient(135deg, var(--navy), var(--blue-deep));
      color: #fff;
      border-radius: 20px;
      padding: 44px 34px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 26px;
      text-align: center
}

.stat-band b {
      font-family: 'Fraunces', serif;
      font-size: 34px;
      display: block
}

.stat-band span {
      font-size: 13px;
      color: #a9c3da
}

/* CTA band */
.cta-band {
      background: linear-gradient(120deg, var(--navy) 0%, var(--blue-deep) 100%);
      border-radius: 22px;
      color: #fff;
      padding: 52px 44px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 26px;
      flex-wrap: wrap;
      position: relative;
      overflow: hidden
}

.cta-band::after {
      content: "";
      position: absolute;
      right: -60px;
      top: -60px;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      border: 34px solid rgba(255, 255, 255, .06)
}

.cta-band h2 {
      color: #fff;
      font-size: clamp(22px, 3vw, 30px);
      margin-bottom: 8px
}

.cta-band p {
      color: #c9d9ea;
      max-width: 520px
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
      background: linear-gradient(140deg, var(--navy), var(--blue-deep));
      color: #fff;
      padding: 64px 0 58px;
      position: relative;
      overflow: hidden
}

.page-hero h1 {
      color: #fff;
      font-size: clamp(28px, 4vw, 42px);
      margin-top: 12px
}

.page-hero p {
      color: #c9d9ea;
      max-width: 640px;
      margin-top: 12px;
      font-size: 16.5px
}

.page-hero .eyebrow {
      color: #8fc4f2
}

.crumbs {
      font-size: 12.5px;
      color: #9db6cd;
      margin-bottom: 6px
}

.crumbs a {
      color: #cfe0f2;
      text-decoration: none
}

.crumbs a:hover {
      color: #fff
}

/* ---------- blog ---------- */
.post-card {
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: .2s
}

.post-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg)
}

.post-card .thumb {
      height: 200px;
      display: flex;
      align-items: flex-end;
      /* padding: 16px; */
      color: #fff;
      background: linear-gradient(150deg, var(--blue-deep), var(--navy))
}

.post-card .thumb.t2 {
      background: linear-gradient(150deg, #8a651c, var(--gold))
}

.post-card .thumb.t3 {
      background: linear-gradient(150deg,
                  var(--primary) 0%,
                  var(--secondary) 100%);
}

.post-card .thumb span {
      font-family: 'Space Mono', monospace;
      font-size: 11px;
      letter-spacing: 1.5px;
      background: rgba(0, 0, 0, .25);
      padding: 5px 10px;
      border-radius: 999px
}

.post-card .pc-body {
      padding: 22px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1
}

.post-card h3 {
      font-size: 18.5px
}

.post-card h3 a {
      color: var(--navy);
      text-decoration: none
}

.post-card h3 a:hover {
      color: var(--blue-deep)
}

.post-card p {
      color: var(--muted);
      font-size: 14px;
      flex: 1
}

.post-card .pc-meta {
      font-size: 12.5px;
      color: var(--muted)
}

.prose {
      margin: 0 auto;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 20px 15px;
      box-shadow: var(--shadow)
}

.prose h2 {
      font-size: 24px;
      margin: 30px 0 12px
}

.prose p {
      margin-bottom: 16px;
      color: #2c3745
}

.prose ul {
      margin: 0 0 16px 22px;
      color: #2c3745
}

.prose li {
      margin-bottom: 6px
}

.prose blockquote {
      border-left: 4px solid var(--gold);
      padding: 10px 18px;
      background: var(--gold-soft);
      border-radius: 0 10px 10px 0;
      margin: 20px 0;
      font-style: italic;
      color: var(--navy)
}

/* ---------- forms ---------- */
label {
      display: block;
      font-size: 13px;
      color: var(--muted);
      font-weight: 600;
      margin: 16px 0 6px
}

input,
textarea,
select {
      width: 100%;
      padding: 13px;
      border: 1px solid var(--line);
      border-radius: 11px;
      font-size: 15px;
      font-family: 'Outfit', sans-serif;
      background: #fff;
      color: var(--ink)
}

input:focus,
textarea:focus,
select:focus {
      outline: 2px solid var(--blue-bright);
      border-color: transparent
}

textarea {
      min-height: 110px;
      resize: vertical
}

.hint {
      font-size: 12px;
      color: var(--muted);
      margin-top: 5px
}

.form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 16px
}

/* contact info */
.info-tile {
      display: flex;
      gap: 14px;
      padding: 20px;
      align-items: flex-start
}

.info-tile .icon {
      flex: 0 0 46px;
      height: 46px;
      border-radius: 12px;
      background: #e8f2fc;
      color: var(--blue-deep);
      display: flex;
      align-items: center;
      justify-content: center
}

.info-tile b {
      display: block;
      color: var(--navy);
      margin-bottom: 3px
}

.info-tile p,
.info-tile a {
      color: var(--muted);
      font-size: 14px;
      text-decoration: none
}

.map-ph {
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--line);
      background: repeating-linear-gradient(45deg, #eef2f7 0 14px, #e6ecf4 14px 28px);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 14px;
      text-align: center;
      padding: 5px
}

/* accordion */
.acc {
      border: 1px solid var(--line);
      border-radius: 13px;
      background: #fff;
      margin-bottom: 12px;
      overflow: hidden
}

.acc summary {
      padding: 17px 20px;
      font-weight: 600;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      gap: 12px
}

.acc summary::after {
      content: "+";
      color: var(--blue);
      font-size: 20px;
      font-weight: 400
}

.acc[open] summary::after {
      content: "–"
}

.acc .acc-body {
      padding: 0 20px 18px;
      color: var(--muted);
      font-size: 14.5px
}

/* ---------- footer ---------- */
footer {
      background: var(--navy);
      color: #b9cadd;
}

.foot-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
      gap: 34px;
      padding: 56px 0 40px
}

footer h4 {
      color: #fff;
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 16px
}

footer ul {
      list-style: none;
      display: grid;
      gap: 9px
}

footer a {
      color: #b9cadd;
      text-decoration: none;
      font-size: 14px
}

footer a:hover {
      color: var(--gold)
}

footer p {
      font-size: 14px
}

.foot-brand {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 14px
}

.foot-brand .logo {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: #fff;
      color: var(--navy);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Fraunces', serif;
      font-weight: 800;
      font-size: 19px
}

.foot-brand b {
      color: #fff;
      display: block;
      line-height: 1.15
}

.foot-brand small {
      font-size: 11px;
      color: #9db6cd
}

.foot-bottom {
      border-top: 1px solid rgba(255, 255, 255, .12);
      padding: 18px 0;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      font-size: 12.5px;
      color: #8ba3ba
}

.foot-bottom a {
      font-size: 12.5px
}

/* toast */
.toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--navy);
      color: #fff;
      padding: 13px 24px;
      border-radius: 11px;
      font-size: 14px;
      font-weight: 600;
      opacity: 0;
      transition: .3s;
      z-index: 500;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
      pointer-events: none
}

.toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0)
}

/* reveal on scroll */
.reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
      opacity: 1;
      transform: none
}

@media (prefers-reduced-motion:reduce) {
      .reveal {
            opacity: 1;
            transform: none;
            transition: none
      }

      .pulse-line path {
            animation: none;
            stroke-dashoffset: 0
      }

      * {
            scroll-behavior: auto
      }
}

/* ---------- responsive ---------- */
@media(max-width:1000px) {
      .grid-4 {
            grid-template-columns: repeat(2, 1fr)
      }

      .stat-band {
            grid-template-columns: repeat(2, 1fr)
      }

      .foot-grid {
            grid-template-columns: 1fr 1fr
      }

      .hero .container {
            grid-template-columns: 1fr;
            padding-top: 64px
      }

      .cert-mock {
            margin: 0 auto;
            transform: none
      }
}

@media(max-width:820px) {
      .nav-links {
            position: fixed;
            inset: 142px 0 auto 0;
            background: #fff;
            flex-direction: column;
            align-items: stretch;
            padding: 14px 18px 22px;
            gap: 4px;
            border-bottom: 1px solid var(--line);
            box-shadow: var(--shadow-lg);
            display: none;
            max-height: calc(100vh - 74px);
            overflow: auto;
            z-index: 99
      }

      .nav-links.open {
            display: flex
      }

      .nav-toggle {
            display: block
      }

      .dropdown {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            border: none;
            padding-left: 16px;
            display: none
      }

      .has-drop.open .dropdown {
            display: block
      }

      .has-drop>a::after {
            content: "▸"
      }

      .has-drop.open>a::after {
            content: "▾"
      }

      .grid-3,
      .grid-2,
      .steps,
      .form-grid {
            grid-template-columns: 1fr
      }

      .section {
            padding: 56px 0
      }
}

@media(max-width:520px) {

      .grid-4,
      .stat-band,
      .foot-grid {
            grid-template-columns: 1fr
      }

      .cta-band {
            padding: 38px 26px
      }
}

/*==========================
404 PAGE
===========================*/

.error-page {
      min-height: 65vh;
      display: flex;
      padding: 40px 0;
      align-items: center;
      background: #f8fafc;

}

.error-icon {
      width: 120px;
      height: 120px;
      margin: auto;
      border-radius: 50%;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.error-icon i {
      font-size: 60px;
      color: #d71920;
}

.error-code {
      font-size: 130px;
      line-height: 1;
      font-weight: 800;
      color: #d71920;
      text-align: center;
      margin-bottom: 15px;
}

.error-title {
      font-size: 42px;
      font-weight: 700;
      color: #222;
      text-align: center;
      margin-bottom: 20px;
}

.error-text {
      max-width: 650px;
      margin: auto;
      color: #666;
      font-size: 20px;
      text-align: center;
      line-height: 34px;
}

.error-buttons {
      margin-top: 45px;
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
}

.btn-home,
.btn-contact {
      text-decoration: none;
      padding: 15px 35px;
      border-radius: 50px;
      font-weight: 600;
      transition: .3s;
      display: inline-flex;
      align-items: center;
      font-size: 17px;
}

.btn-home {
      background: #d71920;
      color: #fff;
}

.btn-home:hover {
      background: #b80f16;
      color: #fff;
      transform: translateY(-3px);
}

.btn-contact {
      background: #fff;
      color: #222;
      border: 2px solid #d71920;
}

.btn-contact:hover {
      background: #d71920;
      color: #fff;
      transform: translateY(-3px);
}

@media(max-width:991px) {

      .error-page {
            min-height: 55vh;
            padding: 40px 0;
      }

      .error-code {
            font-size: 100px;
      }

      .error-title {
            font-size: 32px;
      }

      .error-text {
            font-size: 18px;
            line-height: 30px;
      }

}

@media(max-width:767px) {

      .error-icon {
            width: 90px;
            height: 90px;
      }

      .error-icon i {
            font-size: 45px;
      }

      .error-code {
            font-size: 80px;
      }

      .error-title {
            font-size: 28px;
      }

      .error-text {
            font-size: 16px;
            line-height: 28px;
      }

      .btn-home,
      .btn-contact {
            width: 100%;
            justify-content: center;
      }

}

/* ===========================
   BLOG DETAIL PAGE — LAYOUT
=========================== */
.blog-layout {
      display: grid;
      grid-template-columns: 1fr 340px;
      gap: 40px;
      align-items: start;
}

.blog-main {
      min-width: 0;
}

.blog-sidebar {
      display: flex;
      flex-direction: column;
      gap: 24px;
      position: sticky;
      top: 100px;
}

/* ===========================
   AUTHOR CARD
=========================== */
.author-card {
      padding: 24px;
      text-align: center;
      border: 1px solid #eee;
      border-radius: 14px;
}

.author-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 20px;
      margin: 0 auto 12px;
}

.author-name {
      font-weight: 700;
      font-size: 16px;
}

.author-role {
      color: var(--primary);
      font-size: 13px;
      font-weight: 600;
      margin: 2px 0 8px;
}

.author-bio {
      font-size: 14px;
      color: #666;
      margin-top: 12px;
      line-height: 1.6;
}

/* ===========================
   SIDEBAR CTA
=========================== */
.sidebar-cta {
      padding: 26px 22px;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--primary-dark), var(--primary));
      color: #fff;
      text-align: left;
}

.sidebar-cta h3 {
      margin: 0 0 8px;
      font-size: 20px;
      color: #fff;
}

.sidebar-cta p {
      font-size: 14px;
      opacity: .92;
      margin-bottom: 16px;
}

.sidebar-stats {
      display: flex;
      justify-content: space-between;
      margin-bottom: 18px;
      text-align: center;
}

.sidebar-stats>div {
      flex: 1;
}

.sidebar-stats strong {
      display: block;
      font-size: 18px;
}

.sidebar-stats span {
      font-size: 12px;
      opacity: .85;
}

.sidebar-cta .btn-primary {
      display: block;
      text-align: center;
      background: var(--secondary);
      color: #1a1a1a;
      border: none;
}

.sidebar-cta .btn-primary:hover {
      background: var(--secondary-dark);
}

/* ===========================
   SIDEBAR RECENT POSTS
=========================== */
.sidebar-recent {
      padding: 22px;
      border: 1px solid #eee;
      border-radius: 14px;
}

.sidebar-recent h3 {
      margin: 0 0 16px;
      font-size: 17px;
}

.recent-item {
      display: flex;
      gap: 12px;
      text-decoration: none;
      color: inherit;
      margin-bottom: 16px;
      align-items: flex-start;
}

.recent-item:last-child {
      margin-bottom: 0;
}

.recent-thumb {
      width: 72px;
      height: 60px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
}

.recent-cat {
      font-size: 11px;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: .3px;
      margin-bottom: 3px;
}

.recent-title {
      font-size: 14px;
      font-weight: 600;
      line-height: 1.35;
      margin-bottom: 4px;
}

/* ===========================
   TAGS
=========================== */
.sidebar-tags {
      padding: 22px;
      border: 1px solid #eee;
      border-radius: 14px;
}

.sidebar-tags h3 {
      margin: 0 0 14px;
      font-size: 17px;
}

.tags-row {
      margin: 30px 0;
}

.tags-label {
      font-weight: 700;
      font-size: 13px;
      color: #666;
      margin-right: 8px;
}

.tag-pill {
      display: inline-block;
      background: #fdecec;
      color: var(--primary-dark);
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 500;
      margin: 4px 6px 0 0;
}

/* ===========================
   FAQ
=========================== */
.faq-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 24px;
      margin-bottom: 20px;
}

.faq-icon {
      width: 30px;
      height: 30px;
      flex-shrink: 0;
      border-radius: 50%;
      background: #fdecec;
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
}

.faq-item {
      border: 1px solid #eee;
      border-radius: 12px;
      padding: 18px 20px;
}

.faq-item summary {
      cursor: pointer;
      font-weight: 600;
      font-size: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      list-style: none;
}

.faq-item summary::-webkit-details-marker {
      display: none;
}

.faq-arrow {
      transition: transform .25s ease;
      color: var(--primary);
      font-size: 18px;
}

.faq-item[open] .faq-arrow {
      transform: rotate(180deg);
}

.faq-answer {
      margin-top: 14px;
      font-size: 14.5px;
      line-height: 1.7;
      color: #555;
}

/* ===========================
   SHARE ROW
=========================== */
.share-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin: 30px 0;
      padding-top: 24px;
      border-top: 1px solid #eee;
}

.share-label {
      font-weight: 700;
      font-size: 14px;
      margin-right: 6px;
}

.share-btn {
      padding: 8px 18px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      color: #fff;
      text-decoration: none;
}

.share-fb {
      background: #1877F2;
}

.share-tw {
      background: #111;
}

.share-wa {
      background: #25D366;
}

.share-li {
      background: #0A66C2;
}

.share-btn:hover {
      opacity: .88;
}

/* ===========================
   BOTTOM CTA BANNER
=========================== */
.cta-banner {
      text-align: center;
      padding: 40px 30px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--primary-dark), var(--primary));
      color: #fff;
      margin-top: 40px;
}

.cta-tag {
      display: inline-block;
      background: rgba(255, 255, 255, .15);
      padding: 6px 16px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 14px;
}

.cta-banner h3 {
      font-size: 26px;
      margin: 0 0 10px;
      color: #fff;
}

.cta-banner p {
      opacity: .92;
      margin-bottom: 20px;
}

.cta-banner .btn-primary {
      background: var(--secondary);
      color: #1a1a1a;
      border: none;
      display: inline-block;
}

.cta-banner .btn-primary:hover {
      background: var(--secondary-dark);
}

/* ===========================
   RELATED / RECENT CARDS FIX
   (equal height, image ratio)
=========================== */
.grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
}

.post-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      overflow: hidden;
      border-radius: 14px;
}

.post-card .thumb {
      width: 100%;
      aspect-ratio: 16/10;
      object-fit: cover;
      display: block;
}

.post-card .pc-body {
      padding: 18px 20px;
      display: flex;
      flex-direction: column;
      flex: 1;
}

.post-card .pc-body h3 {
      font-size: 17px;
      margin: 8px 0;
}

.post-card .pc-body p {
      font-size: 14px;
      color: #666;
      flex: 1;
      margin-bottom: 14px;
}

.post-card .btn-primary {
      align-self: flex-start;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
      .blog-layout {
            grid-template-columns: 1fr;
      }

      .blog-sidebar {
            position: static;
            flex-direction: row;
            flex-wrap: wrap;
      }

      .author-card,
      .sidebar-cta,
      .sidebar-recent,
      .sidebar-tags {
            flex: 1 1 280px;
      }
}

@media (max-width: 768px) {
      .grid-3 {
            grid-template-columns: repeat(2, 1fr);
      }

      .testimonial-card {
            flex-basis: calc((100% - 22px) / 2)
      }

      .blog-sidebar {
            flex-direction: column;
      }

      .faq-title {
            font-size: 20px;
      }

      .cta-banner h3 {
            font-size: 22px;
      }

      .share-row {
            gap: 8px;
      }

      .share-btn {
            padding: 7px 14px;
            font-size: 12px;
      }
}

@media (max-width: 480px) {
      .grid-3 {
            grid-template-columns: 1fr;
      }

      .testimonial-card {
            flex-basis: 100%
      }

      .blog-layout {
            gap: 24px;
      }

      .sidebar-stats strong {
            font-size: 16px;
      }

      .cta-banner {
            padding: 30px 20px;
      }
}

.sidebar-recent .recent-thumb {
      width: 90px;
      height: 90px;
      border-radius: 12px;
      overflow: hidden;
      flex-shrink: 0;
}

.sidebar-recent .thumb.recent-thumb {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      text-align: center;
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      line-height: 1.35;
}

.sidebar-recent .thumb.t1 {
      background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.sidebar-recent .thumb.t2 {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.sidebar-recent .thumb.t3 {
      background: linear-gradient(135deg, #6D0012, var(--primary-light));
}

.sidebar-recent .thumb.recent-thumb span {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
}

.footer-social {
      display: flex;
      gap: 12px;
      margin-top: 15px;
}

.footer-social a {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .08);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 18px;
      text-decoration: none;
      transition: .3s ease;
}

.footer-social a:hover {
      background: var(--primary);
      color: #fff;
      transform: translateY(-3px);
}

/* Topbar Social Icons */
.tb-right {
      display: flex;
      align-items: center;
      gap: 10px;
}

.tb-right a {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: #fff;
      font-size: 18px;
      text-decoration: none;
      border: 1px solid rgba(255, 255, 255, 0.25);
      transition: all 0.3s ease;
}

.tb-right a:hover {
      background: #fff;
      color: var(--primary);
      border-color: #fff;
      transform: translateY(-2px);
}

.hero-image {
      display: flex;
      justify-content: center;
      align-items: center;
}

.hero-preview {
      width: 100%;
      max-width: 600px;
      height: auto;
      display: block;
      border-radius: 20px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
      transition: .3s ease;
}

.hero-preview:hover {
      transform: translateY(-6px);
      box-shadow: 0 30px 60px rgba(0, 0, 0, .2);
}

@media (max-width:991px) {
      .hero-image {
            margin-top: 2rem;
      }

      .hero-preview {
            max-width: 500px;
      }
}

@media (max-width:576px) {
      .hero-preview {
            max-width: 100%;
            border-radius: 14px;
      }
}

.faq-section .grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.faq-section .card{
    height:100%;
}

@media (max-width:768px){
    .faq-section .grid-2{
        grid-template-columns:1fr;
    }
}

.faq-section{
      background: #ffffff;
}

/* ---------- Gallery Lightbox Modal ---------- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-container {
    position: relative;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px 70px;
    box-sizing: border-box;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
    user-select: none;
    cursor: default;
}

.lightbox-caption {
    margin-top: 16px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lightbox-caption .title {
    font-size: 16.5px;
    font-weight: 600;
    color: #f8fafc;
}

.lightbox-caption .counter {
    font-size: 12.5px;
    color: #94a3b8;
    font-family: 'Space Mono', monospace;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(208, 2, 27, 0.85);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10001;
    user-select: none;
}

.lightbox-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 640px) {
    .lightbox-container {
        padding: 20px 10px;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
}