/* =========================================================
   Clever Techie Dark Theme
   SWTS / SWTML Semantic Article Theme
   ========================================================= */

:root {
    --bg: #030811;
    --shell: #07111c;
    --card: #0c1724;
    --text: #e8f0f7;
    --muted: #9fb0c3;
    --border: rgba(255,255,255,0.08);

    --cyan: #1ed6ff;
    --violet: #8b5cf6;
    --gold: #f4b942;
    --green: #00c27a;
    --red: #ef4444;

    --cyan-rgb: 30,214,255;
    --violet-rgb: 139,92,246;
    --gold-rgb: 244,185,66;
    --green-rgb: 0,194,122;
    --red-rgb: 239,68,68;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(var(--violet-rgb),0.14), transparent 34%),
        radial-gradient(circle at top right, rgba(var(--cyan-rgb),0.10), transparent 30%),
        linear-gradient(180deg, #02060d 0%, #07111c 100%);
    line-height: 1.68;
}

.article-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 28px 100px;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 58px;
    background:
        radial-gradient(circle at top right, rgba(var(--violet-rgb),0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(var(--cyan-rgb),0.10), transparent 30%),
        linear-gradient(180deg, rgba(12,23,36,0.96), rgba(6,15,25,0.98));
    box-shadow: 0 36px 90px rgba(0,0,0,0.34);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb),0.10), transparent);
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    position: relative;
    z-index: 1;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(var(--violet-rgb),0.14);
    border: 1px solid rgba(var(--violet-rgb),0.28);
    color: #cfbcff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
h1 {
    position: relative;
    z-index: 1;
    margin: 24px 0 18px;
    max-width: 980px;
    font-size: clamp(44px, 8vw, 92px);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.hero-summary {
    position: relative;
    z-index: 1;
    max-width: 880px;
    color: #bfd0e0;
    font-size: 23px;
    margin: 0;
}

.hero-map {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
    margin-top: 34px;
}

.hero-node {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255,255,255,0.035);
}

.hero-node strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    color: #ffffff;
}

.hero-node span {
    color: var(--muted);
    font-size: 14px;
}

/* LAYOUT */

.article-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 28px;
    margin-top: 30px;
    align-items: start;
}

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

.article-sidebar {
    position: sticky;
    top: 30px;
}

/* BASE BLOCKS */

.block,
.sidebar-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(12,23,36,0.96), rgba(7,16,27,0.98));
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.block {
    position: relative;
    overflow: hidden;
    padding: 38px;
    margin-bottom: 24px;
}

