/* =====================================================
   TRAINCU — About Page
   ===================================================== */

.tn-about {
    font-family: var(--tn-font, 'Plus Jakarta Sans', sans-serif);
    overflow-x: hidden;
}

/* ── Hero (simple) ── */
.ab-hero {
    position: relative;
    background: linear-gradient(160deg, var(--tn-navy) 0%, var(--tn-navy-2) 55%, var(--tn-navy-3) 100%);
    padding: 72px 0 48px;
    overflow: hidden;
}

.ab-hero-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 124, 0, .14) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
    animation: ab-glow-pulse 6s ease-in-out infinite;
}

.ab-hero .container {
    position: relative;
    z-index: 1;
}

.ab-hero-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.ab-hero-title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.5px;
    line-height: 1.2;
    animation: ab-fade-up .7s ease both;
}

.ab-hero-sub {
    color: rgba(255, 255, 255, .7);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.7;
    margin: 0;
    animation: ab-fade-up .7s .15s ease both;
}

.ab-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.ab-hero-stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--tn-r, 12px);
    padding: 18px 12px;
    text-align: center;
    backdrop-filter: blur(8px);
    animation: ab-fade-up .6s calc(.25s + var(--d, 0) * .1s) ease both;
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.ab-hero-stat:hover {
    transform: translateY(-4px);
    background: rgba(245, 124, 0, .1);
    border-color: rgba(245, 124, 0, .35);
}

.ab-hero-stat-num {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--tn-orange-lt, #FF9800);
    line-height: 1;
    margin-bottom: 4px;
}

.ab-hero-stat-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
}

/* ── About story ── */
.ab-story {
    padding: 88px 0;
    background: var(--tn-off, #F8FAFC);
    position: relative;
}

.ab-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tn-gray-200), transparent);
}

.ab-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.ab-story-desc {
    font-size: 16px;
    color: var(--tn-gray-600);
    line-height: 1.85;
}

.ab-story-desc p { margin-bottom: 14px; }

.ab-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.ab-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--tn-gray-200);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tn-navy);
    box-shadow: var(--tn-shadow);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.ab-feature-pill:hover {
    transform: translateY(-2px);
    border-color: var(--tn-orange);
    box-shadow: 0 6px 16px rgba(245, 124, 0, .15);
}

.ab-feature-pill i {
    color: var(--tn-orange);
    font-size: 15px;
}

.ab-visual {
    position: relative;
}

.ab-visual-frame {
    position: relative;
    border-radius: var(--tn-r-lg, 18px);
    overflow: hidden;
    box-shadow: var(--tn-shadow-lg);
}

.ab-visual-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 3px solid rgba(245, 124, 0, .4);
    z-index: 2;
    pointer-events: none;
}

.ab-visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.ab-float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--tn-r, 12px);
    padding: 14px 18px;
    box-shadow: var(--tn-shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.ab-float-card--trust {
    bottom: 24px;
    left: -20px;
    animation: ab-float 4s ease-in-out infinite;
}

.ab-float-card--years {
    top: 24px;
    right: -20px;
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    min-width: 100px;
    animation: ab-float 4s ease-in-out 1.5s infinite;
}

.ab-float-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tn-orange), var(--tn-orange-lt));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.ab-float-card strong {
    display: block;
    font-size: 14px;
    color: var(--tn-navy);
    font-weight: 700;
}

.ab-float-card span {
    font-size: 12px;
    color: var(--tn-gray-400);
}

.ab-years-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--tn-orange);
    line-height: 1;
}

.ab-years-lbl {
    font-size: 11px;
    color: var(--tn-gray-600);
    font-weight: 600;
    margin-top: 4px;
}

.ab-deco-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--tn-orange) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: .25;
    top: -30px;
    left: -30px;
    z-index: 0;
}

/* ── Services / offers ── */
.ab-offers {
    padding: 88px 0;
    background: #fff;
}

.ab-offers-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}

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

.ab-offer-card {
    background: #fff;
    border: 1px solid var(--tn-gray-200);
    border-radius: var(--tn-r-lg);
    padding: 36px 28px;
    transition: all var(--tn-t, .25s ease);
    position: relative;
    overflow: hidden;
}

