/* ============================================================
   CareBear Foundation — Our Work Page
   Page-specific styles only. Shared base styles are in style.css.
   ============================================================ */

/* ============================================================
   OVERVIEW IMPACT BAR (5-column split)
   ============================================================ */
.cb-overview-bar {
    background: var(--cb-white);
    border-bottom: 1px solid var(--cb-gray-border);
    position: relative;
    z-index: 3;
}

.cb-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.cb-overview-item {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    transition: var(--cb-transition);
}

.cb-overview-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%; height: 50%;
    width: 1px;
    background: var(--cb-gray-border);
}

.cb-overview-item:hover { background: var(--cb-cream-warm); }

.cb-overview-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cb-transition);
}

.cb-overview-item:nth-child(1) .cb-overview-icon { background: rgba(162, 117, 75, 0.1); color: var(--cb-primary); }
.cb-overview-item:nth-child(2) .cb-overview-icon { background: rgba(39, 174, 96, 0.1); color: var(--cb-secondary); }
.cb-overview-item:nth-child(3) .cb-overview-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.cb-overview-item:nth-child(4) .cb-overview-icon { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.cb-overview-item:nth-child(5) .cb-overview-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.cb-overview-item:hover .cb-overview-icon { transform: scale(1.1); }

.cb-overview-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-dark);
    letter-spacing: 0.3px;
}

.cb-overview-sub {
    font-size: 12px;
    color: var(--cb-gray-light);
    margin-top: 2px;
}

/* ============================================================
   INTRO / OVERVIEW SPLIT SECTION
   ============================================================ */
.cb-intro-section {
    background: var(--cb-bg);
}

.cb-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cb-intro-content .cb-section-subtitle {
    margin-bottom: 24px;
}

.cb-intro-text {
    font-size: 16px;
    color: var(--cb-gray);
    line-height: 1.85;
    margin-bottom: 16px;
}

.cb-intro-visual {
    position: relative;
}

.cb-intro-map-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    padding: 40px;
    box-shadow: var(--cb-shadow-lg);
    border: 1px solid var(--cb-gray-border);
    text-align: center;
}

.cb-intro-map-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8d5c0 0%, #d4b896 100%);
    border-radius: var(--cb-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(125, 90, 58, 0.4);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.cb-intro-map-placeholder::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    background: var(--cb-primary);
    border-radius: 50%;
    top: 45%; left: 52%;
    box-shadow: 0 0 0 4px rgba(162, 117, 75, 0.2), 0 0 0 8px rgba(162, 117, 75, 0.1);
    animation: cb-pulse-pin 2s ease-in-out infinite;
}

@keyframes cb-pulse-pin {
    0%, 100% { box-shadow: 0 0 0 4px rgba(162, 117, 75, 0.2), 0 0 0 8px rgba(162, 117, 75, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(162, 117, 75, 0.15), 0 0 0 16px rgba(162, 117, 75, 0.05); }
}

.cb-intro-map-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--cb-gray-border);
}

.cb-intro-map-stat-num {
    font-family: var(--cb-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--cb-primary);
}

.cb-intro-map-stat-label {
    font-size: 12px;
    color: var(--cb-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   PROGRAM DETAIL BLOCKS (Alternating layout)
   ============================================================ */
.cb-program-showcase {
    position: relative;
}

.cb-program-block {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cb-program-block:nth-child(odd) { background: var(--cb-white); }
.cb-program-block:nth-child(even) { background: var(--cb-bg); }

.cb-program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.cb-program-block:nth-child(even) .cb-program-grid {
    direction: rtl;
}

.cb-program-block:nth-child(even) .cb-program-grid > * {
    direction: ltr;
}

.cb-program-visual {
    position: relative;
}

.cb-program-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--cb-radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--cb-shadow-lg);
}

.cb-program-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.cb-program-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.4) 0%, transparent 50%);
    z-index: 1;
}

.cb-program-img-1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.cb-program-img-2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.cb-program-img-3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cb-program-img-4 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.cb-program-img-5 { background: linear-gradient(135deg, #22c55e, #16a34a); }

.cb-program-badge {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cb-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
}

.cb-program-impact-float {
    position: absolute;
    bottom: -20px; right: 20px;
    background: var(--cb-white);
    border-radius: var(--cb-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--cb-shadow-lg);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cb-program-impact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-program-block:nth-child(1) .cb-program-impact-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.cb-program-block:nth-child(2) .cb-program-impact-icon { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.cb-program-block:nth-child(3) .cb-program-impact-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.cb-program-block:nth-child(4) .cb-program-impact-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.cb-program-block:nth-child(5) .cb-program-impact-icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

.cb-program-impact-num {
    font-family: var(--cb-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--cb-dark);
    line-height: 1.1;
}

.cb-program-impact-label {
    font-size: 12px;
    color: var(--cb-gray);
}

.cb-program-number {
    font-family: var(--cb-font-heading);
    font-size: 80px;
    font-weight: 700;
    color: rgba(162, 117, 75, 0.15);
    line-height: 1;
    margin-bottom: 8px;
}

.cb-program-content h2 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 18px;
    line-height: 1.3;
}

.cb-program-content > p {
    font-size: 16px;
    color: var(--cb-gray);
    line-height: 1.85;
    margin-bottom: 28px;
}

.cb-program-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.cb-program-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--cb-cream-warm);
    border-radius: var(--cb-radius);
    border: 1px solid rgba(162, 117, 75, 0.08);
    font-size: 15px;
    color: var(--cb-dark-soft);
    line-height: 1.5;
    transition: var(--cb-transition);
}

.cb-program-block:nth-child(even) .cb-program-features li {
    background: var(--cb-white);
}

.cb-program-features li:hover {
    border-color: var(--cb-primary);
    transform: translateX(4px);
}

.cb-program-features li svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--cb-secondary);
    margin-top: 2px;
}