.block h2 {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.block p {
    margin: 0 0 16px;
    color: #dce7f2;
    font-size: 18px;
}

.block p:last-child {
    margin-bottom: 0;
}

.block strong {
    color: #ffffff;
}

.semantic-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* CYAN: ESSENCE / STORY / CONTEMPLATION / PRACTICE / DIAGRAM */

.essence,
.story,
.contemplate,
.practice,
.diagram {
    border-color: rgba(var(--cyan-rgb),0.26);
    background:
        radial-gradient(circle at top right, rgba(var(--cyan-rgb),0.10), transparent 34%),
        linear-gradient(180deg, rgba(10,24,38,0.96), rgba(7,15,24,0.99));
}

.essence .semantic-label,
.story .semantic-label,
.contemplate .semantic-label,
.practice .semantic-label,
.diagram .semantic-label {
    background: rgba(var(--cyan-rgb),0.10);
    border: 1px solid rgba(var(--cyan-rgb),0.28);
    color: #98ebff;
}

/* GOLD: INSIGHT / FINAL INSIGHT */

.insight {
    border-color: rgba(var(--gold-rgb),0.32);
    background:
        radial-gradient(circle at top left, rgba(var(--gold-rgb),0.12), transparent 36%),
        linear-gradient(180deg, rgba(35,25,8,0.98), rgba(18,14,6,0.99));
}

.insight .semantic-label {
    background: rgba(var(--gold-rgb),0.13);
    border: 1px solid rgba(var(--gold-rgb),0.30);
    color: var(--gold);
}

.insight-statement {
    margin: 0;
    color: #fff2cc;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.22;
    font-weight: 777;
    letter-spacing: -0.03em;
}

/* VIOLET: PERSPECTIVE / ANALOGY */

.perspective,
.analogy {
    border-color: rgba(var(--violet-rgb),0.34);
    background:
        radial-gradient(circle at top left, rgba(var(--violet-rgb),0.12), transparent 36%),
        linear-gradient(180deg, rgba(18,14,38,0.98), rgba(9,12,24,0.99));
}

.perspective .semantic-label,
.analogy .semantic-label {
    background: rgba(var(--violet-rgb),0.12);
    border: 1px solid rgba(var(--violet-rgb),0.28);
    color: #cfbcff;
}

/* RED: SHADOW */

.shadow {
    border-color: rgba(var(--red-rgb),0.30);
    border-left: 4px solid var(--red);
    background:
        radial-gradient(circle at top right, rgba(var(--red-rgb),0.12), transparent 36%),
        linear-gradient(180deg, rgba(34,10,12,0.97), rgba(16,8,10,0.99));
}

.shadow .semantic-label {
    background: rgba(var(--red-rgb),0.12);
    border: 1px solid rgba(var(--red-rgb),0.28);
    color: #ffaaaa;
}

/* GREEN: INTEGRATION */

.integration {
    border-color: rgba(var(--green-rgb),0.34);
    background:
        radial-gradient(circle at top left, rgba(var(--green-rgb),0.12), transparent 36%),
        linear-gradient(180deg, rgba(8,34,22,0.97), rgba(5,18,14,0.99));
}

.integration .semantic-label {
    background: rgba(var(--green-rgb),0.12);
    border: 1px solid rgba(var(--green-rgb),0.28);
    color: #8cf0c1;
}

/* CONTEMPLATION */

.contemplate {
    text-align: center;
    padding: 46px 38px;
}

.contemplate p {
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.45;
}

/* COMPONENTS */

.timeline,
.diagram-flow {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.timeline {
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.diagram-flow {
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.timeline-step,
.diagram-step {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
    background: rgba(255,255,255,0.035);
}

.timeline-step strong,
.diagram-step strong {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    color: #ffffff;
}

.timeline-step span,
.diagram-step span {
    color: var(--muted);
    font-size: 14px;
}

.key-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.key-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 17px;
    color: #dce7f2;
}

.key-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--cyan);
}

.final-line {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 22px;
    color: #ffffff;
    font-weight: 850;
}

/* SIDEBAR */

.sidebar-card {
    padding: 22px;
}

.sidebar-title {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sidebar-card a {
    display: block;
    color: #c9d7e5;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
}

.sidebar-card a:hover {
    background: rgba(var(--cyan-rgb),0.10);
    color: #ffffff;
}

.sidebar-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(var(--gold-rgb),0.22);
    background: rgba(var(--gold-rgb),0.06);
    color: #d8c896;
    font-size: 13px;
    line-height: 1.55;
}

/* MOBILE */

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

    .article-sidebar {
        position: static;
        order: -1;
    }

    .hero-map,
    .timeline,
    .diagram-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .article-shell {
        padding: 24px 16px 80px;
    }

    .hero,
    .block {
        padding: 28px;
        border-radius: 22px;
    }

    .hero-summary {
        font-size: 19px;
    }

    .block h2 {
        font-size: 30px;
    }

    .block p {
        font-size: 17px;
    }

    .contemplate p {
        font-size: 22px;
    }
}

/* HERO IMAGE */

.hero-image-wrap {
    margin: 26px auto 30px;
    max-width: 520px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.34),
        0 0 0 1px rgba(255,255,255,0.02) inset;
}

.hero-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* MOBILE */

@media (max-width: 680px) {

    .hero-image-wrap {
        max-width: 100%;
        margin: 22px auto 26px;
        border-radius: 22px;
    }

}

/* HERO LAYOUT */

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: center;
}

.hero-left {
    min-width: 0;
}

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

/* HERO IMAGE */

