/* Wrapper + heading */

.jifu-academy-wrapper {

    position: relative;

    padding: 00px 20px 60px;

    background: #000;

    color: #fff;

    font-family: 'Inter';

}

* {
    font-family: 'Inter';
}

.jifu-academy-heading {

    font-size: 32px;

    font-weight: 700;

    line-height: 1.3;

    margin-bottom: 40px;

    text-align: center;

}



/* Grid */

.jifu-academy-grid {

    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 18px;

}

.jifu-academy-heading {

    display: none;

}

@media (max-width: 1024px) {

    .jifu-academy-grid {

        grid-template-columns: repeat(3, minmax(0, 1fr));

    }

}



@media (max-width: 640px) {

    .jifu-academy-grid {

        grid-template-columns: 1fr;

    }

}



/* Card */

.jifu-academy-item {

    position: relative;

}



.jifu-academy-card {

    position: relative;

    border-radius: 2px;

    overflow: hidden;

    cursor: pointer;

    background: #111;

    min-height: 410px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);

    transition: transform 0.2s ease,

        box-shadow 0.2s ease,

        border 0.2s ease,

        filter 0.3s ease;
    /* for smooth B/W effect */



}



.jifu-academy-card:hover .jifu-academy-card-image {

    filter: grayscale(00%);
    /* turns everything inside black & white */

}









.jifu-academy-card-image {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: 0.9;
    filter: grayscale(65%);

}



.jifu-academy-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(to bottom,

            rgb(0 0 0),
            /* Black at the very top */

            transparent 30%,
            /* Transparent starts at 30% from the top */

            transparent 60%,
            /* Transparent ends at 70% from the top */

            rgb(0 0 0));
    /* Black at the very bottom */
    ;

}



.jifu-academy-card-footer {

    position: relative;

    z-index: 1;

    padding: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;
    transition: 0.3s ease;

}



.jifu-academy-card-icon {

    width: 32px;

    height: 32px;

    object-fit: contain;

    margin-bottom: 6px;

}



.jifu-academy-card-title {

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 6px;

}

/* RED */

.jifu-academy-card--red:hover .jifu-academy-card-title {

    color: #ef4444;

}



/* GREEN */

.jifu-academy-card--green:hover .jifu-academy-card-title {

    color: #16a34a;

}



/* YELLOW */

.jifu-academy-card--yellow:hover .jifu-academy-card-title {

    color: #ca8a04;

}



/* BLUE */

.jifu-academy-card--blue:hover .jifu-academy-card-title {

    color: #1d4ed8;

}



/* CRYPTO – Purple */

.jifu-academy-card--crypto:hover .jifu-academy-card-title {

    color: #A23ECC;

}



/* MINDSET – Dark */

.jifu-academy-card--mindset:hover .jifu-academy-card-title {

    color: #ffffff;

}



/* REALESTATE – Gold */

.jifu-academy-card--realestate:hover .jifu-academy-card-title {

    color: #D7B856;

}



/* STOCKS – Gray */

.jifu-academy-card--stocks:hover .jifu-academy-card-title {

    color: #808080;

}



/* IA – Cyan */

.jifu-academy-card--ia:hover .jifu-academy-card-title {

    color: #00D0FF;

}



/* FITNESS – Pink */

.jifu-academy-card--fitness:hover .jifu-academy-card-title {

    color: #D63976;

}

.jifu-academy-card:hover .jifu-academy-card-footer {

    padding-bottom: 35px;

}



.jifu-academy-card-tag {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    padding: 4px 10px;

    border-radius: 5px;

    background: rgba(0, 0, 0, 0.7);

}



/* Slight color accents by modifier */

