/* ============================================================
   Next Pro — template-about.php (v2 redesign)
   Tokens: design-system.css (--next-*)
   ============================================================ */

/* ── Page shell ───────────────────────────────────────────── */
.next-about-page {
    padding-bottom: 48px;
}

/* ── Hero — asymmetric split ──────────────────────────────── */
.next-about-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 0;
    align-items: stretch;
    background: var(--next-surface, #fff);
    border: 1px solid var(--next-border, #E6E9EE);
    border-radius: var(--next-radius-lg, 20px);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 4px 24px rgba(23, 36, 58, 0.04);
}
@media (max-width: 991px) {
    .next-about-hero {
        grid-template-columns: 1fr;
    }
}

.next-about-hero__content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 575px) {
    .next-about-hero__content { padding: 32px 22px; }
}

.next-about-hero__content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, var(--next-primary-soft, #FFF1E8) 0%, transparent 70%),
        linear-gradient(160deg, #fff 40%, var(--next-surface-soft, #F8F9FB) 100%);
    z-index: -1;
}

.next-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    background: var(--next-primary-soft, #FFF1E8);
    color: var(--next-primary, #F47427);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
    border: 1px solid rgba(244, 116, 39, 0.15);
}
.next-about-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--next-primary, #F47427);
    box-shadow: 0 0 0 3px rgba(244, 116, 39, 0.2);
    flex-shrink: 0;
}

.next-about-hero h1 {
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 16px;
    color: var(--next-ink, #17243A);
    letter-spacing: -0.02em;
}

.next-about-hero p {
    font-size: 15px;
    line-height: 1.95;
    color: var(--next-text, #46546A);
    margin: 0;
    max-width: 480px;
}

.next-about-hero__media {
    position: relative;
    min-height: 280px;
    background: linear-gradient(145deg, var(--next-primary-soft, #FFF1E8) 0%, #fde8d8 100%);
}
@media (max-width: 991px) {
    .next-about-hero__media {
        min-height: 220px;
        order: -1;
    }
}

.next-about-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.next-about-hero__media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--next-muted, #718096);
    opacity: 0.45;
}
.next-about-hero__media.is-empty svg {
    width: 64px;
    height: 64px;
}

/* accent strip on media edge */
.next-about-hero__media::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 12%;
    bottom: 12%;
    width: 5px;
    background: var(--next-primary, #F47427);
    border-radius: 0 4px 4px 0;
}
@media (max-width: 991px) {
    .next-about-hero__media::after {
        inset-inline-start: auto;
        top: auto;
        bottom: 0;
        left: 12%;
        right: 12%;
        width: auto;
        height: 5px;
        border-radius: 4px 4px 0 0;
    }
}

/* ── Stats — bold number strip ────────────────────────────── */
.next-about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
    background: var(--next-ink, #17243A);
    border-radius: var(--next-radius-lg, 20px);
    padding: 8px;
    overflow: hidden;
}
@media (max-width: 767px) {
    .next-about-stats { grid-template-columns: repeat(2, 1fr); }
}

.next-stat-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--next-radius, 16px);
    transition: background 0.2s;
}
.next-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.next-stat-card__num {
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}
.next-stat-card__num .next-suffix {
    color: var(--next-primary, #F47427);
    font-size: 0.85em;
}

.next-stat-card__label {
    display: block;
    font-size: 12.5px;
    color: var(--next-muted-on-dark, #C1CAD8);
    margin-top: 8px;
    font-weight: 500;
}

/* ── Story — overlapping card ─────────────────────────────── */
.next-about-story {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}
@media (max-width: 991px) {
    .next-about-story {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.next-about-story__media {
    border-radius: var(--next-radius-lg, 20px);
    overflow: hidden;
    background: var(--next-surface-muted, #F2F4F7);
    aspect-ratio: 5 / 4;
    position: relative;
    box-shadow: 0 12px 40px rgba(23, 36, 58, 0.1);
}
.next-about-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.next-about-story__media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--next-muted, #718096);
}
.next-about-story__media.is-empty svg {
    width: 56px;
    height: 56px;
    opacity: 0.4;
}

/* decorative corner accent */
.next-about-story__media::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: -8px;
    inset-inline-end: -8px;
    border: 3px solid var(--next-primary, #F47427);
    border-radius: 16px;
    z-index: -1;
}
@media (max-width: 991px) {
    .next-about-story__media::before { display: none; }
}

.next-about-story__body h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--next-ink, #17243A);
    letter-spacing: -0.02em;
    position: relative;
    padding-inline-start: 16px;
}
.next-about-story__body h2::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--next-primary, #F47427);
    border-radius: 4px;
}

.next-about-story__body p {
    font-size: 14.5px;
    line-height: 2.05;
    color: var(--next-text, #46546A);
    margin: 0 0 14px;
}
.next-about-story__body p:last-child { margin-bottom: 0; }

/* ── Features ─────────────────────────────────────────────── */
.next-about-features {
    margin-bottom: 48px;
}

.next-about-section-head {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 32px;
}
.next-about-section-head h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--next-ink, #17243A);
    letter-spacing: -0.02em;
}
.next-about-section-head p {
    font-size: 14px;
    color: var(--next-muted, #718096);
    margin: 0;
    line-height: 1.8;
}

.next-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 991px) {
    .next-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .next-features-grid { grid-template-columns: 1fr; }
}

.next-feature-card {
    background: var(--next-surface, #fff);
    border: 1px solid var(--next-border, #E6E9EE);
    border-radius: var(--next-radius, 16px);
    padding: 28px 22px 24px;
    text-align: start;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
    position: relative;
    overflow: hidden;
}
.next-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 3px;
    background: transparent;
    transition: background 0.22s;
}
.next-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(23, 36, 58, 0.08);
    border-color: transparent;
}
.next-feature-card:hover::after {
    background: var(--next-primary, #F47427);
}

.next-feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--next-primary-soft, #FFF1E8);
    color: var(--next-primary, #F47427);
    display: flex;
    align-items: center;
    justify-content: center;
}
.next-feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.next-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--next-ink, #17243A);
}

.next-feature-card p {
    font-size: 13px;
    color: var(--next-muted, #718096);
    line-height: 1.85;
    margin: 0;
}

/* ── CTA — full-width banner ──────────────────────────────── */
.next-about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--next-primary, #F47427) 0%, var(--next-primary-dark, #D85D17) 100%);
    border-radius: var(--next-radius-lg, 20px);
    padding: 36px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
@media (max-width: 575px) {
    .next-about-cta {
        text-align: center;
        justify-content: center;
        padding: 32px 24px;
    }
}

.next-about-cta::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -120px;
    inset-inline-end: -80px;
    pointer-events: none;
}
.next-about-cta::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: -80px;
    inset-inline-start: 10%;
    pointer-events: none;
}

.next-about-cta > * {
    position: relative;
    z-index: 1;
}

.next-about-cta h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

.next-about-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 420px;
    line-height: 1.75;
}

.next-about-cta__btn {
    background: #fff;
    color: var(--next-primary, #F47427);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 12px;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.next-about-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: var(--next-primary-dark, #D85D17);
}
