/* =============================================================================
   pages-base.css  —  Shared components for all secondary (non-home) pages
                      in the dark theme. Loaded after tokens.css + shell.css
                      via base.html.

   Sections:
     1. Page hero (title + subtitle + breadcrumbs + stat pills + decorations)
     2. Page main wrapper + grid (article + sidebar)
     3. Page cards & richtext content
     4. Lists (simple-list, checklist), dividers, callouts
     5. Side cards (sidebar widgets)
     6. Buttons (primary / ghost / navy)
     7. Form elements (inputs, textarea, search)
     8. Pagination
     9. FAQ accordion (details/summary)
    10. Team grid (about page)
    11. Code-of-decoration helper (.deco) — for per-page hero accents
    12. Tables
    13. Misc helpers
   ========================================================================== */

/* =============================================================================
   1. PAGE HERO
   ----
   Used by: about, terms, faq, contact, articles, certificate_verify, etc.
   Markup:
     <section class="page-hero">
       <div class="container page-hero-inner">
         <nav class="breadcrumbs">…</nav>
         <h1 class="page-title">… <span class="accent">…</span></h1>
         <p class="page-subtitle">…</p>
         <div class="hero-stats">…</div>
       </div>
     </section>
   ========================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 44px;
    background:
        radial-gradient(ellipse 1000px 400px at 80% 0%, rgba(255, 194, 24, .07), transparent 70%),
        radial-gradient(ellipse 800px 400px at 10% 100%, rgba(65, 84, 173, .14), transparent 65%);
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(255, 194, 24, .35) 50%, transparent);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .page-hero { padding: 40px 0 32px; }
}

/* — Breadcrumbs — */
.breadcrumbs {
    display: inline-flex; align-items: center; flex-wrap: wrap;
    gap: 8px;
    padding: 7px 14px;
    margin: 0 0 18px;
    border-radius: var(--r-pill);
    background: var(--surface-1);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: .8rem;
    color: var(--ink-muted);
}
.breadcrumbs a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 999px;
    transition: color var(--t-fast);
}
.breadcrumbs a:hover { color: var(--gold-300); }
.breadcrumbs span[aria-hidden="true"] {
    color: var(--ink-faint);
}
.breadcrumbs .aria-current { color: var(--gold-300); font-weight: 700; }

/* — Page title with optional gold accent span — */
.page-title {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--ink-white);
    letter-spacing: -.012em;
    margin: 0 0 14px;
}
.page-title .accent {
    position: relative;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.page-title .accent::after {
    content: ""; position: absolute;
    left: 0; right: 0; bottom: -2px; height: 3px;
    background: linear-gradient(90deg,
        rgba(255, 194, 24, 0) 0%,
        rgba(255, 194, 24, .55) 30%,
        rgba(255, 194, 24, .75) 70%,
        rgba(255, 194, 24, 0) 100%);
    border-radius: 999px;
}

/* — Page subtitle — */
.page-subtitle {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.95;
    max-width: 72ch;
    margin: 0 0 22px;
    padding-right: 14px;
    border-right: 5px solid var(--gold-500);
}
.page-subtitle:empty { display: none !important; }

/* — Hero stat pills — */
.hero-stats {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 18px;
}
.hero-stat-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 600;
    transition: all var(--t-fast);
}
.hero-stat-pill:hover {
    border-color: var(--gold-line);
    background: var(--surface-gold);
    color: var(--gold-300);
}
.hero-stat-pill__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255, 194, 24, .12);
    color: var(--gold-300);
    font-size: .85rem;
}
.hero-stat-pill__value {
    color: var(--gold-300);
    font-weight: 800;
    margin-inline-end: 2px;
}

/* =============================================================================
   2. PAGE MAIN + GRID
   ========================================================================== */
.page-main {
    padding: 36px 0 64px;
    position: relative;
    z-index: 1;
}

/* Article (right) + sidebar (left in RTL) */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
}
.page-grid--single,
.page-grid2 { grid-template-columns: 1fr; }