.hero-image-button {
    position: relative;
    width: 100%;
    max-width: 280px;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 28px;
    border: 2px solid rgba(var(--cyan-rgb), 0.92);
    background: rgba(var(--cyan-rgb), 0.04);
    box-shadow:
        0 0 0 1px rgba(var(--cyan-rgb), 0.14) inset,
        0 0 34px rgba(var(--cyan-rgb), 0.24),
        0 20px 60px rgba(0,0,0,0.44);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.hero-image-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(var(--cyan-rgb), 0.20) inset,
        0 0 48px rgba(var(--cyan-rgb), 0.34),
        0 28px 70px rgba(0,0,0,0.54);
}

.hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 0.82;
    object-fit: cover;
}

/* ZOOM ICON */

.hero-image-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    background: rgba(7,17,28,0.74);
    border: 1px solid rgba(var(--cyan-rgb),0.34);
    color: #ffffff;
    font-size: 20px;
    box-shadow:
        0 0 18px rgba(var(--cyan-rgb),0.16);
}

/* LIGHTBOX */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(var(--cyan-rgb),0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(var(--violet-rgb),0.18), transparent 34%),
        rgba(2,6,13,0.78);
    backdrop-filter: blur(20px);
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img {
    max-width: min(980px, 92vw);
    max-height: 88vh;
    border-radius: 30px;
    border: 1px solid rgba(var(--cyan-rgb),0.42);
    box-shadow:
        0 0 60px rgba(var(--cyan-rgb),0.22),
        0 40px 120px rgba(0,0,0,0.62);
}

.image-lightbox-close {
    position: fixed;
    top: 22px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(7,17,28,0.82);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.image-lightbox-close:hover {
    border-color: rgba(var(--cyan-rgb),0.52);
    box-shadow:
        0 0 22px rgba(var(--cyan-rgb),0.22);
}

/* MOBILE */

@media (max-width: 1000px) {

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-right {
        justify-content: flex-start;
    }

}

@media (max-width: 680px) {

    .hero-image-button {
        max-width: 220px;
        border-radius: 22px;
    }

    .image-lightbox {
        padding: 18px;
    }

    .image-lightbox img {
        border-radius: 22px;
    }

}
/* ==========================================
   SWTS ARTICLE CMS FUNCTIONALITY
   Save Article / Complete / TOC
   ========================================== */

.article-layout-swts .article-sidebar-left .sidebar-card {
    position: sticky;
    top: 120px;
}

.article-layout-swts .sidebar-toc-list .toc-level-3 a {
    padding-left: 22px;
    font-size: 14px;
    opacity: 0.88;
}

.article-layout-swts .sidebar-toc-list a {
    border-left: 2px solid transparent;
}

.article-layout-swts .sidebar-toc-list a.is-active {
    border-left-color: var(--ct-category-accent);
}

.swts-article-content h2,
.swts-article-content h3 {
    scroll-margin-top: 110px;
}

.save-article-btn.is-saved .save-guide-icon {
    color: #ef4444;
}

.mark-complete-btn.is-completed .mark-complete-icon {
    color: #22c55e;
}

/* ==========================================
   SWTS HERO NODES
   ========================================== */

.swts-hero-nodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 34px 0 28px;
}

.swts-hero-node {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(var(--ct-category-accent-rgb), 0.18);

    background:
        radial-gradient(
            circle at top right,
            rgba(var(--ct-category-accent-rgb), 0.16),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.018)
        );

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.03);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.swts-hero-node:hover {
    transform: translateY(-2px);

    border-color:
        rgba(var(--ct-category-accent-rgb), 0.34);

    background:
        radial-gradient(
            circle at top right,
            rgba(var(--ct-category-accent-rgb), 0.22),
            transparent 46%
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.024)
        );
}

