/* ==========================================================================
   KAYASWARA — Design System
   Penerbit buku akademik. Tenang, bersih, biru-putih, akademis.
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & Base
   3.  Typography
   4.  Utilities
   5.  Buttons
   6.  Forms
   7.  Header (topbar + navbar + offcanvas)
   8.  Hero & Page Header
   9.  Section primitives
   10. Cards (book, article, service, step, stat, quote)
   11. Catalog toolbar & pagination
   12. Detail layouts
   13. Tracking timeline
   14. Accordion, tables, alerts
   15. Footer
   16. Floating actions
   17. Motion
   18. Responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    /* Brand colours — overridden at runtime by admin settings */
    --primary:   #1A3C5E;
    --secondary: #2E6188;
    --accent:    #B8860B;

    /* Derived neutrals — clean, cool white ground */
    --paper:        #F7F9FB;
    --paper-tint:   #EEF3F7;
    --paper-deep:   #E2EAF1;
    --surface:      #FFFFFF;
    --line:         #DCE5ED;
    --line-strong:  #C0CCD8;

    --ink:        #12212E;
    --ink-soft:   #41525F;
    --ink-muted:  #74838E;

    --brand-soft:  #E7EFF6;
    --accent-soft: #FAF2E0;

    --ok:      #2E7D4F;
    --warn:    #B8860B;
    --danger:  #B3392E;
    --info:    #2C6E8F;

    /* Typography */
    --font-display: 'Source Serif 4', 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shape */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Elevation — restrained, paper-like */
    --shadow-xs: 0 1px 2px rgba(18, 33, 46, .05);
    --shadow-sm: 0 2px 8px rgba(18, 33, 46, .06);
    --shadow-md: 0 8px 24px rgba(18, 33, 46, .08);
    --shadow-lg: 0 18px 48px rgba(18, 33, 46, .12);

    /* Rhythm */
    --section-y: 5.5rem;
    --container-max: 1180px;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* clip, BUKAN hidden: `overflow-x: hidden` menjadikan body sebuah scroll
       container sehingga `position: sticky` pada masthead berhenti bekerja. */
    overflow-x: clip;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s var(--ease);
}
a:hover { color: var(--accent); }

::selection { background: var(--brand-soft); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

/* Padding container disamakan dengan setengah gutter terbesar yang dipakai
   (baris .g-5 memakai margin negatif 24px per sisi). Dengan padding 12px
   bawaan Bootstrap, baris tersebut melebihi lebar layar dan menimbulkan
   geser horizontal 12px di mobile. */
.container, .container-fluid {
    max-width: var(--container-max);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.container-fluid { max-width: none; }

/* Skip link — accessibility for keyboard users.
   Disembunyikan dengan teknik clip, bukan left:-9999px, supaya tidak
   menambah lebar gulir halaman (penyebab geser horizontal di mobile). */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 var(--r-sm) 0;
    font-weight: 600;
}
.skip-link:focus {
    width: auto;
    height: auto;
    padding: .75rem 1.25rem;
    overflow: visible;
    clip-path: none;
    color: #fff;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .display {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.01em;
    margin-top: 0;
}

h1 { font-size: clamp(2.05rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { margin-bottom: 1rem; }

.lead {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: .85rem;
}
.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--accent);
}
.eyebrow-center { justify-content: center; }

.text-accent  { color: var(--accent) !important; }
.text-primary-brand { color: var(--primary) !important; }
.text-ink     { color: var(--ink) !important; }
.text-muted   { color: var(--ink-muted) !important; }

.serif { font-family: var(--font-display); }

/* Long-form article body (blog & synopsis) */
.prose {
    font-size: 1.03rem;
    line-height: 1.85;
    color: var(--ink-soft);
}
.prose h2, .prose h3, .prose h4 { margin: 2rem 0 .85rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.prose li { margin-bottom: .45rem; }
.prose img { border-radius: var(--r-md); margin: 1.5rem 0; }
.prose blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: var(--paper-tint);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--ink);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; margin-bottom: 1.25rem; }
.prose code {
    background: var(--paper-deep);
    padding: .15em .4em;
    border-radius: var(--r-xs);
    font-size: .9em;
}

