/* =====================================================================
   iCERTGLOBAL BLOG — "Field Notes" design system
   Palette:   ink #101B2D / ink-soft #1C2C48 / paper #EDF0F0 / surface #FFF
              gold #2563EB / gold-deep #1D4ED8 / teal #0E6E5E
   Type:      Fraunces (display) + Inter (body) + IBM Plex Mono (data/labels)
   ===================================================================== */

:root {
    --ink: #101B2D;
    --ink-soft: #1C2C48;
    --paper: #EDF0F0;
    --surface: #FFFFFF;
    --gold: #2563EB;
    --gold-deep: #1D4ED8;
    --teal: #0E6E5E;
    --text: #1A2333;
    --muted: #626C7A;
    --line: #E1E5E4;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 10px 30px rgba(16, 27, 45, 0.07);
    --shadow-sm: 0 3px 10px rgba(16, 27, 45, 0.05);
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    font-family: var(--font-body);
}
@media (min-width: 1400px) {
    .container { max-width: 1300px !important; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    padding-top: 0 !important;
    -webkit-font-smoothing: antialiased;
}
#prefooter { background: var(--ink); color: #fff; padding-top: 40px; }
#prefooter a { color: #fff; }
a { color: var(--teal); }
a:hover { text-decoration: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- Reveal-on-scroll for cards --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.blog-post-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.blog-post-item.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   HERO — ink-navy registry panel with a wax-seal signature mark (blog listing)
   ===================================================================== */
.hero-section {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(37,99,235,0.16) 0%, transparent 45%),
        linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #fff;
    padding: 3.75rem 0 3.25rem;
    margin-top: 4rem;
    border-bottom: 3px solid var(--gold);
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 340px;
    align-items: center;
    gap: 2.5rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93C5FD;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}
.hero-eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.9rem;
    line-height: 1.12;
    margin: 0.7rem 0 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.75s ease-out 0.1s forwards;
}
.hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #C7D0DE;
    margin: 0 0 1.9rem;
    opacity: 0;
    animation: fadeInUp 0.75s ease-out 0.2s forwards;
}
.search-form {
    position: relative;
    max-width: 520px;
    opacity: 0;
    animation: fadeInUp 0.75s ease-out 0.32s forwards;
}
.search-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9FADC2;
    margin-bottom: 0.5rem;
}
.search-box { position: relative; }
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}
.search-input {
    width: 100%;
    height: 52px;
    padding: 1rem 130px 1rem 3rem;
    border-radius: var(--radius-sm) !important;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background-color: #fff;
    transition: box-shadow 0.25s ease;
}
.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.22);
}
.search-button {
    position: absolute !important;
    top: 6px;
    right: 6px;
    bottom: 6px;
    padding: 0 22px !important;
    border-radius: 4px !important;
    height: auto !important;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.hero-stats {
    display: flex;
    gap: 1.75rem;
    margin-top: 1.9rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.75s ease-out 0.42s forwards;
}
.hero-stat-value {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: #fff;
    font-weight: 600;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: #9FADC2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Featured Blog Spotlight --- */
.hero-spotlight {
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.75s ease-out 0.25s forwards;
}
.spotlight-card {
    display: block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
}
.spotlight-card:hover {
    background: rgba(255,255,255,0.10);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.spotlight-img-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--ink-soft);
}
.spotlight-img-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.spotlight-card:hover .spotlight-img-wrap img {
    transform: scale(1.06);
}
.spotlight-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}
.spotlight-body {
    padding: 1.1rem 1.25rem 1.3rem;
}
.spotlight-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 0.4rem;
}
.spotlight-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.spotlight-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
}
@media (max-width: 1199.98px) {
    .hero-grid { grid-template-columns: 1.1fr 280px; gap: 1.8rem; }
    .spotlight-img-wrap { height: 160px; }
    .hero-title { font-size: 2.4rem; }
}
@media (max-width: 991.98px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-spotlight { display: none; }
    .hero-title { font-size: 2.3rem; }
}