.swts-hero-node-label {
    display: block;

    margin-bottom: 8px;

    color: rgba(190, 210, 230, 0.74);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.swts-hero-node-value {
    display: block;

    color: #f3f8fc;

    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

.hero-summary {
    margin-bottom: 0;
}

.hero .swts-hero-nodes + .hero-meta {
    margin-top: 14px;
}

@media (max-width: 768px) {
    .swts-hero-nodes {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SWTS RESPONSIVE SIDEBAR LAYOUT
   ========================================== */

.article-layout-swts {
    grid-template-columns:
        260px
        minmax(0, 1fr)
        280px;

    max-width: 1600px;
}

/* Medium desktop */
@media (max-width: 1380px) {

    .article-layout-swts {
        grid-template-columns:
            240px
            minmax(0, 1fr);
    }

    .article-layout-swts .article-sidebar-right {
        display: none;
    }
}

/* Tablet/mobile */
@media (max-width: 1200px) {

    .article-layout-swts {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-layout-swts .article-sidebar-left,
    .article-layout-swts .article-sidebar-right {
        display: none;
    }
}

/* ==========================================
   SWTS HERO FINAL POLISH
   ========================================== */

/* Hero summary readability */
.hero-summary {
    max-width: 980px;

    color: rgba(214, 225, 238, 0.82);

    font-size: clamp(1.08rem, 1vw + 0.72rem, 1.34rem);
    line-height: 1.72;
    font-weight: 500;

    letter-spacing: -0.01em;
}

/* Meta row spacing */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;

    margin-top: 28px;
}

/* Read time */
.meta-read-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.018)
        );

    border:
        1px solid rgba(255,255,255,0.06);

    color: rgba(206, 220, 234, 0.82);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: -0.01em;
}

/* Updated date */
.meta-updated {
    color: rgba(176, 194, 212, 0.72);

    font-size: 14px;
    font-weight: 600;

    letter-spacing: -0.01em;
}

/* Hero image polish */
.hero-image-wrap img {
    border-radius: 28px;

    box-shadow:
        0 24px 80px rgba(0,0,0,0.42),
        0 0 0 1px rgba(255,255,255,0.05);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.hero-image-wrap img:hover {
    transform: translateY(-4px) scale(1.01);

    box-shadow:
        0 30px 90px rgba(0,0,0,0.52),
        0 0 0 1px rgba(255,255,255,0.07);
}

/* Hero title polish */
.hero h1 {
    letter-spacing: -0.05em;
    text-wrap: balance;
}

/* Better node spacing */
.swts-hero-nodes {
    margin-top: 36px;
    margin-bottom: 26px;
}

.hero-copy .hero-summary {
    margin-top: 28px;
}

/* Slightly more premium category pill */
.meta-category-pill {
    backdrop-filter: blur(10px);
}

/* Save/Complete button polish */
.save-article-btn,
.mark-complete-btn {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.save-article-btn:hover,
.mark-complete-btn:hover {
    transform: translateY(-1px);
}

/* Slightly more cinematic hero atmosphere */
.hero::before {
    opacity: 0.72;
}

/* ==========================================
   SWTS HERO SPACING REFINEMENT
   ========================================== */

.hero-copy .hero-summary {
    margin-top: 34px;
    margin-bottom: 34px;
    max-width: 980px;
}

.swts-hero-nodes {
    margin-top: 0;
    margin-bottom: 34px;
    gap: 16px;
}

.hero .swts-hero-nodes + .hero-meta {
    margin-top: 0;
}

.hero-meta {
    margin-top: 0;
    gap: 16px;
}

.swts-hero-node {
    padding: 18px 20px;
}

.swts-hero-node-label {
    margin-bottom: 10px;
}

.swts-hero-node-value {
    line-height: 1.58;
}

@media (min-width: 1200px) {
    .hero-grid {
        gap: 72px;
    }

    .hero-copy {
        max-width: 980px;
    }
}

/* ==========================================
   SWTS HERO IMAGE TOP ALIGN
   ========================================== */

.hero-grid {
    align-items: start;
}

.hero-image-wrap {
    align-self: start;
}

.hero-image-wrap img {
    display: block;
}

/* ==========================================
   SWTS IMAGE LIGHTBOX + CSS EXPAND ICON
   ========================================== */

.swts-lightbox-trigger {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.swts-lightbox-trigger::after {
    content: "⤢";
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(5, 12, 20, 0.72);
    border: 1px solid rgba(255,255,255,0.10);
    color: #eaf6ff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(4px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
}

.swts-lightbox-trigger:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: rgba(10, 24, 38, 0.88);
}

.swts-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 42px;
    background: rgba(2, 7, 13, 0.88);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.swts-lightbox-inner {
    position: relative;
    max-width: 94vw;
    max-height: 92vh;
}

.swts-lightbox-image {
    display: block;
    max-width: min(1500px, 94vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 140px rgba(0,0,0,0.62);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.swts-lightbox-overlay.is-open .swts-lightbox-image {
    transform: scale(1);
}

.swts-lightbox-caption {
    margin-top: 14px;
    color: rgba(220, 235, 248, 0.78);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.swts-lightbox-close {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(7, 14, 24, 0.72);
    color: #fff;
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.swts-lightbox-close {
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 28px;
}

.swts-lightbox-prev,
.swts-lightbox-next {
    top: 50%;
    width: 54px;
    height: 68px;
    border-radius: 18px;
    transform: translateY(-50%);
    font-size: 34px;
}

.swts-lightbox-prev {
    left: 24px;
}

.swts-lightbox-next {
    right: 24px;
}

.swts-lightbox-close:hover,
.swts-lightbox-prev:hover,
.swts-lightbox-next:hover {
    background: rgba(20, 38, 58, 0.92);
}

body.swts-lightbox-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .swts-lightbox-overlay {
        padding: 18px;
    }

    .swts-lightbox-prev,
    .swts-lightbox-next {
        display: none;
    }

    .swts-lightbox-close {
        top: 14px;
        right: 14px;
    }

    .swts-lightbox-image {
        max-width: 96vw;
        max-height: 82vh;
        border-radius: 18px;
    }
}

/* ==========================================
   SWTS LIGHTBOX CLEANUP
   ========================================== */

.swts-lightbox-prev,
.swts-lightbox-next {
    display: none !important;
}

/* Prevent hover movement from creating bottom gap */
.hero-image-wrap img:hover {
    transform: none;
}

.swts-lightbox-trigger {
    overflow: hidden;
    border-radius: 28px;
}

.swts-lightbox-trigger img {
    vertical-align: middle;
}

.swts-lightbox-trigger:hover img {
    transform: none;
}
/* ==========================================
   ARTICLE COMPLETE BUTTON
   ========================================== */

.mark-complete-btn.is-completed .mark-complete-icon {
    color: #22c55e;
    font-weight: 900;
}

/* ==========================================
   SHARE ARTICLE BUTTON
   ========================================== */

.share-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    border-radius: 999px;

    border:
        1px solid rgba(255,255,255,0.08);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.018)
        );

    color: rgba(228, 238, 248, 0.86);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.share-article-btn:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.065),
            rgba(255,255,255,0.028)
        );

    border-color:
        rgba(255,255,255,0.14);
}

.share-article-icon {
    font-size: 16px;
    line-height: 1;
}
/* ==========================================
   CONTENT TYPE PILLS
   ========================================== */

.content-type-pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: #dceaf7;
}

