/* =====================================================
   TRAINCU — About Page Stylesheet (من نحن)
   Unified Design System matching Landing Pages & Homepage
   Inherits 00-tokens.css, traincu-home.css & landing-pages.css
   ===================================================== */

.tn-about-page {
    font-family: var(--t-font, 'Plus Jakarta Sans', 'MOLarabicRegular', sans-serif);
    color: var(--t-ink, #1A1A1A);
    overflow-x: hidden;
    background: #FFFFFF;
}

/* ── Typography & Consistency ── */
.tn-about-page,
.tn-about-page * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

[dir="rtl"] .tn-about-page {
    text-align: right;
}

[dir="ltr"] .tn-about-page {
    text-align: left;
}

/* ── Hero Section (Uses unified .tn-hero background & white text) ── */
.tn-hero-about {
    position: relative;
    min-height: 520px;
    padding: 92px 0 76px;
    background:
        linear-gradient(135deg, rgba(26,10,46,.96) 0%, rgba(117,65,143,.82) 55%, rgba(106,40,166,.92) 100%),
        var(--t-ink-deep, #1A0A2E);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tn-hero-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 75% 50%, rgba(195,155,211,.14) 0%, transparent 70%);
    pointer-events: none;
}

.tn-hero-about::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.ab-hero-glow-1 {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 65, 143, 0.28) 0%, transparent 70%);
    top: -140px;
    inset-inline-end: -100px;
    pointer-events: none;
    animation: ab-pulse 8s ease-in-out infinite alternate;
}

.ab-hero-glow-2 {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 155, 211, 0.16) 0%, transparent 70%);
    bottom: -100px;
    inset-inline-start: -80px;
    pointer-events: none;
    animation: ab-pulse 6s ease-in-out infinite alternate-reverse;
}

.ab-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.ab-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ab-hero-badge i {
    color: #FFFFFF;
    font-size: 16px;
}

.ab-hero-title {
    color: #FFFFFF;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Same white highlight matching other landing pages */
.ab-hero-title .hl {
    color: #FFFFFF !important;
    font-size: 0.9em;
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.ab-hero-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.8;
    max-width: 820px;
    margin: 0 auto 32px;
}

.ab-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ── Hero Stats Strip (White & Purple Accents) ── */
.ab-hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ab-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.ab-stat-item i {
    color: #D8CAE0;
    font-size: 17px;
}

/* ── Section Header Styling ── */
.ab-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.ab-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t-brand, #75418F);
    margin-bottom: 12px;
    background: #F7F4F8;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--t-brand-tint, #D8CAE0);
}

.ab-section-title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--t-ink-deep, #1A0A2E);
    line-height: 1.3;
    margin-bottom: 14px;
}