/* ==========================================================================
   4. UTILITIES
   ========================================================================== */
.bg-paper   { background-color: var(--paper) !important; }
.bg-tint    { background-color: var(--paper-tint) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-brand  { background-color: var(--primary) !important; color: #fff; }

.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

.rounded-md { border-radius: var(--r-md) !important; }
.rounded-lg { border-radius: var(--r-lg) !important; }

.hr-soft {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 2rem 0;
    opacity: 1;
}

.rule-accent {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 1.25rem 0 1.5rem;
}
.rule-center { margin-left: auto; margin-right: auto; }

/* Paper texture band used behind quiet sections */
.paper-grain {
    position: relative;
    background-color: var(--paper-tint);
}
.paper-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(26, 60, 94, .05) 0, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(184, 134, 11, .05) 0, transparent 40%);
}
.paper-grain > * { position: relative; }

/* Badges / chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: var(--r-pill);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--brand-soft);
    color: var(--primary);
    border: 1px solid rgba(26, 60, 94, .14);
    white-space: nowrap;
}
.chip-gold   { background: var(--accent-soft); color: #7A5A0C; border-color: rgba(184, 134, 11, .20); }
.chip-plain  { background: var(--paper-deep); color: var(--ink-soft); border-color: var(--line); }
.chip-outline { background: transparent; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-bd: transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .93rem;
    letter-spacing: .01em;
    padding: .68rem 1.4rem;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: .9rem 1.85rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

.btn-primary,
.btn-primary:focus {
    --btn-bg: var(--primary);
    --btn-fg: #fff;
    --btn-bd: var(--primary);
    box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
    --btn-bg: #14304B;
    --btn-bd: #14304B;
    --btn-fg: #fff;
    box-shadow: var(--shadow-md);
}

.btn-accent,
.btn-accent:focus {
    --btn-bg: var(--accent);
    --btn-fg: #fff;
    --btn-bd: var(--accent);
    box-shadow: var(--shadow-xs);
}
.btn-accent:hover {
    --btn-bg: #96700A;
    --btn-bd: #96700A;
    --btn-fg: #fff;
    box-shadow: var(--shadow-md);
}

.btn-outline-primary,
.btn-outline-primary:focus {
    --btn-fg: var(--primary);
    --btn-bd: var(--line-strong);
    --btn-bg: transparent;
}
.btn-outline-primary:hover {
    --btn-bg: var(--primary);
    --btn-bd: var(--primary);
    --btn-fg: #fff;
}

.btn-ghost,
.btn-ghost:focus {
    --btn-fg: var(--ink);
    --btn-bg: var(--surface);
    --btn-bd: var(--line);
    box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { --btn-bd: var(--line-strong); --btn-fg: var(--primary); }

.btn-light,
.btn-light:focus { --btn-bg: #fff; --btn-fg: var(--primary); --btn-bd: #fff; }
.btn-light:hover { --btn-bg: var(--paper-tint); --btn-fg: var(--primary); --btn-bd: var(--paper-tint); }

.btn-outline-light,
.btn-outline-light:focus { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); --btn-bg: transparent; }
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: #fff; }

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--primary);
}
.btn-link-arrow i { transition: transform .2s var(--ease); }
.btn-link-arrow:hover i { transform: translateX(4px); }

/* ==========================================================================
   6. FORMS
   ========================================================================== */
.form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .4rem;
}
.form-label .req { color: var(--accent); }

.form-control,
.form-select {
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    background-color: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: .68rem .9rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-control::placeholder { color: #9AA7B2; }
.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(46, 97, 136, .14);
    background-color: var(--surface);
}
.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--danger); }

.input-group-text {
    background: var(--paper-tint);
    border: 1.5px solid var(--line);
    border-right: 0;
    color: var(--ink-muted);
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.form-text { font-size: .8rem; color: var(--ink-muted); }
.invalid-feedback { font-size: .8rem; }

.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Panel wrapping a form */
.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.form-panel-head {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-tint);
}
.form-panel-head h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.form-panel-head p { margin: 0; font-size: .87rem; color: var(--ink-muted); }
.form-panel-body { padding: 1.75rem; }