.content-type-article {
    color: #c4adff;
    border-color: rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.10);
}

.content-type-guide {
    color: #8ee9ff;
    border-color: rgba(30, 214, 255, 0.24);
    background: rgba(30, 214, 255, 0.10);
}

.content-type-path {
    color: #7ef0a7;
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.10);
}

/* ==========================================
   PUBLIC CONTENT INDEX CARDS
   ========================================== */

.ct-content-index-page {
    padding: 42px 0 70px;
}

.ct-index-hero {
    max-width: 900px;
    margin-bottom: 32px;
}

.ct-index-kicker {
    margin: 0 0 10px;
    color: #17d8c5;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ct-index-hero h1 {
    margin: 0 0 14px;
    color: #f3f8fc;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.ct-index-hero p {
    margin: 0;
    color: #aab8c9;
    font-size: 20px;
    line-height: 1.65;
}

.ct-content-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.ct-content-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #dceaf7;
    font-size: 13px;
    font-weight: 800;
}

.ct-content-filter-pill:hover,
.ct-content-filter-pill.is-active {
    color: #ffffff;
    border-color: rgba(30,214,255,0.24);
    background: rgba(30,214,255,0.10);
}

.ct-content-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ct-content-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.07);
    background:
        radial-gradient(circle at top right, rgba(var(--card-accent-rgb, 30, 214, 255), 0.10), transparent 36%),
        linear-gradient(180deg, rgba(14,25,39,0.95), rgba(10,19,31,0.98));
    box-shadow:
        0 18px 50px rgba(0,0,0,0.20),
        inset 0 1px 0 rgba(255,255,255,0.02);
}

