/* --- SPLIT-PANEL SHOWCASE STYLES --- */

.container-large {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── HERO CARD ─────────────────────────────────────────── */
/* Override container padding + max-width so the card sits edge-to-edge */
.split-hero.container-large {
    padding: 0;
    max-width: none;
    width: auto;  /* styles.css sets width:100% on .container-large; auto lets margins work properly */
}

.split-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: stretch;
    margin: 40px 20px 80px;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f2f8;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
    min-height: 460px;
}

/* Left: text content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 52px 52px 52px 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Pills row */
.hero-content .project-tags {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

/* Every pill/badge inside the hero card stays on one line */
.hero-content .tag,
.hero-content .status-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    white-space: nowrap;
}

/* Back link */
.back-link {
    color: #8b8dd6;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* Title / subtitle */
.showcase-title {
    font-size: 2.9rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    letter-spacing: -1px;
}

.showcase-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    color: #555;
    margin-bottom: 20px;
}

.showcase-abstract {
    font-size: 0.98rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

/* Action Buttons */
.action-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.action-btn-group a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #8b8dd6;
    color: #fff;
    border: 2px solid #8b8dd6;
}

.btn-primary:hover {
    background-color: #7274bf;
    border-color: #7274bf;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid #d0d2e8;
}

.btn-outline:hover {
    border-color: var(--text-dark);
}

/* Right: image — fills the full card height */
.hero-visual {
    position: relative;
    overflow: hidden;
}

.hero-visual img,
.hero-visual video {
    position: absolute;
    inset: 16px 20px 16px 0;
    width: calc(100% - 20px);
    height: calc(100% - 32px);
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

/* ─── DEEP DIVE ─────────────────────────────────────────── */
.container-mid {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.deep-dive {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.text-block {
    margin-bottom: 40px;
}

.text-block h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.text-block p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ─── GALLERY ───────────────────────────────────────────── */
.schematics-grid {
    border-top: 1px solid #eaeaea;
    padding-top: 60px;
    padding-bottom: 80px;
}

.schematics-grid h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.schematic-item {
    display: flex;
    flex-direction: column;
}

.schematic-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    margin-bottom: 15px;
}

.schematic-item span {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
    text-align: center;
}

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .split-hero {
        grid-template-columns: 1fr;
        margin: 24px 20px 60px;
        min-height: auto;
    }

    .hero-content {
        padding: 36px 28px;
    }

    .showcase-title {
        font-size: 2.2rem;
    }

    .hero-visual {
        min-height: 260px;
        position: relative;
    }

    .hero-visual img,
    .hero-visual video {
        position: absolute;
    }
}
