/* ============================================================
   BEAM Trust — initiatives.css
   Shared styles for all four initiative pages
   ============================================================ */

/* ---- Initiative Banner ---- */
.initiative-banner {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center 35%;
    position: relative;
    margin-top: 100px;
}

.initiative-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 30, 16, 0.45) 0%,
        rgba(10, 30, 16, 0.82) 100%
    );
}

.initiative-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 52px;
}

/* Breadcrumb */
.init-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.init-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.init-breadcrumb a:hover { color: var(--beam-gold); }
.init-breadcrumb .sep { font-size: 0.6rem; opacity: 0.5; }

/* Banner tag */
.initiative-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
    width: fit-content;
    color: #ffffff;
}
.tag-green  { background: var(--beam-green); }
.tag-red    { background: var(--beam-red); }
.tag-gold   { background: #b8860b; }
.tag-teal   { background: #0e7490; }

.initiative-banner-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.025em;
    max-width: 780px;
    margin-bottom: 16px;
}

.initiative-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}
.initiative-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.initiative-banner-meta i { color: var(--beam-gold); font-size: 0.72rem; }

/* ---- Quick-stats bar under banner ---- */
.initiative-stats-bar {
    background: #ffffff;
    border-bottom: 1px solid #e8f0e4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    z-index: 10;
}
.initiative-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.init-stat {
    padding: 22px 16px;
    border-right: 1px solid #e8f0e4;
    transition: background var(--transition);
}
.init-stat:last-child { border-right: none; }
.init-stat:hover { background: var(--beam-gray-light); }
.init-stat-num {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--beam-green);
    line-height: 1;
    letter-spacing: -0.02em;
}
.init-stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--beam-gray);
    margin-top: 6px;
    font-weight: 500;
}

/* ---- Page layout ---- */
.initiative-outer {
    padding: 72px 0 80px;
    background: #ffffff;
}
.initiative-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

/* ---- Main content ---- */
.initiative-main { min-width: 0; }

.init-lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.75;
    color: var(--beam-dark);
    border-left: 4px solid var(--beam-green);
    padding-left: 22px;
    margin-bottom: 32px;
}

.initiative-body {
    font-size: 1.04rem;
    line-height: 1.85;
    color: #2d3e2a;
}
.initiative-body p { margin-bottom: 22px; }
.initiative-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--beam-dark);
    margin: 44px 0 16px;
    letter-spacing: -0.015em;
    line-height: 1.2;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef3ea;
}
.initiative-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--beam-green);
    margin: 28px 0 10px;
}
.initiative-body a {
    color: var(--beam-green);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.initiative-body a:hover { color: var(--beam-red); }
.initiative-body ul {
    padding-left: 20px;
    margin-bottom: 22px;
}
.initiative-body ul li {
    margin-bottom: 8px;
    line-height: 1.65;
}

/* Blockquote */
.initiative-body blockquote {
    border-left: 4px solid var(--beam-red);
    margin: 36px 0;
    padding: 22px 28px;
    background: var(--beam-gray-light);
    border-radius: 0 20px 20px 0;
}
.initiative-body blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--beam-green);
    margin-bottom: 10px;
    line-height: 1.7;
}
.initiative-body blockquote cite {
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
    color: var(--beam-gray);
}

/* 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 var(--beam-green);
}
.info-box.red  { border-top-color: var(--beam-red); }
.info-box.gold { border-top-color: var(--beam-gold); }
.info-box.teal { border-top-color: #0e7490; }
.info-box h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--beam-green);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-box.red  h3 { color: var(--beam-red); }
.info-box.gold h3 { color: #92400e; }
.info-box.teal h3 { color: #0e7490; }
.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: var(--beam-green); margin-top: 3px; flex-shrink: 0; }
.info-box.red  ul li i { color: var(--beam-red); }
.info-box.gold ul li i { color: #92400e; }
.info-box.teal ul li i { color: #0e7490; }

/* Impact numbers row */
.impact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 32px 0;
}
.impact-box {
    background: #ffffff;
    border: 1px solid #eef3ea;
    border-radius: 16px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.impact-box .num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--beam-green);
    line-height: 1;
    letter-spacing: -0.02em;
}
.impact-box.red .num  { color: var(--beam-red); }
.impact-box.gold .num { color: #92400e; }
.impact-box.teal .num { color: #0e7490; }
.impact-box .lbl {
    font-size: 0.74rem;
    color: var(--beam-gray);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    line-height: 1.4;
}

/* Phase timeline */
.phase-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
    position: relative;
}
.phase-list::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--beam-green), var(--beam-red));
}
.phase-item {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    position: relative;
}
.phase-item:last-child { padding-bottom: 0; }
.phase-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--beam-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--beam-green);
}
.phase-dot.red  { background: var(--beam-red); box-shadow: 0 0 0 2px var(--beam-red); }
.phase-dot.gold { background: #92400e; box-shadow: 0 0 0 2px #92400e; }
.phase-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--beam-dark);
    margin-bottom: 5px;
}
.phase-body .phase-period {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--beam-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.phase-body p {
    font-size: 0.88rem;
    color: var(--beam-gray);
    line-height: 1.65;
    margin: 0;
}

/* Inline image */
.initiative-img {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin: 32px 0;
    border-bottom: 4px solid var(--beam-gold);
}
.initiative-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.initiative-img figcaption {
    font-size: 0.8rem;
    color: var(--beam-gray);
    padding: 11px 16px;
    background: var(--beam-gray-light);
    font-style: italic;
}

/* Share bar */
.init-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: var(--beam-gray);
    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: var(--radius-pill);
    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; }

