/* ═══════════════════════════════════════════════════════════════════
   TrainingP Landing Pages — Custom Styles
   Bootstrap handles: grid, spacing, typography basics, responsive utils
   This file handles: brand colors, gradients, custom components, animations
   ═══════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────────────── */
:root {
    --tp-primary: #003090;
    --tp-dark: #0A1938;
    --tp-green: #00AF6C;
    --tp-yellow: #FFC62A;
    --tp-pro-blue: #0083FF;
    --tp-red: #F55157;
    --tp-text: #232323;
    --tp-text-muted: #666;
    --tp-text-light: #888;
    --tp-bg-light: #F8FAFF;
    --tp-bg-accent: #EEF2FF;
    --tp-border-light: #E8EEFF;
    --tp-font: 'IBM Plex Sans Arabic', sans-serif;
}

/* ─── Full-Width Fix ─────────────────────────────────────────────── */
/* Override site-container padding for landing pages */
.site-container:has(.tp-landing) {
    padding: 0 !important;
}
/* ─── Base ───────────────────────────────────────────────────────── */
.tp-landing {
    font-family: var(--tp-font);
    color: var(--tp-text);
    overflow-x: clip;
    /* Break out of site-container padding */
    margin-left: -80px;
    margin-right: -80px;
}
@media (max-width: 800px) {
    .tp-landing {
        margin-left: -20px;
        margin-right: -20px;
    }
}

/* ─── Explore Button (Header) ───────────────────────────────────── */
.tp-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #003090 0%, #0A1938 100%);
    box-shadow: 0 2px 12px rgba(0,48,144,0.25);
    color: #fff;
    font-family: var(--tp-font);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tp-explore-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,48,144,0.35);
    color: #fff;
}

.tp-explore-btn .tp-ping-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.tp-explore-btn .tp-ping-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #FFC62A;
    animation: tp-pulse 2s infinite;
}

.tp-explore-btn .tp-ping-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #FFC62A;
}

.tp-landing h1, .tp-landing h2, .tp-landing h3, .tp-landing h4,
.tp-landing p, .tp-landing span, .tp-landing a, .tp-landing button,
.tp-landing li, .tp-landing td, .tp-landing th {
    font-family: var(--tp-font);
}

/* ─── Section Heading ────────────────────────────────────────────── */
.tp-section-heading {
    font-weight: 700;
    font-size: clamp(26px, 3.5vw, 40px);
    color: var(--tp-text);
}

.tp-section-heading .tp-highlight {
    color: var(--tp-primary);
    position: relative;
    display: inline-block;
}

.tp-section-heading .tp-highlight svg {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 8px;
}

.tp-section-heading.tp-light {
    color: #fff;
}

.tp-section-heading.tp-light .tp-highlight {
    color: rgba(255,255,255,0.7);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.tp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--tp-font);
    font-weight: 700;
    font-size: 17px;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.tp-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.tp-btn:active {
    transform: scale(0.97);
}

.tp-btn-primary {
    background: var(--tp-primary);
    color: #fff;
}

.tp-btn-white {
    background: #fff;
    color: var(--tp-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tp-btn-outline-white {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}

.tp-btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.tp-btn-green {
    background: var(--tp-green);
    color: #fff;
}

.tp-btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 10px;
}

.tp-btn-md {
    padding: 12px 28px;
    font-size: 16px;
}

/* ─── Badge ──────────────────────────────────────────────────────── */
.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.tp-badge-glass {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.tp-badge-accent {
    background: var(--tp-bg-accent);
    border: 1px solid #C7D5FF;
    color: var(--tp-primary);
}

/* ─── Gradient Backgrounds ───────────────────────────────────────── */
.tp-gradient-hero {
    background: linear-gradient(150deg, #0A1938 0%, #003090 55%, #003090 100%);
}

.tp-gradient-dark {
    background: linear-gradient(135deg, #0A1938 0%, #003090 100%);
}

.tp-gradient-cta {
    background: linear-gradient(135deg, #003090 0%, #0A1938 100%);
}

/* ─── HERO SECTION ───────────────────────────────────────────────── */
.tp-hero {
    min-height: 92vh;
    position: relative;
    overflow: hidden;
}

.tp-hero-title {
    font-weight: 800;
    font-size: clamp(30px, 4.5vw, 58px);
    color: #fff;
    line-height: 1.35;
}

.tp-hero-title span {
    color: rgba(255,255,255,0.65);
}

.tp-hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.72);
    line-height: 1.85;
}

/* Pulse dot animation */
.tp-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tp-green);
    position: relative;
}

.tp-pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--tp-green);
    animation: tp-pulse 2s infinite;
}

