:root {
    --brand: #198BEA;
    --brand-600: #1476c9;
    --brand-050: #eaf5ff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.button,
.NewProfileitem-edit-NewProfilebtn {
    border: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: white;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-content {
    background: var(--bg);
}

.NewProfileheader.is-compact {
    padding-block: 6px;
}

.NewProfilebtn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.NewProfilebtn-sm {
    padding: 8px 12px;
    font-size: 12px;
    font-size: 13px;
}

.NewProfilebtn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 139, 234, 0.25);
}

.NewProfilebtn-primary:hover {
    background: var(--brand-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 139, 234, 0.35);
}

.NewProfilebtn-primary:focus {
    outline: 2px solid color-mix(in oklab, var(--brand) 35%, white);
    outline-offset: 2px;
}

.NewProfilebtn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.NewProfilebtn-secondary:hover {
    background: var(--bg);
    border-color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.NewProfilebtn-icon {
    padding: 8px;
    aspect-ratio: 1;
}

/* Add Section Link */
.NewProfileadd-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-top: 12px;
}

.NewProfileadd-section-link:hover {
    color: var(--brand-600);
}

.NewProfileadd-section-link .NewProfileicon {
    font-size: 16px;
    font-weight: 700;
}

/* NewProfilehero */
.NewProfilehero {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(25, 139, 234, 0.15);
    position: relative;
    padding: 32px 0 24px 0;
    display: inherit;
    margin: 90px 0 0 0;
    margin: 70px 0 0 0;
    margin: 60px 0 0 0;
    overflow: hidden;
    border-radius: 0;
}

/* Remove decorative circles for cleaner look */
.NewProfilehero::before,
.NewProfilehero::after {
    display: none;
}

.NewProfilehero-inner {
    max-width: 1200px;
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}


.NewProfileavatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--brand);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.NewProfilehero-info {
    flex: 1;
    color: white;
}

.NewProfilehero-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.NewProfilehero-name h1 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: -1px;
    line-height: normal;
    margin: 0;
}

.NewProfilebadge-verified {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.NewProfileusernameDiv {
    display: flex;
    gap: 4px;
    max-width: 245px;
}

.NewProfileusernamelabel {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    display: block;
    /* margin-bottom: 16px; */
    font-weight: 500;
    letter-spacing: -0.3px;
}

.NewProfileusername,
.NewProfileuserFirstExper {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    display: block;
    /* margin-bottom: 16px; */
    font-weight: 500;
    letter-spacing: -0.3px;
}

/* Action buttons positioned on the right */
.NewProfilehero-actions {
    display: flex;
    gap: 8px;
    gap: 2px;
    flex-wrap: wrap;
    align-items: flex-start;
    /* align-items: end; */
    flex-shrink: 0;
    flex-direction: column;
}

.NewProfilehero-NewProfilebtn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.NewProfilehero-NewProfilebtn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.NewProfilehero-metaMain {
    display: flex;
    gap: 2px;
    flex-direction: column;
    margin: 0 0 18px 0;
}

.NewProfilehero-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    /* margin-bottom: 18px; */
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.NewProfilehero-meta .span {
    color: white;
    font-size: 15px;
}

.NewProfilehero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-size: 15px;
    color: white;
}

.NewProfilesocial-icons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.NewProfilesocial-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    font-weight: 600;
}

