/* =====================================================
   SML Biopharm - R&D Page Styles
   Sophisticated Biotech Editorial Design
   ===================================================== */

/* =====================================================
   Platform Technology Section
   ===================================================== */
.platform-section {
    padding: var(--spacing-4xl) 0;
    background: var(--s-bg-white);
}

/* Simulator Wrapper */
.platform-simulator-wrap {
    margin-top: var(--spacing-3xl);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   mRNA Stability Simulator - Dual View
   ===================================================== */
.mrna-sim {
    background: var(--s-bg-white);
    border-radius: var(--s-radius-xl);
    box-shadow: var(--s-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--s-border-color);
}

/* Header */
.mrna-sim-header {
    background: var(--s-bg-dark);
    color: var(--s-text-white);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.mrna-sim-header-left {
    flex: 1;
    min-width: 200px;
}

.mrna-sim-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--s-text-white);
}

.mrna-sim-subtitle {
    color: var(--s-text-light);
    margin: 4px 0 0;
    font-size: 12px;
}

.mrna-sim-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mrna-sim-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--s-radius-full);
    font-weight: 700;
    font-size: 13px;
    color: var(--s-text-white);
    background: var(--s-color-teal);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mrna-sim-play-btn:hover {
    background: var(--s-color-teal-light);
}

.mrna-sim-play-btn.playing {
    background: var(--s-color-warning);
}

.mrna-sim-play-btn.playing:hover {
    background: #B86600;
}

.mrna-sim-play-btn i,
.mrna-sim-play-btn svg {
    width: 14px;
    height: 14px;
}

.mrna-sim-reset-btn {
    padding: 8px;
    border-radius: var(--s-radius-md);
    background: var(--s-white-alpha-10);
    border: 1px solid var(--s-white-alpha-20);
    color: var(--s-text-light);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mrna-sim-reset-btn:hover {
    background: var(--s-white-alpha-20);
    color: var(--s-text-white);
}

.mrna-sim-reset-btn i,
.mrna-sim-reset-btn svg {
    width: 18px;
    height: 18px;
}

/* Dual Stage Layout */
.mrna-sim-dual {
    padding: 0;
}

/* Each Row */
.mrna-sim-row {
    border-bottom: 1px solid var(--s-border-light);
    background: var(--s-bg-white);
}

.mrna-sim-row:last-child {
    border-bottom: none;
}

.mrna-sim-row.circular {
    background: var(--s-bg-light);
}

.mrna-sim-row.linear {
    background: var(--s-bg-white);
}

/* Row Label */
.mrna-sim-row-label {
    padding: 10px 24px 0;
}

.mrna-row-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.mrna-row-badge.circular {
    background: var(--s-color-primary);
    color: var(--s-text-white);
}

.mrna-row-badge.linear {
    background: var(--s-border-light);
    color: var(--s-text-secondary);
}

/* Row Status */
.mrna-sim-row-status {
    padding: 0 24px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mrna-sim-stability-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.mrna-mini-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--s-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.mrna-mini-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--s-text-primary);
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

.mrna-mini-value.success {
    color: var(--s-color-success);
}

.mrna-mini-value.warning {
    color: var(--s-color-warning);
}

.mrna-mini-value.danger {
    color: var(--s-color-error);
}

.mrna-sim-row-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--s-radius-md);
    flex-shrink: 0;
}

.mrna-sim-row-msg i,
.mrna-sim-row-msg svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mrna-sim-row-msg.success {
    background: var(--s-color-primary-pale);
    color: var(--s-color-success);
}

.mrna-sim-row-msg.warning {
    background: #fffbeb;
    color: var(--s-color-warning);
}

.mrna-sim-row-msg.danger {
    background: #fef2f2;
    color: var(--s-color-error);
}

/* VS Divider */
.mrna-sim-divider {
    text-align: center;
    padding: 0;
    position: relative;
    height: 0;
    border-top: 1px solid var(--s-border-color);
}

