:root {
    --bg: #080808;
    --bg-soft: #111111;
    --bg-card: #151515;
    --text: #f4f4f4;
    --muted: #a8a8a8;
    --line: rgba(255,255,255,.1);
    --accent: #ff6600;
    --accent-soft: rgba(255,102,0,.14);
    --max: 1140px;
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.05; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.25rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}
.narrow { max-width: 840px; }
.section { padding: 96px 0; }
.section-large { padding: 132px 0 96px; }
.section-muted { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8,8,8,.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-brand { gap: 0; }
.brand-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}
.header-logo {
    width: 72px;
    max-height: 58px;
}
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}
.footer-logo {
    width: 132px;
    max-width: 100%;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,102,0,.6);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}
.brand strong { display: block; font-size: .98rem; }
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--muted); font-size: .94rem; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.nav-cta {
    padding: 10px 16px;
    border: 1px solid rgba(255,102,0,.7);
    border-radius: 999px;
    color: var(--text) !important;
    background: var(--accent-soft);
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

.hero { position: relative; overflow: hidden; }
.hero:before {
    content: '';
    position: absolute;
    inset: -30% -10% auto auto;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(255,102,0,.16), transparent 64%);
    pointer-events: none;
}
.hero-grid, .split, .contact-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}
.eyebrow, .section-label {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    margin-bottom: 1rem;
}
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #d4d4d4; max-width: 760px; }
.large-copy { font-size: 1.22rem; color: #d8d8d8; }
.accent-text { color: var(--accent); font-weight: 800; }
.proof-line { margin-top: 28px; max-width: 560px; font-size: .98rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: #111; }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--text); }

.hero-panel, .detail-card, .contact-card, .booking-placeholder {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.panel-header { display: flex; gap: 8px; margin-bottom: 22px; }
.panel-header span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.24); }
.system-card { background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card-kicker { color: var(--accent); font-weight: 800; margin-bottom: 16px; }

.grid { display: grid; gap: 20px; }
.three-grid { grid-template-columns: repeat(3, 1fr); }
.five-grid { grid-template-columns: repeat(5, 1fr); }
.section-heading { max-width: 780px; margin-bottom: 36px; }
.section-heading.narrow { max-width: 680px; }
.problem-strip h2 { max-width: 920px; margin-bottom: 34px; }
.mini-card, .service-card, .resource-card, .stat-card {
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: 22px;
    padding: 24px;
}
.mini-card { color: #e8e8e8; font-weight: 800; }
.service-card p, .resource-card p, .stat-card p { color: var(--muted); }
.service-card a { color: var(--accent); font-weight: 800; }
.strong-card { background: var(--accent-soft); border-color: rgba(255,102,0,.35); }
.badge {
    display: inline-flex;
    padding: 6px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(255,102,0,.34);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.steps { display: grid; gap: 18px; }
.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-card);
}
.step span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}
.check-list { display: grid; gap: 12px; margin-bottom: 26px; }
.check-list li {
    position: relative;
    padding-left: 28px;
    color: #d5d5d5;
}
.check-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.stat-card strong {
    display: block;
    color: var(--accent);
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -.05em;
}
.cta-box {
    text-align: center;
    padding: 56px;
    border: 1px solid rgba(255,102,0,.28);
    border-radius: 32px;
    background: radial-gradient(circle at top, rgba(255,102,0,.14), rgba(255,255,255,.03) 55%);
}
.cta-box h2 { max-width: 860px; margin: 0 auto 28px; }
.content-block p { font-size: 1.08rem; color: #d3d3d3; }
.service-detail .split { align-items: start; }

.contact-grid { align-items: start; }
.contact-form {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
}
.contact-form label { font-weight: 800; font-size: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0,0,0,.28);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
}
.contact-form textarea { resize: vertical; }
.hidden-field { display: none; }
.form-message { padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.form-message.success { background: rgba(46, 204, 113, .14); color: #b8ffd6; border: 1px solid rgba(46,204,113,.3); }
.form-message.error { background: rgba(231,76,60,.14); color: #ffd0ca; border: 1px solid rgba(231,76,60,.3); }
.booking-placeholder { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 28px;
    background: #050505;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 40px;
}
.footer-grid h3 { font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: .9rem; }
.muted { color: var(--muted); }

@media (max-width: 920px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #101010;
    }
    .main-nav.open { display: flex; }
    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .three-grid, .five-grid, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .section-large { padding: 96px 0 72px; }
    .cta-box { padding: 34px; }
}

@media (max-width: 520px) {
    .container { width: min(var(--max), calc(100% - 28px)); }
    .brand small { display: none; }
    .header-logo { width: 62px; max-height: 50px; }
    .footer-logo { width: 112px; }
    .hero-actions { flex-direction: column; }
    .button { width: 100%; }
    .hero-panel, .detail-card, .contact-card, .booking-placeholder, .contact-form { padding: 22px; }
}

/* Dynamic resources */
.resource-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255,255,255,.03);
    font-weight: 800;
    font-size: .88rem;
}

.filter-pill:hover,
.filter-pill.active {
    color: var(--text);
    border-color: rgba(255,102,0,.55);
    background: var(--accent-soft);
}

.empty-state {
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
}

.resource-card-linked {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-thumb-wrap {
    display: block;
    margin: -24px -24px 8px;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.resource-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.resource-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.resource-meta-row .badge {
    margin-bottom: 0;
}

.resource-access {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    border: 1px solid var(--line);
    color: var(--muted);
}

.resource-access.free {
    color: #b8ffd6;
    border-color: rgba(46,204,113,.32);
    background: rgba(46,204,113,.12);
}

.resource-access.paid {
    color: #ffd7a6;
    border-color: rgba(255,102,0,.34);
    background: var(--accent-soft);
}

.resource-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.resource-card-footer span {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.resource-read-more {
    color: var(--accent);
    font-weight: 800;
    margin-top: 4px;
}

.resource-detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.resource-detail-meta span {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: .86rem;
    font-weight: 700;
}

.resource-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.resource-body-card,
.resource-side-card {
    border: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
}

.resource-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 104px;
}

.resource-preview-image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    margin-bottom: 28px;
}

.rich-content {
    color: #d7d7d7;
    font-size: 1.06rem;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rich-content h1:first-child,
.rich-content h2:first-child,
.rich-content h3:first-child {
    margin-top: 0;
}

.rich-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.rich-content h3 {
    font-size: 1.35rem;
}

.rich-content p,
.rich-content li {
    color: #d7d7d7;
}

.rich-content ul,
.rich-content ol {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0 0 1.4rem;
}

.rich-content ol {
    list-style: decimal;
}

.rich-content a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-content blockquote {
    margin: 1.6rem 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    background: rgba(255,255,255,.04);
    border-radius: 0 14px 14px 0;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    overflow: hidden;
    border-radius: 14px;
}

.rich-content th,
.rich-content td {
    border: 1px solid var(--line);
    padding: 12px;
    text-align: left;
}

.rich-content th {
    color: var(--text);
    background: rgba(255,255,255,.06);
}

.resource-side-card h2 {
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.resource-side-list {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.resource-side-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.resource-side-list strong {
    color: var(--text);
}

.resource-side-list span {
    color: var(--muted);
    text-align: right;
}

.full-button {
    width: 100%;
}

.compact-list {
    margin-bottom: 0;
}

.resource-link-list {
    display: grid;
    gap: 10px;
}

.resource-download-link {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: rgba(255,255,255,.03);
}

.resource-download-link:hover {
    border-color: rgba(255,102,0,.45);
    background: var(--accent-soft);
}

.resource-download-link strong {
    display: block;
    color: var(--text);
}

.resource-download-link span {
    display: block;
    color: var(--muted);
    font-size: .88rem;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .resource-detail-layout {
        grid-template-columns: 1fr;
    }

    .resource-sidebar {
        position: static;
    }
}

/* Resources showcase layout based on the previous Templates & Playbooks page */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.resources-showcase-hero {
    position: relative;
    overflow: hidden;
    padding: 118px 0 84px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(255,102,0,.13), rgba(8,8,8,0) 34%);
}

.resources-showcase-hero h1 {
    color: var(--accent);
    font-size: clamp(2.55rem, 5.6vw, 4.7rem);
    letter-spacing: -.055em;
    margin-bottom: 14px;
}

.resources-showcase-hero p {
    color: #d8d8d8;
    font-size: clamp(1.05rem, 2vw, 1.36rem);
    line-height: 1.35;
    max-width: 760px;
    margin: 0 auto;
}

.resources-showcase-section {
    padding: 86px 0 88px;
}

.showcase-category-bar {
    justify-content: center;
    margin-bottom: 34px;
}

.resources-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.showcase-resource-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: #10161d;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.showcase-resource-image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1218;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.showcase-resource-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
}

.showcase-resource-card:hover .showcase-resource-image {
    transform: scale(1.035);
    filter: brightness(1.06);
}

.showcase-resource-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 26px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,102,0,.18), transparent 30%),
        linear-gradient(135deg, #0f151c, #1b232d);
}

.showcase-resource-placeholder span {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.showcase-resource-placeholder strong {
    max-width: 92%;
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.showcase-resource-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.showcase-resource-content h2 {
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin-bottom: 12px;
}

.showcase-resource-content h2 a:hover {
    color: var(--accent);
}

.showcase-resource-content p {
    color: #aeb6c1;
    font-size: .94rem;
    line-height: 1.48;
    margin-bottom: 18px;
}

.showcase-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 10px;
}

.showcase-resource-meta span,
.showcase-resource-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: #5b6674;
    color: #f0f4f8;
    font-size: .72rem;
    line-height: 1;
    font-weight: 800;
}

.showcase-resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.showcase-resource-tags a {
    background: transparent;
    color: #e8edf3;
}

.showcase-resource-tags a:hover {
    border-color: rgba(255,102,0,.7);
    color: var(--accent);
}

.showcase-resource-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.showcase-outline-button,
.showcase-primary-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 12px;
    font-size: .82rem;
    font-weight: 900;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.showcase-outline-button {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: rgba(255,102,0,.02);
}

.showcase-primary-button {
    border: 1px solid var(--accent);
    color: #fff;
    background: var(--accent);
}

.showcase-outline-button:hover,
.showcase-primary-button:hover {
    transform: translateY(-2px);
}

.showcase-primary-button:hover {
    background: #ff7a21;
}

.resources-sticky-search {
    position: sticky;
    bottom: 0;
    z-index: 40;
    width: 100%;
    background: rgba(8,8,8,.82);
    border-top: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    padding: 10px 0;
}

.resources-sticky-search-inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px 96px;
    gap: 12px;
    align-items: center;
}

