/* =========================================================
   01. GLOBAL
========================================================= */

.jk-impact-page,
.jk-impact-page * {
    box-sizing: border-box;
}

.jk-impact-page {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-size: 16px;
    color: #202124;
    background: #f7f8fa;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.jk-impact-page img {
    max-width: 100%;
    display: block;
}

.jk-impact-page button,
.jk-impact-page a {
    font-family: inherit;
}

.jk-container {
    width: min(100% - 76px, 1180px);
    margin: 0 auto;
}


/* =========================================================
   02. HERO
========================================================= */

.jk-impact-hero {
    padding: 70px 0 72px;
    background: #f7f8fa;
}

.jk-impact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.jk-hero-content {
    opacity: 0;
    transform: translateY(25px);
    animation: jkFadeUp .8s ease forwards;
}

.jk-hero-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    margin-bottom: 18px;
    border: 1px solid #c8dcff;
    border-radius: 20px;
    background: #edf4ff;
    color: #0758d9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.jk-hero-title {
    max-width: 580px;
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.jk-hero-title em {
    color: #0758d9;
    font-style: italic;
}

.jk-hero-description {
    max-width: 570px;
    margin: 0 0 28px;
    color: #666b73;
    font-size: 16px;
    line-height: 1.65;
}

.jk-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 21px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.jk-btn-primary {
    color: #fff;
    background: #0758d9;
    box-shadow: 0 5px 12px rgba(7, 88, 217, .18);
}

.jk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(7, 88, 217, .24);
		color: white;
}

.jk-btn-secondary {
    color: #202124;
    background: #fff;
    border: 1px solid #dfe2e7;
}

.jk-btn-secondary:hover {
    transform: translateY(-2px);
    background: #fafafa;
}


/* HERO IMAGE */

.jk-hero-image-wrap {
    opacity: 0;
    transform: translateX(30px);
    animation: jkFadeRight .9s .15s ease forwards;
}

.jk-hero-image {
    width: 100%;
    height: 365px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .13);
}


/* =========================================================
   03. IMPACT STATISTICS
========================================================= */

.jk-impact-stats {
    padding: 27px 0 31px;
    background: #f4f5f7;
    border-top: 1px solid #e8e9ec;
    border-bottom: 1px solid #e8e9ec;
}

.jk-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.jk-stat-card {
    position: relative;
    padding: 18px 18px 20px;
    background: #fafbfc;
    border: 1px solid #dedfe3;
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(0,0,0,.025);
    opacity: 0;
    transform: translateY(20px);
}

.jk-stat-card.jk-visible {
    animation: jkFadeUp .65s ease forwards;
}

.jk-stat-icon {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 5px;
    background: #e9f1ff;
    color: #0758d9;
    font-size: 16px;
}

.jk-stat-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

.jk-stat-growth {
    position: absolute;
    top: 20px;
    right: 17px;
    padding: 3px 7px;
    border: 1px solid #d7efbf;
    border-radius: 10px;
    background: #f8fff2;
    color: #62a82e;
    font-size: 9px;
    font-weight: 800;
}

.jk-stat-label {
    margin: 0 0 4px;
    color: #777b82;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.jk-stat-number {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
}


/* =========================================================
   04. IMPACT DASHBOARD
========================================================= */

.jk-impact-dashboard {
    padding: 66px 0 70px;
    background: #f7f8fa;
}

.jk-dashboard-heading {
    margin-bottom: 28px;
}

