/**
 * Tshijuka – Document marketplace index
 */
body.index-page {
    margin-top: 0;
}

.index-page {
    padding-top: 68px;
    background: #f4f7fc;
    color: #1e293b;
}

.index-page .navbar.navbar-index {
    flex-wrap: nowrap;
}

/* Mobile nav */
.index-page .nav-toggle {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-family: inherit;
}

.index-page .nav-toggle:hover { background: #f3f4f6; }

.index-page .nav-toggle-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.index-page .nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.index-page .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    border-radius: 1px;
}

.index-page .nav-sidebar-backdrop[hidden],
.index-page .nav-sidebar[hidden] {
    display: none !important;
}

.index-page .nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    background: #fff;
    z-index: 1050;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.index-page .nav-sidebar.is-open { transform: translateX(0); }

.index-page .nav-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

.index-page .nav-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eaecf0;
    background: #f8f9fa;
}

.index-page .nav-sidebar-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.index-page .nav-sidebar-close {
    width: 36px;
    height: 36px;
    border: 1px solid #c8ccd1;
    border-radius: 4px;
    background: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.index-page .nav-sidebar-body { flex: 1; overflow-y: auto; }

.index-page .nav-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.index-page .nav-sidebar-links li { border-bottom: 1px solid #eaecf0; }

.index-page .nav-sidebar-links a {
    display: block;
    padding: 14px 16px;
    color: #3366cc;
    text-decoration: none;
}

body.index-page.nav-sidebar-open { overflow: hidden; }

/* Layout */
.mp-container {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.mp-section {
    padding: 3.5rem 0;
}

.mp-section-alt {
    background: #fff;
}

.mp-section-head {
    text-align: center;
    max-width: 680px;
    margin-bottom: 2rem;
}

.mp-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.mp-section-lead {
    margin: 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.mp-eyebrow {
    display: inline-block;
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2563eb;
}

/* Hero */
.mp-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(96, 165, 250, 0.35), transparent),
        linear-gradient(165deg, #0f2d6e 0%, #1d4ed8 48%, #1e40af 100%);
    color: #fff;
    overflow: hidden;
}

.mp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

.mp-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.mp-hero .mp-eyebrow {
    color: rgba(255, 255, 255, 0.92);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.mp-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.75rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.mp-hero-lead {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.mp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.mp-hero-actions .btn {
    min-width: 10.5rem;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
    border-radius: 10px;
}

.mp-hero-actions .btn-secondary {
    background: #fff;
    color: #1d4ed8;
    border: 2px solid #fff;
}

.mp-hero-actions .btn-secondary:hover {
    background: #eff6ff;
}

.mp-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

.mp-trust-bar li {
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
}

/* Cards */
.mp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.mp-card-flat {
    box-shadow: none;
    background: #f8fafc;
}

.mp-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a8a;
}

.mp-card p {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.55;
}

/* Split layouts */
.mp-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.mp-step {
    position: relative;
    padding-top: 1.5rem;
}

.mp-step-num {
    position: absolute;
    top: -0.65rem;
    left: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.mp-lanes { margin-top: 0.5rem; }

.mp-lane-have { border-top: 3px solid #dc2626; }
.mp-lane-want { border-top: 3px solid #2563eb; }

.mp-rules {
    margin: 0.85rem 0 0;
    padding-left: 1rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.mp-rules li { margin-bottom: 0.4rem; }
.mp-rules li:last-child { margin-bottom: 0; }

/* Categories */
.mp-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.mp-cat { border-top: 3px solid #94a3b8; }
.mp-cat-edu { border-top-color: #2563eb; }
.mp-cat-research { border-top-color: #0d9488; }
.mp-cat-business { border-top-color: #ea580c; }
.mp-cat-admin { border-top-color: #64748b; }

/* Criteria */
.mp-criteria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mp-criterion h3 { font-size: 0.95rem; }

.mp-eco-others { border-top: 3px solid #94a3b8; }
.mp-eco-tshijuka { border-top: 3px solid #2563eb; }

.mp-upload-highlight {
    margin-top: 1rem;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.mp-upload-highlight h3 { color: #1d4ed8; }

.mp-criterion-money { border-left: 3px solid #059669; }

.mp-monetizable { margin-top: 0.25rem; }

/* Opportunities */
.mp-opp-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.mp-tag {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
}

.mp-cta-inline { text-align: center; }

/* Final CTA */
.mp-cta-final {
    padding: 3.5rem 0;
    background: linear-gradient(165deg, #0f2d6e 0%, #1d4ed8 100%);
    color: #fff;
    text-align: center;
}

.mp-cta-final-inner h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.mp-cta-final-inner p {
    max-width: 520px;
    margin: 0 auto 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.mp-footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    font-size: 0.9rem;
}

.mp-footer a {
    color: inherit;
}

@media (max-width: 900px) {
    .mp-split,
    .mp-steps,
    .mp-categories,
    .mp-criteria {
        grid-template-columns: 1fr;
    }

    .mp-section { padding: 2.75rem 0; }
    .mp-hero { padding: 3.5rem 0 2.75rem; }
}
