/* ============================================================
   BEAM Trust — article.css
   Shared styles for all individual news/article pages
   ============================================================ */

/* ---- Article Banner ---- */
.article-banner {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center 35%;
    position: relative;
    margin-top: 100px;
    background-image: url('../images/news/hygiene.jpg'); /* overridden inline per page */
}
.article-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 56, 31, 0.55) 0%,
        rgba(10, 20, 14, 0.85) 100%
    );
}
.article-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
}
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.article-breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.article-breadcrumb a:hover { color: #d4af37; }
.article-breadcrumb .sep { font-size: 0.6rem; opacity: 0.5; }
.article-breadcrumb span { color: rgba(255,255,255,0.9); font-weight: 600; }

.article-banner-tag {
    display: inline-block;
    background: #c0392b;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    width: fit-content;
}
.article-banner-tag.green { background: #1e5631; }
.article-banner-tag.gold  { background: #b8860b; }

.article-banner-content h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -0.025em;
    max-width: 780px;
    margin-bottom: 16px;
}
.article-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
}
.article-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.article-banner-meta i { color: #d4af37; font-size: 0.72rem; }

/* ---- Outer wrapper ---- */
.article-outer {
    padding: 56px 0 80px;
    background: #ffffff;
}

/* ---- Two-column layout ---- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

/* ---- Main Content ---- */
.article-main {
    min-width: 0;
}

/* Cover image */
.article-cover {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    border-bottom: 4px solid #d4af37;
}
.article-cover img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
}
.article-cover figcaption {
    font-size: 0.8rem;
    color: #5a6b5e;
    padding: 12px 18px;
    background: #f4f7f2;
    line-height: 1.5;
    font-style: italic;
}

/* Body text */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2d3e2a;
}
.article-lead {
    font-size: 1.18rem;
    line-height: 1.75;
    color: #1a2e1c;
    font-weight: 500;
    margin-bottom: 24px;
    border-left: 4px solid #1e5631;
    padding-left: 20px;
}
.article-body p {
    margin-bottom: 22px;
}
.article-body a {
    color: #1e5631;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-body a:hover { color: #c0392b; }
.article-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f2818;
    margin: 40px 0 16px;
    letter-spacing: -0.015em;
    line-height: 1.25;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef3ea;
}
.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2818;
    margin: 28px 0 12px;
}

/* Blockquote */
.article-body blockquote {
    border-left: 4px solid #c0392b;
    margin: 36px 0;
    padding: 22px 28px;
    background: #f4f7f2;
    border-radius: 0 20px 20px 0;
}
.article-body blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #1e5631;
    margin-bottom: 10px;
    line-height: 1.7;
}
.article-body blockquote cite {
    font-size: 0.83rem;
    font-style: normal;
    font-weight: 700;
    color: #5a6b5e;
    letter-spacing: 0.01em;
}

