/* =====================================================
   SYSTEM PAGES (SHARED) — mobile-first
   Used by: Healthy Brains, Nurtured Selves, Robust Families,
            Thriving Communities, Fair Organisations,
            Prosperous Regions, Flourishing Humanity
===================================================== */

:root {
    --black:    #1c1c1c;
    --gold:     #C6B069;
    --white:    #ffffff;
    --bg-light: #faf9f5;
}

body {
    background: var(--white);
    color: var(--black);
    line-height: 1.7;
}

section:not(.video-hero):nth-of-type(even) {
    background: var(--bg-light);
}

/* Gold diamond divider */
.system-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}

.system-divider span:not(.system-divider__diamond) {
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, rgba(198,176,105,0.5));
}

.system-divider span:last-child {
    background: linear-gradient(to left, transparent, rgba(198,176,105,0.5));
}

.system-divider__diamond { color: var(--gold); font-size: 0.9rem; flex-shrink: 0; }

/* =====================================================
   SECTION 1 — HERO
===================================================== */

.system-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--white);
}

.system-hero-content { max-width: 700px; }

.system-hero h1 {
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--black);
    letter-spacing: -0.02em;
}

.system-hero-mark {
    width: 80px; height: 2px;
    background: var(--gold);
    margin: 0 auto 1.2rem;
}

.system-hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 400;
    color: var(--black);
    opacity: 0.75;
}

/* =====================================================
   SECTION 2 — LONG TEXT
===================================================== */

section.system-text {
    max-width: 100%;
    margin: 0;
    padding: 3rem 1.5rem;
    background: var(--white);
}

.system-text-content { max-width: 1200px; margin: 0 auto; }

.system-text-block { margin-bottom: 2.5rem; }
.system-text-block:last-child { margin-bottom: 0; }

.system-text-block p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--black);
    text-align: left;
    margin: 0;
}

.system-text-block.emphasis h2 {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--black);
    text-align: center;
}

.system-text-block.marked {
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
}

/* =====================================================
   SECTION 3 — SPLIT
   column → row at 768px
===================================================== */

.system-split {
    padding: 2.5rem 1.5rem;
    background: var(--white);
}

.system-split-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.system-split-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    border: 2px solid var(--gold);
}

.system-split-text p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--black);
    margin-bottom: 1.2rem;
}

.system-split-text p:last-child { margin-bottom: 0; }
.system-split-text .marked { border-left: 3px solid var(--gold); padding-left: 1.5rem; }

.system-split-img {
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    min-height: 240px;
}

.system-split-img img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   SECTION 4 — BLOG ARTICLES
   1 col → 2 → 3 → 4
===================================================== */

.system-articles {
    padding: 3rem 1.5rem 4rem;
    background: var(--white);
}

.system-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.system-article-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.system-article-card:hover {
    border-top: 2px solid var(--gold);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.system-article-card a {
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.system-article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.system-article-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.system-article-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    color: var(--black);
}

.system-article-card:hover h2 { color: var(--gold); }

/* Tags */
.system-article-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }

.system-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    line-height: 1.5;
}

.system-tag--system      { background-color: #fdf8ec; color: #7a6530; }
.system-tag--neurolens   { background-color: #eef3fb; color: #3a5fa8; }
.system-tag--wellbeing   { background-color: #f3eefb; color: #6a3aa8; }
.system-tag--author-type { background-color: #fef6e6; color: #a87b00; }
.system-tag--strain      { background-color: #fef0ee; color: #a83a2a; }

.system-article-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin: 0 0 0.4rem;
    line-height: 1.4;
}

.system-article-excerpt {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.system-article-reading-time { color: #999; white-space: nowrap; }

.system-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.82rem;
    color: #777;
    border-top: 1px solid #f0f0f0;
}

.system-article-author { font-weight: 500; color: #555; }
.system-article-meta__sep { color: #bbb; }

/* =====================================================
   BREAKPOINTS
===================================================== */

@media (min-width: 480px) {
    .system-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .system-hero    { min-height: 60vh; padding: 5rem 2rem; }
    .system-text    { padding: 6rem 2rem; }
    .system-split   { padding: 4rem 2rem; }
    .system-articles { padding: 6rem 2rem 8rem; }
    .system-articles-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

    .system-split-inner  { flex-direction: row; align-items: stretch; gap: 2rem; }
    .system-split-img    { flex: 1.3; min-height: unset; }
    .system-split-img img { height: 100%; }
    .system-split-text   { flex: 1; padding: 3.5rem; }

    .system-text-block { margin-bottom: 3.5rem; }
    .system-articles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .system-hero     { min-height: 65vh; padding: 6rem 2rem; }
    .system-text     { padding: 8rem 2rem; }
    .system-split    { padding: 5rem 2rem; }
    .system-articles { padding: 8rem 2rem 10rem; }
    .system-articles-grid { grid-template-columns: repeat(4, 1fr); }
    .system-article-img   { height: 220px; }
    .system-article-content { padding: 1.5rem; }
}