.NewProfilesocial-icon:hover {
    background: white;
    color: var(--brand);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


/* Statistics Section - Floating between NewProfilehero and content */
.NewProfilestats-section {
    max-width: 1200px;
    margin: -90px auto 16px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.NewProfilestats-NewProfilecontainer {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    border: 1px solid var(--border);
}

.NewProfilestats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.NewProfilestat-card {
    text-align: center;
    padding: 10px 8px;
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.NewProfilestat-card:hover {
    background: var(--brand-050);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.NewProfilestat-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.NewProfilestat-value {
    font-size: 26px;
    font-weight: 800;
    display: block;
    color: var(--brand);
    margin-bottom: 2px;
    letter-spacing: -1px;
    line-height: 1;
}

.NewProfilestat-label {
    font-size: 11px;
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NewProfilecontainer */
.NewProfilecontainer {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px 24px;
    padding: 24px 24px;
    display: grid;
    grid-template-columns: 1fr 260px;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    gap: 24px;
}

/* Main Content */
.NewProfilemain-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Section Card */
.NewProfilesection-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 80px;
    transition: var(--transition);
}

.NewProfilesection-card:hover {
    box-shadow: var(--shadow-md);
}

.NewProfilesection-NewProfileheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg);
}

.NewProfilesection-titleold {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.4;
    margin: 0;
}

.NewProfilesection-icon {
    font-size: 22px;
}

/* Form Styles */
.NewProfileadd-form {
    display: none;
    background: linear-gradient(to bottom, var(--bg), white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 14px;
    box-shadow: var(--shadow-sm);
}

.NewProfileadd-form.is-active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.NewProfileform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.NewProfileform-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.NewProfileform-label,
.current-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.2px;
}

.pursuing-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.2px;
}

.NewProfileform-input,
.NewProfileform-textarea,
.NewProfileform-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    font-weight: 500;
}

.certificate-file-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    font-weight: 500;
}

.publisher-file-upload {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    font-weight: 500;
}

.sendmsg-file-upload {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    font-weight: 500;
}

.NewProfileform-input::placeholder,
.NewProfileform-textarea::placeholder,
.NewProfileform-select::placeholder {
    font-size: 13px;
}

.editable-area-pub {
    font-size: 13px;
    font-weight: 500;
}

.publisher-file-upload::file-selector-button,
.sendmsg-file-upload::file-selector-button,
.certificate-file-input::file-selector-button {
    background-color: var(--brand);
    /* background-color:#007bff; */
    color: white;
    border: none;
    border-radius: 5px;
    /* padding: 8px 15px; */
    padding: 10px 12px;
    ;
    cursor: pointer;
    font-size: 13px;
    /* margin-right: 10px; */
}

.publisher-file-upload::file-selector-button:hover,
.certificate-file-input::file-selector-button:hover {
    /* background-color: #0056b3; */
    background-color: var(--brand-600);
}

.NewProfileform-input:focus,
.NewProfileform-textarea:focus,
.NewProfileform-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(25, 139, 234, 0.1);
}

.NewProfileform-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.NewProfileform-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* Content Items */
.NewProfilecontent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.NewProfilecontent-item {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    /* display: flex; */
    gap: 2px;
    justify-content: space-between;
}

.NewProfilecontent-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand);
    opacity: 0;
    transition: opacity 0.3s;
}

.NewProfilecontent-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
    transform: translateX(2px);
}

.NewProfilecontent-item:hover::before {
    opacity: 1;
}

#NewProfileexperience .NewProfileicon::before,
#NewProfileeducation .NewProfileicon::before {
    display: none;
}

.NewProfileitem-titleold {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.NewProfileitem-metaold {
    font-size: 12px;
    font-size: 15px;
    color: var(--muted);
    /* margin-bottom: 8px;
        font-weight: 500; */
    margin: 9px 0;
    word-break: break-all;
}

.NewProfileitem-descriptionold {
    font-size: 14px;
    font-size: 16px;
    line-height: 1.6;
    line-height: 1.8;
    color: var(--text);
    /* color: #495057; */
    word-break: break-all;
    /* font-weight: 600; */
}

.NewProfileitem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.NewProfiletag {
    background: var(--brand-050);
    color: var(--brand);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.NewProfiletag:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    transform: translateY(-2px);
}

/* Timeline */
.NewProfiletimeline {
    position: relative;
    padding-left: 32px;
}

.NewProfiletimeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--brand), var(--brand-050));
    border-radius: 2px;
}

.NewProfiletimeline-item {
    position: relative;
    padding-bottom: 20px;
    /* display: flex;
        justify-content: space-between;
        width: 100%; */
    gap: 2px;
}

.NewProfiletimeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 4px;
    left: -29px;
    left: -32px;
    top: 0px;
    width: 14px;
    height: 14px;
    background: var(--brand);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--brand-050), 0 2px 6px rgba(25, 139, 234, 0.3);
}

/* .NewProfiletimeline-item:last-child::after {
        content: '';
        position: absolute;
        left: -24px;
        top: 22px;
        width: 8px;
        height: 8px;
        background: var(--brand-050);
        border-radius: 50%;
    } */

.ExpImageMainDiv,
.RoleResearchImageMainDiv,
.certifImageMainDiv,
.EduImageMainDiv {
    display: flex;
    align-items: flex-end;
    /* gap: 15px; */
    align-items: center;
    align-items: flex-start;
}

.experience-icon-wrapper,
.certif-icon-wrapper,
.RoleResearch-icon-wrapper,
.education-icon-wrapper {
    margin-right: 12px;
    position: relative;
    width: 70px;
    height: 70px;
}

.experience-icon,
.certif-icon,
.RoleResearch-icon,
.education-icon {
    object-fit: cover;
    width: 100%;
    border: 2px solid #006ec9;
    border: 2px solid #198bea;
    border-radius: 12%;
    height: 100%;
    width: 70px;
    height: 70px;
    overflow: hidden;
}

.experience-icon img,
.RoleResearch-icon img,
.education-icon img {
    border-radius: 12%;
    width: 100%;
    height: 100%;
}

.NewProfiletimeline-item h4old {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.NewProfiletimeline-metaold {
    font-size: 12px;
    color: var(--muted);
    /* margin-bottom: 6px;
        font-weight: 600; */
    margin: 9px 0;
    font-size: 15px;
}

.NewProfiletimeline-item ulold {
    list-style: disc;
    /* margin-left: 20px; */
    margin: 20px 0 0 20px;
    font-size: 13px;
    font-size: 17px;
    color: var(--text);
    line-height: 1.5;
    line-height: 1.6;
}

.NewProfiletimeline-item ul li {
    margin-bottom: 4px;
}

/* Index Navigation - Modern Design */

.RightsideMain {
    /* position: sticky; */
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    /* overflow-y: auto;
    overflow-x: hidden; */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Smooth scrollbar styling for RightsideMain */
.RightsideMain::-webkit-scrollbar {
    width: 6px;
}

.RightsideMain::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
}

.RightsideMain::-webkit-scrollbar-thumb {
    background: var(--border);
    background: var(--brand);
    border-radius: 10px;
}

.RightsideMain::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}


.NewProfileindex-nav {
    /* position: sticky;
    top: 80px; */
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    /* Fit to content size */
    /* max-height: calc(100vh - 100px); Only when content overflows */
    /* overflow-y: auto;
    overflow-x: hidden; */
    /* Remove fixed min-height, let content dictate size */
}

/* Smooth scrollbar styling */
/* .NewProfileindex-nav::-webkit-scrollbar {
    width: 6px;
}

.NewProfileindex-nav::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
}

.NewProfileindex-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.NewProfileindex-nav::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
} */

.NewProfileindex-nav h3old {
    font-size: 15px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    letter-spacing: -0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.NewProfileindex-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.NewProfileindex-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 13px;
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.NewProfileindex-link:hover {
    background: var(--bg);
    color: var(--text);
    transform: translateX(4px);
}

.NewProfileindex-link.active {
    background: var(--brand-050);
    color: var(--brand);
    font-weight: 700;
}

.NewProfileindex-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--brand);
    border-radius: 0 4px 4px 0;
}

.NewProfileindex-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
}


/* Followers Card - No sticky positioning */
.NewProfilefollowers-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.NewProfilefollowers-card h3old {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    letter-spacing: -0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.followers-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    background: var(--brand-050);
    color: var(--brand);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Followers List */
.NewProfilefollowers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* REMOVED: max-height and overflow - let it grow naturally */
}

/* Follower Item */
.NewProfilefollower-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

.NewProfilefollower-item:hover {
    background: var(--bg);
    transform: translateX(2px);
}