/* Info box */
.info-box {
    background: linear-gradient(150deg, #f0f5ed 0%, #e4ede0 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin: 32px 0;
    border-top: 4px solid #1e5631;
}
.info-box h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e5631;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-box ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: #2d3e2a;
    padding: 9px 0;
    border-bottom: 1px solid #d0e0c8;
    line-height: 1.55;
}
.info-box ul li:last-child { border-bottom: none; }
.info-box ul li i { color: #1e5631; margin-top: 3px; flex-shrink: 0; }

/* Stat row */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 32px 0;
}
.stat-box {
    background: #ffffff;
    border: 1px solid #eef3ea;
    border-radius: 16px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.stat-box .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1e5631;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-box .lbl {
    font-size: 0.75rem;
    color: #5a6b5e;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    line-height: 1.4;
}

/* Targets table */
.targets-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 0.9rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.targets-table th {
    background: #1e5631;
    color: #ffffff;
    text-align: left;
    padding: 13px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.targets-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef3ea;
    color: #2d3e2a;
    vertical-align: top;
}
.targets-table tr:last-child td { border-bottom: none; }
.targets-table tr:nth-child(even) td { background: #f8fbf6; }
.targets-table td:first-child { font-weight: 600; color: #1e5631; }

/* Pillars grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 28px 0 36px;
}
.pillar-card {
    background: #ffffff;
    border: 1px solid #eef3ea;
    border-radius: 20px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    border-top: 4px solid #1e5631;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.pillar-card .icon {
    width: 48px;
    height: 48px;
    background: #f0f5ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    color: #1e5631;
}
.pillar-card:nth-child(2) { border-top-color: #c0392b; }
.pillar-card:nth-child(2) .icon { background: #fdf0ee; color: #c0392b; }
.pillar-card:nth-child(3) { border-top-color: #d4af37; }
.pillar-card:nth-child(3) .icon { background: #fdf8e8; color: #b8860b; }
.pillar-card:nth-child(4) { border-top-color: #2d7a46; }
.pillar-card:nth-child(4) .icon { background: #e8f5ec; color: #2d7a46; }
.pillar-card h3 { font-size: 0.9rem; font-weight: 700; color: #0f2818; margin-bottom: 6px; }
.pillar-card p { font-size: 0.78rem; color: #5a6b5e; line-height: 1.5; margin: 0; }

/* Download button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1e5631;
    color: #ffffff;
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.download-btn:hover { background: #0f381f; transform: translateY(-2px); color: #ffffff; }

/* Share bar */
.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid #eef3ea;
    font-size: 0.85rem;
    color: #5a6b5e;
    font-weight: 600;
}
.share-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.share-btn.fb { background: #1877f2; color: #ffffff; }
.share-btn.tw { background: #1da1f2; color: #ffffff; }
.share-btn.wa { background: #25d366; color: #ffffff; }

/* Back / nav links */
.article-nav-links {
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}
.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e5631;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 10px 20px;
    border: 1.5px solid #d0e0c8;
    border-radius: 50px;
    background: #f4f7f2;
    transition: all 0.25s ease;
}
.article-back-link:hover {
    background: #1e5631;
    color: #ffffff;
    border-color: #1e5631;
    gap: 12px;
}

/* ---- Sidebar ---- */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 108px;
}
.sidebar-block {
    background: #ffffff;
    border: 1px solid #eef3ea;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.sidebar-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1e5631;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef3ea;
}
.sidebar-card {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f5ed;
    align-items: flex-start;
}
.sidebar-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-card-img {
    width: 72px;
    height: 60px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.sidebar-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.sidebar-tag {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #ffffff;
    background: #c0392b;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}
.sidebar-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f2818;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}
.sidebar-card-title:hover { color: #c0392b; }
.sidebar-date {
    font-size: 0.75rem;
    color: #aabcae;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(150deg, #f0f5ed 0%, #e4ede0 100%);
    border-top: 4px solid #1e5631;
}
.sidebar-cta h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2818;
    margin-bottom: 10px;
}
.sidebar-cta p {
    font-size: 0.86rem;
    color: #5a6b5e;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Sidebar stats */
.sidebar-stats { }
.sidebar-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eef3ea;
}
.sidebar-stat:last-child { border-bottom: none; }
.sstat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e5631;
    letter-spacing: -0.02em;
}
.sstat-lbl {
    font-size: 0.78rem;
    color: #5a6b5e;
    text-align: right;
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
@media (max-width: 768px) {
    .article-banner { height: 300px; margin-top: 80px; }
    .article-banner-content h1 { font-size: 1.7rem; }
    .article-cover img { height: 240px; }
    .article-outer { padding: 36px 0 60px; }
    .article-sidebar { display: flex; flex-direction: column; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .targets-table { font-size: 0.8rem; }
    .targets-table th, .targets-table td { padding: 10px 12px; }
    .article-body blockquote { padding: 16px 20px; }
    .info-box { padding: 22px 20px; }
}
