/**
 * NJ Editor Stylesheet
 * 2 Styles: Style 1 (With Icon List) & Style 2 (Without Icon List)
 * Subheading, Heading (H1-H6), Poppins Typography & Color Change Animations
 */

/* ==================== WRAPPER & CONTAINER ==================== */
.nj-editor-wrapper {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nj-editor-wrapper *,
.nj-editor-wrapper *::before,
.nj-editor-wrapper *::after {
    box-sizing: border-box;
}

/* ==================== FADE-IN ENTRANCE ==================== */
@keyframes njEditorFadeIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nj-editor-fade-in {
    animation: njEditorFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==================== SUB HEADING ==================== */
.nj-editor-subheading-wrap {
    margin-bottom: 14px;
}

.nj-editor-subheading {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 1.6vw, 0.875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f7941d;
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0;
    line-height: 1.4;
    transition: none;
    cursor: default;
}

.nj-editor-subheading:hover {
    background-color: transparent !important;
    background: transparent !important;
    color: #f7941d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================== HEADING (H1 - H6 SUPPORT) ==================== */
.nj-editor-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 18px 0;
    letter-spacing: -0.02em;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default dynamic heading sizes */
h1.nj-editor-heading { font-size: clamp(2rem, 4vw, 2.85rem); }
h2.nj-editor-heading { font-size: clamp(1.75rem, 3.2vw, 2.35rem); }
h3.nj-editor-heading { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h4.nj-editor-heading { font-size: clamp(1.25rem, 2.1vw, 1.65rem); }
h5.nj-editor-heading { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h6.nj-editor-heading { font-size: clamp(1rem, 1.5vw, 1.15rem); }

.nj-editor-heading:hover {
    color: #2b3992;
}

/* ==================== DESCRIPTION (WYSIWYG) ==================== */
.nj-editor-desc {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.92rem, 1.3vw, 1.02rem);
    font-weight: 400;
    line-height: 1.7;
    color: #141415;
    margin-bottom: 28px;
}

.nj-editor-desc p {
    margin: 0 0 12px 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: #141415;
}

.nj-editor-desc p:last-child {
    margin-bottom: 0;
}

/* ==================== LIST LAYOUT ==================== */
.nj-editor-list {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    column-gap: 20px;
}

/* 2 Columns modifier */
.nj-editor-list-cols-2- .nj-editor-list,
.nj-editor-list-cols-2 .nj-editor-list,
.nj-cols-2 .nj-editor-list,
.nj-list-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

/* 1 Column modifier */
.nj-editor-list-cols-1- .nj-editor-list,
.nj-editor-list-cols-1 .nj-editor-list,
.nj-cols-1 .nj-editor-list,
.nj-list-cols-1 {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
}

/* ==================== LIST ITEMS (NORMAL: NO BOX BORDER, NO UNWANTED SPACE) ==================== */
.nj-editor-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 3px 0;
    box-shadow: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.25s ease;
    cursor: default;
}

/* Hover State - Clean Subtle Shift (No Box Border) */
.nj-editor-item:hover {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: translateX(4px);
}

/* Optional Boxed Style */
.nj-list-boxed .nj-editor-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.nj-list-boxed .nj-editor-item:hover {
    border-color: #2b3992;
    background-color: #f8fafc;
    transform: translateX(4px);
    box-shadow: 0 6px 16px -2px rgba(43, 57, 146, 0.12);
}

/* ==================== ITEM CONTENT ==================== */
.nj-editor-item-content {
    flex: 1;
}

.nj-editor-item-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.96rem, 1.25vw, 1.05rem);
    font-weight: 600;
    line-height: 1.45;
    color: #141415;
    margin: 0;
    transition: color 0.3s ease;
}

.nj-editor-item:hover .nj-editor-item-title {
    color: #2b3992;
}

.nj-editor-item-desc {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 1.05vw, 0.92rem);
    font-weight: 400;
    line-height: 1.6;
    color: #141415;
    margin-top: 6px;
    transition: color 0.3s ease;
}

/* ==================== CONTENT MODES (DESC ONLY / TITLE ONLY) ==================== */
.nj-content-desc-only .nj-editor-item {
    align-items: center;
}

.nj-content-desc-only .nj-editor-item-desc {
    margin-top: 0;
    font-size: clamp(0.92rem, 1.2vw, 1rem);
    font-weight: 500;
    color: #141415;
    line-height: 1.5;
}

.nj-content-desc-only .nj-editor-item:hover .nj-editor-item-desc {
    color: #2b3992;
}

.nj-content-title-only .nj-editor-item {
    align-items: center;
}

/* ==================== STYLE 1 & 2: ANGLE ICON LIST ==================== */
.nj-editor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #2b3992;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
}

.nj-editor-icon svg,
.nj-editor-icon i {
    font-size: 13px;
    width: 13px;
    height: 13px;
    transition: transform 0.3s ease;
}

.nj-editor-item:hover .nj-editor-icon {
    background-color: #2b3992;
    color: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(43, 57, 146, 0.25);
}

.nj-editor-item:hover .nj-editor-icon svg {
    stroke: #ffffff;
}

/* ==================== STYLE 2: MINIMAL ANGLE ICON (NO LEFT SIDE LINE) ==================== */
.nj-style-style2 .nj-editor-icon {
    background-color: transparent;
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: #2b3992;
    margin-top: 2px;
    border-radius: 0;
}

.nj-style-style2 .nj-editor-icon svg,
.nj-style-style2 .nj-editor-icon i {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.nj-style-style2 .nj-editor-item:hover .nj-editor-icon {
    background-color: transparent;
    color: #0369a1;
    transform: translateX(3px);
    box-shadow: none;
}

.nj-style-style2 .nj-editor-item:hover .nj-editor-icon svg {
    stroke: #0369a1;
}

/* LEFT SIDE LINE REMOVAL: Accent line and thick left border removed */
.nj-editor-item-accent {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nj-style-style2 .nj-editor-item {
    position: relative;
    padding-left: 0;
}

.nj-style-style2.nj-list-boxed .nj-editor-item {
    padding-left: 16px;
    border-left-width: 1px !important;
    border-left-color: #e2e8f0 !important;
}

.nj-style-style2.nj-list-boxed .nj-editor-item:hover {
    border-left-color: #2b3992 !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nj-editor-list-cols-2- .nj-editor-list,
    .nj-editor-list-cols-2 .nj-editor-list,
    .nj-cols-2 .nj-editor-list,
    .nj-list-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .nj-list-boxed .nj-editor-item {
        padding: 12px 14px;
    }

    .nj-editor-item {
        padding: 3px 0;
        gap: 10px;
    }

    .nj-editor-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .nj-editor-icon svg,
    .nj-editor-icon i {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .nj-editor-item:hover {
        transform: translateX(4px);
    }
}
