/* =====================================================
   SML Biopharm - Home Page Styles
   Sophisticated Biotech Editorial Design
   ===================================================== */

/* =====================================================
   Home Hero Section - Premium Cinematic with Particles.js
   ===================================================== */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #061410 0%, #0A1F18 50%, #0D2920 100%);
}

/* Particles.js Container - Interactive Background */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
}

.home-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.home-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: saturate(0.5) brightness(0.6);
}

/* Cinematic Overlay */
.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(27, 77, 62, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(13, 148, 136, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, rgba(6, 20, 16, 0.3) 0%, transparent 30%, rgba(6, 20, 16, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Refined Grid Pattern */
.home-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 3;
}

/* Legacy Particle Effects - Hidden when using particles.js */
.home-hero-particles {
    display: none;
}

.particle {
    display: none;
}

/* Container Centered */
.home-hero>.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Hero Content - Perfect Center */
.home-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-2xl) var(--spacing-3xl);
}

/* Editorial Badge with Gold Accent */
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* background: rgba(201, 169, 98, 0.08); */
    /* backdrop-filter: blur(8px); */
    padding: 14px 28px;
    /* border-radius: 2px; */
    font-family: var(--s-font-primary);
    font-size: 11px;
    font-weight: 600;
    color: var(--s-color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    /* border: 1px solid rgba(201, 169, 98, 0.2); */
    margin-bottom: 48px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-hero-badge svg {
    width: 18px;
    height: 18px;
    stroke: var(--s-color-accent);
    opacity: 0.8;
}

/* Display Title - Playfair Display */
.home-hero-title {
    font-family: var(--s-font-display);
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--s-text-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.home-hero-title .highlight {
    font-weight: 600;
    color: var(--s-color-accent-light);
}

.home-hero-subtitle {
    font-family: var(--s-font-primary);
    font-size: var(--s-font-size-lg);
    font-weight: 400;
    color: var(--s-white-alpha-70);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 48px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.home-hero-cta {
    /* display: flex; */
    display: none !important;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.home-hero-cta .btn {
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-hero-cta .btn-primary {
    background: var(--s-color-accent);
    color: var(--s-bg-dark);
    border: 2px solid var(--s-color-accent);
}

.home-hero-cta .btn-primary:hover {
    background: var(--s-color-accent-light);
    border-color: var(--s-color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
}

.home-hero-cta .btn-secondary {
    background: transparent;
    color: var(--s-text-white);
    border: 2px solid var(--s-white-alpha-30);
}

.home-hero-cta .btn-secondary:hover {
    background: var(--s-white-alpha-05);
    border-color: var(--s-white-alpha-60);
    transform: translateY(-2px);
}

/* Scroll Indicator - Refined */
.home-hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--s-white-alpha-40);
    font-family: var(--s-font-primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
    transition: color 0.3s ease;
}

.home-hero-scroll:hover {
    color: var(--s-white-alpha-80);
}

.home-hero-scroll-icon {
    width: 24px;
    height: 42px;
    border: 1.5px solid currentColor;
    border-radius: 12px;
    position: relative;
}

.home-hero-scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* =====================================================
   Hero Animations
   ===================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Company Highlights Section
   ===================================================== */
.highlights-section {
    padding: var(--spacing-5xl) 0;
    background: var(--s-bg-white);
    position: relative;
    overflow: hidden;
}

.highlights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--s-border-color), transparent);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.highlight-item {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--s-radius-lg);
    transition: all var(--s-transition-normal);
}

.highlight-item:hover {
    background: var(--s-bg-light);
}

.highlight-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    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);
}

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

.highlight-number {
    font-size: var(--s-font-size-4xl);
    font-weight: var(--s-font-weight-bold);
    color: var(--s-color-primary-dark);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.highlight-label {
    font-size: var(--s-font-size-sm);
    color: var(--s-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   Technology Preview Section
   ===================================================== */
.tech-preview-section {
    padding: var(--spacing-5xl) 0;
    background: var(--s-bg-section);
}

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

.tech-preview-content {
    padding-right: var(--spacing-2xl);
}

.tech-preview-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);
}

.tech-preview-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);
}

.tech-preview-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);
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.tech-feature-icon {
    flex-shrink: 0;
    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);
}

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

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

.tech-preview-visual {
    position: relative;
}

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

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

/* =====================================================
   Pipeline Snapshot Section (Updated 2026-02-09)
   ===================================================== */