/* Avatar */
.follower-avatarold {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.NewProfilefollower-item:hover .follower-avatar {
    border-color: var(--brand);
}

.follower-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholderold {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-600));
    color: white;
    font-weight: 700;
    font-size: 16px;
}

/* Follower Info */
.follower-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.follower-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.follower-role {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View All Link */
.view-all-followers {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    border-top: 1px solid var(--border);
    transition: all 0.2s;
}

.view-all-followers:hover {
    background: var(--brand-050);
    color: var(--brand-600);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .RightsideMain {
        display: none;
    }
}




/* Question List  */

/* Questions List */
.NewProfilequestions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    gap: 5px;
}

/* Question Item */
.NewProfilequestion-item {
    display: flex;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    background: white;
}

.NewProfilequestion-item:hover {
    background: var(--bg);
    border-color: var(--brand);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Question Content */
.question-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.question-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NewProfilequestion-item:hover .question-title {
    color: var(--brand);
}

/* Question Meta */
.question-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.question-stat {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.question-stat i {
    font-size: 11px;
}

/* Question Badge */
.question-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.question-badge.solved {
    background: #d1fae5;
    color: #065f46;
}

.question-badge.solved i {
    font-size: 10px;
}

/* Question Tags */
.question-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.question-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    background: var(--bg);
    color: var(--muted);
    border-radius: 4px;
    white-space: nowrap;
}

.question-tag-more {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--brand-050);
    color: var(--brand);
    border-radius: 4px;
}

/* Question Time */
.question-time {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Ask Question Button */
.ask-question-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--brand);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.ask-question-btn:hover {
    background: var(--brand-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 139, 234, 0.3);
}

.ask-question-btn i {
    font-size: 12px;
}


/* Empty State */
.empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--muted);
    background: var(--bg);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    font-size: 13px;
}

.empty-state::before {
    content: '📭';
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}



/* NewProfiletoast */
.NewProfiletoast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.NewProfiletoast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* NewProfilechips */
.NewProfilechips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.NewProfilechip {
    background: var(--brand-050);
    color: var(--brand);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: default;
    letter-spacing: 0.3px;
    border: 1px solid rgba(25, 139, 234, 0.15);
}

.NewProfilechip:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 139, 234, 0.3);
}