/* Fieldset step marker inside the manuscript form */
.form-step {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1.1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
}
.form-step span {
    width: 26px; height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* File dropzone */
.file-drop {
    position: relative;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-md);
    background: var(--paper-tint);
    padding: 1.6rem 1.25rem;
    text-align: center;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
    cursor: pointer;
}
.file-drop:hover,
.file-drop.dragover { border-color: var(--secondary); background: var(--brand-soft); }
.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-drop-icon { font-size: 1.5rem; color: var(--secondary); margin-bottom: .5rem; }
.file-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .7rem .9rem;
}
.file-chip-remove {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.privacy-note {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: .85rem;
    color: var(--ink-soft);
    background: var(--brand-soft);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
}

/* ==========================================================================
   7. HEADER
   ========================================================================== */
.site-topbar {
    background: var(--primary);
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
}
.site-topbar a { color: rgba(255, 255, 255, .82); }
.site-topbar a:hover { color: #fff; }
.site-topbar .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    padding: .25rem 0;
    flex-wrap: wrap;
}
.topbar-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar-links span, .topbar-links a { display: inline-flex; align-items: center; gap: .4rem; }

.site-header {
    position: sticky;
    top: 0;
    /* 1030 = di atas konten halaman, tetapi tetap di bawah offcanvas (1045)
       dan backdrop-nya (1040) agar laci menu mobile menutup penuh. */
    z-index: 1030;
    /* Latar SOLID sebagai dasar: sebagian browser mobile tidak mendukung
       backdrop-filter, dan latar tembus pandang membuat masthead terlihat
       menyatu dengan konten yang lewat di belakangnya. */
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .site-header {
        background: rgba(247, 249, 251, .94);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
    }
    .site-header.is-stuck { background: rgba(247, 249, 251, .985); }
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header .navbar {
    padding: 1.35rem 0;
    min-height: 94px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    padding: .15rem 0;
}
.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: var(--r-sm);
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -.01em;
}
.brand-sub {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    line-height: 1.3;
    margin-top: .18rem;
}

.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav .nav-link {
    position: relative;
    font-size: .93rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .22rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.main-nav .nav-link:hover { color: var(--ink); }
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link.active { color: var(--primary); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn { padding: .62rem 1.25rem; }

.nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--r-sm);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
}

/* Mobile drawer */
.offcanvas.mobile-nav {
    background: var(--paper);
    width: min(340px, 88vw);
}
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--line); padding: 1.1rem 1.35rem; }
.mobile-nav .offcanvas-title { font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; }
.mobile-nav-list { list-style: none; margin: 0; padding: .75rem 0; }
.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1.35rem;
    color: var(--ink-soft);
    font-weight: 500;
    border-left: 3px solid transparent;
}
.mobile-nav-list a i { width: 20px; text-align: center; color: var(--ink-muted); }
.mobile-nav-list a.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--brand-soft);
    border-left-color: var(--accent);
}
.mobile-nav-list a.active i { color: var(--primary); }
.mobile-nav-foot { padding: 1.25rem 1.35rem; border-top: 1px solid var(--line); margin-top: auto; }

/* ==========================================================================
   8. HERO & PAGE HEADER
   ========================================================================== */
