/* ======================================================
   Success Story Page — Interactive Side-by-Side Design
   Vertical Tabs (Left) + Content (Right)
   ====================================================== */

/* --- Hero (Dark) --- */
.ss-hero {
    position: relative;
    padding: 180px 0 80px;
    /* User Requested: Teal Overlay + WebP Image */
    background: linear-gradient(rgba(0, 43, 54, 0.85), rgba(0, 43, 54, 0.85)), url('/images/success-stories/biotech_hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

/* Removed ::before blur overlay to keep image crisp */

.ss-hero>* {
    position: relative;
    z-index: 1;
}

.ss-hero-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.ss-hero-logo-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.ss-hero-logo {
    display: block;
    height: 60px;
    width: auto;
    max-width: 280px;
    /* Adjust based on logo aspect ratio */
    filter: grayscale(100%) contrast(25%) brightness(160%);
    opacity: 0.95;
    transition: all 0.3s ease;
    object-fit: contain;
}

.ss-hero-badge {
    display: inline-block;
    background: rgba(231, 206, 103, 0.12);
    border: 1px solid rgba(231, 206, 103, 0.25);
    color: var(--brand-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    /* text-transform: uppercase; Removed for sentence case */
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
}

.ss-hero h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    /* Smaller as requested */
    font-weight: 800;
    color: white;
    max-width: 1100px;
    margin: 0 auto 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ss-hero-subtitle {
    display: block;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 300;
    color: var(--brand-gold);
    margin-top: 8px;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
    /* Subtitle design */
}

.ss-hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 300;
}

.ss-hero-client {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    /* text-transform: uppercase; Removed for sentence case */
    letter-spacing: 1px;
}

.ss-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.ss-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.ss-hero-tag i {
    color: var(--brand-gold);
    font-size: 0.8rem;
}

/* --- Stats Section --- */
.ss-stats-section {
    background: #ffffff;
    padding: 100px 0;
    position: relative;
    z-index: 2;
}



/* Stat Cards */
.ss-stat-card {
    background: white;
    border: 1px solid rgba(13, 128, 140, 0.08);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}



.ss-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 128, 140, 0.1), rgba(13, 128, 140, 0.05));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #086a75;
    /* Darker fixed teal for contrast */
    margin: 0 auto 18px;
}

.ss-stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #002b36;
    line-height: 1;
    margin-bottom: 6px;
}

.ss-stat-card .stat-label {
    color: #556;
    font-size: 0.8rem;
    font-weight: 700;
    /* text-transform: uppercase; Removed for sentence case */
    letter-spacing: 1px;
}


/* --- Tabbed Content Section (Vertical Layout) --- */
.ss-content-section {
    background: #f4f7f8;
    padding: 120px 0 140px;
}



.ss-tabs-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Fixed Nav Width, Fluid Content */
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

/* Vertical Nav */
/* Vertical Nav */
.ss-tabs-nav {
    display: flex;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    /* Explicitly prevent wrapping on desktop */
    gap: 16px;
    position: sticky;
    top: 120px;
    /* Stick to top on scroll */
    width: 100%;
    /* Ensure full width of grid column */
    align-items: stretch;
}

.tab-btn {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 24px 30px;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #4a5568;
    /* Darker for legibility */
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #086a75;
    /* Darker fixed teal for contrast */
}

.tab-btn.active {
    background: white;
    color: #086a75;
    /* Darker fixed teal for contrast */
    border-left-color: var(--brand-teal);
    box-shadow: 0 10px 30px rgba(0, 43, 54, 0.06);
}

.tab-btn::after {
    content: '\F285';
    /* Bootstrap Icon arrow-right */
    font-family: 'bootstrap-icons';
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.tab-btn.active::after {
    opacity: 1;
    transform: translateX(0);
}

/* Tab Panels */
.ss-tabs-content {
    min-height: 500px;
    position: relative;
}

.ss-tab-panel {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    /* Slide in from right */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ss-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Panel Card */
.ss-panel-card {
    background: white;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 43, 54, 0.05);
    border: 1px solid #eef3f4;
}

.ss-panel-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-teal);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.ss-panel-card p {
    color: #2d3748;
    /* Darker for legibility */
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.ss-source-copy p + p {
    margin-top: 1rem;
}

/* Bento Grid */
.ss-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.ss-bento-item {
    background: #f8fafb;
    border: 1px solid #eef3f4;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    height: auto;
    overflow: visible;
}





.ss-bento-item h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-teal);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.ss-bento-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #556;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}



/* ... (Pictogram styles) ... */

/* ... (Mobile Media Query) ... */
.ss-tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    /* Wrap buttons instead of scrolling */
    overflow-x: visible;
    padding-bottom: 0;
    position: relative;
    top: 0;
    justify-content: center;
    /* Center align for better mobile look */
    gap: 10px;
    margin-bottom: 30px;
}





/* Hide fade on hover to encourage click? Optional. Keeping it visible for affordance. */

.ss-bento-item h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-teal);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.ss-bento-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #556;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Background Pictogram Style */
.bento-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    color: var(--brand-teal);
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
    transition: all 0.5s ease;
}

