/* =====================================================
   BASE
===================================================== */
*{ box-sizing:border-box; }

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f2f2f2;
}

/* =====================================================
   RESUME PAGE (A4 – SCREEN)
===================================================== */
.resume-page{
    width:210mm;
    height:297mm;          /* HARD A4 */
    margin:0 auto;
    background:#fff;
    display:flex;
    flex-direction:row;
    align-items:stretch;
    overflow:hidden;       /* CUT EXTRA CONTENT */
    box-shadow:0 0 10px rgba(0,0,0,.28);
}
/* =====================================================
   PRINT – FORCE SINGLE PAGE (ONLY PAGE 2)
===================================================== */
/* =====================================================
   PRINT – FORCE ONLY RESUME PAGE
===================================================== */
/* =====================================================
   PRINT – FINAL GUARANTEED (WORDPRESS SAFE)
===================================================== */
@media print {

    @page{
        size:A4;
        margin:0;
    }

    body{
        margin:0;
        background:#fff;
    }

    body *{
        visibility:hidden;
    }

    /* MAIN RESUME */
    .resume-page{
        position:fixed;
        top:0;
        left:0;
        width:210mm;
        height:297mm;
        display:flex;
        flex-direction:row;
        visibility:visible;
        box-shadow:none;
        overflow:hidden;
    }

    .resume-page *{
        visibility:visible;
    }

    /* 🔥 FORCE SIDEBAR */
    .modern-sidebar{
        width:32% !important;
        display:block !important;
        visibility:visible !important;
    }

    /* 🔥 FORCE MAIN */
    .modern-main{
        width:68% !important;
        display:block !important;
        visibility:visible !important;
    }

    /* HIDE UI */
    .rb-action-bar,
    .rb-template-bar,
    .no-print,
    header,
    footer,
    nav,
    aside{
        display:none !important;
    }
}

/* ================= SIDEBAR TEXT OVERFLOW FIX ================= */
.modern-sidebar a{
    font-size:12px;
}
/* Contact text (mobile, email, address) */
.modern-sidebar,
.modern-sidebar *{
    max-width:100%;
    box-sizing:border-box;
}

/* Email / long text wrap */
.modern-sidebar .contact-item,
.modern-sidebar a,
.modern-sidebar span,
.modern-sidebar div{
    word-break:break-word;
    overflow-wrap:anywhere;
    white-space:normal;
}

/* Editable fields (contenteditable / input-look) */
.modern-sidebar [contenteditable],
.modern-sidebar .input-look{
    word-break:break-word;
    overflow-wrap:anywhere;
    white-space:normal;
}

/* ================= EDITABLE PLACEHOLDER ================= */

.sb-value{
    font-size:13px;
    outline:none;
    word-break:break-word;
    min-height:16px;
}

/* Placeholder style */
.sb-value.placeholder{
    color:rgba(255,255,255,.6);
}

/* Main content side */
.modern-main .sb-value.placeholder{
    color:#777;
}

/* Print me placeholder hide */
@media print{
    .sb-value.placeholder{
        display:none !important;
    }
}






/* =====================================================
   SIDEBAR
===================================================== */
.modern-sidebar{
    width:32%;
    background:#1f1f1f;
    color:#fff;
    padding:18mm 12mm;
    flex-shrink:0;
}

.modern-sidebar h3{
    font-size:14px;
    margin:18px 0 8px;
    border-bottom:1px solid rgba(255,255,255,.3);
    padding-bottom:4px;
}

/* PHOTO */
.modern-photo{
    text-align:center;
    margin-bottom:18px;
}

.modern-photo img{
    width:110px;
    height:140px;
    object-fit:cover;
    border:2px solid #fff;
    cursor:pointer;
}

.photo-upload{
    margin-top:6px;
    font-size:12px;
    cursor:pointer;
}

/* =====================================================
   MAIN CONTENT
===================================================== */
.modern-main{
    width:68%;
    padding:18mm 14mm;
    color:#000;
    flex-shrink:0;
}