.ab-offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tn-navy), var(--tn-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.ab-offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tn-shadow-lg);
    border-color: transparent;
}

.ab-offer-card:hover::before { transform: scaleX(1); }

.ab-offer-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--tn-orange), var(--tn-orange-lt));
}

.ab-offer-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--tn-navy-3), var(--tn-navy));
}

.ab-offer-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.ab-offer-card:nth-child(1) .ab-offer-icon { background: rgba(11, 29, 58, .08); color: var(--tn-navy); }
.ab-offer-card:nth-child(2) .ab-offer-icon { background: rgba(245, 124, 0, .1); color: var(--tn-orange); }
.ab-offer-card:nth-child(3) .ab-offer-icon { background: rgba(28, 53, 87, .1); color: var(--tn-navy-3); }

.ab-offer-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 12px;
}

.ab-offer-card p {
    font-size: 14px;
    color: var(--tn-gray-600);
    line-height: 1.75;
    margin: 0;
}

/* ── Explore categories ── */
.ab-explore {
    padding: 88px 0;
    background: linear-gradient(160deg, var(--tn-navy) 0%, var(--tn-navy-2) 45%, var(--tn-navy-3) 100%);
    position: relative;
    overflow: hidden;
}

.ab-explore::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 124, 0, .08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.ab-explore-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.ab-explore-header .tn-label {
    color: var(--tn-orange-lt, #FF9800);
    justify-content: center;
}

.ab-explore-header .tn-label::before { display: none; }

.ab-explore-header .tn-title { color: #fff; }
.ab-explore-header .tn-sub { color: rgba(255, 255, 255, .6); margin: 0 auto; }

.ab-offers-header .tn-label { justify-content: center; }
.ab-offers-header .tn-label::before { display: none; }

.ab-cat-wrap {
    display: flex;
    justify-content: center;
    position: relative;
}

.ab-cat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.ab-cat-item {
    flex: 0 0 140px;
    width: 140px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--tn-r-lg);
    padding: 28px 16px 22px;
    text-align: center;
    transition: all var(--tn-t);
    backdrop-filter: blur(8px);
}

.ab-cat-item:hover {
    background: rgba(245, 124, 0, .12);
    border-color: rgba(245, 124, 0, .4);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

.ab-cat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: rgba(245, 124, 0, .15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-cat-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ab-cat-item h6 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* ── How it works ── */
.ab-hiw {
    padding: 88px 0;
    background: var(--tn-gray-100);
}

.ab-hiw-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.ab-hiw-accordion .accordion-item {
    border: none;
    border-radius: var(--tn-r) !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--tn-shadow);
}

.ab-hiw-heading .tn-title {
    display: inline-block;
}

.ab-hiw-accordion .accordion-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    font-size: 15px;
    font-weight: 700;
    color: var(--tn-navy);
    padding: 14px 18px;
    background: #fff;
    box-shadow: none;
    gap: 0;
}

.ab-hiw-btn-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    padding-inline-end: 12px;
}

.ab-hiw-btn-text {
    flex: 1;
    text-align: start;
    line-height: 1.45;
}

.ab-hiw-accordion .accordion-button:not(.collapsed) {
    color: var(--tn-orange);
    background: #fff;
}

.ab-hiw-accordion .accordion-button::after {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-inline-start: auto;
    margin-inline-end: 0;
    background-size: 1.1rem;
    filter: none;
    transition: transform .25s ease;
}

.ab-hiw-num {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--tn-gray-100);
    color: var(--tn-navy);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-hiw-accordion .accordion-button:not(.collapsed) .ab-hiw-num {
    background: var(--tn-orange);
    color: #fff;
}

.ab-hiw-accordion .accordion-body {
    padding: 4px 18px 20px;
    padding-inline-start: calc(18px + 40px + 14px);
    font-size: 14px;
    color: var(--tn-gray-600);
    line-height: 1.7;
}

.ab-hiw-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ab-hiw-steps li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tn-gray-200);
    font-size: 14px;
    color: var(--tn-gray-800);
}

