/* =======================
   CORPORATE GREEN PROFILE
   RESPONSIVE + FIXED
   ======================= */

/* GLOBAL FIX */
*, *::before, *::after{
    box-sizing:border-box;
}

#cm-profile-page{
    max-width:950px;
    margin:37px auto;
    padding:0 14px;
    font-family:"Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ===== TABS ===== */
.cm-tabs{margin:20px 0}
.cm-tab{
    padding:10px 16px;
    border:1px solid #d1d5db;   /* light border */
    background:#ffffff;
    cursor:pointer;
    color:#111827;
    font-size:14px;
    font-weight:500;
    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .2s ease;
}

/* Hover */
.cm-tab:hover{
    background:#ecfdf5;
    border-color:#047857;
    color:#047857;
    box-shadow:0 6px 14px rgba(4,120,87,.18);
    transform:translateY(-1px);
}

/* Active tab */
.cm-tab.active{
    padding:10px 16px;
    background:#047857;
    border-color:#047857;
    color:#ffffff;
    
}


.cm-tab-content{display:none}
.cm-tab-content.active{display:block}

.cm-tabs{
    display:flex;
    align-items:center;
    gap:0px;
    padding-right: 25px;
}

/* Edit button right alignment */
.cm-tabs .cm-edit-btn{
    margin-left:auto;
}

/* ===== TOP CARD ===== */
/* ================= PROFILE TOP ================= */

.cm-profile-top {
    position: relative; /* dropdown এবং resume absolute জন্য parent */
    display: flex;
    align-items: center;
    justify-content: space-between; /* left content + right content */
    padding: 22px 26px;
    border-radius: 18px;
    border: 0.05px solid #bbf7d0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    gap: 20px;
    color: #065f46;
}

.cm-profile-left {
    display: flex;
    gap: 18px;
    align-items: center;
}

.cm-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #065f46;
    background: #fff;
}

.cm-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 2px;
}

.cm-profile-left p {
    margin: 2px 0;
    font-size: 14px;
    opacity: .95;
}

.cm-profile-left p:nth-child(2)::before {
    content: "✉ ";
}

.cm-profile-left p:nth-child(3)::before {
    content: "📞";
}

/* ================== DROPDOWN TOP-RIGHT ================== */
.cm-profile-actions {
    position: absolute;
    top: 22px; /* profile top padding অনুযায়ী */
    right: 26px; /* profile top padding অনুযায়ী */
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Profile Dropdown */
.cm-profile-dropdown {
    position: relative; /* menu জন্য relative */
}

.cm-profile-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
     font-weight:500;
    margin-bottom :15px;
}

.cm-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #065f46;
}

.cm-profile-menu {
    display: none;
    position: absolute;
    top: 50px; /* toggle height অনুযায়ী adjust */
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 160px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    z-index: 999;
}

.cm-profile-menu a {
    display: block;
    padding: 5px 12px;
    text-decoration: none !important;
    color: #333;
    font-size: 14px;
}

/* ================== RESUME LINK CENTER-RIGHT ================== */
.cm-resume-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    background: none !important;
    color: #065f46 !important;
   border: 1px solid #ddd !important;
    font-weight: 500;
    position: absolute;
    right: 2px;  /* same padding as .cm-profile-top */
    top: 90%; 
    transform: translateY(-0%); /* vertical center */
    box-shadow: 0 0 18px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.cm-resume-link .cm-resume-icon {
    display: flex;
    align-items: center;
    font-size: 16px;
}


.cm-profile-actions-new{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content: flex-end
}


.cm-btn{
    background:#047857;
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    text-decoration: none !important;
    border:none;
    cursor:pointer;
    font-size:14px;
    font-weight:500;
    transition: 
        background .25s ease,
        transform .2s ease,
        box-shadow .25s ease;
}

.cm-btn:hover{
    background:#059669; /* lighter green */
    transform: translateY(-2px);
    color : #fff;
}

.cm-btn:active{
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(4,120,87,.25);
}

.cm-btn-outline{
    background:transparent;
    border:1px solid #6ee7b7;
    color:#ecfdf5;
}

/* ===== VIEW GRID ===== */
.cm-info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap: 8px;
    margin-top: 23px;
}


.cm-info-grid .cm-full{
    grid-column:span 2;
}

.cm-info-grid div{
   padding: 5px 10px;
   border-radius: 8px;
   font-size:14px;
   line-height:1.6;
   border: 0.05px solid #bbf7d0;
   box-shadow:0 1px 3px rgba(0,0,0,.05);
}

.cm-info-grid strong{
    display:block;
    font-size:12px;
    color:#065f46;
    margin-bottom:4px;
}

/* ===== SECTION HEADERS ===== */
.cm-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:36px 0 12px;
}

.cm-section-header h4{
    margin:0;
    font-size:18px;
    color:#064e3b;
}

/* ===== EDUCATION / EXPERIENCE GRID ===== */
.cm-row-grid{
    display: grid;
    grid-template-columns:
        2fr     /* Degree */
        3fr     /* Institution */
        2fr     /* Board */
        1.2fr   /* Result */
        1fr     /* Passing Year */
        10px;   /* Action / Empty */
    gap: 12px;
    margin-bottom:8px;
    align-items: center;
}