/* =====================================================================
   BUTTONS — shared kinetic sheen treatment
   ===================================================================== */
.search-button,
.sidebar-widget .btn,
.support-btn,
#load-more-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}
.search-button,
.sidebar-widget .btn-primary,
#load-more-btn {
    background: linear-gradient(90deg, var(--ink-soft), var(--ink));
}
.support-btn.whatsapp-btn { background: #1e8e5a; }
.support-btn.phone-btn { background: var(--ink); }

.search-button:hover,
.sidebar-widget .btn:hover,
.support-btn:hover,
#load-more-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,27,45,0.18);
}
.search-button:hover,
.sidebar-widget .btn-primary:hover,
#load-more-btn:hover {
    background: linear-gradient(90deg, var(--ink), var(--gold-deep));
}

.search-button::before,
.sidebar-widget .btn::before,
.support-btn::before,
#load-more-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transition: left 0.6s ease;
}
.search-button:hover::before,
.sidebar-widget .btn:hover::before,
.support-btn:hover::before,
#load-more-btn:hover::before { left: 100%; }

/* =====================================================================
   SIDEBAR — "resource rail"
   ===================================================================== */
.sidebar { position: sticky; top: 20px; margin-bottom: 20px; }
.sidebar-widget {
    background: var(--surface);
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.sidebarp { padding: 8px; }
.widget-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.25rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--line);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 34px; height: 2px;
    background: var(--gold);
}

/* Ledger / dot-leader category index — signature element */
.category-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem 0.15rem;
    color: var(--text);
    text-decoration: none !important;
    transition: color 0.2s ease;
    border: none;
    border-bottom: 1px dashed var(--line);
    font-family: var(--font-body);
    gap: 0.5rem;
}
.category-list li:last-child a { border-bottom: none; }
.category-list li a:hover {
    color: var(--gold-deep);
    background: transparent;
    border-color: var(--gold);
}
.category-name {
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    white-space: normal;
    font-family: var(--font-body);
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
.category-list li a::after {
    display: none;
}
.category-count-badge {
    background: var(--paper);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.5rem;
    border-radius: 3px;
    opacity: 1;
    border: 1px solid var(--line);
    flex-shrink: 0;
    margin-left: auto;
}

.latest-post-item {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none !important;
}
.latest-post-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.latest-post-img-container {
    width: 64px; height: 64px; flex-shrink: 0;
    margin-right: 1rem; border-radius: 8px; overflow: hidden; position: relative;
    border: 1px solid var(--line);
}
.latest-post-img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform 0.4s ease; }
.latest-post-item:hover .latest-post-img { transform: scale(1.08); }
.latest-post-content { flex: 1; }
.latest-post-title {
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.latest-post-item:hover .latest-post-title { color: var(--gold-deep); }
.latest-post-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.promo-image-shine { display: block; position: relative; overflow: hidden; border-radius: 8px; }
.promo-image-shine::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 75%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg); transition: left 0.7s ease-in-out;
}
.promo-image-shine:hover::before { left: 150%; }
.promo-image-shine img { display: block; }

/* =====================================================================
   LISTING HEADER / VIEW SWITCHER
   ===================================================================== */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    background: var(--surface);
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 0.75rem;
}
.listing-heading-group h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}
.listing-count {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
    display: block;
}
.view-switcher .btn { color: var(--muted); font-size: 1.05rem; border: 1px solid var(--line); border-radius: var(--radius-sm) !important; }
.view-switcher .btn.active { color: #fff; background: var(--ink); border-color: var(--ink); }

/* =====================================================================
   BLOG CARDS — registry / index-card treatment
   ===================================================================== */
.blog-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cdd6d5;
}
.card-img-container { position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-img-top { width: 100%; height: auto; display: block; }

.category-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    left: auto;
    z-index: 10;
    background: rgba(16,27,45,0.88);
    color: #fff;
    padding: 0.32rem 0.65rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.25);
}
.category-badge:hover { color: #fff; background: var(--gold-deep); }

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none !important;
    line-height: 1.35;
}
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--gold-deep); text-decoration: none; }
.blog-card-excerpt { color: var(--muted); font-size: 0.93rem; line-height: 1.55; flex-grow: 1; }
.blog-card-meta-bottom {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
    margin-top: auto;
}
.meta-group-right { gap: 1rem; }
.meta-pre-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: none;
    gap: 1rem;
}