.jk-dashboard-heading h2 {
    margin: 0 0 7px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.jk-dashboard-heading p {
    margin: 0;
    color: #73777e;
    font-size: 14px;
}

.jk-dashboard-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.jk-dashboard-tabs {
    display: flex;
    gap: 0;
}

.jk-dashboard-tab {
    min-width: 80px;
    padding: 7px 15px;
    border: 1px solid #dfe2e7;
    background: #fff;
    color: #555a61;
    font-size: 11px;
    cursor: pointer;
    transition: .25s ease;
}

.jk-dashboard-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.jk-dashboard-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.jk-dashboard-tab.active {
    background: #fff;
    color: #202124;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.jk-dashboard-content {
    margin-top: 25px;
}

.jk-dashboard-panel {
    display: none;
}

.jk-dashboard-panel.active {
    display: block;
    animation: jkPanelFade .45s ease;
}


/* DASHBOARD GRID */

.jk-growth-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 22px;
}


/* CHART */

.jk-chart-card {
    min-height: 390px;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid #dedfe3;
    border-radius: 7px;
}

.jk-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 700;
}

.jk-card-title span {
    color: #0758d9;
}

.jk-card-title svg {
    display: block;
    color: #0758d9;
    flex-shrink: 0;
}

.jk-card-description {
    margin: 0;
    color: #777b82;
    font-size: 11px;
}

.jk-chart {
    position: relative;
    height: 270px;
    margin-top: 22px;
}

.jk-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.jk-chart-grid-line {
    stroke: #dfe2e7;
    stroke-width: 1;
    stroke-dasharray: 2 4;
}

.jk-chart-area {
    fill: url(#jkChartGradient);
}

.jk-chart-line {
    fill: none;
    stroke: #0758d9;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.jk-chart-card.jk-visible .jk-chart-line {
    animation: jkDrawChart 1.8s .2s ease forwards;
}

.jk-chart-label {
    fill: #767b82;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
}

.jk-chart-point {
    fill: #fff;
    stroke: #0758d9;
    stroke-width: 2;
}


/* RIGHT COLUMN */

.jk-dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}


/* GOAL CARD */

.jk-goal-card {
    padding: 20px;
    min-height: 185px;
    border-radius: 7px;
    background: #0758d9;
    color: #fff;
    box-shadow: 0 8px 17px rgba(7,88,217,.18);
}

.jk-goal-card h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.jk-goal-card p {
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: 10px;
}

.jk-goal-number-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 5px 0 8px;
}

.jk-goal-percent {
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
}

.jk-goal-reached {
    font-size: 10px;
}

.jk-progress {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.2);
}

.jk-progress span {
    display: block;
    width: 75%;
    height: 100%;
    border-radius: inherit;
    background: #91dc39;
    transform: scaleX(0);
    transform-origin: left;
}

.jk-goal-card.jk-visible .jk-progress span {
    animation: jkProgress 1.1s .3s ease forwards;
}

.jk-roadmap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.jk-roadmap svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform .2s ease;
}

.jk-roadmap:hover svg {
    transform: translateX(4px);
}


/* ACHIEVEMENTS */

.jk-achievements {
    padding: 20px;
    min-height: 185px;
    background: #fafbfc;
    border: 1px solid #dedfe3;
    border-radius: 7px;
}

.jk-achievements h3 {
    margin: 0 0 13px;
    color: #60656d;
    font-size: 15px;
    font-weight: 700;
}

.jk-achievement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #444950;
    font-size: 10px;
}

.jk-achievement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: #e9f1ff;
    color: #0758d9;
    flex-shrink: 0;
}

.jk-achievement-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
}


/* =========================================================
   05. SECTOR REACH
========================================================= */

.jk-sector-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.jk-sector-card {
    padding: 25px;
    background: #fafbfc;
    border: 1px solid #dedfe3;
    border-radius: 7px;
}

.jk-sector-card h3 {
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 700;
}

.jk-sector-card > p {
    margin: 0 0 25px;
    color: #777b82;
    font-size: 11px;
}

.jk-sector-item {
    margin-bottom: 19px;
}

.jk-sector-item:last-child {
    margin-bottom: 0;
}

.jk-sector-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 11px;
}

.jk-sector-head strong {
    font-weight: 700;
}

.jk-sector-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e7eb;
}