.pipeline-section {
    padding: var(--spacing-5xl) 0;
    background: var(--s-bg-white);
    /* Local variables for the new UI */
    --pipeline-primary-green: #2B7A62;
    --pipeline-bg-light: #F9FAFB;
    --pipeline-text-dark: #222;
    --pipeline-text-gray: #888;
    --pipeline-badge-bg: #2B7A62;
}

/* --- CONTROLLER --- */
.pipeline-controls {
    margin: 0 auto 40px;
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: fit-content;
    display: none;
}

.pipeline-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.pipeline-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pipeline-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.pipeline-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.pipeline-slider {
    background-color: var(--pipeline-primary-green);
}

input:checked+.pipeline-slider:before {
    transform: translateX(22px);
}

.pipeline-label-text {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

/* 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(--s-font-size-12);
    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);
}

/* Tab individual colors */
.pipeline-tab.tab-all {
    border-bottom-color: #1a1a2e;
}

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

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

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

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

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

.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 {
    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;
}

/* 1. Left Info */
.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);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    font-weight: 500;
    display: inline-block;
    border-radius: 4px;
}

.pipeline-card-badge.id-protein {
    background-color: #4B4B99;
}

.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);
    text-transform: uppercase;
    font-size: 11px;
}

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

.pipeline-current-stage-label {
    color: var(--pipeline-primary-green);
    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);
    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;
    transition: all 0.5s ease;
}

.pipeline-labels-row.future {
    grid-template-columns: 1fr 1fr 1fr 1fr 0.8fr 0.8fr 0.8fr;
}

.pipeline-label-item {
    position: relative;
    transition: color 0.3s;
}

/* 3. Right 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 Hide Animation */
.pipeline-card.hidden {
    display: none !important;
}

/* Animation Classes */
.pipeline-hidden {
    display: none !important;
    opacity: 0;
}

.pipeline-fade-in {
    display: block;
    animation: pipelineFadeIn 0.5s forwards;
}

@keyframes pipelineFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE OPTIMIZATION --- */
@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-card-body {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 0;
        padding: 20px;
        transition: all 0.3s ease;
    }

    /* --- COLLAPSED STATE (Default Mobile) --- */
    .pipeline-card.collapsed .pipeline-card-body {
        grid-template-areas:
            "badge status"
            "name name"
            "bar bar";
        gap: 8px 0;
    }

    /* Hide details when collapsed */
    .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;
    }

    /* --- EXPANDED STATE (Full Mobile Grid) --- */
    .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;
    }
}

/* =====================================================
   Latest News Section
   ===================================================== */
.news-section {
    padding: var(--spacing-5xl) 0;
    background: var(--s-bg-section);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-3xl);
}

.news-header-content {
    max-width: 500px;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.news-card {
    background: var(--s-bg-white);
    border-radius: var(--s-radius-lg);
    overflow: hidden;
    box-shadow: var(--s-shadow-sm);
    transition: all var(--s-transition-normal);
}

.news-card:hover {
    box-shadow: var(--s-shadow-lg);
    transform: translateY(-4px);
}

.news-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-image img,
.news-card-image .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--s-transition-slow);
}

.news-card:hover .news-card-image img,
.news-card:hover .news-card-image .img-placeholder {
    transform: scale(1.05);
}

.news-card-body {
    padding: var(--spacing-lg);
}

.news-card-date {
    font-size: var(--s-font-size-sm);
    color: var(--s-text-muted);
    margin-bottom: var(--spacing-sm);
}

.news-card-title {
    font-size: var(--s-font-size-xl);
    font-weight: var(--s-font-weight-semibold);
    color: var(--s-text-primary);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
    line-height: var(--s-line-height-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

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

.news-card-excerpt {
    font-size: var(--s-font-size-sm);
    color: var(--s-text-secondary);
    line-height: var(--s-line-height-17);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   Partners Section
   ===================================================== */
.partners-section {
    padding: var(--spacing-5xl) 0;
    background: var(--s-bg-white);
}


/* Partners Swiper Container */
.partners-swiper {
    margin-top: var(--spacing-3xl);
    padding: 0 var(--spacing-md);
    position: relative;
}

.partners-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.partners-swiper .swiper-slide {
    width: 180px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Legacy grid for backward compatibility */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-3xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    /* 고정 너비로 그리드 정렬 유지 */
    min-height: 160px;
    padding: var(--spacing-lg);
    background: #fff;
    border-radius: var(--s-radius-md);
    border: 1px solid #f0f0f0;
    transition: all var(--s-transition-normal);
    cursor: pointer;
    text-decoration: none;
}

/* 호버 시 살짝 떠오르는 느낌과 그림자 */
.partner-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.partner-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    /* 로고 영역 확보 */
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.partner-logo {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    /* 기본은 무채색 */
    opacity: 0.5;
    transition: all var(--s-transition-normal);
}

.partner-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--s-text-secondary);
    text-align: center;
    margin: 0;
    line-height: 1.4;
    word-break: keep-all;
    transition: all var(--s-transition-normal);
}

/* 카드 호버 시 로고 색상 복원 및 텍스트 강조 */
.partner-card:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-card:hover .partner-name {
    color: var(--s-text-primary);
}

/* 플레이스홀더 스타일 개선 */
.partner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: var(--s-radius-md);
    font-size: 13px;
    color: #bbb;
}

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