/* --- List View --- */
#blog-grid.list-view-active .blog-card { flex-direction: row; }
#blog-grid.list-view-active .card-img-container { width: 38%; max-width: 300px; flex-shrink: 0; border-radius: var(--radius) 0 0 var(--radius); }
#blog-grid.list-view-active .card-img-top { width: 100%; height: 100%; object-fit: cover; }

/* --- Grid View --- */
#blog-grid.view-3-active .blog-card-title { font-size: 1.06rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#blog-grid.view-3-active .blog-card-excerpt { display: none; }
#blog-grid.view-3-active .meta-pre-title { display: flex; }
#blog-grid.view-3-active .meta-item-date, #blog-grid.view-3-active .meta-item-author { display: none; }

/* =====================================================================
   PAGINATION — registry footer
   ===================================================================== */
.pagination-container {
    display: flex; justify-content: center; align-items: center;
    gap: 0.5rem; margin: 2rem 0 4rem; flex-wrap: wrap;
}
.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0.5rem 0.75rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--ink);
    text-decoration: none !important; font-family: var(--font-mono);
    font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease;
}
.pagination-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); cursor: default; }
.pagination-btn.active:hover { transform: none; }
.pagination-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pagination-btn:disabled:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
.pagination-info { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); margin: 0 1rem; text-align: center; min-width: 150px; }

@media (max-width: 576px) {
    .pagination-container { gap: 0.3rem; }
    .pagination-btn { min-width: 36px; height: 36px; padding: 0.4rem 0.6rem; font-size: 0.8rem; }
    .pagination-info { margin: 0 0.5rem; min-width: auto; font-size: 0.8rem; }
}

/* --- Mobile Offcanvas Filters --- */
.sidebar-offcanvas {
    position: fixed; top: 0; left: 0; height: 100%; width: 300px;
    background-color: var(--surface); z-index: 1050;
    transform: translateX(-100%); transition: transform 0.3s ease-in-out;
    border-right: 1px solid var(--line); display: flex; flex-direction: column;
}
.sidebar-offcanvas.show { transform: translateX(0); }
.sidebar-offcanvas .offcanvas-header { background: var(--ink); color: #fff; border-bottom: none !important; }
.sidebar-offcanvas .offcanvas-title { font-family: var(--font-display); }
.sidebar-offcanvas .close { color: #fff; text-shadow: none; opacity: 0.8; }
.offcanvas-body { padding: 1.25rem; overflow-y: auto; }
.offcanvas-backdrop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--ink); opacity: 0; z-index: 1040;
    transition: opacity .3s ease-in-out; pointer-events: none;
}
.offcanvas-backdrop.show { opacity: .55; pointer-events: auto; }

.chevr { font-size: 13px; }
.promo-widget { display: none; }
.contact-item { display: flex; align-items: center; margin-bottom: 10px; }
.contact-item i { color: var(--gold-deep); margin-right: 8px; }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-info-widget {
    background: var(--surface); padding: 1.4rem; border-radius: var(--radius);
    margin-bottom: 1.75rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-info-title {
    font-family: var(--font-display); margin-top: 0; margin-bottom: 1rem;
    font-size: 1.05rem; font-weight: 600; color: var(--ink);
}

@media (max-width: 991.98px) {
    #blog-grid.list-view-active .blog-card { flex-direction: column; }
    #blog-grid.list-view-active .card-img-container { width: 100%; }
}
@media (max-width: 739.98px) {
    .offcanvas-body { padding: 0; }
    .promo-widget { display: none; }
    .sidebar-widget { padding: 1.1rem; margin-bottom: 1rem; box-shadow: unset; }
    .hero-title { font-size: 1.95rem; }
    .listing-header { padding: 1rem; }
}

.clear-search-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-left: 10px;
    background-color: var(--paper); color: var(--muted);
    border-radius: 50%; text-decoration: none !important;
    font-size: 1.1rem; font-weight: 600; transition: all 0.2s ease-in-out;
    border: 1px solid var(--line);
}
.clear-search-btn:hover { background-color: #b3312c; border-color: #b3312c; color: #fff; }

#suggestions-box {
    position: fixed; top: 0; left: 0; right: 0;
    width: auto; max-width: 520px;
    background-color: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    z-index: 2147483647; overflow: hidden; display: none;
}
#suggestions-box a {
    display: block; padding: 12px 20px; color: var(--text);
    text-decoration: none !important; text-align: left;
    font-size: 0.9rem; transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--line);
}
#suggestions-box a:last-child { border-bottom: none; }
#suggestions-box a:hover { background-color: var(--paper); color: var(--gold-deep); }