.cb-program-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   IMPACT NUMBERS (Dark Section)
   ============================================================ */
.cb-impact-section {
    padding: 100px 0;
    background: var(--cb-dark);
    position: relative;
    overflow: hidden;
}

.cb-impact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(162, 117, 75, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(39, 174, 96, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cb-impact-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}

.cb-impact-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.cb-impact-num-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--cb-radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: var(--cb-transition);
    position: relative;
    overflow: hidden;
}

.cb-impact-num-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 3px;
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: var(--cb-transition);
}

.cb-impact-num-card:nth-child(1)::before { background: var(--cb-primary); }
.cb-impact-num-card:nth-child(2)::before { background: var(--cb-secondary); }
.cb-impact-num-card:nth-child(3)::before { background: #3b82f6; }
.cb-impact-num-card:nth-child(4)::before { background: #f59e0b; }

.cb-impact-num-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cb-impact-num-card:hover::before { opacity: 1; }

.cb-impact-num-icon {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-impact-num-card:nth-child(1) .cb-impact-num-icon { background: rgba(162, 117, 75, 0.15); color: var(--cb-primary-light); }
.cb-impact-num-card:nth-child(2) .cb-impact-num-icon { background: rgba(39, 174, 96, 0.15); color: var(--cb-secondary); }
.cb-impact-num-card:nth-child(3) .cb-impact-num-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.cb-impact-num-card:nth-child(4) .cb-impact-num-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.cb-impact-num-value {
    font-family: var(--cb-font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--cb-white);
    line-height: 1.1;
    margin-bottom: 8px;
}

.cb-impact-num-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

/* ============================================================
   APPROACH / METHODOLOGY SECTION
   ============================================================ */
.cb-approach-section {
    padding: 100px 0;
    background: var(--cb-cream-warm);
}

.cb-approach-header {
    text-align: center;
    margin-bottom: 64px;
}

.cb-approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cb-approach-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-xl);
    padding: 40px 28px;
    text-align: center;
    border: 1px solid var(--cb-gray-border);
    transition: var(--cb-transition);
    position: relative;
}

.cb-approach-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 3px;
    background: var(--cb-primary);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.cb-approach-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cb-shadow-lg);
    border-color: var(--cb-primary);
}

.cb-approach-card:hover::after { transform: scaleX(1); }

.cb-approach-step {
    width: 44px; height: 44px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--cb-primary);
    color: var(--cb-white);
    font-family: var(--cb-font-heading);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cb-transition);
}

.cb-approach-card:hover .cb-approach-step {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(162, 117, 75, 0.4);
}

.cb-approach-card h3 {
    font-family: var(--cb-font-body);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cb-approach-card p {
    font-size: 14px;
    color: var(--cb-gray);
    line-height: 1.7;
}

/* ============================================================
   DONATE BUTTON STYLE
   ============================================================ */
.cb-btn-donate {
    background: var(--cb-secondary);
    color: var(--cb-white);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.35);
}

.cb-btn-donate:hover {
    background: var(--cb-secondary-dark, #1e8c4d);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
}

.cb-btn-outline {
    background: transparent;
    color: var(--cb-primary);
    border: 2px solid var(--cb-primary);
}

.cb-btn-outline:hover {
    background: var(--cb-primary);
    color: var(--cb-white);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .cb-overview-grid { grid-template-columns: repeat(3, 1fr); }
    .cb-overview-item:nth-child(3)::after { display: none; }
    .cb-impact-numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .cb-approach-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    .cb-overview-grid { grid-template-columns: repeat(2, 1fr); }
    .cb-overview-item:nth-child(2)::after,
    .cb-overview-item:nth-child(4)::after { display: none; }

    .cb-intro-grid,
    .cb-program-grid { grid-template-columns: 1fr; gap: 40px; }

    .cb-program-block { padding: 60px 0; }
    .cb-program-block:nth-child(even) .cb-program-grid { direction: ltr; }
    .cb-program-number { font-size: 60px; }

    .cb-impact-section { padding: 60px 0; }
    .cb-impact-numbers-grid { grid-template-columns: 1fr 1fr; }

    .cb-approach-section { padding: 60px 0; }
    .cb-approach-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .cb-overview-grid { grid-template-columns: 1fr; }
    .cb-overview-item::after { display: none !important; }

    .cb-impact-numbers-grid { grid-template-columns: 1fr; }
    .cb-approach-grid { grid-template-columns: 1fr; }

    .cb-program-actions { flex-direction: column; }

    .cb-program-impact-float {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
    }
}