.hero {
    position: relative;
    background: var(--paper);
    padding: clamp(3.5rem, 2rem + 6vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -12%;
    top: -18%;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 97, 136, .10) 0%, rgba(46, 97, 136, 0) 68%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.55rem);
    line-height: 1.14;
    margin-bottom: 1.1rem;
}
.hero-title em {
    font-style: italic;
    color: var(--primary);
}
.hero-lead {
    font-size: clamp(1rem, .95rem + .3vw, 1.13rem);
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.hero-meta-item .num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: block;
}
.hero-meta-item .lbl {
    font-size: .78rem;
    color: var(--ink-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: .3rem;
    display: block;
}

/* Shelf of covers in the hero — a grid, so no cover ever hides another's title */
.hero-art {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
    min-height: 400px;
}
.hero-art-card {
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hero-art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-art-card .book-cover { height: 100%; aspect-ratio: auto; }
.hero-art-card.b1 { grid-row: 1 / span 2; }
.hero-art-card.b2 { grid-column: 2; grid-row: 1; }
.hero-art-card.b3 { grid-column: 2; grid-row: 2; }
.hero-art-frame { display: none; }

/* Compact page header for interior pages */
.page-head {
    background: var(--primary);
    color: #fff;
    padding: clamp(2.75rem, 2rem + 3vw, 4.25rem) 0 clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
    position: relative;
    overflow: hidden;
}
.page-head::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Kedalaman biru-ke-biru. Overlay emas di atas biru menghasilkan
       kesan zaitun, jadi sorotannya memakai nada biru yang lebih terang. */
    background:
        radial-gradient(circle at 88% 12%, rgba(46, 97, 136, .55) 0, transparent 48%),
        radial-gradient(circle at 8% 90%, rgba(255, 255, 255, .07) 0, transparent 40%);
    pointer-events: none;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .6rem; }
.page-head p { color: rgba(255, 255, 255, .82); max-width: 62ch; margin-bottom: 0; }
.page-head .eyebrow { color: rgba(255, 255, 255, .78); }
.page-head .eyebrow::before { background: var(--accent); }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: .82rem;
}
.crumbs li { display: flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .62); }
.crumbs li::after { content: '/'; color: rgba(255, 255, 255, .3); }
.crumbs li:last-child::after { content: ''; }
.crumbs a { color: rgba(255, 255, 255, .82); }
.crumbs a:hover { color: #fff; }
.crumbs-dark li { color: var(--ink-muted); }
.crumbs-dark li::after { color: var(--line-strong); }
.crumbs-dark a { color: var(--ink-soft); }
.crumbs-dark a:hover { color: var(--primary); }

/* ==========================================================================
   9. SECTION PRIMITIVES
   ========================================================================== */
.section { padding: var(--section-y) 0; }
.section-sm { padding: 3.25rem 0; }

.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.section-head-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.section-head-split .section-head { margin-bottom: 0; }

/* Marquee-free logo/partner strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}
.trust-strip-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .86rem;
    font-weight: 500;
    color: var(--ink-muted);
}
.trust-strip-item i { color: var(--secondary); }

/* ==========================================================================
   10. CARDS
   ========================================================================== */
.card-plain {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    height: 100%;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card-plain:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

/* --- Service card --- */
.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.85rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
    width: 48px; height: 48px;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.service-card p { font-size: .92rem; margin-bottom: 1rem; }
.service-list { list-style: none; padding: 0; margin: 0 0 1.15rem; }
.service-list li {
    display: flex;
    gap: .6rem;
    font-size: .88rem;
    padding: .3rem 0;
    color: var(--ink-soft);
}
.service-list li i { color: var(--secondary); font-size: .78rem; margin-top: .42rem; }

/* --- Book / publication card --- */
.book-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.book-cover {
    position: relative;
    aspect-ratio: 3 / 4.2;
    background: linear-gradient(150deg, var(--paper-deep), var(--paper-tint));
    display: grid;
    place-items: center;
    overflow: hidden;
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.book-card:hover .book-cover img { transform: scale(1.035); }
.book-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.15rem 1rem;
    background: linear-gradient(160deg, var(--primary), #12293D);
    color: #fff;
    text-align: left;
}
.book-cover-fallback .bcf-title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-cover-fallback .bcf-mark {
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .72;
}
/* Sits top-right so it never covers the imprint mark on fallback covers */
.book-cover-tag {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
    max-width: calc(100% - 1.4rem);
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-body { padding: 1.05rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.book-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-title a { color: var(--ink); }
.book-title a:hover { color: var(--primary); }
.book-author {
    font-size: .84rem;
    color: var(--ink-muted);
    margin-bottom: .7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-foot {
    margin-top: auto;
    padding-top: .7rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .78rem;
    color: var(--ink-muted);
}

/* --- Article card --- */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-thumb {
    aspect-ratio: 16 / 9;
    background: var(--paper-deep);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--line-strong);
    font-size: 1.6rem;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    font-size: .78rem;
    color: var(--ink-muted);
    margin-bottom: .6rem;
}
.article-title { font-size: 1.12rem; line-height: 1.35; margin-bottom: .5rem; }
.article-title a { color: var(--ink); }
.article-title a:hover { color: var(--primary); }
.article-excerpt {
    font-size: .9rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-body .btn-link-arrow { margin-top: auto; }

/* --- Numbered process step --- */
.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.6rem 1.6rem;
    height: 100%;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--paper-deep);
    margin-bottom: .5rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step-card p { font-size: .9rem; margin-bottom: 0; }
.step-card .step-tag {
    display: inline-block;
    margin-top: .9rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--secondary);
}

/* Vertical process rail (Proses page) */
.rail { position: relative; padding-left: 2.75rem; }
.rail::before {
    content: '';
    position: absolute;
    left: 15px;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary), var(--line));
}
.rail-item { position: relative; padding-bottom: 2.25rem; }
.rail-item:last-child { padding-bottom: 0; }
.rail-dot {
    position: absolute;
    left: -2.75rem;
    top: .15rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--secondary);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
}
.rail-item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.rail-item p { font-size: .93rem; margin-bottom: .5rem; }
.rail-note {
    font-size: .82rem;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* --- Stat / figure --- */
.figure-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.5rem 1.35rem;
    height: 100%;
    text-align: center;
}
.figure-card .num {
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.figure-card .lbl {
    font-size: .82rem;
    color: var(--ink-muted);
    margin-top: .45rem;
}

/* --- Quote / testimonial --- */
.quote-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
    padding: 1.75rem;
    height: 100%;
}
.quote-card blockquote {
    font-family: var(--font-display);
    font-size: 1.03rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1.15rem;
}
.quote-person { display: flex; align-items: center; gap: .8rem; }
.quote-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .9rem;
    flex: 0 0 42px;
}
.quote-person .nm { font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.quote-person .rl { font-size: .8rem; color: var(--ink-muted); }

/* --- Feature row (image + text) --- */
.feature-media {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-tint);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex;
    gap: .75rem;
    padding: .5rem 0;
    font-size: .95rem;
    color: var(--ink-soft);
}
.check-list li i {
    color: var(--secondary);
    margin-top: .35rem;
    font-size: .85rem;
}

