/* ====== WRAPPER ====== */
.startup-theme-projects-wrapper {
    margin: 30px 0;
}

/* ====== TABS ====== */
.startup-theme-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.stm-tab {
    border: 1px solid rgba(249, 125, 9, 0.8);
    border-radius: 999px;
    padding: 6px 14px;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease-out, color 0.12s ease-out, box-shadow 0.12s ease-out, transform 0.08s ease-out;
    white-space: nowrap;
}

.stm-tab:hover {
    box-shadow: 0 8px 16px rgba(249, 125, 9, 0.35);
    transform: translateY(-1px);
}

.stm-tab.active {
    background: #F97D09;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(249, 125, 9, 0.5);
}

/* ====== PROJECT CARDS ====== */
.startup-theme-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.stm-project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.stm-card-left {
    flex: 1 1 auto;
    padding-right: 10px;
}

.stm-card-project {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.stm-card-theme {
    font-size: 12px;
    color: #6b7280;
}

.stm-card-right {
    flex: 0 0 auto;
}

.stm-view-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    background: #F97D09;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(249, 125, 9, 0.4);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.08s ease-out;
}

.stm-view-btn:hover {
    background: #ff9b3b;
    box-shadow: 0 8px 18px rgba(249, 125, 9, 0.5);
    transform: translateY(-1px);
}

.stm-view-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(249, 125, 9, 0.45);
}

/* ====== MODAL (CENTERED) ====== */
.startup-theme-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 20, 0.65);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

.startup-theme-modal-overlay.stm-visible {
    opacity: 1;
    pointer-events: auto;
}

.startup-theme-modal {
    background: #ffffff;
    border-radius: 18px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 18px 20px 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.stm-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: #F97D09;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    line-height: 26px;       /* vertically centers the “x” */
    text-align: center;      /* horizontally centers the “x” */
    padding: 0;              /* remove default button padding */
}

.stm-modal-header {
    margin-bottom: 12px;
}

.stm-modal-theme {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #F97D09;
    margin-bottom: 4px;
    font-weight: 600;
}

.stm-modal-project {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.stm-modal-section {
    margin-top: 14px;
}

.stm-modal-section h4 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #111827;
}

.stm-modal-section p {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}

/* Prevent background scroll when modal open */
body.stm-modal-open {
    overflow: hidden;
}

/* ====== STATS (NO BOX, CENTERED) ====== */
.startup-theme-stats-wrapper {
    margin: 30px 0;
}

.startup-theme-stats {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.startup-theme-stats .sts-header {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
    color: #111827;
}

.startup-theme-stats .sts-counts {
    display: inline-flex;
    align-items: baseline;
    gap: 32px;
    flex-wrap: wrap;
}

.startup-theme-stats .sts-count-block {
    min-width: 120px;
}

.startup-theme-stats .sts-number {
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
    color: #F97D09;
}

.startup-theme-stats .sts-label {
    margin-top: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #6b7280;
}

.startup-theme-stats .sts-divider {
    width: 1px;
    height: 40px;
    background: rgba(209,213,219,1);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .startup-theme-projects {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile tabs: horizontal scroll row instead of huge stacked chips */
    .startup-theme-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .startup-theme-tabs::-webkit-scrollbar {
        height: 4px;
    }
    .startup-theme-tabs::-webkit-scrollbar-thumb {
        background: rgba(156, 163, 175, 0.6);
        border-radius: 999px;
    }
    .stm-tab {
        flex: 0 0 auto;
        padding: 5px 12px;
        font-size: 12px;
    }

    .startup-theme-projects {
        grid-template-columns: 1fr;
    }
    .stm-project-card {
        padding: 12px 14px;
    }

    .startup-theme-modal {
        max-width: 100%;
        padding: 16px 16px 18px;
    }

    .startup-theme-stats .sts-header {
        font-size: 16px;
    }
    .startup-theme-stats .sts-counts {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .startup-theme-modal {
        padding: 14px 14px 16px;
    }
    .stm-modal-project {
        font-size: 18px;
    }

    .startup-theme-stats .sts-number {
        font-size: 38px;
    }
    .startup-theme-stats .sts-header {
        font-size: 14px;
    }
    .startup-theme-stats .sts-counts {
        gap: 16px;
    }
}