.jifu-academy-card--red .jifu-academy-card-tag {

    background: linear-gradient(90deg, #EC1C24 0%, #800F13 100%);

}

.jifu-academy-card--green .jifu-academy-card-tag {

    background: linear-gradient(90deg, #00C217 0%, #00660C 100%);

}

.jifu-academy-card--yellow .jifu-academy-card-tag {

    background: linear-gradient(90deg, #DCFA1E 0%, #70800F 100%);

}

.jifu-academy-card--blue .jifu-academy-card-tag {

    background: linear-gradient(90deg, #476ECC 0%, #2C4580 100%);

}



.jifu-academy-card--crypto .jifu-academy-card-tag {

    background: linear-gradient(90deg, #A23ECC 0%, #3D174D 100%);

}



.jifu-academy-card--mindset .jifu-academy-card-tag {

    background: linear-gradient(90deg, #211F1F 0%, #000000 100%);

}

.jifu-academy-card--realestate .jifu-academy-card-tag {

    background: linear-gradient(90deg, #D7B856 0%, #806D33 100%);

}



.jifu-academy-card--stocks .jifu-academy-card-tag {

    background: linear-gradient(90deg, #4D4848 0%, #808080 100%);

}



.jifu-academy-card--ia .jifu-academy-card-tag {

    background: linear-gradient(90deg, #00D0FF 0%, #006880 100%);

}



.jifu-academy-card--fitness .jifu-academy-card-tag {

    background: linear-gradient(90deg, #D63976 0%, #802246 100%);

}



/* Modal */

.jifu-academy-modal {

    position: fixed;

    inset: 0;

    display: none;

    z-index: 9999;

}



.jifu-academy-modal--open {

    display: block;

}



.jifu-academy-modal-backdrop {

    position: absolute;

    inset: 0;

    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9), rgba(0, 0, 0, 0.98));

}



.jifu-academy-modal-dialog {

    position: relative;

    max-width: 900px;

    margin: 40px auto;

    padding: 0;

    border-radius: 26px;

    background: #000;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);

    color: #e5e7eb;
    max-height: 90vh;

    overflow-y: auto;
    box-shadow: 0px 0px 90.3px -14px #4C6AE566;

    border: 5px solid #2F2F2F
}

/* Scrollbar Styling */

.jifu-academy-modal-dialog::-webkit-scrollbar {

    width: 10px;
    /* scrollbar width */

}



.jifu-academy-modal-dialog::-webkit-scrollbar-track {

    background: #333;
    /* dark track */

    border-radius: 10px;

}



.jifu-academy-modal-dialog::-webkit-scrollbar-thumb {

    background: #000;
    /* your blue glow color */

    border-radius: 10px;

    border: 2px solid #0f0f0f;
    /* spacing effect */

}



.jifu-academy-modal-dialog::-webkit-scrollbar-thumb:hover {

    background: #222;
    /* lighter on hover */

}



@media (max-width: 768px) {

    .jifu-academy-modal-dialog {

        margin: 20px;

        padding: 0px;

    }

}



.jifu-academy-modal-close {

    position: absolute;

    top: 16px;

    right: 16px;

    width: 40px;

    height: 40px;

    border-radius: 999px;

    border: none;

    cursor: pointer;

    background: rgb(255 255 255 / 90%);

    color: #000000;

    font-size: 20px;

    line-height: 1px;

    z-index: 999;

}



.jifu-academy-modal-header {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
    display: none;

}



.jifu-academy-modal-icon {

    width: 40px;

    height: 40px;

    object-fit: contain;

}



.jifu-academy-modal-title {

    font-size: 26px;

    font-weight: 700;

    margin: 0;

}



.jifu-academy-modal-body {

    font-size: 14px;

    line-height: 1.6;

}



/* Editor helpers */

.jifu-academy-item-editor {

    border: 1px solid #4b5563;

    border-radius: 12px;

    padding: 16px;

    margin-bottom: 16px;

    background: radial-gradient(circle at top, rgba(31, 41, 55, 0.7), rgba(15, 23, 42, 0.95));

}



.jifu-academy-card-preview {

    position: relative;

    border-radius: 14px;

    overflow: hidden;

    background: #111;

    min-height: 140px;

    margin-bottom: 12px;

}



.jifu-academy-card-image-preview {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    opacity: 0.9;

}



.jifu-academy-card-footer-preview {

    position: relative;

    z-index: 1;

    padding: 12px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}



.jifu-academy-icon-preview-small {

    width: 24px;

    height: 24px;

    object-fit: contain;

    margin-bottom: 4px;

}



.jifu-academy-card-title-preview {

    font-weight: 600;

    font-size: 14px;

    margin-bottom: 4px;

}



.jifu-academy-card-tag-preview {

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

    padding: 3px 8px;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    background: rgba(0, 0, 0, 0.6);

}



.jifu-academy-modal-inner-editor-wrapper {

    margin-top: 10px;

    border-top: 1px dashed #64748b;

    padding-top: 10px;

}



.jifu-academy-modal-inner-label {

    font-size: 12px;

    margin-bottom: 8px;

    opacity: 0.9;

}





.jifu-academy-card:hover {

    transform: translateY(-4px);

}

/* Hidden by default */

.jifu-academy-hover-text {

    position: absolute;

    bottom: 20px;

    left: 20px;

    right: 20px;

    font-size: 18px;

    font-weight: 700;

    opacity: 0;

    transform: translateY(20px);

    transition: 0.3s ease;

    z-index: 2;

}



/* Show on hover */

.jifu-academy-card:hover .jifu-academy-hover-text {

    opacity: 1;

    transform: translateY(0);

}

/* RED */

.jifu-academy-card--red:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #ef4444) 1;

}



/* GREEN */

.jifu-academy-card--green:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #16a34a) 1;

}



/* YELLOW */

.jifu-academy-card--yellow:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #ca8a04) 1;

}



/* BLUE */

.jifu-academy-card--blue:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #1d4ed8) 1;

}

/* CRYPTO – Purple */

.jifu-academy-card--crypto:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #A23ECC) 1;

}



/* MINDSET – Dark / Black */

.jifu-academy-card--mindset:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #222222) 1;

}



/* REALESTATE – Gold */

.jifu-academy-card--realestate:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #D7B856) 1;

}

.jifu-academy-card {
    min-height: 590px;
}

.saaslauncher-header .is-layout-flex {
    height: 40px;
}

/* STOCKS – Gray */

.jifu-academy-card--stocks:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #808080) 1;

}



/* IA – Cyan */

.jifu-academy-card--ia:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #00D0FF) 1;

}



/* FITNESS – Pink */

.jifu-academy-card--fitness:hover {

    border-width: 2px;

    border-style: solid;

    border-image: linear-gradient(to bottom,

            #000,

            #D63976) 1;

}