/* Removed hover effects for static cards */
.ss-bento-item.expanded .bento-bg-icon {
    /* Kept just in case we ever toggle it programmatically, but mostly unused now */
    transform: rotate(0deg) scale(1.1);
    opacity: 0.08;
    color: var(--brand-gold);
}

/* Result Pills */
.ss-result-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ss-result-pill {
    padding: 12px 24px;
    background: rgba(13, 128, 140, 0.05);
    color: #086a75;
    /* Darker fixed teal for contrast */
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}



/* --- Testimonial (Homepage Style) --- */
.ss-testimonial {
    background: #002b36;
    /* Dark Base */
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add Wave Mask if desired, but kept simple for now or copy mask from homepage.css later */

.testimonial-glow-card {
    position: relative;
    cursor: default;
    /* Static */
    border-radius: var(--radius-lg);
    background: transparent;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-glow-card .glow-bg {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-gold));
    opacity: 0.15;
    filter: blur(6px);
    z-index: 0;
}

.card-inner {
    position: relative;
    z-index: 1;
    padding: 60px;
    /* Larger padding for featured testimonial */
    background: var(--bg-dark-2);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stars-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
}

.star-gold {
    color: var(--brand-gold);
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.25rem;
    /* Larger for feature */
    line-height: 1.6;
    color: white !important;
    /* Force white against CTA override */
    font-style: italic;
    /* Keep italic for quote feel */
    margin-bottom: 40px;
    /* Fix Truncation inherited from homepage.css */
    display: block !important;
    -webkit-line-clamp: none !important;
    overflow: visible !important;
}

.author-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.author-icon {
    font-size: 3rem;
    color: var(--brand-teal);
    opacity: 0.8;
}

.author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
}

.author-company {
    font-size: 0.95rem;
    color: var(--brand-gold);
}



/* --- CTA --- */
.ss-cta {
    padding: 120px 0;
    background: white;
    text-align: center;
    color: #002b36 !important;
    /* Force Legibility */
}

.ss-cta h2,
.ss-cta p {
    color: #002b36 !important;
}

/* --- New Metrics Section (Matches Translation Page) --- */
/* NOW UNUSED - MOVED TO HERO
.metrics-section-trans {
    padding: 100px 0 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #004d61 0%, #002b36 70%);
}
*/

/* Metrics IN HERO Styling */
.ss-hero .pl-impact-glass-card {
    background: rgba(255, 255, 255, 0.05);
    /* Lighter glass for hero */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 180px;
    /* Slightly more compact */
    max-width: 100%;
    /* Fill column */
}




.pl-impact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 9999px;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* ... (Rest of Pl-Impact styles kept generic) ... */
.pl-impact-glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    border-radius: 1rem;
    padding: 1rem;
    min-height: 220px;
    /* max-width: 280px;  REMOVED FIXED WIDTH FOR FLEXIBILITY */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.4);
    z-index: 10;
}



.pl-shimmer-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
    background-size: 250% 250%;
    background-position: 100% 100%;
    transition: background-position 0.8s ease;
    pointer-events: none;
    z-index: 1;
}



.pl-impact-icon-bg {
    position: absolute;
    right: -1rem;
    top: -1rem;
    color: rgba(255, 255, 255, 0.06);
    transform: rotate(12deg);
    transition: all 0.5s ease;
    pointer-events: none;
    font-size: 100px !important;
}



.pl-impact-card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pl-impact-metric-prefix {
    color: var(--brand-gold);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pl-impact-metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 0.25rem;
}

.pl-impact-metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: white;
    margin-top: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* --- Laptop Optimization --- */
@media (max-width: 1200px) {
    .ss-hero h1 {
        font-size: 3.2rem;
    }

    .ss-tabs-container {
        grid-template-columns: 260px 1fr;
        /* Compact sidebar */
        gap: 30px;
    }

    .ss-tabs-nav {
        top: 100px;
    }

    .tab-btn {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .ss-panel-card {
        padding: 40px;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .ss-hero h1 {
        font-size: 2.5rem;
    }

    .ss-hero {
        padding: 140px 0 60px;
    }

    .ss-stats-section,
    .ss-content-section,
    .ss-testimonial,
    .ss-cta {
        padding: 60px 0;
    }

    .ss-tabs-container {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 30px;
        margin-top: 40px;
    }

    .ss-tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        /* Changed from overflow-x: auto to wrap */
        overflow-x: visible;
        padding-bottom: 0;
        position: relative;
        top: 0;
        justify-content: center;
        gap: 12px;
        margin-bottom: 30px;
    }

    .ss-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        width: auto;
        padding: 12px 20px;
        background: rgba(13, 128, 140, 0.05);
        border-radius: 50px;
        font-size: 0.95rem;
        border: 1px solid transparent;
    }

    .tab-btn.active {
        background: var(--brand-teal);
        color: white;
        border-color: var(--brand-teal);
        box-shadow: 0 4px 12px rgba(13, 128, 140, 0.3);
    }

    .tab-btn::after {
        display: none;
    }

    .ss-panel-card {
        padding: 30px 20px;
    }

    .ss-bento-grid {
        grid-template-columns: 1fr;
    }
}