.mrna-sim-divider span {
    position: relative;
    top: -12px;
    display: inline-block;
    background: var(--s-bg-white);
    color: var(--s-text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 12px;
    border: 1px solid var(--s-border-color);
    border-radius: var(--s-radius-lg);
}

/* Visualizer Stage (shared) */
.mrna-sim-stage {
    position: relative;
    height: 180px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mrna-sim-strand {
    position: relative;
    display: flex;
    align-items: center;
    transform: scale(0.85);
}

/* mRNA Blocks */
.mrna-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    z-index: 10;
    flex-shrink: 0;
    position: relative;
}

.mrna-cap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--s-border-color);
    color: var(--s-text-secondary);
    box-shadow: var(--s-shadow-sm);
}

.mrna-utr {
    background: var(--s-color-primary);
    width: 56px;
    height: 36px;
    border-radius: 2px;
    box-shadow: var(--s-shadow-sm);
}

.mrna-goi {
    background: var(--s-color-primary);
    width: 80px;
    height: 36px;
    border-radius: 2px;
    box-shadow: var(--s-shadow-sm);
}

.mrna-polya {
    background: var(--s-color-primary-dark);
    width: 56px;
    height: 36px;
    border-radius: 2px;
}

.mrna-polya-sub {
    font-size: 8px;
    opacity: 0.7;
    margin-top: -2px;
}

.mrna-conn {
    height: 4px;
    width: 6px;
    background: var(--s-border-dark);
    flex-shrink: 0;
}

.mrna-conn.short {
    height: 6px;
    width: 12px;
}

/* Linear Tail */
.mrna-linear-container {
    position: relative;
    display: flex;
    align-items: center;
}

.mrna-linear-tail {
    height: 36px;
    background: var(--s-color-teal-light);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: width 75ms linear;
    width: 200px;
}

.mrna-tail-text {
    color: #fff;
    font-size: 10px;
    white-space: nowrap;
    padding: 0 6px;
    font-family: monospace;
    letter-spacing: 2px;
    opacity: 0.8;
}

.mrna-linear-ghost {
    position: absolute;
    left: 0;
    height: 36px;
    width: 200px;
    border: 2px dashed var(--s-border-color);
    z-index: -1;
}

/* RNase */
.mrna-rnase {
    position: absolute;
    z-index: 20;
    top: -10px;
}

.mrna-rnase.hidden {
    display: none;
}

.mrna-rnase-body {
    width: 36px;
    height: 36px;
    position: relative;
}

.mrna-rnase-body svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mrna-rnase-label {
    position: absolute;
    top: 36px;
    left: 2px;
    font-size: 9px;
    font-weight: 700;
    color: var(--s-text-muted);
}

.mrna-rnase-denied {
    position: absolute;
    top: -22px;
    left: -8px;
    background: var(--s-color-error);
    color: var(--s-text-white);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--s-radius-sm);
    box-shadow: var(--s-shadow-md);
    white-space: nowrap;
    animation: msim-bounce 1s infinite;
}

/* Circular Tail */
.mrna-circular-container {
    position: relative;
    margin-left: 4px;
}

.mrna-circular-conn {
    position: absolute;
    top: 50%;
    left: 0;
    width: 28px;
    height: 4px;
    background: var(--s-border-dark);
    margin-top: -2px;
}

.mrna-circular-ring {
    position: absolute;
    left: 28px;
    top: -70px;
    width: 140px;
    height: 140px;
}

.mrna-circular-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--s-color-teal-light);
    animation: msim-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mrna-circular-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.mrna-circular-labels {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mrna-circular-badge {
    background: var(--s-color-primary-dark);
    color: var(--s-text-white);
    padding: 3px 7px;
    border-radius: var(--s-radius-lg);
    font-size: 9px;
    font-weight: 700;
}

.mrna-circular-badge.small {
    background: var(--s-color-primary);
    font-size: 7px;
}

.mrna-rnase.circular {
    transition: all 0.5s ease-in-out;
}

/* Stability Bar (shared) */
.mrna-sim-bar-track {
    width: 100%;
    background: var(--s-bg-section);
    border-radius: var(--s-radius-lg);
    height: 8px;
    overflow: hidden;
    flex: 1;
}

.mrna-sim-bar-fill {
    height: 100%;
    background: var(--s-color-teal-light);
    border-radius: var(--s-radius-lg);
    transition: width 0.3s;
}

.mrna-sim-bar-fill.warning {
    background: var(--s-color-warning);
}

.mrna-sim-bar-fill.danger {
    background: var(--s-color-error);
}

.mrna-sim-bar-fill.success {
    background: var(--s-color-success);
}

/* Footer Key Points */
.mrna-sim-footer {
    border-top: 1px solid var(--s-border-color);
    padding: 12px 24px;
    background: var(--s-bg-section);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mrna-sim-footer-item {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--s-text-secondary);
    flex: 1;
    min-width: 200px;
}

.mrna-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--s-text-light);
    margin-top: 5px;
    flex-shrink: 0;
}

