/* =========================================================
   STARTUP DETAIL
   ========================================================= */

.startup-detail-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    overflow: visible;
}


/* =========================================================
   BANNER
   ========================================================= */

.startup-banner {
    width: 100%;
    aspect-ratio: 1128 / 191;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--navy), #23233a);
}

.startup-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   IDENTITY
   ========================================================= */

.startup-identity-bar {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;

    margin: -48px 24px 0;
    padding: 20px 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.startup-logo-box {
    width: 88px;
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    margin-top: -36px;
    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);

    font-size: 34px;
}

.startup-logo-box img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.startup-identity-info {
    flex: 1;
    min-width: 220px;
}

.startup-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.startup-sector-tag {
    margin-bottom: 0;

    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.startup-stage-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;

    background: #f2f5f8;
    border: 1px solid #e1e7ed;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
}

.startup-identity-info h1 {
    margin: 0 0 4px;

    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.2;
}

.startup-tagline {
    margin: 0;

    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.startup-identity-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.startup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 38px;
    padding: 8px 14px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition: .2s ease;
}

.startup-btn:hover {
    transform: translateY(-1px);
}

.startup-btn-website {
    background: var(--navy);
    color: #fff;
}

.startup-btn-website:hover {
    color: #fff;
    opacity: .9;
}

.startup-btn-linkedin {
    background: #f4f7fa;
    border-color: #dce3ea;
    color: #1769aa;
}

.startup-btn-linkedin:hover {
    color: #1769aa;
    background: #edf2f7;
}

.startup-btn-twitter {
    background: #f4f7fa;
    border-color: #dce3ea;
    color: #111;
}

.startup-btn-twitter:hover {
    color: #111;
    background: #edf2f7;
}


/* =========================================================
   STATS
   ========================================================= */

.startup-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    margin: 24px 0 32px;
}

.startup-stat-card {
    min-width: 0;
    padding: 18px 20px;

    background: var(--white);
    border: 1px solid #e4e9ef;
    border-radius: 10px;

    box-shadow: 0 4px 14px rgba(15, 35, 55, .04);
}