/* --- CTA band --- */
.cta-band {
    position: relative;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-lg);
    padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 8%, rgba(46, 97, 136, .55) 0, transparent 45%),
        radial-gradient(circle at 4% 96%, rgba(255, 255, 255, .08) 0, transparent 38%);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255, 255, 255, .84); margin-bottom: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- Pricing --- */
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.price-flag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: var(--r-pill);
    white-space: nowrap;
}
.price-name { font-size: 1.3rem; margin-bottom: .35rem; }
.price-desc { font-size: .88rem; color: var(--ink-muted); min-height: 3.2rem; }
.price-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0 .2rem;
}
.price-hint { font-size: .8rem; color: var(--ink-muted); margin-bottom: 1.25rem; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.price-features li {
    display: flex;
    gap: .65rem;
    font-size: .89rem;
    padding: .42rem 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-soft);
}
.price-features li:last-child { border-bottom: 0; }
.price-features li i { margin-top: .35rem; font-size: .8rem; color: var(--secondary); }
.price-features li.off { color: var(--ink-muted); }
.price-features li.off i { color: var(--line-strong); }
.price-card .btn { margin-top: auto; }

.compare-table {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: .9rem;
}
.compare-table th, .compare-table td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.compare-table thead th {
    background: var(--paper-tint);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}
.compare-table thead th.is-featured { background: var(--primary); color: #fff; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .group-row td {
    background: var(--paper-tint);
    font-weight: 700;
    color: var(--ink);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.compare-yes { color: var(--secondary); }
.compare-no  { color: var(--line-strong); }

/* ==========================================================================
   11. CATALOG TOOLBAR & PAGINATION
   ========================================================================== */
.catalog-toolbar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xs);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem 1rem;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--line);
    background: var(--surface);
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all .2s var(--ease);
}
.filter-pill:hover { border-color: var(--secondary); color: var(--primary); }
.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.filter-pill .cnt { font-size: .74rem; opacity: .75; }