.ab-hiw-steps li:last-child { border-bottom: none; }

.ab-hiw-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tn-orange), var(--tn-orange-lt));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-hiw-image {
    position: relative;
    border-radius: var(--tn-r-lg);
    overflow: hidden;
    box-shadow: var(--tn-shadow-lg);
}

.ab-hiw-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.ab-hiw-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 29, 58, .4) 0%, transparent 50%);
    pointer-events: none;
}

/* ── CTA banner ── */
.ab-cta {
    padding: 72px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ab-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 29, 58, .92) 0%, rgba(11, 29, 58, .78) 100%);
}

.ab-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.ab-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.ab-cta p {
    color: rgba(255, 255, 255, .75);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.7;
}

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

/* ── Values strip ── */
.ab-values {
    padding: 64px 0;
    background: #fff;
    border-top: 1px solid var(--tn-gray-200);
    border-bottom: 1px solid var(--tn-gray-200);
}

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

.ab-value-item {
    text-align: center;
    padding: 20px 16px;
}

.ab-value-item i {
    font-size: 32px;
    color: var(--tn-orange);
    margin-bottom: 14px;
    display: block;
}

.ab-value-item h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 8px;
}

.ab-value-item p {
    font-size: 13px;
    color: var(--tn-gray-600);
    margin: 0;
    line-height: 1.6;
}

/* ── Scroll reveal animations ── */
.ab-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .65s cubic-bezier(.22, 1, .36, 1),
                transform .65s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(var(--d, 0) * .08s);
}

.ab-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ab-offer-card,
.ab-cat-item {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1),
                box-shadow .35s ease,
                border-color .35s ease,
                background .35s ease;
}

.ab-visual-frame img {
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.ab-visual-frame:hover img {
    transform: scale(1.04);
}

.ab-value-item i {
    transition: transform .4s ease, color .3s ease;
}

.ab-value-item:hover i {
    transform: scale(1.15) rotate(-6deg);
}

.ab-cta-btns .tn-btn {
    transition: transform .3s ease, box-shadow .3s ease;
}

.ab-cta-btns .tn-btn:hover {
    transform: translateY(-3px);
}

@keyframes ab-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ab-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes ab-glow-pulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .ab-reveal { opacity: 1; transform: none; transition: none; }
    .ab-hero-title,
    .ab-hero-sub,
    .ab-hero-stat,
    .ab-float-card--trust,
    .ab-float-card--years,
    .ab-hero-glow { animation: none; }
}

/* ── RTL ── */
[dir="rtl"] .ab-float-card--trust { left: auto; right: -20px; }
[dir="rtl"] .ab-float-card--years { right: auto; left: -20px; }
[dir="rtl"] .ab-hiw-accordion .accordion-body {
    padding-inline-start: 18px;
    padding-inline-end: calc(18px + 40px + 14px);
}
[dir="rtl"] .ab-hiw-steps li { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .ab-hero-glow { right: auto; left: -80px; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .ab-story-grid,
    .ab-hiw-layout { grid-template-columns: 1fr; gap: 40px; }
    .ab-offers-grid { grid-template-columns: 1fr; }
    .ab-values-grid { grid-template-columns: repeat(2, 1fr); }
    .ab-float-card--trust { left: 16px; bottom: 16px; }
    .ab-float-card--years { right: 16px; top: 16px; }
    [dir="rtl"] .ab-float-card--trust { right: 16px; left: auto; }
    [dir="rtl"] .ab-float-card--years { left: 16px; right: auto; }
    .ab-visual img { height: 320px; }
    .ab-hiw-image img { height: 360px; }
}

@media (max-width: 767px) {
    .ab-hero { padding: 56px 0 40px; }
    .ab-hero-stats { grid-template-columns: repeat(2, 1fr); }
    .ab-story,
    .ab-offers,
    .ab-explore,
    .ab-hiw { padding: 56px 0; }
    .ab-values-grid { grid-template-columns: 1fr; }
    .ab-cat-item { flex: 0 0 calc(50% - 12px); width: calc(50% - 12px); max-width: 160px; }
}