.mrna-dot.rose {
    background: var(--s-color-primary);
}

.text-rose {
    color: var(--s-color-primary);
}

/* Animations */
@keyframes msim-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes msim-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Responsive - Simulator */
@media (max-width: 768px) {
    .mrna-sim-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .mrna-sim-title {
        font-size: 15px;
    }

    .mrna-sim-stage {
        height: 150px;
        padding: 8px 16px;
    }

    .mrna-sim-strand {
        transform: scale(0.55);
    }

    .mrna-sim-row-status {
        flex-direction: column;
        gap: 8px;
    }

    .mrna-sim-footer {
        flex-direction: column;
        gap: 12px;
    }

    .mrna-sim-row-label {
        padding: 8px 16px 0;
    }

    .mrna-sim-row-status {
        padding: 0 16px 12px;
    }
}

/* Tagline */
.platform-tagline {
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.platform-tagline p {
    display: inline-block;
    background: var(--pipeline-primary-green, #3a8a6a);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* Feature Cards */
.platform-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.platform-feature-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.platform-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--pipeline-primary-green, #3a8a6a);
}

.platform-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 138, 106, 0.08);
    border-radius: 14px;
    color: var(--pipeline-primary-green, #3a8a6a);
}

.platform-feature-icon i,
.platform-feature-icon svg {
    width: 28px;
    height: 28px;
}

.platform-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

.platform-feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Description */
.platform-description {
    margin-top: var(--spacing-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.platform-intro-text {
    font-size: var(--s-font-size-base);
    color: var(--s-text-secondary);
    line-height: 1.9;
}

/* =====================================================
   Pipeline Section - Card Based (same as Home)
   ===================================================== */

/* Legacy Technology Cards (kept for compatibility) */
.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.tech-card {
    background: var(--s-bg-white);
    border: 1px solid var(--s-border-color);
    border-radius: var(--s-radius-xl);
    padding: var(--spacing-2xl);
    transition: all var(--s-transition-normal);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--s-color-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--s-transition-normal);
}

.tech-card:hover {
    border-color: var(--s-color-primary-light);
    box-shadow: var(--s-shadow-lg);
}

.tech-card:hover::before {
    transform: scaleY(1);
}

.tech-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s-color-primary-pale);
    border-radius: var(--s-radius-lg);
    color: var(--s-color-primary);
    margin-bottom: var(--spacing-lg);
}

.tech-card-icon svg {
    width: 32px;
    height: 32px;
}

.tech-card-title {
    font-size: var(--s-font-size-xl);
    font-weight: var(--s-font-weight-bold);
    color: var(--s-text-primary);
    margin-bottom: var(--spacing-md);
}

.tech-card-desc {
    font-size: var(--s-font-size-base);
    color: var(--s-text-secondary);
    line-height: var(--s-line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.tech-card-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.tech-card-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--s-font-size-sm);
    color: var(--s-text-secondary);
}

.tech-card-feature svg {
    width: 16px;
    height: 16px;
    color: var(--s-color-primary);
    flex-shrink: 0;
}

/* =====================================================
   Immunotherapy Section
   ===================================================== */
.immunotherapy-section {
    padding: var(--spacing-4xl) 0;
    background: var(--s-bg-section);
}

.immunotherapy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.immunotherapy-visual {
    position: relative;
}

.immunotherapy-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--s-radius-xl);
    overflow: hidden;
    box-shadow: var(--s-shadow-xl);
}

.immunotherapy-image .img-placeholder {
    width: 100%;
    height: 100%;
}

.immunotherapy-content {
    padding-left: var(--spacing-2xl);
}

