/* =========================================================
   JAKADIYA KAUNA FOUNDATION
   DIGITAL RESOURCE LIBRARY
   HTML + CSS — SINGLE PAGE
   ========================================================= */

    .jk-health-hub {
        --jk-blue: #0757d9;
        --jk-blue-dark: #0348bd;
        --jk-blue-light: #eaf2ff;
        --jk-text: #202124;
        --jk-muted: #687076;
        --jk-border: #e2e5e8;
        --jk-light: #f6f7f9;
        --jk-white: #ffffff;
        --jk-green: #35c759;

        font-family: Arial, Helvetica, sans-serif;
        color: var(--jk-text);
        font-size: 16px;
        line-height: 1.6;

        width: 100%;
        overflow: hidden;

        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    .jk-health-hub *,
    .jk-health-hub *::before,
    .jk-health-hub *::after {
        box-sizing: border-box;
    }

    .jk-health-hub img {
        max-width: 100%;
        display: block;
    }

    .jk-health-hub button,
    .jk-health-hub input {
        font-family: inherit;
    }

    .jk-health-hub a {
        text-decoration: none;
    }


    /* =========================================================
   CONTAINER
   ========================================================= */

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


    /* =========================================================
   HERO
   ========================================================= */

    .jk-resource-hero {
        position: relative;
        background: #f7f8fa;
        padding: 75px 0 85px;
        border-bottom: 1px solid #e7e9ec;
        overflow: hidden;
    }

    .jk-resource-hero::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(7, 87, 217, .035);
        top: -220px;
        left: -180px;
        pointer-events: none;
    }

    .jk-resource-hero .jk-resource-container {
        position: relative;
        z-index: 2;

        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 70px;
    }


    /* =========================================================
   HERO TEXT
   ========================================================= */

    .jk-hero-content {
        max-width: 590px;

        animation: jkHeroText .8s ease both;
    }

    .jk-hero-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;

        padding: 6px 11px;

        background: var(--jk-blue-light);
        color: var(--jk-blue);

        border-radius: 30px;

        font-size: 10px;
        font-weight: 800;
        letter-spacing: .5px;

        animation: jkFadeUp .7s ease both;
    }

    .jk-label-icon {
        font-size: 9px;
    }

    .jk-hero-content h1 {
        margin: 20px 0 15px;

        font-size: clamp(34px, 4vw, 52px);
        font-weight: 800;
        line-height: 1.03;
        letter-spacing: -2.5px;

        animation: jkFadeUp .8s .1s ease both;
    }

    .jk-hero-content h1 em {
        color: var(--jk-blue);
        font-style: italic;
    }

    .jk-hero-description {
        max-width: 550px;

        margin: 0;

        color: #687076;

        font-size: clamp(14px, 1.3vw, 17px);
        line-height: 1.75;

        animation: jkFadeUp .8s .2s ease both;
    }

    .jk-hero-features {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;

        margin-top: 27px;

        animation: jkFadeUp .8s .3s ease both;
    }

    .jk-hero-features span {
        display: flex;
        align-items: center;
        gap: 6px;

        color: #62686d;

        font-size: 11px;
    }

    .jk-hero-features b {
        width: 15px;
        height: 15px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 1px solid var(--jk-green);
        border-radius: 50%;

        color: var(--jk-green);

        font-size: 9px;
    }


    /* =========================================================
   HERO IMAGE
   ========================================================= */

    .jk-hero-image {
        position: relative;

        animation: jkHeroImage .9s .15s ease both;
    }

    .jk-hero-image>img {
        width: 100%;
        height: 390px;

        object-fit: cover;

        border-radius: 14px;

        box-shadow:
            0 20px 45px rgba(0, 0, 0, .12);

        transition:
            transform .5s ease,
            box-shadow .5s ease;
    }

    .jk-hero-image:hover>img {
        transform: translateY(-5px) scale(1.01);

        box-shadow:
            0 25px 55px rgba(0, 0, 0, .15);
    }


    /* =========================================================
   HERO FLOATING CARD
   ========================================================= */

    .jk-hero-note {
        position: absolute;

        right: -15px;
        bottom: -20px;

        width: 255px;

        display: flex;
        gap: 10px;

        padding: 14px;

        background: #fff;

        border: 1px solid #e6e8eb;
        border-radius: 9px;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, .13);

        animation: jkFloat 4s ease-in-out infinite;
    }

    .jk-note-icon {
        flex: 0 0 26px;

        width: 26px;
        height: 26px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        background: #e9f9e9;
        color: #55b84d;

        font-size: 12px;
    }

    .jk-hero-note strong {
        display: block;

        margin-bottom: 2px;

        font-size: 11px;
        font-weight: 800;
    }

    .jk-hero-note p {
        margin: 0;

        color: #6d7378;

        font-size: 9px;
        line-height: 1.5;
    }


    /* =========================================================
   LIBRARY
   ========================================================= */

    .jk-resource-library {
        background: #f7f8fa;
        padding: 55px 0 75px;
    }


    /* =========================================================
   LIBRARY HEADER
   ========================================================= */

    .jk-library-box {
        margin-bottom: 22px;
        padding: 25px;

        background: #fff;

        border: 1px solid var(--jk-border);
        border-radius: 10px;

        animation: jkFadeUp .7s ease both;
    }

    .jk-library-heading h2 {
        margin: 0 0 3px;

        font-size: clamp(27px, 3vw, 39px);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -.8px;
    }

    .jk-library-heading p {
        margin: 0;

        color: #73797e;

        font-size: 14px;
    }


    /* =========================================================
   CONTROLS
   ========================================================= */

    .jk-library-controls {
        display: grid;
        grid-template-columns: minmax(250px, 1fr) auto;
        gap: 15px;

        margin-top: 21px;
    }

    .jk-search-wrapper {
        position: relative;
    }

    .jk-search-wrapper input {
        width: 100%;
        height: 43px;

        padding: 0 14px 0 39px;

        border: 1px solid #dfe3e7;
        border-radius: 5px;

        background: #fff;

        color: #202124;

        font-size: 13px;

        outline: none;

        transition:
            border-color .2s ease,
            box-shadow .2s ease;
    }

    .jk-search-wrapper input:focus {
        border-color: var(--jk-blue);

        box-shadow:
            0 0 0 3px rgba(7, 87, 217, .08);
    }

    .jk-search-icon {
        position: absolute;

        left: 14px;
        top: 50%;

        transform: translateY(-50%);

        color: #8a9095;

        font-size: 16px;

        pointer-events: none;
    }

    .jk-filter-wrapper {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .jk-filter-label {
        color: #777d82;

        font-size: 9px;
        font-weight: 800;
        letter-spacing: .4px;
    }

    .jk-category-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .jk-category-btn {
        padding: 7px 11px;

        border: 0;
        border-radius: 4px;

        background: transparent;

        color: #686e73;

        cursor: pointer;

        font-size: 11px;

        transition:
            background .2s ease,
            color .2s ease,
            transform .2s ease;
    }

    .jk-category-btn:hover {
        background: #f0f4fa;
        color: var(--jk-blue);
        transform: translateY(-1px);
    }

    .jk-category-btn.active {
        background: var(--jk-blue-light);
        color: var(--jk-blue);
        font-weight: 700;
    }


    /* =========================================================
   RESOURCE GRID
   ========================================================= */

    .jk-resource-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }


    /* =========================================================
   RESOURCE CARD
   ========================================================= */

    .jk-resource-card {
        overflow: hidden;

        display: flex;
        flex-direction: column;

        min-width: 0;

        background: #fff;

        border: 1px solid #e0e3e7;
        border-radius: 7px;

        opacity: 0;
        animation: jkCardIn .55s ease forwards;

        transition:
            transform .25s ease,
            box-shadow .25s ease,
            border-color .25s ease;
    }

    .jk-resource-card:hover {
        transform: translateY(-7px);

        border-color: #d3d9df;

        box-shadow:
            0 14px 35px rgba(0, 0, 0, .09);
    }


    /* =========================================================
   CARD IMAGE
   ========================================================= */

    .jk-resource-image {
        position: relative;

        height: 185px;

        overflow: hidden;

        background: #eef0f2;
    }

    .jk-resource-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;

        transition:
            transform .45s ease;
    }

    .jk-resource-card:hover .jk-resource-image img {
        transform: scale(1.06);
    }

    .jk-resource-category {
        position: absolute;

        top: 9px;
        left: 9px;

        padding: 4px 8px;

        background: rgba(255, 255, 255, .94);

        border-radius: 3px;

        color: #555b60;

        font-size: 9px;
        font-weight: 800;
    }


    /* =========================================================
   CARD BODY
   ========================================================= */

    .jk-resource-body {
        display: flex;
        flex-direction: column;

        flex: 1;

        padding: 12px;
    }

    .jk-resource-meta {
        margin-bottom: 4px;

        color: var(--jk-blue);

        font-size: 9px;
        font-weight: 700;
    }

    .jk-resource-title {
        margin: 0 0 6px;

        color: #292d31;

        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
    }

    .jk-resource-description {
        display: -webkit-box;

        margin: 0 0 14px;

        overflow: hidden;

        color: #6d7378;

        font-size: 12px;
        line-height: 1.6;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .jk-download-btn {
        width: 100%;
        min-height: 35px;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;

        margin-top: auto;

        padding: 8px 12px;

        border: 0;
        border-radius: 4px;

        background: var(--jk-blue);

        color: #fff;

        cursor: pointer;

        font-size: 12px;
        font-weight: 700;

        transition:
            background .2s ease,
            transform .2s ease,
            box-shadow .2s ease;
    }

    .jk-download-btn:hover {
        background: var(--jk-blue-dark);

        transform: translateY(-2px);

        box-shadow:
            0 5px 12px rgba(7, 87, 217, .25);
    }

    .jk-download-btn:active {
        transform: translateY(0);
    }

    .jk-download-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

    /* Download count badge - only shown when downloads > 0 */
    .jk-dl-count-badge {
        display: none; /* JS shows it only when count > 0 */
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-top: 6px;
        padding: 3px 8px;
        border-radius: 20px;
        background: rgba(7, 88, 217, 0.08);
        color: var(--jk-blue);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }


    /* =========================================================
   LOADING
   ========================================================= */

    .jk-resource-loading {
        min-height: 220px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        color: #777;
    }

    .jk-spinner {
        width: 32px;
        height: 32px;

        margin-bottom: 10px;

        border: 3px solid #e4e8ed;
        border-top-color: var(--jk-blue);

        border-radius: 50%;

        animation: jkSpin .8s linear infinite;
    }

    .jk-resource-loading p {
        margin: 0;
        font-size: 13px;
    }


    /* =========================================================
   EMPTY
   ========================================================= */

    .jk-resource-empty {
        padding: 65px 20px;

        text-align: center;
    }

    .jk-empty-icon {
        color: #b7bec5;
        font-size: 38px;
    }

    .jk-resource-empty h3 {
        margin: 8px 0 4px;

        font-size: 19px;
        font-weight: 700;
    }

    .jk-resource-empty p {
        margin: 0;

        color: #73797e;

        font-size: 13px;
    }


    /* =========================================================
   ERROR
   ========================================================= */

    .jk-resource-error {
        margin: 20px 0;
        padding: 20px;

        border: 1px solid #f0cccc;
        border-radius: 6px;

        background: #fff6f6;

        color: #9d3030;

        text-align: center;
    }

    .jk-resource-error p {
        margin: 4px 0 0;
        font-size: 13px;
    }


    /* =========================================================
   LOAD MORE
   ========================================================= */

    .jk-load-more-wrapper {
        display: flex;
        justify-content: center;

        margin-top: 35px;
    }

    .jk-load-more-btn {
        padding: 9px 27px;

        border: 1px solid var(--jk-blue);
        border-radius: 4px;

        background: #fff;

        color: var(--jk-blue);

        cursor: pointer;

        font-size: 12px;
        font-weight: 700;

        transition:
            background .2s ease,
            color .2s ease,
            transform .2s ease;
    }

    .jk-load-more-btn:hover {
        background: var(--jk-blue);
        color: #fff;

        transform: translateY(-2px);
    }


    /* =========================================================
   CTA
   ========================================================= */

    .jk-resource-cta {
        padding: 45px 0;

        background: var(--jk-blue);

        color: #fff;
    }

    .jk-resource-cta .jk-resource-container {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 45px;
    }

    .jk-cta-content {
        max-width: 600px;
    }

    .jk-cta-content h2 {
        margin: 0 0 10px;

        font-size: clamp(27px, 3vw, 39px);
        font-weight: 800;
        line-height: 1.15;
    }

    .jk-cta-content p {
        max-width: 570px;

        margin: 0;

        font-size: 13px;
        line-height: 1.7;
    }

    .jk-cta-buttons {
        display: flex;
        gap: 8px;

        margin-top: 18px;
    }

    .jk-cta-primary,
    .jk-cta-secondary {
        padding: 8px 14px;

        border-radius: 4px;

        font-size: 12px;
        font-weight: 700;

        transition:
            transform .2s ease,
            opacity .2s ease;
    }

    .jk-cta-primary {
        background: #fff;
        color: var(--jk-blue);
    }

    .jk-cta-secondary {
        border: 1px solid rgba(255, 255, 255, .6);
        color: #fff;
    }

    .jk-cta-primary:hover,
    .jk-cta-secondary:hover {
        transform: translateY(-2px);
        opacity: .9;
    }


    /* =========================================================
   IMPACT CARD
   ========================================================= */

    .jk-impact-card {
        min-width: 300px;

        padding: 18px;

        border-radius: 9px;

        background: rgba(255, 255, 255, .13);

        animation: jkFloat 4s ease-in-out infinite;
    }

    .jk-impact-title {
        display: flex;
        align-items: center;
        gap: 8px;

        margin-bottom: 12px;

        font-size: 13px;
        font-weight: 700;
    }

    .jk-impact-title span {
        width: 21px;
        height: 21px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        background: #8be879;
        color: #175c17;

        font-size: 11px;
    }

    .jk-impact-stats {
        display: flex;
        gap: 35px;
    }

    .jk-impact-stats div {
        display: flex;
        flex-direction: column;
    }

    .jk-impact-stats strong {
        font-size: 30px;
        font-weight: 700;
        line-height: 1.1;
    }

    .jk-impact-stats span {
        margin-top: 3px;
        font-size: 9px;
    }


    /* =========================================================
   FAQ
   ========================================================= */

    .jk-resource-faq {
        padding: 65px 0;

        background: #f7f8fa;
    }

    .jk-faq-container {
        width: min(720px, calc(100% - 48px));
        margin: 0 auto;
    }

    .jk-faq-heading {
        margin-bottom: 30px;
        text-align: center;
    }

    .jk-faq-heading h2 {
        margin: 0 0 5px;

        font-size: clamp(27px, 3vw, 39px);
        font-weight: 800;
        line-height: 1.15;
    }

    .jk-faq-heading p {
        margin: 0;

        color: #777d82;

        font-size: 12px;
    }

    .jk-faq-list {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .jk-faq-list details {
        border: 1px solid #e0e3e7;
        border-radius: 6px;

        background: #fff;

        transition:
            box-shadow .2s ease,
            transform .2s ease;
    }

    .jk-faq-list details:hover {
        transform: translateY(-1px);

        box-shadow:
            0 5px 15px rgba(0, 0, 0, .04);
    }

    .jk-faq-list summary {
        display: flex;
        align-items: center;
        gap: 10px;

        padding: 13px;

        cursor: pointer;

        list-style: none;

        font-size: 12px;
        font-weight: 700;
    }

    .jk-faq-list summary::-webkit-details-marker {
        display: none;
    }

    .jk-faq-list summary span {
        width: 20px;
        height: 20px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        background: var(--jk-blue-light);

        color: var(--jk-blue);

        transition: transform .2s ease;
    }

    .jk-faq-list details[open] summary span {
        transform: rotate(90deg);
    }

    .jk-faq-list details p {
        margin: 0;

        padding: 0 15px 15px 43px;

        color: #73797e;

        font-size: 12px;
        line-height: 1.7;
    }


    /* =========================================================
   FAQ CONTACT
   ========================================================= */

    .jk-faq-contact {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;

        margin-top: 25px;
        padding: 20px;

        border-radius: 7px;

        background: #eef0f2;
    }

    .jk-faq-contact h3 {
        margin: 0 0 3px;

        font-size: 16px;
        font-weight: 700;
    }

    .jk-faq-contact p {
        margin: 0;

        color: #747a7f;

        font-size: 12px;
    }

    .jk-faq-contact-btn {
        flex-shrink: 0;

        padding: 9px 15px;

        border-radius: 4px;

        background: var(--jk-blue);

        color: #fff;

        font-size: 12px;
        font-weight: 700;

        transition:
            transform .2s ease,
            background .2s ease;
    }

    .jk-faq-contact-btn:hover {
        background: var(--jk-blue-dark);
        transform: translateY(-2px);
    }


    /* =========================================================
   ANIMATIONS
   ========================================================= */

    @keyframes jkFadeUp {

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

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

    }

    @keyframes jkHeroText {

        from {
            opacity: 0;
            transform: translateX(-30px);
        }

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

    }

    @keyframes jkHeroImage {

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

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

    }

    @keyframes jkCardIn {

        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    }

    @keyframes jkFloat {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-7px);
        }

    }

    @keyframes jkSpin {

        to {
            transform: rotate(360deg);
        }

    }


    /* =========================================================
   TABLET
   ========================================================= */

    @media (max-width: 1024px) {

        .jk-resource-hero .jk-resource-container {
            gap: 40px;
        }

        .jk-hero-content h1 {
            font-size: 38px;
        }

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

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

    }


    /* =========================================================
   MOBILE
   ========================================================= */

    @media (max-width: 767px) {

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

        .jk-resource-hero {
            padding: 50px 0 70px;
        }

        .jk-resource-hero .jk-resource-container {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        .jk-hero-content {
            max-width: none;
        }

        .jk-hero-content h1 {
            font-size: clamp(29px, 8vw, 36px);
            line-height: 1.12;
            letter-spacing: -.8px;
        }

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

        .jk-hero-features {
            gap: 10px 16px;
        }

        .jk-hero-image>img {
            height: 300px;
        }

        .jk-hero-note {
            right: 5px;
            bottom: -18px;
        }

        .jk-resource-library {
            padding: 40px 0 55px;
        }

        .jk-library-box {
            padding: 19px;
        }

        .jk-library-heading h2 {
            font-size: 27px;
        }

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

        .jk-library-controls > div {
            min-width: 0;
        }

        .jk-category-filter {
            overflow-x: auto;
            flex-wrap: nowrap;

            padding-bottom: 5px;

            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
        }

        .jk-category-btn {
            flex-shrink: 0;
        }

        .jk-resource-grid {
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .jk-resource-image {
            height: 230px;
        }

        .jk-resource-title {
            font-size: 18px;
        }

        .jk-resource-description {
            font-size: 13px;
        }

        .jk-resource-cta {
            padding: 42px 0;
        }

        .jk-resource-cta .jk-resource-container {
            flex-direction: column;
            align-items: stretch;
        }

        .jk-impact-card {
            min-width: 0;
            width: 100%;
        }

        .jk-resource-faq {
            padding: 50px 0;
        }

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

        .jk-faq-contact {
            flex-direction: column;
            align-items: flex-start;
        }

        .jk-faq-contact-btn {
            width: 100%;
            text-align: center;
        }

    }


    /* =========================================================
   SMALL PHONES
   ========================================================= */

    @media (max-width: 480px) {

        .jk-resource-container {
            width: calc(100% - 24px);
        }

        .jk-resource-hero {
            padding: 38px 0 55px;
        }

        .jk-hero-content h1 {
            font-size: 27px;
        }

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

        .jk-hero-features {
            flex-direction: column;
            gap: 8px;
        }

        .jk-hero-image>img {
            height: 235px;
        }

        .jk-hero-note {
            position: relative;

            right: auto;
            bottom: auto;

            width: 100%;

            margin-top: 8px;

            animation: none;
        }

        .jk-library-heading h2 {
            font-size: 25px;
        }

        .jk-library-heading p {
            font-size: 13px;
        }

        .jk-resource-image {
            height: 200px;
        }

        .jk-resource-body {
            padding: 11px;
        }

        .jk-resource-title {
            font-size: 17px;
        }

        .jk-resource-description {
            font-size: 12px;
        }

        .jk-cta-content h2 {
            font-size: 27px;
        }

        .jk-cta-buttons {
            flex-direction: column;
        }

        .jk-cta-primary,
        .jk-cta-secondary {
            width: 100%;
            text-align: center;
        }

        .jk-impact-stats {
            gap: 25px;
        }

        .jk-faq-heading h2 {
            font-size: 26px;
        }

    }


    /* =========================================================
   REDUCE MOTION
   ========================================================= */

    @media (prefers-reduced-motion: reduce) {

        .jk-health-hub *,
        .jk-health-hub *::before,
        .jk-health-hub *::after {
            animation-duration: .01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: .01ms !important;
        }

    }