.init-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--beam-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 10px 20px;
    border: 1.5px solid #d0e0c8;
    border-radius: var(--radius-pill);
    background: var(--beam-gray-light);
    transition: all 0.25s ease;
    margin-top: 24px;
}
.init-back-link:hover {
    background: var(--beam-green);
    color: #ffffff;
    border-color: var(--beam-green);
    gap: 12px;
}

/* ---- Sidebar ---- */
.initiative-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: var(--shadow-sm);
}
.sidebar-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--beam-green);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef3ea;
}

/* Other initiatives links */
.init-link-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f5ed;
    text-decoration: none;
    transition: gap 0.2s;
}
.init-link-card:last-child { border-bottom: none; padding-bottom: 0; }
.init-link-card:hover { gap: 16px; }
.init-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: #ffffff;
}
.bg-green { background: var(--beam-green); }
.bg-red   { background: var(--beam-red); }
.bg-gold  { background: #92400e; }
.bg-teal  { background: #0e7490; }
.init-link-body { min-width: 0; }
.init-link-body strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--beam-dark);
    line-height: 1.35;
    margin-bottom: 2px;
}
.init-link-body span {
    font-size: 0.75rem;
    color: var(--beam-gray);
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(150deg, #f0f5ed 0%, #e4ede0 100%);
    border-top: 4px solid var(--beam-green);
}
.sidebar-cta h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--beam-dark);
    margin-bottom: 10px;
}
.sidebar-cta p {
    font-size: 0.86rem;
    color: var(--beam-gray);
    line-height: 1.65;
    margin-bottom: 16px;
}
.sidebar-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.88rem;
}

/* Sidebar progress */
.mini-progress { margin-bottom: 14px; }
.mini-progress:last-child { margin-bottom: 0; }
.mini-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--beam-dark);
}
.mini-progress-header span:last-child { color: var(--beam-green); font-weight: 700; }
.mini-bar-bg {
    background: #e1eadc;
    border-radius: 20px;
    height: 7px;
    overflow: hidden;
}
.mini-bar-fill {
    background: linear-gradient(90deg, var(--beam-green), var(--beam-red));
    height: 100%;
    border-radius: 20px;
    width: 0%;
    transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Related news mini-cards ---- */
.related-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f5ed;
    text-decoration: none;
    transition: opacity 0.2s;
}
.related-card:last-child { border-bottom: none; padding-bottom: 0; }
.related-card:hover { opacity: 0.8; }
.related-card-img {
    width: 72px;
    height: 60px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.related-card-body { min-width: 0; }
.related-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: var(--beam-red);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}
.related-card-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--beam-dark);
    line-height: 1.4;
    display: block;
}
.related-card-date {
    font-size: 0.72rem;
    color: var(--beam-gray);
    margin-top: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .initiative-layout {
        grid-template-columns: 1fr;
    }
    .initiative-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}
@media (max-width: 768px) {
    .initiative-banner { height: 320px; margin-top: 80px; }
    .initiative-banner-content h1 { font-size: 1.8rem; }
    .initiative-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .init-stat:nth-child(2) { border-right: none; }
    .init-stat:nth-child(1),
    .init-stat:nth-child(2) { border-bottom: 1px solid #e8f0e4; }
    .initiative-outer { padding: 40px 0 60px; }
    .initiative-img img { height: 220px; }
    .initiative-sidebar { display: flex; flex-direction: column; }
    .impact-row { grid-template-columns: repeat(2, 1fr); }
    .info-box { padding: 20px; }
}
@media (max-width: 480px) {
    .initiative-banner-content h1 { font-size: 1.55rem; }
    .impact-row { grid-template-columns: 1fr 1fr; }
    .phase-list::before { left: 17px; }
}