.jk-sector-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #0758d9;
    transition: width 1s cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   05B. COMMUNITY MEDICAL OUTREACHES LOG
========================================================= */

.jk-outreaches-section {
    padding: 68px 0 74px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.jk-outreaches-heading {
    max-width: 750px;
    margin-bottom: 35px;
}

.jk-outreaches-heading h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.jk-outreaches-heading p {
    margin: 0;
    color: #666b73;
    font-size: 14px;
    line-height: 1.6;
}

.jk-outreaches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.jk-outreach-card {
    padding: 26px;
    background: #fafbfc;
    border: 1px solid #dedfe3;
    border-radius: 8px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.jk-outreach-card:hover {
    transform: translateY(-4px);
    border-color: #cbdcf5;
    box-shadow: 0 10px 24px rgba(7, 88, 217, 0.08);
}

.jk-outreach-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9ecf0;
}

.jk-outreach-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: #edf4ff;
    color: #0758d9;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.jk-outreach-date {
    color: #727781;
    font-size: 11px;
    font-weight: 700;
}

.jk-outreach-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #202124;
}

.jk-outreach-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    color: #626770;
    font-size: 12px;
}

.jk-outreach-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.jk-outreach-stat-pill {
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e2e6eb;
    border-radius: 6px;
}

.jk-outreach-stat-label {
    margin: 0 0 3px;
    color: #777b82;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.jk-outreach-stat-val {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0758d9;
}

.jk-partners-banner {
    margin-top: 35px;
    padding: 18px 24px;
    background: #edf4ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.jk-partners-text {
    color: #1e3a6a;
    font-size: 13px;
    font-weight: 600;
}

.jk-partner-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jk-partner-tag {
    padding: 5px 12px;
    border-radius: 4px;
    background: #ffffff;
    color: #0758d9;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #bfd7ff;
}


/* =========================================================
   06. FEATURED IMPACT STORIES
     
     IMPORTANT:
     The actual posts are inserted here by JavaScript.
     No stories are hard-coded.
========================================================= */

.jk-featured-stories {
    padding: 64px 0 70px;
    background: #f4f5f7;
    border-top: 1px solid #e2e3e6;
}

.jk-stories-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.jk-stories-heading h2 {
    margin: 0 0 7px;
    font-size: 30px;
    font-weight: 800;
}

.jk-stories-heading p {
    margin: 0;
    color: #777b82;
    font-size: 13px;
}

.jk-view-all {
    padding: 8px 13px;
    border: 1px solid #dfe2e7;
    border-radius: 4px;
    background: #fff;
    color: #33373d;
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s ease;
}

.jk-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,.07);
}


/* POSTS GRID */

.jk-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* POST CARD */

.jk-story-card {
    overflow: hidden;
    background: #fafbfc;
    border: 1px solid #dedfe3;
    border-radius: 7px;
    opacity: 0;
    transform: translateY(25px);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.jk-story-card.jk-visible {
    animation: jkFadeUp .65s ease forwards;
}

.jk-story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 28px rgba(0,0,0,.10);
}