.resources-sticky-search input,
.resources-sticky-search select {
    width: 100%;
    height: 43px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    background: #131c28;
    color: #eef3f8;
    padding: 0 14px;
    font: inherit;
    font-size: .92rem;
    outline: none;
}

.resources-sticky-search input:focus,
.resources-sticky-search select:focus {
    border-color: rgba(255,102,0,.75);
}

.resources-sticky-search input::placeholder {
    color: #8995a3;
}

.resources-sticky-search button {
    height: 43px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 980px) {
    .resources-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resources-sticky-search-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .resources-showcase-hero {
        padding: 82px 0 44px;
    }

    .resources-showcase-section {
        padding: 48px 0 72px;
    }

    .resources-showcase-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .showcase-resource-actions {
        grid-template-columns: 1fr;
    }

    .showcase-category-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .showcase-category-bar .filter-pill {
        white-space: nowrap;
    }
}

/* Dynamic resource category pages */
.resources-eyebrow {
    color: var(--accent) !important;
    font-size: .8rem !important;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 10px !important;
}

.resources-showcase-hero-inner {
    text-align: center;
}

.showcase-category-bar {
    margin: -36px auto 52px;
    justify-content: center;
}

.showcase-category-bar .filter-pill {
    background: rgba(255,255,255,.035);
}