/* Top Cards Grid - Flexbox for Dynamic Hover */
.tech-cards-grid {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-5xl);
    padding: var(--spacing-md);
}

.tech-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 1;
    min-width: 0;
    height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.tech-card,
.tech-card * {
    text-decoration: none !important;
}

.tech-card-subtitle,
.tech-card-title {
    text-decoration: none;
}

.tech-card.expanded {
    flex: 7;
}

.tech-card.collapsed {
    flex: 1;
}

.tech-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tech-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.tech-card:hover .tech-card-bg {
    transform: none;
}

.tech-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover .tech-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 50%);
}

.tech-card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1e19;
    color: white;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 300;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card.collapsed .tech-card-badge {
    opacity: 0;
}

.tech-card-content {
    position: relative;
    z-index: 3;
    padding: 40px 32px;
    color: white;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card.collapsed .tech-card-content {
    opacity: 0;
    pointer-events: none;
}

.tech-card-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 400;
}

.tech-card-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    line-height: 1.25;
}

/* Center Title Section */
.tech-center-content {
    text-align: center;
    margin-bottom: var(--spacing-5xl);
    margin-left: auto;
    margin-right: auto;
    padding: var(--spacing-2xl);
}

.tech-platform-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* Bottom Therapeutic Areas */
.tech-therapeutic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: var(--spacing-lg) 0;
}

.therapeutic-area-card {
    position: relative;
    border-radius: var(--s-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/5;
    box-shadow: none;
    transition: all var(--s-transition-normal);
    cursor: pointer;
}

.therapeutic-area-card:nth-child(1) {
    border-radius: 0 var(--s-radius-lg) var(--s-radius-lg) 0;
}

.therapeutic-area-card:nth-child(2) {
    border-radius: var(--s-radius-lg) 0 0 var(--s-radius-lg);
}

.therapeutic-area-card:hover {
    transform: none;
    box-shadow: none;
}

.therapeutic-area-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.therapeutic-area-card:hover .therapeutic-area-bg {
    transform: scale(1.05);
}

.therapeutic-area-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    transition: all var(--s-transition-normal);
}

.therapeutic-area-card:hover .therapeutic-area-overlay {
    background: rgba(43, 85, 99, 0.75);
}

.therapeutic-area-top {
    flex: 0 0 auto;
}

.therapeutic-area-card:nth-child(1) .therapeutic-area-top {
    text-align: right;
}

.therapeutic-area-card:nth-child(2) .therapeutic-area-top {
    text-align: left;
}

.therapeutic-area-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.therapeutic-area-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.therapeutic-area-title {
    font-size: var(--s-font-size-3xl);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-align: right;
}

.therapeutic-area-bottom {
    flex: 0 0 auto;
    text-align: right;
}

.therapeutic-area-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    transition: all var(--s-transition-normal);
}

.therapeutic-area-link:hover {
    background: white;
    color: var(--s-color-primary-dark);
    transform: translate(4px, 0);
}

.therapeutic-area-link svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

/* Second Card - Left Aligned */
.therapeutic-area-card:nth-child(2) .therapeutic-area-middle {
    justify-content: flex-start;
}

.therapeutic-area-card:nth-child(2) .therapeutic-area-title {
    text-align: left;
}

.therapeutic-area-card:nth-child(2) .therapeutic-area-bottom {
    text-align: left;
}

/* First Card - Reversed Arrow */
.therapeutic-area-card:nth-child(1) .therapeutic-area-link {
    transform: scaleX(-1);
}