.jk-story-image {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.jk-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.jk-story-card:hover .jk-story-image img {
    transform: scale(1.05);
}

.jk-story-category {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    padding: 4px 7px;
    border-radius: 3px;
    background: rgba(255,255,255,.94);
    color: #33373d;
    font-size: 9px;
    font-weight: 700;
}

.jk-story-content {
    padding: 14px 15px 13px;
}

.jk-story-title {
    margin: 0 0 7px;
    color: #272a2f;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.jk-story-excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #72767d;
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jk-story-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-top: 1px solid #e2e3e6;
}

.jk-read-story {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0758d9;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.jk-read-story span,
.jk-read-story svg {
    display: block;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.jk-read-story:hover span,
.jk-read-story:hover svg {
    transform: translateX(4px);
}


/* LOADING */

.jk-post-loading {
    grid-column: 1 / -1;
    padding: 45px 20px;
    text-align: center;
    color: #777b82;
    font-size: 12px;
}

.jk-loading-spinner {
    width: 25px;
    height: 25px;
    margin: 0 auto 12px;
    border: 2px solid #dfe3e8;
    border-top-color: #0758d9;
    border-radius: 50%;
    animation: jkSpin .8s linear infinite;
}


/* =========================================================
   07. CTA
========================================================= */

.jk-impact-cta {
    padding: 72px 20px;
    background: #292a2e;
    color: #fff;
    text-align: center;
}

.jk-impact-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.jk-impact-cta h2 {
    margin: 0 0 17px;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
		color: white;
}

.jk-impact-cta p {
    max-width: 620px;
    margin: 0 auto 24px;
    color: #d1d2d5;
    font-size: 14px;
    line-height: 1.55;
}

.jk-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.jk-cta-secondary {
    border-color: #aaa;
    background: transparent;
    color: #fff;
}

.jk-cta-secondary:hover {
    background: rgba(255,255,255,.08);
}


/* =========================================================
   08. ANIMATIONS
========================================================= */

@keyframes jkFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jkFadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes jkPanelFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jkDrawChart {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes jkProgress {
    to {
        transform: scaleX(1);
    }
}

@keyframes jkSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   09. TABLET
========================================================= */

@media (max-width: 1000px) {

    .jk-container {
        width: min(100% - 50px, 900px);
    }

    .jk-impact-hero-grid {
        gap: 35px;
    }

    .jk-hero-title {
        font-size: 36px;
    }

    .jk-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jk-growth-grid {
        grid-template-columns: 1fr;
    }

    .jk-dashboard-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .jk-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jk-sector-layout {
        grid-template-columns: 1fr;
    }

    .jk-outreaches-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   10. MOBILE
========================================================= */

@media (max-width: 767px) {

    .jk-impact-page {
        font-size: 15px;
    }

    .jk-container {
        width: min(100% - 30px, 600px);
    }

    .jk-impact-hero {
        padding: 45px 0 48px;
    }

    .jk-impact-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .jk-hero-title {
        font-size: 32px;
        letter-spacing: -.8px;
    }

    .jk-hero-description {
        font-size: 15px;
    }

    .jk-hero-image {
        height: 270px;
    }

    .jk-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .jk-stat-card {
        padding: 15px;
    }

    .jk-stat-number {
        font-size: 20px;
    }

    .jk-impact-dashboard {
        padding: 48px 0 50px;
    }

    .jk-dashboard-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .jk-dashboard-heading h2 {
        font-size: 28px;
    }

    .jk-dashboard-tabs {
        width: 100%;
    }

    .jk-dashboard-tab {
        flex: 1;
    }

    .jk-chart-card {
        min-height: 350px;
        padding: 15px;
    }

    .jk-chart {
        height: 240px;
    }

    .jk-dashboard-side {
        grid-template-columns: 1fr;
    }

    .jk-featured-stories {
        padding: 48px 0 52px;
    }

    .jk-stories-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .jk-stories-heading h2 {
        font-size: 28px;
    }

    .jk-stories-grid {
        grid-template-columns: 1fr;
    }

    .jk-story-image {
        height: 210px;
    }

    .jk-impact-cta {
        padding: 55px 20px;
    }

    .jk-impact-cta h2 {
        font-size: 30px;
    }
}


/* =========================================================
   11. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .jk-container {
        width: min(100% - 24px, 500px);
    }

    .jk-stats-grid {
        grid-template-columns: 1fr;
    }

    .jk-hero-buttons,
    .jk-cta-buttons {
        width: 100%;
    }

    .jk-btn {
        width: 100%;
        font-size: 13px;
    }

    .jk-dashboard-heading h2 {
        font-size: 28px;
    }

    .jk-story-image {
        height: 190px;
    }

    .jk-impact-cta h2 {
        font-size: 28px;
    }
}