/* NewProfilesocials */
.NewProfilesocials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.NewProfilesocial-link {
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.NewProfilesocial-link:hover {
    background: white;
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile */
@media (max-width: 1024px) {
    .NewProfilecontainer {
        grid-template-columns: 1fr;
    }

    .NewProfilehero {
        padding-bottom: 110px;
    }

    .NewProfilehero-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 28px 16px 16px;
    }

    .NewProfilehero-name {
        justify-content: center;
    }

    .NewProfilehero-actions {
        justify-content: center;
        order: 3;
        width: 100%;
        margin-top: 16px;
    }

    .NewProfilehero-info {
        order: 2;
    }

    .NewProfilestats-section {
        margin: -100px 16px 16px;
    }

    .NewProfilestats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .NewProfilestats-NewProfilecontainer {
        padding: 12px 14px;
    }

    .NewProfilesocial-icons {
        justify-content: center;
    }

    .NewProfilehero-meta {
        justify-content: center;
    }

    .NewProfileindex-nav {
        display: none;
    }

    .NewProfilebtn-sm {
        padding: 7px 11px;
        /* font-size: 11px; */
    }
}

@media (max-width: 640px) {
    .NewProfilehero-name h1 {
        font-size: 28px;
    }

    .NewProfilehero {
        padding-bottom: 120px;
    }

    .NewProfilehero-actions {
        gap: 6px;
    }

    .NewProfilebtn-sm {
        padding: 6px 10px;
    }

    .NewProfilestats-section {
        margin: -110px 12px 14px;
    }

    .NewProfilestats-grid {
        gap: 8px;
    }

    .NewProfilestats-NewProfilecontainer {
        padding: 10px 12px;
    }

    .NewProfilestat-card {
        padding: 8px 6px;
    }

    .NewProfilestat-value {
        font-size: 22px;
    }

    .NewProfilestat-label {
        font-size: 10px;
    }

    .NewProfilestat-icon {
        font-size: 16px;
        margin-bottom: 2px;
    }

    /* .search-box { display: none; } */
    .NewProfileform-grid {
        grid-template-columns: 1fr;
    }

    .NewProfileavatar {
        width: 110px;
        height: 110px;
        font-size: 34px;
    }

    .NewProfilehero-meta {
        font-size: 12px;
        flex-direction: column;
        gap: 6px;
    }

    .NewProfileusername {
        /* font-size: 16px; */
    }

    .NewProfilesection-card {
        padding: 16px;
    }

    .NewProfilesection-title {
        font-size: 18px;
    }

    /* .NewProfileheader-inner { gap: 8px; padding: 8px 12px; } */
    /* .logo { font-size: 16px; } */
    .NewProfilemain-content {
        gap: 12px;
    }

    .NewProfilehero-actions .NewProfilebtn-sm {
        padding: 4px 8px;
        font-size: 12px;
    }
}










.NewProfilebtn-danger {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.NewProfilebtn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.NewProfileform-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}


.field-error {
    color: #ef4444;
    font-size: 12px;
    /* margin-top: 4px; */
    display: none;
    font-weight: 500;
    min-height: 16px;
}

.NewProfileform-input.error,
.NewProfileform-select.error,
.select2-container--default .select2-selection--single.error,
.NewProfileform-textarea.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.NewProfileform-input:focus.error,
.NewProfileform-textarea:focus.error {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}



/* Inline edit form animation */
.inline-edit-form {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 2px dashed #198BEA;
}

.inline-edit-form.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight edited item */
.NewProfiletimeline-item:has(.inline-edit-form[style*="display: block"]) .item-display {
    /* background: #e3f2fd; */
    border-left: 4px solid #198BEA;
    padding-left: 16px;
    transition: all 0.3s ease;

}

.item-display {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Live preview highlight */
[data-field-display] {
    transition: color 0.2s ease;
}

[data-field-display]:empty::after {
    /* content: '(empty)'; */
    color: #999;
    font-style: italic;
}



/* For new Quick Nav bar  */

/* ============================================
   HORIZONTAL QUICK NAVIGATION - GLASS MORPHISM
   ============================================ */

.horizontal-quick-nav {
    position: fixed;
    top: 92px;
    /* top: 62px; */
    top: 82px;
    /* As per your requirement */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Glass effect borders */
.horizontal-quick-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(23, 139, 234, 0.3) 50%,
            transparent 100%);
}

.horizontal-quick-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 0, 0, 0.05) 50%,
            transparent 100%);
}