@media (max-width: 880px) {
    .page-grid { grid-template-columns: 1fr; gap: 22px; }
    .side-card { order: 2; }
}

/* =============================================================================
   3. PAGE CARDS + RICHTEXT CONTENT
   ========================================================================== */
.page-card {
    position: relative;
    padding: 28px 28px 24px;
    border-radius: var(--r-lg);
    background: var(--surface-1);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
    .page-card { padding: 22px 18px 20px; border-radius: var(--r-md); }
}

.page-h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink-white);
    margin: 26px 0 14px;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 1px solid var(--line);
}
.page-h2:first-child { margin-top: 0; }
.page-h2::after {
    content: ""; position: absolute;
    bottom: -1px; right: 0;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
}

.page-h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink-white);
    margin: 20px 0 12px;
}

/* — Richtext: rich content from CMS, must look luxurious on dark — */
.richtext {
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 2;
}
.richtext p { margin: 0 0 1em; color: var(--ink-soft); }
.richtext h1, .richtext h2, .richtext h3, .richtext h4 {
    color: var(--ink-white);
    margin-top: 1.4em;
}
.richtext h2 { font-size: 1.2rem; }
.richtext h3 { font-size: 1.05rem; }
.richtext a {
    color: var(--gold-300);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 194, 24, .35);
    transition: all var(--t-fast);
}
.richtext a:hover {
    color: var(--gold-400);
    border-bottom-color: var(--gold-400);
}
.richtext strong { color: var(--ink-white); font-weight: 800; }
.richtext code {
    padding: 2px 8px;
    background: rgba(255, 194, 24, .08);
    border: 1px solid var(--gold-line);
    border-radius: 6px;
    color: var(--gold-300);
    font-size: .9em;
}
.richtext pre {
    padding: 16px;
    background: var(--navy-950);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--ink-soft);
    overflow-x: auto;
}
.richtext blockquote {
    margin: 1.2em 0;
    padding: 14px 18px;
    border-right: 3px solid var(--gold-500);
    background: var(--surface-1);
    color: var(--ink-soft);
    border-radius: 0 var(--r) var(--r) 0;
}
.richtext ul, .richtext ol {
    color: var(--ink-soft);
    padding-right: 1.5em;
}
.richtext li { margin-bottom: .4em; }
.richtext img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r);
    border: 1px solid var(--line);
    margin: 1em 0;
}
.richtext hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.5em 0;
}
.richtext table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background: var(--surface-1);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
}
.richtext th,
.richtext td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid var(--line);
}
.richtext th {
    background: var(--surface-2);
    color: var(--ink-white);
    font-weight: 800;
}

/* =============================================================================
   4. LISTS, DIVIDERS, CALLOUTS
   ========================================================================== */
.checklist {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.checklist li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r);
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: border-color var(--t-fast);
}
.checklist li:hover { border-color: var(--gold-line); }
.checklist li i {
    color: var(--gold-400);
    font-size: 1.1em;
    margin-top: 4px;
    flex-shrink: 0;
}

.simple-list {
    list-style: none; margin: 0; padding: 0;
}
.simple-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    text-align: right;
    font-weight: 500;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.simple-list li:last-child { border-bottom: 0; }
.simple-list i {
    color: var(--gold-400);
    font-size: 1em;
    flex-shrink: 0;
}
.simple-list .list-link,
.simple-list a {
    color: var(--ink-soft);
    text-decoration: none;
    flex: 1;
    transition: color var(--t-fast);
    margin-bottom: 5px;
}
.simple-list .list-link:hover,
.simple-list a:hover { color: var(--gold-300); }

/* — Callout: featured info block — */
.callout {
    padding: 18px 22px;
    border-radius: var(--r);
    background: linear-gradient(135deg,
        rgba(255, 194, 24, .06),
        rgba(65, 84, 173, .06));
    border: 1px solid var(--gold-line);
    color: var(--ink-soft);
}
.callout-text { color: var(--ink-soft); }

