.comparison-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(5, 20, 10, 0.96) 0%, rgba(5, 20, 10, 0.84) 42%, rgba(5, 20, 10, 0.24) 100%),
        url('/images/pcb-manufacturer-usa-vs-china-hero.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 255, 65, 0.22);
}

.comparison-hero.vietnam-hero {
    background-image:
        linear-gradient(90deg, rgba(5, 20, 10, 0.96) 0%, rgba(5, 20, 10, 0.84) 42%, rgba(5, 20, 10, 0.24) 100%),
        url('/images/pcb-manufacturer-vietnam-vs-china-hero.png');
}

.comparison-hero .hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 88px 0 76px;
}

.comparison-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #7dd3fc;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.86rem;
    margin-bottom: 18px;
}

.comparison-eyebrow::before {
    content: '';
    width: 34px;
    height: 2px;
    background: #d49559;
}

.comparison-hero h1 {
    max-width: 820px;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.9rem);
    line-height: 1.03;
    margin-bottom: 24px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.58);
    overflow-wrap: break-word;
}

.comparison-hero h1 .highlight {
    color: var(--pcb-glow);
}

.comparison-hero h1 .h1-line {
    display: block;
}

.comparison-hero .hero-lead {
    max-width: 760px;
    color: #e8f7ed;
    font-size: 1.18rem;
    line-height: 1.82;
    margin-bottom: 28px;
}

.comparison-hero .hero-lead .lead-line {
    display: inline;
}

.comparison-hero .hero-lead .lead-line::after {
    content: ' ';
}

@media (max-width: 920px) {
    .comparison-hero .hero-lead .lead-line {
        display: block;
    }

    .comparison-hero .hero-lead .lead-line::after {
        content: none;
    }
}

@media (max-width: 640px) {
    .comparison-hero .hero-lead .lead-line {
        display: block;
    }

    .comparison-hero .hero-lead .lead-line::after {
        content: none;
    }
}

.comparison-hero .hero-lead .lead-line.force-block {
    display: block;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-action {
    background: var(--pcb-glow);
    color: var(--pcb-dark);
}

.secondary-action {
    color: #fff;
    border: 1px solid rgba(125, 211, 252, 0.58);
    background: rgba(125, 211, 252, 0.08);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.secondary-action:hover {
    border-color: #7dd3fc;
}

.intent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 880px;
}

.intent-tags span {
    border: 1px solid rgba(212, 149, 89, 0.44);
    color: #fff6e8;
    background: rgba(212, 149, 89, 0.12);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.9rem;
}

.comparison-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.comparison-section {
    padding: 72px 0;
}

.comparison-section.tight {
    padding-top: 36px;
}

.comparison-section h2 {
    color: #fff;
    font-size: clamp(1.85rem, 3.5vw, 3rem);
    line-height: 1.16;
    margin-bottom: 20px;
}

.comparison-section h3 {
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.28;
    margin: 34px 0 14px;
}

.comparison-section p {
    color: var(--text-main);
    font-size: 1.08rem;
    line-height: 1.82;
    margin-bottom: 18px;
}

.comparison-section a {
    color: #7dd3fc;
}

.intro-grid,
.decision-grid,
.xfpcb-grid,
.checklist-grid {
    display: grid;
    gap: 24px;
}

.intro-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: start;
}

.signal-panel,
.decision-panel,
.xfpcb-card,
.check-item {
    border: 1px solid rgba(26, 66, 37, 0.95);
    background: linear-gradient(145deg, rgba(26, 66, 37, 0.32), rgba(5, 20, 10, 0.86));
    border-radius: 8px;
    padding: 24px;
}

.signal-panel h3,
.decision-panel h3,
.xfpcb-card h3,
.check-item h3 {
    margin-top: 0;
}

.signal-list,
.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signal-list li,
.plain-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-main);
    line-height: 1.68;
    margin-bottom: 14px;
}

.signal-list li::before,
.plain-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.73em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d49559;
    box-shadow: 0 0 12px rgba(212, 149, 89, 0.45);
}

.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(26, 66, 37, 0.95);
    border-radius: 8px;
    background: rgba(5, 20, 10, 0.82);
    margin: 34px 0;
}

.comparison-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(26, 66, 37, 0.92);
    vertical-align: top;
}

.comparison-table th {
    color: #fff;
    background: rgba(26, 66, 37, 0.86);
    font-size: 1rem;
}

