/* ==========================================================================
   Page content view - Cehdar site pages
   Improves the "A legacy of gathering" main article card and the
   "Rooted in Ghana" side card. Also applies to any /p/{slug} page.
   ========================================================================== */

.page-hero.adinkra-hero + .section {
    background:
        radial-gradient(900px 400px at -10% -20%, rgba(11,61,46,.06), transparent 60%),
        radial-gradient(900px 400px at 110% 120%, rgba(201,162,39,.08), transparent 60%),
        #fbf8f0;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

/* --- Main article card --- */
.card-elevated.rich-content {
    position: relative;
    background: #fff;
    border: 1px solid rgba(201,162,39,.22);
    border-radius: 20px;
    box-shadow:
        0 20px 45px rgba(11,61,46,.08),
        0 4px 12px rgba(11,61,46,.05);
    overflow: hidden;
    padding: 2.75rem 2.75rem 2.5rem !important;
}
.card-elevated.rich-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #C9A227 0%, #E7C558 50%, #C9A227 100%);
}
.card-elevated.rich-content::after {
    content: "";
    position: absolute;
    right: -60px; bottom: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(201,162,39,.10), transparent 70%);
    pointer-events: none;
}
.card-elevated.rich-content > * { position: relative; z-index: 1; }

.rich-content h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0b3d2e;
    margin: 0 0 1rem;
    position: relative;
    padding-bottom: .75rem;
}
.rich-content h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 3px;
    background: linear-gradient(90deg, #C9A227 0%, #E7C558 100%);
    border-radius: 3px;
}
.rich-content h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0b3d2e;
    margin: 1.75rem 0 .75rem;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.rich-content h4::before {
    content: "";
    width: 8px; height: 8px;
    background: #C9A227;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(201,162,39,.2);
}
.rich-content p {
    color: #3f4a44;
    line-height: 1.75;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.rich-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}
.rich-content ul li {
    position: relative;
    padding: .6rem 0 .6rem 2rem;
    border-bottom: 1px dashed rgba(11,61,46,.10);
    color: #333;
    line-height: 1.55;
}
.rich-content ul li:last-child { border-bottom: none; }
.rich-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #E7C558, #C9A227 70%);
    box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.rich-content ul li strong { color: #0b3d2e; }
.rich-content em {
    display: inline-block;
    background: rgba(201,162,39,.10);
    border-left: 3px solid #C9A227;
    color: #6b5622;
    padding: .55rem .85rem;
    border-radius: 6px;
    font-style: normal;
    font-size: .88rem;
    margin-top: 1rem;
}

/* --- Side card "Rooted in Ghana" --- */
.adinkra-side {
    position: relative;
    background: linear-gradient(160deg, #fffdf5 0%, #fff8e4 100%);
    border: 1px solid rgba(201,162,39,.4);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.75rem !important;
    text-align: center;
    box-shadow: 0 12px 30px rgba(11,61,46,.08);
    overflow: hidden;
}
.adinkra-side::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(135deg, #0b3d2e 0%, #14563f 60%, #0b3d2e 100%);
    z-index: 0;
    border-radius: 20px 20px 60% 60% / 20px 20px 24px 24px;
}
.adinkra-side::after {
    content: "";
    position: absolute;
    top: 96px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C9A227 40%, #E7C558 50%, #C9A227 60%, transparent);
    z-index: 1;
}
.adinkra-side > * { position: relative; z-index: 2; }

.adinkra-side .adinkra-symbol {
    width: 78px;
    height: 78px;
    margin: 12px auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,.12), 0 0 0 3px #C9A227;
    color: #C9A227;
}
.adinkra-side .adinkra-symbol svg {
    width: 46px !important;
    height: 46px !important;
}

.adinkra-side h5 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b3d2e;
    margin: .25rem 0 .75rem !important;
    letter-spacing: .01em;
}
.adinkra-side .small.text-muted {
    color: #5c6a63 !important;
    font-size: .9rem !important;
    line-height: 1.6;
    margin: 0;
    padding: 0 .25rem;
}

/* Decorative dot pattern at the bottom of the side card */
.adinkra-side::before,
.adinkra-side::after { pointer-events: none; }

/* Aside spacing */
.section > .container > .row.g-4 > aside { padding-top: 0; }

@media (max-width: 991.98px) {
    .card-elevated.rich-content { padding: 2rem 1.5rem !important; }
    .rich-content h3 { font-size: 1.55rem; }
    .adinkra-side { margin-top: 1.5rem; }
}
