/* Case Study Page Styles - Matching Wix Layout */

.case-study {
    background: var(--white);
    padding-top: 80px;
}

.case-study-hero {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 3rem 2rem 0;
    text-align: center;
}

.case-study-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.company-tag {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.company-tag .for-text {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 400;
}

.company-tag .company-name {
    color: var(--black);
    font-weight: 600;
    font-size: 1.25rem;
}

.company-tag .year {
    display: block;
    font-size: 1rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-weight: 400;
}

.case-study-intro {
    font-size: 1.0625rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-top: 2rem;
}

/* Content Area */
.case-study-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.content-section {
    margin-bottom: 4rem;
}

/* Question Headers - Large, Bold, Like Wix */
.question-header {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin: 3rem 0 2rem;
    line-height: 1.2;
    color: var(--black);
}

/* Regular Headers */
.content-section h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

/* Body Text */
.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.content-section strong {
    font-weight: 600;
}

/* Lists */
.result-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.result-list li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.result-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--black);
    font-size: 0.55em;
    line-height: 3.2;
}

.result-list ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    list-style: none;
    padding-left: 0;
}

.result-list ul li {
    padding-left: 1.25rem;
    position: relative;
}

.result-list ul li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--black);
    font-size: 0.55em;
    line-height: 3.2;
    font-weight: 400;
}

/* Callout Result - Highlighted Box */
.callout-result {
    background: var(--gray-100);
    color: var(--black);
    padding: 2rem;
    margin: 2.5rem 0;
    font-size: 1.125rem;
    line-height: 1.7;
    border-left: 4px solid var(--black);
}

.callout-result strong {
    font-weight: 700;
}

/* Resource Card - Like Wix */
.resource-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    margin: 2.5rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--gray-400);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.resource-image {
    width: 100%;
    height: auto;
    display: block;
}

.resource-content {
    padding: 1.5rem;
    text-align: center;
}

.resource-link {
    color: var(--black);
    text-decoration: underline;
    font-weight: 600;
    font-size: 1rem;
}

.resource-link:hover {
    opacity: 0.7;
}

/* Image Placeholder for Missing Images */
.image-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.image-placeholder-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: var(--gray-50);
    padding: 1.25rem 2rem;
    margin: 2.5rem 0;
    border-left: 3px solid var(--black);
}

.info-box h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.column h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.column ul {
    padding-left: 1.5rem;
}

.column li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--gray-200);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

thead {
    background: var(--gray-900);
    color: var(--white);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9375rem;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--gray-50);
}

/* Medtech beige table — matches chart color palette */
.medtech-table thead {
    background: #E0BE9A;
    color: var(--white);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border: 1px solid var(--gray-200);
}

/* Full Width Image */
.full-width-image {
    width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--gray-200);
}

/* Quote */
.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-700);
    border-left: 4px solid var(--black);
    padding-left: 2rem;
    margin: 2.5rem 0;
    line-height: 1.6;
}

/* Highlight Section */
.highlight-section {
    background: var(--gray-50);
    padding: 1.25rem 2rem;
    margin: 3rem 0;
    border-left: 3px solid var(--black);
}

/* Secondary Button */
.secondary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    border-radius: 980px;
    border: 2px solid var(--blue);
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: var(--blue);
    color: var(--white);
}

/* Side by Side Layout */
.side-by-side {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 3rem;
    align-items: start;
    margin: 2rem 0;
}

.side-by-side.reverse {
    grid-template-columns: 440px 1fr;
}

.side-by-side.reverse .side-visual {
    order: 1;
}

.side-by-side.reverse .side-content {
    order: 2;
}

.side-visual {
    text-align: center;
    position: sticky;
    top: 100px;
}

.side-visual img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.white-paper-image {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

/* FT event gallery — left column sets height, right column stretches to match */
.ft-event-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 2rem 0;
}

/* Left column: natural proportions, drives total height */
.ft-event-gallery .ft-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ft-event-gallery .ft-left img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    margin: 0;
}

/* Right column: stretches to fill exact height of left column, no overflow */
.ft-event-gallery .ft-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: stretch;
}

.ft-event-gallery .ft-right img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: none;
    margin: 0;
}

@media (max-width: 768px) {
    .ft-event-gallery {
        grid-template-columns: 1fr;
    }

    .ft-event-gallery .ft-right img {
        flex: none;
        height: 220px;
    }
}

.side-content {
    width: 100%;
}

.side-content p,
.side-content ul {
    margin-bottom: 1.25rem;
}

.side-content .callout-result {
    margin-top: 1.5rem;
}

@media (max-width: 968px) {
    .side-by-side,
    .side-by-side.reverse {
        grid-template-columns: 1fr;
    }
    
    .side-by-side.reverse .side-visual,
    .side-by-side.reverse .side-content {
        order: initial;
    }
    
    .ft-event-image {
        object-fit: cover;
    }
    
    .side-visual {
        position: static;
    }
}

/* Case Study Navigation */
.case-study-nav {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 3rem 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-200);
}

.nav-back,
.nav-next {
    color: var(--black);
    text-decoration: underline;
    font-weight: 600;
    font-size: 1rem;
}

.nav-back:hover,
.nav-next:hover {
    opacity: 0.7;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--gray-700);
}

/* Responsive */
@media (max-width: 768px) {
    .case-study-hero,
    .case-study-content,
    .case-study-nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .highlight-section {
        padding: 1.25rem 1.5rem;
    }
}
