/* ============================================================
   Next Pro — template-about.php
   Uses theme tokens from main.css (:root)
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.next-about-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    background: linear-gradient(135deg, var(--teal-soft) 0%, #fdece0 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius, 14px);
    padding: 36px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 991px) {
    .next-about-hero { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
}
.next-about-hero::before,
.next-about-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.next-about-hero::before { width: 220px; height: 220px; top: -100px; inset-inline-start: -70px; background: rgba(44,74,71,.08); }
.next-about-hero::after  { width: 150px; height: 150px; bottom: -70px; inset-inline-end: -40px; background: rgba(0,186,186,.12); }

.next-about-hero__content { position: relative; z-index: 1; }

.next-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal-soft);
    color: var(--teal);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}
.next-about-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--rust);
    display: inline-block;
}

.next-about-hero h1 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 14px;
    color: var(--ink);
}
.next-about-hero p {
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0;
    max-width: 500px;
}
@media (max-width: 991px) { .next-about-hero p { max-width: 100%; margin-inline: auto; } }

.next-about-hero__media {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius, 14px);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: radial-gradient(circle at 50% 40%, #fbf9f5 0%, #f1ece2 100%);
}
.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(--muted);
    opacity: .5;
}
.next-about-hero__media.is-empty svg { width: 56px; height: 56px; }

/* ── Stats ────────────────────────────────────────────────── */
.next-about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
@media (max-width: 767px) { .next-about-stats { grid-template-columns: repeat(2, 1fr); } }

.next-stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius, 14px);
    padding: 24px 16px;
    text-align: center;
}
.next-stat-card__num {
    font-size: 28px;
    font-weight: 800;
    color: var(--teal);
    display: block;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.next-stat-card__num .next-suffix { color: var(--rust); }
.next-stat-card__label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Story ────────────────────────────────────────────────── */
.next-about-story {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 44px;
}
@media (max-width: 991px) { .next-about-story { grid-template-columns: 1fr; } }

.next-about-story__media {
    border-radius: var(--radius, 14px);
    overflow: hidden;
    background: var(--teal-soft);
    aspect-ratio: 4 / 3;
}
.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(--muted);
}
.next-about-story__media.is-empty svg { width: 56px; height: 56px; opacity: .5; }

.next-about-story__body h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--ink);
}
.next-about-story__body p {
    font-size: 14.5px;
    line-height: 2;
    color: var(--muted);
    margin: 0 0 12px;
    white-space: pre-line;
}

/* ── Features ─────────────────────────────────────────────── */
.next-about-features {
    margin-bottom: 44px;
}
.next-about-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 28px;
}
.next-about-section-head h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ink);
}
.next-about-section-head p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.next-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@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: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius, 14px);
    padding: 26px 20px;
    text-align: center;
    transition: .2s;
}
.next-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(28,27,25,.08);
    border-color: transparent;
}
.next-feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--rust);
    display: flex;
    align-items: center;
    justify-content: center;
}
.next-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}
.next-feature-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    margin: 0;
}

/* ── CTA ──────────────────────────────────────────────────── */
.next-about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--teal-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius, 14px);
    padding: 30px 36px;
    color: var(--ink);
}
@media (max-width: 575px) { .next-about-cta { text-align: center; justify-content: center; } }

.next-about-cta h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--ink);
}
.next-about-cta p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
}
.next-about-cta__btn {
    background: var(--rust);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 26px;
    border-radius: 10px;
    white-space: nowrap;
    transition: .15s;
    display: inline-block;
}
.next-about-cta__btn:hover { background: var(--rust-dark); color: #fff; }
