/* =====================================================================
/* =====================================================================
   NEW SHARED DETAIL UI
   ===================================================================== */
.im-shared-detail-new {
    background: #ffffff;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 60px;
    font-family: var(--im-font-primary, 'Inter', sans-serif);
    width: 100%;
    flex: 1;
}

.im-shared-detail-new .im-container {
    background: #F8F9FA;
    padding-top: 30px; /* Optional, gives some breathing room if needed */
}

.im-shared-hero-new {
    position: relative;
    margin-bottom: 30px;
    margin-top: -30px;
    margin-left: -20px;
    margin-right: -20px;
}

.im-hero-banner {
    height: 240px;
    background: linear-gradient(135deg, #1c4b52 0%, #1c4b52 30%, #e86121 30%, #e86121 45%, #fbb03b 45%, #fbb03b 100%);
    width: 100%;
    border-radius: 12px 12px 0 0;
}

.im-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: -120px; /* Pull up to overlap exactly half of the 240px avatar */
    padding: 0 40px; /* Indent */
    position: relative;
    z-index: 10;
}

.im-hero-avatar {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 8px solid #ffffff;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.im-hero-text {
    flex: 1;
    padding-top: 140px; /* Push the text below the banner line (120px + 20px gap) */
}

.im-hero-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2c42;
    margin: 0 0 10px;
}

.im-hero-text h1 span {
    font-size: 20px;
    font-weight: 400;
    color: #666;
}

.im-hero-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 800px;
}

.im-hero-actions {
    display: flex;
    gap: 15px;
}

.im-btn-interested,
.im-btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.im-btn-interested {
    background: #0D1B2A;
    color: #fff;
    border: 1px solid #0D1B2A;
}
.im-btn-interested:hover {
    background: #1a2c42;
}

.im-btn-download-cv {
    background: #fff;
    color: #0D1B2A;
    border: 1px solid #ccc;
}
.im-btn-download-cv:hover {
    background: #f4f6f8;
}

.im-shared-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.im-video-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 24px;
}

.im-video-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #1a2c42;
}

.im-video-player {
    padding: 20px;
}
.im-video-placeholder {
    width: 100%;
    height: 400px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.im-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    opacity: 0.5;
}

.im-tabs-new {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid #ddd;
}

.im-tabs-new a {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.im-tabs-new a.active {
    color: #1a2c42;
    font-weight: 600;
}

.im-tabs-new a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2BBCB3;
    border-radius: 3px 3px 0 0;
}

.im-section-box {
    background: #fff;
    border-radius: 0;
    border: none;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.im-section-heading {
    background: #CFD1D4;
    padding: 16px 24px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a2c42;
    border-bottom: 3px solid #0D1B2A;
}

/* Personal Info Grid */
.im-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #eee;
    border-top: none;
}

.im-info-item {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.im-info-item label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.im-info-item span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a2c42;
}

/* Skills Table */
.im-skills-container {
    padding: 24px;
}

.im-skill-category h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a2c42;
    margin: 0 0 12px;
}

.im-skill-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.im-skill-table th {
    background: #f4f6f8;
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    color: #1a2c42;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.im-skill-table td {
    padding: 18px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.im-skill-table tr:last-child td {
    border-bottom: none;
}

.im-stars {
    display: flex;
    gap: 2px;
}

.im-stars .star {
    color: #ddd;
    font-size: 16px;
}

.im-stars .star.filled {
    color: #FFB800;
}

/* Courses */
.im-course-list {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.im-course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    color: #333;
}

/* Work Experience */
.im-work-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.im-work-item {
    display: flex;
    gap: 16px;
}

.im-work-icon {
    width: 40px;
    height: 40px;
    background: #E8F8F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.im-work-content h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a2c42;
}

.im-work-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.im-work-meta span {
    color: #2BBCB3;
    font-weight: 500;
}

.im-work-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Expectations */
.im-expectation-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.im-exp-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.im-exp-icon {
    width: 40px;
    height: 40px;
    background: #E8F8F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.im-exp-text label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.im-exp-text span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a2c42;
}

/* Right Sidebar */
.im-agency-card-new {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.im-agency-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.im-agency-logo {
    width: 60px;
    height: 60px;
    background: #0D1B2A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    flex-shrink: 0;
}

.im-agency-info {
    flex: 1;
}

.im-managed-by {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.im-agency-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a2c42;
    margin: 0;
}

.im-agency-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 0 0 20px;
}

.im-agency-contact-list {
    margin-bottom: 24px;
}

.im-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.im-ac-item svg {
    color: #555;
    flex-shrink: 0;
}

.im-btn-agency-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: #0D1B2A;
    color: #fff;
    text-decoration: none;
    border-radius: 24px; /* Pill shape */
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.im-btn-agency-contact:hover {
    background: #1a2c42;
}

.im-license {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.im-maid-summary-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.im-maid-summary-card h3 {
    background: #fff;
    padding: 24px 24px 16px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a2c42;
}

.im-ms-list {
    padding: 0 0 8px;
}

.im-ms-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    font-size: 14px;
}

.im-ms-item label {
    color: #666;
}

.im-ms-item span {
    font-weight: 600;
    color: #1a2c42;
    text-align: right;
}

@media (max-width: 991px) {
    .im-shared-body {
        grid-template-columns: 1fr;
    }
    
    .im-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    
    .im-hero-text {
        padding-top: 20px;
    }
    
    .im-hero-actions {
        justify-content: center;
    }
    
    .im-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .im-info-grid {
        grid-template-columns: 1fr;
    }
}

.im-shared-full-width {
    width: 100%;
    margin-top: 30px;
}

/* =====================================================================
   TAB 2: SKILL & EXPERTISE COMPONENTS
   ===================================================================== */

/* Pills */
.im-pill-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.im-pill {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.im-pill-cyan {
    background: #E6F7F6;
    color: #0C8B82;
}

.im-pill-yellow {
    background: #FFF4E5;
    color: #F59E0B;
}

/* Skill Cards */
.im-bg-light {
    background: #F8F9FA;
    border-radius: 0;
}

.im-skill-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    overflow: hidden;
}

.im-skill-card:last-child {
    margin-bottom: 0;
}

.im-skill-card h3 {
    font-size: 15px;
    font-weight: 600;
    padding: 16px 24px;
    margin: 0;
    border-bottom: 1px solid #eee;
    color: #1a2c42;
}

.im-skill-card .im-skill-table {
    margin-bottom: 0;
}

/* Specialization Wrap */
.im-specialization-wrap {
    display: flex;
    gap: 24px;
    align-items: center;
}

.im-spec-left {
    flex: 0 0 320px;
}

.im-spec-left h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a2c42;
    margin: 0 0 8px 0;
}