.showcase-category-bar .filter-pill.active {
    background: rgba(255,102,0,.13);
}

.empty-state .button {
    margin-top: 18px;
}

@media (max-width: 640px) {
    .showcase-category-bar {
        margin: -18px auto 36px;
    }
}

/* Resource detail showcase layout based on old resource pages */
.resource-detail-showcase-hero {
    padding-top: 126px;
    padding-bottom: 110px;
}

.resource-detail-showcase-hero .resources-showcase-hero-inner {
    max-width: 980px;
}

.resource-detail-showcase-hero h1 {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    line-height: .96;
}

.resource-detail-top-meta,
.resource-detail-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.resource-detail-top-meta span,
.resource-detail-hero-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
    color: #f1f1f1;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
}

.resource-detail-hero-tags {
    margin-top: 24px;
    margin-bottom: 0;
}

.resource-detail-hero-tags a {
    background: rgba(0,0,0,.32);
    font-size: .72rem;
}

.resource-detail-hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.resource-detail-showcase-section {
    padding: 24px 0 88px;
}

.resource-detail-showcase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    align-items: start;
}

.resource-detail-main {
    min-width: 0;
}

.resource-detail-image-frame {
    margin: 0 0 54px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: #10161d;
    box-shadow: 0 22px 60px rgba(0,0,0,.26);
}