.ct-content-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #93a6bc;
    font-size: 13px;
    font-weight: 700;
}

.ct-content-card h2 {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.ct-content-card h2 a {
    color: #f3f8fc;
}

.ct-content-card h2 a:hover {
    color: var(--card-accent, #1ED6FF);
}

.ct-content-card p {
    margin: 0;
    color: #aab8c9;
    font-size: 16px;
    line-height: 1.65;
}

.ct-path-link {
    display: inline-flex;
    margin-top: 18px;
    color: #17d8c5;
    font-size: 14px;
    font-weight: 800;
}

/* ==========================================
   SWTS RIGHT SIDEBAR PATH CARD
   ========================================== */

.swts-path-card .sidebar-card-title a {
    color: #f3f8fc;
}

.swts-path-list a,
.swts-related-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
}

.swts-path-list a.is-current {
    color: var(--ct-category-accent);
    background: rgba(var(--ct-category-accent-rgb), 0.12);
    font-weight: 900;
}

.swts-path-list a:hover,
.swts-related-list a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.045);
}

@media (max-width: 1100px) {
    .ct-content-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SWTS NEXT ARTICLE CARD
   ========================================== */

.swts-next-article-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;

    max-width: 1180px;
    margin: 54px auto 24px;
    padding: 30px 34px;

    border-radius: 24px;
    border: 1px solid rgba(139,92,246,0.24);

    background:
        radial-gradient(circle at top right, rgba(139,92,246,0.16), transparent 38%),
        linear-gradient(180deg, rgba(14,25,39,0.95), rgba(9,18,30,0.98));

    box-shadow:
        0 22px 70px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.swts-next-kicker {
    margin: 0 0 10px;
    color: #c4adff;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.swts-next-article-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.swts-next-article-card h2 a {
    color: #f3f8fc;
}

.swts-next-article-card h2 a:hover {
    color: #c4adff;
}

.swts-next-path {
    margin: 12px 0 0;
    color: #aab8c9;
    font-size: 15px;
    font-weight: 700;
}

.swts-next-action {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border-radius: 999px;
    border: 1px solid rgba(139,92,246,0.30);

    background: rgba(139,92,246,0.12);
    color: #f3f8fc;

    font-size: 14px;
    font-weight: 900;
}

.swts-next-action:hover {
    background: rgba(139,92,246,0.20);
    color: #ffffff;
}

@media (max-width: 760px) {
    .swts-next-article-card {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ==========================================
   ARTICLE HERO NAVIGATION PILLS
   ========================================== */

.swts-hero-path-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    
    padding: 9px 15px;

    border-radius: 999px;
    border: 1px solid rgba(139,92,246,0.30);

    background: rgba(139,92,246,0.12);
    color: #d8c8ff;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.swts-hero-path-pill span {
    color: #9f7cff;
}

.swts-hero-path-pill:hover {
    color: #ffffff;
    border-color: rgba(139,92,246,0.48);
    background: rgba(139,92,246,0.18);
    transform: translateY(-1px);
}

.swts-article-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 36px;
    padding: 0 14px;

    border-radius: 999px;
    border: 1px solid rgba(30,214,255,0.26);

    background: rgba(30,214,255,0.10);
    color: #1ed6ff;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.swts-article-category-pill:hover {
    color: #ffffff;
    border-color: rgba(30,214,255,0.42);
    background: rgba(30,214,255,0.16);
    transform: translateY(-1px);
}