/* =====================================================================
   BLOG DETAIL PAGE STYLES
   ===================================================================== */

/* =====================================================================
   HERO — Article header with registry styling
   ===================================================================== */
.article-hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(37,99,235,0.16) 0%, transparent 45%),
        linear-gradient(155deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #fff;
    padding: 3.25rem 0 2.75rem;
    margin-top: 4rem;
    border-bottom: 3px solid var(--gold);
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
    pointer-events: none;
}
.article-hero .container { position: relative; z-index: 1; }

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 1.25rem;
    padding: 0;
    list-style: none;
    background: transparent;
}
.article-breadcrumb a {
    color: #93C5FD;
    text-decoration: none;
    transition: color 0.2s;
}
.article-breadcrumb a:hover { color: #fff; }
.article-breadcrumb .sep {
    color: rgba(255,255,255,0.3);
    margin: 0 0.2rem;
}
.article-breadcrumb .current {
    color: rgba(255,255,255,0.6);
}

.article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93C5FD;
    margin-bottom: 0.6rem;
}
.article-eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.article-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.6rem;
    line-height: 1.15;
    color: #fff;
    margin: 0.5rem 0 1rem;
    max-width: 900px;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #9FADC2;
    margin-top: 0.5rem;
}
.article-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.article-hero-meta i { color: var(--gold); font-size: 0.7rem; }
.article-hero-meta a { color: #93C5FD; }
.article-hero-meta a:hover { color: #fff; }

/* =====================================================================
   MAIN LAYOUT
   ===================================================================== */
.article-main-wrap {
    padding: 2.5rem 0 3rem;
}

/* =====================================================================
   ARTICLE CARD
   ===================================================================== */
.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.article-card-body {
    padding: 2rem 2.5rem;
}
.article-featured-img {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--line);
}
.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================================
   ARTICLE CONTENT
   ===================================================================== */
.blog-post__content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}
.blog-post__content h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--ink);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--line);
}
.blog-post__content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink-soft);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}
.blog-post__content h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}
.blog-post__content p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}
.blog-post__content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
}
.blog-post__content ul, .blog-post__content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.blog-post__content li { margin-bottom: 0.4rem; }
.blog-post__content a { color: var(--gold-deep); text-decoration: underline; }
.blog-post__content a:hover { color: var(--gold); }
.blog-post__content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--paper);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--ink-soft);
}
.blog-post__content code {
    font-family: var(--font-mono);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.88em;
}
.blog-post__content pre {
    background: var(--ink);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

/* Tables */
.blog-post__content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 24px 0 !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    background: var(--surface) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--line) !important;
}
.blog-post__content table th {
    background: linear-gradient(135deg, var(--ink-soft), var(--ink)) !important;
    color: #ffffff !important;
    text-align: left !important;
    padding: 14px 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    border: none !important;
    font-family: var(--font-body) !important;
}
.blog-post__content table tbody td {
    padding: 12px 16px !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--line) !important;
    background: transparent !important;
}
.blog-post__content table tbody tr {
    background: var(--surface) !important;
    transition: all 0.2s ease;
}
.blog-post__content table tbody tr:nth-child(even) {
    background: #f9fafb !important;
}
.blog-post__content table tbody tr:hover {
    background: #eef6ff !important;
    transform: scale(1.002);
    box-shadow: inset 4px 0 0 var(--gold) !important;
}
.blog-post__content table tbody tr:last-child td {
    border-bottom: none !important;
}
@media (max-width: 768px) {
    .blog-post__content table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}