/* =============================================================================
   5. SIDE CARDS (sidebar widgets)
   ========================================================================== */
.side-card {
    /* same .page-card base; differentiated only by what goes inside */
}
.aside-card {
    padding: 18px 20px;
    border-radius: var(--r);
    background: var(--surface-1);
    border: 1px solid var(--line);
    margin-bottom: 14px;
}
.aside-card:last-child { margin-bottom: 0; }
.aside-card.sticky {
    position: sticky;
    top: 100px;
}
.card-title,
.side-title {
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink-white);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.card-title::after,
.side-title::after {
    content: ""; position: absolute;
    bottom: -1px; right: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
}
.side-text {
    color: var(--ink-soft);
    font-size: .9rem;
    margin: 0 0 8px;
    font-weight: 600;
}
.side-text:first-child { font-weight: 800; color: var(--ink-white); }

/* — A "search button" CTA pill — */
.a-search-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: auto;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-900);
    font-weight: 800; font-size: .88rem;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    text-decoration: none;
    margin-top: 6px;
}
.a-search-btn.w-100 { width: 100%; }
.a-search-btn:hover {
    transform: translateY(-2px);
    color: var(--navy-900);
}

/* =============================================================================
   6. BUTTONS  —  generic button system
   ========================================================================== */
.btn-primary,
.btn-gold {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500), var(--gold-600));
    color: var(--navy-900) !important;
    font-weight: 800; font-size: .95rem;
    border: none;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    cursor: pointer; text-decoration: none;
    position: relative; overflow: hidden;
}
.btn-primary::before,
.btn-gold::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -85%; width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-22deg); transition: left .85s ease; pointer-events: none;
}
.btn-primary:hover,
.btn-gold:hover { transform: translateY(-2px); }
.btn-primary:hover::before,
.btn-gold:hover::before { left: 130%; }

.btn-ghost,
.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1.5px solid var(--line-strong);
    color: var(--ink-white);
    font-weight: 700; font-size: .95rem;
    backdrop-filter: blur(8px);
    transition: all var(--t-fast);
    cursor: pointer; text-decoration: none;
}
.btn-ghost:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--gold-line);
    color: var(--gold-300);
    background: var(--surface-gold);
}

.btn-navy {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--navy-500), var(--navy-700));
    color: var(--ink-white) !important;
    font-weight: 700; font-size: .95rem;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 14px 32px rgba(65, 84, 173, .40);
    transition: all var(--t-fast);
    cursor: pointer; text-decoration: none;
}
.btn-navy:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(65, 84, 173, .55);
}

/* — Button list / row used in cards — */
.btn-list,
.btn-list2 {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 12px;
}

/* =============================================================================
   7. FORM ELEMENTS (inputs, textarea, search)
   ========================================================================== */
.form-row {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 16px;
}
.form-label,
label.form-label {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
select,
textarea,
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-1);
    color: var(--ink-white);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color var(--t-fast), background var(--t-fast),
                box-shadow var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}
textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
}
input::placeholder,
textarea::placeholder { color: var(--ink-faint); }
input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); background: var(--surface-2); }
input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--gold-500);
    background: var(--surface-2);
    box-shadow: 0 0 0 4px rgba(255, 194, 24, .12);
}

/* — Searchbar (faq, articles, exams) — */
.searchbar {
    position: relative;
    display: flex; align-items: center;
    background: var(--surface-1);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-pill);
    padding: 4px 6px 4px 14px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    margin-bottom: 22px;
}
.searchbar:focus-within {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(255, 194, 24, .12);
}
.searchbar input,
.searchbar input[type="search"],
.searchbar input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 8px;
    color: var(--ink-white);
    box-shadow: none;
}
.searchbar input:focus { box-shadow: none; }
.searchbar input::placeholder { color: var(--ink-faint); }

.searchbar .search-btn,
.searchbar button[type="submit"],
.search-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-900);
    border: none;
    font-weight: 800; font-size: .85rem;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-fast);
}
.searchbar .search-btn:hover,
.search-btn:hover { transform: translateY(-1px); }

