/* ── Doctor Success Stories (masonry list + detail page) ── */

:root {
    --ss-accent: #1d4ed8;
    --ss-accent-dark: #1e40af;
    --ss-accent-soft: #eff6ff;
    --ss-ink: #111827;
    --ss-body: #374151;
    --ss-muted: #6b7280;
    --ss-border: #e5e7eb;
    --ss-bg: #f6f7fb;
}

/* ── Header ── */
.stories-head {
    padding: 56px 0 36px;
    background: #ffffff;
    text-align: center;
    border-bottom: 1px solid var(--ss-border);
}
.stories-head h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ss-ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.stories-head h1::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: var(--ss-accent);
    border-radius: 4px;
    margin: 14px auto 0;
}
.stories-sub {
    font-size: 1.05rem;
    color: var(--ss-muted);
    margin: 0 0 18px;
}
.stories-count {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ss-accent);
    background: var(--ss-accent-soft);
    padding: 6px 16px;
    border-radius: 999px;
}

/* ── Listing section ── */
.stories-section {
    padding: 40px 0 80px;
    background: var(--ss-bg);
}

/* Masonry via CSS columns */
.stories-masonry {
    column-count: 3;
    column-gap: 26px;
}

/* Clickable preview card */
.story-card {
    display: block;
    text-decoration: none;
    color: inherit;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: 14px;
    padding: 24px;
    margin: 0 0 26px;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.story-card:hover {
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.10);
    transform: translateY(-4px);
    border-color: #c7d2fe;
}

.story-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.story-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-accent-soft);
    color: var(--ss-accent);
    font-size: 1.1rem;
}
.story-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ss-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.story-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ss-accent);
    margin: 0 0 12px;
    line-height: 1.45;
}
.story-excerpt {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--ss-body);
    margin: 0 0 18px;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #eef0f4;
}
.story-tag {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ss-accent-dark);
    background: var(--ss-accent-soft);
    padding: 5px 12px;
    border-radius: 999px;
}
.story-readmore {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ss-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.story-readmore i { transition: transform 0.2s ease; }
.story-card:hover .story-readmore i { transform: translateX(4px); }

.stories-empty {
    text-align: center;
    color: var(--ss-muted);
    padding: 48px 0;
}

/* ── Detail page ── */
.story-detail-section {
    padding: 36px 0 80px;
    background: #ffffff;
}
.story-detail-section .container {
    max-width: 1100px;
}
.story-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ss-accent);
    text-decoration: none;
    margin-bottom: 22px;
}
.story-back i { transition: transform 0.2s ease; }
.story-back:hover { color: var(--ss-accent-dark); }
.story-back:hover i { transform: translateX(-3px); }

.story-detail {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.story-detail-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef0f4;
}
.story-detail-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-accent-soft);
    color: var(--ss-accent);
    font-size: 1.6rem;
}
.story-detail-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ss-ink);
    margin: 0;
    letter-spacing: -0.02em;
}
.story-detail-tagline {
    font-size: 0.92rem;
    color: var(--ss-muted);
    margin: 6px 0 0;
    line-height: 1.4;
}

/* Quoted title with accent bar */
.story-detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ss-ink);
    margin: 0 0 28px;
    line-height: 1.4;
    padding-left: 18px;
    border-left: 4px solid var(--ss-accent);
}

.story-detail-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ss-body);
    margin: 0 0 20px;
}
.story-detail-body p:first-of-type {
    font-size: 1.12rem;
    color: #1f2937;
}
.story-detail-body p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .stories-masonry { column-count: 2; }
    .stories-head h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
    .stories-masonry { column-count: 1; }
    .stories-head { padding: 40px 0 26px; }
    .stories-head h1 { font-size: 1.65rem; }
    .story-detail { padding: 0; }
    .story-detail-head { flex-direction: column; text-align: center; gap: 14px; }
    .story-detail-title { font-size: 1.2rem; }
}