.result-count { font-size: .86rem; color: var(--ink-muted); }

.pagination { gap: .3rem; }
.pagination .page-link {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--ink-soft);
    font-size: .88rem;
    font-weight: 500;
    padding: .45rem .85rem;
    background: var(--surface);
}
.pagination .page-link:hover { background: var(--paper-tint); color: var(--primary); border-color: var(--line-strong); }
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
}
.empty-state i { font-size: 2.25rem; color: var(--line-strong); margin-bottom: 1rem; display: block; }
.empty-state h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.empty-state p { font-size: .92rem; color: var(--ink-muted); margin-bottom: 1.25rem; }

/* ==========================================================================
   12. DETAIL LAYOUTS
   ========================================================================== */
.detail-cover {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    background: var(--paper-tint);
    aspect-ratio: 3 / 4.2;
    display: grid;
    place-items: center;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.biblio-table { width: 100%; font-size: .9rem; }
.biblio-table th, .biblio-table td {
    padding: .62rem .25rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.biblio-table th {
    width: 38%;
    font-weight: 500;
    color: var(--ink-muted);
    font-size: .84rem;
    white-space: nowrap;
}
.biblio-table td { color: var(--ink); font-weight: 500; }
.biblio-table tr:last-child th, .biblio-table tr:last-child td { border-bottom: 0; }

.side-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.4rem 1.5rem;
}
.side-panel h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
}
.side-panel + .side-panel { margin-top: 1.25rem; }

.contact-row {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic {
    width: 38px; height: 38px;
    flex: 0 0 38px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
}
.contact-row .lb { font-size: .78rem; color: var(--ink-muted); }
.contact-row .vl { font-weight: 600; color: var(--ink); font-size: .93rem; word-break: break-word; }

/* Team / editorial board */
.person-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.5rem;
    height: 100%;
    text-align: center;
}
.person-avatar {
    width: 68px; height: 68px;
    margin: 0 auto .9rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}
.person-card h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.person-role { font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.person-card p { font-size: .86rem; color: var(--ink-muted); margin-bottom: 0; }

/* Legal / identity block */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.legal-cell { background: var(--surface); padding: 1.15rem 1.25rem; }
.legal-cell .lb {
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: .3rem;
}
.legal-cell .vl { font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ==========================================================================
   13. TRACKING
   ========================================================================== */
.track-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
    text-align: center;
}
.track-panel-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1.25rem;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}
.track-form { display: flex; gap: .65rem; flex-wrap: wrap; }
.track-form .form-control {
    flex: 1 1 240px;
    text-align: center;
    letter-spacing: .09em;
    font-weight: 600;
    text-transform: uppercase;
}