/* Show horizontal nav when scrolling */
.horizontal-quick-nav.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    animation: slideDownGlass 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownGlass {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    60% {
        transform: translateY(8px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.horizontal-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 64px;
}

/* .horizontal-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
    color: rgba(15, 23, 42, 0.9);
    white-space: nowrap;
    padding-right: 28px;
    border-right: 2px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.horizontal-nav-brand::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(23, 139, 234, 0.5) 50%,
            transparent 100%);
} */

.nav-brand-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-brand-text {
    font-size: 14px;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #0f172a 0%, #178bea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.horizontal-nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(23, 139, 234, 0.3) transparent;
    cursor: grab;
    /* Show grab cursor when hoverable */
    user-select: none;
    /* Prevent text selection while dragging */
}

.horizontal-nav-list:active {
    cursor: grabbing;
    /* Show grabbing cursor when dragging */
}

/* Smooth scroll behavior */
.horizontal-nav-list {
    scroll-behavior: smooth;
}

/* Hide scrollbar on hover for cleaner look (optional) */
.horizontal-nav-list::-webkit-scrollbar {
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.horizontal-nav-list:hover::-webkit-scrollbar {
    opacity: 1;
}

/* Custom scrollbar for glass effect */
.horizontal-nav-list::-webkit-scrollbar {
    height: 3px;
}

.horizontal-nav-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.horizontal-nav-list::-webkit-scrollbar-thumb {
    background: rgba(23, 139, 234, 0.4);
    border-radius: 10px;
    transition: background 0.2s;
}

.horizontal-nav-list::-webkit-scrollbar-thumb:hover {
    background: rgba(23, 139, 234, 0.6);
}

.horizontal-nav-list li {
    padding: 0;
}

.horizontal-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    padding: 7px;
    color: rgba(71, 85, 105, 0.9);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    position: relative;
    /* background: rgba(255, 255, 255, 0.5);
    background: #EFEFEF; */
    color: #000;
    color: var(--muted);

    /* border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 2px 8px rgb(0, 0, 0); */
}

/* Glass hover effect */
.horizontal-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* 
.horizontal-nav-link:hover::before {
    opacity: 1;
} */

.horizontal-nav-link:hover {
    /* transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(23, 139, 234, 0.15);
    border-color: rgba(23, 139, 234, 0.3); */
    color: var(--brand);
    transition: color 0.2s ease;
}

/* Active state with glass effect */
.horizontal-nav-link.active {
    /* background: linear-gradient(135deg,
            rgba(23, 139, 234, 0.95) 0%,
            rgba(13, 110, 253, 0.95) 100%); */
    /* color: white; */
    /* border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(23, 139, 234, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset; */
    color: var(--brand-600);
}

.horizontal-nav-link.active::before {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    opacity: 1;
}

.horizontal-nav-link.active:hover {
    /* color: white; */
    /* transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(23, 139, 234, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.4) inset; */
}

.horizontal-nav-icon {
    font-size: 16px;
    display: none;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.horizontal-nav-link span {
    position: relative;
    z-index: 1;
}

/* Shimmer effect on active link */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* .horizontal-nav-link.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    pointer-events: none;
} */

/* Hero margin adjustment when nav is visible */
.NewProfilehero {
    transition: margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.NewProfilehero.nav-visible {
    margin: 155px 0 0 0;
    margin: 120px 0 0 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .horizontal-nav-container {
        padding: 0 24px;
        gap: 24px;
    }
}

@media (max-width: 1024px) {

    .nav-brand-text {
        display: none;
    }

    .horizontal-nav-container {
        gap: 16px;
    }

    .horizontal-nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .horizontal-quick-nav {
        top: 72px;
        /* Adjust for mobile header */
    }

    .horizontal-nav-container {
        height: 56px;
        padding: 0 16px;
    }

    .horizontal-nav-link {
        padding: 7px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .horizontal-nav-icon {
        font-size: 14px;
    }

    .NewProfilehero.nav-visible {
        margin: 100px 0 0 0;
    }
}

@media (max-width: 480px) {
    .horizontal-quick-nav {
        top: 60px;
    }

    .horizontal-nav-container {
        height: 50px;
        gap: 12px;
    }

    .nav-brand-icon {
        font-size: 18px;
    }

    .NewProfilehero.nav-visible {
        /* margin: 110px 0 0 0; */
    }
}


/* From here new css for all Title  So we have to remoev our old css also form this page */
/* i had set old like this .NewProfilefollowers-card h3old  */

.NewProfileindex-nav h3,
.NewProfilefollowers-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* padding-bottom: 10px;
    border-bottom: 2px solid var(--border); */
}

.NewProfiletimeline-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.NewProfilesection-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    /* margin-bottom: 16px; */
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    line-height: 1.4;
    margin: 0;

}

.research-interests-title,
.skills-expertise-title {
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.NewProfileitem-description {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 12px;
}

.NewProfiletimeline-meta {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin: 5px 0;
}

.NewProfiletimeline-item ul {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    list-style: disc;
}

.NewProfileitem-title {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    font-weight: 600;
}

.NewProfileitem-meta {
    font-size: 15px;
    color: var(--muted);
    margin: 5px 0;
    line-height: 1.6;
    word-break: break-all;
}

.follower-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #198BEA;
    color: white;
    font-size: larger;
}

.NewProfileform-input {}