.cm-row-grid-exp{
    display: grid;
    grid-template-columns:
        2fr     /* Degree */
        3fr     /* Institution */
        2fr     /* Board */
        1.9fr   /* Result */
        1.9fr     /* Passing Year */
        10px;   /* Action / Empty */
    gap: 12px;
    margin-bottom:8px;
    align-items: center;
}

.cm-col-label{
    font-size:12px;
    font-weight:600;
    color:#065f46;
    padding:4px 2px;
}

/* view row */
.cm-edu-head
{  
    border-radius:12px;
    padding:0px 2px 1px 7px;
    margin-bottom:8px;
}
.cm-view-row{
    /*background:#ecfdf5;*/
    border:1px solid #bbf7d0;
    border-radius:12px;
    padding:0px 2px 1px 1px;
    margin-bottom:8px;
}
.cm-view-cell{
    padding: 6px 9px;
    font-size:14px;
    font-weight:500;
    color:#064e3b;
    background : none;
}


/* ===== EDIT FORM ===== */
#cm-profile-edit-form{
    background:#ffffff;
    padding:24px;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
    margin-top:25px;
}

#cm-profile-edit-form label{
    display:block;
    margin:14px 0 6px;
    font-size:13px;
    color:#064e3b;
    font-weight:600;
}

#cm-profile-edit-form input,
#cm-profile-edit-form textarea,
#cm-profile-edit-form select{
    width:100%;
    min-width:0;
    padding:12px 14px;
    border-radius:10px;
    border:1px solid #bbf7d0;
    font-size:14px;
    background:#ecfdf5;
}

#cm-profile-edit-form textarea{
    resize:vertical;
    max-width:100%;
}

#cm-profile-edit-form input:focus,
#cm-profile-edit-form textarea:focus,
#cm-profile-edit-form select:focus{
    outline:none;
    background:#fff;
    border-color:#047857;
    box-shadow:0 0 0 2px rgba(4,120,87,.15);
}

/* row inputs */
.cm-row-grid input,
.cm-row-grid select{
    width:100%;
    min-width:0;
}

/* remove button */
.cm-remove {
    background: none !important;   /* কোনো background নেই */
    color: #dc2626 !important;     /* icon color red */
    border: none !important;       /* no border */
    border-radius: 0 !important;   /* no rounding */
    width: auto !important;        /* auto width */
    height: auto !important;       /* auto height */
    padding: 0 !important;         /* extra padding remove */
    margin: 0 !important;          /* margin remove */
    cursor: pointer;
    font-size: 15px;               /* icon size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover effects remove */
.cm-remove:hover {
    background: none !important;
    color: #dc2626 !important;
    transform: none !important;
    box-shadow: none !important;
}


/* ===== ACTIONS ===== */
.cm-form-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:24px;
}

.cm-cancel{
    background:#9ca3af;
}

.cm-card{
    /*background:#ecfdf5;*/
    border:1px solid #bbf7d0;
    border-radius:14px;
    padding:10px 18px;
    margin-bottom:14px;
    font-size:14px;
    line-height:1.5; /* 🔥 FIXED */
    color:#064e3b;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

/* Company */
.cm-card strong{
    font-size:15px;
    font-weight:700;
    margin-bottom:0px;
    display:block;
}

/* Location */
.cm-exp-location{
    font-size:13px;
    opacity:.85;
    margin-bottom:6px;
}

.cm-exp-location strong{
    font-weight:600;
    color:#047857;
}
.cm-exp-location i{
    margin-right:6px;
    color:#047857;
}


.cm-exp-role{
    font-weight:600;
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:4px;
}

.cm-exp-date-inline{
    font-size:13px;
    opacity:.85;
    display:flex;
    align-items:center;
    gap:6px;
}
.cm-exp-sep{
    opacity:.6;
}

.cm-exp-date-inline i{
    color:#047857;
}



/* hover (premium feel) */
.cm-card:hover{
    border-color:#34d399;
    box-shadow:0 6px 16px rgba(0,0,0,.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width:768px){
    .cm-card{
        padding:14px 14px;
        font-size:13px;
    }

    .cm-card strong{
        font-size:14px;
    }
}








/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px){

    .cm-profile-top{
        flex-direction:column;
        text-align:center;
    }

    .cm-profile-left{
        flex-direction:column;
    }

    .cm-avatar{
        width:110px;
        height:110px;
    }

    .cm-info-grid{
        grid-template-columns:1fr;
    }

    .cm-info-grid .cm-full{
        grid-column:span 1;
    }

    .cm-row-grid{
        grid-template-columns:1fr;
    }

    .cm-remove{
        width:100%;
        border-radius:10px;
        height:42px;
    }

    .cm-section-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
}

@media (max-width: 480px){

    .cm-avatar{
        width:100px;
        height:100px;
    }

    .cm-name{
        font-size:20px;
    }

    .cm-btn{
        width:100%;
        text-align:center;
    }
}

/*====Title Hide====*/
/* Hide page title for profile page */
.cm-hide-page-title .entry-title,
.cm-hide-page-title .ast-single-post .entry-title,
.cm-hide-page-title h1.page-title {
    display: none !important;
}