.comparison-table td {
    color: var(--text-main);
    line-height: 1.62;
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

.article-figure {
    margin: 38px 0 10px;
}

.article-figure img {
    display: block;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(26, 66, 37, 0.95);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.article-figure figcaption {
    color: #9bb7a5;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-top: 10px;
}

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

.decision-panel.usa {
    border-color: rgba(125, 211, 252, 0.45);
}

.decision-panel.china {
    border-color: rgba(0, 255, 65, 0.38);
}

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

.xfpcb-card {
    display: flex;
    flex-direction: column;
}

.xfpcb-card p {
    flex: 1;
    font-size: 1rem;
}

.xfpcb-card a {
    align-self: flex-start;
    color: var(--pcb-glow);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.xfpcb-card a:hover {
    border-bottom-color: var(--pcb-glow);
}

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

.numbered-list {
    counter-reset: item;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.numbered-list li {
    counter-increment: item;
    position: relative;
    padding-left: 54px;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.76;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(125, 211, 252, 0.14);
    border: 1px solid rgba(125, 211, 252, 0.55);
    color: #7dd3fc;
    font-weight: 900;
}

.faq-block {
    max-width: 980px;
    margin: 0 auto;
}

.faq-block details {
    border: 1px solid rgba(26, 66, 37, 0.95);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 16px;
    background: rgba(5, 20, 10, 0.74);
}

.faq-block summary {
    cursor: pointer;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    padding: 20px 22px;
}

.faq-block details[open] summary {
    color: var(--pcb-glow);
}

.faq-block details p {
    padding: 0 22px 22px;
    margin: 0;
}

.quote-band {
    background:
        linear-gradient(135deg, rgba(26, 66, 37, 0.54), rgba(5, 20, 10, 0.94)),
        radial-gradient(circle at 85% 20%, rgba(125, 211, 252, 0.18), transparent 28%);
    border-top: 1px solid rgba(0, 255, 65, 0.18);
    border-bottom: 1px solid rgba(0, 255, 65, 0.18);
}

.quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 34px;
    align-items: start;
}

.quote-form {
    border: 1px solid rgba(0, 255, 65, 0.38);
    background: rgba(5, 20, 10, 0.88);
    border-radius: 8px;
    padding: 24px;
}

.quote-form label {
    display: block;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
    width: 100%;
    border: 1px solid rgba(26, 66, 37, 0.95);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 12px 13px;
    margin-bottom: 16px;
    font: inherit;
}

.quote-form select option {
    color: #05140a;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
    outline: none;
    border-color: var(--pcb-glow);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.12);
}

.quote-form button {
    width: 100%;
    border: none;
    border-radius: 6px;
    background: var(--pcb-glow);
    color: var(--pcb-dark);
    font-weight: 900;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 1rem;
}

.research-note {
    border-left: 4px solid #7dd3fc;
    padding: 16px 18px;
    background: rgba(125, 211, 252, 0.08);
    color: #dff7ff;
    line-height: 1.72;
    margin-top: 28px;
}

@media (max-width: 920px) {
    .comparison-hero {
        min-height: auto;
        background-position: 62% center;
    }

    .comparison-hero h1 {
        font-size: clamp(1.42rem, 3.3vw, 1.8rem);
        line-height: 1.2;
        width: 340px;
        max-width: calc(100vw - 28px);
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .comparison-hero h1 .h1-line {
        display: block;
    }

    .comparison-hero h1 .h1-line::after {
        content: none;
    }

    .comparison-hero .hero-lead,
    .hero-actions,
    .intent-tags {
        width: 340px;
        max-width: calc(100vw - 28px);
    }

    .comparison-hero .hero-lead {
        font-size: 1rem;
        line-height: 1.72;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .intro-grid,
    .decision-grid,
    .xfpcb-grid,
    .checklist-grid,
    .quote-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    html,
    body {
        overflow-x: hidden;
    }

    .comparison-hero .hero-inner,
    .comparison-wrap {
        width: min(calc(100% - 28px), 1120px);
    }

    .comparison-hero .hero-inner {
        padding: 68px 0 58px;
    }

    .comparison-hero h1 {
        font-size: clamp(1.42rem, 6.2vw, 1.7rem);
        line-height: 1.2;
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .comparison-hero h1 .h1-line {
        display: block;
    }

    .comparison-hero h1 .h1-line::after {
        content: none;
    }

    .comparison-hero .hero-lead {
        font-size: 1rem;
        line-height: 1.72;
        overflow-wrap: break-word;
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
    }

    .comparison-section {
        padding: 52px 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .signal-panel,
    .decision-panel,
    .xfpcb-card,
    .check-item,
    .quote-form {
        padding: 20px;
    }
}