.name-header h1{
    margin:0;
    font-size:26px;
    font-weight:700;
}

.name-header h2{
    margin:4px 0 12px;
    font-size:16px;
    font-weight:500;
}

.modern-section{
    margin-bottom:12px;
}

.modern-section h3{
    font-size:15px;
    margin:0 0 6px;
    border-bottom:2px solid #000;
}

/* =====================================================
   PERSONAL DETAILS
===================================================== */
.personal-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.personal-grid .full{
    grid-column:1 / -1;
}

.input-look{
    padding:4px 6px;
    border:1px solid #ccc;
    font-size:13px;
}

/* =====================================================
   EXPERIENCE
===================================================== */
.job-item{
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid #ddd;
}

.job-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:6px;
}

.job-label{
    width:110px;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
}

.job-value{
    flex:1;
    min-height:26px;
}

.job-year{
    max-width:160px;
}



/* =====================================================
   HOBBY
===================================================== */
.hobby-preview{
    list-style:none;
    padding:0;
    margin:6px 0 0;
    font-size:13px;
}

/* ================= EDUCATION PLACEHOLDER ================= */

/* =====================================================
   EDUCATION – SIDEBAR IMPROVED UI
===================================================== */

.education-section .edu-item{
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(255,255,255,0.25); /* cleaner divider */
}

/* Header row (Title + Year) */
.edu-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:13px;
    font-weight:700;
    gap:8px;
}

/* Year alignment */
.edu-head span{
    min-width:42px;
    text-align:right;
    font-weight:600;
    opacity:0.9;
}

/* Content wrapper */
.edu-content{
    margin-top:6px;
}

/* Education value fields */
.edu-field{
    font-size:12px;
    padding:3px 0;
    line-height:1.3;
    white-space:nowrap;          /* 🔥 single line */
    overflow:hidden;
    text-overflow:ellipsis;      /* … if too long */
    max-width:100%;              /* sidebar limit */
    border:none;
}

/* Placeholder style (guider) */
.edu-field:empty::before,
.edu-head span:empty::before{
    content:attr(data-placeholder);
    color:rgba(255,255,255,0.55);
}

/* Optional (unchecked) hide */
.edu-optional .edu-head,
.edu-optional .edu-content{
    display:none;
}

.edu-optional.active .edu-head,
.edu-optional.active .edu-content{
    display:block;
}

/* Lock icon area clean */
.edu-lock .edu-toggle{
    display:none;
}

/* Last item divider remove */
.education-section .edu-item:last-child{
    border-bottom:none;
}





/* =====================================================
   BUTTONS
===================================================== */
button{
    cursor:pointer;
    padding:5px 10px;
    font-size:13px;
}

/* =====================================================
   PREVIEW + PRINT BUTTON CENTER
===================================================== */
.sji-rb-preview{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.sji-rb-preview .resume-page{
    margin-bottom:16px;
}

.rb-action-bar{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* =====================================================
   PRINT – SINGLE FINAL BLOCK (CRITICAL)
===================================================== */
@media print{

    body{
        margin:0;
        background:#fff;
    }

    body *{
        visibility:hidden;
    }

    .resume-page,
    .resume-page *{
        visibility:visible;
    }

    .resume-page{
        margin:0;
        box-shadow:none;
        min-height:297mm;
        page-break-after:avoid;
    }

    .rb-action-bar,
    .rb-template-bar,
    .no-print{
        display:none !important;
    }
}
/*SKILL DROPDOWN*/
/* =====================================================
   SKILLS – FINAL WORKING CSS
===================================================== */

.skill-dropdown{
    position:relative;
    display:inline-block;
    margin-bottom:6px;
}

/* Dropdown button */
#skillToggle{
    padding:6px 12px;
    font-size:13px;
    background:#f2f2f2;
    border:1px solid #999;
    cursor:pointer;
}

/* Dropdown box */
.skill-menu{
    position:absolute;
    top:100%;
    left:0;
    width:220px;
    max-height:220px;
    overflow-y:auto;
    background:#fff;
    border:1px solid #ccc;
    padding:6px;
    display:none;
    z-index:9999;
}

/* Checkbox rows */
.skill-menu label{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    margin-bottom:4px;
    cursor:pointer;
}

/* Custom input */
#customSkillInput{
    width:100%;
    padding:4px;
    font-size:12px;
    margin-top:6px;
    box-sizing:border-box;
}

