/* ============================================================
   About / history pages — editorial layout (تاریخچه، ...)
   Scoped to .page-about-story
   ============================================================ */

.page-about-story {
    --story-bg: #f4f7fb;
    --story-surface: #ffffff;
    --story-ink: #16324a;
    --story-muted: #5c6573;
    --story-line: rgba(22, 50, 74, 0.1);
    --story-accent: #4fa3d9;
    --story-accent-soft: rgba(79, 163, 217, 0.12);
    --story-radius: 18px;
    background: var(--story-bg);
}

/* ---- Hero ---- */

.story-hero {
    padding: 26px 0 34px;
    background:
        linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 100%);
    border-bottom: 1px solid var(--story-line);
}

.page-about-story .page-breadcrumb--inline {
    margin-bottom: 22px;
}

.page-about-story .page-breadcrumb__item a {
    color: var(--story-muted);
    font-weight: 500;
    font-size: 13px;
}

.page-about-story .page-breadcrumb__item a:hover {
    color: var(--story-accent);
}

.page-about-story .page-breadcrumb__item.is-current span {
    color: var(--story-ink);
    font-weight: 600;
    font-size: 13px;
}

.story-hero__inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.story-hero__kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--story-accent-soft);
    color: var(--story-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.story-hero__title {
    margin: 0;
    color: var(--story-ink);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.story-hero__line {
    display: block;
    width: 52px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--story-accent), transparent);
}

/* ---- Content stack ---- */

.story-content {
    padding: 40px 0 76px;
}

.about-story-stack {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: clamp(1rem, 2.5vw, 1.75rem);
    row-gap: clamp(1.15rem, 2.5vw, 1.65rem);
    align-items: stretch;
    max-width: 56rem;
    margin-inline: auto;
}

.about-story-stack > * {
    grid-column: 1 / -1;
    min-width: 0;
}

/* ---- Intro / content box ---- */

.page-about-story .cms-item--content .cms-item__header {
    display: none;
}

.page-about-story .cms-item--content .cms-item__inner {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.page-about-story .cms-fancy-box {
    position: relative;
    background: var(--story-surface);
    border: 1px solid var(--story-line);
    border-radius: var(--story-radius);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.page-about-story .cms-fancy-box::before {
    display: none;
}

.page-about-story .cms-fancy-box:hover {
    transform: none;
}

.page-about-story .cms-fancy-box__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--story-accent), #7fc8f8);
    opacity: 1;
}

.page-about-story .cms-fancy-box__body {
    padding: clamp(24px, 4vw, 36px);
}

.page-about-story .cms-fancy-box-text {
    color: var(--story-muted);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 2;
}

.page-about-story .cms-fancy-box-text p {
    margin: 0 0 16px;
}

.page-about-story .cms-fancy-box-text p:last-child {
    margin-bottom: 0;
}

.page-about-story .cms-fancy-box-text p:first-child {
    color: var(--story-ink);
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 600;
    line-height: 1.9;
}

.page-about-story .story-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px dashed var(--story-line);
    list-style: none;
}

.page-about-story .story-highlights li {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--story-accent-soft);
    color: var(--story-ink);
    font-size: 14px;
    line-height: 1.7;
}

.page-about-story .story-highlights strong {
    display: block;
    margin-bottom: 4px;
    color: var(--story-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

/* ---- Images ---- */

.page-about-story .cms-media-block {
    height: 100%;
    margin: 0;
    border-radius: var(--story-radius);
    border: 1px solid var(--story-line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    background: var(--story-surface);
}

.page-about-story .cms-media-block__frame {
    height: 100%;
    min-height: 220px;
}

.page-about-story .cms-media-block__img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: none;
    object-fit: cover;
}

@media (min-width: 900px) {
    .page-about-story .cms-media-block__frame,
    .page-about-story .cms-media-block__img {
        min-height: 280px;
    }
}

/* ---- Prose fallback ---- */

.page-about-story .cms-prose-block {
    background: var(--story-surface);
    border: 1px solid var(--story-line);
    border-radius: var(--story-radius);
    padding: clamp(22px, 4vw, 32px);
    color: var(--story-muted);
    font-size: 16px;
    line-height: 2;
}

.page-about-story .cms-prose-block h2,
.page-about-story .cms-prose-block h3 {
    color: var(--story-ink);
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
    .story-content {
        padding: 28px 0 56px;
    }

    .about-story-stack {
        gap: 18px;
    }

    .page-about-story .story-highlights {
        grid-template-columns: 1fr;
    }
}