.im-spec-left p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.im-spec-right {
    flex: 1;
}

/* Requirements Grid */
.im-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.im-req-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.im-req-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2c42;
}

/* Badges */
.im-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.im-badge-success {
    background: #ECFDF5;
    color: #10B981;
}

.im-badge-danger {
    background: #FEF2F2;
    color: #EF4444;
}

@media (max-width: 768px) {
    .im-specialization-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .im-spec-left {
        flex: auto;
    }
}

/* =====================================================================
   TAB 3: TIMELINE COMPONENTS (WORK & EDUCATION)
   ===================================================================== */

.im-verified-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ECFDF5;
    border: 1px solid #10B981;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.im-vb-text strong {
    color: #10B981;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.im-vb-text p {
    color: #065F46;
    font-size: 13px;
    margin: 0;
}

.im-timeline-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.im-timeline-heading h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a2c42;
    margin: 0;
}

.im-timeline-wrapper {
    position: relative;
    padding-left: 12px;
}

.im-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 17px;
    width: 2px;
    background: #10B981;
}

.im-timeline-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 24px;
}

.im-timeline-item:last-child {
    margin-bottom: 0;
}

.im-tl-node {
    position: absolute;
    left: 1px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #10B981;
    background: #fff;
    z-index: 1;
}

.im-tl-node.filled {
    background: #10B981;
}

.im-tl-content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.im-tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.im-tl-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1a2c42;
}

.im-badge-success-light {
    background: #ECFDF5;
    color: #10B981;
}

.im-badge-gray {
    background: #F3F4F6;
    color: #4B5563;
}

.im-tl-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a2c42;
    margin: 0 0 4px 0;
}

.im-tl-location {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
}

.im-tl-desc {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 16px;
}

.im-tl-desc strong {
    color: #1a2c42;
    display: block;
    margin-bottom: 4px;
}

.im-tl-desc p {
    margin: 0 0 8px 0;
}

.im-tl-readmore {
    font-size: 12px;
    color: #1a2c42;
    font-weight: 600;
    text-decoration: none;
}

.im-pill-cyan-light {
    background: #E0F2FE;
    color: #0284C7;
    font-size: 11px;
    padding: 4px 10px;
}

.im-pill-yellow-light {
    background: #FEF3C7;
    color: #D97706;
    font-size: 11px;
    padding: 4px 10px;
}

/* =====================================================================
   TAB 4: EDUCATION & BACKGROUND COMPONENTS
   ===================================================================== */

.im-identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.im-id-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.im-id-item label {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.im-id-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1a2c42;
}

.im-tl-academic::before {
    background: #CFD1D4;
}

.im-tl-node-academic {
    position: absolute;
    left: 2px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #CFD1D4;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.im-tl-node-academic.active {
    border-color: #10B981;
}

.im-tl-node-academic .inner-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
}

.im-tl-node-academic.active .inner-dot {
    background: #10B981;
}

@media (max-width: 576px) {
    .im-identity-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   TAB 5: EXPECTATION COMPONENTS
   ===================================================================== */

.im-exp-list-new {
    display: flex;
    flex-direction: column;
}

.im-exp-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

.im-exp-row-icon {
    margin-top: 2px;
}

.im-exp-row-content label {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px 0;
    display: block;
}

.im-exp-row-content span {
    font-size: 14px;
    font-weight: 600;
    color: #1a2c42;
}

.im-exp-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

.im-pill-outline-cyan {
    border: 1px solid #2BBCB3;
    color: #2BBCB3;
    background: transparent;
}

.im-pill-light-bg {
    background: #E6F7F6;
}

.im-pref-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.im-pref-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.im-pref-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2c42;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.im-pref-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.im-pref-icon {
    margin-top: 2px;
}

.im-pref-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a2c42;
    margin: 0 0 4px 0;
}

.im-pref-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .im-pref-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