.track-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.track-summary-head {
    background: var(--primary);
    color: #fff;
    padding: 1.35rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.track-summary-head .lb { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; opacity: .78; }
.track-summary-head .code {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 0;
    color: #fff;
}
.track-summary-body { padding: 1.6rem; }
.track-field { padding: .55rem 0; }
.track-field .lb { font-size: .76rem; color: var(--ink-muted); display: block; }
.track-field .vl { font-weight: 600; color: var(--ink); font-size: .95rem; }

.track-progress { margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.track-progress .progress { height: 8px; background: var(--paper-deep); border-radius: var(--r-pill); }
.track-progress .progress-bar { background: var(--secondary); border-radius: var(--r-pill); transition: width .8s var(--ease); }

.tl { position: relative; padding-left: 2.6rem; }
.tl::before {
    content: '';
    position: absolute;
    left: 13px;
    top: .35rem;
    bottom: .35rem;
    width: 2px;
    background: var(--line);
}
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 700;
    background: var(--paper-deep);
    color: var(--ink-muted);
    border: 2px solid var(--paper);
}
.tl-dot.done { background: var(--secondary); color: #fff; }
.tl-dot.active { background: var(--accent); color: #fff; }
.tl-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: .95rem 1.15rem;
}
.tl-item.is-done .tl-body { border-color: rgba(46, 97, 136, .30); }
.tl-item.is-active .tl-body { border-color: rgba(184, 134, 11, .38); background: #F7FAFD; }
.tl-title { font-size: 1rem; margin-bottom: .25rem; }
.tl-desc { font-size: .88rem; color: var(--ink-soft); margin-bottom: .4rem; }
.tl-stamp { font-size: .78rem; color: var(--ink-muted); display: inline-flex; align-items: center; gap: .35rem; }
.tl-stamp.now { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   14. ACCORDION, TABLES, ALERTS
   ========================================================================== */
.faq .accordion-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq .accordion-button {
    font-family: var(--font-display);
    font-size: 1.03rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    padding: 1.05rem 1.35rem;
    box-shadow: none;
}
.faq .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--primary); }
.faq .accordion-button:focus { box-shadow: none; border-color: transparent; }
.faq .accordion-button::after {
    background-size: 1rem;
    width: 1rem; height: 1rem;
}
.faq .accordion-body { padding: 1.15rem 1.35rem; font-size: .94rem; color: var(--ink-soft); }

.alert {
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: .92rem;
    padding: .9rem 1.15rem;
}
.alert-success { background: var(--brand-soft); border-color: rgba(46, 125, 79, .25); color: #1F5637; }
.alert-danger  { background: #FBEDEC; border-color: rgba(179, 57, 46, .22); color: #8A2C23; }
.alert-warning { background: var(--accent-soft); border-color: rgba(184, 134, 11, .25); color: #7A5A0C; }
.alert-info    { background: #EAF2F6; border-color: rgba(44, 110, 143, .22); color: #23566F; }

.notice {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: var(--paper-tint);
    border: 1px solid var(--line);
    border-left: 3px solid var(--secondary);
    border-radius: var(--r-sm);
    padding: 1rem 1.15rem;
    font-size: .9rem;
    color: var(--ink-soft);
}
.notice i { color: var(--secondary); margin-top: .2rem; }

.flash-stack {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 1090;
    width: min(360px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer {
    background: #13293C;
    color: rgba(255, 255, 255, .7);
    margin-top: auto;
}
.footer-main { padding: 4rem 0 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .1); }
.footer-brand .brand-name { color: #fff; font-size: 1.18rem; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .55); }
.footer-about { font-size: .9rem; line-height: 1.75; color: rgba(255, 255, 255, .66); max-width: 40ch; }

.footer-heading {
    font-family: var(--font-body);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .68); font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: .89rem;
    margin-bottom: .8rem;
    line-height: 1.6;
}
.footer-contact i { color: var(--accent); margin-top: .28rem; width: 15px; flex: 0 0 15px; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .75);
    display: grid;
    place-items: center;
    transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.25rem 0;
    font-size: .83rem;
}
.footer-bottom .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, .65); }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ==========================================================================
   16. FLOATING ACTIONS
   ========================================================================== */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1FA855;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    box-shadow: var(--shadow-md);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); color: #fff; box-shadow: var(--shadow-lg); }

.to-top {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 1049;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--primary);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   17. MOTION
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
    :root { --section-y: 4.5rem; }
}

@media (max-width: 991.98px) {
    :root { --section-y: 3.75rem; }

    .hero-art { min-height: 260px; margin-top: 2.5rem; }
    .hero-lead { max-width: none; }
    .section-head-split { align-items: flex-start; }
    .footer-main { padding: 3rem 0 2rem; }
}

@media (max-width: 767.98px) {
    :root { --section-y: 3.25rem; }

    body { font-size: .97rem; }
    .site-topbar { display: none; }
    .site-header .navbar { padding: 1rem 0; min-height: 78px; }
    .hero-meta { gap: 1.25rem 2rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .track-form .form-control { flex: 1 1 100%; }
    .track-form .btn { width: 100%; }
    .cta-actions .btn { flex: 1 1 100%; }
    .rail { padding-left: 2.4rem; }
    .rail-dot { left: -2.4rem; }
    .flash-stack { top: 76px; right: 12px; left: 12px; width: auto; }
    .wa-float { width: 48px; height: 48px; font-size: 1.3rem; }
}

@media print {
    .site-header, .site-topbar, .site-footer, .wa-float, .to-top, .btn { display: none !important; }
    body { background: #fff; color: #000; }
}