.resource-detail-image-frame img {
    display: block;
    width: 100%;
    border-radius: 5px;
}

.resource-rich-content {
    max-width: 790px;
    color: #d8d8d8;
    font-size: 1.04rem;
    line-height: 1.78;
}

.resource-rich-content h1,
.resource-rich-content h2,
.resource-rich-content h3,
.resource-rich-content h4 {
    color: #fff;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.resource-rich-content h2 {
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    margin-top: 2.35rem;
}

.resource-rich-content h3 {
    font-size: clamp(1.28rem, 2vw, 1.65rem);
    margin-top: 2rem;
}

.resource-rich-content p {
    margin-bottom: 1.22rem;
}

.resource-rich-content li {
    margin-bottom: .72rem;
    padding-left: .15rem;
}

.resource-rich-content ul,
.resource-rich-content ol {
    padding-left: 1.35rem;
    margin-bottom: 1.55rem;
}

.resource-rich-content strong {
    color: #fff;
}

.resource-rich-content blockquote {
    border-left-color: var(--accent);
    background: linear-gradient(90deg, rgba(255,102,0,.16), rgba(255,255,255,.03));
}

.resource-detail-cta-panel {
    margin-top: 48px;
    padding: 28px;
    border: 1px solid rgba(255,102,0,.45);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,102,0,.18), rgba(255,102,0,.04));
    display: flex;
    justify-content: center;
}

.resource-external-box {
    margin-top: 42px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: #10161d;
}

.resource-external-box h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.35rem;
}

.resource-external-list {
    display: grid;
    gap: 12px;
}

.resource-external-item {
    display: block;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.resource-external-item:hover {
    border-color: rgba(255,102,0,.42);
    background: rgba(255,102,0,.08);
}

.resource-external-item span,
.resource-external-item em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: .9rem;
}

.resource-external-item strong {
    display: block;
    color: #fff;
    margin: 7px 0;
}

.resource-detail-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 22px;
}

.resource-detail-side-card {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    background: #10161d;
    box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.resource-detail-side-card h2 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 1.08rem;
}

.resource-check-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.resource-check-list li {
    position: relative;
    padding-left: 28px;
    color: #d9d9d9;
    font-size: .95rem;
    line-height: 1.5;
}

.resource-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #26d07c;
    font-weight: 900;
}