.immunotherapy-label {
    display: inline-block;
    font-size: var(--s-font-size-sm);
    font-weight: var(--s-font-weight-semibold);
    color: var(--s-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.immunotherapy-title {
    font-size: var(--s-font-size-3xl);
    font-weight: var(--s-font-weight-bold);
    color: var(--s-text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--s-line-height-tight);
}

.immunotherapy-text {
    font-size: var(--s-font-size-md);
    color: var(--s-text-secondary);
    line-height: var(--s-line-height-relaxed);
    margin-bottom: var(--spacing-xl);
}

.immunotherapy-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.immunotherapy-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--s-bg-white);
    border-radius: var(--s-radius-md);
}

.immunotherapy-feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s-color-primary);
    border-radius: var(--s-radius-full);
    color: var(--s-text-white);
    flex-shrink: 0;
}

.immunotherapy-feature-icon svg {
    width: 14px;
    height: 14px;
}

.immunotherapy-feature-text {
    font-size: var(--s-font-size-sm);
    color: var(--s-text-secondary);
}

/* =====================================================
   Pipeline Section - Card UI
   ===================================================== */

/* Pipeline Filter Tabs */
.pipeline-tabs {
    display: flex;
    justify-content: center;
    border-bottom: none;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: var(--spacing-2xl);
    width: 100%;
}

.pipeline-tab {
    flex: 1;
    padding: 6px 20px;
    font-size: var(--bs-body-font-size);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #999;
    cursor: pointer;
    border: none;
    border-bottom: 5px solid #ddd;
    text-align: center;
    background: none;
    border-radius: 0;
    transition: all var(--s-transition-fast);
}

.pipeline-tab.tab-all {
    border-bottom-color: #1a1a2e;
}

.pipeline-tab.tab-immune {
    border-bottom-color: #c4a235;
}

.pipeline-tab.tab-expression {
    border-bottom-color: #3a8a6a;
}

.pipeline-tab:hover {
    color: #333;
}

.pipeline-tab.active {
    font-weight: 700;
}

.pipeline-tab.tab-all.active {
    color: #1a1a2e;
}

.pipeline-tab.tab-immune.active {
    color: #c4a235;
}

.pipeline-tab.tab-expression.active {
    color: #3a8a6a;
}

/* Pipeline Cards */
.pipeline-cards {
    display: block;
    margin-top: var(--spacing-xl);
}