@keyframes tp-pulse {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Trust items */
.tp-trust-item {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.tp-trust-item svg {
    color: rgba(255,255,255,0.45);
}

/* ─── Dashboard Mockup ───────────────────────────────────────────── */
.tp-mockup-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.tp-mockup-toolbar {
    background: #F8FAFF;
    border-bottom: 1px solid #E8EEFF;
    padding: 10px 16px;
}

.tp-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.tp-stat-card {
    border-radius: 12px;
    padding: 12px;
}

.tp-floating-card {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid #E8F0FE;
    padding: 10px 16px;
    z-index: 20;
}

/* ─── TRAINEE BANNER ─────────────────────────────────────────────── */
.tp-trainee-banner {
    background: var(--tp-bg-accent);
    border-bottom: 1px solid #D0DEFF;
    padding: 16px 0;
}

.tp-trainee-banner .tp-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
}

/* ─── STAKES SECTION ─────────────────────────────────────────────── */
.tp-stakes {
    background: #0A1938;
}

.tp-stakes-title {
    font-weight: 800;
    font-size: clamp(26px, 4vw, 44px);
    color: #fff;
    line-height: 1.4;
}

.tp-stakes-title span {
    color: rgba(255,255,255,0.5);
}

.tp-challenge-card {
    border-radius: 16px;
    padding: 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.3s;
}

.tp-challenge-card:hover {
    transform: translateY(-4px);
}

.tp-challenge-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 700;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.tp-bridge-box {
    border-radius: 16px;
    padding: 32px;
    background: rgba(0,48,144,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* ─── VALUE PROPOSITION ──────────────────────────────────────────── */
.tp-pillar-card {
    border-radius: 16px;
    padding: 32px;
    border: 1.5px solid var(--tp-border-light);
    background: #FAFBFF;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tp-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tp-pillar-card .tp-accent-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    border-radius: 0 0 0 4px;
    background: linear-gradient(to bottom, var(--tp-primary), var(--tp-dark));
}

/* ─── SOLUTIONS STICKY SCROLL ────────────────────────────────────── */
.tp-solutions-container {
    position: relative;
}

.tp-solutions-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tp-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50px;
    background: #D1D5DB;
    transition: all 0.3s;
}

.tp-progress-dot.active {
    width: 24px;
    background: var(--tp-primary);
}

.tp-feature-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,48,144,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-feature-check svg {
    width: 13px;
    height: 13px;
    stroke: var(--tp-primary);
    stroke-width: 3;
    fill: none;
}

/* Mockup inside solutions */
.tp-solution-mockup {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12);
    border: 1px solid var(--tp-border-light);
    overflow: hidden;
}

.tp-solution-mockup-header {
    background: #F8FAFF;
    border-bottom: 1px solid #EEF2FF;
    padding: 10px 16px;
}

/* ─── EMPATHY / TESTIMONIALS ─────────────────────────────────────── */
.tp-testimonial-card {
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    border: 1.5px solid var(--tp-border-light);
    box-shadow: 0 4px 20px rgba(0,48,144,0.06);
}

.tp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    background: var(--tp-primary);
}

/* ─── PLAN / STEPS ───────────────────────────────────────────────── */
.tp-step-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003090, #0A1938);
    box-shadow: 0 10px 30px rgba(0,48,144,0.3);
    position: relative;
    z-index: 1;
}

.tp-steps-line {
    position: absolute;
    top: 56px;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: linear-gradient(to left, #003090, #0A1938, #003090, #0A1938);
    opacity: 0.2;
}

/* ─── CTA BOX ────────────────────────────────────────────────────── */
.tp-cta-box {
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.tp-faq-item {
    border-radius: 16px;
    border: 1.5px solid var(--tp-border-light);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s;
}

.tp-faq-item.active {
    border-color: var(--tp-primary);
    background: #FAFBFF;
}

.tp-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
}

.tp-faq-btn h3 {
    font-weight: 600;
    font-size: 17px;
    color: var(--tp-text);
    line-height: 1.5;
    margin: 0;
}

.tp-faq-item.active .tp-faq-btn h3 {
    color: var(--tp-primary);
}

.tp-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 16px;
    background: var(--tp-bg-accent);
    color: var(--tp-primary);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
}