.startup-stat-value {
    overflow: hidden;

    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;

    color: var(--black);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.startup-stat-label {
    margin-top: 5px;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;

    color: var(--muted);
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.startup-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;

    align-items: stretch;
    overflow: visible !important;
}

.startup-content-card {
    min-width: 0;

    padding: 32px;

    background: var(--white);
    border: 1px solid #e4e9ef;
    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(15, 35, 55, .055);
    box-sizing: border-box;
}

.startup-section-header {
    margin-bottom: 16px;
}

.startup-section-header h2 {
    margin: 0;

    font-size: 24px;
    line-height: 1.3;
    color: var(--navy);
}

.startup-description {
    font-size: 16px;
    line-height: 1.85;
    color: var(--dark);
}


/* =========================================================
   FOUNDER
   ========================================================= */

.startup-founder-card {
    margin-top: 36px;
    padding: 24px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.startup-founder-label {
    margin-bottom: 16px;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;

    color: var(--muted);
}

.startup-founder-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.startup-founder-photo,
.startup-founder-initial {
    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    border-radius: 50%;
}

.startup-founder-photo {
    object-fit: cover;
}

.startup-founder-initial {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #111;
    color: #fff;

    font-size: 24px;
    font-weight: 700;
}

.startup-founder-info {
    min-width: 0;
}

.startup-founder-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}

.startup-founder-title {
    margin-top: 3px;

    font-size: 14px;
    color: var(--muted);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.startup-sidebar-card {
    position: relative;
    align-self: stretch;

    height: auto;

    background: var(--white);
    border: 1px solid #e4e9ef;
    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(15, 35, 55, .055);
}

.startup-sidebar-sticky {
    position: sticky;
    top: 100px;
    height: max-content;
}

.startup-sidebar-section {
    padding: 24px;
}

.startup-sidebar-section + .startup-sidebar-section {
    border-top: 1px solid #e8edf3;
}

.startup-sidebar-section h4 {
    margin: 0 0 16px;
    padding-bottom: 12px;

    border-bottom: 1px solid #e8edf3;

    color: var(--navy);
    font-size: 18px;
    font-weight: 700;
}

.startup-detail-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.startup-detail-item-last {
    border-bottom: 0;
}

.startup-detail-label {
    font-size: 11px;
    line-height: 1.3;

    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.startup-detail-value {
    margin-top: 3px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    color: var(--dark);
}


/* =========================================================
   OTHER STARTUPS
   ========================================================= */

.startup-other-item {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;
}

.startup-other-item:last-child {
    margin-bottom: 0;
}

.startup-other-logo-link {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    text-decoration: none;
}

.startup-other-logo {
    width: 32px;
    height: 32px;

    padding: 2px;

    object-fit: contain;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;

    box-sizing: border-box;
}

.startup-other-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--light-bg);

    font-size: 12px;
}

.startup-other-info {
    min-width: 0;
}

.startup-other-name {
    display: block;

    overflow: hidden;

    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;

    color: var(--dark);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.startup-other-name:hover {
    text-decoration: underline;
}

.startup-other-stage {
    margin-top: 2px;

    overflow: hidden;

    font-size: 11px;
    line-height: 1.3;
    color: var(--muted);

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   SMALL LAPTOP
   ========================================================= */

@media (max-width: 1100px) and (min-width: 901px) {

    .startup-detail-page {
        max-width: 100%;
        padding: 18px 18px 50px;
    }

    .startup-detail-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 24px;
    }

    .startup-sidebar-sticky {
        top: 90px;
    }

    .startup-identity-bar {
        margin-left: 20px;
        margin-right: 20px;
        padding: 18px 22px;
    }

    .startup-identity-info h1 {
        font-size: 28px;
    }

    .startup-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .startup-detail-page {
        max-width: 100%;
        padding: 16px 16px 50px;
    }

    .startup-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .startup-sidebar-sticky {
        position: static;
    }

    .startup-banner {
        aspect-ratio: 1128 / 230;
    }

    .startup-identity-bar {
        margin: -36px 16px 0;
        padding: 18px 20px;
        gap: 18px;
    }

    .startup-logo-box {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        margin-top: -28px;
    }

    .startup-identity-info h1 {
        font-size: 26px;
    }

    .startup-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin: 24px 0 32px;
    }

    .startup-content-card {
        padding: 28px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .startup-detail-page {
        padding: 12px 12px 40px;
    }

    .startup-banner {
        aspect-ratio: 16 / 5;
        border-radius: 6px;
    }

    .startup-identity-bar {
        align-items: flex-start;

        margin: -28px 10px 0;
        padding: 16px;

        gap: 14px;
        border-radius: 10px;
    }

    .startup-logo-box {
        width: 64px;
        height: 64px;
        flex: 0 0 64px;

        margin-top: -22px;
        border-radius: 10px;
    }

    .startup-logo-box img {
        padding: 7px;
    }

    .startup-identity-info {
        min-width: 0;
    }

    .startup-identity-info h1 {
        font-size: 22px;
    }

    .startup-tagline {
        font-size: 13px;
    }

    .startup-identity-actions {
        width: 100%;
        padding-left: 0;
    }

    .startup-btn {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    .startup-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 20px 0 24px;
    }

    .startup-stat-card {
        padding: 14px;
    }

    .startup-stat-value {
        font-size: 17px;
    }

    .startup-content-card {
        padding: 22px 18px;
    }

    .startup-section-header h2 {
        font-size: 21px;
    }

    .startup-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .startup-founder-card {
        padding: 18px;
        margin-top: 28px;
    }

    .startup-sidebar-section {
        padding: 20px 18px;
    }
}