.therapeutic-area-card:nth-child(1) .therapeutic-area-link:hover {
    transform: scaleX(-1) translate(-4px, 0);
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 1199px) {
    .tech-preview-grid {
        gap: var(--spacing-2xl);
    }

    .tech-preview-content {
        padding-right: var(--spacing-lg);
    }
}

@media (max-width: 991px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tech-preview-content {
        padding-right: 0;
        order: 2;
    }

    .tech-preview-visual {
        order: 1;
    }

    .tech-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
    }

    .tech-card {
        height: auto;
        aspect-ratio: 370 / 460;
    }

    .tech-card.expanded,
    .tech-card.collapsed {
        flex: none;
    }

    .tech-card.collapsed .tech-card-content,
    .tech-card.collapsed .tech-card-badge {
        opacity: 1;
    }

    .therapeutic-area-card {
        aspect-ratio: 16/12;
    }

    .therapeutic-area-title {
        font-size: 24px;
    }

    .therapeutic-area-overlay {
        padding: 24px;
    }

    .pipeline-tabs {
        gap: 5px;
        flex-wrap: nowrap;
    }

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

    .pipeline-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .news-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .news-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 767px) {
    .home-hero {
        min-height: 100vh;
        padding: var(--header-height-mobile) var(--container-padding-mobile) var(--spacing-5xl);
    }

    .home-hero-content {
        padding: var(--spacing-md);
    }

    .home-hero-badge {
        font-size: var(--s-font-size-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .home-hero-title {
        font-size: var(--s-font-size-2xl);
    }

    .home-hero-subtitle {
        font-size: var(--s-font-size-base);
    }

    .home-hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .home-hero-cta .btn {
        width: 100%;
    }

    .home-hero-scroll {
        display: none;
    }

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

    .tech-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-xs);
    }

    .tech-card {
        height: auto;
    }

    .tech-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .tech-card.expanded,
    .tech-card.collapsed {
        flex: none;
    }

    .tech-card.collapsed .tech-card-content,
    .tech-card.collapsed .tech-card-badge {
        opacity: 1;
    }

    .tech-card {
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: 100px 1fr;
        height: auto;
    }

    .tech-card-bg {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .tech-card-overlay {
        display: none;
    }

    .tech-card-content {
        padding: 16px;
        background: #f2f2f2;
        color: #333;
        position: relative;
        z-index: 3;
    }

    .tech-card-subtitle {
        color: #999;
    }

    .tech-card-title {
        color: #333;
        font-size: 14px;
    }

    .tech-card-badge {
        width: 40px;
        height: 40px;
        font-size: 20px;
        right: 8px;
        top: 8px;
    }

    .tech-center-content {
        padding: 16px;
    }

    .tech-platform-description {
        font-size: 13px;
    }

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

    .therapeutic-area-card {
        aspect-ratio: 16/12;
    }

    .therapeutic-area-title {
        font-size: 20px;
    }

    .therapeutic-area-overlay {
        padding: 16px;
    }

    .therapeutic-area-label {
        font-size: 10px;
    }

    .therapeutic-area-link {
        width: 40px;
        height: 40px;
    }

    .therapeutic-area-link svg {
        width: 18px;
        height: 18px;
    }

    .therapeutic-area-card {
        aspect-ratio: 16/12;
    }

    .therapeutic-area-title {
        font-size: var(--s-font-size-lg);
    }

    .pipeline-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .pipeline-card {
        min-height: auto;
    }

    .highlight-item {
        padding: var(--spacing-md);
    }

    .highlight-icon {
        width: 48px;
        height: 48px;
    }

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

    .highlight-number {
        font-size: var(--s-font-size-2xl);
    }

    .highlight-label {
        font-size: var(--s-font-size-xs);
    }

    .tech-preview-title {
        font-size: var(--s-font-size-2xl);
    }

    .partners-swiper {
        padding: 0;
    }

    .partners-swiper .swiper-slide {
        width: 140px !important;
    }

    .partners-grid {
        gap: var(--spacing-lg);
    }

    .partner-card {
        width: 140px;
        min-height: 100px;
        padding: var(--spacing-sm);
    }

    .partner-logo-wrapper {
        height: 50px;
        margin-bottom: var(--spacing-xs);
    }

    .partner-logo,
    .partner-placeholder {
        height: 40px;
        max-width: 120px;
    }

    .partner-placeholder {
        width: 120px;
        height: 40px;
    }

    .partner-name {
        font-size: var(--s-font-size-xs);
    }

    .cta-title {
        font-size: var(--s-font-size-2xl);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}