#addCustomSkill{
    margin-top:4px;
    padding:4px 8px;
    font-size:12px;
    cursor:pointer;
}

/* ================= SKILL PREVIEW ================= */

/* 3 COLUMN GRID */
.skill-grid{
    list-style:none;
    padding:0;
    margin-top:8px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px 10px;
    font-size:12px;
}

/* Each skill item */
.skill-grid li{
    border:1px solid #ddd;
    padding:4px 6px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    white-space:nowrap;
}

/* Remove icon */
.skill-grid .remove-skill{
    font-size:12px;
    cursor:pointer;
    color:#c0392b;
}

/* ================= PRINT ================= */

@media print{
    .skill-dropdown,
    #skillMsg{
        display:none !important;
    }
}
/* ================= SKILL POPUP – FINAL MODAL ================= */
.skill-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;   /* 🔥 ABOVE EVERYTHING */
}

.skill-popup-box{
    background:#fff;
    padding:20px 24px;
    width:320px;
    border-radius:6px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.skill-popup-box p{
    font-size:14px;
    margin:0 0 16px;
    color:#222;
}

.skill-popup-box button{
    padding:6px 20px;
    border:none;
    background:#000;
    color:#fff;
    font-size:13px;
    cursor:pointer;
    border-radius:4px;
}

.skill-popup-box button:hover{
    background:#333;
}

/* print hide */
@media print{
    .skill-popup{ display:none !important; }
}
.sb-value{
    font-size:13.5px;
    line-height:1.6;
    min-height:60px;
    outline:none;
}

.sb-value.placeholder{
    color:#666;
    font-style:italic;
}

/* Hide guide text in print */
@media print{
    .sb-value.placeholder{
        display:none !important;
    }
}
.sb-value{
    font-size:13.5px;
    line-height:1.6;
    min-height:60px;
    outline:none;
}

.sb-value.placeholder{
    color:#666;
    font-style:italic;
}

@media print{
    .sb-value.placeholder{
        display:none !important;
    }
}
/* =====================================================
   ABOUT & DECLARATION – FINAL CLEAN VERSION
===================================================== */

/* Section wrapper */
.about-section,
.declaration-section{
    margin-bottom:10px !important;   /* clean compact gap */
    border:none !important;
    position:relative;
}

/* 🔥 REMOVE ALL AUTO / EXTRA LINES */
.about-section::before,
.about-section::after,
.declaration-section::before,
.declaration-section::after{
    content:none !important;
    display:none !important;
}

/* ================= HEADING ================= */

/* SINGLE underline source */
.about-section h3,
.declaration-section h3{
    border-bottom:2px solid #000 !important;
    padding-bottom:4px;
    margin-bottom:6px;
}

/* REMOVE underline from any wrapper */
.about-section .section-head,
.declaration-section .section-head{
    border:none !important;
    padding:0 !important;
    margin:0 !important;
}

/* ================= CONTENT ================= */

/* Default + User text */
.about-default,
.about-user,
.decl-default,
.decl-user{
    border:none !important;
    text-decoration:none !important;
    margin:0 !important;
    padding:0 !important;
    text-align:justify;
    text-justify:inter-word;
}

/* Prevent line under edit button */
.about-section h3 + *,
.declaration-section h3 + *{
    border:none !important;
}

/* ================= EDIT BUTTON ================= */

.about-section .edit-btn,
.declaration-section .edit-btn{
    border:1px solid #999;
    background:#fff;
    font-size:11px;
    padding:2px 6px;
    cursor:pointer;
    box-shadow:none !important;
}

/* ================= SAFETY ================= */

/* Kill any hr */
.about-section hr,
.declaration-section hr{
    display:none !important;
}

/* Print safe */
@media print{
    .edit-btn{
        display:none !important;
    }
}


/* =====================================================
   TEMPLATE SELECTOR – TOP CENTER FIXED
===================================================== */

.rb-template-bar{
    max-width:100%;
    margin:0 auto 20px;
    padding:14px 10px;

    background:#ffffff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    text-align:center;
}

/* Title */
.rb-template-title{
    font-size:16px;
    font-weight:700;
    margin-bottom:10px;
}

/* Buttons row */
.rb-template-actions{
    display:flex;
    gap:12px;
    justify-content:center;
}

/* Buttons */
.rb-template-btn{
    padding:6px 22px;
    border:1px solid #000;
    background:#fff;
    font-weight:600;
    cursor:pointer;
}

.rb-template-btn.active{
    background:#000;
    color:#fff;
}

/* Print / PDF me selector hide */
@media print{
    .rb-template-bar{
        display:none !important;
    }
}


/* =====================================================
   SEO CONTENT SECTION – RESUME BUILDER PAGE
   PAGE ID: 371 (SAFE, NO CONFLICT)
===================================================== */

.page-id-371 .seo-section{
    max-width:900px;
    margin:40px auto 20px;
    padding:24px 28px;
    background:#ffffff;
    border-radius:8px;
    box-shadow:0 6px 20px rgba(0,0,0,.06);
    font-family:Arial, Helvetica, sans-serif;
}

/* MAIN SEO TITLE */
.page-id-371 .seo-section h1{
    font-size:26px;
    font-weight:800;
    color:#000;
    margin:0 0 16px;
    line-height:1.3;
}

/* SUB HEADINGS */
.page-id-371 .seo-section h2{
    font-size:20px;
    font-weight:700;
    margin:26px 0 10px;
    color:#000;
    border-left:4px solid #000;
    padding-left:10px;
}

/* FAQ QUESTIONS */
.page-id-371 .seo-section h3{
    font-size:17px;
    font-weight:700;
    margin:18px 0 6px;
    color:#111;
}

/* PARAGRAPH */
.page-id-371 .seo-section p{
    font-size:15.5px;
    line-height:1.8;
    color:#222;
    margin:0 0 12px;
}

/* LIST */
.page-id-371 .seo-section ul{
    margin:10px 0 18px 18px;
    padding:0;
}

.page-id-371 .seo-section ul li{
    font-size:15px;
    line-height:1.7;
    margin-bottom:6px;
    color:#222;
}

/* LINKS */
.page-id-371 .seo-section a{
    color:#003399;
    font-weight:700;
    text-decoration:none;
}

.page-id-371 .seo-section a:hover{
    text-decoration:underline;
}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */
@media(max-width:768px){

    .page-id-371 .seo-section{
        margin:30px 12px 20px;
        padding:18px 16px;
    }

    .page-id-371 .seo-section h1{
        font-size:22px;
    }

    .page-id-371 .seo-section h2{
        font-size:18px;
    }

    .page-id-371 .seo-section p,
    .page-id-371 .seo-section ul li{
        font-size:14.5px;
    }
}

.seo-center-links{
    text-align:center;
    margin:20px 0;
    font-size:14px;
}


/* Declaration footer layout */
.decl-footer{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-top:16px;
}

/* Date left */
.decl-date{
    text-align:left;
    font-size:13px;
}

/* Signature right */
.decl-sign{
    text-align:right;
}

.decl-sign-box{
    margin-top:6px;
}

/* Signature name */
#signText{
    font-size:13px;
    white-space:nowrap;
}

/* Hide date input in print */
@media print{
    #declDate{
        display:none !important;
    }
}