/* =====================================================================
   ARTICLE FOOTER — Tags & Share
   ===================================================================== */
.article-footer {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.article-tags-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-right: 0.3rem;
}
.article-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-soft);
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.article-tag:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-share-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-right: 0.3rem;
}
.share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}
.share-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.share-instagram { background: #E4405F; }
.share-twitter { background: #1DA1F2; }
.share-facebook { background: #1877F2; }
.share-youtube { background: #FF0000; }
.share-pinterest { background: #BD081C; }
.share-linkedin { background: #0A66C2; }

/* =====================================================================
   SIDEBAR COMPONENTS (Detail Page)
   ===================================================================== */

/* TOC */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--line);
    position: relative;
    padding-left: 16px;
}
.toc-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-weight: 700;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list li a {
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.toc-list li a:hover { color: var(--gold-deep); }

/* Search (Detail Page) */
.search-form-detail { position: relative; }
.search-box-detail { position: relative; }
.search-icon-detail {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.9rem;
    z-index: 2;
    pointer-events: none;
}
.search-input-detail {
    width: 100%;
    height: 48px;
    padding: 0.8rem 3rem 0.8rem 2.6rem;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    font-family: var(--font-body);
    background-color: var(--surface);
    transition: box-shadow 0.25s ease;
}
.search-input-detail:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.search-button-detail {
    position: absolute !important;
    top: 5px;
    right: 5px;
    bottom: 5px;
    padding: 0 16px !important;
    border-radius: 4px !important;
    height: auto !important;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--ink-soft), var(--ink));
    color: #fff !important;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-button-detail:hover {
    background: linear-gradient(90deg, var(--ink), var(--gold-deep));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,27,45,0.15);
}

/* Latest Posts (Detail Page) */
.latest-post-item-detail {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none !important;
}
.latest-post-item-detail:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.latest-post-img-container-detail {
    width: 64px; height: 64px; flex-shrink: 0;
    margin-right: 1rem; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--line);
}
.latest-post-img-detail { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.latest-post-item-detail:hover .latest-post-img-detail { transform: scale(1.08); }
.latest-post-content-detail { flex: 1; }
.latest-post-title-detail {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    display: block;
    text-decoration: none !important;
}
.latest-post-item-detail:hover .latest-post-title-detail { color: var(--gold-deep); }
.latest-post-date-detail {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

/* Category List (Detail Page) */
.category-list-detail { list-style: none; padding: 0; margin: 0; }
.category-list-detail li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem 0.15rem;
    color: var(--text);
    text-decoration: none !important;
    border-bottom: 1px dashed var(--line);
    gap: 0.5rem;
    transition: color 0.2s;
}
.category-list-detail li:last-child a { border-bottom: none; }
.category-list-detail li a:hover { color: var(--gold-deep); border-color: var(--gold); }
.category-name-detail {
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}
.category-count-badge-detail {
    background: var(--paper);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.5rem;
    border-radius: 3px;
    border: 1px solid var(--line);
    flex-shrink: 0;
    margin-left: auto;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag-cloud a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-soft);
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.tag-cloud a:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* Quick Enquiry Form */
.enquiry-form .form-control {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.enquiry-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.enquiry-form .cert-btn-primary-foot {
    display: inline-block;
    width: 100%;
    padding: 12px 25px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: linear-gradient(90deg, var(--ink-soft), var(--ink));
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.enquiry-form .cert-btn-primary-foot:hover {
    background: linear-gradient(90deg, var(--ink), var(--gold-deep));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,27,45,0.18);
}

/* =====================================================================
   AUTHOR BOX
   ===================================================================== */
.author-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}
.author-box h5 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.author-box p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line);
    flex-shrink: 0;
}