.ab-section-sub {
    font-size: 15.5px;
    color: var(--t-ink-3, #596373);
    line-height: 1.75;
    margin: 0 auto;
}

/* ── Story & Vision / Mission Section ── */
.ab-intro-section {
    padding: 80px 0;
    background: #FFFFFF;
    position: relative;
}

.ab-story-box {
    background: linear-gradient(135deg, #F7F4F8 0%, #FFFFFF 100%);
    border: 1.5px solid var(--t-brand-tint, #D8CAE0);
    border-radius: var(--t-r-lg, 18px);
    padding: 36px 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(117, 65, 143, 0.06);
    position: relative;
    overflow: hidden;
}

.ab-story-box::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 4px;
    background: linear-gradient(90deg, #75418F, #8A5EA0, #D8CAE0);
}

.ab-story-lead {
    font-size: 16.5px;
    color: var(--t-ink, #1A1A1A);
    line-height: 1.85;
    margin-bottom: 18px;
    font-weight: 500;
}

.ab-story-text {
    font-size: 15.5px;
    color: var(--t-ink-2, #444444);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ── Vision & Mission Grid ── */
.ab-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ab-vision-card {
    background: #FFFFFF;
    border: 1.5px solid var(--t-brand-tint, #D8CAE0);
    border-radius: var(--t-r-lg, 18px);
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(117, 65, 143, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ab-vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(117, 65, 143, 0.14);
    border-color: var(--t-brand, #75418F);
}

.ab-vision-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ab-vision-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: rgba(117, 65, 143, 0.12);
    color: var(--t-brand, #75418F);
    border: 1px solid rgba(117, 65, 143, 0.25);
}

.ab-vision-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--t-ink-deep, #1A0A2E);
    margin: 0;
}

.ab-vision-card p {
    font-size: 15px;
    color: var(--t-ink-2, #444444);
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

/* ── Generic Interactive Cards Grid (Auto-fit on desktop) ── */
.ab-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.ab-cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.ab-cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Standard About Card Component ── */
.ab-card {
    background: #FFFFFF;
    border: 1.5px solid var(--t-brand-tint, #D8CAE0);
    border-radius: var(--t-r-lg, 16px);
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(117, 65, 143, 0.06);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ab-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #75418F, #8A5EA0, #D8CAE0);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(117, 65, 143, 0.12);
    border-color: var(--t-brand, #75418F);
}

.ab-card:hover::before {
    opacity: 1;
}

.ab-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #F7F4F8;
    border: 1px solid var(--t-brand-tint, #D8CAE0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--t-brand, #75418F);
    margin-bottom: 18px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.ab-card:hover .ab-card-icon {
    transform: scale(1.08);
    background: var(--t-brand, #75418F);
    color: #FFFFFF;
    border-color: var(--t-brand, #75418F);
}

.ab-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--t-ink-deep, #1A0A2E);
    margin-bottom: 10px;
    line-height: 1.4;
}

.ab-card-desc {
    font-size: 14px;
    color: var(--t-ink-3, #596373);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.ab-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-brand, #75418F);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.ab-card-meta:hover {
    color: var(--t-brand-deep, #662D91);
    gap: 9px;
}

/* ── Steps Card Component ── */
.ab-step-card {
    background: #FFFFFF;
    border: 1.5px solid var(--t-brand-tint, #D8CAE0);
    border-radius: var(--t-r-lg, 16px);
    padding: 28px 22px;
    box-shadow: 0 4px 20px rgba(117, 65, 143, 0.06);
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ab-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(117, 65, 143, 0.12);
    border-color: var(--t-brand, #75418F);
}

.ab-step-badge {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F7F4F8;
    color: var(--t-brand, #75418F);
    border: 1px solid var(--t-brand-tint, #D8CAE0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.ab-step-card:hover .ab-step-badge {
    background: var(--t-brand, #75418F);
    color: #FFFFFF;
    border-color: var(--t-brand, #75418F);
}

/* ── Tech Background Container ── */
.ab-tech-bg {
    position: relative;
    background-color: #F7F4F8;
    background-image:
        linear-gradient(rgba(117, 65, 143, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 65, 143, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ── Beneficiaries (لمن صُممت ترانكو) ── */
.ab-audience-card {
    background: #FFFFFF;
    border: 1.5px solid var(--t-brand-tint, #D8CAE0);
    border-radius: var(--t-r-lg, 16px);
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(117, 65, 143, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.ab-audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(117, 65, 143, 0.1);
    border-color: var(--t-brand, #75418F);
}

.ab-audience-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(117, 65, 143, 0.1);
    color: var(--t-brand, #75418F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ab-audience-card:hover .ab-audience-icon {
    background: var(--t-brand, #75418F);
    color: #FFFFFF;
}

.ab-audience-body h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--t-ink-deep, #1A0A2E);
    margin-bottom: 6px;
    line-height: 1.4;
}

.ab-audience-body p {
    font-size: 13.5px;
    color: var(--t-ink-3, #596373);
    margin: 0;
    line-height: 1.6;
}

/* ── Call To Action Section (Exact unified background & white elements) ── */
.ab-cta-section {
    position: relative;
    padding: 88px 0;
    background:
        linear-gradient(135deg, rgba(26,10,46,.96) 0%, rgba(117,65,143,.82) 55%, rgba(106,40,166,.92) 100%),
        var(--t-ink-deep, #1A0A2E);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    text-align: center;
}

.ab-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 75% 50%, rgba(195,155,211,.14) 0%, transparent 70%);
    pointer-events: none;
}

.ab-cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.ab-cta-box {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.ab-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ab-cta-badge i {
    color: #FFFFFF;
}

.ab-cta-title {
    color: #FFFFFF;
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.ab-cta-desc-1 {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.8;
    margin-bottom: 24px;
}

.ab-cta-subtitle {
    color: #FFFFFF;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 800;
    margin-bottom: 12px;
}

.ab-cta-desc-2 {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 680px;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.ab-cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   CRITICAL REQUIREMENT:
   "وخلي الكاردات تبقي اتنين جمب بعض في الشاشات الصغيره ؟؟"
   Cards must be 2 side-by-side on small screens!
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .ab-cards-grid-4,
    .ab-cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    /* ── Hero Adjustments ── */
    .tn-hero-about {
        min-height: auto;
        padding: 64px 0 48px;
    }
    .ab-hero-title {
        font-size: 24px;
        line-height: 1.35;
    }
    .ab-hero-sub {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 24px;
    }
    .ab-hero-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .ab-hero-actions .tn-btn {
        width: 100%;
        justify-content: center;
    }

    /* ── 2 Cards Side-by-Side in Hero Stats ── */
    .ab-hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 10px !important;
        padding-top: 20px;
        margin-top: 24px;
    }
    .ab-stat-item {
        font-size: 12px !important;
        line-height: 1.35 !important;
    }
    .ab-stat-item i {
        font-size: 15px !important;
    }

    /* ── Section Headers on Mobile ── */
    .ab-section-header {
        margin-bottom: 32px;
    }
    .ab-section-title {
        font-size: 22px;
    }
    .ab-section-sub {
        font-size: 13.5px;
        line-height: 1.6;
    }

    /* ── Story Box ── */
    .ab-story-box {
        padding: 22px 18px;
        border-radius: 14px;
        margin-bottom: 24px;
    }
    .ab-story-lead {
        font-size: 14.5px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    .ab-story-text {
        font-size: 13.5px;
        line-height: 1.65;
    }

    /* ── 2 Cards Side-by-Side for Vision & Mission ── */
    .ab-vision-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .ab-vision-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }
    .ab-vision-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }
    .ab-vision-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }
    .ab-vision-card h3 {
        font-size: 14px !important;
    }
    .ab-vision-card p {
        font-size: 11.5px !important;
        line-height: 1.5 !important;
    }

    /* ── 2 Cards Side-by-Side for ALL Offerings, Beneficiaries, Steps & Values ── */
    .ab-cards-grid,
    .ab-cards-grid-4,
    .ab-cards-grid-3,
    .ab-cards-2col-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .ab-card,
    .ab-step-card {
        padding: 14px 10px !important;
        border-radius: 12px !important;
    }

    .ab-card-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 17px !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
    }

    .ab-card-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
        font-weight: 700 !important;
    }

    .ab-card-desc {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
    }

    .ab-step-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 10.5px !important;
        top: 10px !important;
        inset-inline-end: 10px !important;
    }

    .ab-card-meta {
        font-size: 11px !important;
        margin-top: 10px !important;
    }

    /* ── 2 Cards Side-by-Side for Beneficiaries (لمن صُممت ترانكو) ── */
    .ab-audience-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px 10px !important;
        gap: 8px !important;
        border-radius: 12px !important;
    }
    .ab-audience-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    .ab-audience-body h4 {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        margin-bottom: 4px !important;
    }
    .ab-audience-body p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    /* ── CTA Buttons on Mobile: 2x2 Grid ── */
    .ab-cta-section {
        padding: 60px 0;
    }
    .ab-cta-title {
        font-size: 22px;
    }
    .ab-cta-desc-1 {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 16px;
    }
    .ab-cta-subtitle {
        font-size: 18px;
    }
    .ab-cta-desc-2 {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    .ab-cta-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .ab-cta-buttons .tn-btn {
        padding: 10px 8px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ── Animation Keyframes ── */
@keyframes ab-pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.1) translate(15px, 15px); opacity: 0.8; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
}