.tp-faq-item.active .tp-faq-icon {
    background: var(--tp-primary);
    color: #fff;
}

.tp-faq-answer {
    padding: 0 24px 24px;
    display: none;
}

.tp-faq-item.active .tp-faq-answer {
    display: block;
}

.tp-faq-answer p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    padding-top: 16px;
    border-top: 1px solid var(--tp-border-light);
}

/* ─── PRICING PAGE ───────────────────────────────────────────────── */
.tp-pricing-hero {
    background: linear-gradient(150deg, #0A1938 0%, #003090 60%, #003090 100%);
    padding-top: 80px;
    padding-bottom: 140px;
    position: relative;
    overflow: hidden;
}

/* Pull pricing cards up into hero */
.tp-pricing-cards-section {
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

/* Toggle */
.tp-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.tp-toggle-label {
    font-weight: 400;
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-toggle-label.active {
    font-weight: 700;
    color: #fff;
}

.tp-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.tp-toggle-switch.active {
    background: #fff;
}

.tp-toggle-switch .tp-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: all 0.25s;
}

.tp-toggle-switch.active .tp-toggle-knob {
    left: auto;
    right: 3px;
    background: var(--tp-primary);
}

.tp-save-badge {
    background: var(--tp-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}

/* Pricing Cards */
.tp-pricing-card {
    border-radius: 24px;
    border: 2px solid #F0F0F0;
    background: #FAFAFA;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.tp-pricing-card.popular {
    border-color: var(--tp-pro-blue);
    background: #fff;
    box-shadow: 0 12px 48px rgba(0,131,255,0.15), 0 2px 8px rgba(0,0,0,0.06);
}

.tp-pricing-ribbon {
    background: linear-gradient(90deg, var(--tp-pro-blue), #005FDC);
    text-align: center;
    padding: 8px 0;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.tp-pricing-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tp-plan-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-plan-price {
    font-weight: 800;
    font-size: 46px;
    line-height: 1;
}

.tp-plan-divider {
    height: 1px;
    margin: 16px 0;
}

.tp-plan-cta {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.tp-plan-cta:active {
    transform: scale(0.97);
}

.tp-plan-cta.filled {
    background: linear-gradient(90deg, var(--tp-pro-blue), #005FDC);
    color: #fff;
    border: none;
}

.tp-plan-cta.outlined {
    background: transparent;
    border: 2px solid;
}

.tp-commission-note {
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--tp-text-muted);
}

.tp-early-bird {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 8px 12px;
    background: linear-gradient(90deg, rgba(255,198,42,0.09), rgba(255,198,42,0.03));
    border: 1px solid rgba(255,198,42,0.33);
}

/* Comparison Table */
.tp-comparison-table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

@media (max-width: 767.98px) {
    .tp-comparison-table {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

.tp-comparison-table thead th {
    background: var(--tp-primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 24px;
    border: none;
}

.tp-comparison-table tbody tr:nth-child(odd) {
    background: #fff !important;
}

.tp-comparison-table tbody tr:nth-child(even) {
    background: #F8FAFF !important;
}

.tp-comparison-table tbody td {
    padding: 14px 24px;
    font-size: 14px;
    border: none;
    vertical-align: middle;
}

.tp-comparison-table tbody td:first-child {
    text-align: right !important;
    font-weight: 500;
    color: #333;
}

/* ─── Scroll Indicator ───────────────────────────────────────────── */
.tp-scroll-indicator {
    opacity: 0.6;
}

@keyframes tp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.tp-bounce {
    animation: tp-bounce 2s infinite;
}

/* ─── Revenue Chart Bars ─────────────────────────────────────────── */
.tp-chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
}

/* ─── Brand Watermark Pattern ────────────────────────────────────── */
.tp-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.tp-watermark svg {
    position: absolute;
    opacity: 0.05;
}

/* ─── Full-Width: Cancel negative margins when :has() works ────── */
.site-container:has(.tp-landing) .tp-landing {
    margin-left: 0;
    margin-right: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    /*
     * CRITICAL FIX: navbar.css & trainerMain.css contain a broad rule:
     *   .d-flex.align-items-center { flex-direction: column; align-items: stretch !important; }
     * This breaks ALL flex layouts inside our landing pages.
     * We override it here to restore normal flex behavior within .tp-landing.
     */
    .tp-landing .d-flex.align-items-center {
        flex-direction: row !important;
        align-items: center !important;
        gap: initial;
        width: auto;
        margin-top: 0;
        padding: 0;
        border-top: none;
    }

    /* Allow specific elements to remain column where needed */
    .tp-landing .tp-trainee-banner .container.d-flex {
        flex-direction: column !important;
        text-align: center;
        gap: 12px !important;
    }

    .tp-hero {
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .tp-solutions-container {
        height: auto !important;
    }

    .tp-solutions-sticky {
        position: relative !important;
        height: auto !important;
    }

    .tp-solution-slide {
        display: block !important;
        margin-bottom: 60px;
    }

    .tp-steps-line {
        display: none;
    }

    .tp-cta-box {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .tp-section-heading {
        font-size: clamp(22px, 5vw, 34px);
    }
}

@media (max-width: 767.98px) {
    /* Hero */
    .tp-hero-title {
        font-size: clamp(26px, 7vw, 38px);
    }

    .tp-hero-desc {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Floating cards: hide on mobile */
    .tp-floating-card {
        display: none !important;
    }

    /* Mockup card on mobile */
    .tp-hero .tp-mockup-card {
        border-radius: 12px;
    }

    .tp-hero .tp-stat-card p:nth-child(2) {
        font-size: 16px !important;
    }

    /* Buttons */
    .tp-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .tp-btn-md {
        padding: 11px 22px;
        font-size: 15px;
    }

    /* Trust items */
    .tp-trust-item {
        font-size: 12px;
    }

    /* Stakes */
    .tp-stakes-title {
        font-size: clamp(22px, 6vw, 36px);
    }

    .tp-challenge-card {
        padding: 20px;
        border-radius: 12px;
    }

    .tp-bridge-box {
        padding: 24px 16px;
        border-radius: 12px;
    }

    /* Value proposition */
    .tp-pillar-card {
        padding: 24px;
        border-radius: 12px;
    }

    /* Steps */
    .tp-step-circle {
        width: 88px;
        height: 88px;
    }

    .tp-step-circle span:first-child {
        font-size: 1.4rem !important;
    }

    /* FAQ */
    .tp-faq-btn {
        padding: 16px 18px;
    }

    .tp-faq-btn h3 {
        font-size: 15px;
    }

    .tp-faq-answer {
        padding: 0 18px 18px;
    }

    .tp-faq-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
        margin-right: 12px;
    }

    /* Pricing */
    .tp-pricing-hero {
        padding-top: 60px;
        padding-bottom: 100px;
    }

    .tp-pricing-cards-section {
        margin-top: -60px;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .tp-pricing-body {
        padding: 20px;
    }

    .tp-plan-price {
        font-size: 36px;
    }

    /* Pricing toggle mobile */
    .tp-toggle-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tp-toggle-label {
        font-size: 14px;
    }

    .tp-save-badge {
        font-size: 10px;
        padding: 2px 6px;
    }


    /* Trainee banner - must use !important to override our own 991.98px row reset */
    .tp-trainee-banner {
        padding: 12px 0;
    }

    .tp-trainee-banner .container {
        flex-direction: column !important;
        text-align: center;
        gap: 12px !important;
    }

    /* Testimonials */
    .tp-testimonial-card {
        padding: 20px;
    }

    /* Mockup wrapper on mobile */
    .tp-mockup-wrapper {
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .tp-mockup-body {
        padding: 12px;
    }

    .tp-mockup-body .card-dark {
        padding: 12px;
        border-radius: 10px;
    }

    /* Mobile stacked solutions */
    .tp-mobile-solution {
        margin-bottom: 40px;
        padding-bottom: 32px;
        border-bottom: 1px solid #E8EEFF;
    }

    .tp-mobile-solution:last-child {
        border-bottom: none;
        margin-bottom: 24px;
    }

    .tp-mobile-solution h3 {
        font-size: 20px !important;
    }

    .tp-mobile-solution p {
        font-size: 15px !important;
    }

    /* Mobile mockup improvements */
    .tp-mobile-solution .tp-mockup-wrapper {
        margin-top: 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .tp-mobile-solution .tp-mockup-body {
        padding: 12px;
    }

    .tp-mobile-solution .tp-mockup-body .card-dark {
        padding: 12px;
        border-radius: 10px;
    }

    .tp-mobile-solution .tp-mockup-body .row-item {
        padding: 8px 0;
        font-size: 12px;
    }

    .tp-mobile-solution .tp-mockup-body .session-card {
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    /* Explicit flex row resets for mockup internals (extra safety against navbar.css override) */
    .tp-mockup-body .d-flex {
        flex-direction: row !important;
        align-items: center !important;
    }

    .tp-mockup-body .d-flex.flex-column {
        flex-direction: column !important;
    }

    .tp-mockup-wrapper .tp-mockup-bar {
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Keep status pills compact */
    .tp-mockup-body .status-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Hero mobile improvements */
    .tp-hero .row {
        min-height: auto !important;
    }

    .tp-hero .tp-mockup-card {
        max-width: 340px;
        margin: 0 auto;
    }

    .tp-hero .tp-stat-card {
        padding: 8px !important;
    }

    .tp-hero .tp-badge {
        font-size: 13px;
    }

    /* Trainee banner mobile */
    .tp-trainee-banner .tp-pill {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }

    /* Stakes section mobile */
    .tp-stakes {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .tp-stakes-title {
        line-height: 1.5;
    }

    .tp-bridge-box {
        text-align: center;
    }

    /* Value proposition mobile */
    .tp-pillar-card {
        margin-bottom: 0;
    }

    /* Steps section mobile */
    .tp-step-circle {
        margin-bottom: 12px;
    }

    /* CTA box mobile */
    .tp-cta-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Empathy section image mobile */
    .tp-landing section .rounded-4 {
        aspect-ratio: 16/10 !important;
    }

    /* Testimonial cards mobile */
    .tp-testimonial-card {
        margin-bottom: 0;
    }

    /* General mobile section padding */
    .tp-landing .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Solutions section header mobile */
    .tp-scroll-indicator {
        display: none;
    }

    /* Reduce section vertical spacing on mobile */
    .tp-landing section.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 430px) {
    /* iPhone Pro Max and similar */
    .tp-hero {
        padding-top: 16px;
        padding-bottom: 24px;
    }

    .tp-hero-title {
        font-size: clamp(22px, 6.5vw, 30px);
    }

    .tp-hero-desc {
        font-size: 14px;
    }

    .tp-section-heading {
        font-size: clamp(20px, 5.5vw, 28px);
    }

    .tp-challenge-card h3 {
        font-size: 16px !important;
    }

    .tp-challenge-card p {
        font-size: 13px !important;
    }

    .tp-mobile-solution h3 {
        font-size: 18px !important;
    }

    .tp-mobile-solution p {
        font-size: 14px !important;
    }

    /* Trainee banner smaller phones */
    .tp-trainee-banner p {
        font-size: 12px !important;
    }

    /* Buttons smaller */
    .tp-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* CTA box */
    .tp-cta-box h3 {
        font-size: clamp(18px, 5vw, 24px) !important;
    }

    .tp-cta-box p {
        font-size: 14px !important;
    }

    /* Pricing cards */
    .tp-pricing-cards-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ─── Solution Mockup Cards ─────────────────────────────────────── */
.tp-mockup-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12);
    border: 1px solid var(--tp-border-light);
    overflow: hidden;
}

.tp-mockup-bar {
    background: #F8FAFF;
    border-bottom: 1px solid #EEF2FF;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-mockup-bar .dots {
    display: flex;
    gap: 5px;
}

.tp-mockup-bar .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tp-mockup-bar .title {
    font-size: 11px;
    color: #888;
}

.tp-mockup-bar .badge-count {
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    background: #EEF2FF;
    color: var(--tp-primary);
    margin-right: auto;
}

.tp-mockup-body {
    padding: 16px;
    direction: rtl;
}

.tp-mockup-body .row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F0F4FF;
    font-size: 13px;
}

.tp-mockup-body .row-item:last-child {
    border-bottom: none;
}

.tp-mockup-body .row-item .label {
    color: #888;
}

.tp-mockup-body .row-item .value {
    font-weight: 600;
    color: #232323;
}

.tp-mockup-body .avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: var(--tp-primary);
    flex-shrink: 0;
}

.tp-mockup-body .status-pill {
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.tp-mockup-body .card-dark {
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #003090, #0A1938);
    color: #fff;
    margin-bottom: 12px;
}

.tp-mockup-body .session-card {
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #C7D5FF;
    background: #EEF2FF;
}

.tp-mockup-body .session-card.done {
    background: #F8FAFF;
    border-color: #E0E0E0;
}

.tp-mockup-body .info-box {
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
}

/* Hide all mockups, show only active */
.tp-solution-mockups .tp-mockup-wrapper {
    display: none;
}

.tp-solution-mockups .tp-mockup-wrapper.active {
    display: block;
}