.searchbar .clear-search {
    background: transparent;
    color: var(--ink-faint);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 10px;
    transition: color var(--t-fast);
}
.searchbar .clear-search:hover { color: var(--gold-300); }

/* =============================================================================
   8. PAGINATION
   ========================================================================== */
.pagination {
    display: flex; justify-content: center;
    margin: 28px 0 0;
    list-style: none; padding: 0;
}
.pagination-inner {
    display: inline-flex; gap: 6px;
    padding: 6px;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}
.pagination .page-link,
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 10px;
    border-radius: var(--r-pill);
    color: var(--ink-soft);
    font-weight: 700; font-size: .85rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all var(--t-fast);
}
.pagination .page-link:hover,
.pagination a:hover {
    color: var(--gold-300);
    border-color: var(--gold-line);
    background: var(--surface-gold);
}
.pagination .active .page-link,
.pagination .active span,
.pagination .is-current {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-900) !important;
    box-shadow: var(--shadow-gold);
}

/* =============================================================================
   9. FAQ ACCORDION  (<details><summary>)
   ========================================================================== */
.faq-boxs { margin-bottom: 18px; }
.faq-title {
    font-size: 1.1rem; font-weight: 800;
    color: var(--ink-white);
    margin: 22px 0 12px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
}
.faq-meta {
    color: var(--ink-muted);
    font-size: .82rem;
    margin: -8px 0 14px;
}

.faq-item {
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 10px;
    transition: border-color var(--t-fast), background var(--t-fast);
    overflow: hidden;
}
.faq-item:hover { border-color: var(--gold-line); }
.faq-item[open] {
    border-color: var(--gold-line);
    background: rgba(255, 194, 24, .03);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    color: var(--ink-white);
    font-weight: 700; font-size: .95rem;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--gold-300);
    font-size: 1rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform var(--t-fast), background var(--t-fast);
}
.faq-item[open] summary::after {
    content: "−";
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: transparent;
}
.faq-a {
    padding: 4px 18px 18px;
    color: var(--ink-soft);
}

/* =============================================================================
   10. TEAM GRID (about page)
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.team-card {
    padding: 22px 18px;
    border-radius: var(--r);
    background: var(--surface-1);
    border: 1px solid var(--line);
    text-align: center;
    transition: all var(--t-fast);
}
.team-card:hover {
    border-color: var(--gold-line);
    background: var(--surface-gold);
    transform: translateY(-3px);
}
.team-photo,
.team-card .avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 2px solid var(--gold-line);
    background: var(--navy-800);
}
.team-card .avatar {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--gold-400);
    font-size: 1.8rem;
}
.team-name {
    font-size: 1rem; font-weight: 800;
    color: var(--ink-white);
    margin-bottom: 2px;
}
.team-role {
    font-size: .82rem;
    color: var(--gold-300);
    margin-bottom: 8px;
}
.team-linkedin {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: .8rem; font-weight: 700;
    text-decoration: none;
    transition: all var(--t-fast);
}
.team-linkedin:hover {
    color: var(--gold-300);
    border-color: var(--gold-line);
}

/* =============================================================================
   11. PER-PAGE DECORATIONS  —  use .deco as a base class
   ----
   Pages can add per-page decoration blocks (about-deco, terms-deco, faq-deco
   etc.) as they did before; below is a dark-friendly base they can extend.
   ========================================================================== */
.deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
    border: 1px solid var(--line-strong);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .25);
    color: var(--gold-300);
}
.deco--gold {
    background: linear-gradient(135deg, rgba(255, 211, 74, .14), rgba(255, 194, 24, .08));
    border-color: var(--gold-line);
    color: var(--gold-300);
}
.deco--navy {
    background: linear-gradient(135deg, rgba(65, 84, 173, .25), rgba(54, 71, 130, .15));
    border-color: rgba(138, 150, 209, .22);
    color: var(--navy-200);
}
@media (max-width: 980px) { .deco { display: none; } }