/* =====================================================================
   COMMENTS
   ===================================================================== */
.comments-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}
.comments-section h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line);
    flex-shrink: 0;
}
.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.15rem;
}
.comment-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
}
.comment-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Comment Form */
.comment-form-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}
.comment-form-section h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.comment-form-section .form-control {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form-section .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.comment-form-section .btn-primary {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff !important;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: linear-gradient(90deg, var(--ink-soft), var(--ink));
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.comment-form-section .btn-primary:hover {
    background: linear-gradient(90deg, var(--ink), var(--gold-deep));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,27,45,0.18);
}

/* =====================================================================
   FAQ SECTION
   ===================================================================== */
.faq-section-wrap {
    margin-top: 2.5rem;
}
.faq-section-wrap h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}
.faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-q {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-body);
}
.faq-q:hover {
    background: var(--paper);
    color: var(--gold-deep);
}
.faq-q span {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    color: var(--muted);
    font-size: 0.85rem;
}
.faq-a {
    display: none;
    padding: 1.25rem;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
}

/* =====================================================================
   RELATED POSTS
   ===================================================================== */
.related-posts-section {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 3rem 0;
}
.related-posts-section h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}
.related-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.owl-carousel .owl-item .related-card {
    height: 100%;
    min-height: 380px;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cdd6d5;
}
.related-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.related-card-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.related-card:hover .related-card-img-wrap img {
    transform: scale(1.06);
}
.related-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.related-card-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.4rem;
}
.related-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    flex: 1;
}
.related-card-title a { color: var(--ink); text-decoration: none !important; }
.related-card-title a:hover { color: var(--gold-deep); }
.related-card-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
    margin-top: auto;
}

/* =====================================================================
   SIDENAV (preserved)
   ===================================================================== */
.sidenav a {
    position: fixed;
    right: -161px;
    transition: 0.3s;
    padding: 15px;
    width: 200px;
    text-decoration: none;
    font-size: 16px;
    color: white;
    border-radius: 20px 5px 5px 20px;
    z-index: 1000;
}
.sidenav a:hover { right: 0; }
.contact-form-side {
    top: 300px;
    background-color: #FF6600;
}

/* =====================================================================
   SUGGESTIONS BOX (Detail Page)
   ===================================================================== */
#suggestions-box-detail {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}
#suggestions-box-detail a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none !important;
    font-size: 0.88rem;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--line);
}
#suggestions-box-detail a:last-child { border-bottom: none; }
#suggestions-box-detail a:hover { background-color: var(--paper); }

/* =====================================================================
   RESPONSIVE (Detail Page)
   ===================================================================== */
@media (max-width: 1199.98px) {
    .article-hero h1 { font-size: 2.2rem; }
}
@media (max-width: 991.98px) {
    .article-hero h1 { font-size: 1.9rem; }
    .article-card-body { padding: 1.5rem; }
    .sidebar { position: static; }
}
@media (max-width: 767.98px) {
    .article-hero { padding: 2.5rem 0 2rem; margin-top: 3.5rem; }
    .article-hero h1 { font-size: 1.6rem; }
    .article-card-body { padding: 1.25rem; }
    .article-hero-meta { gap: 0.8rem; font-size: 0.7rem; }
    .article-breadcrumb .current { max-width: 160px; }
    .blog-post__content h2 { font-size: 1.4rem; }
    .blog-post__content h3 { font-size: 1.2rem; }
}

/* =====================================================================
   FORM MESSAGES
   ===================================================================== */
#form-messages { min-height: 24px; font-weight: 500; margin-bottom: 1rem; text-align: center; }
#form-messages.success { color: #28a745; }
#form-messages.error { color: #dc3545; }

/* ==========================================
TABS (preserved from original)
========================================== */
.tabs-section { margin-top: 2rem; }
.course-support-tab { transition: all 0.2s; }
.course-support-tab:hover { color: var(--gold-deep) !important; }
.course-support-panel- { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