.resource-detail-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.resource-detail-list div {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.resource-detail-list dt {
    color: #fff;
    font-weight: 800;
}

.resource-detail-list dt::before {
    content: "›";
    color: var(--accent);
    margin-right: 7px;
}

.resource-detail-list dd {
    margin: 0;
    color: var(--muted);
}

.resource-detail-downloads {
    display: grid;
    gap: 10px;
}

.resource-detail-downloads a {
    display: block;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.resource-detail-downloads a:hover {
    border-color: rgba(255,102,0,.42);
    background: rgba(255,102,0,.08);
}

.resource-detail-downloads strong,
.resource-detail-downloads span {
    display: block;
}

.resource-detail-downloads strong {
    color: #fff;
}

.resource-detail-downloads span {
    color: var(--muted);
    margin-top: 4px;
    font-size: .86rem;
}

.resource-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid rgba(255,102,0,.55);
    border-radius: 7px;
    color: var(--accent);
    font-size: .92rem;
    font-weight: 850;
    text-align: center;
}

.resource-back-button:hover {
    background: rgba(255,102,0,.11);
}

.resource-related-section {
    padding: 76px 0 96px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.resource-related-section > .container > h2 {
    margin: 0 0 42px;
    color: var(--accent);
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    letter-spacing: -.04em;
}

.resource-related-grid {
    max-width: 980px;
    margin: 0 auto;
}

.related-resource-card .showcase-resource-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 980px) {
    .resource-detail-showcase-layout {
        grid-template-columns: 1fr;
    }

    .resource-detail-sidebar {
        position: static;
    }

    .resource-rich-content {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .resource-detail-showcase-hero {
        padding-top: 96px;
        padding-bottom: 72px;
    }

    .resource-detail-showcase-section {
        padding-top: 0;
    }

    .resource-detail-image-frame,
    .resource-external-box,
    .resource-detail-cta-panel,
    .resource-detail-side-card {
        padding: 18px;
    }
}


/* Blog */
.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 132px 0 96px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(255,102,0,.16), rgba(8,8,8,0) 38%);
}
.blog-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.3rem);
    margin-bottom: 18px;
}
.blog-hero .lead {
    margin-left: auto;
    margin-right: auto;
}
.blog-hero .hero-actions { justify-content: center; }
.blog-category-bar { margin-top: 0; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}
.blog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: #0a0d12;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.blog-card-image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1218;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.blog-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
}
.blog-card:hover .blog-card-image {
    transform: scale(1.035);
    filter: brightness(1.06);
}
.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 26px;
    background:
        radial-gradient(circle at 78% 22%, rgba(255,102,0,.18), transparent 30%),
        linear-gradient(135deg, #0f151c, #1b232d);
}
.blog-card-placeholder span,
.blog-category-pill {
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    width: fit-content;
}
.blog-card-placeholder strong {
    max-width: 92%;
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -.04em;
}
.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}
.blog-card-content h2 {
    font-size: 1.32rem;
    line-height: 1.17;
    letter-spacing: -.035em;
    margin-top: 12px;
    margin-bottom: 12px;
}
.blog-card-content h2 a:hover { color: var(--accent); }
.blog-card-content p {
    color: #aeb6c1;
    font-size: .96rem;
    line-height: 1.5;
    margin-bottom: 18px;
}
.blog-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    align-items: end;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.blog-card-footer span {
    color: #aeb6c1;
    font-size: .78rem;
    font-weight: 700;
}
.blog-read-link {
    grid-column: 2;
    justify-self: end;
    color: var(--accent);
    font-size: .86rem;
    font-weight: 900;
}
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 44px;
    color: var(--muted);
    font-weight: 800;
}
.blog-search-inner {
    grid-template-columns: minmax(0, 1fr) 280px 112px;
}
.article-hero {
    padding: 118px 0 72px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(255,102,0,.13), rgba(8,8,8,0) 36%);
}
.article-hero h1 {
    font-size: clamp(2.35rem, 5.2vw, 5rem);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.article-section { padding-top: 32px; }
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    align-items: start;
}
.article-featured-image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    margin-bottom: 34px;
}
.article-content {
    max-width: 780px;
    margin: 0 auto;
}
.related-article-list {
    display: grid;
    gap: 12px;
}
.related-article-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.related-article-list strong {
    display: block;
    color: var(--text);
    line-height: 1.25;
}
.related-article-list span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 5px;
}
@media (max-width: 980px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .blog-search-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .blog-hero { padding: 88px 0 54px; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card-footer { grid-template-columns: 1fr; }
    .blog-read-link { grid-column: 1; justify-self: start; }
}