.pipeline-card {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.pipeline-card-body {
    padding: 35px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.pipeline-info-area {
    flex: 0 0 220px;
}

.pipeline-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.pipeline-card-badge {
    background-color: var(--pipeline-badge-bg, #3a6b4e);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    font-weight: 500;
    display: inline-block;
    border-radius: 4px;
}

.pipeline-card-badge.govt {
    background-color: #e11d48;
}

.pipeline-drug-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #222;
    line-height: 1.2;
}

.pipeline-drug-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px 0;
}

.pipeline-indication-box {
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pipeline-indication-label {
    font-weight: 700;
    color: var(--pipeline-primary-green, #3a8a6a);
    text-transform: uppercase;
    font-size: 11px;
}

/* Progress */
.pipeline-progress-area {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.pipeline-current-stage-label {
    color: var(--pipeline-primary-green, #3a8a6a);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.pipeline-progress-track {
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 10px;
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.pipeline-progress-fill {
    height: 100%;
    background-color: var(--pipeline-primary-green, #3a8a6a);
    border-radius: 10px;
    width: 0%;
    transition: width 0.8s ease-in-out;
}

.pipeline-labels-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    font-size: 11px;
    color: #aaa;
}

.pipeline-label-item {
    position: relative;
}

/* Partner Area */
.pipeline-partner-area {
    flex: 0 0 160px;
    border-left: 1px solid #eee;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 80px;
}

.pipeline-partner-title {
    font-size: 10px;
    color: #bbb;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pipeline-partner-logo-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pipeline-partner-logo-img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    background: #eee;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    color: #555;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid #eee;
}

/* Toggle Button (Mobile Only) */
.pipeline-toggle-btn {
    display: none;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #fdfdfd;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
}

.pipeline-arrow-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

/* Pipeline Card Category Colors */
.pipeline-card[data-category="immune"] {
    --pipeline-badge-bg: #c4a235;
}

.pipeline-card[data-category="vaccine"] {
    --pipeline-badge-bg: #3a8a6a;
}

.pipeline-card[data-category="rare"] {
    --pipeline-badge-bg: #3d2d7c;
}

.pipeline-card.hidden {
    display: none !important;
}

.pipeline-hidden {
    display: none !important;
    opacity: 0;
}

/* Mobile */
@media (max-width: 900px) and (min-width: 769px) {
    .pipeline-partner-area {
        flex: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: 20px;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .pipeline-partner-title {
        margin-bottom: 0;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .pipeline-tabs {
        gap: 0;
        flex-wrap: nowrap;
    }

    .pipeline-tab {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-xs);
        font-size: var(--s-font-size-sm);
    }

    .pipeline-card-body {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 0;
        padding: 20px;
    }

    .pipeline-card.collapsed .pipeline-card-body {
        grid-template-areas:
            "badge status"
            "name name"
            "bar bar";
        gap: 8px 0;
    }

    .pipeline-card.collapsed .pipeline-drug-desc,
    .pipeline-card.collapsed .pipeline-indication-box,
    .pipeline-card.collapsed .pipeline-partner-logo-box,
    .pipeline-card.collapsed .pipeline-partner-title,
    .pipeline-card.collapsed .pipeline-labels-row {
        display: none;
    }

    .pipeline-card.collapsed .pipeline-drug-name {
        margin-bottom: 5px;
    }

    .pipeline-card.collapsed .pipeline-card-badge {
        margin-bottom: 0;
    }

    .pipeline-card.collapsed .pipeline-progress-track {
        margin-bottom: 0;
    }

    .pipeline-card:not(.collapsed) .pipeline-card-body {
        grid-template-areas:
            "badge status"
            "name name"
            "desc desc"
            "indic indic"
            "bar bar"
            "labels labels"
            "partner partner";
    }

    .pipeline-info-area,
    .pipeline-progress-area,
    .pipeline-partner-area {
        display: contents;
    }

    .pipeline-card-badge {
        grid-area: badge;
        align-self: center;
        justify-self: start;
    }

    .pipeline-drug-name {
        grid-area: name;
        font-size: 18px;
        align-self: start;
    }

    .pipeline-current-stage-label {
        grid-area: status;
        justify-self: end;
        align-self: center;
        font-size: 14px;
        text-align: right;
        margin: 0;
    }

    .pipeline-drug-desc {
        grid-area: desc;
        font-size: 12px;
        margin-bottom: 4px;
        margin-top: 5px;
    }

    .pipeline-indication-box {
        grid-area: indic;
        margin-bottom: 15px;
    }

    .pipeline-progress-track {
        grid-area: bar;
        margin-bottom: 8px;
    }

    .pipeline-labels-row {
        grid-area: labels;
        font-size: 9px;
        margin-bottom: 15px;
    }

    .pipeline-partner-logo-box {
        grid-area: partner;
        justify-self: start;
        padding-top: 15px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .pipeline-partner-title {
        display: none;
    }

    .pipeline-toggle-btn {
        display: block;
    }

    .pipeline-card:not(.collapsed) .pipeline-arrow-icon {
        transform: rotate(225deg);
        margin-top: 5px;
    }
}

/* SFTS Highlight Box */
.sfts-highlight {
    background: linear-gradient(135deg, var(--s-color-primary-pale) 0%, var(--s-bg-light) 100%);
    border: 1px solid var(--s-color-primary-light);
    border-radius: var(--s-radius-xl);
    padding: var(--spacing-2xl);
    margin-top: var(--spacing-3xl);
}

.sfts-highlight-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.sfts-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--s-color-primary);
    color: var(--s-text-white);
    font-size: var(--s-font-size-sm);
    font-weight: var(--s-font-weight-semibold);
    border-radius: var(--s-radius-full);
}

.sfts-highlight-title {
    font-size: var(--s-font-size-2xl);
    font-weight: var(--s-font-weight-bold);
    color: var(--s-text-primary);
}

.sfts-highlight-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
}

.sfts-highlight-desc {
    font-size: var(--s-font-size-md);
    color: var(--s-text-secondary);
    line-height: var(--s-line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.sfts-highlight-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.sfts-stat {
    background: var(--s-bg-white);
    border-radius: var(--s-radius-md);
    padding: var(--spacing-md);
    text-align: center;
}

.sfts-stat-value {
    font-size: var(--s-font-size-2xl);
    font-weight: var(--s-font-weight-bold);
    color: var(--s-color-primary);
}

.sfts-stat-label {
    font-size: var(--s-font-size-sm);
    color: var(--s-text-muted);
}

.sfts-highlight-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--s-radius-lg);
    overflow: hidden;
}

.sfts-highlight-image .img-placeholder {
    width: 100%;
    height: 100%;
}

/* =====================================================
   Development Process Section
   ===================================================== */
.process-section {
    padding: var(--spacing-4xl) 0;
    background: var(--s-bg-section);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: var(--spacing-3xl);
    padding: 0 var(--spacing-xl);
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--s-border-color);
}

.process-step {
    position: relative;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.process-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s-bg-white);
    border: 3px solid var(--s-color-primary);
    border-radius: var(--s-radius-full);
    color: var(--s-color-primary);
    position: relative;
    z-index: 1;
    transition: all var(--s-transition-normal);
}

.process-step:hover .process-step-icon {
    background: var(--s-color-primary);
    color: var(--s-text-white);
}

.process-step-icon svg {
    width: 32px;
    height: 32px;
}

.process-step-title {
    font-size: var(--s-font-size-md);
    font-weight: var(--s-font-weight-semibold);
    color: var(--s-text-primary);
    margin-bottom: var(--spacing-xs);
}

.process-step-desc {
    font-size: var(--s-font-size-sm);
    color: var(--s-text-muted);
}

/* =====================================================
   Patents & Publications Section
   ===================================================== */
.patents-section {
    padding: var(--spacing-4xl) 0;
    background: var(--s-bg-white);
}

.patents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.patent-card {
    background: var(--s-bg-white);
    border: 1px solid var(--s-border-color);
    border-radius: var(--s-radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--s-transition-normal);
}

.patent-card:hover {
    border-color: var(--s-color-primary-light);
    box-shadow: var(--s-shadow-md);
}

.patent-card-type {
    display: inline-block;
    font-size: var(--s-font-size-xs);
    font-weight: var(--s-font-weight-semibold);
    color: var(--s-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.patent-card-title {
    font-size: var(--s-font-size-md);
    font-weight: var(--s-font-weight-semibold);
    color: var(--s-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: var(--s-line-height-tight);
}

.patent-card-meta {
    font-size: var(--s-font-size-sm);
    color: var(--s-text-muted);
}

.patent-card.clickable {
    cursor: pointer;
}

.patent-card.clickable:hover {
    border-color: var(--s-color-primary);
    transform: translateY(-2px);
}

.patent-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--s-transition-fast);
}

.patent-card-title a:hover {
    color: var(--s-color-primary);
}

.patent-card-link {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--s-border-light);
}

.patent-link-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--s-font-size-xs);
    font-weight: var(--s-font-weight-medium);
    color: var(--s-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.patent-link-icon svg {
    width: 14px;
    height: 14px;
}

.patent-link-icon.pdf {
    color: #dc2626;
}

.patent-link-icon.link {
    color: var(--s-color-primary);
}

.patents-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--s-text-muted);
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 1199px) {
    .process-timeline {
        padding: 0;
    }

    .process-step {
        max-width: 160px;
    }
}

@media (max-width: 991px) {
    .platform-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .platform-feature-card {
        padding: 24px 20px;
    }

    .platform-tagline p {
        font-size: 13px;
        padding: 12px 20px;
    }

    .tech-cards-grid {
        grid-template-columns: 1fr;
    }

    .immunotherapy-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .immunotherapy-content {
        padding-left: 0;
        order: 2;
    }

    .immunotherapy-visual {
        order: 1;
    }

    .immunotherapy-features {
        grid-template-columns: 1fr;
    }

    .protein-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .protein-content {
        padding-right: 0;
        order: 1;
    }

    .protein-visual {
        order: 2;
    }

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

    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .process-timeline::before {
        top: 0;
        left: 50%;
        right: auto;
        width: 4px;
        height: 100%;
    }

    .process-step {
        max-width: 300px;
    }

    .patents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tech-card {
        padding: var(--spacing-lg);
    }

    .tech-card-icon {
        width: 48px;
        height: 48px;
    }

    .tech-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .sfts-highlight {
        padding: var(--spacing-lg);
    }

    .sfts-highlight-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sfts-highlight-stats {
        grid-template-columns: 1fr 1fr;
    }

    .process-step-icon {
        width: 60px;
        height: 60px;
    }

    .process-step-icon svg {
        width: 24px;
        height: 24px;
    }
}