/* =============================================================================
   12. TABLES (when rendered outside richtext)
   ========================================================================== */
table.table,
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    color: var(--ink-soft);
}
.data-table th,
.data-table td,
table.table th,
table.table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--line);
}
.data-table th,
table.table th {
    background: var(--surface-2);
    color: var(--ink-white);
    font-weight: 800;
    font-size: .9rem;
}
.data-table tr:last-child td,
table.table tr:last-child td { border-bottom: none; }
.data-table tr:hover td,
table.table tr:hover td { background: var(--surface-1); }

/* =============================================================================
   13. MISC HELPERS
   ========================================================================== */
.text-gold   { color: var(--gold-300) !important; }
.text-white  { color: var(--ink-white) !important; }
.text-muted  { color: var(--ink-muted) !important; }
.text-faint  { color: var(--ink-faint) !important; }
.bg-surface  { background: var(--surface-1); }

/* tiny chip / badge */
.chip,
.badge-soft {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--surface-gold);
    border: 1px solid var(--gold-line);
    color: var(--gold-300);
    font-size: .76rem;
    font-weight: 700;
}

/* ensure RTL spacing utilities work */
.pr-0 { padding-right: 0 !important; }
.w-100 { width: 100%; }

/* =============================================================================
   14. LIGHT-MODE OVERRIDES  for shared components
   ----
   Most components auto-adapt because they use the semantic tokens
   (--surface-1, --line, --ink-*). We only override the few hardcoded
   gradients here.
   ========================================================================== */
[data-theme="light"] .page-hero {
    background:
        radial-gradient(ellipse 1000px 400px at 80% 0%, rgba(255, 194, 24, .12), transparent 70%),
        radial-gradient(ellipse 800px 400px at 10% 100%, rgba(65, 84, 173, .08), transparent 65%);
}
[data-theme="light"] .richtext pre {
    background: rgba(28, 36, 71, .04);
    color: var(--navy-900);
}
[data-theme="light"] .richtext code {
    background: rgba(255, 194, 24, .12);
    color: var(--gold-700);
}
[data-theme="light"] .richtext a { color: var(--gold-700); }
[data-theme="light"] .richtext a:hover { color: var(--gold-600); }
[data-theme="light"] .breadcrumbs .aria-current,
[data-theme="light"] .breadcrumbs span[class*="aria-current"] { color: var(--gold-700); }
[data-theme="light"] .hero-stat-pill__icon { background: rgba(255, 194, 24, .15); color: var(--gold-700); }
[data-theme="light"] .hero-stat-pill__value { color: var(--gold-700); }
[data-theme="light"] .hero-stat-pill:hover { color: var(--gold-700); }
[data-theme="light"] .a-search-btn,
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-gold,
[data-theme="light"] .footer-ticket {
    /* gold buttons stay gold + navy text in both modes — already correct */
}
[data-theme="light"] .btn-ghost,
[data-theme="light"] .btn-secondary { color: var(--navy-700); }
[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .btn-secondary:hover { color: var(--gold-700); }
[data-theme="light"] .faq-item summary::after {
    color: var(--gold-700);
}
[data-theme="light"] .faq-item[open] summary::after {
    color: var(--navy-900);
}
[data-theme="light"] .checklist li i,
[data-theme="light"] .simple-list i { color: var(--gold-600); }
[data-theme="light"] .team-card .avatar { background: rgba(28, 36, 71, .06); color: var(--gold-700); }
[data-theme="light"] .team-role { color: var(--gold-700); }
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select,
[data-theme="light"] .form-control {
    background: #ffffff;
    color: var(--navy-900);
    border-color: rgba(28, 36, 71, .14);
}
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus,
[data-theme="light"] .form-control:focus {
    background: #ffffff;
    border-color: var(--gold-500);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: rgba(28, 36, 71, .42); }
[data-theme="light"] .searchbar { background: #ffffff; }
[data-theme="light"] .pagination-inner { background: rgba(255, 255, 255, .8); }
